Backing up duplicated database in mount mode

Hi all
In our environment we have a live database and a standby database, which is a duplicate of live. We keep this standby database in permanent recovery mode (ie mounted), where archive logs from live are recovered against the standby to keep it up to date. It is opened with 'open resetlogs' whenever we wish to use it. The live database is backed up nightly using RMAN and a recovery catalog on another server.
We are thinking of moving the backup to the standby database to reduce the load on the live database. Given that the standby is the same incarnation and has the same dbid and SID as the live database, is this feasible? When I tried backing up the standby the backup completed without errors, however there was no record of the backup pieces in the recovery catalog. I don't want to have to register them manually.
Has anyone else tried this?
Thanks in advance for any help.

Hello;
Cannot see why it won't work.
Testing on my Test system right now. Primary side complete. Standby running now. Exact same script which I call using :
/u01/app/oracle/dba_tool/bin/db_rman_full.sh PRIMARY  > /tmp/rmanfull.out
/u01/app/oracle/dba_tool/bin/db_rman_full.sh STANDBY  > /tmp/rmanfull.outWill look for a catalog query to post.
Output from Standby side
Starting RMAN...
Recovery Manager: Release 11.2.0.3.0 - Production on Mon Jan 14 18:23:06 2013
Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
connected to target database: PRIMARY (DBID=1608938192, not open)
connected to recovery catalog database
RMAN>
RMAN> 2> 3> 4> 5> 6> 7> 8> 9> 10> 11>
allocated channel: d1
channel d1: SID=84 device type=DISK
allocated channel: d2
channel d2: SID=85 device type=DISK
allocated channel: d3
channel d3: SID=86 device type=DISK
allocated channel: d4
channel d4: SID=87 device type=DISK
Starting backup at 14-JAN-13
channel d1: starting compressed archived log backup set
channel d1: specifying archived log(s) in backup set
input archived log thread=1 sequence=161 RECID=159 STAMP=798463372
input archived log thread=1 sequence=162 RECID=161 STAMP=798487211
channel d1: starting piece 1 at 14-JAN-13
channel d2: starting compressed archived log backup set
channel d2: specifying archived log(s) in backup set
input archived log thread=1 sequence=163 RECID=162 STAMP=798487327
input archived log thread=1 sequence=164 RECID=163 STAMP=798487342
input archived log thread=1 sequence=165 RECID=164 STAMP=798487346
input archived log thread=1 sequence=166 RECID=165 STAMP=798487348
channel d2: starting piece 1 at 14-JAN-13
channel d3: starting compressed archived log backup set
channel d3: specifying archived log(s) in backup set
input archived log thread=1 sequence=167 RECID=167 STAMP=804709042
input archived log thread=1 sequence=168 RECID=166 STAMP=804709041
input archived log thread=1 sequence=169 RECID=168 STAMP=804709089
input archived log thread=1 sequence=170 RECID=169 STAMP=804709198
channel d3: starting piece 1 at 14-JAN-13
channel d4: starting compressed archived log backup set
channel d4: specifying archived log(s) in backup set
input archived log thread=1 sequence=171 RECID=170 STAMP=804709216
input archived log thread=1 sequence=172 RECID=171 STAMP=804709220
input archived log thread=1 sequence=173 RECID=172 STAMP=804709223
channel d4: starting piece 1 at 14-JAN-13
channel d2: finished piece 1 at 14-JAN-13
piece handle=/u01/app/oracle/flash_recovery_area/STANDBY/backupset/2013_01_14/o1_mf_annnn_TAG20130114T182314_8h98cndd_.bkp tag=TAG20130114T182314 comment=NONE
channel d2: backup set complete, elapsed time: 00:00:02
channel d3: finished piece 1 at 14-JAN-13
piece handle=/u01/app/oracle/flash_recovery_area/STANDBY/backupset/2013_01_14/o1_mf_annnn_TAG20130114T182314_8h98coy4_.bkp tag=TAG20130114T182314 comment=NONE
channel d3: backup set complete, elapsed time: 00:00:02
channel d4: finished piece 1 at 14-JAN-13
piece handle=/u01/app/oracle/flash_recovery_area/STANDBY/backupset/2013_01_14/o1_mf_annnn_TAG20130114T182314_8h98cp2n_.bkp tag=TAG20130114T182314 comment=NONE
channel d4: backup set complete, elapsed time: 00:00:01
channel d1: finished piece 1 at 14-JAN-13
piece handle=/u01/app/oracle/flash_recovery_area/STANDBY/backupset/2013_01_14/o1_mf_annnn_TAG20130114T182314_8h98cnbh_.bkp tag=TAG20130114T182314 comment=NONE
channel d1: backup set complete, elapsed time: 00:00:03
Finished backup at 14-JAN-13
Starting backup at 14-JAN-13
channel d1: starting compressed full datafile backup set
channel d1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/app/oracle/oradata/PRIMARY/system01.dbf
channel d1: starting piece 1 at 14-JAN-13
channel d2: starting compressed full datafile backup set
channel d2: specifying datafile(s) in backup set
input datafile file number=00002 name=/u01/app/oracle/oradata/PRIMARY/sysaux01.dbf
channel d2: starting piece 1 at 14-JAN-13
channel d3: starting compressed full datafile backup set
channel d3: specifying datafile(s) in backup set
input datafile file number=00003 name=/u01/app/oracle/oradata/PRIMARY/undotbs01.dbf
channel d3: starting piece 1 at 14-JAN-13
channel d4: starting compressed full datafile backup set
channel d4: specifying datafile(s) in backup set
input datafile file number=00004 name=/u01/app/oracle/oradata/PRIMARY/users01.dbf
channel d4: starting piece 1 at 14-JAN-13
channel d3: finished piece 1 at 14-JAN-13
piece handle=/u01/app/oracle/flash_recovery_area/STANDBY/backupset/2013_01_14/o1_mf_nnndf_TAG20130114T182319_8h98ctdg_.bkp tag=TAG20130114T182319 comment=NONE
channel d3: backup set complete, elapsed time: 00:00:03
channel d4: finished piece 1 at 14-JAN-13
piece handle=/u01/app/oracle/flash_recovery_area/STANDBY/backupset/2013_01_14/o1_mf_nnndf_TAG20130114T182319_8h98cv6l_.bkp tag=TAG20130114T182319 comment=NONE
channel d4: backup set complete, elapsed time: 00:00:03
channel d2: finished piece 1 at 14-JAN-13
piece handle=/u01/app/oracle/flash_recovery_area/STANDBY/backupset/2013_01_14/o1_mf_nnndf_TAG20130114T182319_8h98ctcs_.bkp tag=TAG20130114T182319 comment=NONE
channel d2: backup set complete, elapsed time: 00:01:06
channel d1: finished piece 1 at 14-JAN-13
piece handle=/u01/app/oracle/flash_recovery_area/STANDBY/backupset/2013_01_14/o1_mf_nnndf_TAG20130114T182319_8h98ct7p_.bkp tag=TAG20130114T182319 comment=NONE
channel d1: backup set complete, elapsed time: 00:01:26
Finished backup at 14-JAN-13
Starting backup at 14-JAN-13
specification does not match any archived log in the repository
backup cancelled because there are no files to backup
Finished backup at 14-JAN-13
Starting Control File and SPFILE Autobackup at 14-JAN-13
piece handle=/u01/app/oracle/flash_recovery_area/STANDBY/autobackup/2013_01_14/o1_mf_s_804709223_8h98gnn4_.bkp comment=NONE
Finished Control File and SPFILE Autobackup at 14-JAN-13
released channel: d1
released channel: d2
released channel: d3
released channel: d4
Additional Info
RC_BACKUP_SET_DETAILS shows:
SESSION_KEY 4870 ( primary side) and 5003 ( Standby side) and start times of 6:18PM and 6:23PM. So I did a full on the primary side and then a full on the Standby side on my tiny test system. Works.
When backing up from Standby some RMAN setting should change - Like ARCHIVE DELETION POLICY ( NONE ).
You might want to do Archive only backups on the Primary so you roll forward if needed.
See - "RMAN in a Data Guard Environment" Chapter 3 Database Backup and Recovery User's Guide 11g Release 2 (11.2) E10642-03
Best Regards
mseberg
Edited by: mseberg on Jan 14, 2013 6:28 PM
Edited by: mseberg on Jan 14, 2013 6:51 PM

Similar Messages

  • Starting Physically Standby Database in Mount Mode

    Hi All
    I have configured Data Guard using Oracle 10g 10.2.0.4.0 (64 bits) on Windows 2008 Server (64 bits) Release 2 Enterprise.
    Data guard configuration was OK as the message from "Enable Configuration DG1" was "SUCCESS" for both
    Primary and Standby Database. I have also set both Databases and TNS to start Automatically whenever Windows Starts.
    The Problem is as long as the Standby Server is running, there is No issue.
    But when we Restarts the Backup Server, Physically Standby Database is Started and TNS is also Started,
    but Archives  are not received until I physically do the following steps so that it can received the Archives.
    SQL> startup nomount;                                                                                                                
    SQL> alter database mount standby database;                                                                 
    SQL> alter database recover managed standby database disconnect from session;
    Is there a way to start Physically Standby Database in Mount mode when windows started.
    Regards
    Thunder2777

    Hi Mihael
    I have created 2 files. 1 Bat file 2nd sql file which contains all commands as written above.
    When I execute start.bat file
    1. set ORACLE_HOME=C:\oracle\product\10.2.0\db_1
    2. set ORACLE_SID=UMISBK
    3. sqlplus / [email protected]
    1 & 2 executed properly. At 3 it just display SQL help for login as shown below.
    SQL*Plus: Release 10.2.0.4.0 - Production
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    Usage 1: sqlplus -H | -V
        -H             Displays the SQL*Plus version and the usage help.
        -V             Displays the SQL*Plus version.
    Usage 2: sqlplus [ [<option>] [<logon>] [<start>] ]
      <option> is: [-C <version>] [-L] [-M "<options>"] [-R <level>] [-S]
    It Did Not execute start.sql file to excute sql commands.
    Regards
    Thunder2777

  • Problem with Dataguarg   ORA-01102: cannot mount database in EXCLUSIVE mode

    Hi,
    I'm trying to create a physical standby database on my Oracle9i DB runing
    on WinXP.
    Note: I have both Primary and Standby on the same system.
    Actually everything went well .... I did created the standby DB but the problem
    is I can not start my primary DB if my standby DB is mounted.
    I get this error:
    ORA-01102: cannot mount database in EXCLUSIVE mode
    And when I read about the error message I learnt that I should start my DB in
    compatible mode ... please how do I do that?
    Or possibly how can I make this work.
    Regards,
    Cherish

    Actually, I remember doing that in the Pry pfile but cannot really remember if I do that in the standby pfile.
    I'll check and get back to you.
    I'm very grateful for that.
    Regards,
    Cherish

  • Cannot open the database, stuck in mount mode

    Someone please shed some lights on this problem.
    I ran into some media failure, and ended up restoring the database from the offline whole backup.
    The database is in the nonarchivelog mode (I know, it is not good), so there is no archive log files and
    restore database is the only solution.
    . startup mount
    . restore database <== ran ok
    . ALTER DATABASE CLEAR LOGFILE GROUP 1 <== ran ok
    . ALTER DATABASE CLEAR LOGFILE GROUP 2 <== alter failed
    ORA-01624: log 2 needed for crash recovery of instance orcl (thread 1)
    Alter failed with group 2 and 3 because one was CURRENT,
    and one was ACTIVE.
    SQL> select group#, sequence#, members, status from v$log;
    GROUP# SEQUENCE# MEMBERS STATUS
    1 0 2 UNUSED
    3 189 2 CURRENT
    2 188 2 ACTIVE
    I also tried 'alter database open resetlogs', and got:
    ORA-01139: RESETLOGS option only valid after an incomplete database recovery
    I don't think I can recover the datafile since there is no archive log file here.
    Besides, if the restore database ran fine, why did I get SYSTEM01.DBF datafile needs media recovery message?
    Right now, the database is in mount mode, and I cannot open it. How do I solve the problem with
    ALTER DATABASE CLEAR LOGFILE GROUP for group 2 and 3?
    Any suggestion? Thank you for the input.
    The database is 11G running on Window.

    I would think the cold backup ran successfully. Here is the backup record:
    RMAN> run {
    2> shutdown immediate;
    3> startup mount;
    4> allocate channel c1 type disk;
    5> backup as backupset database;
    6> alter database open;
    7> }
    8>
    using target database control file instead of recovery catalog
    database closed
    database dismounted
    Oracle instance shut down
    connected to target database (not started)
    Oracle instance started
    database mounted
    Total System Global Area 535662592 bytes
    Fixed Size 1348508 bytes
    Variable Size 331353188 bytes
    Database Buffers 197132288 bytes
    Redo Buffers 5828608 bytes
    allocated channel: c1
    channel c1: SID=156 device type=DISK
    Starting backup at 29-NOV-09
    channel c1: starting full datafile backup set
    channel c1: specifying datafile(s) in backup set
    input datafile file number=00002 name=C:\APP\DAVECW\ORADATA\ORCL\SYSAUX01.DBF
    input datafile file number=00001 name=C:\APP\DAVECW\ORADATA\ORCL\SYSTEM01.DBF
    input datafile file number=00003 name=C:\APP\DAVECW\ORADATA\ORCL\UNDOTBS01.DBF
    input datafile file number=00005 name=C:\APP\DAVECW\ORADATA\ORCL\EXAMPLE01.DBF
    input datafile file number=00006 name=C:\APP\DAVECW\ORADATA\ORCL\INVENTORY01.DBF
    input datafile file number=00004 name=C:\APP\DAVECW\ORADATA\ORCL\USERS01.DBF
    channel c1: starting piece 1 at 29-NOV-09
    channel c1: finished piece 1 at 29-NOV-09
    piece handle=C:\APP\DAVECW\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2009_11_29\O1_MF_NNNDF_TAG20091129T230
    632_5K6VQY0W_.BKP tag=TAG20091129T230632 comment=NONE
    channel c1: backup set complete, elapsed time: 00:01:55
    channel c1: starting full datafile backup set
    channel c1: specifying datafile(s) in backup set
    including current control file in backup set
    including current SPFILE in backup set
    channel c1: starting piece 1 at 29-NOV-09
    channel c1: finished piece 1 at 29-NOV-09
    piece handle=C:\APP\DAVECW\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2009_11_29\O1_MF_NCSNF_TAG20091129T230
    632_5K6VVNJR_.BKP tag=TAG20091129T230632 comment=NONE
    channel c1: backup set complete, elapsed time: 00:00:03
    Finished backup at 29-NOV-09
    database opened
    released channel: c1
    Recovery Manager complete.

  • Error message in Command line (cannot mount database in EXCLUSIVE mode)

    Hello Experts
    I'm new in Oracle and trying to connect to my database though SQL command line. After I login as SYS I user I get the message that 'connected to idle instance'. Then I use “STARTUP” to connect to database. Now from my understanding it should mount the database and open it as well. But it does'nt happens.Instead I get the message 'cannot mount database in EXCLUSIVE mode' . I'm not sure why it can't mound the database and what should I do to make it working. Please can somebody show me how to make it working again. Here are the details about my problem
    Enter user-name: SYS as SYSDBA
    Enter password:
    Connected to an idle instance.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 595591168 bytes
    Fixed Size 1220748 bytes
    Variable Size 301993844 bytes
    Database Buffers 285212672 bytes
    Redo Buffers 7163904 bytes
    ORA-01102: cannot mount database in EXCLUSIVE mode
    Thanks a lot in advance.

    Thank you so much for both of you. I've checked everything. All looks fine to me and then i tried to connect though SQL and it worked. Now what I've notice that this time I didn't start Enterprise Manager only I started the listner and then start sql it worked. Does this means that I can't use both SQL and EM at a time together?

  • ORA-01102: cannot mount database in EXCLUSIVE mode

    Hello,
    I am working with an Oracle VM Template: Oracle Application Server 10g Release 3 WebCenter (x86 32-bit). In this template exists an Oracle database (version: 10.2.0.3.0), I am trying to do something operation (ie create a new user, query a system template, etc) but I can't because I have ORA-01102 error.
    I have DB and listener up :
    $ORACLE_HOME/bin
    lsnrctl status
    LSNRCTL for Linux: Version 10.2.0.3.0 - Production on 18-MAR-2011 08:25:04
    Copyright (c) 1991, 2006, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_ORCL)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 10.2.0.3.0 - Production
    Start Date                18-MAR-2011 08:09:45
    Uptime                    0 days 0 hr. 15 min. 19 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File
    +/u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora+
    Listener Log File         /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
    +(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_ORCL)))+
    +(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=haovm007)(PORT=1521)))+
    +(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=haovm007)(PORT=8080))(Presentation=HTTP)(Session=RAW))+
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orcl_XPT" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    I have export environment variables:
    export ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1/
    export ORACLE_SID = orcl
    +export PATH = ${ORACLE_HOME}bin:${PATH}+
    Then I connect to DB:
    sqlplus> connect / as sysdba
    +sqlplus> shutdown {abort/immediate}+
    ORA-01507: database not mount+
    ORACLE instance shutdown
    +sqlplus> startup {mount}+
    ORACLE instance startup
    ORA-01102: cannot mount database in EXCLUSIVE mode+
    So, I have checked listener.ora and tnsnames.ora and they are OK, so I don't know why I can't access to the DB.
    Any idea/suggestion is welcome!
    Thank you in advance and regards,
    Mónica.

    Mónica wrote:
    Hi Kamran Agayev A.,
    thank you so much, I have solve the issue!!
    I have executed your command, and after I startup the DB and it works!!!
    Regards,
    MónicaWell done! :)
    Kamran Agayev A.
    Oracle ACE
    My Oracle Video Tutorials - http://kamranagayev.wordpress.com/oracle-video-tutorials/

  • Cannot mount database in exclusive mode

    Hi guys
    for practice Ive installed oracle 10g on centos 4, when i try to start the db it showed no pfile(it created the spfile while installing oracle but fails to recognize that) I created the pfile and when I tried to start the db it is throwing the error ORA-01102 cannot mount the database in exclusive mode. I didnt start any databases but it is throughing this error
    any one please help.

    venkata_sudheer wrote:
    for practice Ive installed oracle 10g on centos 4, when i try to start the db it showed no pfile(it created the spfile while installing oracle but fails to recognize that)
    I created the pfile and when I tried to start the db it is throwing the error ORA-01102 cannot mount the database in exclusive mode. I didnt start any databases
    but it is throughing this error You can try to create pfile:
    SQL> create pfile from spfile;How you tryed to mount?
    Like this?
    SQL> STARTUP EXCLUSIVE MOUNT dbnameExclusive mode is usually needed when SYSTEM tablespace is being migrated.

  • ORA-01102 unable to mount the database in exclisive mode

    Hi !
    My system run on oracle 10g R2 Windows 32 bit and I have configured 2 databases in data guard on the same computer. The primary database "smartbk" start very well but the standby database is not able to mount; when I issued the startup mount command I ge he error ORA -01102 unable to mount the database in exclisive mode.
    Can someone help please!!!

    Because your database is standby database, so you can not use startup mount,
    try this
    sql>startup nomount;
    sql>alter database mount standby database;

  • Databases instances stuck in MOUNT MODE after srvctl start database -d

    Hi,
    I wonder if anyone can shed some light on why the following scenario is happening in our environment.
    We have a 4 node site, configured with RAC on nodes 1 & 2 and dataguard shipping the logs to a standby physical cluster
    database on nodes 3 & 4.
    Our issue is this:
    When the database instances on nodes 1 & 2 are stopped and restarted using this command sequence
    srvctl stop database -d SOCPRODCAV
    srvctl start database -d SOCPRODCAV
    each database instance gets started up only as far as MOUNT mode.
    The databases are not opened and i have to go in and do this manually for each instance.
    The above command sequence used to successfully restart the database and leave it open for use so i'm wondering how the start
    mode has been changed and if there is an area of configuration or view anyone can guide me to look at it.
    I provide remote DBA support for this client's and it is possible that another onsite DBA may have changed something.
    Any pointers gratefully received.
    Regards,
    George

    See current configuration as follows
    srvctl config database -d SOCPRODCAV -aThis should show you current startup/stop settings as follows
    Start options: open
    Stop options: immediate
    Now you can change current settings if Start option is not "open"
    srvctl modify database -d SOCPRODCAV -s OPENReference
    http://docs.oracle.com/cd/E14072_01/server.112/e10595/restart005.htm#i1009665
    Salman

  • PMON and ORA-01102: cannot mount database in EXCLUSIVE mode error

    hello all
    I have been asked to look into a problem server with the following details
    OS: sunOS 5.8
    Oracle: 10.2.0.1
    sys user password is not available !
    backgrround processes for the instance(sid=test) are running
    only schema credentials available and with that user is able to connect.
    verified all oraenv parameters(ORACLE_SID is same as the running instance(test)).
    only one instance is configured in this server(verified all tnsnames.ora, data files etc).oratab is empty
    the issues are,
    when I tried to connect to the server using "oracle" user using conn / as sysdba
    1. Tried to shutdown using , shutdown immediate
    ORA-01507:database not mounted
    ORACLE instance shut down
    still able to see the background processes and user is able to connect
    2. Tried startup command,
    In the nomount state I can see more than one PMON process with the same sid
    when tried to mount/open
    ran into the error,
    ORA-01102: cannot mount database in EXCLUSIVE mode
    Eventhough the background processes for the "test" instance are running I am not able to shutdown the instance using "oracle" user
    please help
    newbie

    hi
    i renamed lk* file but the issue still remains,
    with the oracle user
    1./ as sysdba
    2. shutdown immediate
    this leads to
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    SVR4 Error: 2: No such file or directory
    still not able to identify the running oracle instance.
    there is only one oracle home and the oraenv details are set with the correct values
    verified the alert log(ora home details are matching with the env details), details of the oracle processes which are active are in the alert log along with the startup failures(mount errors) at the tail end
    oracle sysdba is not able to identify the already running instance?
    please help
    newbie

  • ORA-011-2 cannot mount database in Exclusive mode

    This is brand new both Oracle 10g and SUSE 9.3 install. The installation went fine, no errors. At the end I tried to verify the installation:
    sqlplus /nolog
    SQL>connect / as sysdba
    Connected to an idle instance
    SQL>startup
    ORA-01078: failure in processing system parameters
    LRM-00109: could not open parameter file '/opt/oracle/product/10g/dbs/initmydb.ora'
    SQL>
    So, I figured the missing initmydb file must be in different directory so I looked for it, started new shell session and entered this:
    ln -s @ORACLE_BASE/admin/orcl/pfile/initmydb.ora
    $ORACLE_HOME/dbs/initmydb.ora
    Now I get the following error:
    SQL>startup
    ORA-011-2 cannot mount database in Exclusive mode
    This is third time that I am triyng to install both SUSE and Oracle from scratch and I always run in the same problem, so you can only imagine how I feel.

    Now after reading many documents I am even more confused. The thing is, now I can connect to EM and manage database, create tables, etc, which means the database is up, right? However, I am unable to verify the database existance in sqlplus.
    First after I connect as sysdba in sqlplus, the console says "Connected to an idle instance". When I enter show sga sqlplus, the sqlplus displays 0. Startup comand will display error in the above post.
    So, the bottom line is, according to the EM the database is up and running (I can use isqlplus too) but not according to sqlplus on the server itself. What'sgoing on here? I've been reading every single paper on Oracle's and Novell SUSE web sites and couldn't find anything about it.

  • Oracle ORA-01102故障: cannot mount database in EXCLUSIVE mode

    SQL> conn /as sysdba
    Connected to an idle instance.
    SQL> startup
    oracle instance started.
    Total System Global Area 276824064 bytes
    Fixed Size 778736 bytes
    Variable Size 137371152 bytes
    Database Buffers 138412032 bytes
    Redo Buffers 262144 bytes
    ORA-01102: cannot mount database in EXCLUSIVE mode
    出现这个问题,可能是由于断电的问题,解决方法是
    出现1102错误可能有以下几种可能:
    一、在HA系统中,已经有其他节点启动了实例,将双机共享的资源(如磁盘阵列上的裸设备)占用了;
    二、说明 oracle 被异常关闭时,有资源没有被释放,一般有以下几种可能,
    1、 oracle 的共享内存段或信号量没有被释放;
    2、 oracle 的后台进程(如SMON、PMON、DBWn等)没有被关闭;
    3、 用于锁内存的文件lk<sid>和sgadef<sid>.dbf文件没有被删除。
    首先,虽然我们的系统是HA系统,但是备节点的实例始终处在关闭状态,这点通过在备节点上查数据库状态可以证实。
    其次、是因系统掉电引起数据库宕机的,系统在接电后被重启,因此我们排除了第二种可能种的1、2点。最可疑的就是第3点了。
    查$ORACLE_HOME/dbs目录:
    $ cd $ORACLE_HOME/dbs
    $ ls sgadef*
    sgadef* not found
    $ ls lk*
    lkORA92
    果然,lk<sid>文件没有被删除。将它删除掉
    $ rm lk*
    再启动数据库,成功。
    如果怀疑是共享内存没有被释放,可以用以下命令查看:
    $ipcs -mop
    IPC status from /dev/kmem as of Thu Jul 6 14:41:43 2006
    T ID KEY MODE OWNER GROUP NATTCH CPID LPID
    Shared Memory:
    m 0 0×411c29d6 –rw-rw-rw- root root 0 899 899
    m 1 0×4e0c0002 –rw-rw-rw- root root 2 899 901
    m 2 0×4120007a –rw-rw-rw- root root 2 899 901
    m 458755 0×0c6629c9 –rw-r—– root sys 2 9113 17065
    m 4 0×06347849 –rw-rw-rw- root root 1 1661 9150
    m 65541 0xffffffff –rw-r–r– root root 0 1659 1659
    m 524294 0×5e100011 –rw——- root root 1 1811 1811
    m 851975 0×5fe48aa4 –rw-r—– oracle oinstall 66 2017 25076
    然后它ID号清除共享内存段:
    $ipcrm –m 851975
    对于信号量,可以用以下命令查看:
    $ ipcs -sop
    IPC status from /dev/kmem as of Thu Jul 6 14:44:16 2006
    T ID KEY MODE OWNER GROUP
    Semaphores:
    s 0 0×4f1c0139 –ra——- root root
    s 14 0×6c200ad8 –ra-ra-ra- root root
    s 15 0×6d200ad8 –ra-ra-ra- root root
    s 16 0×6f200ad8 –ra-ra-ra- root root
    s 17 0xffffffff –ra-r–r– root root
    s 18 0×410c05c7 –ra-ra-ra- root root
    s 19 0×00446f6e –ra-r–r– root root
    s 20 0×00446f6d –ra-r–r– root root
    s 21 0×00000001 –ra-ra-ra- root root
    s 45078 0×67e72b58 –ra-r—– oracle oinstall
    根据信号量ID,用以下命令清除信号量:
    $ipcrm -s 45078
    如果是 oracle 进程没有关闭,用以下命令查出存在的 oracle 进程:
    $ ps -ef|grep ora
    oracle 29976 1 0 Jun 22 ? 0:52 ora_dbw0_ora92
    oracle 29978 1 0 Jun 22 ? 0:51 ora_dbw1_ora92
    oracle 5128 1 0 Jul 5 ? 0:00 oracleora92 (LOCAL=NO)
    然后用kill -9命令杀掉进程
    $kill -9 <PID>
    总结:
    当发生1102错误时,可以按照以下流程检查、排错:
    1.如果是HA系统,检查其他节点是否已经启动实例;
    2.检查 oracle 进程是否存在,如果存在则杀掉进程;
    3.检查信号量是否存在,如果存在,则清除信号量;
    4.检查共享内存段是否存在,如果存在,则清除共享内存段;
    5.检查锁内存文件lk<sid>和sgadef<sid>.dbf是否存在,如果存在,则删除

    No, its still not helping..even after trying to kill the semaphores:
    /opt/oracle/product/db10g/dbs (ac4orcloms01-ac4:emrep)> ipcs
    ------ Shared Memory Segments --------
    key shmid owner perms bytes nattch status
    0x00000000 0 oracle 640 538968064 1 dest
    0x00000000 32769 oracle 600 192 1 dest
    0x00000000 65538 oracle 600 1474564 8 dest
    ------ Semaphore Arrays --------
    key semid owner perms nsems
    ------ Message Queues --------
    key msqid owner perms used-bytes messages
    /opt/oracle/product/db10g/dbs (ac4orcloms01-ac4:emrep)> ipcrm -m 32769
    /opt/oracle/product/db10g/dbs (ac4orcloms01-ac4:emrep)> ipcrm -m 65538
    /opt/oracle/product/db10g/dbs (ac4orcloms01-ac4:emrep)> ipcs
    ------ Shared Memory Segments --------
    key shmid owner perms bytes nattch status
    0x00000000 0 oracle 640 538968064 1 dest
    0x00000000 32769 oracle 600 192 1 dest
    0x00000000 65538 oracle 600 1474564 8 dest
    ------ Semaphore Arrays --------
    key semid owner perms nsems
    ------ Message Queues --------
    key msqid owner perms used-bytes messages
    /opt/oracle/product/db10g/dbs (ac4orcloms01-ac4:emrep)> ps -e f|grep emrep
    3273 ? Ds 0:00 ora_ckpt_emrep
    /opt/oracle/product/db10g/dbs (ac4orcloms01-ac4:emrep)>

  • Pls need your help!! ORA-01102: cannot mount database in EXCLUSIVE mode

    I really appreciate if you can help me.
    In the test environment Oracle 10g r2, I was trying to change some init.ora parameters and some flashback database parameters. Flashback required to start in mount exclusive, and the init parameters only start mount. I do not know the difference between mount and mount exclusive. i used start mount exclusive to alter all the parameters. At the end, I used ALTER DATABASE OPEN. Now, I can't start the database. The following is the error that I am getting. Can you explain the difference between start mount and start mount exclusive.
    Thanks, Terry
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> startup mount;
    ORA-01081: cannot start already-running ORACLE - shut it down first
    SQL> shutdown immediate;
    ORA-01507: database not mounted
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    Total System Global Area 612368384 bytes
    Fixed Size 1980616 bytes
    Variable Size 230688568 bytes
    Database Buffers 377487360 bytes
    Redo Buffers 2211840 bytes
    ORA-01102: cannot mount database in EXCLUSIVE mode

    sidney$ ps -ef| grep ora_
    oracle 13663 1 0 16:39:46 ? 0:00 ora_mmon_orcl
    oracle 13150 1 0 14:46:07 ? 0:00 ora_q000_orcl
    oracle 13105 1 0 14:45:29 ? 0:02 ora_dbw0_orcl
    oracle 13107 1 0 14:45:29 ? 0:01 ora_lgwr_orcl
    oracle 13117 1 0 14:45:30 ? 0:04 ora_mmon_orcl
    oracle 13099 1 0 14:45:28 ? 0:01 ora_pmon_orcl
    oracle 13119 1 0 14:45:30 ? 0:05 ora_mmnl_orcl
    oracle 13113 1 0 14:45:30 ? 0:00 ora_reco_orcl
    oracle 13115 1 0 14:45:30 ? 0:01 ora_cjq0_orcl
    oracle 13136 1 0 14:45:51 ? 0:00 ora_arc0_orcl
    oracle 13152 1 0 14:46:07 ? 0:00 ora_q001_orcl
    oracle 13126 1 0 14:45:36 ? 0:01 ora_rvwr_orcl
    oracle 13680 13615 0 16:46:00 pts/6 0:00 grep ora_
    oracle 13667 1 0 16:39:46 ? 0:00 ora_d000_orcl
    oracle 13101 1 0 14:45:28 ? 0:01 ora_psp0_orcl
    oracle 13142 1 0 14:45:56 ? 0:00 ora_qmnc_orcl
    oracle 13138 1 0 14:45:52 ? 0:00 ora_arc1_orcl
    oracle 13121 1 0 14:45:30 ? 0:00 ora_d000_orcl
    oracle 13655 1 0 16:39:45 ? 0:00 ora_ckpt_orcl
    oracle 13103 1 0 14:45:28 ? 0:01 ora_mman_orcl
    oracle 13669 1 0 16:39:46 ? 0:00 ora_s000_orcl
    oracle 13653 1 0 16:39:45 ? 0:00 ora_lgwr_orcl
    oracle 13649 1 0 16:39:44 ? 0:01 ora_mman_orcl
    oracle 13123 1 0 14:45:31 ? 0:00 ora_s000_orcl
    oracle 13647 1 0 16:39:44 ? 0:00 ora_psp0_orcl
    oracle 13659 1 0 16:39:45 ? 0:00 ora_reco_orcl
    oracle 13111 1 0 14:45:29 ? 0:04 ora_smon_orcl
    oracle 13109 1 0 14:45:29 ? 0:04 ora_ckpt_orcl
    oracle 13665 1 0 16:39:46 ? 0:00 ora_mmnl_orcl
    oracle 13678 1 0 16:45:05 ? 0:00 ora_j000_orcl
    oracle 13651 1 0 16:39:45 ? 0:00 ora_dbw0_orcl
    oracle 13657 1 0 16:39:45 ? 0:00 ora_smon_orcl
    oracle 13645 1 0 16:39:44 ? 0:00 ora_pmon_orcl
    oracle 13661 1 0 16:39:46 ? 0:00 ora_cjq0_orcl
    sidney$

  • Creating a duplicated database from active database

    I'm having problem trying to duplicate a database from a target database (PROD) to the auxiliary one (AUX).
    This is what I've configured:
    listener.ora
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = PROD)
          (ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1/)
          (SID_NAME = PROD)
        (SID_DESC =
          (GLOBAL_DBNAME = AUX)
          (ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1/)
          (SID_NAME = AUX)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = my_ip)(PORT = 1521))
    ADR_BASE_LISTENER = /u01/app/oracletnsnames.ora
    AUX =
      (DESCRIPTION =
        (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = my_ip)(PORT = 1521)))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = AUX)
    PROD =
      (DESCRIPTION =
        (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = my_ip)(PORT = 1521)))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = PROD)
      )/u01/app/oracle/product/11.2.0/db_1/dbs/initAUX.ora
    db_name='AUX'
    cp /u01/app/oracle/product/11.2.0/db_1/dbs/orapwPROD /u01/app/oracle/product/11.2.0/db_1/dbs/orapwAUX- Started PROD database (open and in archive log mode)
    - Started AUX database (in nomount mode and usinf pfile='/u01/app/oracle/product/11.2.0/db_1/dbs/initAUX.ora')
    But when I issue the following command I get connected to auxiliary database (not started) :
    rman target sys/oracle@PROD auxiliary sys/oracle@AUX
    connected to target database: PROD (DBID=196032563)
    connected to auxiliary database (not started)And executing the duplicate command it returns:
    RMAN> duplicate target database to AUX from active database spfile parameter_value_convert '/DATA/PROD/','+DG_DATA_AUX' set db_create_file_dest='+DG_DATA_AUX';
    Starting Duplicate Db at 2010-09-28:13:36:50
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 09/28/2010 13:36:50
    RMAN-06403: could not obtain a fully authorized session
    RMAN-04006: error from auxiliary database: ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 Error: 2: No such file or directorylsnrctl stopped and restarted several times. This is the output of lsnrctl status command:
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 28-SEP-2010 13:45:14
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=my_ip)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                28-SEP-2010 12:44:50
    Uptime                    0 days 0 hr. 1 min. 22 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/diag/tnslsnr/my_ip/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=my_ip)(PORT=1521)))
    Services Summary...
    Service "PROD" has 1 instance(s).
      Instance "PROD", status READY, has 1 handler(s) for this service...
    Service "PRODXDB" has 1 instance(s).
      Instance "PROD", status READY, has 1 handler(s) for this service...
    Service "AUX" has 2 instance(s).
      Instance "AUX", status UNKNOWN, has 1 handler(s) for this service...
      Instance "AUX", status BLOCKED, has 1 handler(s) for this service...
    The command completed successfullyI have already created a duplicated database from a backup of the target one and the configuration was quite the same: the differences are that using active database duplication I needed to use orapw files (and they need to have the same password) and that I needed to connect using Oracle Net service name to connect to the auxiliary instance.. otherwise I got:
    export ORACLE_SID=AUX
    rman target sys/oracle@PROD auxiliary sys/oracle
    connected to target database: PROD (DBID=196032563)
    connected to auxiliary database: AUX (not mounted)
    RMAN> duplicate target database to AUX from active database spfile parameter_value_convert '/DATA/PROD/','+DG_DATA_AUX' set db_create_file_dest='+DG_DATA_AUX';
    Starting Duplicate Db at 2010-09-28:12:27:21
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 09/28/2010 12:27:21
    RMAN-06217: not connected to auxiliary database with a net service nameWhere am I wrong?

    Thanks for your support. My instance was and is still in nomount mode. But I'm not able to connect this instance as auxiliary and in the right expected mode:
    connected to auxiliary database: AUX (not mounted)
    [oracle@my_ip oracle]$ env|grep SID      
    ORACLE_SID=AUX
    [oracle@my_ip oracle]$ sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Sep 29 10:28:44 2010
    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, OLAP, Data Mining and Real Application Testing options
    idle> shutdown immediate
    ORA-01507: database not mounted
    ORACLE instance shut down.
    idle> startup nomount pfile=/u01/app/oracle/product/11.2.0/db_1/dbs/initAUX.ora
    ORACLE instance started.
    Total System Global Area  217157632 bytes
    Fixed Size                  2211928 bytes
    Variable Size             159387560 bytes
    Database Buffers           50331648 bytes
    Redo Buffers                5226496 bytes

  • Database in Archivelog mode

    Hi
    All,
    I have oracle 9.2.0.6 at my workplace.right now my database running in ARCHIVELOG MODE. I want to set it to NOARCHIVELOG MODE.
    can I do on the fly? in other way, Do I need to shutdown and restart database?
    Any help will be appreciated.
    Thanks,
    Vishal

    Hi,
    Issue the following commands to put a database into NOARCHVELOG mode:
    1) Take Back up of Present SPfile by creating pfile
    create pfile from present spfile.
    2) Shutdown the database by SUTDOWN IMMEDIATE.
    3) Take Cold backup of the database.
    4) Change the parameter in the pfile.
    log_archive_start = FALSE
    #log_archive_dest_1 = 'LOCATION='Your location'
    log_archive_dest_state_1 = DISABLE
    #log_archive_format = %d_%t_%s.arc
    5) And make a spfile from the modified pfile in default location .
    6) Start the database with spfile.
    SQL> CONNECT sys AS SYSDBA
    SQL> STARTUP MOUNT ;
    SQL> ALTER DATABASE ARCHIVELOG;
    SQL> ARCHIVE LOG START;
    SQL> ALTER DATABASE OPEN;
    NOTE 1: Remember to take a baseline database backup right after disabling archivelog mode. Without it one would not be able to recover.
    Regards
    Jafar

Maybe you are looking for

  • File name and folder list

    My alphabetized list of folders and filenames on my hard drive has suddenly changed to a list ordered by most recently modified. [I keep my files on the hard drive rather than under users]. How do I change it back. Thanks

  • O365 federation for testing purposes

    hello, could i set up federated trust from my on premisse infrastructure to o365 (using adfs and dyrsync and localy issuated certificate) just for testing purposes , and after test period i would just brake the trust. Could that have any circumstance

  • Urgent:changing the Directory  of process chains

    HI SAP GURUS, I actually created some process chains in the notassigned nodes ,i want to assign them another directory in which all my other process chains.Can any body help me to sort this.Its very urgent thanks in advance Message was edited by:    

  • Corba:  JPEG export

    Hallo, i control the InDesignServer over Corba and communicate with java. I can export a PageItem as JPG but the resolution information is always on 72 ppi. Although I set these informations. application.getJPEGExportPreferences().setJPEGQuality(kJPE

  • Ummmm this is the oddest thing ever.

    i downloaded the new intel updated for my mac mini and i restarted it and i left it on. when i come back my screensaver with all my itunes album cover is shaded pink. i checked all my other screen savers and they are fine. I also checked itunes and t