Thursday, July 26, 2012

Install 11.2.0.2 Grid Infrastructure as Role separation.

This is Demo of Installation of 11.2.0.2  Grid Infrastructure / database home & DB creation ,with Role separation on Linux x86_64.




DescriptionOS Group NameOS Users Assigned to this GroupOracle PrivilegeOracle Group Name
Oracle Inventory and Software Owneroinstallgrid, oracle
Oracle Automatic Storage Management GroupasmadmingridSYSASMOSASM
ASM Database Administrator Groupasmdbagrid, oracleSYSDBA for ASMOSDBA for ASM
ASM Operator GroupasmopergridSYSOPER for ASMOSOPER for ASM
Database AdministratordbaoracleSYSDBAOSDBA
Database OperatoroperoracleSYSOPEROSOPER



I have skipped few steps and few pre-requirement during this exercise. ssh user equivalence  is already configured.

if ASM disks are not visible during DBCA . you can change permission of  $ORACLE_HOME/bin/oracle to  oracle user and asmadmin group.  Make sure you have nosuid in your /etc/fstab for Installer mount point. 

/etc/fstab where i have created two seprate mount points.
/u00 for grid and /u01 for oracle. where i have dont have nosuid for any mountpoints.

PNETN1@:/home/grid :+ASM1 $cat /etc/fstab
/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
LABEL=/u00              /u00                    ext3    defaults        1 2
LABEL=/u01              /u01                    ext3    defaults        1 2
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   size=1700m      0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0

Create group/users/binary home directories as below.

/usr/sbin/groupadd -g 1000 oinstall
/usr/sbin/groupadd -g 1020 asmadmin
/usr/sbin/groupadd -g 1021 asmdba
/usr/sbin/groupadd -g 1030 asmoper
/usr/sbin/groupadd -g 1031 dba
/usr/sbin/groupadd -g 1032 oper
useradd -u 1100 -g oinstall -G asmadmin,asmdba,asmoper grid
useradd -u 1101 -g oinstall -G dba,asmdba oracle

---create GI/OH and set ownership/permission. 

--GI home
mkdir -p  /u00/app/11.2.0/grid
chmod 775 /u00/app/11.2.0/grid
chown -R grid:oinstall /u00
chmod -R 775 /u00

--OH home
mkdir -p  /u01/app/oracle/11.2.0/db_1
chmod 775 /u01/app/oracle/11.2.0/db_1
chown -R  oracle:oinstall /u01
chmod -R 775 /u01

Configure ASM DISKS.

Configure ASM driver/ MARK asmdisks/ scandisks

[root@PNETN3 ~]# /etc/init.d/oracleasm configure -i
Configuring the Oracle ASM library driver.

This will configure the on-boot properties of the Oracle ASM library
driver.  The following questions will determine whether the driver is
loaded on boot and what permissions it will have.  The current values
will be shown in brackets ('[]').  Hitting  without typing an
answer will keep that current value.  Ctrl-C will abort.

Default user to own the driver interface [grid]: grid
Default group to own the driver interface [asmdba]: asmadmin
Start Oracle ASM library driver on boot (y/n) [y]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver:                     [  OK  ]
Scanning the system for Oracle ASMLib disks:               [  OK  ]

MARK ASMDISKS ---Only on NODE1.
[root@PNETN1 ~]# /etc/init.d/oracleasm createdisk DISK1 /dev/sdb1
Marking disk "DISK1" as an ASM disk:                       [  OK  ]
[root@PNETN1 ~]# /etc/init.d/oracleasm createdisk DISK2 /dev/sdc1
Marking disk "DISK2" as an ASM disk:                       [  OK  ]
[root@PNETN1 ~]# /etc/init.d/oracleasm createdisk DISK3 /dev/sdd1
Marking disk "DISK3" as an ASM disk:                       [  OK  ]
[root@PNETN1 ~]# /etc/init.d/oracleasm createdisk DISK4 /dev/sde1
Marking disk "DISK4" as an ASM disk:                       [  OK  ]
[root@PNETN1 ~]# /etc/init.d/oracleasm createdisk DISK5 /dev/sdf1
Marking disk "DISK5" as an ASM disk:                       [  OK  ]
[root@PNETN1 ~]# /etc/init.d/oracleasm createdisk DISK6 /dev/sdg1
Marking disk "DISK6" as an ASM disk:                       [  OK  ]
[root@PNETN1 ~]#

SCAN/LIST ASMDISKS-----On each NODE.

[root@PNETN2 ~]# /etc/init.d/oracleasm scandisks
Scanning the system for Oracle ASMLib disks:               [  OK  ]
[root@PNETN2 ~]# /etc/init.d/oracleasm listdisks
DISK1
DISK2
DISK3
DISK4
DISK5
DISK6
[root@PNETN2 ~]#

SET OWNERSHIP/PERMISSION ON ASMDISKS-----on each NODE.

you can either set permission on /etc/rc.d/rc.local OR /etc/udev/rules.d/99-sd.rules

I have used /etc/rc.d/rc.local which resulted in PRVF-5148 , which can be ignored.

[root@PNETN1 ~]# vi /etc/rc.d/rc.local
#!/bin/sh
touch /var/lock/subsys/local
chown grid:asmadmin /dev/sdb1
chown grid:asmadmin /dev/sdc1
chown grid:asmadmin /dev/sdd1
chown grid:asmadmin /dev/sde1
chown grid:asmadmin /dev/sdf1
chown grid:asmadmin /dev/sdg1
chown grid:asmadmin /dev/sdh1
chown grid:asmadmin /dev/sdi1
chown oracle:oinstall /dev/sdj1
chmod 660 /dev/sdb1
chmod 660 /dev/sdc1
chmod 660 /dev/sdd1
chmod 660 /dev/sde1
chmod 660 /dev/sdf1
chmod 660 /dev/sdg1
chmod 660 /dev/sdh1
chmod 660 /dev/sdi1
chmod 777 /dev/sdj1

*OR

You can also do it as below which will result in PRVF-5149.but cause will be unknown.

[root@PNETN3 rules.d]# vi /etc/udev/rules.d/99-sd.rules
KERNEL=="sdb[1]", OWNER="grid", GROUP="asmadmin", MODE="660"
KERNEL=="sdc[1]", OWNER="grid", GROUP="asmadmin", MODE="660"
KERNEL=="sdd[1]", OWNER="grid", GROUP="asmadmin", MODE="660"
KERNEL=="sde[1]", OWNER="grid", GROUP="asmadmin", MODE="660"
KERNEL=="sdf[1]", OWNER="grid", GROUP="asmadmin", MODE="660"
KERNEL=="sdg[1]", OWNER="grid", GROUP="asmadmin", MODE="660"
KERNEL=="sdh[1]", OWNER="grid", GROUP="asmadmin", MODE="660"
KERNEL=="sdi[1]", OWNER="grid", GROUP="asmadmin", MODE="660"
KERNEL=="sdj[1]", OWNER="oracle", GROUP="oinstall", MODE="777"

---copy to each node. 
[root@PNETN3 rules.d]# vi /etc/udev/rules.d/99-oracle-asmdevices.rules
[root@PNETN3 rules.d]# scp /etc/udev/rules.d/99-oracle-asmdevices.rules root@PNETN1:/etc/udev/rules.d/
The authenticity of host 'pnetn1 (192.168.100.126)' can't be established.
RSA key fingerprint is 27:ac:4b:9a:e3:d2:ae:6d:2b:71:99:8d:b9:c0:b1:a7.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'pnetn1,192.168.100.126' (RSA) to the list of known hosts.
root@pnetn1's password:
99-oracle-asmdevices.rules                                                                                               100%  551     0.5KB/s   00:00
[root@PNETN3 rules.d]# scp /etc/udev/rules.d/99-oracle-asmdevices.rules root@PNETN2:/etc/udev/rules.d/
root@pnetn2's password:
99-oracle-asmdevices.rules                                                                                               100%  551     0.5KB/s   00:00
[root@PNETN3 rules.d]#

---execute on each node. 

/sbin/partprobe /dev/sdb1
/sbin/partprobe /dev/sdc1
/sbin/partprobe /dev/sdd1
/sbin/partprobe /dev/sde1
/sbin/partprobe /dev/sdf1
/sbin/partprobe /dev/sdg1
/sbin/partprobe /dev/sdh1
/sbin/partprobe /dev/sdi1     
/sbin/partprobe /dev/sdj1

----execute on each node. 
/sbin/udevcontrol reload_rules
/sbin/start_udev

[root@PNETN1 rules.d]# /sbin/udevcontrol reload_rules
[root@PNETN1 rules.d]# /sbin/start_udev
Starting udev:                                             [  OK  ]


CHECK PERMISSION.

[root@PNETN1 rules.d]# ls -lart /dev/sd*
brw-r----- 1 root   disk     8, 144 Jul 25 07:43 /dev/sdj
brw-r----- 1 root   disk     8, 128 Jul 25 07:43 /dev/sdi
brw-r----- 1 root   disk     8, 112 Jul 25 07:43 /dev/sdh
brw-r----- 1 root   disk     8,  96 Jul 25 07:43 /dev/sdg
brw-r----- 1 root   disk     8,  80 Jul 25 07:43 /dev/sdf
brw-r----- 1 root   disk     8,  64 Jul 25 07:43 /dev/sde
brw-r----- 1 root   disk     8,  48 Jul 25 07:43 /dev/sdd
brw-r----- 1 root   disk     8,  32 Jul 25 07:43 /dev/sdc
brw-r----- 1 root   disk     8,  16 Jul 25 07:43 /dev/sdb
brw-r----- 1 root   disk     8,   5 Jul 25 07:43 /dev/sda5
brw-r----- 1 root   disk     8,   4 Jul 25 07:43 /dev/sda4
brw-r----- 1 root   disk     8,   0 Jul 25 07:43 /dev/sda
brw-r----- 1 root   disk     8,   3 Jul 25 07:44 /dev/sda3
brw-r----- 1 root   disk     8,   2 Jul 25 07:44 /dev/sda2
brw-r----- 1 root   disk     8,   1 Jul 25 07:44 /dev/sda1
brw-rw---- 1 grid   asmadmin 8,  17 Jul 25 07:44 /dev/sdb1
brw-rw---- 1 grid   asmadmin 8,  33 Jul 25 07:44 /dev/sdc1
brw-rw---- 1 grid   asmadmin 8,  49 Jul 25 07:44 /dev/sdd1
brw-rw---- 1 grid   asmadmin 8,  65 Jul 25 07:44 /dev/sde1
brw-rw---- 1 grid   asmadmin 8,  81 Jul 25 07:44 /dev/sdf1
brw-rw---- 1 grid   asmadmin 8,  97 Jul 25 07:44 /dev/sdg1
brw-rw---- 1 grid   asmadmin 8, 113 Jul 25 07:44 /dev/sdh1
brw-rw---- 1 grid   asmadmin 8, 129 Jul 25 07:44 /dev/sdi1
brwxrwxrwx 1 oracle oinstall 8, 145 Jul 25 07:44 /dev/sdj1

----runcluvfy.sh

PNETN1@:/u01/patch/p10098816_112020_Linux-x86-64_grid : $./runcluvfy.sh stage -pre crsinst -n PNETN1,PNETN2,PNETN3 -verbose

Performing pre-checks for cluster services setup

Checking node reachability...

Check: Node reachability from node "PNETN1"
  Destination Node                      Reachable?
  ------------------------------------  ------------------------
  PNETN1                                yes
  PNETN2                                yes
  PNETN3                                yes
Result: Node reachability check passed from node "PNETN1"


Checking user equivalence...

Check: User equivalence for user "grid"
  Node Name                             Comment
  ------------------------------------  ------------------------
  PNETN3                                passed
  PNETN2                                passed
  PNETN1                                passed
Result: User equivalence check passed for user "grid"

Checking node connectivity...

Checking hosts config file...
  Node Name     Status                    Comment
  ------------  ------------------------  ------------------------
  PNETN3        passed
  PNETN2        passed
  PNETN1        passed

Verification of the hosts config file successful


Interface information for node "PNETN3"
 Name   IP Address      Subnet          Gateway         Def. Gateway    HW Address        MTU
 ------ --------------- --------------- --------------- --------------- ----------------- ------
 eth0   192.168.100.128 192.168.100.0   0.0.0.0         UNKNOWN         00:0C:29:F5:6F:F0 1500
 eth1   192.168.152.128 192.168.152.0   0.0.0.0         UNKNOWN         00:0C:29:F5:6F:FA 1500


Interface information for node "PNETN2"
 Name   IP Address      Subnet          Gateway         Def. Gateway    HW Address        MTU
 ------ --------------- --------------- --------------- --------------- ----------------- ------
 eth0   192.168.100.127 192.168.100.0   0.0.0.0         UNKNOWN         00:0C:29:BB:4A:C2 1500
 eth1   192.168.152.127 192.168.152.0   0.0.0.0         UNKNOWN         00:0C:29:BB:4A:CC 1500


Interface information for node "PNETN1"
 Name   IP Address      Subnet          Gateway         Def. Gateway    HW Address        MTU
 ------ --------------- --------------- --------------- --------------- ----------------- ------
 eth0   192.168.100.126 192.168.100.0   0.0.0.0         192.168.100.1   00:0C:29:01:0F:8B 1500
 eth1   192.168.152.126 192.168.152.0   0.0.0.0         192.168.100.1   00:0C:29:01:0F:95 1500


Check: Node connectivity of subnet "192.168.100.0"
  Source                          Destination                     Connected?
  ------------------------------  ------------------------------  ----------------
  PNETN3[192.168.100.128]         PNETN2[192.168.100.127]         yes
  PNETN3[192.168.100.128]         PNETN1[192.168.100.126]         yes
  PNETN2[192.168.100.127]         PNETN1[192.168.100.126]         yes
Result: Node connectivity passed for subnet "192.168.100.0" with node(s) PNETN3,PNETN2,PNETN1


Check: TCP connectivity of subnet "192.168.100.0"
  Source                          Destination                     Connected?
  ------------------------------  ------------------------------  ----------------
  PNETN1:192.168.100.126          PNETN3:192.168.100.128          passed
  PNETN1:192.168.100.126          PNETN2:192.168.100.127          passed
Result: TCP connectivity check passed for subnet "192.168.100.0"


Check: Node connectivity of subnet "192.168.152.0"
  Source                          Destination                     Connected?
  ------------------------------  ------------------------------  ----------------
  PNETN3[192.168.152.128]         PNETN2[192.168.152.127]         yes
  PNETN3[192.168.152.128]         PNETN1[192.168.152.126]         yes
  PNETN2[192.168.152.127]         PNETN1[192.168.152.126]         yes
Result: Node connectivity passed for subnet "192.168.152.0" with node(s) PNETN3,PNETN2,PNETN1


Check: TCP connectivity of subnet "192.168.152.0"
  Source                          Destination                     Connected?
  ------------------------------  ------------------------------  ----------------
  PNETN1:192.168.152.126          PNETN3:192.168.152.128          passed
  PNETN1:192.168.152.126          PNETN2:192.168.152.127          passed
Result: TCP connectivity check passed for subnet "192.168.152.0"


Interfaces found on subnet "192.168.152.0" that are likely candidates for a private interconnect are:
PNETN3 eth1:192.168.152.128
PNETN2 eth1:192.168.152.127
PNETN1 eth1:192.168.152.126

WARNING:
Could not find a suitable set of interfaces for VIPs

Result: Node connectivity check passed


Checking ASMLib configuration.
  Node Name                             Comment
  ------------------------------------  ------------------------
  PNETN3                                passed
  PNETN2                                passed
  PNETN1                                passed
Result: Check for ASMLib configuration passed.

Check: Total memory
  Node Name     Available                 Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        1.6625GB (1743280.0KB)    1.5GB (1572864.0KB)       passed
  PNETN2        1.6625GB (1743280.0KB)    1.5GB (1572864.0KB)       passed
  PNETN1        1.6625GB (1743280.0KB)    1.5GB (1572864.0KB)       passed
Result: Total memory check passed

Check: Available memory
  Node Name     Available                 Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        1.5201GB (1593932.0KB)    50MB (51200.0KB)          passed
  PNETN2        1.5202GB (1594000.0KB)    50MB (51200.0KB)          passed
  PNETN1        1.4477GB (1518024.0KB)    50MB (51200.0KB)          passed
Result: Available memory check passed

Check: Swap space
  Node Name     Available                 Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        3.8437GB (4030456.0KB)    2.4938GB (2614920.0KB)    passed
  PNETN2        3.8437GB (4030456.0KB)    2.4938GB (2614920.0KB)    passed
  PNETN1        3.8437GB (4030456.0KB)    2.4938GB (2614920.0KB)    passed
Result: Swap space check passed

Check: Free disk space for "PNETN3:/tmp"
  Path              Node Name     Mount point   Available     Required      Comment
  ----------------  ------------  ------------  ------------  ------------  ------------
  /tmp              PNETN3        /             2.7852GB      1GB           passed
Result: Free disk space check passed for "PNETN3:/tmp"

Check: Free disk space for "PNETN2:/tmp"
  Path              Node Name     Mount point   Available     Required      Comment
  ----------------  ------------  ------------  ------------  ------------  ------------
  /tmp              PNETN2        /             2.7852GB      1GB           passed
Result: Free disk space check passed for "PNETN2:/tmp"

Check: Free disk space for "PNETN1:/tmp"
  Path              Node Name     Mount point   Available     Required      Comment
  ----------------  ------------  ------------  ------------  ------------  ------------
  /tmp              PNETN1        /             2.5402GB      1GB           passed
Result: Free disk space check passed for "PNETN1:/tmp"

Check: User existence for "grid"
  Node Name     Status                    Comment
  ------------  ------------------------  ------------------------
  PNETN3        exists(1100)              passed
  PNETN2        exists(1100)              passed
  PNETN1        exists(1100)              passed

Checking for multiple users with UID value 1100
Result: Check for multiple users with UID value 1100 passed
Result: User existence check passed for "grid"

Check: Group existence for "oinstall"
  Node Name     Status                    Comment
  ------------  ------------------------  ------------------------
  PNETN3        exists                    passed
  PNETN2        exists                    passed
  PNETN1        exists                    passed
Result: Group existence check passed for "oinstall"

Check: Group existence for "dba"
  Node Name     Status                    Comment
  ------------  ------------------------  ------------------------
  PNETN3        exists                    passed
  PNETN2        exists                    passed
  PNETN1        exists                    passed
Result: Group existence check passed for "dba"

Check: Membership of user "grid" in group "oinstall" [as Primary]
  Node Name         User Exists   Group Exists  User in Group  Primary       Comment
  ----------------  ------------  ------------  ------------  ------------  ------------
  PNETN3            yes           yes           yes           yes           passed
  PNETN2            yes           yes           yes           yes           passed
  PNETN1            yes           yes           yes           yes           passed
Result: Membership check for user "grid" in group "oinstall" [as Primary] passed

Check: Membership of user "grid" in group "dba"
  Node Name         User Exists   Group Exists  User in Group  Comment
  ----------------  ------------  ------------  ------------  ----------------
  PNETN3            yes           yes           no            failed
  PNETN2            yes           yes           no            failed
  PNETN1            yes           yes           no            failed
Result: Membership check for user "grid" in group "dba" failed

Check: Run level
  Node Name     run level                 Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        5                         3,5                       passed
  PNETN2        5                         3,5                       passed
  PNETN1        5                         3,5                       passed
Result: Run level check passed

Check: Hard limits for "maximum open file descriptors"
  Node Name         Type          Available     Required      Comment
  ----------------  ------------  ------------  ------------  ----------------
  PNETN3            hard          131072        65536         passed
  PNETN2            hard          131072        65536         passed
  PNETN1            hard          131072        65536         passed
Result: Hard limits check passed for "maximum open file descriptors"

Check: Soft limits for "maximum open file descriptors"
  Node Name         Type          Available     Required      Comment
  ----------------  ------------  ------------  ------------  ----------------
  PNETN3            soft          131072        1024          passed
  PNETN2            soft          131072        1024          passed
  PNETN1            soft          131072        1024          passed
Result: Soft limits check passed for "maximum open file descriptors"

Check: Hard limits for "maximum user processes"
  Node Name         Type          Available     Required      Comment
  ----------------  ------------  ------------  ------------  ----------------
  PNETN3            hard          131072        16384         passed
  PNETN2            hard          131072        16384         passed
  PNETN1            hard          131072        16384         passed
Result: Hard limits check passed for "maximum user processes"

Check: Soft limits for "maximum user processes"
  Node Name         Type          Available     Required      Comment
  ----------------  ------------  ------------  ------------  ----------------
  PNETN3            soft          131072        2047          passed
  PNETN2            soft          131072        2047          passed
  PNETN1            soft          131072        2047          passed
Result: Soft limits check passed for "maximum user processes"

Check: System architecture
  Node Name     Available                 Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        x86_64                    x86_64                    passed
  PNETN2        x86_64                    x86_64                    passed
  PNETN1        x86_64                    x86_64                    passed
Result: System architecture check passed

Check: Kernel version
  Node Name     Available                 Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        2.6.18-164.el5xen         2.6.18                    passed
  PNETN2        2.6.18-164.el5xen         2.6.18                    passed
  PNETN1        2.6.18-164.el5xen         2.6.18                    passed
Result: Kernel version check passed

Check: Kernel parameter for "semmsl"
  Node Name     Configured                Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        250                       250                       passed
  PNETN2        250                       250                       passed
  PNETN1        250                       250                       passed
Result: Kernel parameter check passed for "semmsl"

Check: Kernel parameter for "semmns"
  Node Name     Configured                Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        32000                     32000                     passed
  PNETN2        32000                     32000                     passed
  PNETN1        32000                     32000                     passed
Result: Kernel parameter check passed for "semmns"

Check: Kernel parameter for "semopm"
  Node Name     Configured                Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        100                       100                       passed
  PNETN2        100                       100                       passed
  PNETN1        100                       100                       passed
Result: Kernel parameter check passed for "semopm"

Check: Kernel parameter for "semmni"
  Node Name     Configured                Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        142                       128                       passed
  PNETN2        142                       128                       passed
  PNETN1        142                       128                       passed
Result: Kernel parameter check passed for "semmni"

Check: Kernel parameter for "shmmax"
  Node Name     Configured                Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        4398046511104             892559360                 passed
  PNETN2        4398046511104             892559360                 passed
  PNETN1        4398046511104             892559360                 passed
Result: Kernel parameter check passed for "shmmax"

Check: Kernel parameter for "shmmni"
  Node Name     Configured                Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        4096                      4096                      passed
  PNETN2        4096                      4096                      passed
  PNETN1        4096                      4096                      passed
Result: Kernel parameter check passed for "shmmni"

Check: Kernel parameter for "shmall"
  Node Name     Configured                Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        1073741824                2097152                   passed
  PNETN2        1073741824                2097152                   passed
  PNETN1        1073741824                2097152                   passed
Result: Kernel parameter check passed for "shmall"

Check: Kernel parameter for "file-max"
  Node Name     Configured                Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        6815744                   6815744                   passed
  PNETN2        6815744                   6815744                   passed
  PNETN1        6815744                   6815744                   passed
Result: Kernel parameter check passed for "file-max"

Check: Kernel parameter for "ip_local_port_range"
  Node Name     Configured                Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        between 9000 & 65500      between 9000 & 65500      passed
  PNETN2        between 9000 & 65500      between 9000 & 65500      passed
  PNETN1        between 9000 & 65500      between 9000 & 65500      passed
Result: Kernel parameter check passed for "ip_local_port_range"

Check: Kernel parameter for "rmem_default"
  Node Name     Configured                Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        262144                    262144                    passed
  PNETN2        262144                    262144                    passed
  PNETN1        262144                    262144                    passed
Result: Kernel parameter check passed for "rmem_default"

Check: Kernel parameter for "rmem_max"
  Node Name     Configured                Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        4194304                   4194304                   passed
  PNETN2        4194304                   4194304                   passed
  PNETN1        4194304                   4194304                   passed
Result: Kernel parameter check passed for "rmem_max"

Check: Kernel parameter for "wmem_default"
  Node Name     Configured                Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        262144                    262144                    passed
  PNETN2        262144                    262144                    passed
  PNETN1        262144                    262144                    passed
Result: Kernel parameter check passed for "wmem_default"

Check: Kernel parameter for "wmem_max"
  Node Name     Configured                Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        1048576                   1048576                   passed
  PNETN2        1048576                   1048576                   passed
  PNETN1        1048576                   1048576                   passed
Result: Kernel parameter check passed for "wmem_max"

Check: Kernel parameter for "aio-max-nr"
  Node Name     Configured                Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        3145728                   1048576                   passed
  PNETN2        3145728                   1048576                   passed
  PNETN1        3145728                   1048576                   passed
Result: Kernel parameter check passed for "aio-max-nr"

Check: Package existence for "make-3.81( x86_64)"
  Node Name     Available                 Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        make-3.81-3.el5           make-3.81( x86_64)        passed
  PNETN2        make-3.81-3.el5           make-3.81( x86_64)        passed
  PNETN1        make-3.81-3.el5           make-3.81( x86_64)        passed
Result: Package existence check passed for "make-3.81( x86_64)"

Check: Package existence for "binutils-2.17.50.0.6( x86_64)"
  Node Name     Available                 Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        binutils-2.17.50.0.6-12.el5  binutils-2.17.50.0.6( x86_64)  passed
  PNETN2        binutils-2.17.50.0.6-12.el5  binutils-2.17.50.0.6( x86_64)  passed
  PNETN1        binutils-2.17.50.0.6-12.el5  binutils-2.17.50.0.6( x86_64)  passed
Result: Package existence check passed for "binutils-2.17.50.0.6( x86_64)"

Check: Package existence for "gcc-4.1.2 (x86_64)( x86_64)"
  Node Name     Available                 Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        gcc-4.1.2-46.el5 (x86_64)  gcc-4.1.2 (x86_64)( x86_64)  passed
  PNETN2        gcc-4.1.2-46.el5 (x86_64)  gcc-4.1.2 (x86_64)( x86_64)  passed
  PNETN1        gcc-4.1.2-46.el5 (x86_64)  gcc-4.1.2 (x86_64)( x86_64)  passed
Result: Package existence check passed for "gcc-4.1.2 (x86_64)( x86_64)"

Check: Package existence for "libaio-0.3.106 (x86_64)( x86_64)"
  Node Name     Available                 Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        libaio-0.3.106-3.2 (x86_64)  libaio-0.3.106 (x86_64)( x86_64)  passed
  PNETN2        libaio-0.3.106-3.2 (x86_64)  libaio-0.3.106 (x86_64)( x86_64)  passed
  PNETN1        libaio-0.3.106-3.2 (x86_64)  libaio-0.3.106 (x86_64)( x86_64)  passed
Result: Package existence check passed for "libaio-0.3.106 (x86_64)( x86_64)"

Check: Package existence for "glibc-2.5-24 (x86_64)( x86_64)"
  Node Name     Available                 Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        glibc-2.5-42 (x86_64)     glibc-2.5-24 (x86_64)( x86_64)  passed
  PNETN2        glibc-2.5-42 (x86_64)     glibc-2.5-24 (x86_64)( x86_64)  passed
  PNETN1        glibc-2.5-42 (x86_64)     glibc-2.5-24 (x86_64)( x86_64)  passed
Result: Package existence check passed for "glibc-2.5-24 (x86_64)( x86_64)"

Check: Package existence for "compat-libstdc++-33-3.2.3 (x86_64)( x86_64)"
  Node Name     Available                 Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        compat-libstdc++-33-3.2.3-61 (x86_64)  compat-libstdc++-33-3.2.3 (x86_64)( x86_64)  passed
  PNETN2        compat-libstdc++-33-3.2.3-61 (x86_64)  compat-libstdc++-33-3.2.3 (x86_64)( x86_64)  passed
  PNETN1        compat-libstdc++-33-3.2.3-61 (x86_64)  compat-libstdc++-33-3.2.3 (x86_64)( x86_64)  passed
Result: Package existence check passed for "compat-libstdc++-33-3.2.3 (x86_64)( x86_64)"

Check: Package existence for "elfutils-libelf-0.125 (x86_64)( x86_64)"
  Node Name     Available                 Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        elfutils-libelf-0.137-3.el5 (x86_64)  elfutils-libelf-0.125 (x86_64)( x86_64)  passed
  PNETN2        elfutils-libelf-0.137-3.el5 (x86_64)  elfutils-libelf-0.125 (x86_64)( x86_64)  passed
  PNETN1        elfutils-libelf-0.137-3.el5 (x86_64)  elfutils-libelf-0.125 (x86_64)( x86_64)  passed
Result: Package existence check passed for "elfutils-libelf-0.125 (x86_64)( x86_64)"

Check: Package existence for "elfutils-libelf-devel-0.125( x86_64)"
  Node Name     Available                 Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        elfutils-libelf-devel-0.137-3.el5  elfutils-libelf-devel-0.125( x86_64)  passed
  PNETN2        elfutils-libelf-devel-0.137-3.el5  elfutils-libelf-devel-0.125( x86_64)  passed
  PNETN1        elfutils-libelf-devel-0.137-3.el5  elfutils-libelf-devel-0.125( x86_64)  passed
Result: Package existence check passed for "elfutils-libelf-devel-0.125( x86_64)"

Check: Package existence for "glibc-common-2.5( x86_64)"
  Node Name     Available                 Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        glibc-common-2.5-42       glibc-common-2.5( x86_64)  passed
  PNETN2        glibc-common-2.5-42       glibc-common-2.5( x86_64)  passed
  PNETN1        glibc-common-2.5-42       glibc-common-2.5( x86_64)  passed
Result: Package existence check passed for "glibc-common-2.5( x86_64)"

Check: Package existence for "glibc-devel-2.5 (x86_64)( x86_64)"
  Node Name     Available                 Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        glibc-devel-2.5-42 (x86_64)  glibc-devel-2.5 (x86_64)( x86_64)  passed
  PNETN2        glibc-devel-2.5-42 (x86_64)  glibc-devel-2.5 (x86_64)( x86_64)  passed
  PNETN1        glibc-devel-2.5-42 (x86_64)  glibc-devel-2.5 (x86_64)( x86_64)  passed
Result: Package existence check passed for "glibc-devel-2.5 (x86_64)( x86_64)"

Check: Package existence for "glibc-headers-2.5( x86_64)"
  Node Name     Available                 Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        glibc-headers-2.5-42      glibc-headers-2.5( x86_64)  passed
  PNETN2        glibc-headers-2.5-42      glibc-headers-2.5( x86_64)  passed
  PNETN1        glibc-headers-2.5-42      glibc-headers-2.5( x86_64)  passed
Result: Package existence check passed for "glibc-headers-2.5( x86_64)"

Check: Package existence for "gcc-c++-4.1.2 (x86_64)( x86_64)"
  Node Name     Available                 Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        gcc-c++-4.1.2-46.el5 (x86_64)  gcc-c++-4.1.2 (x86_64)( x86_64)  passed
  PNETN2        gcc-c++-4.1.2-46.el5 (x86_64)  gcc-c++-4.1.2 (x86_64)( x86_64)  passed
  PNETN1        gcc-c++-4.1.2-46.el5 (x86_64)  gcc-c++-4.1.2 (x86_64)( x86_64)  passed
Result: Package existence check passed for "gcc-c++-4.1.2 (x86_64)( x86_64)"

Check: Package existence for "libaio-devel-0.3.106 (x86_64)( x86_64)"
  Node Name     Available                 Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        libaio-devel-0.3.106-3.2 (x86_64)  libaio-devel-0.3.106 (x86_64)( x86_64)  passed
  PNETN2        libaio-devel-0.3.106-3.2 (x86_64)  libaio-devel-0.3.106 (x86_64)( x86_64)  passed
  PNETN1        libaio-devel-0.3.106-3.2 (x86_64)  libaio-devel-0.3.106 (x86_64)( x86_64)  passed
Result: Package existence check passed for "libaio-devel-0.3.106 (x86_64)( x86_64)"

Check: Package existence for "libgcc-4.1.2 (x86_64)( x86_64)"
  Node Name     Available                 Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        libgcc-4.1.2-46.el5 (x86_64)  libgcc-4.1.2 (x86_64)( x86_64)  passed
  PNETN2        libgcc-4.1.2-46.el5 (x86_64)  libgcc-4.1.2 (x86_64)( x86_64)  passed
  PNETN1        libgcc-4.1.2-46.el5 (x86_64)  libgcc-4.1.2 (x86_64)( x86_64)  passed
Result: Package existence check passed for "libgcc-4.1.2 (x86_64)( x86_64)"

Check: Package existence for "libstdc++-4.1.2 (x86_64)( x86_64)"
  Node Name     Available                 Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        libstdc++-4.1.2-46.el5 (x86_64)  libstdc++-4.1.2 (x86_64)( x86_64)  passed
  PNETN2        libstdc++-4.1.2-46.el5 (x86_64)  libstdc++-4.1.2 (x86_64)( x86_64)  passed
  PNETN1        libstdc++-4.1.2-46.el5 (x86_64)  libstdc++-4.1.2 (x86_64)( x86_64)  passed
Result: Package existence check passed for "libstdc++-4.1.2 (x86_64)( x86_64)"

Check: Package existence for "libstdc++-devel-4.1.2 (x86_64)( x86_64)"
  Node Name     Available                 Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        libstdc++-devel-4.1.2-46.el5 (x86_64)  libstdc++-devel-4.1.2 (x86_64)( x86_64)  passed
  PNETN2        libstdc++-devel-4.1.2-46.el5 (x86_64)  libstdc++-devel-4.1.2 (x86_64)( x86_64)  passed
  PNETN1        libstdc++-devel-4.1.2-46.el5 (x86_64)  libstdc++-devel-4.1.2 (x86_64)( x86_64)  passed
Result: Package existence check passed for "libstdc++-devel-4.1.2 (x86_64)( x86_64)"

Check: Package existence for "sysstat-7.0.2( x86_64)"
  Node Name     Available                 Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        sysstat-7.0.2-3.el5       sysstat-7.0.2( x86_64)    passed
  PNETN2        sysstat-7.0.2-3.el5       sysstat-7.0.2( x86_64)    passed
  PNETN1        sysstat-7.0.2-3.el5       sysstat-7.0.2( x86_64)    passed
Result: Package existence check passed for "sysstat-7.0.2( x86_64)"

Check: Package existence for "ksh-20060214( x86_64)"
  Node Name     Available                 Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        ksh-20080202-14.el5       ksh-20060214( x86_64)     passed
  PNETN2        ksh-20080202-14.el5       ksh-20060214( x86_64)     passed
  PNETN1        ksh-20080202-14.el5       ksh-20060214( x86_64)     passed
Result: Package existence check passed for "ksh-20060214( x86_64)"

Checking for multiple users with UID value 0
Result: Check for multiple users with UID value 0 passed

Check: Current group ID
Result: Current group ID check passed

Starting Clock synchronization checks using Network Time Protocol(NTP)...

NTP Configuration file check started...
Network Time Protocol(NTP) configuration file not found on any of the nodes. Oracle Cluster Time Synchronization Service(CTSS) can be used instead of NTP for time synchronization on the cluster nodes
No NTP Daemons or Services were found to be running

Result: Clock synchronization check using Network Time Protocol(NTP) passed

Checking Core file name pattern consistency...
Core file name pattern consistency check passed.

Checking to make sure user "grid" is not in "root" group
  Node Name     Status                    Comment
  ------------  ------------------------  ------------------------
  PNETN3        does not exist            passed
  PNETN2        does not exist            passed
  PNETN1        does not exist            passed
Result: User "grid" is not part of "root" group. Check passed

Check default user file creation mask
  Node Name     Available                 Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  PNETN3        0022                      0022                      passed
  PNETN2        0022                      0022                      passed
  PNETN1        unknown                   0022                      failed
Result: Default user file creation mask check failed
Checking consistency of file "/etc/resolv.conf" across nodes

Checking the file "/etc/resolv.conf" to make sure only one of domain and search entries is defined
File "/etc/resolv.conf" does not have both domain and search entries defined
Checking if domain entry in file "/etc/resolv.conf" is consistent across the nodes...
domain entry in file "/etc/resolv.conf" is consistent across nodes
Checking if search entry in file "/etc/resolv.conf" is consistent across the nodes...
search entry in file "/etc/resolv.conf" is consistent across nodes
Checking file "/etc/resolv.conf" to make sure that only one search entry is defined
All nodes have one search entry defined in file "/etc/resolv.conf"
Checking all nodes to make sure that search entry is "localdomain.com" as found on node "PNETN3"
All nodes of the cluster have same value for 'search'
Checking DNS response time for an unreachable node
  Node Name                             Status
  ------------------------------------  ------------------------
  PNETN3                                failed
  PNETN2                                failed
  PNETN1                                failed
PRVF-5636 : The DNS response time for an unreachable node exceeded "15000" ms on following nodes: PNETN3,PNETN2,PNETN1

File "/etc/resolv.conf" is not consistent across nodes

Check: Time zone consistency
Result: Time zone consistency check passed

Starting check for Huge Pages Existence ...

Check for Huge Pages Existence passed

Starting check for Hardware Clock synchronization at shutdown ...

Check for Hardware Clock synchronization at shutdown passed

Pre-check for cluster services setup was unsuccessful on all the nodes.


===============================
I have skipped  DNS response time/ user mask in my pre-requirement.
Check DNS response time using 
time nslookup
===============================

---INSTALL GI.
























Below error is result you can get  if you set disk permission using  /etc/rc.d/rc.local                                              









 At end this will fail at Oracle cluster verification Utility. This is due to umask were not set properly on PNETN1 node.

INFO: Default user file creation mask check failed
INFO: Check failed on nodes:
INFO:   PNETN1
INFO: Checking cluster integrity...
INFO: Checks did not pass for the following node(s):
INFO:   PNETN1
INFO:
WARNING:
INFO: Completed Plugin named: Oracle Cluster Verification Utility

But over-all Installation will be successfully. 

---INSTALL ORACLE













 ---RUN ROOT.SH on ALL NODES. 

[root@PNETN1 grid]# ./root.sh
Running Oracle 11g root script...

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u00/app/11.2.0/grid

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: /u00/app/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
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 daemon to inittab
ACFS-9200: Supported
ACFS-9300: ADVM/ACFS distribution files found.
ACFS-9307: Installing requested ADVM/ACFS software.
ACFS-9308: Loading installed ADVM/ACFS drivers.
ACFS-9321: Creating udev for ADVM/ACFS.
ACFS-9323: Creating module dependencies - this may take some time.
ACFS-9327: Verifying ADVM/ACFS devices.
ACFS-9309: ADVM/ACFS installation correctness verified.
CRS-2672: Attempting to start 'ora.mdnsd' on 'pnetn1'
CRS-2676: Start of 'ora.mdnsd' on 'pnetn1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'pnetn1'
CRS-2676: Start of 'ora.gpnpd' on 'pnetn1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'pnetn1'
CRS-2672: Attempting to start 'ora.gipcd' on 'pnetn1'
CRS-2676: Start of 'ora.gipcd' on 'pnetn1' succeeded
CRS-2676: Start of 'ora.cssdmonitor' on 'pnetn1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'pnetn1'
CRS-2672: Attempting to start 'ora.diskmon' on 'pnetn1'
CRS-2676: Start of 'ora.diskmon' on 'pnetn1' succeeded
CRS-2676: Start of 'ora.cssd' on 'pnetn1' succeeded

ASM created and started successfully.

Disk Group CRS 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 3e59c3d836244f36bf834c0c3c9f5484.
Successfully replaced voting disk group with +CRS.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   3e59c3d836244f36bf834c0c3c9f5484 (/dev/sdb1) [CRS]
Located 1 voting disk(s).
CRS-2672: Attempting to start 'ora.asm' on 'pnetn1'
CRS-2676: Start of 'ora.asm' on 'pnetn1' succeeded
CRS-2672: Attempting to start 'ora.CRS.dg' on 'pnetn1'
CRS-2676: Start of 'ora.CRS.dg' on 'pnetn1' succeeded
ACFS-9200: Supported
ACFS-9200: Supported
CRS-2672: Attempting to start 'ora.registry.acfs' on 'pnetn1'
CRS-2676: Start of 'ora.registry.acfs' on 'pnetn1' succeeded
Configure Oracle Grid Infrastructure for a Cluster ... succeeded

CHECK ALL RESOURCES.

---------------------------------------
[root@PNETN1 ~]# crsctl stat res -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.CRS.dg
               ONLINE  ONLINE       pnetn1
               ONLINE  ONLINE       pnetn2
               ONLINE  ONLINE       pnetn3
ora.LISTENER.lsnr
               ONLINE  ONLINE       pnetn1
               ONLINE  ONLINE       pnetn2
               ONLINE  ONLINE       pnetn3
ora.asm
               ONLINE  ONLINE       pnetn1
               ONLINE  ONLINE       pnetn2
               ONLINE  ONLINE       pnetn3
ora.gsd
               OFFLINE OFFLINE      pnetn1
               OFFLINE OFFLINE      pnetn2
               OFFLINE OFFLINE      pnetn3
ora.net1.network
               ONLINE  ONLINE       pnetn1
               ONLINE  ONLINE       pnetn2
               ONLINE  ONLINE       pnetn3
ora.ons
               ONLINE  ONLINE       pnetn1
               ONLINE  ONLINE       pnetn2
               ONLINE  ONLINE       pnetn3
ora.registry.acfs
               ONLINE  ONLINE       pnetn1
               ONLINE  ONLINE       pnetn2
               ONLINE  ONLINE       pnetn3
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       pnetn3
ora.LISTENER_SCAN2.lsnr
      1        ONLINE  ONLINE       pnetn1
ora.LISTENER_SCAN3.lsnr
      1        ONLINE  ONLINE       pnetn2
ora.cvu
      1        ONLINE  ONLINE       pnetn2
ora.oc4j
      1        ONLINE  ONLINE       pnetn2
ora.pnetn1.vip
      1        ONLINE  ONLINE       pnetn1
ora.pnetn2.vip
      1        ONLINE  ONLINE       pnetn2
ora.pnetn3.vip
      1        ONLINE  ONLINE       pnetn3
ora.scan1.vip
      1        ONLINE  ONLINE       pnetn3
ora.scan2.vip
      1        ONLINE  ONLINE       pnetn1
ora.scan3.vip
      1        ONLINE  ONLINE       pnetn2
[root@PNETN1 ~]#


RUN DATABASE root.sh

[root@PNETN3 db_1]# ./root.sh
Running Oracle 11g root script...

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /u01/app/oracle/11.2.0/db_1

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.

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.
Finished product-specific root actions.

CREATE DISKGROUP For DB.

PNETN1@:/home/grid : $. oraenv
ORACLE_SID = [grid] ? +ASM1
The Oracle base has been set to /u00/app/grid
PNETN1@:/home/grid :+ASM1 $sqlplus / as sysasm
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production

SQL> CREATE DISKGROUP EDW_DATA EXTERNAL REDUNDANCY DISK '/dev/sdc1','/dev/sdd1','/dev/sde1';

Diskgroup created.

SQL>

----MOUNT DISKGROUP ON OTHER NODES. 

PNETN2@:/home/grid :+ASM2 $sqlplus / as sysasm

SQL> ALTER DISKGROUP EDW_DATA MOUNT;

Diskgroup altered.

---------------RUN DBCA... SELECT EDW_DATA DISKGROUP for DB CREATION.


---------------LOGIN AS ORACLE and TEST READ/WRITE.

PNETN1@:/home/oracle :EDWP1 $. oraenv
ORACLE_SID = [EDWP1] ? EDWP1
The Oracle base has been set to /u01/app/oracle

PNETN1@:/home/oracle :EDWP1 $sqlplus / as sysdba

SQL*Plus: Release 11.2.0.2.0 Production on Thu Jul 26 06:47:10 2012

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


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

SQL> CREATE TABLESPACE TEST DATAFILE '+EDW_DATA' size 50m;

Tablespace created.

SQL> DROP TABLESPACE TEST INCLUDING CONTENTS;

Tablespace dropped.

Monday, July 16, 2012

Apply PSU on 11.2.0.1 Grid Infrastructure & Database Homes

1) Install New Opatch on each node------------(Do it for GI/DB home on each node)
2) Check new Opatch version / Inventory-------(Do it for GI/DB home on each node)
3) If GI/DB home are not shared make sure cluster is running on each nodes.
4) Generate OCM response file on each node----(Do it for GI/DB home on each node)
5) copy/unzip Patch into
6) Apply patch for GI Home--------------------(For each node as root)
7) Apply patch for DB Home--------------------(For each node as root - No Resource must be up from DB home)
8) Verify Patch is Applied.
9) Run catbundle.sql on Database.



Install New OPATCH on each node (Do it for GI/DB home on each node)
copy p6880880_112000_Linux-x86-64.zip to /u00/app/11.2.0/grid which is GRID_HOME

login as: root
root@192.168.100.126's password:
Last login: Fri Jul 13 09:37:48 2012 from 192.168.100.1
[root@PNETN1 ~]# . oraenv
ORACLE_SID = [root] ? +ASM1
The Oracle base for ORACLE_HOME=/u00/app/11.2.0/grid is /u00/app/oracle

[root@PNETN1 test]# cd /u00/app/11.2.0/grid
[root@PNETN1 grid]# mv OPatch/ Opatch_old
[root@PNETN1 grid]# unzip p6880880_112000_Linux-x86-64.zip
[root@PNETN1 grid]# chmod -R 777 Opatch 
[root@PNETN1 grid]# cd /u01/app/oracle/11.2.0/db_1/
[root@PNETN1 db_1]# mv OPatch/ Opatch_old
[root@PNETN1 db_1]# cp -R /u00/app/11.2.0/grid/OPatch/ /u01/app/oracle/11.2.0/db_1/
[root@PNETN1 db_1]# chmod -R 777 Opatch 


===================================================================

Check new Opatch version / Inventory. (Do it for GI/DB home on each node)

PNETN1@:/home/grid : $. oraenv
ORACLE_SID = [grid] ? +ASM1
The Oracle base for ORACLE_HOME=/u00/app/11.2.0/grid is /u00/app/oracle
PNETN1@:/home/grid :+ASM1 $$ORACLE_HOME/OPatch/opatch lsinventory
Oracle Interim Patch Installer version 11.2.0.3.0
Copyright (c) 2012, Oracle Corporation.  All rights reserved.


Oracle Home       : /u00/app/11.2.0/grid
Central Inventory : /u00/app/oraInventory
   from           : /u00/app/11.2.0/grid/oraInst.loc
OPatch version    : 11.2.0.3.0
OUI version       : 11.2.0.1.0
Log file location : /u00/app/11.2.0/grid/cfgtoollogs/opatch/opatch2012-07-15_09-34-31AM_1.log

Lsinventory Output file location : /u00/app/11.2.0/grid/cfgtoollogs/opatch/lsinv/lsinventory2012-07-15_09-34-31AM.txt

--------------------------------------------------------------------------------
Installed Top-level Products (1):

Oracle Grid Infrastructure                                           11.2.0.1.0
There are 1 products installed in this Oracle Home.


There are no Interim patches installed in this Oracle Home.


Rac system comprising of multiple nodes
  Local node = PNETN1
  Remote node = PNETN2
  Remote node = PNETN3
--------------------------------------------------------------------------------
OPatch succeeded.

===================================================================

If GI/DB home are not shared make sure cluster is running on each nodes.

--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.CRS.dg
               ONLINE  ONLINE       pnetn1
               ONLINE  ONLINE       pnetn2
               ONLINE  ONLINE       pnetn3
ora.LISTENER.lsnr
               ONLINE  ONLINE       pnetn1
               ONLINE  ONLINE       pnetn2
               ONLINE  ONLINE       pnetn3
ora.asm
               ONLINE  ONLINE       pnetn1                   Started
               ONLINE  ONLINE       pnetn2                   Started
               ONLINE  ONLINE       pnetn3                   Started
ora.eons
               ONLINE  ONLINE       pnetn1
               ONLINE  ONLINE       pnetn2
               ONLINE  ONLINE       pnetn3
ora.gsd
               OFFLINE OFFLINE      pnetn1
               OFFLINE OFFLINE      pnetn2
               OFFLINE OFFLINE      pnetn3
ora.net1.network
               ONLINE  ONLINE       pnetn1
               ONLINE  ONLINE       pnetn2
               ONLINE  ONLINE       pnetn3
ora.ons
               ONLINE  ONLINE       pnetn1
               ONLINE  ONLINE       pnetn2
               ONLINE  ONLINE       pnetn3
ora.registry.acfs
               ONLINE  ONLINE       pnetn1
               ONLINE  ONLINE       pnetn2
               ONLINE  ONLINE       pnetn3
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       pnetn3
ora.LISTENER_SCAN2.lsnr
      1        ONLINE  ONLINE       pnetn1
ora.LISTENER_SCAN3.lsnr
      1        ONLINE  ONLINE       pnetn2
ora.oc4j
      1        OFFLINE OFFLINE
ora.pnetn1.vip
      1        ONLINE  ONLINE       pnetn1
ora.pnetn2.vip
      1        ONLINE  ONLINE       pnetn2
ora.pnetn3.vip
      1        ONLINE  ONLINE       pnetn3
ora.scan1.vip
      1        ONLINE  ONLINE       pnetn3
ora.scan2.vip
      1        ONLINE  ONLINE       pnetn1
ora.scan3.vip
      1        ONLINE  ONLINE       pnetn2

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

===================================================================

Generate OCM response file on each node (Do it for GI/DB home)
This files will be generated into local directory if specific file-name are not given.

PNETN1@:/home/grid :+ASM1 $$ORACLE_HOME/OPatch/ocm/bin/emocmrsp

OCM Installation Response Generator 10.3.4.0.0 - Production
Copyright (c) 2005, 2010, Oracle and/or its affiliates.  All rights reserved.

Provide your email address to be informed of security issues, install and
initiate Oracle Configuration Manager. Easier for you if you use your My
Oracle Support Email address/User Name.
Visit http://www.oracle.com/support/policies.html for details.
Email address/User Name:

You have not provided an email address for notification of security issues.
Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]:  y
The OCM configuration response file (ocm.rsp) was successfully created.

===================================================================

Its good to copy patch into shared file-system if you have one.
copy patch into directory /u01/PATCH/ (Do it for each Node if filesystem is not shared).

[root@PNETN1 ~]# cd /u01/PATCH/
[root@PNETN1 ~]# chmod -R 777 PATCH
[root@PNETN1 ~]# unzip p9655006_112010.zip

which will be /u01/PATCH/p9655006_112010.

===================================================================

Apply patch on GI/DB home as root user , on each node one-by-one

Apply patch for GI Home as root user.

[root@PNETN1 ~]# . oraenv
ORACLE_SID = [+ASM1] ? +ASM1
The Oracle base for ORACLE_HOME=/u01/app/oracle/11.2.0/db_1 is /u00/app/oracle
[root@PNETN1 ~]# /u00/app/11.2.0/grid/OPatch/opatch auto /u01/PATCH/p9655006_112010 -oh /u00/app/11.2.0/grid
Executing /usr/bin/perl /u00/app/11.2.0/grid/OPatch/crs/patch112.pl -patchdir /u01/PATCH -patchn p9655006_112010 -oh /u00/app/11.2.0/grid -paramfile /u00/app/11.2.0/grid/crs/install/crsconfig_params
opatch auto log file location is /u00/app/11.2.0/grid/OPatch/crs/../../cfgtoollogs/opatchauto2012-07-15_15-50-28.log
Detected Oracle Clusterware install
Using configuration parameter file: /u00/app/11.2.0/grid/crs/install/crsconfig_params
OPatch  is bundled with OCM, Enter the absolute OCM response file path:
/home/grid/ocm.rsp

Unable to determine if /u00/app/11.2.0/grid is shared oracle home
Enter 'yes' if this is not a shared home or if the prerequiste actions are performed to patch this shared home (yes/no):yes
Successfully unlock /u00/app/11.2.0/grid
patch /u01/PATCH/p9655006_112010/9655006  apply successful for home  /u00/app/11.2.0/grid
patch /u01/PATCH/p9655006_112010/9654983  apply successful for home  /u00/app/11.2.0/grid
ACFS-9300: ADVM/ACFS distribution files found.
ACFS-9312: Existing ADVM/ACFS installation detected.
ACFS-9314: Removing previous ADVM/ACFS installation.
ACFS-9315: Previous ADVM/ACFS components successfully removed.
ACFS-9307: Installing requested ADVM/ACFS software.
ACFS-9308: Loading installed ADVM/ACFS drivers.
ACFS-9321: Creating udev for ADVM/ACFS.
ACFS-9323: Creating module dependencies - this may take some time.
ACFS-9327: Verifying ADVM/ACFS devices.
ACFS-9309: ADVM/ACFS installation correctness verified.
CRS-4123: Oracle High Availability Services has been started.

===================================================================

Apply patch for DB Home - Make sure if any resource are running for DB home is shut-down.


[root@PNETN1 ~]# . oraenv
ORACLE_SID = [+ASM1] ? test
The Oracle base for ORACLE_HOME=/u01/app/oracle/11.2.0/db_1 is /u00/app/oracle
[root@PNETN1 ~]# /u01/app/oracle/11.2.0/db_1/OPatch/opatch auto /u01/PATCH/p9655006_112010 -oh /u01/app/oracle/11.2.0/db_1
Executing /usr/bin/perl /u01/app/oracle/11.2.0/db_1/OPatch/crs/patch112.pl -patchdir /u01/PATCH -patchn p9655006_112010 -oh /u01/app/oracle/11.2.0/db_1 -paramfile /u00/app/11.2.0/grid/crs/install/crsconfig_params
opatch auto log file location is /u01/app/oracle/11.2.0/db_1/OPatch/crs/../../cfgtoollogs/opatchauto2012-07-15_16-56-48.log
Detected Oracle Clusterware install
Using configuration parameter file: /u00/app/11.2.0/grid/crs/install/crsconfig_params
OPatch  is bundled with OCM, Enter the absolute OCM response file path:
/home/oracle/ocm.rsp

Unable to determine if /u01/app/oracle/11.2.0/db_1 is shared oracle home
Enter 'yes' if this is not a shared home or if the prerequiste actions are performed to patch this shared home (yes/no):yes
patch /u01/PATCH/p9655006_112010/9655006/custom/server/9655006  apply successful for home  /u01/app/oracle/11.2.0/db_1
patch /u01/PATCH/p9655006_112010/9654983  apply successful for home  /u01/app/oracle/11.2.0/db_1
[root@PNETN1 ~]#

===================================================================
Verify Patch is Applied.

[root@PNETN1 ~]# su - grid
PNETN1@:/home/grid :+ASM1 $/u00/app/11.2.0/grid/OPatch/opatch lsinventory  -bugs_fixed | grep 'GI PSU'
9655006    9655006   Sun Jul 15 15:33:59 EDT 2012   GI PSU 11.2.0.1.2 (INCLUDES DATABASE PSU 11.2.0.1.
9778840    9655006   Sun Jul 15 15:33:59 EDT 2012   TRACKING BUG FOR GI PSU( THIS IS REPLACEMENT FOR
                                                    APRIL GI PSU 9343627)

[root@PNETN1 ~]# su - oracle
PNETN1@:/home/oracle :test $/u01/app/oracle/11.2.0/db_1/OPatch/opatch lsinventory  -bugs_fixed | grep 'DATABASE PSU'
9352237    9654983   Sun Jul 15 16:47:28 EDT 2012   DATABASE PSU 11.2.0.1.1
9654983    9654983   Sun Jul 15 16:47:28 EDT 2012   DATABASE PSU 11.2.0.1.2 (INCLUDES CPUJUL2010)
9655006    9655006   Sun Jul 15 16:45:17 EDT 2012   GI PSU 11.2.0.1.2 (INCLUDES DATABASE PSU 11.2.0.1.

===================================================================
Run catbundle.sql

connect as sysdba and run below script.

SQL> @?catbundle.sql psu apply



Wednesday, June 20, 2012

Goldengate on ASM / Goldengate on RAC / Goldengate on Grid Infrastructure

If you database is on ASM and running on below version.
  • Oracle 10.2.0.5 or later 10g R2 versions
  • Oracle 11.2.0.2 or later 11g R2 versions
Please visit, Goldengate on ASM using DBLOGREADER .

Environment used in Below exercise.


SOURCETARGET
DATABASEDEVDB (2 NODE RAC)TEST
DATABASE VERSION11.2.0.111.2.0.1
PLATFORMLinux, x64, 64bitLinux, x64, 64bit
STORAGEASMFile-system



Steps for Uni-directional Replication
1.   Add remote listener for ASM.
2.   EDIT ASM entry in  Listener.ora in $GRID_HOME/network/admin for All node respectively & Reload Listener.
3.   Add TNS entry for ASM on All Nodes
4.   Test ASM connection from sqlplus as sys user.
5.   Network configuration on Target.
6.   Configure Goldengate extract & Datapump for Source.
7.   Start extract & Datapump.
8.   Configure Goldengate Replicate for Target.
9.   Start replicate on target.
10. Confirm Goldengate connection on Source DB & ASM and Target DB.
11. Test Replication.

1) Add Remote listener for ASM.

ALTER SYSTEM SET remote_listener='RACD-SCAN:1521' SCOPE=BOTH SID='*';


2) Static registration of ASM in LISTNER.ORA IN $GRID_HOME/network/admin for All node respectively.
Edit below entry into Listener.ora intO $GRID_HOME/network/admin/listener.ora and Reload listener.

SID_LIST_LISTENER =
  (SID_LIST =
  (SID_DESC =
  (SID_NAME = PLSExtProc)
  (ORACLE_HOME = /u00/app/11.2.0/grid)
  (PROGRAM = extproc)
   )
   (SID_DESC =
    (ORACLE_HOME = /u00/app/11.2.0/grid)
    (SID_NAME = +ASM1)
   )
  )
  

---Reload listener.ora on All Nodes.

RACD1@:/u00/app/11.2.0/grid/network/admin :+ASM1 $lsnrctl reload

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 17-JUN-2012 16:09:01
Copyright (c) 1991, 2009, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
The command completed successfully


--Grid Infrastructure Network configuration on Source.

RACD1@:/u00/app/11.2.0/grid/network/admin :+ASM1 $ll
total 36
-rw-r--r--  1 oracle oinstall  187 May  7  2007 shrept.lst
drwxr-xr-x  2 oracle oinstall 4096 Jun  7 11:25 samples
drwxr-xr-x 11 oracle oinstall 4096 Jun  7 11:28 ..
-rw-r--r--  1 oracle oinstall  552 Jun  7 11:44 listener.ora.bak.racd1
-rw-r--r--  1 oracle oinstall  552 Jun  7 12:13 listener12060712PM1317.bak
-rw-r--r--  1 oracle oinstall  216 Jun  7 12:13 sqlnet.ora
-rw-r--r--  1 oracle oinstall  186 Jun 13 11:12 endpoints_listener.ora
-rw-r--r--  1 oracle oinstall  948 Jun 17 16:07 listener.ora
drwxr-xr-x  3 oracle oinstall 4096 Jun 17 16:07 .

RACD1@:/u00/app/11.2.0/grid/network/admin :+ASM1 $cat listener.ora
LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER))))            # line added by Agent
LISTENER_SCAN3=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN3))))                # line added by Agent
LISTENER_SCAN2=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN2))))                # line added by Agent
LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1))))                # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON                # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN2=ON                # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN3=ON                # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON              # line added by Agent

SID_LIST_LISTENER =
  (SID_LIST =
  (SID_DESC =
  (SID_NAME = PLSExtProc)
  (ORACLE_HOME = /u00/app/11.2.0/grid)
  (PROGRAM = extproc)
   )
   (SID_DESC =
    (ORACLE_HOME = /u00/app/11.2.0/grid)
    (SID_NAME = +ASM1)
   )
  )

RACD1@:/u00/app/11.2.0/grid/network/admin :+ASM1 $cat endpoints_listener.ora

LISTENER_RACD1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=RACD1-VIP)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.100.124)(PORT=1521)(IP=FIRST))))            # line added by Agent

RACD1@:/u00/app/11.2.0/grid/network/admin :+ASM1 $


---Listener status after changes.

--Listener status

RACD1@:/u00/app/11.2.0/grid/network/admin :+ASM1 $lsnrctl status

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 17-JUN-2012 18:25:38
Copyright (c) 1991, 2009, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date                17-JUN-2012 15:59:02
Uptime                    0 days 2 hr. 26 min. 36 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u00/app/11.2.0/grid/network/admin/listener.ora
Listener Log File         /u00/app/oracle/diag/tnslsnr/RACD1/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.100.124)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.100.134)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
  Instance "+ASM1", status READY, has 1 handler(s) for this service...
Service "+ASM1" has 1 instance(s).
  Instance "+ASM1", status UNKNOWN, has 1 handler(s) for this service...
Service "DEVDB" has 1 instance(s).
  Instance "DEVDB1", status READY, has 1 handler(s) for this service...
Service "DEVDBXDB" has 1 instance(s).
  Instance "DEVDB1", status READY, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully

--Listener services

RACD1@:/u00/app/11.2.0/grid/network/admin :+ASM1 $lsnrctl services

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 17-JUN-2012 18:27:07
Copyright (c) 1991, 2009, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
Services Summary...
Service "+ASM" has 1 instance(s).
  Instance "+ASM1", status READY, has 1 handler(s) for this service...
    Handler(s):
      "DEDICATED" established:1 refused:0 state:ready
         LOCAL SERVER
Service "+ASM1" has 1 instance(s).
  Instance "+ASM1", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
      "DEDICATED" established:0 refused:0
         LOCAL SERVER
Service "DEVDB" has 1 instance(s).
  Instance "DEVDB1", status READY, has 1 handler(s) for this service...
    Handler(s):
      "DEDICATED" established:1 refused:0 state:ready
         LOCAL SERVER
Service "DEVDBXDB" has 1 instance(s).
  Instance "DEVDB1", status READY, has 1 handler(s) for this service...
    Handler(s):
      "D000" established:0 refused:0 current:0 max:1022 state:ready
         DISPATCHER 
         (ADDRESS=(PROTOCOL=tcp)(HOST=RACD1.localdomain.com)(PORT=31649))
Service "PLSExtProc" has 1 instance(s).
  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
      "DEDICATED" established:0 refused:0
         LOCAL SERVER
The command completed successfully

3) ADDED TNS NAMES TO $ORACLE_HOME/network/admin/tnsnames.ora on All nodes.

+ASM =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = RACD-SCAN)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = +ASM)
    )
  )
  

4) Test +ASM tnsenry from $ORACLE_HOME

-----From Node1 

RACD1@:/u00/app/11.2.0/grid/network/admin :+ASM1 $. oraenv
ORACLE_SID = [+ASM1] ? DEVDB1
The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1 is /u00/app/oracle
RACD1@:/u00/app/11.2.0/grid/network/admin :DEVDB1 $sqlplus sys/Summer69@+ASM as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Sun Jun 17 18:12:29 2012
Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options


18:12:29 @+ASM->

------From Node 2 

RACD2@:/u00/app/11.2.0/grid/network/admin :+ASM2 $. oraenv
ORACLE_SID = [+ASM2] ? DEVDB2
The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1 is /u00/app/oracle
RACD2@:/u00/app/11.2.0/grid/network/admin :DEVDB2 $sqlplus sys/Summer69@+ASM as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Sun Jun 17 18:13:26 2012
Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options

18:13:15 @+ASM->


5) Network configuration on Target.

-- listener.ora on TARGET. 

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = /u00/app/oracle/product/11.2.0/db_1)
      (PROGRAM = extproc)
    )
  )


LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.100.101 )(PORT = 1521))
    )
  )

-- Tns entry on TARGET

TEST =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.100.101 )(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = TEST)
    )
  )




6) Configure Goldengate Extract & Datapump on Source

DBLOGIN is specially required for 10.2,for 11.1 DBLOGIN is not required but I did.As if you want to delete EXTRACT you have to first DBLOGIN
if you need help on syntax here it is.

GGSCI (RACD1.localdomain.com) > help add extract

--CONFIGURE EXTRACT RACDE

RACD1@:/u02/gghome :DEVDB1 $./ggsci

Oracle GoldenGate Command Interpreter for Oracle
Version 11.1.1.1.2 OGGCORE_11.1.1.1.2_PLATFORMS_111004.2100
Linux, x64, 64bit (optimized), Oracle 11g on Oct  4 2011 23:49:46


Copyright (C) 1995, 2011, Oracle and/or its affiliates. All rights reserved.


GGSCI (RACD1.localdomain.com) 1> DBLOGIN USERID GGSUSER
Password:
Successfully logged into database.
GGSCI (RACD1.localdomain.com) 3>ADD EXTRACT RACDE TRANLOG,BEGIN NOW,THREADS 2
GGSCI (RACD1.localdomain.com) 8>ADD EXTTRAIL ./dirdat/DE, EXTRACT RACDE
EXTTRAIL added.


GGSCI (RACD1.localdomain.com) 9> EDIT PARAMS RACDE
EXTRACT RACDE
---ORACLE ENVIRONMET 
SETENV (ORACLE_HOME = "/u01/app/oracle/product/11.2.0/db_1")
SETENV (ORACLE_SID = "DEVDB1")
USERID ggsuser, PASSWORD Summer2011
TRANLOGOPTIONS ASMUSER sys@+ASM, ASMPASSWORD Summer69
DYNAMICRESOLUTION
DISCARDFILE ./dirrpt/racde.dsc,PURGE, MEGABYTES 100
EXTTRAIL ./dirdat/DE
--DDL REPLICATION
DDL INCLUDE MAPPED OBJNAME TEST.*
--DML replication for SCHEMA level. 
TABLE TEST.*;


--CONFIGURE DATAPUMP RACDP

GGSCI (RACD1.localdomain.com) 10> ADD EXTRACT RACDP, EXTTRAILSOURCE ./dirdat/DE,begin now
EXTRACT added.
GGSCI (RACD1.localdomain.com) 12> ADD RMTTRAIL ./dirdat/DP, EXTRACT RACDP, MEGABYTES 100
RMTTRAIL added.
GGSCI (RACD1.localdomain.com) 13> edit params RACDP
EXTRACT RACDP
SETENV (ORACLE_HOME = "/u01/app/oracle/product/11.2.0/db_1")
SETENV (ORACLE_SID = "DEVDB1")
USERID ggsuser, PASSWORD Summer2011
PASSTHRU
RMTHOST 192.168.100.101, MGRPORT 7809
RMTTRAIL ./dirdat/DP
TABLE TEST.*;


GGSCI (RACD1.localdomain.com) 14> info all


Program     Status      Group       Lag           Time Since Chkpt


MANAGER     RUNNING
EXTRACT     STOPPED     RACDE       00:00:00      00:04:44
EXTRACT     STOPPED     RACDP       00:00:00      00:01:14



7) START EXTRACT & DATAPUMP

GGSCI (RACD1.localdomain.com) 15> start racde


Sending START request to MANAGER ...
EXTRACT RACDE starting


----Output from tail -f ggserr.log at time of starting extract. 


2012-06-17 17:01:06  INFO    OGG-00987  Oracle GoldenGate Command Interpreter for Oracle:  GGSCI command (oracle): edit params RACDP.
2012-06-17 17:01:49  INFO    OGG-00987  Oracle GoldenGate Command Interpreter for Oracle:  GGSCI command (oracle): start racde.
2012-06-17 17:01:49  INFO    OGG-00963  Oracle GoldenGate Manager for Oracle, mgr.prm:  Command received from GGSCI on host 192.168.100.124 (START EXTRACT RACDE ).
2012-06-17 17:01:50  INFO    OGG-00975  Oracle GoldenGate Manager for Oracle, mgr.prm:  EXTRACT RACDE starting.
2012-06-17 17:01:50  INFO    OGG-00992  Oracle GoldenGate Capture for Oracle, racde.prm:  EXTRACT RACDE starting.
2012-06-17 17:01:51  INFO    OGG-01635  Oracle GoldenGate Capture for Oracle, racde.prm:  BOUNDED RECOVERY: reset to initial or altered checkpoint.
2012-06-17 17:01:56  INFO    OGG-00546  Oracle GoldenGate Capture for Oracle, racde.prm:  Default thread stack size: 10485760.
2012-06-17 17:01:56  INFO    OGG-01515  Oracle GoldenGate Capture for Oracle, racde.prm:  Positioning to begin time Jun 17, 2012 4:57:01 PM.
2012-06-17 17:02:01  INFO    OGG-01516  Oracle GoldenGate Capture for Oracle, racde.prm:  Positioned to (Thread 1) Sequence 13, RBA 2676224, SCN 0.0, Jun 17, 2012 4:57:01 PM.
2012-06-17 17:02:01  INFO    OGG-01515  Oracle GoldenGate Capture for Oracle, racde.prm:  Positioning to begin time Jun 17, 2012 4:57:01 PM.
2012-06-17 17:02:01  INFO    OGG-01516  Oracle GoldenGate Capture for Oracle, racde.prm:  Positioned to (Thread 2) Sequence 17, RBA 2571264, SCN 0.0, Jun 17, 2012 4:57:01 PM.
2012-06-17 17:02:01  INFO    OGG-00993  Oracle GoldenGate Capture for Oracle, racde.prm:  EXTRACT RACDE started.
2012-06-17 17:02:01  INFO    OGG-01517  Oracle GoldenGate Capture for Oracle, racde.prm:  Position of first record processed for Thread 1, Sequence 13, RBA 2681872, SCN 0.1079716, Jun 17, 2012 4:57:12 PM.
2012-06-17 17:02:01  INFO    OGG-01052  Oracle GoldenGate Capture for Oracle, racde.prm:  No recovery is required for target file ./dirdat/DE000000, at RBA 0 (file not opened).
2012-06-17 17:02:01  INFO    OGG-01478  Oracle GoldenGate Capture for Oracle, racde.prm:  Output file ./dirdat/DE is using format RELEASE 10.4/11.1.
2012-06-17 17:02:02  INFO    OGG-01517  Oracle GoldenGate Capture for Oracle, racde.prm:  Position of first record processed for Thread 2, Sequence 17, RBA 2630160, SCN 0.1079872, Jun 17, 2012 4:58:57 PM.


GGSCI (RACD1.localdomain.com) 16> START racdp


Sending START request to MANAGER ...
EXTRACT RACDP starting


----Output from tail -f ggserr.log at time of starting Pump. 


2012-06-17 17:07:03  INFO    OGG-00963  Oracle GoldenGate Manager for Oracle, mgr.prm:  Command received from GGSCI on host 192.168.100.124 (START EXTRACT RACDP ).
2012-06-17 17:07:03  INFO    OGG-00975  Oracle GoldenGate Manager for Oracle, mgr.prm:  EXTRACT RACDP starting.
2012-06-17 17:07:03  INFO    OGG-00992  Oracle GoldenGate Capture for Oracle, racdp.prm:  EXTRACT RACDP starting.
2012-06-17 17:07:03  WARNING OGG-01015  Oracle GoldenGate Capture for Oracle, racdp.prm:  Positioning with begin time: Jun 17, 2012 5:00:31 PM, waiting for data: at extseqno 0, extrba 0.
2012-06-17 17:07:03  INFO    OGG-00993  Oracle GoldenGate Capture for Oracle, racdp.prm:  EXTRACT RACDP started.
2012-06-17 17:07:08  INFO    OGG-01226  Oracle GoldenGate Capture for Oracle, racdp.prm:  Socket buffer size set to 27985 (flush size 27985).
2012-06-17 17:07:08  INFO    OGG-01052  Oracle GoldenGate Capture for Oracle, racdp.prm:  No recovery is required for target file ./dirdat/DP000000, at RBA 0 (file not opened).
2012-06-17 17:07:08  INFO    OGG-01478  Oracle GoldenGate Capture for Oracle, racdp.prm:  Output file ./dirdat/DP is using format RELEASE 10.4/11.1.

GGSCI (RACD1.localdomain.com) 4> info all

Program     Status      Group       Lag           Time Since Chkpt

MANAGER     RUNNING
EXTRACT     RUNNING     RACDE       00:00:00      00:00:03
EXTRACT     RUNNING     RACDP       00:00:00      00:00:05


8) Configure Goldengate for Replicate on Target.

--CONFIGURE REPLICATE RACDR

TEST:/u00/app/gghome :TEST$./ggsci


Oracle GoldenGate Command Interpreter for Oracle
Version 11.1.1.1.2 OGGCORE_11.1.1.1.2_PLATFORMS_111004.2100
Linux, x64, 64bit (optimized), Oracle 11g on Oct  4 2011 23:49:46


Copyright (C) 1995, 2011, Oracle and/or its affiliates. All rights reserved.

GGSCI (TEST.localdomain.com) 1> ADD REPLICAT RACDR, EXTTRAIL ./dirdat/DP,checkpointtable ggsuser.ckpt
REPLICAT added.

GGSCI (TEST.localdomain.com) 2> edit params RACDR
REPLICAT RACDR
SETENV (ORACLE_HOME = "/u00/app/oracle/product/11.2.0/db_1")
SETENV (ORACLE_SID = "TEST")
--Assume DDL of Source.
ASSUMETARGETDEFS
USERID ggsuser, PASSWORD Summer2011
DISCARDFILE ./dirrpt/RACDR.dsc, append, megabytes 100
--DLL replication. 
DDL INCLUDE ALL
--DML replication from TEST schema to TEST schema. 
MAP TEST.*, TARGET TEST.*;

9). Start replicate on target.

GGSCI (TEST.localdomain.com) 3> start racdr

Sending START request to MANAGER ...
REPLICAT RACDR starting

----Output from tail -f ggserr.log at time of starting Replicate


2012-06-17 14:31:17  INFO    OGG-00987  Oracle GoldenGate Command Interpreter for Oracle:  GGSCI command (oracle): start racdr.
2012-06-17 14:31:17  INFO    OGG-00963  Oracle GoldenGate Manager for Oracle, mgr.prm:  Command received from GGSCI on host 192.168.100.101 (START REPLICAT RACDR ).
2012-06-17 14:31:17  INFO    OGG-00975  Oracle GoldenGate Manager for Oracle, mgr.prm:  REPLICAT RACDR starting.
2012-06-17 14:31:17  INFO    OGG-00995  Oracle GoldenGate Delivery for Oracle, racdr.prm:  REPLICAT RACDR starting.
2012-06-17 14:31:17  INFO    OGG-00996  Oracle GoldenGate Delivery for Oracle, racdr.prm:  REPLICAT RACDR started.


GGSCI (TEST.localdomain.com) 4> info all


Program     Status      Group       Lag           Time Since Chkpt


MANAGER     RUNNING
REPLICAT    RUNNING     RACDR       00:00:00      00:00:01

GGSCI (TEST.localdomain.com) 5> exit

10). Confirm Goldengate connection on Source DB & ASM and Target DB.

-----Goldengate Connection on Source DB

RACD2@:/u01/app/oracle/product/11.2.0/db_1/network/admin :DEVDB2$sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Sun Jun 17 17:36:53 2012
Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options


set lines 170
col machine for a25
COL USERNAME FOR A10
SELECT USERNAME,INST_ID,PROGRAM,machine,process from gv$session WHERE PROGRAM LIKE 'extract%';
USERNAME      INST_ID PROGRAM                                          MACHINE                   PROCESS
---------- ---------- ------------------------------------------------ ------------------------- ------------------------
GGSUSER             1 extract@RACD1.localdomain.com (TNS V1-V3)        RACD1.localdomain.com     7650
GGSUSER             1 extract@RACD1.localdomain.com (TNS V1-V3)        RACD1.localdomain.com     7650
GGSUSER             1 extract@RACD1.localdomain.com (TNS V1-V3)        RACD1.localdomain.com     7889
GGSUSER             1 extract@RACD1.localdomain.com (TNS V1-V3)        RACD1.localdomain.com     7650

-----Goldengate Connection on Source ASM

RACD2@:/u01/app/oracle/product/11.2.0/db_1/network/admin :+ASM2 $orasql

SQL*Plus: Release 11.2.0.1.0 Production on Sun Jun 17 19:03:26 2012
Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options
set lines 170
col machine for a25
COL USERNAME FOR A10
SELECT USERNAME,INST_ID,PROGRAM,machine,process from gv$session WHERE PROGRAM LIKE 'extract%';
USERNAME      INST_ID PROGRAM                                          MACHINE                   PROCESS
---------- ---------- ------------------------------------------------ ------------------------- ------------------------
SYS                 2 extract@RACD1.localdomain.com (TNS V1-V3)        RACD1.localdomain.com     7650
SYS                 2 extract@RACD1.localdomain.com (TNS V1-V3)        RACD1.localdomain.com     7650

----Goldengate connection on Target DB

SELECT USERNAME,INST_ID,PROGRAM,machine,process from gv$session WHERE PROGRAM LIKE 'replicat%';
USERNAME                INST_ID PROGRAM                                          MACHINE                   PROCESS
---------- -------------------- ------------------------------------------------ ------------------------- ------------------------
GGSUSER                       1 replicat@TEST.localdomain.com (TNS V1-V3)        TEST.localdomain.com      3875

11. Test Replication.
////////////////////////////////////////////////////////////////
DDL+DML replication Test
////////////////////////////////////////////////////////////////


ON NODE2. Create Table & Insert few records.

RACD2@:/u01/app/oracle/product/11.2.0/db_1/network/admin :DEVDB2 $sqlplus / as sysdba


SQL*Plus: Release 11.2.0.1.0 Production on Sun Jun 17 17:36:53 2012

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

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

create table TEST.INFORMATION(
  ID                 VARCHAR2(4 BYTE)         NOT NULL,
  First_Name         VARCHAR2(10 BYTE),
  4    Last_Name          VARCHAR2(10 BYTE),
  Start_Date         DATE,
  End_Date           DATE,
  Salary             Number(8,2),
  City               VARCHAR2(10 BYTE),
  Description        VARCHAR2(15 BYTE)
)
/


insert into TEST.INFORMATION(ID,  First_Name, Last_Name, Start_Date,                     End_Date,                       Salary,  City,       Description)
                values ('01','Jason',    'Martin',  to_date('19960725','YYYYMMDD'), to_date('20060725','YYYYMMDD'), 1234.56, 'Toronto',  'Programmer')
/
insert into TEST.INFORMATION(ID,  First_Name, Last_Name, Start_Date,                     End_Date,                       Salary,  City,       Description)
              values('02','Alison',   'Mathews', to_date('19760321','YYYYMMDD'), to_date('19860221','YYYYMMDD'), 6661.78, 'Vancouver','Tester')
/
insert into TEST.INFORMATION(ID,  First_Name, Last_Name, Start_Date,                     End_Date,                       Salary,  City,       Description)
              values('03','James',    'Smith',   to_date('19781212','YYYYMMDD'), to_date('19900315','YYYYMMDD'), 6544.78, 'Vancouver','Tester')
/
insert into TEST.INFORMATION(ID,  First_Name, Last_Name, Start_Date,                     End_Date,                       Salary,  City,       Description)
              values('04','Celia',    'Rice',    to_date('19821024','YYYYMMDD'), to_date('19990421','YYYYMMDD'), 2344.78, 'Vancouver','Manager')
/
insert into TEST.INFORMATION(ID,  First_Name, Last_Name, Start_Date,                     End_Date,                       Salary,  City,       Description)
              values('05','Robert',   'Black',   to_date('19840115','YYYYMMDD'), to_date('19980808','YYYYMMDD'), 2334.78, 'Vancouver','Tester')
/
insert into TEST.INFORMATION(ID,  First_Name, Last_Name, Start_Date,                     End_Date,                       Salary, City,        Description)
              values('06','Linda',    'Green',   to_date('19870730','YYYYMMDD'), to_date('19960104','YYYYMMDD'), 4322.78,'New York',  'Tester')
/
insert into TEST.INFORMATION(ID,  First_Name, Last_Name, Start_Date,                     End_Date,                       Salary, City,        Description)
              values('07','David',    'Larry',   to_date('19901231','YYYYMMDD'), to_date('19980212','YYYYMMDD'), 7897.78,'New York',  'Manager')
/
insert into TEST.INFORMATION(ID,  First_Name, Last_Name, Start_Date,                     End_Date,                       Salary, City,        Description)
              values('08','James',    'Cat',     to_date('19960917','YYYYMMDD'), to_date('20020415','YYYYMMDD'), 1232.78,'Vancouver', 'Tester')
COMMIT;



SELECT * FROM TEST.INFORMATION


ID   FIRST_NAME LAST_NAME  START_DAT END_DATE      SALARY CITY       DESCRIPTION
---- ---------- ---------- --------- --------- ---------- ---------- ---------------
01   Jason      Martin     25-JUL-96 25-JUL-06    1234.56 Toronto    Programmer
02   Alison     Mathews    21-MAR-76 21-FEB-86    6661.78 Vancouver  Tester
03   James      Smith      12-DEC-78 15-MAR-90    6544.78 Vancouver  Tester
04   Celia      Rice       24-OCT-82 21-APR-99    2344.78 Vancouver  Manager
05   Robert     Black      15-JAN-84 08-AUG-98    2334.78 Vancouver  Tester
06   Linda      Green      30-JUL-87 04-JAN-96    4322.78 New York   Tester
07   David      Larry      31-DEC-90 12-FEB-98    7897.78 New York   Manager
08   James      Cat        17-SEP-96 15-APR-02    1232.78 Vancouver  Tester



---Output from Source ggserr.log

2012-06-17 17:42:28  WARNING OGG-00869  Oracle GoldenGate Capture for Oracle, racde.prm:  No unique key is defined for table INFORMATION. All viable columns will be used to represent the key, but may not guarantee uniqueness.  KEYCOLS may be used to define the key.

---Confirm on Target side.

SELECT * FROM TEST.INFORMATION


ID   FIRST_NAME LAST_NAME  START_DAT END_DATE                SALARY CITY       DESCRIPTION
---- ---------- ---------- --------- --------- -------------------- ---------- ---------------
01   Jason      Martin     25-JUL-96 25-JUL-06              1234.56 Toronto    Programmer
02   Alison     Mathews    21-MAR-76 21-FEB-86              6661.78 Vancouver  Tester
03   James      Smith      12-DEC-78 15-MAR-90              6544.78 Vancouver  Tester
04   Celia      Rice       24-OCT-82 21-APR-99              2344.78 Vancouver  Manager
05   Robert     Black      15-JAN-84 08-AUG-98              2334.78 Vancouver  Tester
06   Linda      Green      30-JUL-87 04-JAN-96              4322.78 New York   Tester
07   David      Larry      31-DEC-90 12-FEB-98              7897.78 New York   Manager
08   James      Cat        17-SEP-96 15-APR-02              1232.78 Vancouver  Tester


---Output from Target ggserr.log

2012-06-17 14:42:24  INFO    OGG-01407  Oracle GoldenGate Delivery for Oracle, racdr.prm:  Setting current schema for DDL operation to [SYS].
2012-06-17 14:42:29  INFO    OGG-01408  Oracle GoldenGate Delivery for Oracle, racdr.prm:  Restoring current schema for DDL operation to [GGSUSER].
2012-06-17 14:42:39  WARNING OGG-00869  Oracle GoldenGate Delivery for Oracle, racdr.prm:  No unique key is defined for table INFORMATION. All viable columns will be used to represent the key, but may not guarantee uniqueness.  KEYCOLS may be used to define the key.

Wednesday, June 13, 2012

ORA-08103: object no longer exists / ORA-12801 & ORA-08103


Error occured from one of Our Informatica ETL batch Job.Which basically Truncate/select/load lot of partition tables.


ORA-12801: error signaled in parallel query server P040, instance ABC_DUMMY03.mycorp.com:DUMMYDB3 (3)
ORA-08103: object no longer exists

Here is re-generated error.

00:06:53 SQL> CREATE TABLE EDW.TEST AS SELECT * FROM EDW.SUMMARY_INFO WHERE ROWNUM < 10000;

Table created.

Elapsed: 00:00:00.90

00:06:59 SQL> SELECT * FROM EDW.TEST;

From Other session table is getting truncated.

00:06:48 SQL> TRUNCATE TABLE EDW.TEST;

Table truncated.

Elapsed: 00:00:00.19

And Here we go.

ERROR:
ORA-08103: object no longer exists

5565 rows selected.

Elapsed: 00:00:21.40
00:07:49 SQL>

Another scenario in which i did not had which statement caused problem.

Find All SQL_ID's of failed Statment
-------------------------------------------------------------------------
SQL> SELECT SQL_ID,substr(SQL_TEXT, 1, 55) TEXTS FROM DBA_HIST_SQLTEXT
WHERE SQL_TEXT LIKE '%SELECT stg.rdc_rec_creation_dt%' ORDER BY 1;

SQL_ID        TEXTS
------------- ------------------------------------------------------------
1agvajtvcx6uz SELECT stg.rdc_rec_creation_dt,
                     stg.refinery_n
1v7rz5pmchtpy SELECT stg.rdc_rec_creation_dt,
                     stg.refinery_n
3bj9r85rcq6u1 SELECT stg.rdc_rec_creation_dt,
                     stg.refinery_n
3n78p3wvfd9u7 SELECT stg.rdc_rec_creation_dt,
                     stg.refinery_n
3nwcxh1p6wkaq SELECT stg.rdc_rec_creation_dt,
                     stg.refinery_n
3sb25qjaj33v9 SELECT stg.rdc_rec_creation_dt,
--Result set Trim. 

-------------------------------------------------------------------------
Find All Tables which Accessed in Above SQL_IDs.
-------------------------------------------------------------------------
SELECT INSTANCE_NUMBER,SNAP_ID,USER_ID,SQL_ID,SQL_PLAN_HASH_VALUE,SQL_PLAN_OPERATION,DO.OBJECT_NAME,DO.SUBOBJECT_NAME,SQL_EXEC_START 
FROM DBA_HIST_ACTIVE_SESS_HISTORY DHSH,DBA_OBJECTS DO
WHERE SQL_ID IN (SELECT DISTINCT SQL_ID FROM DBA_HIST_SQLTEXT WHERE SQL_TEXT LIKE '%SELECT stg.rdc_rec_creation_dt%')
AND SNAP_ID BETWEEN 2597 AND 2621 
AND DHSH.CURRENT_OBJ#=DO.OBJECT_ID 
order by 2;

INST# SNAP_ID USER_ID SQL_ID    SQLPLANHASHVALUE SQLPLAN_OPERATION OBJECT_NAME        SUBOBJECT_NAME SQLEXEC_START_TIME
-------------------------------------------------------------------------------------------------------------------------------------
2     2609   101     btsj9guja52jn 799412467         TABLE ACCESS     TEST_DLY_USAGE_STG R13            9/21/2012 12:46:57 PM 
                          
2     2609   101     btsj9guja52jn 799412467         TABLE ACCESS     TEST_DLY_USAGE_STG R8            9/21/2012 12:46:57 PM                           
2     2609   101     97823yd06wvm3 799412467         TABLE ACCESS     TEST_DLY_USAGE_STG R8            9/21/2012 12:46:57 PM                           

2     2609   101     d9r00q7thjq2d 799412467         TABLE ACCESS     TEST_DLY_USAGE_STG R9            9/21/2012 12:46:57 PM                           
1     2609   101     3n78p3wvfd9u7 799412467         TABLE ACCESS     TEST_DLY_USAGE_STG R10            9/21/2012 12:46:57 PM                           
1     2609   101     ffubvc0gj883w 799412467         TABLE ACCESS     TEST_DLY_USAGE_STG R10            9/21/2012 12:46:57 PM                           
2     2609   101     agsu55vrz6nh5 799412467         TABLE ACCESS     TEST_DLY_USAGE_STG R10            9/21/2012 12:46:57 PM                           
2     2609   101     3bj9r85rcq6u1 799412467         TABLE ACCESS     TEST_DLY_USAGE_STG R10            9/21/2012 12:46:57 PM                           
1     2609   101     57u0u9v14yfdc 799412467         TABLE ACCESS     TEST_DLY_USAGE_STG R11            9/21/2012 12:46:57 PM                           
1     2609   101     f138kjx2k5r01 799412467         TABLE ACCESS     TEST_DLY_USAGE_STG R12            9/21/2012 12:46:57 PM                           
1     2609   101     57u0u9v14yfdc 799412467                          TEST_DLY_USAGE_STG R5                                                                        
2     2610   101     92z9466bz47aw 799412467         HASH JOIN         HOUSE_DIM_MV                 9/21/2012 1:49:02 PM                                        
1     2610   101     910zpzwq56x4a 799412467         MAT_VIEW ACCESS   HOUSE_DIM_MV                     9/21/2012 1:49:03 PM                                  
2     2610   101     gp6qtc223wn7n 799412467         TABLE ACCESS     TEST_DLY_USAGE_STG R6            9/21/2012 1:49:03 PM                            
1     2610   101     910zpzwq56x4a 799412467         TABLE ACCESS     TEST_DLY_USAGE_STG R9            9/21/2012 1:49:03 PM                            
1     2610   101     910zpzwq56x4a 799412467         TABLE ACCESS     TEST_DLY_USAGE_STG R1            9/21/2012 1:49:03 PM                            
1     2610   101     1v7rz5pmchtpy 799412467         TABLE ACCESS     TEST_DLY_USAGE_STG R1            9/21/2012 1:49:02 PM                            
1     2610   101     abwj1n9krrcuc 799412467         TABLE ACCESS     TEST_DLY_USAGE_STG R1            9/21/2012 1:49:02 PM                            
2     2610   101     gp6qtc223wn7n 799412467         TABLE ACCESS     TEST_DLY_USAGE_STG R14            9/21/2012 1:49:03 PM                            
1     2610   101     1v7rz5pmchtpy 799412467         TABLE ACCESS     TEST_DLY_USAGE_STG R8            9/21/2012 1:49:02 PM                            
2     2610   101     3nwcxh1p6wkaq 799412467         TABLE ACCESS     TEST_DLY_USAGE_STG R13            9/21/2012 1:49:02 PM                            
1     2610   101     abwj1n9krrcuc 799412467         TABLE ACCESS     TEST_DLY_USAGE_STG R9            9/21/2012 1:49:02 PM                            
1     2610   101     910zpzwq56x4a 799412467         TABLE ACCESS     TEST_DLY_USAGE_STG R12            9/21/2012 1:49:03 PM                            
1     2610   101     abwj1n9krrcuc 799412467         TABLE ACCESS     TEST_DLY_USAGE_STG R12            9/21/2012 1:49:02 PM                            
2     2610   101     92z9466bz47aw 799412467         TABLE ACCESS     TEST_DLY_USAGE_STG R12            9/21/2012 1:49:02 PM                            
2     2610   101     3nwcxh1p6wkaq 799412467         TABLE ACCESS     TEST_DLY_USAGE_STG R10            9/21/2012 1:49:02 PM                            
1     2610   101     1v7rz5pmchtpy 799412467         TABLE ACCESS     TEST_DLY_USAGE_STG R11            9/21/2012 1:49:02 PM                            
2     2610   101     gp6qtc223wn7n 799412467         TABLE ACCESS     TEST_DLY_USAGE_STG R10            9/21/2012 1:49:03 PM                            
2     2610   101     92z9466bz47aw 799412467         TABLE ACCESS     TEST_DLY_USAGE_STG R9            9/21/2012 1:49:02 PM                            
2     2610   101     gp6qtc223wn7n 799412467         HASH JOIN       HOUSE_DIM_MV                 9/21/2012 1:49:03 PM                                        
2     2610   101     gp6qtc223wn7n 799412467         HASH JOIN       HOUSE_DIM_MV                 9/21/2012 1:49:03 PM                                        
2     2610   101     92z9466bz47aw 799412467         MAT_VIEW ACCESS   HOUSE_DIM_MV                  9/21/2012 1:49:02 PM                                  
2     2610   101     3nwcxh1p6wkaq 799412467         HASH JOIN       HOUSE_DIM_MV                 9/21/2012 1:49:02 PM                                        
2     2610   101     92z9466bz47aw 799412467         MAT_VIEW ACCESS   HOUSE_DIM_MV                      9/21/2012 1:49:02 PM                                  
1     2610   101     abwj1n9krrcuc 799412467         MAT_VIEW ACCESS   HOUSE_DIM_MV                      9/21/2012 1:49:02 PM                                  
1     2610   101     1v7rz5pmchtpy 799412467         MAT_VIEW ACCESS   HOUSE_DIM_MV                      9/21/2012 1:49:02 PM                                  
1     2610   101     910zpzwq56x4a 799412467         MAT_VIEW ACCESS   HOUSE_DIM_MV                      9/21/2012 1:49:03 PM                                  
1     2610   101     abwj1n9krrcuc 799412467         MAT_VIEW ACCESS   HOUSE_DIM_MV                      9/21/2012 1:49:02 PM                                  
1     2610   101     1v7rz5pmchtpy 799412467         MAT_VIEW ACCESS   HOUSE_DIM_MV                      9/21/2012 1:49:02 PM                                  
1     2610   101     910zpzwq56x4a 799412467         SELECT STATEMENT  NODE_DIM_MV                        9/21/2012 1:49:03 PM                           


--Find All Commands executed on Tables which founded on Above SQL

SELECT INSTANCE_NUMBER,SNAP_ID,USER_ID,SQL_ID,SQL_PLAN_HASH_VALUE,SQL_PLAN_OPERATION,DO.OBJECT_NAME,DO.SUBOBJECT_NAME,SQL_EXEC_START 
FROM DBA_HIST_ACTIVE_SESS_HISTORY DHSH,DBA_OBJECTS DO
where SNAP_ID BETWEEN 2597 AND 2621 
AND DHSH.CURRENT_OBJ#=DO.OBJECT_ID 
AND DO.OBJECT_NAME IN ('TEST_DLY_USAGE_STG','TEST_process_control_lkp','HOUSE_DIM_MV','NODE_DIM_MV')
order by 2;
-------------------------------------------------------------------------------------------------------------------------------------
INST# SNAP_ID USER_ID SQL_ID       SQLPLAN_HASH_VALUE SQL_PLAN_OPERATION OBJECT_NAME         SUBOBJECT_NAME SQL_EXEC_START
1     2609   101    f138kjx2k5r01 799412467           TABLE ACCESS       TEST_DLY_USAGE_STG R12             12:46:57 PM
1     2609   101    57u0u9v14yfdc 799412467           TABLE ACCESS       TEST_DLY_USAGE_STG R11             12:46:57 PM
1     2609   101    3n78p3wvfd9u7 799412467           TABLE ACCESS       TEST_DLY_USAGE_STG R10             12:46:57 PM
1     2609   101    ffubvc0gj883w 799412467           TABLE ACCESS       TEST_DLY_USAGE_STG R10             12:46:57 PM
                                                                                                                
--Partition start begin Read                                 <-HERE WE GO.                                                                                                                       
2     2609   101    btsj9guja52jn 799412467           TABLE ACCESS       TEST_DLY_USAGE_STG R8             12:46:57 PM
2     2609   101    97823yd06wvm3 799412467           TABLE ACCESS       TEST_DLY_USAGE_STG R8             12:46:57 PM
                                                                                                                
--Partition start getting truncat.                                                                                                                                                                     
1     2609   101    2hkk1v26hy6by 3629144304         DDL STATEMENT       TEST_DLY_USAGE_STG R8             12:47:07 PM

---------
Find Which DDL STATEMENT is this. (get SQL_ID from above statement)

SQL> select SQL_TEXT FROM DBA_HIST_SQLTEXT WHERE SQL_ID='2hkk1v26hy6by';

SQL_TEXT
--------------------------------------------------------------------------------
ALTER TABLE TEST_USAGE.CHSI_DLY_USAGE_STG TRUNCATE PARTITION R8


Reference.
OERR: ORA-8103 "object no longer exists" / Troubleshooting, Diagnostic and Solution [ID 8103.1]

Tuesday, June 12, 2012

RMAN-06457: UNTIL scn

I was trying to Duplicate from 3 Node RAC to RAC, which was on 10.2.0.4

After taking backup of full db plus archivelog , It failed at below commands.

Starting Duplicate Db at 11-jun-2012 20:37:28
released channel: CH1
released channel: CH2
released channel: CH3
released channel: CH4
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 06/11/2012 21:53:00
RMAN-06457: UNTIL scn (10763359915928) is ahead of last scn in archived logs (10762406105542)

Issue ALTER SYSTEM ARCHIVELOG CURRENT before taking backup.

In my case, Node 3 was down.so the last & latest SCN was 10762406105542 in Thread 3.


INST_IDGROUP#THREAD#SEQUENCE#BYTESMEMBERSARCHIVEDSTATUSFIRST_CHANGE#FIRST_TIME             
1112502891048576001NOCURRENT107635400375836/12/2012 10:16
1212502881048576001NOACTIVE107635400310766/12/2012 10:15
1322508011048576001YESACTIVE107635377818156/12/2012 4:29
1422508001048576001YESINACTIVE107635377518366/12/2012 4:24
1532076311048576001YESINACTIVE107624060273086/9/2012 9:21
1632076301048576001YESINACTIVE107624059981966/9/2012 9:20
1732076321048576001YESINACTIVE107624060504306/9/2012 9:24
1832076331048576001YESACTIVE10762406105541   6/9/2012 9:59




Monday, June 4, 2012

TNS-03505: Failed to resolve name

Tnsentry was something like below.

TXCOM =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = TEST11v)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = TEST12v)(PORT = 1521))
    (LOAD_BALANCE = yes)
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = TXCOM.world)
    )
  )
  

it gave error TNS-03505: Failed to resolve name , which mostly happen due to bad syntax.

TEST11 | DUMMY1 | /u00/app/oracle/product/10.2.0/DB/network/admin
> tnsping TXCOM

TNS Ping Utility for Linux: Version 10.2.0.4.0 - Production on 04-JUN-2012 09:55:54

Copyright (c) 1997,  2007, Oracle.  All rights reserved.

Used parameter files:

TNS-03505: Failed to resolve name

This need to check why its not able to find TNSnames. before that make sure you corrected syntax of tnsentry in tnsnames.ora

lets check what is $TNS_ADMIN set to.

TEST11 | DUMMY1 | /u00/app/oracle/product/10.2.0/DB/network/admin
> echo $TNS_ADMIN
/u00/app/oracle/product/10.2.0/ASM/network/admin
TEST11 | DUMMY1 | /u00/app/oracle/product/10.2.0/DB/network/admin
> export TNS_ADMIN=/u00/app/oracle/product/10.2.0/DB/network/admin
TEST11 | DUMMY1 | /u00/app/oracle/product/10.2.0/DB/network/admin
> tnsping TXCOM

TNS Ping Utility for Linux: Version 10.2.0.4.0 - Production on 04-JUN-2012 09:58:00

Copyright (c) 1997,  2007, Oracle.  All rights reserved.

Used parameter files:


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = TEST11v)(PORT = 1521)) (ADDRESS = (PROTOCOL = TCP)(HOST = dukegotd99v)(PORT = 1521)) (LOAD_BALANCE = yes) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = TXCOM.world)))
OK (0 msec)
TEST11 | DUMMY1 | /u00/app/oracle/product/10.2.0/DB/network/admin