> Thanks. I modified it like your example:
Thanks, it works if I use sqlplus scott/tiger@cambridg it works but if you
check
http://forums.oracle.com/forums/thread.jspa?forumID=220&messageID=960520&thr
eadID=303267
you will see that it seems to be a problem with oracle 10g.
However i am connecting through jdbc:
conn = DriverManager.getConnection ("jdbc:oracle:thin:@" + server + ":" +
port + ":" + base, user, pwd);
that is why i want to get the sqlplus connection under DOS working.
I need the localhost + port as well.
Unless there is another getConnection method that only takes user, pwd and
base ?
> > Thanks. I modified it like your example:
> >
[quoted text clipped - 15 lines]
> Do you still get the same error if you use scott/tiger@cambridg as the
> connect descriptor?
IANAL_VISTA - 30 Jul 2005 16:22 GMT
What part of "Plz do NOT top post." do you NOT understand?
Why do you think syntax for one utility is valid with a different utility?
You've proved the listener is functioning.
Now go solve your own java problem.
HansF - 30 Jul 2005 17:25 GMT
> Thanks, it works if I use sqlplus scott/tiger@cambridg it works but if you
> check
[quoted text clipped - 13 lines]
> Unless there is another getConnection method that only takes user, pwd and
> base ?
1) Please, PLEASE do not top post.
2) Realize that the JDBC Thin driver does NOT use the TNSNAMES entry at
all, and therefore will not respond the same way as sqlplus.
sqlplus MUST use the {sqlnet, net8, Oracle networking} substrate and
therefore refers to TNSNAMES.
The JDBC thin driver is self-contained, and uses the server/port
combination to literally download the appropriate portion of the Oracle
Networking (TTC) at run time.
You might want to spend some additional time with the "Oracle® Database
JDBC Developer's Guide and Reference" manual to get this a little clearer,
from which I quote:
------------
The JDBC Thin driver allows a direct connection to the database by
providing an implementation of SQL*Net and TTC (the wire protocol used by
OCI) on top of Java sockets. Both of these protocols are lightweight
implementation versions of their counterparts on the server. The Thin
driver runs over TCP/IP only.
------------
Your attempt to use JDBC Thin protocol access with SQLPlus is
totally incorrect.

Signature
Hans Forbrich
Canada-wide Oracle training and consulting
mailto: Fuzzy.GreyBeard_at_gmail.com
*** I no longer assist with top-posted newsgroup queries ***
Sybrand Bakker - 30 Jul 2005 17:28 GMT
>conn = DriverManager.getConnection ("jdbc:oracle:thin:@" + server + ":" +
>port + ":" + base, user, pwd);
>
>that is why i want to get the sqlplus connection under DOS working.
>
>I need the localhost + port as well.
As explained to you in comp.databases.oracle.server to you before,
this is not the correct syntax. In fact the jdbc *thin* driver is the
exception.
So, no, you don't need the localhost + port, and you would have known
that, provided you would have spent some time to look up the
troubleshooting section of tne net administrators manual.
However spending some minimal effort is quite clearly asked too much,
as you by now have demonstrated to you are too lazy to hit ctrl-end
and to refrain from top-posting.
You might consider switching to a mickeysoft product.
--
Sybrand Bakker, Senior Oracle DBA