Irregular deadlines in tnsnames.ora

Hi guys,.

In my tnsnames.ora, there is a section like below:
# Production
QDBSP =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = qdb.lipt.com)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = qdb.amers.ime.tes.com)
      (SERVER = DEDICATED)
    )
  )
It works perfectly, but after I changed the local name QDBSP to QDBSP2, when I try to connect via sqlplus, I get this:
ORA-12545: Connect failed because target host or object does not exist
When I change back to QDBSP, it works, change it to QDBSP2, fail again...

If someone has been in the same situation? or clues?

Thank you very much.

Another idea:
Maybe you have a sqlnet.ora in place with the entry

NAMES. DIRECTORY_PATH = (hostname)

and by the way, you have a host named QDBSP or QDBSP2?

You can ping (not tnsping) QDBSP or QDBSP2

Kind regards
Uwe Hesse

http://uhesse.WordPress.com

Tags: Database

Similar Questions

  • After changing the port (1521 to 1525 in listener.ora and tnsnames.ora) OEM: the database is down

    Hello

    I'm installing Oracle Database 11 g 2 (11.2.0.4) on Oracle Linux 7.1.

    In short, what I'm trying to do now is changing the default port of 1521 to 1525.

    So I stopped the listener (lsnrctl stop) and then changed my listener.ora and tnsnames.ora:

    Listener.ora

    listener.ora # Network Configuration file: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora

    # Generated by Oracle configuration tools.

    LISTENER =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))

    )

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP (PORT = 1525))(HOST = localhost))

    )

    )

    ADR_BASE_LISTENER = / u01/app/oracle

    tnsnames.ora

    tnsnames.ora # Network Configuration file: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora

    # Generated by Oracle configuration tools.

    BI =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP (PORT = 1525))(HOST = localhost))

    )

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = bi)

    )

    )

    And then changed the local_listener:

    SQL > ALTER SYSTEM SET LOCAL_LISTENER = "(ADDRESS = (PROTOCOL = TCP)(HOST=localhost) (PORT = 1525))";

    SQL > ALTER the REGISTRY SYSTEM;

    Finally, I started the listener (lsnrctl start) again.

    Then I tried to connect using Oracle SQL Developer to the customer. The port of 1525 works perfectly well.

    The problem is, when I open the OEM (Oracle Enterprise Manager), it says: "the database is down. Please specify the credentials of the host to access the restart and database diagnostic tools," which is like this: http://imgur.com/oKLPW65

    So I logged on the account of the host, and it shows that the database instance, listener and the agent is all down like this: http://imgur.com/Bzr84bz

    It seems that the port used by the OEM is always 1521.

    What should I do? Can someone help me solve the problem?

    Thanks in advance.

    UPDATE:

    After changing the emoms.properties & the targets.xml (thanks to Elisabeth), you will need to reconfigure dbconsole using emca.

    So what I'm doing is decreasing the config:

    $ emca - deconfig dbcontrol db-rest drop

    and then create again:

    $ emca - create config dbcontrol db-rest

    Voila.

    Best regards

    Jerry Antonius

    Hello

    Try to change the port numbers in the following files

    Don't port no 1521 to 1525

    $ORACLE_HOME /_SID/sysman/config/emoms.properties

    oracle.sysman.eml.mntr.emdRepPort = 1525 (before 1521)

    $ORACLE_HOME /_SID/sysman/emd/targets.xml

    (Before 1521)

    (Before 1521)

  • Many ENTRIES in my TNSNAMES.ora

    Hi all

    EBS 11i

    9i db

    I'm curious to know why ebs puts a lot of entries in the tnsnames.ora

    All of these inputs are necessary?

    What happened if I only keep the first entry and delete others?

    Thank you very much

    JC

    tnsnames.ora

    ==========

    DEV =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = tcp)(HOST=oratrng5.abc.local) (PORT = 1521))

    (CONNECT_DATA =

    (SID = DEV)

    )

    )

    DEV_806_BALANCE =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = tcp)(HOST=oratrng5.abc.local) (PORT = 1521))

    (CONNECT_DATA =

    (SID = DEV)

    )

    )

    DEV_FO =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = tcp)(HOST=oratrng5.abc.local) (PORT = 1521))

    (CONNECT_DATA =

    (SID = DEV)

    )

    )

    DEV_LOCAL =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = tcp)(HOST=oratrng5.abc.local) (PORT = 1521))

    )

    DEV_BALANCE =

    (DESCRIPTION =

    (LOAD_BALANCE = YES)

    (FAILOVER = YES)

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = tcp)(HOST=oratrng5.abc.local) (PORT = 1521))

    )

    (CONNECT_DATA =

    (SID = DEV)

    )

    )

    DEV_REMOTE =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = tcp)(HOST=oratrng5.abc.local) (PORT = 1521))

    )

    )

    extproc_connection_data =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROCDEV))

    )

    (CONNECT_DATA =

    (SID = PLSExtProc)

    (PRESENTATION = RO)

    ) )

    IFile=/U02/oradev/devdb/9.2.0/Network/admin/DEV_oratrng5/DEV_oratrng5_ifile.ora

    Yes

    concerning

    Pravin

  • DBD::Oracle and instant client - can't find tnsnames.ora

    Hi all! :-)

    Guys, please, help!

    My OS: CentOS 6.6, i386

    Installed:

    Oracle - instantclient12.1 - basic - 12.1.0.2.0 - 1.i386

    Oracle - instantclient12.1 - devel - 12.1.0.2.0 - 1.i386

    Oracle - instantclient12.1 - sqlplus - 12.1.0.2.0 - 1.i386

    Perl-DBI-1, 609 - 4.el6.i686

    and last perl-DBD-Oracle-1, 74-CPAN.

    Apache 2.2.15, mod_perl 2.0.4

    SELinux disabled.

    ORACLE_HOME = usr/lib/oracle/12.1/client, LD_LIBRARY_PATH = /usr/lib/oracle/12.1/client/lib

    tnsnames.ora exist in /usr/lib/oracle/12.1/client/network/admin

    I wrote a simple perl script to test the connection:

    use strict;
    use DBI;
    
    my $dbh = DBI ->connect("dbi:Oracle:crm", 'login', 'password',{RaiseError => 1} );
    $dbh->disconnect();
    
    

    When I try to run script command line - everything isn't ok, no errors (Yes, I can run queries, etc... )

    But!

    With apache, I get an error:

    DBI connect('crm','login',...) failed: ORA-12154: TNS: could not resolve the connect identifier specified (DBD ERROR: OCIServerAttach) in /opt/otrs/bin/cgi-bin/oratest.pl on line 9

    I am trying to add ORACLE_HOME with PerlSetEnv and script see (I checked through % ENV), but no luck.

    Probably easier to use EZconnect instead of tnsnames.ora:

    $machine = 'my.oracle.database.com';
     $port = 1521;
     $sid = 'my_sid';
     $dbh = DBI->connect("dbi:Oracle://$machine:$port/$sid", $user, $pass) ||
      die "Failed to connect: $DBI::errstr\n";
    
  • confusions tnsnames.ora

    Hi all

    11.2.0.3

    We have the listener.ora on our prod server.

    Listener.ora

    ========

    PROD =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = prodsvr) (PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = PROD)

    )

    )

    LISTENER_SVR =

    (ADDRESS = (PROTOCOL = TCP)(HOST = prodsvr) (PORT = 1521))

    =========

    My question is, what is the usefulness of the LISTENER_SVR line? If I delete it, my tnsnames still works. Is it useless at all?

    Thank you

    pK

    Question is, why would you type this value in the tnsnames.ora? And you must confirm that after stop and restart listener, it's still operational or not. If this is the case, you don't need this entry.

    HTH

    Aman...

  • Links to DB, auditor and 2 tnsnames.ora

    Hello

    I would like to have some information about the following situation:

    I installed on server1 Oracle 11.2 in the patches dbhome1 Group 3 (first place) and in the Group of hotfixes dbhome2 4 (Group of patches).

    Now, the listener is always that of the patches dbhome1 Group 3 (where the tnsnames.ora y/network/admin).

    I instance1 created with dbca patches dbhome2 Group 4. Instance1 has a link to db dblink1 to server2.

    Now the strange thing, dblink1 cannot connect to the host.

    The tnsnames.ora in dbhome1 contains the correct entry (tnsping with variables env dbhome1 works flawlessly). But if I do a tnsping with dbhome2 env variables, then it does not work (in fact the tnsnames.ora to dbhome2 has a WRONG server name in the entry). After I corrected the tnsnames.ora to dbhome2, all was FINE.

    My question, I guess the listener takes the tnsnames.ora to dbhome1, why a dblink to an instance of dbhome2 not use this file, but rather the tnsnames.ora to dbhome2 (the listener runs on dbhome1)? A feedback?

    Thank you

    Martin

    The listener has nothing to do with the tnsnames.ora. The important thing is the value of the TNS_ADMIN environment variable except that the value of ORACLE_HOME for the process in question. If TNS_ADMIN is undefined, instances that are running 2 House will pick up the tnsnames of House 2.

  • location of the file tnsnames.ora and Listener.ora

    Hello

    env: Oracle 11 g 2 - Orable Linux 6.2 64bits

    I set up a database for the client server. I installed IM and the House according to the standards of the Oracle RDBMS. Then I configured the listener to run BOF IM home. If the location of the 'ora, tnsnames' and 'listener.ora' files is $GI_HOME/network/admin.

    Customer's DBA is asking me to conform to the standard for the location of these two files. Here's what he asked for:

    / opt/oracle/owner = oracle, group = s/n (755 permissions)

    / var/opt/oracle owner = oracle, group = s/n (755 permissions)

    • -touch /var/opt/oracle/listener.ora
    • -touch /var/opt/oracle/tnsnames.ora
    • -chown oracle: dba /var/opt/oracle/listener.ora
    • -chown oracle: dba /var/opt/oracle/tnsnames.ora
    • -s /var/opt/oracle/tnsnames.ora /etc/tnsnames.ora ln
    • -s /var/opt/oracle/listener.ora /etc/listener.ora ln

    I'm completely lost here. I don't know if I'm moving these two files in the folder "/ etc", how the LISTENER know about the presence of these files in ' / etc '.

    His reason for this is to support the possibility of having several houses of Oracle's RDBMS. I don't know what he's talking about.

    Please notify.

    Best regards

    user130038 wrote:

    Thanks to you two!

    So basically this DBA do not like to follow standards of Oracle but his own.

    BINGO!

    What is the problem with the help of $ORACLE_HOME/network/admin for these two files if there were several homes of oracle on a server? Sorry I never got to work on a server with multiple oracle homes, so I have no idea.

    The 'standard' with several houses installation is to run the listener from the version the most recent House.  If all of the houses are of the same version (putting aside the question of 'why'), then just pick one that is going to be home for the listener.  If the installation program uses the Grid Infrastructure (ASM and/or Oracle Restart), you must run the listener from the House of IM, not House the database.

    There are some key things to consider here.

    1. the auditor is to receive and process applications for connecting customers.  This is why the listener has no meaning on the Server.  Similarly, its configuration file, listener.ora, only makes sense on the server.

    1a. a single listener, using the default name of the LISTENER and the unique default port of 1521 is quite capable of--indeed, we wanted to - several multiple databases editions of multiple service homes.

    2. the tnsnames.ora file provides a name resolution and address customers.  So it has the sense that on the client computer.

    2. when a database uses a db link to access a different database, the first database acts as a client to the second - as with any other LDAP client.

    Best regards

  • Is it possible to query the TNSNames.ora OEM repository info?

    Hello

    My project requires me to generate the OEM repository TNSNames.ora.

    Is this possible? Does anyone know how interrogate this OEM repository.

    I would need to HOST, PORT, and SID to generate the file in the format requested.

    Thank you

    Mihir

    Mihir,

    You can query the view of MGMT$ TARGET_PROPERTIES for the information.

    Ex:

    Select property_name, name

    Mgmt $ target_properties

    where target_name = "."

    and property_name in ('ComputerName', 'Port', 'SID', 'PreferredConnectString');

    Note: If a value (connection string) is set to "PreferredConnectString" as the connection string will be used.

    For more information on the above view, see:

    Using views of repository management

    Kind regards

    -Loc

  • Net Oracle does not read the tnsnames.ora file.

    I am running 11.2.0.3 on Solaris 10 SPARC x 64. I'm trying to configure oracle net for a new database on hold in order to be able to use rman duplicate to create. LDAP is what we mainly use for all of our connections and, possibly, what I could use very well for my goal of rman duplication. But, I fear that I do nothing seems to allow me to read the tnsnames.ora file.

    My SQLNET. ORA file is as follows:

    NAMES. DIRECTORY_PATH = (LDAP, TNSNAMES)

    NAMES. DEFAULT_DOMAIN = mydomain.com

    My TNSNAMES file. ORA file is as follows on both servers:

    WLDB_HERE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = primary_server) (PORT = 1521))
    )
    (CONNECT_DATA = (SERVICE_NAME = wldb_here.mydomain.com))
    )

    WLDB_THERE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = standby_server) (PORT = 1521))
    )
    (CONNECT_DATA = (SERVICE_NAME = wldb_there.mydomain.com))
    )

    I have a static entry in the remote listener.ora file so I can connect to create the instance:

    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = wldb_there.mydomain.com)
    (ORACLE_HOME = / u01/app/oracle/product/OraHome112)
    (SID_NAME = WJZI)
    )
    )

    LISTENER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = standby_server) (PORT = 1521))
    )

    Permissions on my .ora files in $ORACLE_HOME/network/admin are

    -rw - r - r - 1 oracle dba

    The user that I am connected to who is oracle.

    I have set up several times before, but for some reason that I can't get this to work. I get

    AMT-03505: failed to resolve host

    Of

    tnsping wldb_there

    or

    tnsping wldb_here

    I have not tried to take the LDAP Protocol on my sqlnet.ora because I need, but I really want to know if anyone has had an experience like this before.

    Thank you-

    gregb wrote:

    I am running 11.2.0.3 on Solaris 10 SPARC x 64. I'm trying to configure oracle net for a new database on hold in order to be able to use rman duplicate to create. LDAP is what we mainly use for all of our connections and, possibly, what I could use very well for my goal of rman duplication. But, I fear that I do nothing seems to allow me to read the tnsnames.ora file.

    My SQLNET. ORA file is as follows:

    NAMES. DIRECTORY_PATH = (LDAP, TNSNAMES)

    NAMES. DEFAULT_DOMAIN = mydomain.com

    My TNSNAMES file. ORA file is as follows on both servers:

    WLDB_HERE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = primary_server) (PORT = 1521))
    )
    (CONNECT_DATA = (SERVICE_NAME = wldb_here.mydomain.com))


    )

    Because you have NAMES. DEFAULT_DOMAIN = mydomain.com in your sqlnet.ora, when you try to connect to "WLDB_HERE", before tnsnames.ora is read, sqlnet will transform your application in "WLDB_HERE.mydomain.com".  And that's what he's going to get.

    You do not have an entry in your tnsnames.ora to 'WLDB_HERE.mydomain.com '.

    WLDB_THERE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = standby_server) (PORT = 1521))
    )
    (CONNECT_DATA = (SERVICE_NAME = wldb_there.mydomain.com))
    )

    I have a static entry in the remote listener.ora file so I can connect to create the instance:

    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = wldb_there.mydomain.com)
    (ORACLE_HOME = / u01/app/oracle/product/OraHome112)
    (SID_NAME = WJZI)
    )
    )

    LISTENER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = standby_server) (PORT = 1521))
    )

    Permissions on my .ora files in $ORACLE_HOME/network/admin are

    -rw - r - r - 1 oracle dba

    The user that I am connected to who is oracle.

    I have set up several times before, but for some reason that I can't get this to work. I get

    AMT-03505: failed to resolve host

    Of

    tnsping wldb_there

    or

    tnsping wldb_here

    I have not tried to take the LDAP Protocol on my sqlnet.ora because I need, but I really want to know if anyone has had an experience like this before.

    Thank you-

  • Change the location TNSNAMES.ora (discoverer 11g)


    Hello

    I have a requirement where I need to change the location of tnsname.ora.

    I installed Oracle Fusion Middleware install (11.1.1.7) and then set the field to the Finder only.

    Tnsnames.ora location is $DISCO_INST_HOME/config/tnsnames.ora

    Another use of symbolic link, can I change the configuration to change the location of the TNSNAMES.ora file.

    Concerning

    Sumit SALAUN

    Hi Sumit

    I have additional information for you, with the permission of a contact I within the Oracle.

    Yes, you can use the TNS_ADMIN environment variable.

    Indeed, in the [middleware_home]\[oracle_instance]\config\OPMN\opmn\opmn.xml that it points to the location that you mentioned.

    You can update the location of the file

    Run: [middleware_home]-[oracle_instance\bin\opmnctl reload (to pick up the new changes in the opmn.xml file

    the next session of discoverer (dis51ws) began to read the changes.

    If this fails, stopall opmnctl, then opmnctl startall

    I also checked on other files that I mentioned earlier. We believe that they are not necessary for the discoverer, or why they would have this environment variable defined here as the repositories of metadata of Fusion Middleware use JDBC. They must be to another generic use of Weblogic or custom java applications.

    The binary discoverer/server only read /sessions opmn.xml - so simply by changing opmn.xml should be enough

    Best wishes

    Michael

  • connect sqlplus without tnsnames.ora

    Hello

    I have nothing in tnsnames.ora locally.
    I don't have a local instance of the DB, I always have to connect to an instance on a server. How can I connect using sqlplus?
    sqlplus [email protected]:1521/MYSID
    The result is ORA-12514!

    connect without tnsnames.ora. For example:

    sqlplus scott/tiger @(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(Host=server_a) (Port = 1521)) (CONNECT_DATA = (SID = db_a)))

  • OID server to replace TNSNAMES.ora

    Can someone please provide step by step documentation how to use Server OID o replace tnsnames.ora?

    In addition, please provide installation step by step 11g and 10g and set up guide? I'd really appreciate who.

    Configuration and installation of OID/LDAP involves multiple groups of Oracle Support
    and requires a Request (SR) of separate Service for these areas of support. To respond to your
    General Advisory issues, I recommend your review the following notes of My Oracle Support.
    These articles provide general information as an alternative option for the use of adapters OID/LDAP
    and a central depot to replace the TNSNAMES file. Once you launch the installation of the OID/LDAP and
    and the Setup process, you can address specific questions with the respective support group.

    References:
    Doc-ID 217270.1 - Directory naming Migration (Oracle OpenWorld presentation)
    Doc-ID 314389.1 - how to start OracleAS 10 g Infrastructure
    Doc-ID 201234.1 - quick check for operation OID/LDAP
    Doc-ID 120717.1 - LDAP Naming: adding names of Service TNS to OID
    Doc-ID 120723.1 - Net * 8 LDAP Naming: Add names of Service from Oracle to OID names TNS

    From Fusion MIddleware (FMW) 11 g is not infrastructure more. The database is
    created in a House, after you use RCU (10g OPNRRM) and install FMW independent 11.1.1.2
    Identity management.

    References:
    Doc-ID 1073206.1 - planning upgrade of Fusion Middleware 11 g - FAQ
    Doc ID 1346624.2 - Information Centre: directory Internet of Oracle 11 g and later versions
    Doc ID 340.1 - install and configure Advisor: Oracle Fusion Middleware (FMW) Identity Access Management (OAM, OIM) 11 g
    Doc ID 262.1 - Upgrade Advisor: Oracle Fusion Middleware (FMW) Portal from 10 g to 11 GR 1 material

  • Ifile in tnsnames.ora/listener.ora

    Hello

    I find IFILE entered my listener.ora of applications and tnsnames.ora oracle database.

    What is the use of IFILE? I hear that the entries in IFILE are not overnwritten using autoconfig. Is this true?

    We create the tnsentries of other databses in ifile.


    Someone could give advice.


    tnsnames.ora
    ============

    IFile=/Gold/App/DB/11.2.0/Network/admin/gold_srvr315/gold_srvr315_ifile.ora


    Listener.ora
    =============
    IFile=/Gold/App/DB/11.2.0/Network/admin/gold_srvr315/listener_ifile.ora


    Thank you

    I find IFILE entered my listener.ora of applications and tnsnames.ora oracle database.

    What is the use of IFILE? I hear that the entries in IFILE are not overnwritten using autoconfig. Is this true?

    Correct, and it is the use of the IFILE (i.e. create entries that must be preserved and not affected or overwritten by the automatic configuration service.

    Thank you
    Hussein

  • EM does not create entry tnsnames.ora with service name orcl11gr2

    Hi all

    I am trying to create a service network with EM Database Control, Net Services Administration link name. On the service name field, under the "Edit Net Service Name" screen, I type in orcl11gr2, and it throws the following error:

    Validation error
    Review and correct the following errors, and then try again:
    Service name - specify a valid service name.

    I wonder what is the additional validation that checks EM. I guess it's to check the number of characters to 8 characters or less.

    In addition, because of this additional validation that is in MS, all entry tnsnames.ora with service name = orcl11gr2, I won't be able to use 'EM to change, as I have the same error.

    But why Oracle implements this additional validation when the same validation is not implemented on other Oracle tools? For example:
    1 dbca allows me to create a database with instance_name greater than 8 characters, and the results of the initialization parameters will be as follows:
    db_name = orcl11gr - truncated to 8 characters
    instance_name = orcl11gr2
    db_unique_name = orcl11gr2
    noms_service = orcl11gr2

    2 oracle Net Manager supports the name of orcl11gr2. The name of the created Service Net, I have no problem connecting to the database.
    3. name of the service orcl11gr2 of listener support

    I am using Oracle 11 g R2 (11.2.0.1.0) for Microsoft Windows (x 64), running on Windows 7.

    Its a known issue fixed 12gc Ms.

    concerning
    Bennett

  • Creating a service; What must be included in tnsnames.ora and JDBC url?

    DB version: 11.2.0.2
    Operating system platform: Solaris 10

    We have a 2 RAC node.
    DB name   = mbsprd
    Instance1  = mbsprd1
    Instance2  = mbsprd2
    I want 1 Instance (mbsprd1) to use for our OLTP and Instance 2 (mbsprd2) application to use for another nature DSS request.

    According to the syntax
    srvctl add service -d <dbname> -s <ServiceName> -r <Preferred Instance> -a <Available Instance>
    I create 2 services

    -Creation of a service called OLTP
    srvctl add service -d mbsprd -s OLTP  -r mbsprd1 -a mbsprd2
    -Creation of a service called DSS
    srvctl add service -d mbsprd -s DSS  -r mbsprd2 -a mbsprd1
    -Start services
    srvctl start service -d mbsprd -s OLTP
    
    srvctl start service -d mbsprd -s DSS
    I guess the above steps are sufficient to set up a service on the side server.

    I would like to know what needs to be done on the client side.

    Currently the file tnsnames.ora and JDBC url used by our clients are listed below. What needs to be added to the file URL and jdbc tnsnames.ora to start to use the services configured above?
    -- SCAN based TNS entry 
    mbsprd =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (COMMUNITY = tcp.world)
            (PROTOCOL = TCP)(Host = p148149-scan.tpam.net) (Port = 36964))
        )
        (CONNECT_DATA =
          (SERVER       = DEDICATED)
          (SERVICE_NAME = mbsprd)
          (FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC))
        )
      )
    
    -- TNS entry based on local listener 
    -- Instance 1
    mbsprd1 =
    (DESCRIPTION =
       (ADDRESS_LIST =
       (ADDRESS =(PROTOCOL = TCP)(HOST = hsolarp148-vip)(PORT = 36973))
       )
       (CONNECT_DATA =
             (SERVICE_NAME = mbsprd)
             (INSTANCE_NAME = mbsprd1)
           )
     )
    
    -- Instance 2
    -- TNS entry based on local listener 
    mbsprd2 =
    (DESCRIPTION =
       (ADDRESS_LIST =
       (ADDRESS =(PROTOCOL = TCP)(HOST = hsolarp149-vip)(PORT = 36973))
       )
       (CONNECT_DATA =
             (SERVICE_NAME = mbsprd)
             (INSTANCE_NAME = mbsprd2)
           )
     )
    Entry for RAC JDBC
    jdbc:oracle:thin:@p148149-scan.tpam.net:36964:mbsprd
    -Another version used by some clients, because the above had "some problems".
    jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=TCP)(HOST=p148149-scan.tpam.net) (PORT=36964))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=mbsprd)(FAILOVER_MODE =(TYPE = SELECT)(METHOD = BASIC)(RETRIES = 180)(DELAY = 10))))
    OLTP =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = p148149-scan.tpam.net)(PORT = your_port_number))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = OLTP)
        )
      )
    DSS =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = p148149-scan.tpam.net)(PORT = your_port_number))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = DSS)
        )
      )
    

    Entry for RAC JDBC

    JDBC:Oracle:thin:@p148149-scan.tpam.NET:36964:SERVICE_NAME

    JDBC:Oracle:thin:@new_tns_entry_description (if you do not want to connect to the database with particular service)

    Try this and let us know about problems,

Maybe you are looking for