Connect Remotely Database [message #465476] |
Wed, 14 July 2010 05:24 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
usmanelahi
Messages: 54 Registered: July 2007 Location: Karachi
|
Member |
|
|
Hello Gurus,
i have a inventory system and trying to connect remote database one by one throught two static ips. If first ip is not ping then go to 2nd ip only when open the login.fmx page
following examples are my tnsnames.ora
IP1.WORLD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 117.65.48.12)(PORT = 1521))
(CONNECT_DATA = (SID = ORCL))
)
IP2.WORLD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 117.65.48.13)(PORT = 1521))
(CONNECT_DATA = (SID = ORCL))
)
i am not understand what i write the code on-logon trigger
please help me if you can do it
|
|
|
|
Re: Connect Remotely Database [message #465507 is a reply to message #465476] |
Wed, 14 July 2010 07:58 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
John Watson
Messages: 8964 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
Could you do it more simply by using Oracle Net's fault tolerance? I would normally include load balancing too. No need for anything in your application, just one tnsnames entry:
IP.WORLD =
(DESCRIPTION =
(address_list=
(failover=on)
(load_balance=on)
(ADDRESS = (PROTOCOL = TCP)(HOST = 117.65.48.12)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 117.65.48.13)(PORT = 1521))
)
(CONNECT_DATA = (SID = ORCL))
)
|
|
|
|
|
|
|
|
|