Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: [Q] how to avoid JDBC client connect to database?

Re: [Q] how to avoid JDBC client connect to database?

From: Richard Ji <richard.c.ji_at_gmail.com>
Date: Thu, 13 Apr 2006 12:34:55 -0400
Message-ID: <b4d52f20604130934n3a2a1d6k2df58aed719ad733@mail.gmail.com>


A Java program runs with Oracle's JVM can connect to a local DB in two ways. One is through the internal driver, by calling the OracleDriver's defaultConnection method to get a Connection object. It runs within the default session, you are already "connected". Or you can use the connect remote DB method except use the localhost instead of the remote host. If you do this, you are going through the listener and are creating a new session.

Richard Ji

On 4/13/06, Radoulov, Dimitre <cichomitiko_at_gmail.com> wrote:
> > If you are talking about JDBC connection from within the DB's JVM
> > through server side driver ...
> [...]
>
> Could you give an example?
>
>
> Thanks,
> Dimitre

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Apr 13 2006 - 11:34:55 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US