The Following Documents like the followings :
1- Upgrade Oracle 10g Clusterware to 11gR2 Clusterware.
2- Upgrade ASM 10g to 11gR2 .
3- Upgrade Database 10g to 11gR2 .
Enjoy
Thank you
Osama mustafa
For the people who think differently Welcome aboard
The Following Documents like the followings :
1- Upgrade Oracle 10g Clusterware to 11gR2 Clusterware.
2- Upgrade ASM 10g to 11gR2 .
3- Upgrade Database 10g to 11gR2 .
Enjoy
Thank you
Osama mustafa
Cluster Control utility performs various administrative operation of oracle clusterware. It is located in $ORA_CRS_HOME/bin and must be executed by the “root” user.
[root@rac1 bin]# ./crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy
[root@rac1 bin]# ./crsctl check cssd
CSS appears healthy
[root@rac1 bin]# ./crsctl check crsd
CRS appears healthy
[root@rac1 bin]# ./crsctl check evmd
EVM appears healthy
[root@rac1 bin]# ./crsctl start crs
Attempting to start CRS stack
The CRS stack will be started shortly
[root@rac1 bin]# ./crsctl stop crs
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
[root@rac1 bin]# ./crsctl disable crs
f. To enable oracle clusterware:
[root@rac1 bin]# ./crsctl enable crs
[root@rac1 bin]# ./crsctl get css
for example: to get value of misscount parameter
[root@rac1 bin]# ./crsctl get css misscount
60
[root@rac1 bin]# ./crsctl set css
for example: to set value of misscount parameter
[root@rac1 bin]# ./crsctl set css misscount 120
Configuration parameter misscount is now set to 120.
[root@rac1 bin]# ./crsctl unset css
for example: to unset value of misscount parameter
[root@rac1 bin]# ./crsctl unset css misscount
Configuration parameter misscount is now undefined.
[root@rac2 bin]# ./crsctl lsmodules css
The following are the CSS modules ::
CSSD
COMMCRS
COMMNS
2. CRS_STAT:
It reports the current state of resources configured in the OCR.
[oracle@rac1 bin]$ ./crs_stat -t
Name Type Target State Host
———————————————————————————–
ora….C1.inst application ONLINE ONLINE rac1
ora….C2.inst application ONLINE ONLINE rac2
ora….AC1.srv application ONLINE ONLINE rac1
ora.RAC.abc.cs application ONLINE ONLINE rac1
ora.RAC.db application ONLINE ONLINE rac2
ora….AC1.srv application ONLINE ONLINE rac1
ora….ice2.cs application ONLINE ONLINE rac1
ora….AC1.srv application ONLINE ONLINE rac1
This command used to stop resource or cluster member.
[root@rac1 bin]# ./crs_stop ora.rac1.ons
Attempting to stop `ora.rac1.ons` on member `rac1`
Stop of `ora.rac1.ons` on member `rac1` succeeded.
This command used to start resource or cluster member.
[root@rac1 bin]# ./crs_start ora.rac1.ons
Attempting to start `ora.rac1.ons` on member `rac1`
Start of `ora.rac1.ons` on member `rac1` succeeded.
It dumps the contents of OCR into a text file.
[root@rac1 bin]# ./ocrdump /home/oracle/ocr.dmp
It verifies the integrity of the OCR.
[root@rac2 bin]# ./ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 2
Total space (kbytes) : 5237072
Used space (kbytes) : 9360
Available space (kbytes) : 5227712
ID : 794527192
Device/File Name : /apps/oracle/oradata/ocr
Device/File integrity check succeeded
Cluster registry integrity check succeeded
It perform various administrative operation on the OCR.
ERROR :
[root@RAC01 cssd]# /oragrid/product/11.2/bin/crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4530: Communications failure contacting Cluster Synchronization Services daemon
CRS-4534: Cannot communicate with Event Manager
When Trying To start Oracle Cluster with following Command :
[root@RAC01 cssd]# /oragrid/product/11.2/bin/crsctl start crs
CRS-4640: Oracle High Availability Services is already active
CRS-4000: Command Start failed, or completed with errors.
When Trying To Stop Oracle Cluster With Following Command :
crsctl stop crs command failed
[root@RAC01 cssd]# /oragrid/product/11.2/bin/crsctl stop crs
CRS-2796: The command may not proceed when Cluster Ready Services is not running
CRS-4687: Shutdown command has completed with errors.
CRS-4000: Command Stop failed, or completed with errors.
Solution is Simple :
Just Run
[root@RAC01 cssd]# /oragrid/product/11.2/bin/crsctl start cluster
[root@RAC01 ~]# /oragrid/product/11.2/bin/crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
Thank you
Osama mustafa
$export ORACLE_SID=ORCL1
$sqlplus “/ as sysdba”
Check the status of archive mode of the database:
SQL>archive log list
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 407
Current log sequence 408
SQL> alter system set cluster_database=false scope=spfile sid=’ORCL1′;
$ srvctl stop database -d cobra
$ sqlplus “/ as sysdba”
SQL> startup mount
SQL> alter database archivelog;
SQL> alter system set cluster_database=true scope=spfile sid=’ORCL1′;
SQL> shutdown immediate
#srvctl start database -d orcl
#srvctl start service -dorcl
$sqlplus “/ as sysdba”
SQL> archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 407
Current log sequence 408
Thank you
Osama mustafa
1-Check Pre-requisities On All Node , This Include Old Node And New Node .
cluvfy stage -pre crsinst -n -r 10gR2
2-From the First Node , Execute the following Command :
/oui/bin/addNode.sh
The Final Result For Step 2 .
3-We need to configure new ONS (From The First Node) :
cd cluster_home/bin
cat cluster_home/opmn/conf/ons.config (to get the remoteport)
./racgons add_config Node-name:6200 (remoteport)
4-Optional : needed Only If Specific Home Directory to host ASM (From the First Node)
cluster_home/bin/addnode.sh
5- From The First node we need to Add RAC
cd cluster_home/bin
./addnode.sh
6-Add Listener , Do This Steps From The New Node On Terminal
netca –> Cluster Configuration —>Name of New Node
7-Final Step , Add Database Instance To new node ( from the First Node ) Using
DBCA —> Oracle Real Application Cluster —> Instance Management —> Add Instance
\
Thank You
Osama Mustafa
I will Talk Later How To Remove Node From Oracle Real Application Cluster .
# crsctl add css votedisk
# crsctl delete css votedisk
# crsctl add css votedisk -force
# crsctl delete css votedisk -force
$ crsctl query css votedisk
$ dd if= of= bs=4k
OCR BACKUP :
Oracle RAC Taking Backup For OCR By Default , You will Find It On :
cd $ORACLE_BASE/Crs/cdata/jfv_clus
Change the default automatic backup location:
# ocrconfig –backuploc /shared/bak
Back Up OCR Manually :
# ocrconfig –export file name
$ ocrconfig –showbackup
# ocrdump –backupfile file_name
# crsctl stop crs
# ocrconfig –restore <CRS HOME>/cdata/jfv_clus/day.ocr
# crsctl start crs
$ cluvfy comp ocr -n all
Thank You
Osama Mustafa