Installing Oracle 11G RAC on Linux 6

vi /etc/hosts

10.254.28.11jwdb01

10.254.28.12jwdb02

10.254.28.13    jwdb01-vip

10.254.28.14jwdb02-vip

6.6.7.101jwdb01-priv

6.6.7.102jwdb02-priv

10.254.28.15jwdb-scan

vi /etc/sysctl.conf

#oracle rac config parameter

fs.aio-max-nr = 1048576

fs.file-max = 6815744

#kernel.shmall = 2097152

#kernel.shmmax = 1054504960

kernel.shmmni = 4096

# semaphores: semmsl, semmns, semopm, semmni

kernel.sem = 250 32000 100 128

net.ipv4.ip_local_port_range = 9000 65500

net.core.rmem_default=262144

net.core.rmem_max=4194304

net.core.wmem_default=262144

net.core.wmem_max=1048586

[[email protected] ~]# vi /etc/pam.d/login

#%PAM-1.0

auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so

auth       include      system-auth

account    required     pam_nologin.so

account    include      system-auth

password   include      system-auth

# pam_selinux.so close should be the first session rule

session    required     pam_selinux.so close

session    required     pam_loginuid.so

session    optional     pam_console.so

# pam_selinux.so open should only be followed by sessions to be executed in the user context

session    required     pam_selinux.so open

session    required     pam_namespace.so

session    optional     pam_keyinit.so force revoke

session    include      system-auth

-session   optional     pam_ck_connector.so

session    required     pam_limits.so

# End of file

vi /etc/security/limits.conf

oracle              soft    nproc   2047

oracle              hard    nproc   16384

oracle              soft    nofile  4096

oracle              hard    nofile  65536

oracle              soft    stack   10240

grid                soft    nproc   2047

grid                hard    nproc   16384

grid                soft    nofile  4096

grid                hard    nofile  65536

grid                soft    stack   10240

[[email protected] ~]#

[[email protected] ~]#

[[email protected] ~]# groupadd -g 500 oinstall

groupadd -g 501 dba

useradd -u 501 -g oinstall -G dba oracle

passwd oracle[[email protected] ~]# groupadd -g 501 dba

[[email protected] ~]# useradd -u 501 -g oinstall -G dba oracle

[[email protected] ~]# passwd oracle

Changing password for user oracle.

New password:

BAD PASSWORD: it is based on a dictionary word

BAD PASSWORD: is too simple

Retype new password:

passwd: all authentication tokens updated successfully.

[[email protected] ~]#

[[email protected] ~]#

[[email protected] ~]#

[[email protected] ~]# useradd -u 500 -g oinstall -G dba grid

passwd grid[[email protected] ~]# passwd grid

Changing password for user grid.

New password:

BAD PASSWORD: it is too short

BAD PASSWORD: is too simple

Retype new password:

passwd: all authentication tokens updated successfully.

[[email protected] ~]#

[[email protected] ~]# id grid

uid=500(grid) gid=500(oinstall) groups=500(oinstall),501(dba)

[[email protected] ~]# id oracle

uid=501(oracle) gid=500(oinstall) groups=500(oinstall),501(dba)

vi /etc/security/limits.d/90-nproc.conf

# Change this

*          soft    nproc    1024

# To this

* - nproc 16384

chown -R oracle.dba /oracle

mkdir -p /home/oracle/app/grid

mkdir -p /home/oracle/app/asm

mkdir -p /home/oracle/app/product/db

chown -R grid:dba /home/oracle/app

chown -R grid:dba /home/oracle/app/asm

chown -R grid:dba /home/oracle/app/grid

chown -R oracle:dba /home/oracle/app/db/product/11.2

chmod -R 775 /home/oracle/app

grid

export ORACLE_BASE=/home/oracle/app/grid

export ORACLE_HOME=/home/oracle/app/asm

export ORACLE_SID=+ASM1

export NLS_LANG=AMERICAN_AMERICA.UTF8

export NLS_DATE_FORMAT="yyyy-mm-dd hh24:mi:ss"

export PATH=.:${PATH}:$ORACLE_HOME/bin

export PATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin

export PATH=${PATH}:$ORACLE_BASE/common/oracle/bin

export ORACLE_PATH=${PATH}:$ORACLE_BASE/common/oracle/sql:.:$ORACLE_HOME/rdbms/admin

export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/oracm/lib:/lib:/usr/lib:/usr/local/lib

export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlib

umask 022

mkdir -p /home/u01/app/grid

mkdir -p /home/u01/app/asm

mkdir -p /home/u01/db/product/11.2

chown -R grid:oinstall /home/u01/app

chown -R grid:oinstall /home/u01/app/asm

chown -R grid:oinstall /home/u01/app/grid

chown -R oracle:oinstall /home/u01/db/product/11.2

chmod -R 775 /home/u01/app

grid

export ORACLE_BASE=/home/u01/app/grid

export ORACLE_HOME=/home/u01/app/asm

export ORACLE_SID=+ASM1

export NLS_LANG=AMERICAN_AMERICA.UTF8

export NLS_DATE_FORMAT="yyyy-mm-dd hh24:mi:ss"

export PATH=.:${PATH}:$ORACLE_HOME/bin

export PATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin

export PATH=${PATH}:$ORACLE_BASE/common/oracle/bin

export ORACLE_PATH=${PATH}:$ORACLE_BASE/common/oracle/sql:.:$ORACLE_HOME/rdbms/admin

export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/oracm/lib:/lib:/usr/lib:/usr/local/lib

export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlib

umask 022

oracle

export ORACLE_BASE=/home/u01/db

export ORACLE_HOME=$ORACLE_BASE/product/11.2

export ORACLE_SID=dzxjdb1

export NLS_LANG=AMERICAN_AMERICA.zhs16gbk

export NLS_DATE_FORMAT="yyyy-mm-dd hh24:mi:ss"

export PATH=.:${PATH}:$HOME/bin:$ORACLE_HOME/bin:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin:$ORACLE_BASE/common/oracle/bin

export ORACLE_PATH=${PATH}:$ORACLE_BASE/common/oracle/sql:.:$ORACLE_HOME/rdbms/admin

export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/oracm/lib:/lib:/usr/lib:/usr/local/lib

export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlib

umask=022

useradd -g tellin -d /home/uportal -m -s /usr/bin/csh uportal

usermod -d  /u01  grid

usermod -d  /u01  grid

切换到root用户,使用usermod命令,例如usermod -d /tmp test (test为你的用户名),使用该命令请确保该用户下没有运行的软件或进程

ntp

ntp时间同步

202.112.128.33

[[email protected] etc]# mv ntp.conf ntp.conf.bak

[[email protected] etc]# vi ntp.conf

server 202.112.128.33 prefer

driftfile /var/lib/ntp/drift

broadcastdelay 0.008

/etc/init.d/ntpd start

存储的设备处理步骤:

[email protected] by-path]# sfdisk -s

/dev/sdc: 209715200

/dev/sdd:   2097152

/dev/sde:   2097152

/dev/sdb: 209715200

/dev/sda: 292935982

/dev/sdi:   2097152

/dev/sdg: 209715200

/dev/sdh:   2097152

/dev/sdf: 209715200

/dev/mapper/vg_jwdb01-lv_root:  52428800

/dev/mapper/vg_jwdb01-lv_swap:   4194304

/dev/sdj: 209715200

/dev/sdk: 209715200

/dev/sdl:   2097152

/dev/sdm:   2097152

/dev/sdn: 209715200

/dev/sdo: 209715200

/dev/sdp:   2097152

/dev/sdq:   2097152

/dev/mapper/vg_jwdb01-lv_home: 235798528

/dev/mapper/data2: 209715200

/dev/mapper/ocr2:   2097152

/dev/mapper/ocr1:   2097152

/dev/mapper/data1: 209715200

/dev/mapper/data1p1: 209712478

/dev/mapper/ocr1p1:   2096451

/dev/mapper/data2p1: 209712478

/dev/mapper/ocr2p1:   2096451

total: 3127098992 blocks

[[email protected] by-path]#

[[email protected] by-path]#

[[email protected] by-path]# chmod 0660 /dev/mapper/ocr1

ocr1    ocr1p1

[[email protected] by-path]# chmod 0660 /dev/mapper/ocr1p1

[[email protected] by-path]# chmod 0660 /dev/mapper/ocr2p1

[[email protected] by-path]#

[[email protected] by-path]#

[[email protected] by-path]# raw /dev/mapper/ocr1p1 /dev/raw/raw1

Usage:

raw /dev/raw/rawN <major> <minor>

raw /dev/raw/rawN /dev/<blockdev>

raw -q /dev/raw/rawN

raw -qa

[[email protected] by-path]# raw /dev/raw/raw1 /dev/mapper/ocr1p1

/dev/raw/raw1:  bound to major 253, minor 7

[[email protected] by-path]# raw /dev/raw/raw2 /dev/mapper/ocr2p1

/dev/raw/raw2:  bound to major 253, minor 9

[[email protected] by-path]# raw -qa

/dev/raw/raw1:  bound to major 253, minor 7

/dev/raw/raw2:  bound to major 253, minor 9

[[email protected] by-path]# cd /dev/raw

[[email protected] raw]# ls -lrt

total 0

crw-rw----. 1 root disk 162, 0 Mar  9 15:36 rawctl

crw-rw----. 1 root disk 162, 1 Mar  9 19:33 raw1

crw-rw----. 1 root disk 162, 2 Mar  9 19:33 raw2

[[email protected] raw]# /sbin/scsi_id -g -u -d /dev/mapper/ocr1p1

[[email protected] raw]# /sbin/scsi_id -g -u -d /dev/mapper/ocr1

3600b342212af8cad3666d6158d0000da

[[email protected] raw]# /sbin/scsi_id -g -u -d /dev/mapper/ocr2

3600b342ea1bc4eddbcfbd001cd0000d4

[[email protected] raw]# /sbin/scsi_id -g -u -d /dev/mapper/data1

3600b342513d1ae1d508dd7034d0000d7

[[email protected] raw]# /sbin/scsi_id -g -u -d /dev/mapper/data2

3600b34292a10124d90fcdec9bd0000dc

[[email protected] raw]# chown -R grid:oinstall /dev/raw/raw1

[[email protected] raw]# chown -R grid:oinstall /dev/raw/raw2

[[email protected] raw]# chmod 660 /dev/raw/raw1

[[email protected] raw]# chmod 660 /dev/raw/raw2

[[email protected] raw]# raw -qa

/dev/raw/raw1:  bound to major 253, minor 7

/dev/raw/raw2:  bound to major 253, minor 9

[[email protected] raw]#

[[email protected] ~]#

[[email protected] ~]# /home/u01/app/oraInventory/orainstRoot.sh

Changing permissions of /home/u01/app/oraInventory.

Adding read,write permissions for group.

Removing read,write,execute permissions for world.

Changing groupname of /home/u01/app/oraInventory to oinstall.

The execution of the script is complete.

[[email protected] ~]#

[[email protected] ~]#

[[email protected] ~]#

[[email protected] ~]# /home/u01/app/asm/root.sh

Performing root user operation for Oracle 11g

The following environment variables are set as:

ORACLE_OWNER= grid

ORACLE_HOME=  /home/u01/app/asm

Enter the full pathname of the local bin directory: [/usr/local/bin]:

Copying dbhome to /usr/local/bin ...

Copying oraenv to /usr/local/bin ...

Copying coraenv to /usr/local/bin ...

Creating /etc/oratab file...

Entries will be added to the /etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root script.

Now product-specific root actions will be performed.

Using configuration parameter file: /home/u01/app/asm/crs/install/crsconfig_params

Creating trace directory

User ignored Prerequisites during installation

Installing Trace File Analyzer

OLR initialization - successful

root wallet

root wallet cert

root cert export

peer wallet

profile reader wallet

pa wallet

peer wallet keys

pa wallet keys

peer cert request

pa cert request

peer cert

pa cert

peer root cert TP

profile reader root cert TP

pa root cert TP

peer pa cert TP

pa peer cert TP

profile reader pa cert TP

profile reader peer cert TP

peer user cert

pa user cert

Adding Clusterware entries to upstart

CRS-2672: Attempting to start ‘ora.mdnsd‘ on ‘jwdb01‘

CRS-2676: Start of ‘ora.mdnsd‘ on ‘jwdb01‘ succeeded

CRS-2672: Attempting to start ‘ora.gpnpd‘ on ‘jwdb01‘

CRS-2676: Start of ‘ora.gpnpd‘ on ‘jwdb01‘ succeeded

CRS-2672: Attempting to start ‘ora.cssdmonitor‘ on ‘jwdb01‘

CRS-2672: Attempting to start ‘ora.gipcd‘ on ‘jwdb01‘

CRS-2676: Start of ‘ora.cssdmonitor‘ on ‘jwdb01‘ succeeded

CRS-2676: Start of ‘ora.gipcd‘ on ‘jwdb01‘ succeeded

CRS-2672: Attempting to start ‘ora.cssd‘ on ‘jwdb01‘

CRS-2672: Attempting to start ‘ora.diskmon‘ on ‘jwdb01‘

CRS-2676: Start of ‘ora.diskmon‘ on ‘jwdb01‘ succeeded

CRS-2676: Start of ‘ora.cssd‘ on ‘jwdb01‘ succeeded

ASM created and started successfully.

Disk Group CRSDG created successfully.

clscfg: -install mode specified

Successfully accumulated necessary OCR keys.

Creating OCR keys for user ‘root‘, privgrp ‘root‘..

Operation successful.

CRS-4256: Updating the profile

Successful addition of voting disk 51f01ae0711a4fa1bfb2edf48a5e7e7d.

Successfully replaced voting disk group with +CRSDG.

CRS-4256: Updating the profile

CRS-4266: Voting file(s) successfully replaced

##  STATE    File Universal Id                File Name Disk group

--  -----    -----------------                --------- ---------

1. ONLINE   51f01ae0711a4fa1bfb2edf48a5e7e7d (/dev/raw/raw1) [CRSDG]

Located 1 voting disk(s).

CRS-2672: Attempting to start ‘ora.asm‘ on ‘jwdb01‘

CRS-2676: Start of ‘ora.asm‘ on ‘jwdb01‘ succeeded

CRS-2672: Attempting to start ‘ora.CRSDG.dg‘ on ‘jwdb01‘

CRS-2676: Start of ‘ora.CRSDG.dg‘ on ‘jwdb01‘ succeeded

Configure Oracle Grid Infrastructure for a Cluster ... succeeded

[[email protected] ~]# /home/u01/app/oraInventory/orainstRoot.sh

Changing permissions of /home/u01/app/oraInventory.

Adding read,write permissions for group.

Removing read,write,execute permissions for world.

Changing groupname of /home/u01/app/oraInventory to oinstall.

The execution of the script is complete.

[[email protected] ~]#

[[email protected] ~]#

[[email protected] ~]#

[[email protected] ~]#

[[email protected] ~]#

[[email protected] ~]#

[[email protected] ~]#

[[email protected] ~]#

[[email protected] ~]# /home/u01/app/asm/root.sh

Performing root user operation for Oracle 11g

The following environment variables are set as:

ORACLE_OWNER= grid

ORACLE_HOME=  /home/u01/app/asm

Enter the full pathname of the local bin directory: [/usr/local/bin]:

Copying dbhome to /usr/local/bin ...

Copying oraenv to /usr/local/bin ...

Copying coraenv to /usr/local/bin ...

Creating /etc/oratab file...

Entries will be added to the /etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root script.

Now product-specific root actions will be performed.

Using configuration parameter file: /home/u01/app/asm/crs/install/crsconfig_params

Creating trace directory

User ignored Prerequisites during installation

Installing Trace File Analyzer

OLR initialization - successful

Adding Clusterware entries to upstart

CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node jwdb01, number 1, and is terminating

An active cluster was found during exclusive startup, restarting to join the cluster

Configure Oracle Grid Infrastructure for a Cluster ... succeeded

[[email protected] ~]# su - grid

[[email protected] ~]$

[[email protected] ~]$

[[email protected] ~]$ crs_stat -t

Name           Type           Target    State     Host

------------------------------------------------------------

ora.CRSDG.dg   ora....up.type ONLINE    ONLINE    jwdb01

ora....N1.lsnr ora....er.type ONLINE    ONLINE    jwdb01

ora.asm        ora.asm.type   ONLINE    ONLINE    jwdb01

ora.cvu        ora.cvu.type   ONLINE    ONLINE    jwdb01

ora.gsd        ora.gsd.type   OFFLINE   OFFLINE

ora....SM1.asm application    ONLINE    ONLINE    jwdb01

ora.jwdb01.gsd application    OFFLINE   OFFLINE

ora.jwdb01.ons application    ONLINE    ONLINE    jwdb01

ora.jwdb01.vip ora....t1.type ONLINE    ONLINE    jwdb01

ora....SM2.asm application    ONLINE    ONLINE    jwdb02

ora.jwdb02.gsd application    OFFLINE   OFFLINE

ora.jwdb02.ons application    ONLINE    ONLINE    jwdb02

ora.jwdb02.vip ora....t1.type ONLINE    ONLINE    jwdb02

ora....network ora....rk.type ONLINE    ONLINE    jwdb01

ora.oc4j       ora.oc4j.type  ONLINE    ONLINE    jwdb01

ora.ons        ora.ons.type   ONLINE    ONLINE    jwdb01

ora....ry.acfs ora....fs.type ONLINE    ONLINE    jwdb01

ora.scan1.vip  ora....ip.type ONLINE    ONLINE    jwdb01

vi /etc/rc.local

chown -R grid:oinstall /dev/mapper/ocr1p1

chown -R grid:oinstall /dev/mapper/ocr2p1

chown -R grid:oinstall /dev/mapper/data1p1

chown -R grid:oinstall /dev/mapper/data2p1

sleep 3

chmod 660 /dev/mapper/ocr1p1

chmod 660 /dev/mapper/ocr2p1

chmod 660 /dev/mapper/data1p1

chmod 660 /dev/mapper/data2p1

sleep 3

raw /dev/raw/raw1 /dev/mapper/ocr1p1

raw /dev/raw/raw2 /dev/mapper/ocr2p1

raw /dev/raw/raw3 /dev/mapper/data1p1

raw /dev/raw/raw4 /dev/mapper/data2p1

sleep 3

chown -R grid:oinstall /dev/raw/raw1

chown -R grid:oinstall /dev/raw/raw2

chown -R grid:oinstall /dev/raw/raw3

chown -R grid:oinstall /dev/raw/raw4

chmod 660 /dev/raw/raw1

chmod 660 /dev/raw/raw2

chmod 660 /dev/raw/raw3

chmod 660 /dev/raw/raw4

应用连接配置连接IP

10.254.28.15

即scan-ip

虚拟IP--vip

10.254.28.13

10.254.28.14

端口:1521

第一个节点(28.11)

root用户下执行

1.停止11g rac

su - oracle -c "srvctl stop instance -d orcl -i orcl1"

su - root -c "/home/u01/app/asm/bin/crsctl stop crs"

2.启动11g rac

su - root -c "/home/u01/app/asm/bin/crsctl start crs"

sleep 120

su - oracle -c "srvctl start instance -d orcl -i orcl1"

第二个节点(28.12)

root用户下执行

1.停止11g rac

su - oracle -c "srvctl stop instance -d orcl -i orcl2"

su - root -c "/home/u01/app/asm/bin/crsctl stop crs"

2.启动11g rac

su - root -c "/home/u01/app/asm/bin/crsctl start crs"

sleep 120

su - oracle -c "srvctl start instance -d orcl -i orcl2"

crs_stat -t的用法

在grid用户下,执行

crs_stat -t

[[email protected] ~]$ crs_stat -t

Name           Type           Target    State     Host

------------------------------------------------------------

ora.ARCHDG.dg  ora....up.type ONLINE    ONLINE    jwdb01

ora.CRSDG.dg   ora....up.type ONLINE    ONLINE    jwdb01

ora.DATADG.dg  ora....up.type ONLINE    ONLINE    jwdb01

ora....ER.lsnr ora....er.type ONLINE    ONLINE    jwdb01

ora....N1.lsnr ora....er.type ONLINE    ONLINE    jwdb01

ora.asm        ora.asm.type   ONLINE    ONLINE    jwdb01

ora.cvu        ora.cvu.type   ONLINE    ONLINE    jwdb01

ora.gsd        ora.gsd.type   OFFLINE   OFFLINE

ora....SM1.asm application    ONLINE    ONLINE    jwdb01

ora....01.lsnr application    ONLINE    ONLINE    jwdb01

ora.jwdb01.gsd application    OFFLINE   OFFLINE

ora.jwdb01.ons application    ONLINE    ONLINE    jwdb01

ora.jwdb01.vip ora....t1.type ONLINE    ONLINE    jwdb01

ora....SM2.asm application    ONLINE    ONLINE    jwdb02

ora....02.lsnr application    ONLINE    ONLINE    jwdb02

ora.jwdb02.gsd application    OFFLINE   OFFLINE

ora.jwdb02.ons application    ONLINE    ONLINE    jwdb02

ora.jwdb02.vip ora....t1.type ONLINE    ONLINE    jwdb02

ora....network ora....rk.type ONLINE    ONLINE    jwdb01

ora.oc4j       ora.oc4j.type  ONLINE    ONLINE    jwdb01

ora.ons        ora.ons.type   ONLINE    ONLINE    jwdb01

ora.orcl.db    ora....se.type ONLINE    ONLINE    jwdb01

ora....ry.acfs ora....fs.type ONLINE    ONLINE    jwdb01

ora.scan1.vip  ora....ip.type ONLINE    ONLINE    jwdb01

注明:gsd

ora.jwdb01.gsd

ora.jwdb02.gsd

ora.gsd

已经废弃了额offline是正常的

其他所有项,target online,state(状态) online

假如出现offline,表示11g grid rac有问题,需要检查

shutdown immediate

incon/incon    connect,dba,resource     incon.dbf

orcl   bhjw/bhjw    connect,dba,resource   bhjw.dbf

create tablespace incon

datafile ‘+DATADG‘

autoextend on

next 5m maxsize 20480m

extent management local;

create user incon identified by incon

default tablespace incon;

create tablespace  bhjw

datafile ‘+DATADG‘

size 5000m

autoextend on

next 5m maxsize 20480m

extent management local;

create user  bhjw identified by  bhjw

default tablespace  bhjw;

grant connect,dba to incon;

grant connect,dba to bhjw;

测试

[[email protected] ~]# su - oracle

[[email protected] ~]$

[[email protected] ~]$

[[email protected] ~]$ sqlplus "/as sysdba"

SQL*Plus: Release 11.2.0.4.0 Production on Mon Mar 9 21:25:00 2015

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,

Data Mining and Real Application Testing options

SQL>

SQL>

SQL>

SQL>

SQL> create tablespace incon

2  datafile ‘+DATADG‘

3  autoextend on

4  next 5m maxsize 20480m

5  extent management local;

Tablespace created.

SQL> create user incon identified by incon

2  default tablespace incon;

3

SQL>

SQL> create user incon identified by incon

2  default tablespace incon;

User created.

SQL>

SQL>

SQL> grant connect,dba to incon;

Grant succeeded.

SQL>

SQL>

SQL> create tablespace  bhjw

2  datafile ‘+DATADG‘

3  size 5000m

4  autoextend on

5  next 5m maxsize 20480m

6  extent management local;

Tablespace created.

SQL>

SQL> create user  bhjw identified by  bhjw

2  default tablespace  bhjw;

User created.

SQL>

SQL>

SQL> grant connect,dba to bhjw;

Grant succeeded.

SQL> show paramater name

SP2-0158: unknown SHOW option "paramater"

SP2-0158: unknown SHOW option "name"

SQL> show parameter name

NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

cell_offloadgroup_name               string

db_file_name_convert                 string

db_name                              string      orcl

db_unique_name                       string      orcl

global_names                         boolean     FALSE

instance_name                        string      orcl1

lock_name_space                      string

log_file_name_convert                string

processor_group_name                 string

service_names                        string      orcl

SQL> !

[[email protected] ~]$ ps -ef|grep LOCAL

[[email protected] ~]$ crs_stat -t

Name           Type           Target    State     Host

------------------------------------------------------------

ora.ARCHDG.dg  ora....up.type ONLINE    ONLINE    jwdb01

ora.CRSDG.dg   ora....up.type ONLINE    ONLINE    jwdb01

ora.DATADG.dg  ora....up.type ONLINE    ONLINE    jwdb01

ora....ER.lsnr ora....er.type ONLINE    ONLINE    jwdb01

ora....N1.lsnr ora....er.type ONLINE    ONLINE    jwdb01

ora.asm        ora.asm.type   ONLINE    ONLINE    jwdb01

ora.cvu        ora.cvu.type   ONLINE    ONLINE    jwdb01

ora.gsd        ora.gsd.type   OFFLINE   OFFLINE

ora....SM1.asm application    ONLINE    ONLINE    jwdb01

ora....01.lsnr application    ONLINE    ONLINE    jwdb01

ora.jwdb01.gsd application    OFFLINE   OFFLINE

ora.jwdb01.ons application    ONLINE    ONLINE    jwdb01

ora.jwdb01.vip ora....t1.type ONLINE    ONLINE    jwdb01

ora....SM2.asm application    ONLINE    ONLINE    jwdb02

ora....02.lsnr application    ONLINE    ONLINE    jwdb02

ora.jwdb02.gsd application    OFFLINE   OFFLINE

ora.jwdb02.ons application    ONLINE    ONLINE    jwdb02

ora.jwdb02.vip ora....t1.type ONLINE    ONLINE    jwdb02

ora....network ora....rk.type ONLINE    ONLINE    jwdb01

ora.oc4j       ora.oc4j.type  ONLINE    ONLINE    jwdb01

ora.ons        ora.ons.type   ONLINE    ONLINE    jwdb01

ora.orcl.db    ora....se.type ONLINE    ONLINE    jwdb01

ora....ry.acfs ora....fs.type ONLINE    ONLINE    jwdb01

ora.scan1.vip  ora....ip.type ONLINE    ONLINE    jwdb01

[[email protected] ~]$

[[email protected] ~]$

[[email protected] ~]$ sqlplus "/as sysdba"

SQL*Plus: Release 11.2.0.4.0 Production on Mon Mar 9 21:48:39 2015

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,

Data Mining and Real Application Testing options

SQL>

SQL>

SQL> shutdown abort

ORACLE instance shut down.

SQL> exit

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,

Data Mining and Real Application Testing options

[[email protected] ~]$

[[email protected] ~]$

[[email protected] ~]$ ps -ef|grep smon

oracle   51634 51102  0 21:49 pts/3    00:00:00 grep smon

root     62097     1  6 20:04 ?        00:06:24 /home/u01/app/asm/bin/osysmond.bin

grid     62240     1  0 20:04 ?        00:00:00 asm_smon_+ASM1

[[email protected] ~]$

[[email protected] ~]$

[[email protected] ~]$ crs_stat -t

Name           Type           Target    State     Host

------------------------------------------------------------

ora.ARCHDG.dg  ora....up.type ONLINE    ONLINE    jwdb01

ora.CRSDG.dg   ora....up.type ONLINE    ONLINE    jwdb01

ora.DATADG.dg  ora....up.type ONLINE    ONLINE    jwdb01

ora....ER.lsnr ora....er.type ONLINE    ONLINE    jwdb01

ora....N1.lsnr ora....er.type ONLINE    ONLINE    jwdb01

ora.asm        ora.asm.type   ONLINE    ONLINE    jwdb01

ora.cvu        ora.cvu.type   ONLINE    ONLINE    jwdb01

ora.gsd        ora.gsd.type   OFFLINE   OFFLINE

ora....SM1.asm application    ONLINE    ONLINE    jwdb01

ora....01.lsnr application    ONLINE    ONLINE    jwdb01

ora.jwdb01.gsd application    OFFLINE   OFFLINE

ora.jwdb01.ons application    ONLINE    ONLINE    jwdb01

ora.jwdb01.vip ora....t1.type ONLINE    ONLINE    jwdb01

ora....SM2.asm application    ONLINE    ONLINE    jwdb02

ora....02.lsnr application    ONLINE    ONLINE    jwdb02

ora.jwdb02.gsd application    OFFLINE   OFFLINE

ora.jwdb02.ons application    ONLINE    ONLINE    jwdb02

ora.jwdb02.vip ora....t1.type ONLINE    ONLINE    jwdb02

ora....network ora....rk.type ONLINE    ONLINE    jwdb01

ora.oc4j       ora.oc4j.type  ONLINE    ONLINE    jwdb01

ora.ons        ora.ons.type   ONLINE    ONLINE    jwdb01

ora.orcl.db    ora....se.type ONLINE    ONLINE    jwdb02

ora....ry.acfs ora....fs.type ONLINE    ONLINE    jwdb01

ora.scan1.vip  ora....ip.type ONLINE    ONLINE    jwdb01

[[email protected] ~]$ sqlplus "/as sysdba"

SQL*Plus: Release 11.2.0.4.0 Production on Mon Mar 9 21:50:08 2015

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> startup

ORACLE instance started.

Total System Global Area 4.4896E+10 bytes

Fixed Size                  2263296 bytes

Variable Size            7381976832 bytes

Database Buffers         3.7447E+10 bytes

Redo Buffers               64831488 bytes

Database mounted.

Database opened.

SQL> exit

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,

Data Mining and Real Application Testing options

[[email protected] ~]$ ps -ef|grep smon

oracle   52029     1  0 21:50 ?        00:00:00 ora_smon_orcl1

oracle   52216 51102  0 21:50 pts/3    00:00:00 grep smon

root     62097     1  6 20:04 ?        00:06:30 /home/u01/app/asm/bin/osysmond.bin

grid     62240     1  0 20:04 ?        00:00:00 asm_smon_+ASM1

[[email protected] ~]$ crs_stat -t

Name           Type           Target    State     Host

------------------------------------------------------------

ora.ARCHDG.dg  ora....up.type ONLINE    ONLINE    jwdb01

ora.CRSDG.dg   ora....up.type ONLINE    ONLINE    jwdb01

ora.DATADG.dg  ora....up.type ONLINE    ONLINE    jwdb01

ora....ER.lsnr ora....er.type ONLINE    ONLINE    jwdb01

ora....N1.lsnr ora....er.type ONLINE    ONLINE    jwdb01

ora.asm        ora.asm.type   ONLINE    ONLINE    jwdb01

ora.cvu        ora.cvu.type   ONLINE    ONLINE    jwdb01

ora.gsd        ora.gsd.type   OFFLINE   OFFLINE

ora....SM1.asm application    ONLINE    ONLINE    jwdb01

ora....01.lsnr application    ONLINE    ONLINE    jwdb01

ora.jwdb01.gsd application    OFFLINE   OFFLINE

ora.jwdb01.ons application    ONLINE    ONLINE    jwdb01

ora.jwdb01.vip ora....t1.type ONLINE    ONLINE    jwdb01

ora....SM2.asm application    ONLINE    ONLINE    jwdb02

ora....02.lsnr application    ONLINE    ONLINE    jwdb02

ora.jwdb02.gsd application    OFFLINE   OFFLINE

ora.jwdb02.ons application    ONLINE    ONLINE    jwdb02

ora.jwdb02.vip ora....t1.type ONLINE    ONLINE    jwdb02

ora....network ora....rk.type ONLINE    ONLINE    jwdb01

ora.oc4j       ora.oc4j.type  ONLINE    ONLINE    jwdb01

ora.ons        ora.ons.type   ONLINE    ONLINE    jwdb01

ora.orcl.db    ora....se.type ONLINE    ONLINE    jwdb01

ora....ry.acfs ora....fs.type ONLINE    ONLINE    jwdb01

ora.scan1.vip  ora....ip.type ONLINE    ONLINE    jwdb01

[[email protected] ~]# su - oracle -c "srvctl stop instance -d orcl -i orcl2"

[[email protected] ~]#

[[email protected] ~]#

[[email protected] ~]# su - root -c "/home/u01/app/asm/bin/crsctl stop crs"

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on ‘jwdb02‘

CRS-2673: Attempting to stop ‘ora.crsd‘ on ‘jwdb02‘

CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on ‘jwdb02‘

CRS-2673: Attempting to stop ‘ora.LISTENER.lsnr‘ on ‘jwdb02‘

CRS-2673: Attempting to stop ‘ora.CRSDG.dg‘ on ‘jwdb02‘

CRS-2673: Attempting to stop ‘ora.registry.acfs‘ on ‘jwdb02‘

CRS-2673: Attempting to stop ‘ora.ARCHDG.dg‘ on ‘jwdb02‘

CRS-2673: Attempting to stop ‘ora.DATADG.dg‘ on ‘jwdb02‘

CRS-2677: Stop of ‘ora.LISTENER.lsnr‘ on ‘jwdb02‘ succeeded

CRS-2673: Attempting to stop ‘ora.jwdb02.vip‘ on ‘jwdb02‘

CRS-2677: Stop of ‘ora.ARCHDG.dg‘ on ‘jwdb02‘ succeeded

CRS-2677: Stop of ‘ora.DATADG.dg‘ on ‘jwdb02‘ succeeded

CRS-2677: Stop of ‘ora.registry.acfs‘ on ‘jwdb02‘ succeeded

CRS-2677: Stop of ‘ora.jwdb02.vip‘ on ‘jwdb02‘ succeeded

CRS-2672: Attempting to start ‘ora.jwdb02.vip‘ on ‘jwdb01‘

CRS-2676: Start of ‘ora.jwdb02.vip‘ on ‘jwdb01‘ succeeded

CRS-2677: Stop of ‘ora.CRSDG.dg‘ on ‘jwdb02‘ succeeded

CRS-2673: Attempting to stop ‘ora.asm‘ on ‘jwdb02‘

CRS-2677: Stop of ‘ora.asm‘ on ‘jwdb02‘ succeeded

CRS-2673: Attempting to stop ‘ora.ons‘ on ‘jwdb02‘

CRS-2677: Stop of ‘ora.ons‘ on ‘jwdb02‘ succeeded

CRS-2673: Attempting to stop ‘ora.net1.network‘ on ‘jwdb02‘

CRS-2677: Stop of ‘ora.net1.network‘ on ‘jwdb02‘ succeeded

CRS-2792: Shutdown of Cluster Ready Services-managed resources on ‘jwdb02‘ has completed

CRS-2677: Stop of ‘ora.crsd‘ on ‘jwdb02‘ succeeded

CRS-2673: Attempting to stop ‘ora.crf‘ on ‘jwdb02‘

CRS-2673: Attempting to stop ‘ora.ctssd‘ on ‘jwdb02‘

CRS-2673: Attempting to stop ‘ora.evmd‘ on ‘jwdb02‘

CRS-2673: Attempting to stop ‘ora.asm‘ on ‘jwdb02‘

CRS-2673: Attempting to stop ‘ora.drivers.acfs‘ on ‘jwdb02‘

CRS-2673: Attempting to stop ‘ora.mdnsd‘ on ‘jwdb02‘

CRS-2677: Stop of ‘ora.evmd‘ on ‘jwdb02‘ succeeded

CRS-2677: Stop of ‘ora.crf‘ on ‘jwdb02‘ succeeded

CRS-2677: Stop of ‘ora.mdnsd‘ on ‘jwdb02‘ succeeded

CRS-2677: Stop of ‘ora.asm‘ on ‘jwdb02‘ succeeded

CRS-2673: Attempting to stop ‘ora.cluster_interconnect.haip‘ on ‘jwdb02‘

CRS-2677: Stop of ‘ora.drivers.acfs‘ on ‘jwdb02‘ succeeded

CRS-2677: Stop of ‘ora.cluster_interconnect.haip‘ on ‘jwdb02‘ succeeded

CRS-2677: Stop of ‘ora.ctssd‘ on ‘jwdb02‘ succeeded

CRS-2673: Attempting to stop ‘ora.cssd‘ on ‘jwdb02‘

CRS-2677: Stop of ‘ora.cssd‘ on ‘jwdb02‘ succeeded

CRS-2673: Attempting to stop ‘ora.gipcd‘ on ‘jwdb02‘

CRS-2677: Stop of ‘ora.gipcd‘ on ‘jwdb02‘ succeeded

CRS-2673: Attempting to stop ‘ora.gpnpd‘ on ‘jwdb02‘

CRS-2677: Stop of ‘ora.gpnpd‘ on ‘jwdb02‘ succeeded

CRS-2793: Shutdown of Oracle High Availability Services-managed resources on ‘jwdb02‘ has completed

CRS-4133: Oracle High Availability Services has been stopped.

[[email protected] ~]#

[[email protected] ~]$ crs_stat -t

Name           Type           Target    State     Host

------------------------------------------------------------

ora.ARCHDG.dg  ora....up.type ONLINE    ONLINE    jwdb01

ora.CRSDG.dg   ora....up.type ONLINE    ONLINE    jwdb01

ora.DATADG.dg  ora....up.type ONLINE    ONLINE    jwdb01

ora....ER.lsnr ora....er.type ONLINE    ONLINE    jwdb01

ora....N1.lsnr ora....er.type ONLINE    ONLINE    jwdb01

ora.asm        ora.asm.type   ONLINE    ONLINE    jwdb01

ora.cvu        ora.cvu.type   ONLINE    ONLINE    jwdb01

ora.gsd        ora.gsd.type   OFFLINE   OFFLINE

ora....SM1.asm application    ONLINE    ONLINE    jwdb01

ora....01.lsnr application    ONLINE    ONLINE    jwdb01

ora.jwdb01.gsd application    OFFLINE   OFFLINE

ora.jwdb01.ons application    ONLINE    ONLINE    jwdb01

ora.jwdb01.vip ora....t1.type ONLINE    ONLINE    jwdb01

ora....SM2.asm application    ONLINE    ONLINE    jwdb02

ora....02.lsnr application    ONLINE    ONLINE    jwdb02

ora.jwdb02.gsd application    OFFLINE   OFFLINE

ora.jwdb02.ons application    ONLINE    ONLINE    jwdb02

ora.jwdb02.vip ora....t1.type ONLINE    ONLINE    jwdb02

ora....network ora....rk.type ONLINE    ONLINE    jwdb01

ora.oc4j       ora.oc4j.type  ONLINE    ONLINE    jwdb01

ora.ons        ora.ons.type   ONLINE    ONLINE    jwdb01

ora.orcl.db    ora....se.type ONLINE    ONLINE    jwdb01

ora....ry.acfs ora....fs.type ONLINE    ONLINE    jwdb01

[[email protected] ~]$ crs_stat -t

Name           Type           Target    State     Host

------------------------------------------------------------

ora.ARCHDG.dg  ora....up.type ONLINE    ONLINE    jwdb01

ora.CRSDG.dg   ora....up.type ONLINE    ONLINE    jwdb01

ora.DATADG.dg  ora....up.type ONLINE    ONLINE    jwdb01

ora....ER.lsnr ora....er.type ONLINE    ONLINE    jwdb01

ora....N1.lsnr ora....er.type ONLINE    ONLINE    jwdb01

ora.asm        ora.asm.type   ONLINE    ONLINE    jwdb01

ora.cvu        ora.cvu.type   ONLINE    ONLINE    jwdb01

ora.gsd        ora.gsd.type   OFFLINE   OFFLINE

ora....SM1.asm application    ONLINE    ONLINE    jwdb01

ora....01.lsnr application    ONLINE    ONLINE    jwdb01

ora.jwdb01.gsd application    OFFLINE   OFFLINE

ora.jwdb01.ons application    ONLINE    ONLINE    jwdb01

ora.jwdb01.vip ora....t1.type ONLINE    ONLINE    jwdb01

ora.jwdb02.vip ora....t1.type ONLINE    ONLINE    jwdb01

ora....network ora....rk.type ONLINE    ONLINE    jwdb01

ora.oc4j       ora.oc4j.type  ONLINE    ONLINE    jwdb01

ora.ons        ora.ons.type   ONLINE    ONLINE    jwdb01

ora.orcl.db    ora....se.type ONLINE    ONLINE    jwdb01

ora....ry.acfs ora....fs.type ONLINE    ONLINE    jwdb01

ora.scan1.vip  ora....ip.type ONLINE    ONLINE    jwdb01

[[email protected] ~]$

备份,

exp,如果是登陆linux服务器的oracle用户下,请使用全库导出full=y参数,外加buffer=1000000,使用system/oracle

归档清除,稍后提供

11g存储

多路径裸盘,分区建lvm,然后raw设备绑定。

或者多路径裸盘udev绑定

Base System > Base

Base System > Client management tools

Base System > Compatibility libraries

Base System > Hardware monitoring utilities

Base System > Large Systems Performance

Base System > Network file system client

Base System > Performance Tools

Base System > Perl Support

Servers > Server Platform

Servers > System administration tools

Desktops > Desktop

Desktops > Desktop Platform

Desktops > Fonts

Desktops > General Purpose Desktop

Desktops > Graphical Administration Tools

Desktops > Input Methods

Desktops > X Window System

Applications > Internet Browser

Development > Additional Development

Development > Development Tools

rpm -Uvh binutils-2.*

rpm -Uvh compat-libstdc++-33*

rpm -Uvh elfutils-libelf-0.*

rpm -Uvh libaio-0.*

rpm -Uvh libaio-devel-0.*

rpm -Uvh sysstat-9.*

rpm -Uvh glibc-2.*

rpm -Uvh glibc-common-2.*

rpm -Uvh glibc-devel-2.* glibc-headers-2.*

rpm -Uvh ksh-2*

rpm -Uvh make-3.*

rpm -Uvh libgcc-4.*

rpm -Uvh libstdc++-4.*

rpm -Uvh libstdc++-4.*.i686*

rpm -Uvh libstdc++-devel-4.*

rpm -Uvh gcc-4.*x86_64*

rpm -Uvh gcc-c++-4.*x86_64*

rpm -Uvh --allfiles elfutils-libelf-0*x86_64* elfutils-libelf-devel-0*x86_64*

rpm -Uvh elfutils-libelf-0*i686* elfutils-libelf-devel-0*i686*

rpm -Uvh libtool-ltdl*i686*

rpm -Uvh ncurses*i686*

rpm -Uvh readline*i686*

rpm -Uvh unixODBC*

vi /etc/sysctl.conf

#oracle rac config parameter

fs.aio-max-nr = 1048576

fs.file-max = 6815744

#kernel.shmall = 2097152

#kernel.shmmax = 1054504960

kernel.shmmni = 4096

# semaphores: semmsl, semmns, semopm, semmni

kernel.sem = 250 32000 100 128

net.ipv4.ip_local_port_range = 9000 65500

net.core.rmem_default=262144

net.core.rmem_max=4194304

net.core.wmem_default=262144

net.core.wmem_max=1048586

vi /etc curity mits.conf

oracle              soft    nproc   2047

oracle              hard    nproc   16384

oracle              soft    nofile  4096

oracle              hard    nofile  65536

oracle              soft    stack   10240

grid                soft    nproc   2047

grid                hard    nproc   16384

grid                soft    nofile  4096

grid                hard    nofile  65536

grid                soft    stack   10240

vi /etc/pam.d/login

session    required     pam_limits.so

groupadd -g 500 oinstall

groupadd -g 501 dba

useradd -u 501 -g oinstall -G dba oracle

passwd oracle

useradd -u 500 -g oinstall -G dba grid

passwd grid

[[email protected] ~]# id oracle

uid=501(oracle) gid=500(oinstall) groups=500(oinstall),501(dba)

[[email protected] ~]# id grid

uid=500(grid) gid=500(oinstall) groups=500(oinstall),501(dba)

解开grid包的时候

rpm -Uvh cvuqdisk*

cat /etc/hosts

127.0.0.1   localhost

#rac 112 config

#scan-ip

192.168.56.30 racdb-scan

#public-ip

192.168.56.31 racdb1

192.168.56.33 racdb2

#private-ip

10.10.10.31     racdb1-priv

10.10.10.33     racdb2-priv

#virtual-ip

192.168.56.32 racdb1-vip

192.168.56.34 racdb2-vip

vi /etc curity mits.d/90-nproc.conf

# Change this

*          soft    nproc    1024

# To this

* - nproc 16384

cat /etc linux/config

# This file controls the state of SELinux on the system.

# SELINUX= can take one of these three values:

#     enforcing - SELinux security policy is enforced.

#     permissive - SELinux prints warnings instead of enforcing.

#     disabled - No SELinux policy is loaded.

SELINUX=disabled

# SELINUXTYPE= can take one of these two values:

#     targeted - Targeted processes are protected,

#     mls - Multi Level Security protection.

SELINUXTYPE=targeted

service iptables stop

chkconfig iptables off

/oracle/grid

/oracle/asm

/oracle

# mkdir -p  /u01/app/11.2.0/grid

# mkdir -p /u01/app/grid

# mkdir -p /u01/app/oracle

# chown grid:oinstall /u01/app/11.2.0/grid

# chown grid:oinstall /u01/app/grid

# chown oracle:oinstall /u01/app/oracle

# chmod -R 775 /u01/

# chown -R grid:oinstall /u01

杨东 22:24:18

mkdir -p /u01/app/grid

mkdir -p /u01/app/11.2/grid

mkdir -p /u01/oracle/product/11.2

chown -R oracle:oinstall /u01/oracle

chown -R grid:oinstall /u01

chmod -R 775 /u01

#grid

export ORACLE_BASE=/u01/app/grid

export ORACLE_HOME=/u01/app/11.2/grid

export ORACLE_SID=+ASM1

export NLS_LANG=AMERICAN_AMERICA.UTF8

export NLS_DATE_FORMAT="yyyy-mm-dd hh24:mi:ss"

export ORACLE_TERM=xterm

export PATH=.:${PATH}:$ORACLE_HOME/bin

export PATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin

export PATH=${PATH}:$ORACLE_BASE/common/oracle/bin

export ORACLE_PATH=${PATH}:$ORACLE_BASE/common/oracle l:.:$ORACLE_HOME/rdbms/admin

export LD_LIBRARY_PATH=$ORACLE_HOME b:$ORACLE_HOME/oracm b: b:/usr b:/usr/local b

export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlib

echo ORACLE_SID=$ORACLE_SID

echo ORACLE_BASE=$ORACLE_BASE

echo ORACLE_HOME=$ORACLE_HOME

#oracle

export ORACLE_BASE=/u01/oracle

export ORACLE_HOME=$ORACLE_BASE/product/11.2

export ORACLE_SID=oradb1

export NLS_LANG=AMERICAN_AMERICA.zhs16gbk

export NLS_DATE_FORMAT="yyyy-mm-dd hh24:mi:ss"

export PATH=.:${PATH}:$HOME/bin:$ORACLE_HOME/bin:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin:$ORACLE_BASE/common/oracle/bin

export ORACLE_PATH=${PATH}:$ORACLE_BASE/common/oracle l:.:$ORACLE_HOME/rdbms/admin

export LD_LIBRARY_PATH=$ORACLE_HOME b:$ORACLE_HOME/oracm b: b:/usr b:/usr/local b

export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlib

export ORACLE_TERM=xterm

echo ORACLE_SID=$ORACLE_SID

echo ORACLE_BASE=$ORACLE_BASE

echo ORACLE_HOME=$ORACLE_HOME

时间: 2024-10-10 16:51:59

Installing Oracle 11G RAC on Linux 6的相关文章

Installing Oracle 12c RAC on Linux 6

1.修改hosts文件 vi /etc/sysconfig/network-scripts/ifcfg-eth0 #Public 192.168.1.240   node1 192.168.1.241   node2 #Virtual 192.168.1.242   node1-vip 192.168.1.243   node2-vip #Private 192.168.0.240   node1-priv 192.168.0.241   node2-priv #SCAN 192.168.1.2

安装Oracle 11g RAC R2 之Linux DNS 配置

Oracle 11g RAC 集群中引入了SCAN(Single Client Access Name)的概念,也就是指集群的单客户端访问名称.SCAN 这个特性为客户端提供了单一的主机名,用于访问集群中运行的 Oracle 数据库.如果您在集群中添加或删除节点,使用 SCAN 的客户端无需更改自己的 TNS 配置.无论集群包含哪些节点,SCAN 资源及其关联的 IP 地址提供了一个稳定的名称供客户端进行连接使用.在Oracle 11g grid 安装时即要求为该特性配置DNS解析方式或GNS解

oracle 11g rac 笔记(VMware 和esxi主机都可以使用)

这个只是笔记,防止丢失,没事见整理 在vmware安装目录 创建磁盘: vmware-vdiskmanager.exe -c -s 1000Mb -a lsilogic -t 2 D:\VMWARE\racsharedisk\ocr.vmdk vmware-vdiskmanager.exe -c -s 1000Mb -a lsilogic -t 2 D:\VMWARE\racsharedisk\ocr2.vmdk vmware-vdiskmanager.exe -c -s 1000Mb -a l

Oracle 11g RAC oc4j/gsd Offline

Oracle 11g RAC中,发现oc4j以及gsd服务都处于offline状态,这是Oracle 11g RAC默认情形.即便如此,并不影响数据库的使用,因为 oc4j 是用于WLM 的一个资源, WLM在 11.2.0.2 才可用.GSD则是用于支持dbca,srvctl,oem等的交互工具.本文描述将这两个服务切换到online. [python] view plain copy print? 1.环境 [[email protected] ~]# cat /etc/issue Ente

Oracle 11g rac 生产环境部署详录

作者:田逸([email protected]) 基本规划 ◎设备选型 1.服务器:Dell R620 两台.cpu 8 core,内存64G,600G 15000转sas硬盘,双电源,hba卡一块,连接存储线缆一根(连接hba卡和共享存储). 2.存储:dell MD3200 一台.双控制器,12块600G 15000转sas硬盘.为追求最高可用性,使用的raid级别是raid10. 3.交换机:华为3com两台,型号为h3c S5048E.注意:网络端口最好是全千兆. 4.网线:2-3米机制

oracle 11g RAC 的一些基本概念(四)

RAC 在Grid Infrastructure安装完以后,我们把注意力转移到集群上的Oracle软件的安装上来.我们看到,Grid Infrasctructure提供了运行RAC的框架,包括集群通讯链接.节点分离.节点成员关系等服务.ASM是Oracle存储数据库的首选方式.RAC利用这些概念并扩展了需要的基本服务. 安装选项 成功安装了Grid Infrastructure/Clusterware以后,Oracle Universal Installer检测到集群环境的建立,然后提供安装整个

oracle 11g RAC 的一些基本概念(三)

Grid Infrastructure共享组件 Grid Infrastructure使用两种类型的共享设备来管理集群资源和节点:OCR(Oracle Cluster Registry)和表决磁盘.Oracle 11.2引入一个新的文件,称作Oracle Local Registry(OLR),它只允许存放在本地. OCR和OLR OCR为所有节点所共享,包含了集群资源的所有信息和 Grid Infrastructure需要的操作许可.为了实现共享,OCR需要存放在裸设备.共享块设备.类似OCF

Oracle 11g RAC到单实例ASM的物理Standby搭建

一.DG环境配置 此次搭建Standby的主库为:" RedHat 6.5+11G+RAC+ASM安装与配置(三节点)",11g单实例ASM安装使用ASMLib的方式,不在使用UDEV方式,磁盘为本机磁盘,非远程挂载的磁盘.本次搭建包含了11g单实例ASM的详细安装过程. 1. 基本环境 主库: 实例名:racdb1,racdb2,racdb3        DB_NAME:racdb              DB_UNIQUE_NAME:racdb 备库: 实例名:racdg  

Oracle 11g RAC搭建(VMware环境)

Oracle 11g RAC搭建(VMware环境) Oracle 11g RAC搭建VMware环境 安装环境与网络规划 安装环境 网络规划 环境配置 通过SecureCRT建立命令行连接 关闭防火墙 创建必要的用户组和目录并授权 节点配置检查 系统文件设置 配置IP和hostshostname 配置grid和oracle用户环境变量 配置oracle用户ssh互信 配置裸盘 配置grid用户ssh互信 挂载安装软件文件夹 安装用于Linux的cvuqdisk 手动运行cvu使用验证程序验证O