Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> an OPS question - tnsnames

an OPS question - tnsnames

From: Andrey Bronfin <andreyb_at_elrontelesoft.com>
Date: Thu, 23 Aug 2001 08:50:08 -0700
Message-ID: <F001.003754EE.20010823090606@fatcity.com>

Dear list !
I've got an OPS database named OPS with 2 instances OPS1 and OPS2 . I want the clients to connect to the instance OPS1 and , if OPS1 becomes unavailable , to connect to OPS2 .
The Oracle version is 8.0.5
I put the following lines in clients' tnsnames.ora file :

OPS.world = (DESCRIPTION_LIST =

        (DESCRIPTION = 

(ADDRESS = (PROTOCOL = tcp) (HOST = DB1) (PORT = 1526))
(CONNECT_DATA = (SID = OPS1))
) (DESCRIPTION =
(ADDRESS = (PROTOCOL = tcp) (HOST = DB2) (PORT = 1526))
(CONNECT_DATA = (SID = OPS2))
)

)

The problem is that when both the instances are up and running , it looks like clients connect to one of the instances randomly . How can i ensure that they will try to connect to OPS1 first , and only if it is unavailable , they'll connect to OPS2.

Thanks a lot in advance .

DBAndrey
 mailto:andreyb_at_elrontelesoft.com

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Andrey Bronfin
  INET: andreyb_at_elrontelesoft.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Thu Aug 23 2001 - 10:50:08 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US