Friday, September 29, 2017

OPatch failed with error code 73 in oracle database 11.2.0.4


OPatch failed with error code 73  in oracle database
 found the issue with patch version and  installed the recent patch and it was successful


$ /app/oracle/product/11.2.0.4/OPatch/opatch  apply
Oracle Interim Patch Installer version 11.2.0.3.4
Copyright (c) 2012, Oracle Corporation.  All rights reserved.


Oracle Home       : /app/oracle/product/11.2.0.4
Central Inventory : /appgrid/oracle/oraInventory
   from           : /app/oracle/product/11.2.0.4/oraInst.loc
OPatch version    : 11.2.0.3.4
OUI version       : 11.2.0.4.0
Log file location : /app/oracle/product/11.2.0.4/cfgtoollogs/opatch/opatch2017-09-29_12-18-17PM_1.log

Verifying environment and performing prerequisite checks...
Prerequisite check "CheckMinimumOPatchVersion" failed.

OPatch failed with error code 73

Solution:
install the recent Opatch version

/app/oradata/cvcdcp.export/11204/OPatch/opatch lsinventory
Oracle Interim Patch Installer version 11.2.0.3.16
Copyright (c) 2017, Oracle Corporation.  All rights reserved.


Oracle Home       : /app/oracle/product/11.2.0.4
Central Inventory : /appgrid/oracle/oraInventory
   from           : /app/oracle/product/11.2.0.4/oraInst.loc
OPatch version    : 11.2.0.3.16
OUI version       : 11.2.0.4.0
Log file location : /app/oracle/product/11.2.0.4/cfgtoollogs/opatch/opatch2017-09-29_12-21-55PM_1.log

Lsinventory Output file location : /app/oracle/product/11.2.0.4/cfgtoollogs/opatch/lsinv/lsinventory2017-09-29_12-21-55PM.txt

--------------------------------------------------------------------------------
Local Machine Information::
Hostname: (server_name)
ARU platform id: 212
ARU platform description:: IBM_AIX

Installed Top-level Products (1):

Oracle Database 11g                                                  11.2.0.4.0
There are 1 products installed in this Oracle Home.


There are no Interim patches installed in this Oracle Home.


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

OPatch succeeded.

step by step to upgrade the rman catalog in oracle

step by step to upgrade the rman  catalog  in oracle
connect to the target and catalog DB and you need to give upgrade catalog 2 times.



 $ rman target / catalog (CATLOG_DB_user)/PWD@(CATLOG_DB)

Recovery Manager: Release 11.2.0.4.0 - Production on Fri Sep 29 12:57:44 2017

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

connected to target database: target_db (DBID=864042325)
connected to recovery catalog database
PL/SQL package (CATLOG_DB_user).DBMS_RCVCAT version 11.01.00.07 in RCVCAT database is too old

RMAN> upgrade catalog;

recovery catalog owner is (CATLOG_DB_user)
enter UPGRADE CATALOG command again to confirm catalog upgrade

RMAN> upgrade catalog;

recovery catalog upgraded to version 11.02.00.04
DBMS_RCVMAN package upgraded to version 11.02.00.04
DBMS_RCVCAT package upgraded to version 11.02.00.04

RMAN> show all;

starting full resync of recovery catalog
full resync complete
RMAN configuration parameters for database with db_unique_name target_db are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 30 DAYS;
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE 'SBT_TAPE' TO 'target_db_cf_%F';
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DEVICE TYPE SBT_TAPE PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' TRACE 5 PARMS  'BLKSIZE=1048576,SBT_LIBRARY=/app/oracle/product/11.1.0/lib/libddobk.so,ENV=(STORAGE_UNIT=RMANDev,BACKUP_HOST=backupk.com,ORACLE_HOME=/app/oracle/product/11.1.0)';
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/app/oracle/product/11.2.0.4/dbs/snapcf_target_db.f'; # default

Friday, September 15, 2017

catalog database resync failed after applying the PSU patch

Recovery Manager: Release 11.2.0.4.0 - Production on Thu Sep 14 11:14:59 2017

Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.

connected to target database: DB_name (DBID=4129713203)
connected to recovery catalog database
PL/SQL package rman_user.DBMS_RCVCAT version 11.01.00.07 in RCVCAT database is too old

RMAN> upgrade catalog;

recovery catalog owner is rman_user
enter UPGRADE CATALOG command again to confirm catalog upgrade

RMAN> upgrade catalog;

recovery catalog upgraded to version 11.02.00.04
DBMS_RCVMAN package upgraded to version 11.02.00.04
DBMS_RCVCAT package upgraded to version 11.02.00.04

RMAN> show all;

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of show command at 09/14/2017 11:16:30
RMAN-03014: implicit resync of recovery catalog failed
RMAN-03009: failure of full resync command on default channel at 09/14/2017 11:16:30
ORA-01403: no data found

RMAN> register database;

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of register command at 09/14/2017 11:16:49
RMAN-03014: implicit resync of recovery catalog failed
RMAN-03009: failure of full resync command on default channel at 09/14/2017 11:16:49
ORA-01403: no data found


   Root cause for the issue:
just got the error after DB upgrade to 11204 and it throws the error.even when we unregistered the db ,it did not give any result.
just looked the database and found the PSU on $ORACLE_HOME applied while the database open.

Solution:
just  do the clean DB restart and it will resolve issue.