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

Similar Messages

  • Resolve database service name using in SQL

    Hi all!
    My question is:
    Is it possible to resolve database service name (e.g. TNS) from SQL only (without logging into the server with oracle user and execute tnsping)?
    I'll give you a bit background about my question:
    In DataGuard, if you query v$archive_dest, you can see the SERVICE NAME of the standby database in the STANDBY records. I would like to know what is the real server name and database instance of the standby database.
    I don't want to login to the primary server with oracle user (let's say that I can not - it's a program really, not me...).
    Let's also say that the only user I have is a read-only user to the database (with grants to all tables and views, but cannot execute privileged DBMS sys packages).
    Running "SQL> host tnsping NAME" doesn't do the job, since this is only for SQL plus.
    Doe's anyone have any idea? maybe v$ view that contains the TNS resolution (tried to find, no success)? maybe a tnsping alike command/function?
    Thanks a lot!
    Maayan

    MaayanB wrote:
    I'll explain the reason.
    I'm working on an agentless product that connects to databases, storage and hosts, and models them into a small CMDB.
    Since my product needs to model the "STANDBY" relationship between primary and standby DataGuard databases - I need to be able to resolve the value of the "DESTINATION" field from "V$ARCHIVE_DEST", where TARGET IN ('STANDBY','REMOTE').
    I could login to the server and execute "tnsping DBNAME", but the problem is that when a server has more than one ORACLE_HOME (hence, more than one tnsname.ora file), I need to make sure that the user I'm using to login to the server has all environment variables conigured properly for each database installed on the server (BTW, the unix user is also a "naked" user with no privileges except the sudo's defined for it).
    So I assume that the best way to be sure that the environment variables are correctly defined is when I login to the database.
    This is the reason I need to resolve service names using SQL.
    BTW, the database process somehow uses the Oracle Net Services to resolve the same value when it sends the redo log files to the standby server - and I'd like to resolve it the same way (or other, if not possible). If it uses the sys privileges, and it executes the package that lets you execute something on the server ("tnsping", in this case), and this is the only way it can be done - I need to start thinking on a different way to resolve the problem.What you are missing is that when "the database process somehow uses the Oracle Net Services to resolve the same value when it sends the redo . . ." is that Net services is NOT just resolving the name for the database. It is also handling the actual transport of the files. That name resolution is not passed back to the database.
    >
    Anyway, I'm not a hacker or something alike, It's just that my product doesn't know how to pick up the phone and dial :)

  • How to use the default database service name on creating procedure for data

    how to use the default database service name on creating procedure for datagaurd client failover ??? all oracle doc says create a new service as below and enable at DB startup. but our client is using/wanted database default service to connect from application on the datagaurd environment (rac to non rac setup).please help.
    Db name is = prod.
    exec DBMS_SERVICE.CREATE_SERVICE (service_name => 'prod',network_name =>'prod',failover_method => 'BASIC',failover_type => 'SELECT',failover_retries => 180,failover_delay => 1);
    says already the service available.
    CREATE OR REPLACE TRIGGER manage_dgservice after startup on database DECLARE role
    VARCHAR(30);BEGIN SELECT DATABASE_ROLE INTO role FROM V$DATABASE;
    IF role = 'NO' THEN DBMS_SERVICE.START_SERVICE('prod');
    END IF;
    END;
    says trigger created, but during a swithover still the service is listeneing on listener.
    tns entry.
    prod =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (LOAD_BALANCE = YES)
    (ADDRESS = (PROTOCOL = TCP)(HOST = prod1)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = prod2)(PORT = 1521)) ---> primary db entry
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = proddr)(PORT = 1521)) --> DR DB entry
    (CONNECT_DATA =
    (SERVICE_NAME = prod)
    thanks in advance.
    Edited by: 854393 on Dec 29, 2012 11:52 AM

    Hello;
    So in the example below replace "ernie" with the alias you want the client to use.
    I can show you how I do it :
    First an entry need to be added to the client tnsnames.ora that uses a SERVICE_NAME instead of a SID.
    ernie =
    (DESCRIPTION =
        (ADDRESS_LIST =
           (ADDRESS = (PROTOCOL = TCP)(HOST = Primary.host)(PORT = 1521))
           (ADDRESS = (PROTOCOL = TCP)(HOST = Standby.host)(PORT = 1521))
           (CONNECT_DATA =
           (SERVICE_NAME = ernie)
    )Next the service 'ernie' needs to be created manually on the primary database.
    BEGIN
       DBMS_SERVICE.CREATE_SERVICE('ernie','ernie');
    END;
    /After creating the service needs to be manually started.
    BEGIN
       DBMS_SERVICE.START_SERVICE('ernie');
    END;
    /Several of the default parameters can now be set for 'ernie'.
    BEGIN
       DBMS_SERVICE.MODIFY_SERVICE
       ('ernie',
       FAILOVER_METHOD => 'BASIC',
       FAILOVER_TYPE => 'SELECT',
       FAILOVER_RETRIES => 200,
       FAILOVER_DELAY => 1);
    END;
    /Finally a database STARTUP trigger should be created to ensures that this service is only offered if the database is primary.
    CREATE TRIGGER CHECK_ERNIE_START AFTER STARTUP ON DATABASE
    DECLARE
    V_ROLE VARCHAR(30);
    BEGIN
    SELECT DATABASE_ROLE INTO V_ROLE FROM V$DATABASE;
    IF V_ROLE = 'PRIMARY' THEN
    DBMS_SERVICE.START_SERVICE('ernie');
    ELSE
    DBMS_SERVICE.STOP_SERVICE('ernie');
    END IF;
    END;
    /lsnrctl status - should show the new service.
    When I do this the Database will still register with the listener. I don't give that to the clients. That one will still be available but nobody knows about it. Meanwhile "ernie" moves with the database role.
    So in my example the default just hangs out in the background.
    Best Regards
    mseberg
    Edited by: mseberg on Dec 29, 2012 3:51 PM

  • Database Service Name or Global Database Name with Oracle 10G, when Oracle

    I have an old installation of Oracle 9i (SID=ORCL) and now have installed Oracle 10G (SID=ORC2). I can get connection to Oracle 10G if i define it as an Oracle 8 compatible identification (ie I access to a SID, and don´t provide a Service Name.
    Now I want to install Oracle HTML DB, and succeeded to install the SQL-script that came with the download, but when I install Apache and HTML DB from the Oracle Companion CD I am asked to give the Database Service Name (in the Help it is explained as the Global Database Name).
    When i give the Net Service Name I get error messages (incomprehensible).
    When I look in Net Manager, the Net Service Name does not have a Service Name, but only points to a SID (ie ORC2).
    Where can I find the Database Service Name (or Global Database Name), OR define it if it is not defined??
    Thanks for your help,

    create a net service for oracle10g and provide the name of this service during HTML DB installation it is required for installation.

  • DATABASE SERVICE NAME

    HOW TO GET DATABASE SERVICE NAME?
    I NEED IT INORDER TO INSTALL COMPANION PRODUCTS?
    ANY HELP
    THANKS ANYWAY

    This is what i recieve when i click on help regarding database service name?
    "Database Service Name Specify the database service name for the database where you want to install the Oracle HTML DB database objects. The database service name is usually the same as the global database name for the database, for example, sales.us.oracle.com."
    but I don't have domain name. I installed Oracle on a standalone machine for testing purposes.Do I need to be on a network using HTML DB??
    MY DB NAME IS GPI, CONNECTION STRING IS
    (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=GPI)))
    BUT IT IS NOT WORKING?
    AND WHAT IS WINDOWS DATABASE SERVICE NAME?

  • How to add a new database service name to 9iDS

    Hello,
    I installed 9iDS and 9iDB on my laptop which worked fine for few months. I had trouble with 9iDB I/O system so I reinstalled 9iDB with a new SID name. I updated 9iDS by replacing old SID name with new SID name in tnsnames.ora file but it did not work.
    Please someone suggest where should I update in 9iDS to access my newly installed database service with new SID so that forms appication builder can connect properly.
    Currently it is saying :
    ORA-12514: tns listener could not resolve service name given in connect descriptor.
    Thanks,
    [email protected]

    Shyam,
    could it be that you are still starting the old database tnslistener. Please make sure that you start the listener for your new Db instance.
    Frank

  • Database service name changed after streams configuration

    Hi All,
    I test setting streams replication in my database 10g from a stand-alone database to a RAC database.
    Replication worked fine but i sow strange thing, my service names in the target database (RAC environment) has changed like the following output:
    SQL> sho parameter service
    NAME TYPE VALUE
    service_names string SYS$STRMADMIN.STREAMS_QUEUE.AB
    DATAWH
    So the value of my service names has changed, i don't know why. I tried to remove streams configuration and restart the database but it's not changed and it cause connexion problem from client.
    Does anybody can help me to solve this problem, why it's changing and how to take it back to the old service names.
    Thanks for your help
    raitsarevo

    Nona has any idea about my problem
    Please

  • Listener Show database Service Name In Wrong LSITENER Service

    dear Gurus,
    I need your help to understand this Listener stuff.
    Resume :
    Server : Linux RH5
    Oracle : 10G2
    In this server I've 2 database Instances lets say DMWEB adn CFMP
    Because several times we need to restart the Listener for CFMP i've choose to have separate Listener for each Database.
    So, i've created 2 Listener :
    LISTENER_CFMP =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = srvldbp13)(PORT = 1522)
    (SEND_BUF_SIZE=4194304)
    (RECV_BUF_SIZE=4194304)
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = srvldbp13 )(PORT = 1521)
    (SEND_BUF_SIZE=4194304)
    (RECV_BUF_SIZE=4194304)
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    SID_LIST_LISTENER_CFMP =
    (SID_LIST =
    (SID_DESC =
    (ORACLE_HOME = /u01/app/oracle/product/10.2)
    (SID_NAME = CFMP)
    LISTENER_DMWEB =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = srvldbp13)(PORT = 1523)
    (SEND_BUF_SIZE=4194304)
    (RECV_BUF_SIZE=4194304)
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    SID_LIST_LISTENER_DMWEB =
    (SID_LIST =
    (SID_DESC =
    (SDU = 32767)
    (ORACLE_HOME = /u01/app/oracle/product/10.2)
    (SID_NAME = DMWEB)
    When I get the Status for each listener I get :
    LSNRCTL> set current_listener LISTENER_CFMP
    Current Listener is LISTENER_CFMP
    LSNRCTL>
    LSNRCTL> status
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=srvldbp13)(PORT=1522)(SEND_BUF_SIZE=4194304)(RECV_BUF_SIZE=4194304)))
    STATUS of the LISTENER
    Alias LISTENER_CFMP
    Version TNSLSNR for Linux: Version 10.2.0.4.0 - Production
    Start Date 18-DEC-2009 10:54:44
    Uptime 19 days 23 hr. 9 min. 13 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP ON
    Listener Parameter File /u01/app/oracle/product/10.2/network/admin/listener.ora
    Listener Log File /u01/app/oracle/product/10.2/network/log/listener_cfmp.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=srvldbp13 )(PORT=1522)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=srvldbp13 )(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
    Services Summary...
    Service "CFMP.world" has 1 instance(s).
    Instance "CFMP", status READY, has 1 handler(s) for this service...
    Service "CFMP_SITE2.world" has 1 instance(s).
    Instance "CFMP", status READY, has 1 handler(s) for this service...
    Service "CFMP_SITE2_DGB.world" has 1 instance(s).
    Instance "CFMP", status READY, has 1 handler(s) for this service...
    Service "CFMP_SITE2_DGMGRL.world" has 1 instance(s).
    Instance "CFMP", status UNKNOWN, has 1 handler(s) for this service...
    Service "CFMP_SITE2_XPT.world" has 1 instance(s).
    Instance "CFMP", status READY, has 1 handler(s) for this service...
    Service "DMWEB_SITE2" has 1 instance(s).
    Instance "DMWEB", status READY, has 1 handler(s) for this service...
    Service "DMWEB_SITE2_DGB" has 1 instance(s).
    Instance "DMWEB", status READY, has 1 handler(s) for this service...
    Service "DMWEB_SITE2_XPT" has 1 instance(s).
    Instance "DMWEB", status READY, has 1 handler(s) for this service...
    The command completed successfully
    LSNRCTL>
    LSNRCTL> set current_listener LISTENER_DMWEB
    LSNRCTL> status
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=srvldbp13)(PORT=1523)(SEND_BUF_SIZE=4194304)(RECV_BUF_SIZE=4194304)))
    STATUS of the LISTENER
    Alias LISTENER_DMWEB
    Version TNSLSNR for Linux: Version 10.2.0.4.0 - Production
    Start Date 18-DEC-2009 11:17:33
    Uptime 19 days 22 hr. 45 min. 50 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP ON
    Listener Parameter File /u01/app/oracle/product/10.2/network/admin/listener.ora
    Listener Log File /u01/app/oracle/product/10.2/network/log/listener_dmweb.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=srvldbp13)(PORT=1523)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    Services Summary...
    Service "DMWEB" has 1 instance(s).
    Instance "DMWEB", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    LSNRCTL>
    LSNRCTL>
    My Question
    Why the Services belonging to DMWEB database are registred on Listener CFMP????
    This Services are in LISTENER_CFMP when they should be in LISTENER_DMWEB right?
    Service "DMWEB_SITE2" has 1 instance(s).
    Instance "DMWEB", status READY, has 1 handler(s) for this service...
    Service "DMWEB_SITE2_DGB" has 1 instance(s).
    Instance "DMWEB", status READY, has 1 handler(s) for this service...
    Service "DMWEB_SITE2_XPT" has 1 instance(s).
    Instance "DMWEB", status READY, has 1 handler(s) for this service...
    What have I done wrong in listener configuration ???
    Thxs if you can help
    Rgds
    Carlos

    Why the Services belonging to DMWEB database are registred on Listener CFMP????Because Oracle is listening by default on port 1521 (and it is your CFMP listener) and the LOCAL_LISTENER parameter of the database DMWEB has been left empty ?
    That said, I'm not sure to understand why you need a listener for each db.
    Nicolas.

  • 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

  • Standby database erros

    hai
    i was trying to create a standby database in the same machine but iam getting certain errors .so help me to solve thsese errors
    my doubts are
    1)since iam creating the standby database on same machine is it necessary to create new tnsnames.ora and listener.ora for the new standby database or i can use the same tnsnames.ora and listener.ora existing for primary source database
    2)i edited the listener.ora provided in a article and i stopped the listener and restarted the listener listener.ora(according to the article) but iam unable to stop the listener.ora .it throws the errror message as listener name not found
    and err message is unable to stop the listener successfully.
    3)i tried to solve the error but unable to solve, when i skipped the 2nd step and i tried to create the standby controlfile as per the document given .i gave the command as
    alter database create standby controlfile as '/usr/cont_sb01.ctl'
    after this i connect to my standby and gave the command putting the standby in nomount stage
    'alter database mount standby controlfile'
    but i get the error as unable to find the standby sid stby in controfile.
    since the standby controfile is a binary file i cannot edit it .so now how can i enter the standby database sid name in the standby controlfile .
    plz help me to solve these errors.
    Thanks and Regards
    Ila

    Hi..
    Can you provide the database version and the OS info???
    )since iam creating the standby database on same machine is it necessary to create new tnsnames.ora and listener.ora for the new standby database or i can use the same tnsnames.ora and listener.ora existing for primary source databaseYou can use the same tnsnames.ora and the listener.ora file
    i edited the listener.ora provided in a article and i stopped the listener and restarted the listener listener.ora(according to the article) but iam unable to stop the listener.oraWhich article??? You said you stopped the listener and then restarted and again you write you are unable to stop...
    I would highly recommend you to go through
    [http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ps.htm#i63561]
    [http://advait.wordpress.com/2007/06/12/setting-up-oracle-dataguard-for-10g/]
    Anand

  • 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

  • Can the instance name of prod. database and standby database may be same

    Hi all,
    Actually I knew that while configuring Physical Standby
    1> Database name should be same
    2> Instance name should be different
    But,today I saw a DR system where the database name and instance names are the same. So I came to know that it can be done.
    I just wanted to know that what are the trade-offs of putting DB name and instance name same?

    There isn't a tradeoff. By default, the instance_name is the same as the db_name unless if specified differently in teh pfile. What matters is the service name connecting to the instance.

  • How to connect the database (JDBC) using service name rather than SID

    How should we make the connection to the database using service name. Initially, we are using the SID to make the database connection, with following setting in the data-source.xml in OC4J using ABCDB as the SID.
    <data-sources>
         <data-source
              class="com.evermind.sql.DriverManagerDataSource"
              name="jdbc/ABCDB"
              location="jdbc/ABCDB"
              pooled-location="jdbc/OracleDSPooled"
              xa-location="jdbc/xa/OracleDSXA"
              connection-driver="oracle.jdbc.driver.OracleDriver"
              username="ABC"
              password="ABC"
              url="jdbc:oracle:thin:@191.1.4.126:1521:ABCDB"
         />
    </data-sources>
    It work, but now we need to make the connection using this service name ABCSERVICE, but it doesn't work in the OC4J (JDBC). May I know how should we handle this connection?
    Thanks and Regards,
    Pang

    Finally, I got the solution to make the database connection using service name, with putting the tnsname setting in URL portion.
    url="jdbc:oracle:thin:@(description=(address=(host=191.1.4.126)(protocol=tcp)(port=1521))(connect_data=(SERVICE_NAME = ABCSERVICE)))"
    And now, it is working fine.
    Regards,
    Pang

  • Database Adapter Service Name

    Hi,
    I am working on updating an existing flow to include a Database Adapter service. This flow previously had a service called DB_CONSTANTES, but this removed from the flow some time ago. (If i search the flow project files, I still see references to it, but not within the .bpel file).
    I would like to create a service with the same name. In JDEV I do not see any references to DB_CONSTANTES, but when I attempt to create the service I am told that a service of that name already exists. I am pointed to myflow/bpel/DB_CONSTANTES.wsdl
    Is it safe/correct to delete this wsdl file and then just proceed with the service creation again. I realise I could just create a new service name, but I would like to be consistent in naming the service.
    Many Thanks - Anit

    It is safe to delete wsdl. I suppose as the wsdl already exists it is giving the error while you try to create the service with the similar name. On safe side, you can take a backup of the process and do the changes.

  • Get port number,host name,service name from database

    Is there any way to know the host name,port number, sid and the service name of a particular instance from the database.

    > Is there any way to know the host name,port number, sid and the service name
    of a particular instance from the database.
    Why?
    The host name in the HOST_NAME column of V$INSTANCE for example, may not be the hostname/IP address that the local Listener listens for connections on. Or the Listener can listen on that host name/IP and several other local IP addresses.
    The port number used for listening for connections by clients, are determined by the Listener's configuration.
    Thus if you can explain the requirement for this info, maybe the forum can provide better and more specific answers.

Maybe you are looking for

  • Problem with Text

    Hi. I'm helping my friend edit some text in a flash file. The only problem is that we can't locate the text anywhere on the stage, timeline, or anything. When we publish the flash file, the text is showing. Is it hidden within the file or something w

  • Securing documents

    In excel's word i was able to secure a document with a password for security reasons. In pages under "arrange"there is a lock but that is not what i want as it can be easily unlocked. I am looking for the password section. I was shown that under Insp

  • Planatronics Wireless Headset..

    I recently purchased the Plantronics .Audio 995 wireless usb headset. It claims it works on both Windows and Macintosh. I have used Plantronics headsets in the past and they have worked fine with iChat. This headset will not give me any audio output

  • The requested resource (/Admin) is not available.

    Hello , I am developing one small project. I am using struts,EJB and Hibernate to develop this project. My project name is Admin. It has two sub-modules:- AdminWeb and AdminEJB. In the sub-module AdminWeb, i am writing all the struts related stuff li

  • ATG Search vs Endeca Search

    Why ATG is integrating with Endeca Search in ATG10.1.1? Is there any issues with ATG Search? Why cant we use ATG Search itself for indexing and Search in Commerce applications. Any specific advantages of Endeca Search over ATG Search. Please share yo