DB name Change --- Required to reconfigure standby database

Dear All,
Is it necessary to reconfigure standby database after changing database name.
DB Version :--- 10.2.0.1.0
OS :--- Windows
Waiting for reply.
Regards,
Praful Kawaji

Dear praful kawaji,
Your primary and standby databases should have the same DB_NAME however they have to have seperate DB_UNIQUE_NAME values. alter the parameter on both sites and you will be fine i guess.
Hope That Helps.
Ogan

Similar Messages

  • Change parameter instance_name after standby database has been activated

    Hello ,
    our primary database is configured as follows:
    SQL> show parameter db_name;
    NAME                                 TYPE        VALUE
    db_name                              string      prod01
    SQL> show parameter instance_name
    NAME                                 TYPE        VALUE
    instance_name                        string      prod01
    the corresponding standby database is configured as:
    SQL> show parameter db_name;
    NAME                                 TYPE        VALUE
    db_name                              string      prod01
    SQL> show parameter instance_name
    NAME                                 TYPE        VALUE
    instance_name                        string      stbyprod01
    Now the standby database shall be activated. Afterwards I want to change the parameter INSTANCE_NAME from stbyprod01 to prod01.
    The question now is: what needs to be done to change the parameter INSTANCE_NAME? As a matter of fact the standby database will
    already be activated and be treated and handled as a standalone database. The former primary database will  not be used anymore.
    I would proceed as follows:
    SQL> create pfile='initprod01.ora' from spfile;
    SQL> shutdown immediate;
    oracle #> edit the pfile and change the parameter INSTANCE_NAME from stbyprod01 to prod01
    SQL> startup;
    SQL> create spfile='spfileprod01.ora' from pfile;
    SQL> shutdown immediate;
    SQL> startup;
    That should be all - from my point of view (I know that LISTENER.ORA and TNSNAMES.ORA should be modified, too).
    If anybody has already experiences with changing the INSTANCE_NAME parameter but sees some further configurations: please just let me know!
    Rgds
    Jan

    Hi ,
    only "alter system set instance_name='TEST' scope=spfile" will work since the parameter INSTANCE_NAME is static. After restarting the database/instance the statement "show parameter instance_name" will show the new instance name.
    But when selecting the view V$INSTANCE the value of the column INSTANCE_NAME has still the old value. Any idea why this value remains unchanged in the view V$INSTANCE?
    Rgds
    Jan

  • Change server time in Standby Database or primary database in Dataguard

    Hi all,
    I configuration dataguard for 2 site. But after finishing, I saw the time not synchronize. I want to change time setting in standby server but I don't sure Dataguard configuration will still running normally.
    Please explain for me about synchronizing time in Dataguard. And if you know the way to change time setting server, please tell me that way.
    THanks so much!

    Hello;
    It should be at the OS level. On Linux I use cron to sync time with a central server. Once the time changes at the OS level and the database stops and starts it will use that time.
    Will post an example here in a moment
    So I use "ntpdate" on Linux to do this. Some similar exists for Windows.
    00 8,16,23 * * * /usr/sbin/ntpdate nss.server > /tmp/nts.outWindows example :
    Configuring NTP Server
    http://social.technet.microsoft.com/Forums/en-US/winserverNIS/thread/7dc5e8f4-824a-432c-a2da-ac0e3fdf76fd/
    Best Regards
    mseberg
    Edited by: mseberg on Apr 16, 2012 6:11 AM
    Edited by: mseberg on Apr 16, 2012 6:16 AM

  • Configure standby database

    hi all;
    how many system r required to configure standby database
    i m configure standby database in a single(same) system where my primary database already running.if this possible or not
    i have configured my standby
    but when i start "c:\sqlplus sys@orclstdy as sysdba"
    then he create error ora-12154: TNS:could not resolve the connect identifier specified
    and when i start with "c:\set oracl_sid=orclstdy"
    sql>conn as sys/pass as sysdba
    connected to an idle instance
    sql> startup
    ora-02778: Name given for the log directory is invalid
    how can solve this problem . please reply

    Hi user569791
    you can configure standby to multiple destinations(up to 9 different destinations) and it is also possible to configure in same system also.
    you need to create standby controlfile for Physical standby database.
    check whether the standby instance run as a separate service and whether you
    have an relevant entry in tnsnames.ora file. note that the db_name is same for both
    sites but only the instance name differs.
    Ensure that you have a
    1.valid cold backup of datafiles,
    2.valid standby controlfile
    3.standby init parameters with db_file_name_convert and log_file_name_convert
    parameters are valid
    4. a special init parameter called lock_name_space need to be given when you configure standby on same site.
    check all these condition and Try again.
    Regards
    SM

  • Sys passowd change effect in physical standby environment.

    Hi All,
    We have a production environment with physical standby environment configured for it. Everything is working fine. My issue is with the sys password. We have a policy of changing sys password every month.
    1) What should be the step by step process to reflect the same sys password to standby database?
    2) As per one of the fourms, copying the production system's password file to standby database should work. but i am not sure is just copying the password file will change the change the password in standby database. As the standby database is in recovery mode (mount stage) what will be the best way of doing this?
    Thanks
    Shelly

    Hi Shelly,
    1) What should be the step by step process to reflect the same sys password to standby database?
    change the sys pass in prodshudown and restart to check if the new password ids in effect
    In standby you have options
    cancel managed recovery and recraete a new password file (same password as primary)
    or
    (easy way)
    Simply copy the prod modified password file to standby and restart managed recovery.

  • ORA-10458: standby database requires recovery

    hi
    kindly help me... i got error when standby open in read only mode
    SQL*Plus: Release 11.2.0.3.0 Production on Sat Jan 19 14:37:46 2013
    Copyright (c) 1982, 2011, Oracle. All rights reserved.
    Connected to an idle instance.
    SQL> startup mount
    ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
    ORACLE instance started.
    Total System Global Area 5344731136 bytes
    Fixed Size 2237776 bytes
    Variable Size 1275071152 bytes
    Database Buffers 4060086272 bytes
    Redo Buffers 7335936 bytes
    Database mounted.
    SQL> Alter Database Recover Managed Standby Database Disconnect;
    Database altered.
    SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
    Database altered.
    SQL> ALTER DATABASE OPEN READ ONLY;
    ALTER DATABASE OPEN READ ONLY
    ERROR at line 1:
    ORA-10458: standby database requires recovery
    ORA-01152: file 22 was not restored from a sufficiently old backup
    ORA-01110: data file 22: '/archive/data/undo01.dbf'

    hi CKPT
    I executed the action plan as you recommend and got below information;
    SQL> recover standby database;
    ORA-00279: change 5983485554580 generated at 01/01/2013 19:27:17 needed for
    thread 1
    ORA-00289: suggestion : /archive/PROD_1_750568044_45027.ARC
    ORA-00280: change 5983485554580 for thread 1 is in sequence #45027
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    '/archive/PROD_1_750568044_45400.ARC'
    ORA-00310: archived log contains sequence 45400; sequence 45027 required
    ORA-00334: archived log: '/archive/PROD_1_750568044_45400.ARC'
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01152: file 22 was not restored from a sufficiently old backup
    ORA-01110: data file 22: '/archive/data/undo01.dbf'
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01666: control file is for a standby database
    SQL> alter system switch logfile;
    alter system switch logfile
    ERROR at line 1:
    ORA-01109: database not open
    ---------------------------------- and some other activity but still not found any solution-------------
    RMAN> recover database until sequence
    2> 45026;
    Starting recover at 23-JAN-13
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 01/23/2013 16:42:47
    RMAN-06556: datafile 1 must be restored from backup older than SCN 5983484595990
    RMAN> recover database until sequence 45027;
    Starting recover at 23-JAN-13
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 01/23/2013 16:42:59
    RMAN-06556: datafile 22 must be restored from backup older than SCN 5983485554580
    RMAN> recover database until sequence 45025;
    Starting recover at 23-JAN-13
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 01/23/2013 16:43:09
    RMAN-06556: datafile 1 must be restored from backup older than SCN 5983484160276
    RMAN> alter database open resetlogs;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of alter db command at 01/23/2013 16:43:25
    ORA-01666: control file is for a standby database

  • Changing the archive destination in standby database?

    My DB is running on Oracle 9.2.0.6.0. I have data guard for my primary database.
    Now i wanted to change the archive destination only standby database. What is the process? Any response or any link is appreicated. Thanks

    The standby database wouldn't generate archivelogs until and unless it is opened (eg in a failover). So, although there is a definition for the log archive destination in the standby's init.ora / spfile, it is used only to read archivelogs shipped from the primary.
    If you are talking of the destination that the primary's archivelogs are shipped to on the standby, technically once the archivelogs are applied on the standby, they are not required and can be deleted. You would be able to configure this.

  • Do i need to reconfigure OEM Database Control when change ip address?

    Hi all.
    Do i need to reconfigure OEM Database Control after a change of ip address?
    I mean, i have an OEL5 box with 10g Rel2. I have configure the server with a static ip address.
    This server will be sent to another location and it's possible the ip address will be changed. It will remain a static ip, but may change. Since i plan to deliver this server with rman jobs within OEM Database Control. I'd like to know if this will continue working after an eventual ip address change ....
    Regards....!

    myluism wrote:
    Hi all.
    Do i need to reconfigure OEM Database Control after a change of ip address?
    I mean, i have an OEL5 box with 10g Rel2. I have configure the server with a static ip address.
    This server will be sent to another location and it's possible the ip address will be changed. It will remain a static ip, but may change. Since i plan to deliver this server with rman jobs within OEM Database Control. I'd like to know if this will continue working after an eventual ip address change ....
    Regards....!It depends.
    When you created the dbcontrol, the configuration was put in a directory in ORACLE_HOME named something like 'hostname_sid' and there are also files under that where the hostname is baked into either the file name or a property of a configration defined within a file. If it is truly hostname, you might be ok, but if it is actually IP address instead of host name (I have seen that) then you obviously have a problem.
    Over the years (and across several versions) I've found the OEM repository to be rather "brittle", and Oracle to have a rather cavalier attitude about rebuilding it. As a result, I specifically DO NOT have anything important - and very specifically my backup jobs - in the repository. I still schedule my backups through rman, though I know many people use dbms_scheduler. But even that appears to not be the same as an oem controlled schedule.

  • How to change the database character set on physical standby database?

    Hi,
    We have a database with character set WE8ISO8859P1 and migrated the character set to WE8MSWIN1252 using csscan/csalter scripts. This database has a physical standby database setup also and after the migration, the physical standby database is still showing the character set as WE8ISO8859P1. How can I change the characterset on the physical standby? I raised a Service Request with Oracle, and they said that recreating the standby database is the only supported way of changing the char set on the standby database. Is this true?
    Thanks,
    Sreekanth

    Thank you, Robert, for your reply.
    The standby is in sync with the primary.
    see below
    SYS@sisprod>select * from v$dataguard_stats;
    NAME VALUE UNIT TIME_COMPUTED
    apply finish time +00 00:00:00.0 day(2) to second(1) interval 12-NOV-2009 14:02:46
    apply lag +00 00:00:00 day(2) to second(0) interval 12-NOV-2009 14:02:46
    estimated startup time 11 second 12-NOV-2009 14:02:46
    standby has been open N 12-NOV-2009 14:02:46
    transport lag +00 00:00:00 day(2) to second(0) interval 12-NOV-2009 14:02:46
    SYS@sisprod>
    I am selecting from v$nls_parameters;
    I don't know how to restore the controlfile from primary. Could you please tell me how to do it?
    Thanks,
    Sreekanth

  • Standby database service name

    hi,
    i made a physical standby database architecture with one db as a production db on PC1 and on the other site i created a physical standby db on PC2 ,,
    now i did a SWITCHOVER and after that the db on PC1 become physical standby and db on PC2 has become primary db,,,,
    my application running before SWITCHOVER was using a service name that connect it to PC1,,now that application is not running giving me error that initialization or shutdown in progress,,,
    what shud i do now?? will i need to change the service name of my application on each client,,,other option is to use an ORACLE NAMES SERVER,,but if i wanna wont use both of the ways then what can i do??
    Regards

    This is recommended in metalink notes.
    As you say, oracle names as one option. You just go and change the ipaddress/hostname,whatever you use in the tnsnames.
    Your end-users are still trying to access the old primary, which is secondary now. And this db is in mount stage, that is the reason they are getting this kind of error.
    If you have very less users and can be reachable to change the tnsnames then its okay.
    SJH
    OCP DBA

  • Incorrect Standby Database name in V$database

    I'm trying to create a standby database (mptstb on server mptdb2) from a primary database (mptpr on server mptdb1). I create the standby controlfile on the primary database using the 'alter database create standby controlfile...' and then move it to the standby server. When I do a startup mount of the standby database and check the contents of the v$database view, it shows name=mptpr. It should be mptstb. When I try to run RMAN on the standby (rman target /), it connects to target MPTPR and not mptstb. I cannot figure this one out. Any help would be greatly appreicated.

    The database name for the standby database is the same (but using NID utility there is a chance to change the database name).
    You can use service names to connect to the standby and lock_name_space (Oracle 9i)/db_unique_name(Oracle 10g) to differ databases using different names.
    That might be the case for databases on the same server. But if you use different servers you can use the same database name.
    Andrey

  • How to change the listener port number on a standby database

    i want to change the listener port number from 1525 to 1545, which is running on a standby database.
    i did the following steps and got some error.
    1. i stop listener and modfy listener.ora
    2. i login in standby DB and issue 'alter system set local_listener='(address=(pro=tcp)(host=10.10.10.10)(port=1545))';'
    3. i login in dg broker and issue 'edit database 's1' set property 'LocalListenerAddress'='(address=(pro=tcp)(host=10.10.10.10)(port=1545))';' and a error coming out ORA-16703: cannot set the property while the database is enabled
    4. then i disable database
    DGMGRL> disable database 'ssmscs';
    5. DGMGRL> edit database 's1' set property 'LocalListenerAddress'='(address=(pro=tcp)(host=10.10.10.10)(port=1545))';
    Error: ORA-16541: site is not enabled
    Configuration details cannot be determined by DGMGRL
    what can i do ? can anybody help me out? thanks in advance.
    Edited by: user1835127 on Nov 19, 2008 2:09 AM

    Hi
    You have to edit the following files in $ORACLE_HOME/network/admin or $TNS_ADMIN/ :
    In your listener.ora on your standby
    MQ_LIST =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = superman.dk)*(PORT = 1524))*
    TNSNAMES.ORA (on your primary and standby)
    MQ_LIST =
    (DESCRIPTION =
    (ADDRESS = (COMMUNITY = tcp.world)(PROTOCOL = TCP)(Host = superman.dk)*(PORT = 1524))*
    (CONNECT_DATA = (SID = MQ_LIST))
    after that do
    lsnrctl reload

  • Standby database max availability..delay of committed changes at primary

    Hi,
    I have setup a single instance physical standby database for a 3 node RAC primary database (10.2.0.3 on Solaris 10).
    The log_archive_dest_2 is set as "SERVICE=SDSMK LGWR SYNC AFFIRM NET_TIMEOUT=30 VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=SDSMK"
    at the primary db.
    The primary database is running in Maximum availability mode.
    The query "select protection_mode from v$database" gives "MAXIMUM AVAILABILITY" on both primary and standby databases.
    Now I performed an insert into a table at primary db, COMMITTed the update and issued "ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL" at standby. I could not see the above added row in the table at standby. If I understand correctly, since the standby db is up, the network link is up and all the managed standby processes are up, the change should have been propogated at the standby aswell. Did I miss anything? Also how can I find how long the standby database is lagging interms of committed transactions at primary db?
    Thanks,
    Sreekanth

    on primary:
    SQL> insert into sds.test1 values(17);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> SELECT THREAD#, MAX(SEQUENCE#) FROM V$LOG_HISTORY GROUP BY THREAD# order by thread#;
    THREAD# MAX(SEQUENCE#)
    1 660
    2 849
    3 619
    SQL> select current_Scn from v$database;
    CURRENT_SCN
    719552723
    SQL>
    on standby:
    SQL> SELECT THREAD#, MAX(SEQUENCE#) FROM V$LOG_HISTORY GROUP BY THREAD# order by thread#;
    THREAD# MAX(SEQUENCE#)
    1 660
    2 849
    3 619
    SQL> alter database recover managed standby database cancel;
    Database altered.
    SQL> SELECT THREAD#, MAX(SEQUENCE#) FROM V$LOG_HISTORY GROUP BY THREAD# order by thread#;
    THREAD# MAX(SEQUENCE#)
    1 660
    2 849
    3 619
    SQL> alter database open;
    Database altered.
    SQL> the change in test1 table is not seen here.

  • How to change COMPATIBLE with a physical standby database?

    Hello.
    The obvious answer is do it on both the primary and the standby at the same time... since the reference manual says : "When using a standby database, this parameter must have the same value on both the primary and standby databases.".
    However, I was wondering, I have a 10.2.0.3 DB with compatible=9.2.0.5. What will happen if I leave the parameter to 9.2.0.5 on the standby and just make the change to 10.2.0.3 on the primary? Would I be able to continue to apply the logs on the physical standby? Would I be able to open it ? (I understand that the transport won't probably work anymore and that I won't be able to switchover)
    I guess those 2 questions are stupid but I haven't found any clear statement yet.
    Please stay tolerant. Thank you.
    Gregory
    PS: I know what are the alternatives.

    So the answer is obviously: We cannot do that. That completely makes sense btw. I tried with 10.2.0.1 to 10.2.0.4 and I got:
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 10/22/2008 18:35:55
    RMAN-11003: failure during parse/execution of SQL statement: alter
    database recover logfile '/u01/app/oracle/oradata/WHITE/redo02.log'
    ORA-00331: log version 10.2.0.4.0 incompatible with ORACLE version 10.2.0.1.0
    ORA-00334: archived log: '/u01/app/oracle/oradata/WHITE/redo02.log'
    I should have think about it before I asked. That would have meant we could revert the database from 10g to 9i any time... And the bootstrap changes are not stored in the redo log...
    Gregory

  • Changing the dbid of the physical standby database...

    hai...
    i am new to dataguard.
    can we change the dbid of the physical standby database?
    and if it is possible what would be the effect on primary database at the time of sending archive log files.
    why should we change the dbid of the logical standby database?and why shouldn't for physical standby?
    please guide me...
    v.s.srinivas potnuru

    A physical standby is a bit for bit copy of the primary database. It is not opened read-write. It is the same identical database as your primary.
    Consider a logical standby as an independent database that just happens to have transactions that emanate on the primary database applied to it, via SQL APPLY.
    A logical standby can deviate quite markedly from the primary and you can skip tables from being updated on the standby. You can also create objects that exist solely within the logical standby (i.e. more indexes for reporting).
    jason.
    http://jarneil.wordpress.com

Maybe you are looking for

  • How to enable APEX in 11gR2?

    I just got done starting from scratch on a new server. Installed OS (Windows 2008R2 SP1) and patched. Installed Grid Control. Installed 11gR2 (11.2.0.1). Verified that the database is up and working. I'm trying to enable the existing APEX already in

  • Issue Tracker App Demo

    As I'm a newby to htmldb, I'm building the Issue Tracker app demo. Did anyone who has already built the demo have trouble with create/edit Person information on page 4? When I submit, I get the following error: Error ERR-1025 Error processing PLSQL e

  • Anything a system restore disk can do that a system install disk won't?

    Hi, I am eBaying a set of Jaguar installation disks (from an old system that I later upgraded). A fellow asked if they would work the same as a "recovery" disk. Apparently he has a powerbook G4 that only displays a blue screen when he boots up, and A

  • IllegalStateException error

    why does this program give me an IllegalStateException when I run it? How can it be fixed? import java.util.*; import java.io.*; import javax.swing.*; public class FileChooser extends javax.swing.JFrame     private final int POINTS = 1600;        jav

  • Help with a method

    The following method is supposed to Return an array of integers representing all of the unoccupied rooms which has the required number of double and single beds. The length of the resulting array is the same as the number of matching rooms (which may