how to get connection from dedicated server? [message #330538] |
Mon, 30 June 2008 07:02 |
kang
Messages: 89 Registered: November 2007
|
Member |
|
|
how to get connection from dedicated server?
the tnssetting looks below.
MYDB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = 10.23.10.62) (PORT = 1521))
(ADDRESS = (PROTOCOL = TCP) (HOST = 10.23.10.61) (PORT = 1521))
(LOAD_BALANCE = yes)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = MYSID)
(FAILOVER_MODE =
(TYPE = SELECT)
(METHOD = BASIC)
(RETRIES = 180)
(DELAY = 2)
)
)
)
in my java file
String url = "jdbc:oracle:thin:@10.23.10.62:1521:MYSID";
String user = "user";
String password = "passwd";
con = DriverManager.getConnection(url, user, password);
give the SQLException below.
java.sql.SQLException: IO Exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=169870080)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
|
|
|
|
|
|
|