logging in sys user
1-sql >@?/rdbms/admin/catclust.sql
2-Create undo tablespaces and redo log threads for other instances and enable the newly created threads
joshi1 >CREATE UNDO TABLESPACE UNDOTBS2 DATAFILE '+DATA' size 2048M;
Tablespace created
3-joshi1 >alter database add logfile thread 2 group 8 ('+DATA','+DATA') SIZE 105m;
Database altered.
4-joshi1 >alter database add logfile thread 2 group 9 ('+DATA','+DATA') SIZE 105m;
Database altered.
5-joshi1 >alter database enable public thread 2;
Database altered.
6-Shutdown the instance and add below RAC parameters to parameter file.
*.cluster_database = TRUE
*.cluster_database_instances = 2
*.undo_management=AUTO
joshi1.undo_tablespace=UNDOTBS
joshi1.instance_name=joshi1
joshi1.instance_number=1
joshi1.thread=1
joshi2.instance_name=joshi2
joshi2.instance_number=2
joshi2.thread=2
joshi2.undo_tablespace=UNDOTBS2
instance_number=2
7-Create spfile from pfile
joshi1 >create spfile='+DATA' from pfile;
File created.
Start Database using spfile , for spfile location go into asm >'+DATA' >db_unique_name>parameterfile>spfile****
add spfile complete location in pfile and restart database and validate new spfile location
logging into node 2 and create audit and dignostic dump location .
source instance 2 enviornment file .
add new spfile location into pfile inside $ORACLE_HOME/dbs.
8-Register the all RAC instances and database with crs
srvctl add database -d joshi -o /prod/product/oracle/product/11.2.0.2
srvctl add instance -i joshi1 -d joshi -n Rac1
srvctl add instance -i joshi2 -d joshi -n Rac2
9-Start all instances using srvctl
Rac1[oracle]_joshi1> srvctl start database -d joshi
Rac1[oracle]_joshi1> srvctl status database -d joshi
Instance joshi1 is running on node Rac1
Instance joshi2 is running on node Rac2
10-Configure local RAC listener using netca
11. Set the local listener and remote listener parameters for all instance.
a. For remote listener parameter ,please specify the scan hostname and scan port number
b. For local listener, Please virtual IP address as hostname and local listener port number .
alter system set local_listener='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=XXXXX-VIP)(PORT=1629))))' scope=both sid='joshi1';
alter system set local_listener='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=XXXXX-VIP)(PORT=1629))))' scope=both sid='joshi2';
alter system set remote_listener='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=XXX_SCAN)(PORT=1628))))' scope=both sid='*';
1-sql >@?/rdbms/admin/catclust.sql
2-Create undo tablespaces and redo log threads for other instances and enable the newly created threads
joshi1 >CREATE UNDO TABLESPACE UNDOTBS2 DATAFILE '+DATA' size 2048M;
Tablespace created
3-joshi1 >alter database add logfile thread 2 group 8 ('+DATA','+DATA') SIZE 105m;
Database altered.
4-joshi1 >alter database add logfile thread 2 group 9 ('+DATA','+DATA') SIZE 105m;
Database altered.
5-joshi1 >alter database enable public thread 2;
Database altered.
6-Shutdown the instance and add below RAC parameters to parameter file.
*.cluster_database = TRUE
*.cluster_database_instances = 2
*.undo_management=AUTO
joshi1.undo_tablespace=UNDOTBS
joshi1.instance_name=joshi1
joshi1.instance_number=1
joshi1.thread=1
joshi2.instance_name=joshi2
joshi2.instance_number=2
joshi2.thread=2
joshi2.undo_tablespace=UNDOTBS2
instance_number=2
7-Create spfile from pfile
joshi1 >create spfile='+DATA' from pfile;
File created.
Start Database using spfile , for spfile location go into asm >'+DATA' >db_unique_name>parameterfile>spfile****
add spfile complete location in pfile and restart database and validate new spfile location
logging into node 2 and create audit and dignostic dump location .
source instance 2 enviornment file .
add new spfile location into pfile inside $ORACLE_HOME/dbs.
8-Register the all RAC instances and database with crs
srvctl add database -d joshi -o /prod/product/oracle/product/11.2.0.2
srvctl add instance -i joshi1 -d joshi -n Rac1
srvctl add instance -i joshi2 -d joshi -n Rac2
9-Start all instances using srvctl
Rac1[oracle]_joshi1> srvctl start database -d joshi
Rac1[oracle]_joshi1> srvctl status database -d joshi
Instance joshi1 is running on node Rac1
Instance joshi2 is running on node Rac2
10-Configure local RAC listener using netca
11. Set the local listener and remote listener parameters for all instance.
a. For remote listener parameter ,please specify the scan hostname and scan port number
b. For local listener, Please virtual IP address as hostname and local listener port number .
alter system set local_listener='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=XXXXX-VIP)(PORT=1629))))' scope=both sid='joshi1';
alter system set local_listener='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=XXXXX-VIP)(PORT=1629))))' scope=both sid='joshi2';
alter system set remote_listener='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=XXX_SCAN)(PORT=1628))))' scope=both sid='*';
No comments:
Post a Comment