Visit Counter

Sunday, November 15, 2015

Oracle 12c Database Upgrade 12.1.0.1 to 12.1.0.2



Oracle Linux 6    (64-bit)
---------------------------------------------------
Upgrade 12.1.0.1 to 12.1.0.2



I installed 12.1.0.2 binary under /ora/oracle/app/product/12.1.0.2/db_home2 folder

 Also I performed full database backup before upgrade, in case of any disaster.

Go to new installed binary home under< ORACLE_HOME>/bin and run database upgrade assistance.

$ ./dbua





















































































































































 

Sunday, November 8, 2015

Netbackup does not utilize a tape drive and fails with error "EMM staus: No drives are available"




Problem

Problem occurs when NetBackup fails to utilize the tape drive and tape drives show available in device monitor.

Error Message

NBU status: 800, EMM status: No drives are available

Cause

Run /usr/openv/volmgr/bin/tpconfig -emm_dev_list
For drive in question see Flags attribute:
Flags:                         1073741952
The drives flag was 1073741952 which in hexadecimal is 40000080
From LTItypes.h:
#define MM_RESTART_LTID 0x40000000 /* a device configuration change has occurred on the emm server, and this host's daemons should be restarted */

Solution

In order to resolve this issue clear the flag or restart ltid on all media servers sharing the tape drive if vmoprcmd does not clear the flag.
Perform following command to clear the flag :
vmoprcmd -reset_ltid_restarted_bit -h <host name>
Location :
Unix : /usr/openv/volmgr/bin/
Windows : Program Files\Veritas\Volmgr\bin

No drives are available (2001)


Problem
Backup job failed with status code 2001

Error Message

9/17/2010 11:57:57 AM - requesting resource yow-netbackup01-hcart-robot-tld-2-yow-nas1
9/17/2010 11:57:57 AM - requesting resource yow-netbackup01.NBU_CLIENT.MAXJOBS.yow-nas1
9/17/2010 11:57:57 AM - requesting resource yow-netbackup01.NBU_POLICY.MAXJOBS.YOW-NAS1
9/17/2010 11:57:57 AM - Error nbjm(pid=2016) NBU status: 2001, EMM status: No drives are available  No drives are available(2001)

Cause

Incompatible Drive Type
Drive Type= HCART3
Media Type =HCART

Solution

Change the Drive Type to match the Media Type


Applies To
Windows 2003
NetBackup 6.5.5

Wednesday, October 28, 2015

ORA-01565: error in identifying file '+DATA/orcl/spfileorcl.ora'



SQL> startup
ORA-01078: failure in processing system parameters
ORA-01565: error in identifying file '+DATA/orcl/spfileorcl.ora'
ORA-17503: ksfdopn:2 Failed to open file +DATA/orcl/spfileorcl.ora
ORA-15056: additional error message
ORA-17503: ksfdopn:DGOpenFile05 Failed to open file +DATA/orcl/spfileorcl.ora
ORA-17503: ksfdopn:2 Failed to open file +DATA/orcl/spfileorcl.ora
ORA-15173: entry 'spfileorcl.ora' does not exist in directory 'orcl'





[oracle@ora11 bin]$ ./crsctl stat res -t -init

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

Name Target State Server State details

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

Local Resources

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

ora.DATA.dg

ONLINE OFFLINE ora11 STABLE

ora.LISTENER.lsnr

ONLINE ONLINE ora11 STABLE

ora.asm

ONLINE ONLINE ora11 Started,STABLE

ora.ons

OFFLINE OFFLINE ora11 STABLE

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

Cluster Resources

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

ora.cssd

1 ONLINE ONLINE ora11 STABLE

ora.diskmon

1 OFFLINE OFFLINE STABLE

ora.evmd

1 ONLINE ONLINE ora11 STABLE

ora.oraafi.db

1 ONLINE OFFLINE STABLE

ora.orabig.db

1 ONLINE OFFLINE STABLE

ora.oradb.db

1 ONLINE OFFLINE STABLE

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

[oracle@ora11 bin]$










Solution
----------

[oracle@ora11 bin]$ ./crsctl start resource -all

CRS-5702: Resource 'ora.LISTENER.lsnr' is already running on 'ora11'

CRS-5702: Resource 'ora.asm' is already running on 'ora11'

CRS-5702: Resource 'ora.cssd' is already running on 'ora11'

CRS-5702: Resource 'ora.evmd' is already running on 'ora11'

CRS-2501: Resource 'ora.ons' is disabled

CRS-2672: Attempting to start 'ora.DATA.dg' on 'ora11'

CRS-2672: Attempting to start 'ora.diskmon' on 'ora11'

CRS-2676: Start of 'ora.diskmon' on 'ora11' succeeded

CRS-2676: Start of 'ora.DATA.dg' on 'ora11' succeeded

CRS-2679: Attempting to clean 'ora.oraafi.db' on 'ora11'

CRS-2679: Attempting to clean 'ora.orabig.db' on 'ora11'

CRS-2679: Attempting to clean 'ora.oradb.db' on 'ora11'

CRS-2681: Clean of 'ora.oraafi.db' on 'ora11' succeeded

CRS-2672: Attempting to start 'ora.oraafi.db' on 'ora11'

CRS-2681: Clean of 'ora.orabig.db' on 'ora11' succeeded

CRS-2672: Attempting to start 'ora.orabig.db' on 'ora11'

CRS-2681: Clean of 'ora.oradb.db' on 'ora11' succeeded

CRS-2672: Attempting to start 'ora.oradb.db' on 'ora11'

CRS-5010: Update of configuration file "/ora/oracle/app/oracle/product/12.1.0/grid/srvm/admin/oratab.bak.ora11" failed: details at "(:CLSN00011:)" in "/ora/oracle/app/oracle/product/12.1.0/grid/log/ora11/agent/ohasd/oraagent_oracle/oraagent_oracle.log"

 

CRS-2676: Start of 'ora.oraafi.db' on 'ora11' succeeded

CRS-5702: Resource 'ora.oraafi.db' is already running on 'ora11'

CRS-2676: Start of 'ora.oradb.db' on 'ora11' succeeded

CRS-2676: Start of 'ora.orabig.db' on 'ora11' succeeded

CRS-5702: Resource 'ora.orabig.db' is already running on 'ora11'

CRS-4000: Command Start failed, or completed with errors.

[oracle@ora11 bin]$

[oracle@ora11 bin]$



[oracle@ora11 bin]$ ./sqlplus /nolog

SQL*Plus: Release 12.1.0.1.0 Production on Thu Oct 29 02:32:07 2015

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

SQL> conn / as sysdba

Connected.

SQL> exit



[oracle@ora11 bin]$ ./crsctl stat res -t -init

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

Name Target State Server State details

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

Local Resources

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

ora.DATA.dg

ONLINE ONLINE ora11 STABLE

ora.LISTENER.lsnr

ONLINE ONLINE ora11 STABLE

ora.asm

ONLINE ONLINE ora11 Started,STABLE

ora.ons

OFFLINE OFFLINE ora11 STABLE

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

Cluster Resources

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

ora.cssd

1 ONLINE ONLINE ora11 STABLE

ora.diskmon

1 OFFLINE OFFLINE STABLE

ora.evmd

1 ONLINE ONLINE ora11 STABLE

ora.oraafi.db

1 ONLINE ONLINE ora11 Open,STABLE

ora.orabig.db

1 ONLINE ONLINE ora11 Open,STABLE

ora.oradb.db

1 ONLINE ONLINE ora11 Open,STABLE

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

[oracle@ora11 bin]$