Can connect via Java's DriverManager.getConnection, but not SQLPlus [message #403043] |
Wed, 13 May 2009 09:55 |
ShiningMasamune
Messages: 6 Registered: May 2009 Location: New Jersey
|
Junior Member |
|
|
Greetings all. I'm having trouble connecting to my database with SQLPlus. The Java program I'm working on connects to it just fine with Java's DriverManager.getConnection, but I don't know how to convert the parameters of that function into what SQLPlus needs. I'm not sure if my project manager will approve of me giving out our database url, so hopefully this will suffice: The "url" param of getConnection is of the form
jdbc:oracle:thin:@xxxx.yyyy.edu:1521:zzzz
So I tried the following in SQLPlus
SQL> connect user@\\xxxx.yyyy.edu:1521\zzzz
Enter password:
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
I don't have access to any files on the computer oracle runs on, all I have is the Java code. I even went as far as to write my own client in Java for basic queries, but that only takes me so far and it's getting pretty annoying. Help?
Client OS is Windows, if it matters.
|
|
|
|
|
|
|
|