Hostname for Standby Database

Hi All,
We are setting up standby database for MSSQL2008 in windows 2008 R2 environment. For our customer scenario, their infra team insist of using log shipping to transfer log file and file replication to to replication SAP files.
Therefore, i've a question in mind.. Do we need to maintain identical hostname for primary and standby database? fyi, they have cluster their primary and DR host.
If different hostname, virtual hostname is used, basically we can just drop the primary host from the domain and change that respective hostname, virutal hostname and ip for the DR host during swing over? If that's the case, is the any other action we need to perform? Do we need to change any registry? I believe SAP profiles and etc are identical due to the file replication.
If same hostname is maintained for both primary and standby host, i believe we might need to isolate standby host from the network and change the entries in DNS or routing table during swing over?
Any feedback and good suggestion are mostly welcome and much appreciate.
Cheers,
Regards
Nicholas Chang.
Edited by: Nicholas Chang on Feb 10, 2011 4:36 PM
Edited by: Nicholas Chang on Feb 10, 2011 4:37 PM

Hi,
when the primary and the standby database server are on the same network, they have to have a different hostname.
Is the SAP Ci on the same Cluster as the DB (active-active Cluster) ?
Is the SAP System itself a cluster ?
You have three different scenarios here:
- only the DB cluster is failing
- only the CI Cluster/System is failing
- both systems are failing
For the first case you can
- either change the profiles of the primary SAP system to point to the new DR DB Host
- or define a AD alias in beforehand, to which you connect normally.
   Then you have to change the alias only to point the SAP System to the new DR DB Host
For the second case you can
- change the profiles of the DR SAP System to point to the primary DB Host
- or define a AD alias in beforehand, to which you connect normally. When you start
  the DR SAP Systen then, it will connect to the primary DB Host
For the third case you can
- change the profiles of the DR SAP System to point to the seondary DB Host
- or define a AD alias in beforehand, to which you connect normally.
  In the DR case you have to change the Alias in the AD and then you can
  start the DR SAP Systen. It will connect to the primary DB Host
Changing the virtual or physical hostname during DR swing over is not a good option,
as you have too many side effects. Using an Alias is much easier and faster.
Using Database Mirroring (SQL 2005 or higher) will eliminate case 1, as the SAP
system can swing over to the DR side automatically in the DR case.
Best regards
  Clas

Similar Messages

  • SAPOSCOL for standby Database

    Hi ,
    To read the SAPOSCOL information of DB system ( distributed environment) from SAP Applicaiton, I have created the SAPOSCOL destination SAPCCMSR.<<Hostname>>.99 with below utility
    /sapmnt/<SID>/exe/sapccmsr -R pf=/usr/sap/tmp/sapccmsr/sapccmsr.pfl
    However, I cannot use this to read OS information when system is running on standby database.
    I have searched lot and gone through many links to setup destination for standby DB OS information and no luck.
    Can any one help me by providing some information how to setup destination.

    Hi Murugesan,
    You can configure CCMS monitoring on the standby database .
    You can do the following to achieve the same
    install the sapccm4x agent on the standby host
    - Register the agent to the CEN
    - In the agent home directory create a file like oscolfilter.ini In this file enter the filesystems you would like to monitor
    - Add the oscolfilter.ini file into the sapccmsr.ini file This is also located in the agent home directory
    - Create a MTE for filesystem monitoring in your CEN. Add the relevant monitor attribute there.
    - Assign autoreaction via RZ21
    For more information, see OSS Note 522453 - RZ20: Monitoring operating system data
    Hope this helps.
    Regards,
    Deepak Kori

  • Archive apply issue for standby database in Standard Edition.

    We have setup standby database in Oracle standard edition. the archive log cannot be send by oracle automatically. So we manually send the archive over. But do not see the database apply the archive log file. What could be wrong and where should we check on it?
    We also used following when finishing the standby DB after running "recover standby database;" for a few archive log file:
    alter database recover managed standby database disconnect from session;
    ======================================================================================
    This is the status:
    SQL> select OPEN_MODE, SWITCHOVER# ,REMOTE_ARCHIVE ,ARCHIVELOG_CHANGE#,SWITCHOVER_STATUS, DATABASE_ROLE from v$database;
    OPEN_MODE SWITCHOVER# REMOTE_A ARCHIVELOG_CHANGE# SWITCHOVER_STATUS DATABASE_ROLE
    MOUNTED 495550636 ENABLED 1.2201E+13 SESSIONS ACTIVE PHYSICAL STANDBY

    The DB version is 10.2.0.5
    I can do this to apply at standby DB:
    SQL> set autorecovery on
    SQL> recover standby database;
    Then I tried to run this to leave the session:
    alter database recover managed standby database disconnect from session;
    Do not seen any apply.
    =============================
    Here is the last lines of alert log:
    Errors in file /oracle/admin/cntus/bdump/cntus_mrp0_12389.trc:
    ORA-00313: open failed for members of log group 1 of thread 1
    ORA-00312: online log 1 thread 1: '/u03/cntus/redolog/redo01b.log'
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3
    ORA-00312: online log 1 thread 1: '/u02/cntus/redolog/redo01a.log'
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3
    Thu Sep 06 15:08:34 EDT 2012
    Errors in file /oracle/admin/cntus/bdump/cntus_mrp0_12389.trc:
    ORA-00313: open failed for members of log group 1 of thread 1
    ORA-00312: online log 1 thread 1: '/u03/cntus/redolog/redo01b.log'
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3
    ORA-00312: online log 1 thread 1: '/u02/cntus/redolog/redo01a.log'
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3
    Clearing online redo logfile 1 /u02/cntus/redolog/redo01a.log
    Clearing online log 1 of thread 1 sequence number 10158
    Thu Sep 06 15:08:34 EDT 2012
    Errors in file /oracle/admin/cntus/bdump/cntus_mrp0_12389.trc:
    ORA-00313: open failed for members of log group 1 of thread 1
    ORA-00312: online log 1 thread 1: '/u03/cntus/redolog/redo01b.log'
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3
    ORA-00312: online log 1 thread 1: '/u02/cntus/redolog/redo01a.log'
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3
    Thu Sep 06 15:08:34 EDT 2012
    Errors in file /oracle/admin/cntus/bdump/cntus_mrp0_12389.trc:
    ORA-19527: physical standby redo log must be renamed
    ORA-00312: online log 1 thread 1: '/u02/cntus/redolog/redo01a.log'
    Clearing online redo logfile 1 complete
    Media Recovery Waiting for thread 1 sequence 10166
    Thu Sep 06 15:08:35 EDT 2012
    Completed: alter database recover managed standby database disconnect from session
    ======
    We have the directory /u02/cntus/redolog and /u03/cntus/redolog. But nothing in there. Should we create redo for it? Is this a separate issue?
    Thanks!

  • Problem on archivelog for standby database

    Hi,
    I have an RAC architecture on linux in standard edition.
    I build a standby database on an other server in standard edition.
    I have build my standby database and open in read only but when i do some modifications in my rac i can't apply my archive logs because in
    RAC i have the thread notion and the apply give me an error:
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    /db/RSAPRODS/FRA/RSAPROD/archivelog/2011_03_30/thread_1_seq_166.354.747075275
    ORA-00325: archived log for thread 2, wrong thread # 1 in header
    ORA-00334: archived log:
    I don't know how to do to generate an archive log for my standby.
    Thanks

    $ oerr ora 325
    00325, 00000, "archived log for thread %s, wrong thread # %s in header"
    // *Cause:  The archived log is corrupted or for another thread. Can not
    //          use the log for applying redo.
    // *Action: Find correct archived log.Make sure you have transfered archived redo logs in binary mode if using ftp and that they are not corrupted : you can try to use cksum or md5sum on source archived redo log and on target archived redo log.

  • CCMS MAIL ALERT FOR STANDBY DATABASE

    Hi All,
    I've configured the CCMS alert monitor in my entire landscape & I'm successfully getting alert mails from CCMS alert monitor (T-codes involved are RZ20 & RZ21).
    I want to activate the same functionality for my standby database. At least I want to configure the CCMS alert monitor for File System Utilization in my Standby database.
    Can any one guide me about the configuration setting for file system utilization in Standby Database through CCMS monitor.
    Regards,
    Neehir Bhatt

    Hi,
    Highlevel steps:
    - Install the sapccm4x agent on the standby host
    - Register the agent to the CEN
    - In the agent home directory create a file like oscolfilter.ini In this file enter the filesystems you would like to monitor
    - Add the oscolfilter.ini file into the sapccmsr.ini file This is also located in the agent home directory
    - Create a MTE for filesystem monitoring in your CEN. Add the relevant monitor attribute there.
    - Assign autoreaction via RZ21
    For more information, see OSS Note 522453 - RZ20: Monitoring operating system data

  • Procedure for Standby Database for SAP ERP 6.0

    Hello All,
    We are using SAP ERP 6.0 with Oracle 10g with AIX 5.3.
    We are planning to setup a standby database for our SAP ERP 6.0 production system as part of remote DR site using Oracle Data Guard.
    I was under the assumption that i can first install an erp 6.0 (ABAP) system using homogeneous system copy from my erp 6.0 (ABAP) production system and then start configuring oracle dataguard.
    But the System Copy Guide "System Copy for SAP Systems Based on SAP NetWeaver 7.0 SR3 ABAP" has mentioned that "You cannot create standby systems with a system copy".
    Please suggest the best practise or the procedure for creating standby database for SAP ERP 6.0 system. Iam not looking at the steps for creating a pure oracle 10g standby database, but with SAP instances as well.
    Thanks in advance.
    CVS

    Hi,
    Please refer the below mentioned link for configuring data guard.
    http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10823/create_ps.htm
    Below mentioned are the sequence of stpes, which needs to be followed for setting up data guard.
    3.1 Configuring the Primary Database
    3.1.1 Enable archiving and define a local archiving destination
    3.1.2 Create a password file
    3.1.3 Configuring the Oracle networking files
    3.1.4 Set initialization parameters on the primary database
    3.1.5 Take Offline/Online backup of the primary database
    3.1.6 Create a control file for the standby database
    3.1.7 Prepare initialization parameter file for the standby database and start the primary database with the changed pfile.
    3.1.8 Copy all files from the primary host to the standby host
    3.2 Configuring the Standby Database
    3.2.1 Configuring the Oracle networking files
    3.2.2 Create a INIT parameter file for the standby database
    3.2.3 Copy the standby controlfile to the appropriate location
    3.2.4 Create Oracle Password File
    3.2.5 Start the physical standby database
    3.2.6 Initiate log apply services
    Regards,
    Ranjith

  • Best way for standby database?

    hi,
    I heard that DataGuard and Streams are two ways to have a standby database ready in case your normal database fails?
    Can someone please share their experience of using either of these so that I can decide which one I should research into?
    thanks

    I am not very good in streams but whatever little I know , based on that , DG is a block by block copy of the production over the standby making it sure that in the case of the disaster, if you would do failover, there won't be anything that you would be missing. That's why physical standby is the best and if I can say, the only way to do take care of a disaster. Further enabled with Broker, it can be done completely without the dba's intervention which would happen in 20seconds maximumly ( I hope the timing is correct) making it an idle solution for the HA. With 11g enhancements of Active Dataguard and Snapshot Standby, it has really become a useful entity for normal functionality/working of the databases as well.
    Streams, on the other hand is a replicaton tool based on some rules that you define. Compared to DG, it can be just a part of the production system which is replicated over the other side. So I won't consider this as an ideal to take care of disasters.
    Just my 2 cents.
    Happy new year and belated merry Christmas as well :-) .
    Aman....

  • Autorecover for standby database....

    Does anyone know if there are plans to allow the autorecover function to apply log files to a standby database without bringing the database online? It would seem like a logical option to have and greatly simplify the management of log files on the standby server.
    Alternatively, does anyone have any template scripts (RHEL4) that they could post for applying log files on a standby server. I don't believe in re-inventing the wheel if I don't have to.
    Thanks,
    George M-A

    Hello George,
    we are in the same situation of not to re-invent the wheel.
    So I used the forum search and some google and found the following link:
    http://lists.mysql.com/maxdb/24407
    In this thread a script for autorecovering is discussed.
    We are now trying to verify the script and to customize it for our environment.
    Regards,
    Thomas

  • Force logging at tablespace level for standby database

    Hi
    Can we create a standby database by enabling force logging at tablespace level instead of enabling it at database level.I want to out the tablespace containing indexes in nologging mode so that when I rebuild the indexes no logs will be generated.

    Technically, you can create a Standby without having set FORCELOGGING at the Primary database.
    You can also then selectively FORCELOGGING for all your important tablespaces (beginning with SYSTEM, SYSAUX, UNDO ....)
    However, for a Physical Standby Redo Apply will mark the blocks (e.g. those populated by the CREATE INDEX .. NOLOGGING) as "corrupt". You will get Read Errors (ORA-1578 and ORA-26040) when you attempt to read the index (e.g. for a Table query).
    So you have to monitor your NOLOGGING operations and the datafiles where NOLOGGING is applied. You can take Incremental RMAN Backups of such datafiles and restore them to the Standby immediately after the NOLOGGING operations.
    Hemant K Chitale

  • Initial setup for standby database - doubts ??

    Hi,
    While creating a physical standby database from a primary database what is the initial setup in case of the standby database which will be created.
    1.Is it that I will only install the oracle with no starter database and then continue with the steps for creating standby database.
    2. The SID has to be the same for both the database or can it be different.
    Waiting for your answer.
    sl

    1)
    Fulfill the prerequisites
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14239/standby.htm#i58150
    2) It has to be same.

  • Flashback for standby database

    Hi,
    We have dataguard environment with Sun OS & Oracle 10g, 11g. Now we want to enable flashback for the primary database as well as standby database (physical standby). NO RMAN. I did manage to configure the flashback for the primary database but confusion is:
    -- Do I need to configure flashback at standby or recreate standby after enabling flashback at primary site?
    -- Suppose if I use flashback database to restore point and open database with resetlogs, what would be the situation at standby site? Will it be in sync with primary or after resetlogs I need to make new standby database??
    -- Is there any space requirement ratio for flashback recovery partition?
    Thanks,
    Amit.

    Amit_P wrote:
    Hi,
    We have dataguard environment with Sun OS & Oracle 10g, 11g. Now we want to enable flashback for the primary database as well as standby database (physical standby). NO RMAN. I did manage to configure the flashback for the primary database but confusion is:
    -- Do I need to configure flashback at standby or recreate standby after enabling flashback at primary site?
    -- Suppose if I use flashback database to restore point and open database with resetlogs, what would be the situation at standby site? Will it be in sync with primary or after resetlogs I need to make new standby database??
    -- Is there any space requirement ratio for flashback recovery partition?refer these notes.
    *How To Open Physical Standby For Read Write Testing and Flashback [ID 805438.1]*
    +Restore Points in Oracle10g Release2 [ID 330535.1]+

  • Licence for Standby database

    Hi All,
    Is it required a separate Licence to run a stand by for production database?.
    Our production server is bit critical. I am planning to built a stand by.
    Can you please give clear an idea of licencing for standby?.
    What is the difference between hot standby and cold standby?
    Thanks,
    DJ

    In general, you would need to license the standby database separately.
    You'll want to see the Software Investment Guide for more details. You may be able to avoid licensing the standby database if you are using OS clustering to provide the failover and the standby database isn't activated more than 10 days a year.
    Justin

  • Do i need sames OS for standby database?

    Im planning on implementing a stand by database for my production db, and i have a few questions.-
    1.- Do i need to have the same os?
    2.- Do i need a license for a standby db?
    Thanks

    elvyscruz wrote:
    Im planning on implementing a stand by database for my production db, and i have a few questions.-
    1.- Do i need to have the same os?It depends on version which you don't tell us. For 11g no ([http://download.oracle.com/docs/cd/B28359_01/server.111/b28294/standby.htm#i72053]) for other versions basically yes, though you will likely get away with small point differences in os version). I'd argue that for best practice for physical standby the answer is yes, not least since you'll likely want to do role switchover as part of your operational requirements - changing OS at the same time as Role switchover just adds unnecessary complexity.
    2.- Do I need a license for a standby db?
    Yes. See the OLSA at [http://oraclestore.oracle.com/OA_HTML/ibeCCtpSctDspRte.jsp?section=11365&media=os_local_license_agreement] especially
    >
    Failover: Subject to the conditions that follow below, your license for the following programs, Oracle Database (Enterprise Edition, Standard Edition or Standard Edition One), Oracle Database Enterprise Edition Options, Oracle Internet Application Server (Enterprise Edition, Standard Edition, Standard Edition One or Java Edition), Oracle Internet Application Server Options, Business Intelligence Suite Enterprise Edition Plus, Business Intelligence Server Enterprise Edition, Business Intelligence (Standard Edition or Standard Edition One), WebLogic (Server Standard Edition, Server Enterprise Edition, Suite, Suite Options or Application Grid), Tuxedo and Adapters, Oracle Enterprise Repository, Entitlements Server, Entitlements Server Security Module, Directory Services, Identity Federation and those programs with &ldquo;BEA&rdquo; in the program name includes the right to run the licensed program(s) on an unlicensed spare computer in a failover environment for up to a total of ten separate days in any given calendar year (for example, if a failover node is down for two hours on Tuesday and three hours on Friday, it counts as two days). The above right only applies when a number of machines are arranged in a cluster and share one disk array. When the primary node fails, the failover node acts as the primary node. Once the primary node is repaired, you must switch back to the primary node. Once the failover period has exceeded ten days, the failover node must be licensed. In addition, only one failover node per clustered environment is at no charge for up to ten separate days even if multiple nodes are configured as failover. Downtime for maintenance purposes counts towards the ten separate days limitation. When licensing options on a failover environment, the options must match the number of licenses of the associated database. Additionally, when licensing by Named User Plus, the user minimums are waived on one failover node only. Any use beyond the right granted in this section must be licensed separately. In a failover environment, the same license metric must be used for the production and failover nodes when licensing a given clustered configuration.
    Edited by: Niall Litchfield on Sep 8, 2008 2:14 PM
    Edited by: Niall Litchfield on Sep 8, 2008 2:15 PM

  • User and Group Ids for Standby Database

    The following oracle homes installed under the same unix account on the primary node:
    10gR2 CRS home
    10gR2 ASM home
    10gR2 RDBMS home
    Oracle Applications E-Business Suite 11.5.10.2 (concurrent admin)
    Based on note 216212.1 - Business Continuity for Oracle Applications Release 11i, Database Releases 9i and 10g
    Section 1: Design Considerations and Assumptions
    The note, verbatim, says "+The user and group Ids of the Oracle and applications software owner accounts must be the same on the production and standby servers+." Is this statement true? In other words, if the primary server software owner is the "morgan" unix account, then the unix account must also be "morgan" (not "stanley") on the standby server?

    Yes you can run a standby with different unix usernames on primary and standby, but it will be easier if the usernames are the same.

  • Specifying hostname for the database during installation

    I installed 11g r2 database as a Desktop server, nowhere during the installation did it ask me to review or change the hostname. It automatically used "localhost" as the hostname, and has written so in listener.ora, so no other machine on the network is able to use it. It only connects from within the same machine. Please help how to specify the hostname during installation.
    Edited by: user4928701 on 8 Jul, 2011 11:15 PM

    user4928701 wrote:
    I installed 11g r2 database as a Desktop server, nowhere during the installation did it ask me to review or change the hostname. It automatically used "localhost" as the hostname, and has written so in listener.ora, so no other machine on the network is able to use it. It only connects from within the same machine. Please help how to specify the hostname during installation.
    Edited by: user4928701 on 8 Jul, 2011 11:15 PMFirst, while the installation may (or may not) automatically create the listener.ora, it is not logically related. Creation/maintenance of listener has nothing to do with installation of software OR creation of a database.
    Second, I believe (but am not sure, and setting up a test takes more time than I have at the moment) whatever automatic creation of listener may occur uses the hosts file to get that info.
    Third, there is absolutely nothing stopping you from changing the listener.ora after the fact. There are no deep hooks between it and the installation.

Maybe you are looking for

  • Error during PO Creation:

    All When I create a PO with reference to PR , I get error Message Purchase order item 00010 still contains faulty schedule lines Message no. MEPO001 The same scenario when replicated in Quality it works fine Can anyone please help me it is very urgen

  • Yosemite Freezing at the same time on 3 Mac Pros

    I've installed Yosemite on 3 Mac Pro's ( variety of models, 2010 and 2011) They are all regularly freezing up at exactly the same time. When I say freeze, I mean everything is unresponsive except the cursor still moves. The clock stops for the durati

  • Runtime Error still not fixed in Reader 9

    Just downloaded and installed Reader 9 on my Win 2003 server machine. As soon as I start it up, I get the dreaded C++ Runtime Error: "This application has requested the Runtime to terminate it in an unusual way." Then, boom: Reader closes down. Furth

  • Shutting down unexpectedly, battery disconnecting

    I got back to my apartment from a break and after starting up my macbook the battery wouldn't charge. It had over 900 cycles so no big deal I bought a replacement. I got the replacement in today, installed it, and let it charge for a few hours. Now w

  • Listening to classical music

    I just got my Blackberry curve and it is great - except for the issues I am having with music downloads.  I bought two full albums of classical music on iTunes.  I had no problem synching the current music I bought through iTunes.  But, when I tried