Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Login Via JDBC
jdbc:oracle:oci8:@<tnsname>
hth
santysharma
"Yiu Wing" <yiuwing.yip_at_virgin.net> wrote in message
news:AGnh8.109009$Ah1.14978998_at_news2-win.server.ntlworld.com...
> Hello all,
>
> Our university is running a Oracle8i JServer, but it's only for
educational
> purpose. So after we login our UNIX account, where the database server is
> running, we just need to type "sqlpuls /" to login the database.
>
> Say the UNIX server is foo.bar.edu, how do I open a database connection
via
> the JDBC driver on a NT box? Is it something like
>
> Connection conn = DriverManager.getConnection
> ("jdbc:oracle:oci8:@foo:bar:edu", "unixusername", "unixpassword");
>
> I'm at home now and our uni's firewall blocks outside connections, that's
> why I can't try this out immediately. But could someone confirm this for
> me?
>
> Thanks.
> --
> Yiu Wing
>
>
>
>
Received on Wed Mar 06 2002 - 12:32:23 CST