Tnsnames.ora / listener.ora files on Oracle Standby Database

Hi I am configuring an Oracle Standby Database to my production system 4.7 and Oracle 9.2.0.4
My production server is: PR01
Database SID: PRD
Standby database server is: PRDR
Database SID: PRD
I have already configured the server to a standby database offline backup. Was generated the control files of the standby database and the database is in standby mode.
Now I will create a script to start the synchronization of offline redolog from the production server to standby server.
I have a question: in the document SAP Oracle Standby Database, tells me I should change the tnsnames.ora production server pointing to an additional entry disaster recovery server. The tnsnames.ora  file must have two entries???  corresponding to a production server and another to the disaster recovery server??
In several links of oracle tells me I should configure listener.ora disaster recovery server that is true??
Guys my question is: where should I change my listener.ora and tnsnames.ora files?
Please clear my doubt.
Best regards,
Desiree

Hi Desiree,
The entry in your TNSNAMES.ORA is a nothing but a tns service, when you define archive log destination it will point to a service. This service's host name will be resolved in your tnsnsmaes.ora file.
Below is the eg of an entry in pfile:
*.log_archive_dest_2='SERVICE=<service_name> ARCH OPTIONAL'
Below is the entry in your tnsnames.ora file
<service_name>.WORLD=
  (DESCRIPTION = (ADDRESS_LIST = (ADDRESS =
          (COMMUNITY = SAP.WORLD)
          (PROTOCOL = TCP)
          (HOST = <DR_HOST>)
          (PORT = 1527)
    (CONNECT_DATA =
       (SID = <DB_SID>)
       (GLOBAL_NAME = <DB_SID>.WORLD)
So, your tnsnames.ora will have one entry for your host and the other for the DR host, i.e two entries.
Listener entry for the convenience when there is a switch over.
Regards,
Bala

Similar Messages

  • Tnsnames.ora, sqlnet.ora & listener.ora files are not exit

    DB version: 10.2
    Hello All,
    I just joined the project and notice tnsnames.ora, sqlnet.ora & listener.ora files are not exit under $ORACLE_HOME/network/admin.
    But still we can connect to the database,
    From command prompt or via enterprise manager studio from client site.
    Any idea?
    OR
    what is the best way to create above files in the existing database?
    DN

    tnsnames.ora and sqlnet.ora are client side files, listener.ora and sqlnet.ora are server side files.
    Listener.ora need not exist if using defaults and dynamic registration of services. It may be possible to cope without all those files, depending on the environment.
    Is the database on the local or remote computer and how are you connecting (from sqlplus)?
    Maybe you have a tnsnames.ora somwhere else? (Try using find command) Maybe TNS_ADMIN is set?

  • Configuring tnsnames.ora / listener.ora with HOST = localhost

    Dear Oracle experts,
    presently I'm trying to configure an Oracle installation on a Win2k server
    to work with HOST = localhost entries in my tnsnames.ora and listener.ora.
    I have to do that because I want to use that Oracle installation as an image
    for several computers which will get different IPs and computer names.
    My problem is, taht I only can configure my entries with a real IP adres (127.0.0.1 does not work ) or with the present name of the system but not with localhost or 127.0.0.1.
    My listener.ora looks like below :
    # listener.ora Network Configuration File: D:\oracle\product\10.1.0\Db_1\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SDU = 4096)
    (SID_NAME = EMS)
    (ORACLE_HOME = D:\oracle\product\10.1.0\Db_1)
    (PRESPAWN_MAX = 10)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost )(PORT = 1521))
    The listener above lead to a
    ERROR - ORA-12541: TNS:no listener
    if I try to connect via iSQLPlus. If I exchange HOST = localhost with HOST = mydnsname the I can connect to the computer via isqlplus.
    Is there any possibility to configure the listener and tnsnames without using real IP adresses ?
    Best regards,
    Daniel Wetzler

    Hi maran,
    thanks for your answer.
    i started the listener from cmd and had the output below :
    C:\Documents and Settings\ECS>lsnrctl start
    LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 22-MAR-2007 16:04
    :32
    Copyright (c) 1991, 2004, Oracle. All rights reserved.
    Starting tnslsnr: please wait...
    TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Production
    System parameter file is D:\oracle\product\10.1.0\Db_1\network\admin\listener.or
    a
    Log messages written to D:\oracle\product\10.1.0\Db_1\network\log\listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Produ
    ction
    Start Date 22-MAR-2007 16:04:33
    Uptime 0 days 0 hr. 0 min. 0 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File D:\oracle\product\10.1.0\Db_1\network\admin\listener.o
    ra
    Listener Log File D:\oracle\product\10.1.0\Db_1\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "EMS" has 1 instance(s).
    Instance "EMS", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    C:\Documents and Settings\ECS>
    In my listener.log I found the following information :
    TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Production on 22-MAR-2007 16:11:42
    Copyright (c) 1991, 2004, Oracle. All rights reserved.
    System parameter file is D:\oracle\product\10.1.0\Db_1\network\admin\listener.ora
    Log messages written to D:\oracle\product\10.1.0\Db_1\network\log\listener.log
    Trace information written to D:\oracle\product\10.1.0\Db_1\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=1672
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    22-MAR-2007 16:11:43 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=ECS))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=168821248)) * status * 0
    So it seems that my lister is running fine, isn't it ?
    But I cannot conect to my database....
    I pasted my tnsnames.ora below.
    Perhabs there's a bug I didn't fins yet. But if I replace in both files t(tnsnames.ora and listener.ora the "localhost" with my local IP it works just fine...
    # tnsnames.ora Network Configuration File: D:\oracle\product\10.1.0\Db_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    SIG =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost )(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = SHARED)
    (SERVICE_NAME = SIG)
    Hpe someone can help.....
    Best regards,
    Daniel

  • Questions on sqlnet.ora, listener.ora files in RAC environment.

    Experts,
    I've some confusion with below files in RAC environment.
    sqlnet.ora
    listener.ora
    These files are available in two locations: <GRID_HOME> & <DB_HOME>.
    My questions:
    1. Why do we have two versions of files ?
    2. When I query lsnrctl status from BOTH the homes, it says it is using listener.ora from <GRID_HOME> as shown below.
    Listener Parameter File D:\app\11.2.0\grid\network\admin\listener.ora
    3. What is the use of files which are in <DB_Home>
    4. If you make some changes to listener using "Netmgr" tool, we expect it will update listener.ora in <GRID_HOME>. Interestingly, it is changing the contents of listener.ora in <DB_HOME> .
    Can anyone please clarify it ?
    Thanks in advance.

    859875 wrote:
    1. Why do we have two versions of files ? In the past, the CRS s/w did not include ASM (ASM did not provide support for cluster voting and registration disks). Thus the networking components such as SQL*Net and the Listener were not part of the CRS installation.
    With Grid Infrastructure, ASM supports cluster voting and registration disks and is recommended to be used for that (as oppose to the old style of raw disks or using an external cluster-based cooked file system like <i>ocfs</i>). And with ASM comes the SQL*Net networking layer and s/w (such as the Listener). As ASM ships with Grid Infrastructure, it now also includes the same networking layer as what the RDBMS installation will. Thus both <GRID_HOME> and <DB_HOME> will contain the same networking components.
    However, only a single Listener is for example needed. And that can only run from a single base location. So for operational use, only one version will be actively in use.

  • ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode

    Hi All,
    Need help from the gurus.
    Currently we are in state unable to do anything.
    Was using a database and all of a sudden it crashed. Tried to mount the database, open it, it failed. Also tried the recover and alter database open, even that failed. Errors are as follows.
    Errors in file e:\oracle\product\10.2.0 \admin\devrevdb\bdump\devrevdb_p000_2620.trc:
    ORA-00603: ORACLE server session terminated by fatal error
    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    ORA-00449: background process 'DBW0' unexpectedly terminated with error 1242
    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    In my spfile, the administrator has set only two control files and there is no mirroring and hence do not have another control file that will help me boot the db.
    Please let me know how I should go about it. I am only a timebeing person trying to carryout a db activity. Any help would be of great help.

    Hemant,
    thanks for the reply.
    I tried the way you suggested and it threw an error.
    ORA-01145: offline immediate disallowed unless media recovery enabled
    I searched and found that an additional tag of drop needs to be added to the command which you suggested.
    ALTER DATABASE DATAFILE '<filename>' OFFLINE DROP.
    i don't know what will the drop command have an effect ?
    i have copied the data file to another location. Since i don't know much, i just want to be sure of what im doing.
    if the above command is successfull, will it drop the datafile or the tablespace and i can no more use it. How can i use the copied datafile.
    Thanks,
    Sachin
    I

  • ORA-01666: controlfile is for a standby database - My DB Doesn't OPEN

    dear Gurus,
    I've created a Standby, and Configured the Dataguard no issues.
    I've start a swtchover into Site 2
    After half an Hour without responding I cancle the operation.
    Now I'm facing this Situation, My Standby Site still Ok but my Prod Database shows ORA-01666: controlfile is for a standby database
    What shall i do?
    When I check the Config in the Dataguard Broker everything seems ok for SITE 2
    DGMGRL> show site verbose 'CFMP_SITE2';
    Site
    Name: 'CFMP_SITE2'
    Hostname: 'srvsdmwebp02'
    Instance name: 'CFMP'
    Service Name: 'CFMP_SITE2'
    Standby Type: 'physical'
    Number Built-in Processes: '2'
    Number Generic Processes: '0'
    Enabled: 'yes'
    Required: 'yes'
    Default state: 'STANDBY'
    Intended state: 'STANDBY'
    PFILE: ''
    Number of resources: 1
    Resources:
    Name: CFMP_SITE2 (default) (verbose name='CFMP_SITE2')
    Current status for "CFMP_SITE2":
    SUCCESS
    DGMGRL>
    But in Site 1 it's different
    DGMGRL>
    DGMGRL> show site verbose 'CFMP_SITE1';
    Site
    Name: 'CFMP_SITE1'
    Hostname: 'srvsdmwebp01'
    Instance name: 'CFMP'
    Service Name: 'CFMP_RW.world'
    Standby Type: 'physical'
    Number Built-in Processes: '2'
    Number Generic Processes: '0'
    Enabled: 'yes'
    Required: 'yes'
    Default state: 'PRIMARY'
    Intended state: 'PRIMARY'
    PFILE: ''
    Number of resources: 1
    Resources:
    Name: CFMP_SITE1 (default) (verbose name='CFMP_SITE1')
    Current status for "CFMP_SITE1":
    Warning: ORA-16609: one or more resources have failed
    How shall I proceed ?
    Thxs

    Dear Gurus,
    Thxs for all your replys,
    You really help Me, anyhow, now i could Start at Least one database, the Secondary SITE is Up and running
    But when I check the Dataguard Broker I get
    DGMGRL> show resource verbose 'CFMP_SITE2';
    Resource
    Name: CFMP_SITE2
    Manager Type: internal
    Standby Type: PHYSICAL
    Online States:
    ONLINE
    PHYSICAL-APPLY-READY
    PHYSICAL-APPLY-ON
    READ-ONLY
    LOGICAL-APPLY-READY
    LOGICAL-APPLY-ON
    READ-WRITE
    READ-WRITE-XPTON
    Properties:
    INTENDED_STATE = 'PHYSICAL-APPLY-ON'
    ENABLED = 'yes'
    IGNORE_STATUS = 'no'
    LogXptMode = 'ASYNC'
    Dependency = ''
    Alternate = ''
    DelayMins = '0'
    Binding = 'OPTIONAL'
    MaxFailure = '0'
    ReopenSecs = '300'
    AsyncBlocks = '16384'
    LogShipping = 'ON'
    ApplyNext = '0'
    ApplyNoDelay = 'NO'
    ApplyParallel = '1'
    StandbyArchiveDest = '/u03/archive/CFMP'
    LogArchiveTrace = '0'
    StandbyFileManagement = 'AUTO'
    ArchiveLagTarget = '1800'
    LogArchiveMaxProcesses = '4'
    LogArchiveMinSucceedDest = '1'
    DbFileNameConvert = ' , '
    LogFileNameConvert = ' , '
    LogArchiveFormat = 'CFMP_%s.arc'
    InconsistentProperties = '(monitor)'
    InconsistentLogXptProps = '(monitor)'
    SendQEntries = '(monitor)'
    LogXptStatus = '(monitor)'
    SbyLogQueue = '(monitor)'
    Properties for 'PRIMARY' state:
    DEFAULT_STATE = 'READ-WRITE-XPTON'
    EXPLICIT_DISABLE = 'no'
    REQUIRED = 'yes'
    Properties for 'STANDBY' state:
    DEFAULT_STATE = 'PHYSICAL-APPLY-ON'
    EXPLICIT_DISABLE = 'no'
    REQUIRED = 'yes'
    Current status for "CFMP_SITE2":
    Error: ORA-16762: Invalid database state
    I don't get ???? Can we really seriouslly trust this DATAGUARD stuff ????

  • ORA-16831: operation disallowed on this standby database type

    Om my primary database, i am getting this error when i give ADD database command. How i can resolve. The difference between primary & secondary is that primary is 64bit OS and secondary is 32bit OS. Both have 12gr2 and linux.
    DGMGRL> ADD DATABASE tbdb AS CONNECT IDENTIFIER IS tbdb MAINTAINED AS PHYSICAL;
    Error: ORA-16831: operation disallowed on this standby database type

    It's supported till 10g. But data guard broker is not supported if you use different binaries. See support note 414043.1
    Also http://emrebaransel.blogspot.com/2010/12/dataguard-on-different-operating.html

  • How to store txt file into Oracle 7 Database using Pro*C

    Hi,
    I want to store a txt file into Oracle 7 database table using
    Pro*C application. But do not know what type of column to use.
    At first glance it appeared to me as LONG can serve the purpose
    but later I noticed that I can not do the sequential read/write
    in LONG type of column. That is, I have to use chunks of max of
    2GB (or file lenght) to read/write into such columns.
    I want something simiar to CLOB of Oracle 8.
    I would appreciate if you can provide me solution.
    Thanks,
    Anurag

    You store images in a BLOB column in the database.
    However, inserting image in that column and displaying data/image from that column are 2 very different tasks.
    If you are using Oracle forms, displaying is easy. Default block sitting on the table with BLOB column, can be easily mapped to image box (or similar control), which will display that image.
    Inserting images will be a different ball game. If your forms are web based (i.e. run from browser) and you want to insert images from client machine, some special arrangements are required.
    If images are on database server and you want to insert them in database, the stored procedure given in the earlier thread (posted above) will do the job.

  • Automatic renaming hostname in tnsnames and listener.ora

    Is it realy not possible to change hostname automaticly in TNSNAMES.ORA and LISTENER.ORA after installing an image-CD with Windows XP and Oracle11GR1. In Windows , there is a SID Change Tool and in Oracle?
    Thank's for your help !
    René

    Again, take a look at running "netca /silent ..." with a response file.
    Another (perhaps better) option would be to burn a cd with a software only install and that upon "activation" would then run a dbca noninteractive session to configure a database (I assume you want one, mentioning listener.ora).

  • Where the init.ora ,   tnsnames.ora,   listener.ora,    sqlnet.ora

    If client-side and server-side software are located in different machines, basically, init.ora and listener.ora are located in the server-side, and tnsnames.ora and sqlnet.ora are located in the client-side, am I right?

    The confusion comes because, as stated earlier by Sanjay, a server could also be a client...
    Here a very simple example on one and only one Windows machine with the same user :
    ---here it is a connection as from client
    E:\apps\oracle\ora1110PE\NETWORK\ADMIN>tnsping demo111p
    TNS Ping Utility for 32-bit Windows: Version 11.1.0.7.0 - Production on 21-JUN-2009 09:36:38
    Copyright (c) 1997, 2008, Oracle.  All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = phoenix)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = DEMO111P)))
    OK (10 msec)
    E:\apps\oracle\ora1110PE\NETWORK\ADMIN>sqlplus scott/demo111@demo111p
    SQL*Plus: Release 11.1.0.7.0 - Production on Sun Jun 21 09:27:02 2009
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Connected to:
    Personal Oracle Database 11g Release 11.1.0.7.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> quit
    Disconnected from Personal Oracle Database 11g Release 11.1.0.7.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    --- we remove the sqlnet.ora
    E:\apps\oracle\ora1110PE\NETWORK\ADMIN>rename sqlnet.ora _sqlnet.ora
    ---here it is a connection as from client
    E:\apps\oracle\ora1110PE\NETWORK\ADMIN>tnsping demo111p
    TNS Ping Utility for 32-bit Windows: Version 11.1.0.7.0 - Production on 21-JUN-2009 09:37:30
    Copyright (c) 1997, 2008, Oracle.  All rights reserved.
    Used parameter files:
    TNS-03505: Failed to resolve name
    E:\apps\oracle\ora1110PE\NETWORK\ADMIN>sqlplus scott/demo111@demo111p
    SQL*Plus: Release 11.1.0.7.0 - Production on Sun Jun 21 09:27:11 2009
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    Enter user-name:
    ---here it is a connection as from server, still working, in that case it does not use tnsnames/sqlnet
    E:\apps\oracle\ora1110PE\NETWORK\ADMIN>set ORACLE_SID=demo111p
    E:\apps\oracle\ora1110PE\NETWORK\ADMIN>sqlplus scott/demo111
    SQL*Plus: Release 11.1.0.7.0 - Production on Sun Jun 21 09:27:37 2009
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Connected to:
    Personal Oracle Database 11g Release 11.1.0.7.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL>So, we are on server, the behaviour change depending what we are connecting with (client or server method).
    Nicolas.

  • TSNnames.ora & Listener.ora - Where do I find these files

    Greetings!
    I'm trying to connect from a SQL server to an Oracle server through the SQL management studio's Linked Server. I'm a bit confused as I get the error ORA 12504, which it says "Listener was not given the SERVICE_NAME in CONNECT_DATA" .
    Where are these files suppouse to be? In the SQL server or the Oracle Server? I did a search in both servers and I don't get any results with the mentioned files names. What do I need to have them?
    If someone could point me to an article or some guide, I would be in great debt as I need to figure this out preety soon.
    Thanks!

    Hello,
    YOu can find these files on oracle server under $ORACLE_HOME/admin/network directory.
    Examples of listener.ora_
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS_LIST =
            (ADDRESS = (PROTOCOL = TCP)(HOST = <hostname where database is running>)(PORT = 1521))
          (ADDRESS_LIST =
            (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME =<path to oracle home>)
          (PROGRAM = extproc)
        (SID_DESC =
          (GLOBAL_DBNAME = <database instance name>)
          (ORACLE_HOME =<path to oracle home>)
          (SID_NAME = <your database instance name>)
    Example of tnsames.ora_
    <your database instance name>=
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = <hostname where database is running>)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME =<your database instance name>)
      )Regards
    Edited by: OrionNet on Jan 26, 2009 1:23 PM

  • ORA-01157: cannot identify/lock data file error in standby database.

    Hi,
    i have a primary database and standby database (11.2.0.1.0) running in ASM with different diskgroup names. I applied an incremental backup on standby database to resolve archive log gap and generated a controlfile for standby in primary database and restored the controlfile in standby database.But when i started the MRP process its not starting and thows error in alert log ORA-01157: cannot identify/lock data file. When i queried the standby database file it shows the location on primary database datafiles names not the standby database.
    PRIMARY DATABASE
    SQL> select name from v$datafile;
    NAME
    +DATA/oradb/datafile/system.256.788911005
    +DATA/oradb/datafile/sysaux.257.788911005
    +DATA/oradb/datafile/undotbs1.258.788911005
    +DATA/oradb/datafile/users.259.788911005
    STANDBY DATABASE
    SQL> select name from v$datafile;
    NAME
    +STDBY/oradb/datafile/system.256.788911005
    +STDBY/oradb/datafile/sysaux.257.788911005
    +STDBY/oradb/datafile/undotbs1.258.788911005
    +STDBY/oradb/datafile/users.259.788911005
    The Actual physical location of standby database files in ASM in standby server is shown below
    ASMCMD> pwd
    +STDBY/11gdb/DATAFILE
    ASMCMD>
    ASMCMD> ls
    SYSAUX.259.805921967
    SYSTEM.258.805921881
    UNDOTBS1.260.805922023
    USERS.261.805922029
    ASMCMD>
    ASMCMD> pwd
    +STDBY/11gdb/DATAFILE
    i even tried to rename the datafiles in standby database but it throws error
    ERROR at line 1:
    ORA-01511: error in renaming log/data files
    ORA-01275: Operation RENAME is not allowed if standby file management is
    automatic.
    Regards,
    007

    Hi saurabh,
    I tried to rename the datafiles in standby database after restoring it throws the below error
    ERROR at line 1:
    ORA-01511: error in renaming log/data files
    ORA-01275: Operation RENAME is not allowed if standby file management is
    automatic.
    Also in my pfile i have mentioned the below parameters
    *.db_create_file_dest='+STDBY'
    *.db_domain=''
    *.db_file_name_convert='+DATA','+STDBY'
    *.db_name='ORADB'
    *.db_unique_name='11GDB'
    Regards,
    007

  • ORA-279 signalled during recovery of standby database

    Hi All,
    I am preparing standby database after taking hot backup and copying those datafiles to standby,
    taken controlfile standby controlfile backup from primary
    mounted the standby database using standby controlfile using
    startup nomount pfile='/u01/stand.ora'
    alter database mount standby database;
    Now I have started applying archives on standby database after copying all archives from primary to standby box the archives generated during backup using..
    recover standby database;
    But I am getting the below warning on the recovery screen...
    ORA-00279: change 51667629050 generated at 07/02/2009 00:59:43 needed for
    thread 1
    ORA-00289: suggestion : /nodal-archive/archive/1_55118_652209172.arc
    ORA-00280: change 51667629050 for thread 1 is in sequence #55118
    ORA-00278: log file '/nodal-archive/archive/1_55117_652209172.arc' no longer
    needed for this recovery
    ORA-00279: change 51667703096 generated at 07/02/2009 01:06:04 needed for
    thread 1
    ORA-00289: suggestion : /nodal-archive/archive/1_55119_652209172.arc
    ORA-00280: change 51667703096 for thread 1 is in sequence #55119
    ORA-00278: log file '/nodal-archive/archive/1_55118_652209172.arc' no longer
    needed for this recovery
    ORA-00279: change 51667767649 generated at 07/02/2009 01:12:28 needed for
    thread 1
    ORA-00289: suggestion : /nodal-archive/archive/1_55120_652209172.arc
    ORA-00280: change 51667767649 for thread 1 is in sequence #55120
    ORA-00278: log file '/nodal-archive/archive/1_55119_652209172.arc' no longer
    needed for this recovery
    ORA-00279: change 51667831821 generated at 07/02/2009 01:19:40 needed for
    thread 1
    ORA-00289: suggestion : /nodal-archive/archive/1_55121_652209172.arc
    ORA-00280: change 51667831821 for thread 1 is in sequence #55121
    ORA-00278: log file '/nodal-archive/archive/1_55120_652209172.arc' no longer
    needed for this recovery
    and I am getting the below warning on the alert log..........
    Sun Jul 5 18:37:36 2009
    ALTER DATABASE RECOVER CONTINUE DEFAULT
    Sun Jul 5 18:37:36 2009
    Media Recovery Log /nodal-archive/archive/1_55256_652209172.arc
    Sun Jul 5 18:40:31 2009
    ORA-279 signalled during: ALTER DATABASE RECOVER CONTINUE DEFAULT ...
    Sun Jul 5 18:40:31 2009
    ALTER DATABASE RECOVER CONTINUE DEFAULT
    Sun Jul 5 18:40:31 2009
    Media Recovery Log /nodal-archive/archive/1_55257_652209172.arc
    Please suggest what to do now.............
    Thanks in Advance,
    Sukanta Paul.

    Hi Sukanta,
    I didn't really understand what the problem is...
    Let me explain, hope it will be clear.
    You created a standby control file, and backed up the database (it doesn't matter in which order). Now, you have a standby database that is ready to apply logs. It will be able to apply log forever, until we will stop it.
    The messages you see say the following:
    ORA-00279: change 51667831821 generated at 07/02/2009 01:19:40 needed for thread 1 {color:blue} - this says that the recovery process is now at scn 51667831821 {color}
    ORA-00289: suggestion : /nodal-archive/archive/1_55121_652209172.arc {color:blue} - the information needed for the recover is in this file (this is only the default name, you can choose other name if the file is called differently) {color}
    ORA-00280: change 51667831821 for thread 1 is in sequence #55121 {color:blue} - same here, the needed archive is sequence 55121 {color}
    ORA-00278: log file '/nodal-archive/archive/1_55120_652209172.arc' no longer needed for this recovery {color:blue} - this message is after Oracle has applied the log, and it means that this log is no longer needed {color}
    Now it will wait for the next log. Again, this process is endless, this is how it is made to allow the standby database to be always synched with the primary.
    Liron Amitzi
    Senior DBA consultant
    [www.dbsnaps.com]
    [www.orbiumsoftware.com]

  • SQLNET.ORA,LISTENER.ORA

    Hi,
    i need to set SQLNET.INBOUND_CONNECT_TIMEOUT and INBOUND_CONNECT_TIMEOUT_listenername for some issue from 3600 to 180 is ot ok or no need..
    Thanks,

    Hi;
    What is db version?
    Please see:
    OERR: ORA-3135 { Message text depends on version } [ID 38836.1]
    Troubleshooting ORA - 3135 Connection Lost Contact [ID 787354.1]
    Diagnosis of ORA-3135/ORA-3136 Connection Timeouts when the Fault is in the Database [ID 730066.1]
    Regard
    Helios

  • Implementing Oracle StandBy Database - Suggestion & Tips needed Pls.

    Dear Sir,
    With rerefence to high availability of our database, we would like to implement a standby database. Regarding this, i have few doubts and request all you expert to pls. help me out. This goes like this:
    1. What is DataGuard.? Is it Separate product in Oracle or Part of Oracle Database Server - Enterprise Edition.?
    2. Is standby database implemented / created ONLY using DataGaurd?
    3. Do we need to buy another license for Oracle Database when i go for implementing StandBy Database.?
    Basically we want if my main production server is down, it should automatically go to my StandBy database and does not stop my application. This is possible i feel by implementing Standby database. And we are thingking to do it. In that respect, we have above query.
    I would request if somebody could be guide us and help.
    Thanks.
    Regards,
    Kamesh Rastogi

    you can get DATAGUARD in Oracle Database Enterprise Edition !!
    this is script for Craeting Standby DB!!
                   Creating Standby Database
    Primary Server Configuration
    1.In the TNSNAMES.ORA of Primary DB add the entry of the Standby DB
    IRCSSTDB(This is the service name in Primary DB to connect to Standby DB) =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = IRDBACK)(PORT = 1512))
    (CONNECT_DATA =
    (SERVICE_NAME = IRCS(This is the actual INSTANCE name of Running DB on Standby DB)
    2. There is no need to Make any Changes in the Listener.ora of PRIMARY DB
    Keep LISTENER.ORA of Primary as it is
    Copy Listener.ora from Primary DB to Standby DB and make following changes
    Delete All the Extra Existing listeners.
    (These Modifications are for the STANDBY DB)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = IRDBACK)(PORT = 1521))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /ora01/app/oracle/product/9.2.0)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = IRCS)
    (ORACLE_HOME = /ora01/app/oracle/product/9.2.0))
    3.In the INIT.ORA of Primary DB add Following…
    log_archive_dest_2 = "service=STBY optional/Mandatory scope=BOTH"
    log_archive_dest_2 = Enable
    log_archive_min_succeed_dest = 2
    We can skip this & Dynamically add with the SQL*PLUS..
    Standby DB Server Configuration
    1.In the TNSNAMES.ORA of Standby DB add the entry of the Primary DB
    primary1(ISSL)(This is the service name in Standby DB to connect to Primary DB)=
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp) (PORT=1521) (HOST=PRIMARY MACHINE NAME))
    (CONNECT_DATA=(SERVICE_NAME=IRCS(This is the actual INSTANCE name of Running DB on Primary DB)
    2.Copy Listener.ora from Primary DB to Standby DB and make following changes
    Same as Above
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = IRDBACK)(PORT = 1521))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /ora01/app/oracle/product/9.2.0)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = IRCS)
    (ORACLE_HOME = /ora01/app/oracle/product/9.2.0))
    3. Connecting to an Idle instance..
    1.C:\ oradim –NEW –SID ircs –INTPWD pwdfilename –STARTMODE auto –pfile E:\oracle\oradata\pfile\init.ora
    2.     C:\ set oracle_sid=IRCS
    3.     C:\ sqlplus /nolog
    4.     SQL:>connect sys/ircl as SYSDBA
    5.     SQL:>startup nomount pfile= E:\oracle\oradata\pfile\init.ora
    6.     SQL:> alter database mount standby database;
    7. SQL :> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE;
    4. we can also add these parameter in INIT.ORA of Standby DB
    1.standby_archive_dest= /u00/app/oracle/admin/sec/arch (Same path as in
    (log_archive_dest_1) in init.ora
    2. Fal_client=standby1 (Service Name)
    3. Fal_server=primary1 (Service Name)
    Troubleshooting….
    1. Check Init.ora of Primary DB
    2. Try to open Standby Database in normal mode try to connect it with normal user from different Machine.
    3.check *.logs file on Standby Database
    4.Check v$archive_dest on Primary DB
    5. lsnrctl services <listener name>….For Checking Listener, for service

Maybe you are looking for