Creation of Standby database on same host

Hi All,
I am using oracle 9.2.0.1.0 on windows XP machine.
*I want to create the standby database for my primary database on same machine.
But both tha data base is heaving diff instance as well as the diff database name say "ASHU" for primary & "TEST" for standby database.
I took the backup of all datafile and copied it in the standby location.
Generate the standby control file also and copied to the standby location.
But when i am going to start the standby database it is giving the below error:
SQL> startup nomount;
ORACLE instance started.
Total System Global Area 135338868 bytes
Fixed Size 453492 bytes
Variable Size 109051904 bytes
Database Buffers 25165824 bytes
Redo Buffers 667648 bytes
SQL> alter database mount standby database;
alter database mount standby database
ERROR at line 1:
ORA-01103: database name 'ASHU' in controlfile is not 'TEST'
How to rectify it? Please help me
(* This is only for learning pupose , that's why i am going to create both on same host"

>
SQL> alter database mount standby database;
alter database mount standby database
ERROR at line 1:
ORA-01103: database name 'ASHU' in controlfile is not 'TEST'
How to rectify it? Please help me
>
You do not change the dbname of the physical standby database. They always must have the same name as the primary.
Here is a snippet from my standby initialization file for a 9i installation. Notice the parameter LOCK_NAME_SPACE that was replaced in 10g with DB_UNIQUE_NAME
db_file_name_convert=('E:\PRIMA','E:\PHYST')
db_name='PRIMA'
instance_name='PHYST'
service_names='PHYST'
lock_name_space='PHYST'
log_archive_dest_1='LOCATION=E:\PHYST\ARCHIVE'
log_archive_start=TRUE
log_archive_format='%t_%s.arc'
log_file_name_convert=('E:\PRIMA','E:\PHYST')Kind regards
Uwe
http://uhesse.wordpress.com
Edited by: Uwe Hesse on 27.07.2009 13:36

Similar Messages

  • Cloning of database to same host give error, unable to re-create online log

    clone the database to same host
    oracle version: 9.2.0.5
    os HP
    target db: tardb
    catlog catlog
    auxiliary: auxbr
    After running this script, I am getting error unable to re-create online log.
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 06/08/2009 23:17:38
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06136: ORACLE error from auxiliary database: ORA-00344: unable to re-create online log '/db/app/oracle/product/9.2.0.5/dbs/ /db
    /redolog.001/catalog1/catalog1_log1.rdo'
    ORA-27040: skgfrcre: create error, unable to create file
    HP-UX Error: 2: No such file or directory
    I tried to shutdown, and mount, recover with backup contorlfile until cancel. and open with reset logs ,
    I am not able to make the copy of the database on same host.
    Help is appreciated.
    complete error log
    oracle@dimondz{auxbr}/db/app/oracle/dba/sql> sqlplus '/as sysdba'
    SQL*Plus: Release 9.2.0.5.0 - Production on Mon Jun 8 23:11:23 2009
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to an idle instance.
    SQL> startup nomount pfile='/db/app/oracle/admin/catlog/pfile/initauxbr.ora';
    ORACLE instance started.
    Total System Global Area 219115512 bytes
    Fixed Size 737272 bytes
    Variable Size 83886080 bytes
    Database Buffers 134217728 bytes
    Redo Buffers 274432 bytes
    SQL> create spfile from pfile='/db/app/oracle/admin/catlog/pfile/initauxbr.ora';
    File created.
    SQL> exit
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
    With the Partitioning option
    JServer Release 9.2.0.5.0 - Production
    oracle@dimondz{auxbr}/db/app/oracle/dba/sql>
    oracle@dimondz{auxbr}/db/app/oracle/dba/sql> rman
    Recovery Manager: Release 9.2.0.5.0 - 64bit Production
    Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
    RMAN> connect catalog rman/rman@catlog
    connected to recovery catalog database
    RMAN> connect target sys/dimondz@tardb
    connected to target database: tardb (DBID=3063303886)
    RMAN> connect auxiliary sys/dimondz@auxbr
    connected to auxiliary database: auxbr (not mounted)
    RMAN>
    RMAN> RUN
    2> {
    3> SET NEWNAME FOR DATAFILE 1 TO '/db/catalog1.001/oradata/system01.dbf';
    4>
    5> SET NEWNAME FOR DATAFILE 2 TO '/db/catalog1.001/oradata/undotbs01.dbf';
    6>
    SET NEWNAME FOR DATAFILE 3 TO '/db/catalog1.001/oradata/ptest01.dbf';
    7> 8>
    9> SET NEWNAME FOR DATAFILE 4 TO '/db/catalog1.001/oradata/users_01.dbf';
    10>
    11> SET NEWNAME FOR DATAFILE 5 TO '/db/catalog1.001/oradata/drsys_01.dbf';
    12>
    13> SET NEWNAME FOR DATAFILE 6 TO '/db/catalog1.001/oradata/qms_dat_01.dbf';
    14>
    15> SET NEWNAME FOR DATAFILE 7 TO '/db/catalog1.001/oradata/ultradat_01.dbf';
    16>
    17> SET NEWNAME FOR DATAFILE 11 TO '/db/catalog1.001/oradata/xmltbs_01.dbf';
    18>
    19> DUPLICATE TARGET DATABASE TO auxbr
    20>
    21> pfile=/db/app/oracle/admin/catlog/pfile/initauxbr.ora
    22> logfile
    23> ' /db/redolog.001/catalog1/catalog1_log1.rdo' size 5m,
    24> ' /db/redolog.003/catalog1/catalog1_log2.rdo' size 5m,
    25> ' /db/redolog.002/catalog1/catalog1_log3.rdo' size 5m;
    26> }
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    Starting Duplicate Db at 08-JUN-09
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: sid=11 devtype=DISK
    printing stored script: Memory Script
    set until scn 229907626;
    set newname for datafile 1 to
    "/db/catalog1.001/oradata/system01.dbf";
    set newname for datafile 2 to
    "/db/catalog1.001/oradata/undotbs01.dbf";
    set newname for datafile 3 to
    "/db/catalog1.001/oradata/ptest01.dbf";
    set newname for datafile 4 to
    "/db/catalog1.001/oradata/users_01.dbf";
    set newname for datafile 5 to
    "/db/catalog1.001/oradata/drsys_01.dbf";
    set newname for datafile 6 to
    "/db/catalog1.001/oradata/qms_dat_01.dbf";
    set newname for datafile 7 to
    "/db/catalog1.001/oradata/ultradat_01.dbf";
    set newname for datafile 11 to
    "/db/catalog1.001/oradata/xmltbs_01.dbf";
    restore
    check readonly
    clone database
    executing script: Memory Script
    executing command: SET until clause
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    Starting restore at 08-JUN-09
    using channel ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: starting datafile backupset restore
    channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to /db/catalog1.001/oradata/system01.dbf
    restoring datafile 00002 to /db/catalog1.001/oradata/undotbs01.dbf
    restoring datafile 00003 to /db/catalog1.001/oradata/ptest01.dbf
    restoring datafile 00004 to /db/catalog1.001/oradata/users_01.dbf
    restoring datafile 00005 to /db/catalog1.001/oradata/drsys_01.dbf
    restoring datafile 00006 to /db/catalog1.001/oradata/qms_dat_01.dbf
    restoring datafile 00007 to /db/catalog1.001/oradata/ultradat_01.dbf
    restoring datafile 00011 to /db/catalog1.001/oradata/xmltbs_01.dbf
    channel ORA_AUX_DISK_1: restored backup piece 1
    piece handle=/dump/DBA/RMAN/tardb_bkup/db_tardb_f_04kgt77h tag=WHOLE_DATABASE_tardb params=NULL
    channel ORA_AUX_DISK_1: restore complete
    Finished restore at 08-JUN-09
    sql statement: CREATE CONTROLFILE REUSE SET DATABASE "auxbr" RESETLOGS ARCHIVELOG
    MAXLOGFILES 5
    MAXLOGMEMBERS 5
    MAXDATAFILES 100
    MAXINSTANCES 1
    MAXLOGHISTORY 907
    LOGFILE
    GROUP 1 ' /db/redolog.001/catalog1/catalog1_log1.rdo' SIZE 5242880 ,
    GROUP 2 ' /db/redolog.003/catalog1/catalog1_log2.rdo' SIZE 5242880 ,
    GROUP 3 ' /db/redolog.002/catalog1/catalog1_log3.rdo' SIZE 5242880
    DATAFILE
    '/db/catalog1.001/oradata/system01.dbf'
    CHARACTER SET UTF8
    printing stored script: Memory Script
    switch clone datafile all;
    executing script: Memory Script
    datafile 2 switched to datafile copy
    input datafilecopy recid=1 stamp=689037446 filename=/db/catalog1.001/oradata/undotbs01.dbf
    datafile 3 switched to datafile copy
    input datafilecopy recid=2 stamp=689037446 filename=/db/catalog1.001/oradata/ptest01.dbf
    datafile 4 switched to datafile copy
    input datafilecopy recid=3 stamp=689037446 filename=/db/catalog1.001/oradata/users_01.dbf
    datafile 5 switched to datafile copy
    input datafilecopy recid=4 stamp=689037446 filename=/db/catalog1.001/oradata/drsys_01.dbf
    datafile 6 switched to datafile copy
    input datafilecopy recid=5 stamp=689037446 filename=/db/catalog1.001/oradata/qms_dat_01.dbf
    datafile 7 switched to datafile copy
    input datafilecopy recid=6 stamp=689037446 filename=/db/catalog1.001/oradata/ultradat_01.dbf
    datafile 11 switched to datafile copy
    input datafilecopy recid=7 stamp=689037446 filename=/db/catalog1.001/oradata/xmltbs_01.dbf
    printing stored script: Memory Script
    set until scn 229907626;
    recover
    clone database
    delete archivelog
    executing script: Memory Script
    executing command: SET until clause
    Starting recover at 08-JUN-09
    using channel ORA_AUX_DISK_1
    starting media recovery
    channel ORA_AUX_DISK_1: starting archive log restore to default destination
    channel ORA_AUX_DISK_1: restoring archive log
    archive log thread=1 sequence=3
    channel ORA_AUX_DISK_1: restoring archive log
    archive log thread=1 sequence=4
    channel ORA_AUX_DISK_1: restored backup piece 1
    piece handle=/dump/DBA/RMAN/tardb_bkup/db_arch_tardb_f_06kgt7ih tag=ARCHIVE_LOG_tardb_BACKUP params=NULL
    channel ORA_AUX_DISK_1: restore complete
    archive log filename=/oradump/oradata/catlog/arch/catlog-1231663410_1_3.arc thread=1 sequence=3
    channel clone_default: deleting archive log(s)
    archive log filename=/oradump/oradata/catlog/arch/catlog-1231663410_1_3.arc recid=1 stamp=689037447
    archive log filename=/oradump/oradata/catlog/arch/catlog-1231663410_1_4.arc thread=1 sequence=4
    channel clone_default: deleting archive log(s)
    archive log filename=/oradump/oradata/catlog/arch/catlog-1231663410_1_4.arc recid=2 stamp=689037447
    media recovery complete
    Finished recover at 08-JUN-09
    printing stored script: Memory Script
    shutdown clone;
    startup clone nomount pfile= '/db/app/oracle/admin/catlog/pfile/initauxbr.ora';
    executing script: Memory Script
    database dismounted
    Oracle instance shut down
    connected to auxiliary database (not started)
    Oracle instance started
    Total System Global Area 219115512 bytes
    Fixed Size 737272 bytes
    Variable Size 83886080 bytes
    Database Buffers 134217728 bytes
    Redo Buffers 274432 bytes
    sql statement: CREATE CONTROLFILE REUSE SET DATABASE "auxbr" RESETLOGS ARCHIVELOG
    MAXLOGFILES 5
    MAXLOGMEMBERS 5
    MAXDATAFILES 100
    MAXINSTANCES 1
    MAXLOGHISTORY 907
    LOGFILE
    GROUP 1 ' /db/redolog.001/catalog1/catalog1_log1.rdo' SIZE 5242880 ,
    GROUP 2 ' /db/redolog.003/catalog1/catalog1_log2.rdo' SIZE 5242880 ,
    GROUP 3 ' /db/redolog.002/catalog1/catalog1_log3.rdo' SIZE 5242880
    DATAFILE
    '/db/catalog1.001/oradata/system01.dbf'
    CHARACTER SET UTF8
    printing stored script: Memory Script
    catalog clone datafilecopy "/db/catalog1.001/oradata/undotbs01.dbf";
    catalog clone datafilecopy "/db/catalog1.001/oradata/ptest01.dbf";
    catalog clone datafilecopy "/db/catalog1.001/oradata/users_01.dbf";
    catalog clone datafilecopy "/db/catalog1.001/oradata/drsys_01.dbf";
    catalog clone datafilecopy "/db/catalog1.001/oradata/qms_dat_01.dbf";
    catalog clone datafilecopy "/db/catalog1.001/oradata/ultradat_01.dbf";
    catalog clone datafilecopy "/db/catalog1.001/oradata/xmltbs_01.dbf";
    switch clone datafile all;
    executing script: Memory Script
    cataloged datafile copy
    datafile copy filename=/db/catalog1.001/oradata/undotbs01.dbf recid=1 stamp=689037456
    cataloged datafile copy
    datafile copy filename=/db/catalog1.001/oradata/ptest01.dbf recid=2 stamp=689037456
    cataloged datafile copy
    datafile copy filename=/db/catalog1.001/oradata/users_01.dbf recid=3 stamp=689037456
    cataloged datafile copy
    datafile copy filename=/db/catalog1.001/oradata/drsys_01.dbf recid=4 stamp=689037457
    cataloged datafile copy
    datafile copy filename=/db/catalog1.001/oradata/qms_dat_01.dbf recid=5 stamp=689037457
    cataloged datafile copy
    datafile copy filename=/db/catalog1.001/oradata/ultradat_01.dbf recid=6 stamp=689037457
    cataloged datafile copy
    datafile copy filename=/db/catalog1.001/oradata/xmltbs_01.dbf recid=7 stamp=689037457
    datafile 2 switched to datafile copy
    input datafilecopy recid=1 stamp=689037456 filename=/db/catalog1.001/oradata/undotbs01.dbf
    datafile 3 switched to datafile copy
    input datafilecopy recid=2 stamp=689037456 filename=/db/catalog1.001/oradata/ptest01.dbf
    datafile 4 switched to datafile copy
    input datafilecopy recid=3 stamp=689037456 filename=/db/catalog1.001/oradata/users_01.dbf
    datafile 5 switched to datafile copy
    input datafilecopy recid=4 stamp=689037457 filename=/db/catalog1.001/oradata/drsys_01.dbf
    datafile 6 switched to datafile copy
    input datafilecopy recid=5 stamp=689037457 filename=/db/catalog1.001/oradata/qms_dat_01.dbf
    datafile 7 switched to datafile copy
    input datafilecopy recid=6 stamp=689037457 filename=/db/catalog1.001/oradata/ultradat_01.dbf
    datafile 11 switched to datafile copy
    input datafilecopy recid=7 stamp=689037457 filename=/db/catalog1.001/oradata/xmltbs_01.dbf
    printing stored script: Memory Script
    Alter clone database open resetlogs;
    executing script: Memory Script
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 06/08/2009 23:17:38
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06136: ORACLE error from auxiliary database: ORA-00344: unable to re-create online log '/db/app/oracle/product/9.2.0.5/dbs/ /db
    /redolog.001/catalog1/catalog1_log1.rdo'
    ORA-27040: skgfrcre: create error, unable to create file
    HP-UX Error: 2: No such file or directory
    RMAN>
    I tried to shutdown and open with resetlogs , it still error
    oracle@dimondz{auxbr}/db/app/oracle/dba/sql> sqlplus '/as sysdba'
    SQL*Plus: Release 9.2.0.5.0 - Production on Mon Jun 8 23:27:05 2009
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
    With the Partitioning option
    JServer Release 9.2.0.5.0 - Production
    SQL> shutdown immediate;
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    Total System Global Area 219115512 bytes
    Fixed Size 737272 bytes
    Variable Size 83886080 bytes
    Database Buffers 134217728 bytes
    Redo Buffers 274432 bytes
    Database mounted.
    SQL> recover database until cancel using backup controlfile;
    ORA-00279: change 229907626 generated at 06/06/2009 11:58:09 needed for thread
    1
    ORA-00289: suggestion : /oradump/oradata/catlog/arch/catlog-1814470384_1_5.arc
    ORA-00280: change 229907626 for thread 1 is in sequence #5
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    CANCEL
    Media recovery cancelled.
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-00344: unable to re-create online log '/db/app/oracle/product/9.2.0.5/dbs/
    /db/redolog.001/catalog1/catalog1_log1.rdo'
    ORA-27040: skgfrcre: create error, unable to create file
    HP-UX Error: 2: No such file or directory
    SQL>
    Thanks, Your help and guide will appreciated very much.

    Hello,
    The directory for the creation of the logfiles does not exist, from the error:
    RMAN-06136: ORACLE error from auxiliary database: ORA-00344: unable to re-create online log '/db/app/oracle/product/9.2.0.5/dbs/ /db
    /redolog.001/catalog1/catalog1_log1.rdo'
    ORA-27040: skgfrcre: create error, unable to create file
    HP-UX Error: 2: No such file or directoryI.e., there is no such directory as *'/db/app/oracle/product/9.2.0.5/dbs/ /db/redolog.001/catalog1/catalog1_log1.rdo'*
    Your db_recovery_file_dest parameter may be set here, therefore change this:
    '/db/redolog.001/catalog1/catalog1_log1.rdo' size 5m,
    ' /db/redolog.003/catalog1/catalog1_log2.rdo' size 5m,
    ' /db/redolog.002/catalog1/catalog1_log3.rdo' size 5m;To this:
    'catalog1_log1.rdo' size 5m,
    'catalog1_log2.rdo' size 5m,
    'catalog1_log3.rdo' size 5m;And try again.

  • Can we create standby database on same server as primary database

    I have Oracle 10g Rel2, OS Windows server 2003. Can I create standby database on same server on which we have our primary database?

    Bharat Kaushik wrote:
    I have VMware server s/w, do i need to create 2 virtual machines inside the one installation of VMware server? Or do i need to have 2 different installation of VMware server?You could think of VMWare Server in similar terms are Oracle Database Server.
    The HOME: The VMWare Server s/w is put into a "VMWare Home" (I use VMWare Workstation, it goes into C:\Program Files\VMware\VMware Workstation)
    The INSTANCE: WHen I create a VM Image, I specify the name (like a SID), configuration (like PFILE), and location (like ORACLE_BASE/oradata/ ...)
    And just like Oracle with which I can have 2 or more instances running on the host (if there is sufficient memory and other resource), I can have 2 or more VM Images running on my host.
    And just like Oracle, if I have insufficient resources, things get slow like molasses in the middle of winter.
    Hope your desktop has at least 4GB of OS-addressible RAM and at least dual-core CPU. ALternately ... I hope you have lots of coin for the coffee machine.

  • TDE Wallets & Multiple Databases on same Host

    The Oracle TDE Best Practices (doc ID 130696) states this:
    Multiple databases on the same host
    If there are multiple Oracle Databases installed on the same server, they
    must access their own individual TDE wallet. Sharing the same wallet between independent instances is not supported
    and can potentially lead to the loss of encrypted data.
    If the databases share the same ORACLE_HOME, they also share the same
    sqlnet.ora file in $TNS_ADMIN . In order to access their individual wallet, the
    DIRECTORY entry for the ENCRYPTION_WALLET_LOCATION
    needs to point each database to its own wallet location:
    DIRECTORY= /etc/ORACLE/WALLETS/$ORACLE_UNQNAME
    The names of the subdirectories under /etc/ORACLE/WALLETS/ reflect
    the ORACLE_UNQNAME names of the individual databases.
    If the databases do not share the same ORACLE_HOME, they will also have their individual sqlnet.ora
    files that have to point to the individual subdirectories.
    What is the correct sqlnet.ora syntax to do this?  I currently have what is below but it doesn't seem to be correct:
    ENCRYPTION_WALLET_LOCATION =
      (SOURCE = (METHOD = FILE)
      (METHOD_DATA =
      (DIRECTORY = /local/oracle/admin/wallet/DB#1)
      (DIRECTORY = /local/oracle/admin/wallet/DB#2)

    Hi,
    You can check this :Setting ENCRYPTION_WALLET_LOCATION For Wallets Of Multiple Instances Sharing The Same Oracle Home (Doc ID 1504783.1)
    i haven't done this for multiple database, but as per Doc you can use the syntex like
    ENCRYPTION_WALLET_LOCATION =
      (SOURCE = (METHOD = FILE)
      (METHOD_DATA =
      (DIRECTORY = /local/oracle/admin/wallet/$ORACLE_UNQNAME)
    Whenever you set the Environmnet with
    export $ORACLE_UNQNAME=DB#1 
    it will choose the file from respective directory like  /local/oracle/admin/wallet/DB#1
    HTH

  • Multiple Standby Databases on same RAC nodes.

    We have a 3 node Oracle 10gR2 RAC production environment on site A and a 3 node Oracle 10g RAC standby environment on site B. Both use like HW and OS - HP BL45p with RHEL AS 4.x.
    Can we have heterogeneous standby databases(logical and physical) running on the same RAC nodes?
    Can the 2 apply processes (MRP-manageed recovery process & LSP-logical standby process) coexists on the same set of nodes in a cluster at the same time. Are there any conflicts or limitations?
    Is there any documentation that supports this?

    Would Active Data Guard give you the best of both worlds?
    The caveat might be your SID_LIST_LISTENER setup.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/11.2.0)
    (PROGRAM = extproc)
    (SID_DESC =
    (global_dbname = <database1>_DGMGRL.yourdomain)
    (ORACLE_HOME = /u01/app/oracle/product/11.2.0)
    (sid_name = <database1>)
    (SID_DESC =
    (global_dbname = <database2>_DGMGRL.yourdomain)
    (ORACLE_HOME = /u01/app/oracle/product/11.2.0)
    (sid_name = <database2>)
    I have a server with ten standbys on it currently and no issues.
    As long as the version is the same you should be good.

  • Standby database in same computer

    I have made standby database in different computer then in production database in similar path and it is working.
    But whenever I try to make it in same computer it gives me error. I have gone through the oracle documentaion.
    But still I can't.
    Any suggestion on Node

    I still get the problem.
    I have created a prod database with archive log mode and archival enabled
    I shut down it and copyed the
    "oradata/prod to oradata/stdby",
    "admin/prod to admin/stdby",
    "initprod.ora to initstdby.ora" and
    "pwdprod.ora to pwdstdby.ora"
    Then I have added a service name "stdby" with net8 easy config
    Now I have created a new instance stdby with "oradim -new -sid stdby"
    now In "Prod init.ora" file I have added
    log_archive_start = true
    log_archive_dest_1 = "location=e:\Oracle\oradata\stdby\archive"
    log_archive_dest_state_1 = ENABLE
    log_archive_dest_2 = 'SERVICE=standby1'
    log_archive_dest_state_2 = ENABLE
    global_names = false
    Now I have started the prod database and created a standby controlfile
    alter database create standby controlfile '\oradata\stdby\stdby.ctl'
    now In "Stdby init.ora" file I have added
    db_name = "prod"
    instance_name = stdby
    service_names = stdby
    control_files = ("e:\Oracle\oradata\stdby\stdby.ctl")
    log_archive_start = true
    log_archive_dest_1 = "location=e:\Oracle\oradata\stdby\archive"
    log_archive_dest_state_1 = ENABLE
    standby_archive_dest = 'e:\Oracle\oradata\stdby\'
    db_file_name_convert = ('\prod\','\stdby\')
    log_file_name_convert = ('\prod\','\stdby\')
    lock_name_space = 'stdby'
    Now IN standby when I do
    SQL_stdby>>startup nomount pfile='E:\Oracle\Oracle8i\DATABASE\initstdby.ora';
    SQL_stdby>>alter database mount standby database;
    SQL_stdby>>RECOVER AUTOMATIC STANDBY DATABASE;
    Up to this it works
    Now when I start prod database
    SQL_prod>>startup
    it gives me the error
    ORA-01102: cannot mount database in EXCLUSIVE mode

  • Creation of Standby Database through Rman.

    Hi Everybody,
    Oracle Ver: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    Os: Windows Xp
    I am trying to create a standby database with the help of Rman..
    but when i am trying to invoke the Rman Executable and connect to the primary and auxillary database ie:standby
    it's giving me the following error...........
    C:\Documents and Settings\prosenjit>rman target system/manager@primary auxiliary system/manager@standby
    Recovery Manager: Release 10.2.0.1.0 - Production on Thu Oct 2 09:28:08 2008
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    connected to target database: PRIMARY (DBID=1503515402)
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00554: initialization of internal recovery manager package failed
    RMAN-04006: error from auxiliary database: ORA-12541: TNS:no listenerI have restarted my listener service but still getting the error...
    here is my Listener.ora entries...........
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = DPC-010420)(PORT = 1525))
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PRIMARY)
          (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    standby=
    (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = DPC-010420)(PORT = 1526))
    SID_LIST_standby =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = standby)
          (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
      )any help appreciated
    Regards,
    Prosenjit Mukherjee

    Hi Hemant,
    It worked...when I i issued the command as mentioned by you it started the Listener..
    lsnrctl start standby
    Now I am able to connect to both the Database using Rman..
    C:\Documents and Settings\prosenjit>rman target system/manager@primary auxiliary system/manager@standby
    Recovery Manager: Release 10.2.0.1.0 - Production on Thu Oct 2 10:55:08 2008
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    connected to target database: PRIMARY (DBID=1503515402)
    connected to auxiliary database: STANDBY (not mounted)
    RMAN>Thanks for the Input...
    Is there any way by which i can start both the Listener with "lsnrctl start"...........instead of manually starting individual listener's
    Regards,
    Prosenjit Mukherjee
    Edited by: Prosenjit on Oct 2, 2008 11:01 AM

  • Creating physical standby database on same machine with dataguard

    hi every one
    i m new in oracle databases,
    i read documentation to create physical standby databases,
    now i install virtual machine (vmware) on my system,
    i install windows xp on this vm and oracle 9i
    now i want to create standby database on the same machine in some other drive configured with datagurd
    virtual machine
    OS windows xp
    database oracle 9i
    plz reply me how i do this
    explain clearly step by step.
    plz reply me in detail

    When you need to have the standby database on the same server as the master, use lock_name_space in the init.ora.
    This parameter permits this to occur without having to worry about changing the db_name.
    http://www.oug-ottawa.org/pls/htmldb/f?p=103:21:729607614317189728::::P21_TIP_NUM:821

  • Standby database on same machine as primary database

    hi,
    I am testing the standby database and read all document on metalink also I am able to start the standby database in nomount mode nut when trying to mount the database I am getting following error
    SQL> startup nomount
    ORACLE instance started.
    Total System Global Area 47679696 bytes
    Fixed Size 731344 bytes
    Variable Size 29360128 bytes
    Database Buffers 16777216 bytes
    Redo Buffers 811008 bytes
    SQL> alter database mount standby database;
    alter database mount standby database
    ERROR at line 1:
    ORA-01103: database name 'PRIMDB' in controlfile is not 'PRIMDBS'
    I think the database name must be different on same machine. My os is Sun Solaris
    Regards
    Bhushan

    When you need to have the standby database on the same server as the master, use lock_name_space in the init.ora.
    This parameter permits this to occur without having to worry about changing the db_name.
    http://www.oug-ottawa.org/pls/htmldb/f?p=103:21:729607614317189728::::P21_TIP_NUM:821

  • Creation of Standby Database on Oracle 10g Standard Edition

    Hi Gurus,
    Can anyone let me know how to create physical standby database on Oracle 10.2.0.1(Standard Edition). I am using the Fedora7(32-bit) machine. Can anyone please send me some documentation on how to create.
    Thanks in advance.
    Thanks & Regards,
    Farooqui.

    How to create physical standby database without dataguard

  • Standby Database Creation in the same Box Oracle 9.2.0.1

    Box - Sun Solaris 64 bit
    Oracle Version - 9.2.0.1
    I have a database called 'sales' in the above box. I want to create a standby database in the same box (in different mount point). This is what I did:
    1. took cold backup of all datafiles
    2. created standby controlfile
    3. updated init file.
    -when I tried to start the stabdby db, it is throwing error because the controlfile is confusing with the same db name as the primary ('sales').
    My question is: Can I create a standby db in the same box?

    Hello,
    For keeping the standby database on same HOST....it does seems to be great...i must be on separate box....may be on different network...i believe you would be using it for some failiover purpose...Isn't it.
    For Unix it is quite easy..you may implement like this...The Issue which you are referring may be because of wrong Oracle Home or SID....(i'm not very much sure..) You may try following steps:
    1. Create a separate Unix A/c and set ORACLE_HOME and ORACLE_SID relevant to your StandBy Database. I believe the Home would be same whereas SID would be your standby databse.
    2. Take a Cold Backup of All your database files from Production.
    3. Copy these files on separate mount points for standby Db. Put them all to relevant directory and be sure to set the Group of all these files as "SYSDBA" This is Must.
    4. And then modify your INIT.ORA file i.e. InitSID.ora file accordingly and put the file in ORACLE_HOME
    5. Login to Newly created Unix A/c. Check whether ORACLE_SID is set ot not to your standby database instance.
    6. Login to sys as sysdba and start up the database. It will by default would try to check & do for your relevant Oracle SID for this profile...
    HTH
    Regards,
    Kamesh Rastogi

  • Problem creating physical Standby database with RMAN

    Hi All
    I am trying to learn oracle dataguard and as part of the process learning creating standby database.
    Platform : Sun-Fire-V250 Sparc, Solaris 10
    Database Version - Oracle 11R2
    I am creating standby database on same server, so directory structure is different.
    Following the instructions on Oracle site I managed to create a functional physical standby database. But I am not able to create standby database using RMAN. These are the steps that I followed-
    1.Set up all necessary parameters on primary database as done while creating physical standby database manually, eg setting force logging, creating standby logs etc.
    2.Edited parameter file on primary database as done while creating manual pysical standby database creation. Some of the changes done are-
    On Primary Database:
    *.FAL_CLIENT='orcl11020' #Primary database unique name
    *.FAL_SERVER='stdby_11' #Standby database unique name
    db_file_name_convert='/<dir>/oradata/stdby_11','/<dir>/oradata/orcl11020'
    log_file_name_convert='/<dir>/oradata/stdby_11','/<dir>/oradata/orcl11020','/<dir>/oradata/stdby_11/redo_mem','/<dir>/oradata/orcl11020/redo_mem'
    standby_file_management=auto
    *.log_archive_config='DG_CONFIG=(orcl11020,stdby_11)'
    *.log_archive_dest_1='LOCATION=/<dir>/flash_recovery_area/ORCL11020/archivelog
    VALID_FOR=(ALL_LOGFILES,ALL_ROLES) db_unique_name=orcl11020'
    *.log_archive_dest_2='SERVICE=stdby_11 LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) db_unique_name=stdby_11'
    *.LOG_ARCHIVE_DEST_STATE_1='ENABLE'
    *.LOG_ARCHIVE_DEST_STATE_2='ENABLE'
    *.LOG_ARCHIVE_FORMAT='%t_%s_%r.arc'
    *.LOG_ARCHIVE_MAX_PROCESSES=30
    Copied same pfile for standby database and modified following-
    *.control_files='/<dir>/oradata/stdby_11/stdby_11.ctl','/<dir>/fra_stdby/stdby_11/stdby_11.ctl'
    *.db_name='orcl1102'
    *.db_unique_name='stdby_11'
    *.FAL_CLIENT='stdby_11'
    *.FAL_SERVER='orcl11020'
    db_file_name_convert='/<dir>/oradata/orcl11020','/<dir>/oradata/stdby_11'
    log_file_name_convert='/<dir>/oradata/orcl11020','/<dir>/oradata/stdby_11','/<dir>/oradata/orcl11020/redo_mem','/<dir>/oradata/stdby_11/redo_mem'
    standby_file_management=auto
    *.log_archive_dest_1='LOCATION=/<dir>/fra_stdby/STDBY_11/archivelog
    VALID_FOR=(ALL_LOGFILES,ALL_ROLES) db_unique_name=stdby_11'
    *.log_archive_dest_2='SERVICE=orcl11020 LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
    db_unique_name=orcl11020'
    3. Add relevant information in tnsnames.ora and listener.ora files and then restart listener.
    3. Created password file with same credential as primary database.
    4.Up-to-date RMAN backup of primary database available.
    5.Create standby controlfile with rman
    While primary database s open (I tried with primary database in mount mode as well)-
    $>rman catalog rman/paswd@rman target /
    RMAN> BACKUP CURRENT CONTROLFILE FOR STANDBY;
    6. Open a new terminal and startup standby database in nomount mode using parameter file created -
    $>ORACLE_SID=stdby_11
    $>export ORACLE_SID
    $>sqlplus / as sysdba
    SQL>STARTUP NOMOUNT pfile='<location/initfilename.ora'
    SQL>quit
    $> rman AUXILIARY / target sys/passwd@orcl11020 catalog rman/passwd@rman
    RMAN>DUPLICATE TARGET DATABASE FOR STANDBY DORECOVER;
    RMAN finishes without error but archive logs are not being tranported. Looking at the log, following caught my eye-
    Error 1017 received logging on to the standby
    Check that the primary and standby are using a password file
    and remote_login_passwordfile is set to SHARED or EXCLUSIVE,
    and that the SYS password is same in the password files.
    returning error ORA-16191
    FAL[client, ARC2]: Error 16191 connecting to orcl11020 for fetching gap sequence
    Errors in file /<>dir>/diag/rdbms/stdby_11/stdby_11/trace/stdby_11_arc2_24321.trc:
    ORA-16191: Primary log shipping client not logged on standby
    Errors in file /<dir>/diag/rdbms/stdby_11/stdby_11/trace/stdby_11_arc2_24321.trc:
    ORA-16191: Primary log shipping client not logged on standby
    So on both primary and standby I confirmed
    SQL> show parameter remote_login_passwordfile
    NAME TYPE VALUE
    remote_login_passwordfile string EXCLUSIVE
    To make double sure that password files are same, I shutdown both databases, delete password files and recreated with same credentials.
    Password files are called - orapworcl11020 and orapwstdby_11
    Can someone guide me where thisngs are going wrong here please.

    Not sure if I understood it clearly.
    SELECT * FROM V$ARCHIVE_GAP;
    returns no rows so there is no gap.
    But could you please explain me the result of the previous query. To catch up again, on standby when I check
    SELECT SEQUENCE#,APPLIED FROM V$ARCHIVED_LOG
    SEQUENCE# APPLIED
    75 NO
    74 NO
    76 NO
    77 NO
    I understand that though archive files have been copied across but they are not applied yet.
    On primary when I give your query -
    SELECT name as STANDBY,SEQUENCE#,applied, completion_time
    2 FROM v$archived_log
    3 where dest_id=2
    4 and sequence# BETWEEN 74 and 80;
    I get -
    STANDBY SEQUENCE# APPLIED COMPLETIO
    stdby_11 74 YES 28-JUN-11
    stdby_11 75 YES 28-JUN-11
    stdby_11 76 YES 29-JUN-11
    stdby_11 77 YES 29-JUN-11
    stdby_11 78 YES 29-JUN-11
    stdby_11 79 YES 29-JUN-11
    stdby_11 80 YES 29-JUN-11
    stdby_11 75 NO 07-JUL-11
    stdby_11 74 NO 07-JUL-11
    stdby_11 76 NO 07-JUL-11
    stdby_11 77 NO 07-JUL-11
    stdby_11 78 NO 07-JUL-11
    I have intentionally given
    sequence# BETWEEN 74 and 80
    because I know in the current incarnaion of the database, max sequence is 78.
    So my understanding is, the rows between 28-29 June are from previous incarnation, correct me if I am wrong
    Archive files of the current incarnation, since I successfully created standby database are shipped but yet to be applied - am I right?
    Then my final question is, when will these archives be applied to standby database?
    I am sorry to ask too many questions but I am just trying to understand how it all works.
    Thanks for your help again

  • SID NAME FOR PRODUCTION & STANDBY DATABASE IN DATA GUARD

    Hi all,
    we are trying to implement Standby database (Physical) between two
    sites. We have a specific question regarding this:
    ==> Can we have SID of both the Database SAME..? If not, why.?
    -- We have two HOST & DB Details like this and would like to implement StandBy
    Database:
    Site-1:
    Host OS: Solaris-10 3/05 SPARC
    Host DB: Oracle10g R-2 10.2.0.2.0
    Host DB1: IGFL
    Site-2:
    Host OS: Solaris-10 3/05 SPARC
    Host DB: Oracle10g R-2 10.2.0.2.0
    Host DB2: IGFL
    Thanks & Regards,
    Rishikesh

    My 2 Cents:-
    SID can be same.
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ps.htm

  • Standby Database fails to read dictionary from redo log

    hi,
    I am attempting to create a Logical standby database on same machine as the primary database. I have executed the steps outlined in Oracle Documentation several times, but end up with the same error. Detailes of setup and error are provided below. Please help. Thanks.
    ==========
    OS: REdhat 8 (2.4.18-14)
    RDBMS: Oracle EE Server 9.2.0.3.0
    primary db init details:
    *.log_archive_dest_1='LOCATION=/usr3/oracle/admin/lbsp/archive/ MANDATORY'
    *.log_archive_dest_2='SERVICE=STDBY'
    standby db init details:
    log_archive_dest_1='LOCATION=/usr3/oracle/admin/stdby/archive/'
    standby_archive_dest='/usr3/oracle/admin/lbsp/archive_pdb/'
    Standby alert log file (tail)
    LOGSTDBY event: ORA-01332: internal Logminer Dictionary error
    Sun Jul 13 11:37:20 2003
    Errors in file /usr3/oracle/admin/stdby/bdump/stdby_lsp0_13691.trc:
    ORA-01332: internal Logminer Dictionary error
    LSP process trace file:
    Instance name: stdby
    Redo thread mounted by this instance: 1
    Oracle process number: 18
    Unix process pid: 13691, image: oracle@prabhu (LSP0)
    *** 2003-07-13 11:37:19.972
    *** SESSION ID:(12.165) 2003-07-13 11:37:19.970
    <krvrd.c:krvrdfdm>: DDL or Dict mine error exit. 384<krvrd.c:krvrdids>: Failed to mine dictionary. flgs 180
    knahcapplymain: encountered error=1332
    *** 2003-07-13 11:37:20.217
    ksedmp: internal or fatal error
    . (memory dump)
    KNACDMP: Unassigned txns = { }
    KNACDMP: *******************************************************
    error 1332 detected in background process
    OPIRIP: Uncaught error 447. Error stack:
    ORA-00447: fatal error in background process
    ORA-01332: internal Logminer Dictionary error
    another trace file created by error is: stdby_p001_13695.trc
    Instance name: stdby
    Redo thread mounted by this instance: 1
    Oracle process number: 20
    Unix process pid: 13695, image: oracle@prabhu (P001)
    *** 2003-07-13 11:37:19.961
    *** SESSION ID:(22.8) 2003-07-13 11:37:19.908
    krvxmrs: Leaving by exception: 604
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01031: insufficient privileges
    ORA-06512: at "SYS.LOGMNR_KRVRDREPDICT3", line 68
    ORA-06512: at line 1
    there are no errors anywhere during the creation, mounting or opening of standby database. After the initial log register, any log switch on primary is communicated to standby and visible in DBA_LOGSTDBY_LOG. Also, archived logs from primary are successfuly copied by system to directory pointed by standby db's standby_archive_dest parameter.
    I noticed, somehow everytime I issue "ALTER DATABASE START LOGICAL STANDBY APPLY" command the procedures and packages related to logmnr get invalid. I compile them and again after "APPLY" they become invalid.
    Invalid object list:
    OBJECT_TYPE OBJECT_NAME
    VIEW DBA_LOGSTDBY_PROGRESS
    PACKAGE BODY DBMS_INTERNAL_LOGSTDBY
    PACKAGE BODY DBMS_STREAMS_ADM_UTL
    VIEW LOGMNR_DICT
    PACKAGE BODY LOGMNR_DICT_CACHE
    PROCEDURE LOGMNR_GTLO3
    PROCEDURE LOGMNR_KRVRDA_TEST_APPLY
    Anybody point out what I am doing wrong. Thanks for the help

    ORA-15001: diskgroup "ORAREDO3" does not exist or is not mounted
    ORA-15001: diskgroup "ORAREDO3" does not exist or is not mountedhave you mentioned parameter LOG_FILE_NAME_CONVERT in standby when online redo log locations are different?
    post from standby:-
    SQL> select name, state From v$asm_diskgroup;
    FAL[client, MRP0]: Error 1031 connecting to MKS01P_PRD for fetching gap sequence
    ORA-01031: insufficient privilegesPost from primary & standby
    SQL> select * from v$pwfile_users;
    User Profile for 919131
    919131     
    Handle:     919131  
    Status Level:     Newbie
    Registered:     Mar 6, 2012
    Total Posts:     16
    Total Questions:     8 (8 unresolved)
    OTN failed 100% to help you, then why you posted another question?
    First close all your old answered threads and then better continue your updates in your thread.
    Edited by: CKPT on Jul 9, 2012 11:45 AM

  • Standby Database (bis)

    Hi,
    I have just create a new standby database on unix machine, I had read the Oracle documentation, but I have a problem :
    From my client PC, it seems that oracle want to connect to my standby database when I want to connect to prod. I have an error message : database is not open (it's Ok for my standby databse but is not right for my start database). What is this ?
    Thanks in advance for your help.
    Nicolas.

    Hi Syed Jaffar,
    I use oracle 8.1.7.2, and prod and standby are on same host (this is test before prod).
    Nicolas.

Maybe you are looking for

  • Samsung CLP-300 attached to Airport Express Base Station: Issues

    I have found that my Samsung CLP-300 printer, which is connected to my Airport Express Base Station via USB, refuses to print after printing one document. After restarting my Airport Express Base Station, I found that the printer would start printing

  • Oracle 9i client and TOAD

    Hi, I am trying to use Toad tool to connect to Oracle database and view/edit sql tables queries etc For that purpose I also installed Oracle 9i client application on windows xp I have tnsnames.ora and sql ora file in my Oracle path .... network/admin

  • Error in subroutine READ_NAMTB while transferring data from HCM to xRPM.

    Hi Guys, I am facing a problem while transferring data from HCM to xRPM via ALE. We are getting the error " Error in subroutine READ_NAMTB" during the Inbound Processing of Idocs in xRPM. We have used the standard message type HRMD_ABA and IDoc type

  • Part 03 - Setting up a Local Site | Classroom: Basic Site Layout and Navigation in Dreamweaver | Adobe TV

    In this step of the tutorial, you can find out how to use the files panel in Dreamweaver to organize and set up your site on the local hard drive in your computer – while it is still being worked on before it can be published to a web server later. h

  • Crash server on installing application server

    i am trying to installa application 10g forms and report on a biprocessor server 1 GB RAM DELL and during teh installation there was a complete crash of the server... the OS is windows 2003 web server Noone Khown if this solution is not compatible ??