Forum Discussion

Govarthanagiri's avatar
11 years ago

regarding standby oracle DB bakcup

Hi ,

NBU 7.5

client :linux 5.9

oracle :11.2

i have two apllication servers which are configured as active / standy mode and both the servers have Oracle DB . i already sucessfully taken the bakcup of oracle DB in active server using hot_database_backup.sh RMAN script. so now i am trying  to take the DB bakcup of standby server , so i have choosed the cold_database_backup.sh RMAN script and i am getting the blow error while run the bakcup on standby DB . so kindly help to resolve the issue and also let me know wny other method/script needs to be followed for standby DB server .

 

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

com10:oracle # cat cold_database_backup.sh.out

Script /usr/openv/netbackup/ext/db_ext/oracle/samples/rman/cold_database_backup.sh
==== started on Tue Aug 19 09:38:40 GMT 2014 ====


RMAN: /opt/PlexView/Oracle/ora01/app/oracle/product/11.2.0/bin/rman
CMD: /opt/PlexView/Oracle/ora01/app/oracle/product/11.2.0/bin/sqlplus /nolog
ORACLE_SID: plxdb
ORACLE_USER: oracle
ORACLE_HOME: /opt/PlexView/Oracle/ora01/app/oracle/product/11.2.0
NB_ORA_FULL: 1
NB_ORA_INCR: 0
NB_ORA_CINC: 0
NB_ORA_SERV: vtcnb01
NB_ORA_POLICY: Vzw-Oracle-cold
Last login: Tue Aug 19 09:37:36 UTC 2014

SQL*Plus: Release 11.2.0.1.0 Production on Tue Aug 19 09:38:40 2014

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

SQL> Connected.
SQL> ORA-01109: database not open


Database dismounted.
ORACLE instance shut down.
SQL> Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Last login: Tue Aug 19 09:37:36 UTC 2014
Last login: Tue Aug 19 09:38:40 UTC 2014

SQL*Plus: Release 11.2.0.1.0 Production on Tue Aug 19 09:38:50 2014

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

SQL> Connected to an idle instance.
SQL> LRM-00109: could not open parameter file '/db/oracle/product/admin/ora102/pfile/initorac102.ora'
ORA-01078: failure in processing system parameters
SQL> Disconnected
Last login: Tue Aug 19 09:38:40 UTC 2014

Full backup requested
Last login: Tue Aug 19 09:38:50 UTC 2014

Recovery Manager: Release 11.2.0.1.0 - Production on Tue Aug 19 09:38:50 2014

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

connected to target database (not started)

RMAN> 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> RMAN> 2> 3> 4> 5> 6> 7> 8> 9> 10> 11>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of allocate command at 08/19/2014 09:38:51
RMAN-06403: could not obtain a fully authorized session
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory

RMAN> RMAN>

Recovery Manager complete.
Last login: Tue Aug 19 09:38:50 UTC 2014

Script /usr/openv/netbackup/ext/db_ext/oracle/samples/rman/cold_database_backup.sh
==== ended in error on Tue Aug 19 09:38:51 GMT 2014 ====

com10:oracle #


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

regards,

Giri

  • I think he's referring to standby copy (data guard) type DB. I don't know if we can back up a standby database using cold script.

     

    You definitely can't back it up hot as its not open.

     

  • It is not possible to take offline backup on the standby node.

    A 'standby' server does not have any Oracle resources, filesystems, etc.
    All filesystems are mounted on the active node.

    Offline backup can only be taken on a system where all Oracle resources exist (filesystems, etc.) with Oracle db in shutdown state.

    Please talk to your Oracle dba and cluster administrator for further explanation and guidance.

  • Try login to rman connect to that db and see if you can execute the commands. Seems that your profile has issues.
  • Thanks Marriane

    so , is it possible take online backup on the standby node.if not how can we save the DB releated part in standby server ( is the normal standard policy used for full BMR would be enogh ? )

     i am getting below message as i have tried to take bakcup of the standby DB using hot_database_backup.sh RMAN scrip.

     

    com10:oracle # cat hot_database_backup.sh.out

    Script /usr/openv/netbackup/ext/db_ext/oracle/samples/rman/hot_database_backup.s
    ==== started on Tue Aug 19 08:54:40 GMT 2014 ====


    RMAN: /opt/PlexView/Oracle/ora01/app/oracle/product/11.2.0/bin/rman
    ORACLE_SID: plxdb
    ORACLE_USER: oracle
    ORACLE_HOME: /opt/PlexView/Oracle/ora01/app/oracle/product/11.2.0

    NB_ORA_FULL: 1
    NB_ORA_INCR: 0
    NB_ORA_CINC: 0
    NB_ORA_SERV: vtcnb01
    NB_ORA_POLICY: vzw-Oracle

    Full backup requested
    Last login: Tue Aug 19 08:54:17 UTC 2014

    Recovery Manager: Release 11.2.0.1.0 - Production on Tue Aug 19 08:54:40 2014

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

    connected to target database: PLXDB (DBID=3747984712)
    using target database control file instead of recovery catalog

    RMAN> 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12> 13> 14> 15> 16> 17> 18> 19> 20> 21> 22 4> 5> 6> 7> 8> 9> 10> 11> 12> 13> 14> 15> 16> 17> 18> 19> 20> 21> 22> 23> 24> 2
    allocated channel: ch00
    channel ch00: SID=605 device type=SBT_TAPE
    channel ch00: Veritas NetBackup for Oracle - Release 7.5 (2013061020)

    allocated channel: ch01
    channel ch01: SID=630 device type=SBT_TAPE
    channel ch01: Veritas NetBackup for Oracle - Release 7.5 (2013061020)

    Starting backup at 19-AUG-14
    channel ch00: starting incremental level 0 datafile backup set
    channel ch00: specifying datafile(s) in backup set
    input datafile file number=00006 name=/opt/PlexView/Oracle/ora02/oradata/plxdb/c
    input datafile file number=00008 name=/opt/PlexView/Oracle/ora02/oradata/plxdb/t
    input datafile file number=00009 name=/opt/PlexView/Oracle/ora02/oradata/plxdb/t
    input datafile file number=00010 name=/opt/PlexView/Oracle/ora02/oradata/plxdb/t
    input datafile file number=00005 name=/opt/PlexView/Oracle/ora02/oradata/plxdb/a
    channel ch00: starting piece 1 at 19-AUG-14
    channel ch01: starting incremental level 0 datafile backup set
    channel ch01: specifying datafile(s) in backup set
    input datafile file number=00002 name=/opt/PlexView/Oracle/ora02/oradata/plxdb/s
    input datafile file number=00003 name=/opt/PlexView/Oracle/ora02/oradata/plxdb/u
    input datafile file number=00004 name=/opt/PlexView/Oracle/ora02/oradata/plxdb/u
    input datafile file number=00001 name=/opt/PlexView/Oracle/ora02/oradata/plxdb/s
    input datafile file number=00007 name=/opt/PlexView/Oracle/ora02/oradata/plxdb/t
    channel ch01: starting piece 1 at 19-AUG-14
    channel ch00: finished piece 1 at 19-AUG-14
    piece handle=bk_6_1_855996882 tag=HOT_DB_BK_LEVEL0 comment=API Version 2.0,MMS V
    channel ch00: backup set complete, elapsed time: 00:00:15
    channel ch00: starting incremental level 0 datafile backup set
    channel ch00: specifying datafile(s) in backup set
    including current control file in backup set
    channel ch00: starting piece 1 at 19-AUG-14
    channel ch01: finished piece 1 at 19-AUG-14
    piece handle=bk_7_1_855996897 tag=HOT_DB_BK_LEVEL0 comment=API Version 2.0,MMS V
    channel ch01: backup set complete, elapsed time: 00:00:23
    channel ch01: starting incremental level 0 datafile backup set
    channel ch01: specifying datafile(s) in backup set
    including current SPFILE in backup set
    channel ch01: starting piece 1 at 19-AUG-14
    channel ch00: finished piece 1 at 19-AUG-14
    piece handle=bk_8_1_855996912 tag=HOT_DB_BK_LEVEL0 comment=API Version 2.0,MMS V
    channel ch00: backup set complete, elapsed time: 00:00:23
    channel ch01: finished piece 1 at 19-AUG-14
    piece handle=bk_9_1_855996936 tag=HOT_DB_BK_LEVEL0 comment=API Version 2.0,MMS V
    channel ch01: backup set complete, elapsed time: 00:00:15
    Finished backup at 19-AUG-14

    sql statement: alter system archive log current
    released channel: ch00
    released channel: ch01
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of sql command on default channel at 08/19/2014 08:56:06
    RMAN-11003: failure during parse/execution of SQL statement: alter system archiv
    ORA-01109: database not open

    RMAN> RMAN>

    Recovery Manager complete.
    Last login: Tue Aug 19 08:54:17 UTC 2014

    Script /usr/openv/netbackup/ext/db_ext/oracle/samples/rman/hot_database_backup.s
    ==== ended in error on Tue Aug 19 08:56:06 GMT 2014 ====

    com10:oracle #

     

    regards,

    Giri

  • Not sure how or why you are trying to take 'hot database backup' of the 'standby' db?

    Surely in Active/Passive cluster there is only ONE db that is online on the Active node?

  • I think he's referring to standby copy (data guard) type DB. I don't know if we can back up a standby database using cold script.

     

    You definitely can't back it up hot as its not open.