Jul 30, 2015

upgrade database from 11.2.0.3 to 11.2.0.4 when recovered using standby controlfile

All DBAs are hands on with backup/restore and upgrade scenarios. Here we will discuss how we will take backup without any corrupted block and to restore as is or corrupt free process. Rather than backup control-file we will take backup of standby control file and restore from this.

Someone ask why? This way we ll transfer archivelogs and keep on applying manually with will of dataguad commands which are common to all DBAs. So that we can take very less downtime to finish the upgrade process.

So, here are the step-by-step process :

Phase-1 :-- Restore and Recover ( Using standby controlfile)

a) Restore database
Precautions to restore to avoid block corruption:

1) Enable force-logging the primary database.


-- To enable
SQL> ALTER DATABASE FORCE LOGGING;

-- To verify
SQL> select force_logging from v$database;

FOR
---
YES

Note: The FORCE LOGGING option is the safest method to ensure that all the changes made in the database will be captured and available for recovery in the redo logs. Force logging is the new feature added to the family of logging attributes.

2) validate the database and backups before restore.
-- To validate database:

RMAN> validate database;
OR
RMAN> BACKUP CHECK LOGICAL VALIDATE DATABASE;

To Take logically valid backup:

RMAN> BACKUP VALIDATE CHECK LOGICAL DATABASE ARCHIVELOG ALL;

-- To validate specific datafiles:
RMAN> run {
allocate channel d1 type disk;
allocate channel d2 type disk;
backup check logical validate datafile x,y,z;
release channel d1;
release channel d2;
}

-- To validate backup piece:
RMAN> VALIDATE BACKUPSET <n>;
e.g.,
RMAN> VALIDATE BACKUPSET 22;

Now in standby restore the database.
RMAN> restore database;

You can follow the below secure process also:

RMAN> RESTORE DATABASE VALIDATE;

Note : use set new name if any datafile path is change.

b) Recover database
Precautions to restore to avoid block corruption:

in standby:

-- To enable 
alter system set DB_BLOCK_CHECKING = TRUE ;
alter system set DB_BLOCK_CHECKSUM = TRUE ;
alter system set "_DB_BLOCK_CHECK_FOR_DEBUG" = TRUE;

-- To disable ( must be disable when standby is open for production in r/w operation)

alter system set DB_BLOCK_CHECKING = FALSE ;
alter system set DB_BLOCK_CHECKSUM = FALSE ;
alter system set "_DB_BLOCK_CHECK_FOR_DEBUG" = FALSE;

-- now start MRP

SQL> alter database recover managed standby database disconnect from session;

-- Catalog archivelog location to recover
RMAN> catalog '/u03/backup_logs/archivelogs';

Phase-2 :-- Stop synch

-- To see the current database status, role

SQL> select name,open_mode,database_role from v$database;

-- Cancel the recovery after applying all redo logs

SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE cancel;


Phase-3 :-- Convert to primary

SQL> select name,open_mode,database_role from v$database;

SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH;
SQL> ALTER DATABASE ACTIVATE STANDBY DATABASE;

SQL> select name,open_mode ,database_role from v$database;
SQL> select count(1) from dba_objects where status='INVALID';

Phase-4 :-- Upgrade
SQL> connect / as sysdba
SQL> shut immediate;
SQL> startup upgrade;
----------verify the registry before catupgrd--------
SQL> set line 120;
SQL> column COMP_NAME format a35;
SQL> column VERSION format a10;
SQL> column status format a10;
SQL> select COMP_NAME, VERSION,status from dba_registry;
----------------------------------------------------
SQL> @?/rdbms/admin/catupgrd.sql   (default)
SQL> @?/rdbms/admin/utlrp.sql     (default)
SQL> @/home/oracle/work_dir/dbupgdiag.sql (downloaded)
SQL> @?/rdbms/admin/utlrp.sql     (default) -- once more
SQL> shut immediate;
SQL> startup;

----------verify the registry after catupgrd--------
SQL> set line 120;
SQL> column COMP_NAME format a35;
SQL> column VERSION format a10;
SQL> column status format a10;
SQL> select COMP_NAME, VERSION,status from dba_registry;
----------------------------------------------------

SQL> select name,open_mode ,database_role from v$database;
SQL> select count(1) from dba_objects where status='INVALID';

------------------commands ------------------------------------

-- standby

SQL> select name,open_mode ,database_role from v$database;

NAME      OPEN_MODE            DATABASE_ROLE
--------- -------------------- ----------------
PROD  MOUNTED              PHYSICAL STANDBY

SQL> select max(sequence#),thread# 
from v$archived_log 
where applied='YES' group by thread#;

MAX(SEQUENCE#)    THREAD#
-------------- ----------
         39691          1


-- primary


SQL> select max(sequence#),thread# from v$archived_log where group by thread#;

MAX(SEQUENCE#)    THREAD#
-------------- ----------
         39691          1

SQL> select count(1) from dba_objects where status='INVALID';

  COUNT(1)
----------
      1264

-- standby

SQL> alter database recover managed standby database cancel;

Database altered.

SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH;

Database altered.

SQL> select name,open_mode,database_role from v$database;

NAME      OPEN_MODE            DATABASE_ROLE
--------- -------------------- ----------------
PROD      MOUNTED              PHYSICAL STANDBY

SQL> ALTER DATABASE ACTIVATE STANDBY DATABASE;

Database altered.

SQL> select name,open_mode,database_role from v$database;

NAME      OPEN_MODE            DATABASE_ROLE
--------- -------------------- ----------------
PROD      MOUNTED              PRIMARY

SQL>
SQL> shut immediate;
ORA-01109: database not open

Database dismounted.
ORACLE instance shut down.
SQL>
SQL>
SQL> startup upgrade;
ORACLE instance started.

.....
Database mounted.
Database opened.
SQL>

SQL> set line 120;
column COMP_NAME format a35;
column VERSION format a10;
column status format a10;
select COMP_NAME, VERSION,status from dba_registry;
SQL>
COMP_NAME                           VERSION    STATUS
----------------------------------- ---------- ----------
Oracle Enterprise Manager           11.2.0.3.0 VALID
Oracle XML Database                 11.2.0.3.0 VALID
Oracle Expression Filter            11.2.0.3.0 VALID
Oracle Rules Manager                11.2.0.3.0 VALID
Oracle Workspace Manager            11.2.0.3.0 VALID
Oracle Database Catalog Views       11.2.0.3.0 VALID
Oracle Database Packages and Types  11.2.0.3.0 VALID
JServer JAVA Virtual Machine        11.2.0.3.0 VALID
Oracle XDK                          11.2.0.3.0 VALID
Oracle Database Java Packages       11.2.0.3.0 VALID

10 rows selected.

SQL>

SQL> select count(1) from dba_objects where status='INVALID';  -- this count will vary

  COUNT(1)
----------
      1328

SQL> @?/rdbms/admin/catupgrd.sql
SQL> @?/rdbms/admin/catuppst.sql

SQL> startup;
ORACLE instance started.
.....
Database mounted.
Database opened.
SQL>
SQL>
SQL>
SQL> set line 120;
SQL> column COMP_NAME format a35;
SQL> column VERSION format a10;
SQL> column status format a10;
SQL> select COMP_NAME, VERSION,status from dba_registry;
COMP_NAME                           VERSION    STATUS
----------------------------------- ---------- ----------
Oracle Enterprise Manager           11.2.0.4.0 VALID
Oracle XML Database                 11.2.0.4.0 VALID
Oracle Expression Filter            11.2.0.4.0 VALID
Oracle Rules Manager                11.2.0.4.0 VALID
Oracle Workspace Manager            11.2.0.4.0 VALID
Oracle Database Catalog Views       11.2.0.4.0 VALID
Oracle Database Packages and Types  11.2.0.4.0 VALID
JServer JAVA Virtual Machine        11.2.0.4.0 VALID
Oracle XDK                          11.2.0.4.0 VALID
Oracle Database Java Packages       11.2.0.4.0 VALID

10 rows selected.
SQL>
and then,

@?/rdbms/admin/utlrp.sql
@/home/oracle/work_dir/dbupgdiag.sql
SQL> select count(1) from dba_objects where status='INVALID';  
-- this count will vary

  COUNT(1)
----------
       393

1 row selected.

SQL>

Note: Invalid objects counts must be less or equal after upgrade. Check owner-wise valid objects counts also before and after upgrade.

-- Post upgrade activity -- if live for production

a) create/ reconfigure listener
b) create/ modify tnsnames.ora
c) gather stats:
   1) gather all schema's stats:
        SQL> exec dbms_stats.gather_table_stats('owner','table_name',cascade => TRUE);
Best practice after upgrade- gather tables like below:
SQL>
exec dbms_stats.gather_table_stats(ownname=>'user_name', 
tabname=>'table_name', 
estimate_percent => 100, 
cascade=>true, 
method_opt=>'for all columns size AUTO'); 


   2) gather sys views and fixed objects:
   SQL> EXEC DBMS_STATS.GATHER_DICTIONARY_STATS; 
    SQL> exec DBMS_STATS.GATHER_FIXED_OBJECTS_STATS; 

d) disable below parameters:( enable if you compromise performance):
-- To disable ( must be disable when standby is open for production in r/w operation)

alter system set DB_BLOCK_CHECKING = FALSE ;
alter system set DB_BLOCK_CHECKSUM = FALSE ;
alter system set "_DB_BLOCK_CHECK_FOR_DEBUG" = FALSE;

e) Take FULL rman backup before handover as production.

Note: Some Oracle 11.2.0.x bug fixes for AIX platform:
1) to get better execution plan: If your performance degraded, then OFF it and try.

SQL> ALTER session "_fix_control"='5483301:OFF'; 

2) Stop weekend oracle default maintenance windows

Thanks!!


Jul 29, 2015

ORA-12162: TNS:net service name is incorrectly specified

ORA-12162: TNS:net service name is incorrectly specified

I have received a call from junior DBA that while I am connecting to newly installed database software and connecting as "/ as sysdba", above error is comming.

The Error:

$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on Wed Jul 29 14:30:36 2015

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

ERROR:
ORA-12162: TNS:net service name is incorrectly specified


Enter user-name:

...
Solution:
This is a very small and simple issue.The error message ORA-12162 "TNS:net service name is incorrectly specified", is very misleading.

It suggests that there is a problem with the tnsnames.ora file contents, but in reality the message ORA-12162 "TNS:net service name is incorrectly specified" results from improperly setting your ORACLE_SID value.

To fix this error in Windows, set your $ORACLE_HOME:

c:> set ORACLE_SID=PROD

In Linux, these commands sets ORACLE_HOME and $ORACLE_SID as follows:

export ORACLE_HOME=/u01/app/product/11.2.0/dbhome_1;

export ORACLE_SID=PROD;
export PATH=$ORACLE_HOME/bin:$PATH

I am sure now no issue will come.




Jul 25, 2015

PRCR-1013 : Failed to start resource - while start service in RAC database

Suddenly I found one of the service which is created for load-balancing TAF purpose, is down. When I tried to start it, then below error came.

$ srvctl start service -d PROD -s HRPROD -n rac2 -o open
PRCR-1013 : Failed to start resource ora.PROD.HRPROD.svc
PRCR-1064 : Failed to start resource ora.PROD.HRPROD.svc on node rac2
CRS-5017: The resource action "ora.PROD.HRPROD.svc start" encountered the following error:
ORA-06550: line 1, column 34:
PLS-00553: character set name is not recognized
ORA-06550: line 0, column 0:
PL/SQL: Compilation unit analysis terminated
. For details refer to "(:CLSN00107:)" in "/u01/app/grid4/log/rac2/agent/crsd/oraagent_oracle/oraagent_oracle.log".


CRS-2674: Start of 'ora.PROD.HRPROD.svc' on 'rac2' failed
CRS-5017: The resource action "ora.PROD.HRPROD.svc clean" encountered the following error:
ORA-06550: line 1, column 33:
PLS-00553: character set name is not recognized
ORA-06550: line 0, column 0:
PL/SQL: Compilation unit analysis terminated
. For details refer to "(:CLSN00106:)" in "/u01/app/grid4/log/rac2/agent/crsd/oraagent_oracle/oraagent_oracle.log".


Note: I has a service with name "HRPROD" in my PROD database.

Now read the error written in oraagent_oracle.log file. Best way is raise SR and follow it immedialtly.

I did below activities and resolved the issues:

Before any activity, output of "crsctl stat res -t":

--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER              
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
               ONLINE  ONLINE       rac1                                       
               ONLINE  ONLINE       rac2                                       
ora.FRA.dg
               ONLINE  ONLINE       rac1                                       
               ONLINE  ONLINE       rac2                                       
ora.LISTENER.lsnr
               ONLINE  ONLINE       rac1                                       
               ONLINE  ONLINE       rac2                                       
ora.asm
               ONLINE  ONLINE       rac1                    Started            
               ONLINE  ONLINE       rac2                    Started            
ora.gsd
               OFFLINE OFFLINE      rac1                                       
               OFFLINE OFFLINE      rac2                                       
ora.net1.network
               ONLINE  ONLINE       rac1                                       
               ONLINE  ONLINE       rac2                                       
ora.ons
               ONLINE  ONLINE       rac1                                       
               ONLINE  ONLINE       rac2                                       
ora.registry.acfs
               ONLINE  ONLINE       rac1                                       
               ONLINE  ONLINE       rac2                                       
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       rac2                                       
ora.LISTENER_SCAN2.lsnr
      1        ONLINE  ONLINE       rac1                                       
ora.LISTENER_SCAN3.lsnr
      1        ONLINE  ONLINE       rac1                                       
ora.cvu
      1        ONLINE  ONLINE       rac1                                       
ora.rac1.vip
      1        ONLINE  ONLINE       rac1                                       
ora.rac2.vip
      1        ONLINE  ONLINE       rac2                                       
ora.PROD.db
      1        ONLINE  ONLINE       rac1                    Open               
      2        ONLINE  ONLINE       rac2                    Open               
ora.PROD.HRPROD.svc
      1        ONLINE  ONLINE       rac1                                       
      2        ONLINE  OFFLINE                                                  
ora.oc4j
      1        ONLINE  ONLINE       rac1                                       
ora.scan1.vip
      1        ONLINE  ONLINE       rac2                                       
ora.scan2.vip
      1        ONLINE  ONLINE       rac1                                       
ora.scan3.vip
      1        ONLINE  ONLINE       rac1 
 


Here service is not running in node2. In very first step stop entire service in all nodes and start it again. If same issue is coming you can follow below practice.

1. Ensure that the database is properly started up, that is, mounted and opened.

2. Go to the 
oraagent_oracle.pid and very as like below and kill the process

$cd $GRID_HOME/log/nodename/agent/crsd/oraagent_oracle
$cat oraagent_oracle.pid 


You should see a pid number in the file.

$ ps -ef |grep <pid> -----> verify if this pid is the oraagent.bin process.
if it is the oraagent.bin process kill it.
$ kill -9 <pid>

3. If not ps -ef|grep d.bin. You should find two oraagent.bin processes kill these.

Killing the process should not have any effect and they should respawn again automatically.
Confirm that the processes have started.

4. Then restart the service using srvctl.

$ srvctl start service -d <database_name> -s <service_name> -i <instance_name>

Re-created same issue and following activities done in one of my test env.:

$ cd /u01/app/grid4/log/rac2/agent/crsd/oraagent_oracle
$ cat oraagent_oracle.pid
7798818

$ps -ef|grep 7798818

$ ps -ef|grep 7798818
  oracle  7798818        1   2   Jul 22      - 43:22 /u01/app/grid4/bin/oraagent.bin
  oracle 16974300 36307328   0 17:35:08  pts/4  0:00 grep 7798818

$ kill -9 7798818

$  ps -ef|grep d.bin
  oracle  5767238        1   0   Jul 22      -  7:16 /u01/app/grid4/bin/evmd.bin
  oracle  5832844        1   0   Jul 22      -  1:45 /u01/app/grid4/bin/gpnpd.bin
    root  5963902        1   0   Jul 22      - 15:07 /u01/app/grid4/bin/ohasd.bin reboot
  oracle  8192028        1   0   Jul 22      -  0:05 /u01/app/grid4/bin/mdnsd.bin
  oracle  6291842  8585614   3   Jul 22      - 70:27 /u01/app/grid4/bin/ocssd.bin
    root  7668170        1   0   Jul 22      -  7:40 /u01/app/grid4/bin/octssd.bin reboot
    root 26411340        1   3   Jul 23      - 41:36 /u01/app/grid4/bin/osysmond.bin
  oracle 28049762 36307328   0 17:36:52  pts/4  0:00 grep d.bin
    root 45875706        1   0   Jul 22      - 18:22 /u01/app/grid4/bin/crsd.bin reboot
  oracle 51052946        1   0   Jul 22      - 10:53 /u01/app/grid4/bin/gipcd.bin

Note : There is no pid value as we killed. Now start the service again:

$ srvctl start service -d PROD -s HRPROD -n rac2 -o open

Yah. It is started. Now see the "crsctl stat res -t" output:

$ crsctl stat res -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS      
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
               ONLINE  ONLINE       rac1                                       
               ONLINE  ONLINE       rac2                                       
ora.FRA.dg
               ONLINE  ONLINE       rac1                                       
               ONLINE  ONLINE       rac2                                       
ora.LISTENER.lsnr
               ONLINE  ONLINE       rac1                                       
               ONLINE  ONLINE       rac2                                       
ora.asm
               ONLINE  ONLINE       rac1                    Started            
               ONLINE  ONLINE       rac2                    Started            
ora.gsd
               OFFLINE OFFLINE      rac1                                       
               OFFLINE OFFLINE      rac2                                       
ora.net1.network
               ONLINE  ONLINE       rac1                                       
               ONLINE  ONLINE       rac2                                       
ora.ons
               ONLINE  ONLINE       rac1                                       
               ONLINE  ONLINE       rac2                                       
ora.registry.acfs
               ONLINE  ONLINE       rac1                                       
               ONLINE  ONLINE       rac2                                       
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       rac2                                       
ora.LISTENER_SCAN2.lsnr
      1        ONLINE  ONLINE       rac1                                       
ora.LISTENER_SCAN3.lsnr
      1        ONLINE  ONLINE       rac1                                       
ora.cvu
      1        ONLINE  ONLINE       rac1                                       
ora.rac1.vip
      1        ONLINE  ONLINE       rac1                                       
ora.rac2.vip
      1        ONLINE  ONLINE       rac2                                       
ora.PROD.db
      1        ONLINE  ONLINE       rac1                    Open               
      2        ONLINE  ONLINE       rac2                    Open               
ora.PROD.HRPROD.svc
      1        ONLINE  ONLINE       rac1                                       
      2        ONLINE  ONLINE       rac2                                       
ora.oc4j
      1        ONLINE  ONLINE       rac1                                       
ora.scan1.vip
      1        ONLINE  ONLINE       rac2                                       
ora.scan2.vip
      1        ONLINE  ONLINE       rac1                                       
ora.scan3.vip
      1        ONLINE  ONLINE       rac1

Hope, it helped....

Jul 18, 2015

ORA-02449: unique/primary keys in table referenced by foreign keys

How to find foreign-key dependencies pointing to one record in Oracle?When you are getting below piece of error message, then you may has issue with dependent tables.

ORA-02449: unique/primary keys in table referenced by foreign keys

select src_cc.owner       as src_owner,
       src_cc.table_name  as src_table,
       src_cc.column_name as src_column,
       dest_cc.owner       as dest_owner,
       dest_cc.table_name  as dest_table,
       dest_cc.column_name as dest_column,
       c.constraint_name
from all_constraints c
inner join all_cons_columns dest_cc on c.r_constraint_name = dest_cc.constraint_name
                                    and c.r_owner = dest_cc.owner
inner join all_cons_columns src_cc on c.constraint_name =  src_cc.constraint_name
                                   and c.owner = src_cc.owner
where c.constraint_type = 'R'
/*and dest_cc.owner = 'MY_TARGET_SCHEMA'*/
and dest_cc.table_name = 'MY_TABLE_NAME'
/* and dest_cc.column_name = 'MY_OPTIONNAL_TARGET_COLUMN' */

Note: Put your owner name & column name.

Disable foreign key constraint may not help you if you are going to drop and re-create the tables for any maintenance activities. The above query will help you find any dependent table.

Jul 13, 2015

Cluster health check in Oracle 11gR2

$ cluvfy comp clu

Output :

$ cluvfy comp clu

Verifying cluster integrity

Checking cluster integrity...

Cluster integrity check passed

Verification of cluster integrity was successful.


 -- After creating cluster/ before creating database in cluster / after upgrading cluster:

$ cluvfy stage -post crsinst -n host1,host2 -verbose

output:


Performing post-checks for cluster services setup

Checking node reachability...

Check: Node reachability from node "eddb3"
  Destination Node                      Reachable?             
  ------------------------------------  ------------------------
  eddb3                                 yes                    
  eddb4                                 yes                    
Result: Node reachability check passed from node "eddb3"


Checking user equivalence...

Check: User equivalence for user "grid"
  Node Name                             Status                 
  ------------------------------------  ------------------------
  eddb4                                 passed                 
  eddb3                                 passed                 
Result: User equivalence check passed for user "grid"

Checking node connectivity...

Checking hosts config file...
  Node Name                             Status                 
  ------------------------------------  ------------------------
  eddb4                                 passed                 
  eddb3                                 passed                 

Verification of the hosts config file successful


Interface information for node "eddb4"
 Name   IP Address      Subnet          Gateway         Def. Gateway    HW Address        MTU  
 ------ --------------- --------------- --------------- --------------- ----------------- ------
 en0    10.10.8.33      10.10.0.0       10.10.8.33      10.10.10.30     CE:1C:47:44:EA:06 1500 
 en0    10.10.8.33      10.10.0.0       10.10.8.33      10.10.10.30     CE:1C:47:44:EA:06 1500 
 en0    10.10.8.33      10.10.0.0       10.10.8.33      10.10.10.30     CE:1C:47:44:EA:06 1500 
 en1    1.1.1.83        1.1.1.0         1.1.1.83        10.10.10.30     CE:1C:47:44:EA:07 1500 
 en1    1.1.1.83        1.1.1.0         1.1.1.83        10.10.10.30     CE:1C:47:44:EA:07 1500 


Interface information for node "eddb3"
 Name   IP Address      Subnet          Gateway         Def. Gateway    HW Address        MTU  
 ------ --------------- --------------- --------------- --------------- ----------------- ------
 en0    10.10.8.31      10.10.0.0       10.10.8.31      10.10.10.30     3E:F4:C1:6D:C7:06 1500 
 en0    10.10.8.31      10.10.0.0       10.10.8.31      10.10.10.30     3E:F4:C1:6D:C7:06 1500 
 en0    10.10.8.31      10.10.0.0       10.10.8.31      10.10.10.30     3E:F4:C1:6D:C7:06 1500 
 en0    10.10.8.31      10.10.0.0       10.10.8.31      10.10.10.30     3E:F4:C1:6D:C7:06 1500 
 en1    1.1.1.82        1.1.1.0         1.1.1.82        10.10.10.30     3E:F4:C1:6D:C7:07 1500 
 en1    1.1.1.82        1.1.1.0         1.1.1.82        10.10.10.30     3E:F4:C1:6D:C7:07 1500 


Check: Node connectivity for interface "en0"
  Source                          Destination                     Connected?     
  ------------------------------  ------------------------------  ----------------
  eddb4[10.10.8.33]               eddb4[10.10.8.33]               yes            
  eddb4[10.10.8.33]               eddb4[10.10.8.33]               yes            
  eddb4[10.10.8.33]               eddb3[10.10.8.31]               yes            
  eddb4[10.10.8.33]               eddb3[10.10.8.31]               yes            
  eddb4[10.10.8.33]               eddb3[10.10.8.31]               yes            
  eddb4[10.10.8.33]               eddb3[10.10.8.31]               yes            
  eddb4[10.10.8.33]               eddb4[10.10.8.33]               yes            
  eddb4[10.10.8.33]               eddb3[10.10.8.31]               yes            
  eddb4[10.10.8.33]               eddb3[10.10.8.31]               yes            
  eddb4[10.10.8.33]               eddb3[10.10.8.31]               yes            
  eddb4[10.10.8.33]               eddb3[10.10.8.31]               yes            
  eddb4[10.10.8.33]               eddb3[10.10.8.31]               yes            
  eddb4[10.10.8.33]               eddb3[10.10.8.31]               yes            
  eddb4[10.10.8.33]               eddb3[10.10.8.31]               yes            
  eddb4[10.10.8.33]               eddb3[10.10.8.31]               yes            
  eddb3[10.10.8.31]               eddb3[10.10.8.31]               yes            
  eddb3[10.10.8.31]               eddb3[10.10.8.31]               yes            
  eddb3[10.10.8.31]               eddb3[10.10.8.31]               yes            
  eddb3[10.10.8.31]               eddb3[10.10.8.31]               yes            
  eddb3[10.10.8.31]               eddb3[10.10.8.31]               yes            
  eddb3[10.10.8.31]               eddb3[10.10.8.31]               yes            
Result: Node connectivity passed for interface "en0"


Check: TCP connectivity of subnet "10.10.0.0"
  Source                          Destination                     Connected?     
  ------------------------------  ------------------------------  ----------------
  eddb3:10.10.8.31                eddb4:10.10.8.33                passed         
Result: TCP connectivity check passed for subnet "10.10.0.0"


Check: Node connectivity for interface "en1"
  Source                          Destination                     Connected?     
  ------------------------------  ------------------------------  ----------------
  eddb4[1.1.1.83]                 eddb4[1.1.1.83]                 yes            
  eddb4[1.1.1.83]                 eddb3[1.1.1.82]                 yes            
  eddb4[1.1.1.83]                 eddb3[1.1.1.82]                 yes            
  eddb4[1.1.1.83]                 eddb3[1.1.1.82]                 yes            
  eddb4[1.1.1.83]                 eddb3[1.1.1.82]                 yes            
  eddb3[1.1.1.82]                 eddb3[1.1.1.82]                 yes            
Result: Node connectivity passed for interface "en1"


Check: TCP connectivity of subnet "1.1.1.0"
  Source                          Destination                     Connected?     
  ------------------------------  ------------------------------  ----------------
  eddb3:1.1.1.82                  eddb4:1.1.1.83                  passed         
Result: TCP connectivity check passed for subnet "1.1.1.0"

Checking subnet mask consistency...
Subnet mask consistency check passed for subnet "10.10.0.0".
Subnet mask consistency check passed for subnet "1.1.1.0".
Subnet mask consistency check passed.

Result: Node connectivity check passed

Checking multicast communication...

Checking subnet "10.10.0.0" for multicast communication with multicast group "230.0.1.0"...
Check of subnet "10.10.0.0" for multicast communication with multicast group "230.0.1.0" passed.

Checking subnet "1.1.1.0" for multicast communication with multicast group "230.0.1.0"...
Check of subnet "1.1.1.0" for multicast communication with multicast group "230.0.1.0" passed.

Check of multicast communication passed.
Check: Time zone consistency
Result: Time zone consistency check passed

Checking Oracle Cluster Voting Disk configuration...

ASM Running check passed. ASM is running on all specified nodes

Oracle Cluster Voting Disk configuration check passed

Checking Cluster manager integrity...


Checking CSS daemon...

  Node Name                             Status                 
  ------------------------------------  ------------------------
  eddb4                                 running                
  eddb3                                 running                

Oracle Cluster Synchronization Services appear to be online.

Cluster manager integrity check passed


Check default user file creation mask
  Node Name     Available                 Required                  Comment  
  ------------  ------------------------  ------------------------  ----------
  eddb4         022                       0022                      passed   
  eddb3         022                       0022                      passed   
Result: Default user file creation mask check passed

Checking cluster integrity...

  Node Name                          
  ------------------------------------
  eddb3                              
  eddb4                              

Cluster integrity check passed


Checking OCR integrity...

Checking the absence of a non-clustered configuration...
All nodes free of non-clustered, local-only configurations


ASM Running check passed. ASM is running on all specified nodes

Checking OCR config file "/etc/oracle/ocr.loc"...

OCR config file "/etc/oracle/ocr.loc" check successful


Disk group for ocr location "+CRS" available on all the nodes


NOTE:
This check does not verify the integrity of the OCR contents. Execute 'ocrcheck' as a privileged user to verify the contents of OCR.

OCR integrity check passed

Checking CRS integrity...

Clusterware version consistency passed
The Oracle Clusterware is healthy on node "eddb4"
The Oracle Clusterware is healthy on node "eddb3"

CRS integrity check passed

Checking node application existence...

Checking existence of VIP node application (required)
  Node Name     Required                  Running?                  Comment  
  ------------  ------------------------  ------------------------  ----------
  eddb4         yes                       yes                       passed   
  eddb3         yes                       yes                       passed   
VIP node application check passed

Checking existence of NETWORK node application (required)
  Node Name     Required                  Running?                  Comment  
  ------------  ------------------------  ------------------------  ----------
  eddb4         yes                       yes                       passed   
  eddb3         yes                       yes                       passed   
NETWORK node application check passed

Checking existence of GSD node application (optional)
  Node Name     Required                  Running?                  Comment  
  ------------  ------------------------  ------------------------  ----------
  eddb4         no                        no                        exists   
  eddb3         no                        no                        exists   
GSD node application is offline on nodes "eddb4,eddb3"

Checking existence of ONS node application (optional)
  Node Name     Required                  Running?                  Comment  
  ------------  ------------------------  ------------------------  ----------
  eddb4         no                        yes                       passed   
  eddb3         no                        yes                       passed   
ONS node application check passed


Checking Single Client Access Name (SCAN)...
  SCAN Name         Node          Running?      ListenerName  Port          Running?   
  ----------------  ------------  ------------  ------------  ------------  ------------
  imcl-scan-cluster  eddb4         true          LISTENER_SCAN1  1521          true       
  imcl-scan-cluster  eddb3         true          LISTENER_SCAN2  1521          true       
  imcl-scan-cluster  eddb3         true          LISTENER_SCAN3  1521          true       

Checking TCP connectivity to SCAN Listeners...
  Node          ListenerName              TCP connectivity?      
  ------------  ------------------------  ------------------------
  eddb3         LISTENER_SCAN1            yes                    
  eddb3         LISTENER_SCAN2            yes                    
  eddb3         LISTENER_SCAN3            yes                    
TCP connectivity to SCAN Listeners exists on all cluster nodes

Checking name resolution setup for "imcl-scan-cluster"...

Checking integrity of name service switch configuration file "/etc/netsvc.conf" ...
Checking if "hosts" entry in file "/etc/netsvc.conf" is consistent across nodes...
"hosts" entry does not exist in any "/etc/netsvc.conf" file
Check for integrity of name service switch configuration file "/etc/netsvc.conf" passed

  SCAN Name     IP Address                Status                    Comment  
  ------------  ------------------------  ------------------------  ----------
  imcl-scan-cluster  10.10.8.38                passed                             
  imcl-scan-cluster  10.10.8.37                passed                             
  imcl-scan-cluster  10.10.8.39                passed                             

Verification of SCAN VIP and Listener setup passed

Checking OLR integrity...

Checking OLR config file...

OLR config file check successful


Checking OLR file attributes...

OLR file check successful


WARNING:
This check does not verify the integrity of the OLR contents. Execute 'ocrcheck -local' as a privileged user to verify the contents of OLR.

OLR integrity check passed
OCR detected on ASM. Running ACFS Integrity checks...

Starting check to see if ASM is running on all cluster nodes...

ASM Running check passed. ASM is running on all specified nodes

Starting Disk Groups check to see if at least one Disk Group configured...
Disk Group Check passed. At least one Disk Group configured

Task ACFS Integrity check passed

Checking to make sure user "grid" is not in "system" group
  Node Name     Status                    Comment                
  ------------  ------------------------  ------------------------
  eddb4         passed                    does not exist         
  eddb3         passed                    does not exist         
Result: User "grid" is not part of "system" group. Check passed

Checking if Clusterware is installed on all nodes...
Check of Clusterware install passed

Checking if CTSS Resource is running on all nodes...
Check: CTSS Resource running on all nodes
  Node Name                             Status                 
  ------------------------------------  ------------------------
  eddb4                                 passed                 
  eddb3                                 passed                 
Result: CTSS resource check passed


Querying CTSS for time offset on all nodes...
Result: Query of CTSS for time offset passed

Check CTSS state started...
Check: CTSS state
  Node Name                             State                  
  ------------------------------------  ------------------------
  eddb4                                 Active                 
  eddb3                                 Active                 
CTSS is in Active state. Proceeding with check of clock time offsets on all nodes...
Reference Time Offset Limit: 1000.0 msecs
Check: Reference Time Offset
  Node Name     Time Offset               Status                 
  ------------  ------------------------  ------------------------
  eddb4         0.0                       passed                 
  eddb3         0.0                       passed                 

Time offset is within the specified limits on the following set of nodes:
"[eddb4, eddb3]"
Result: Check of clock time offsets passed


Oracle Cluster Time Synchronization Services check passed
Checking VIP configuration.
Checking VIP Subnet configuration.
Check for VIP Subnet configuration passed.
Checking VIP reachability
Check for VIP reachability passed.

Post-check for cluster services setup was successful. 

Note : eddb3 is the hostname for node1 and eddb4 is the host name for node2.

You can install ORAcheck from metalink and verify the entire database/ cluster setting details.





Translate >>