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

Home -> Community -> Usenet -> c.d.o.server -> Re: jdbc: PLEASE HELP

Re: jdbc: PLEASE HELP

From: C. Ferguson <c_ferguson_at_rationalconcepts.com>
Date: 2000/03/20
Message-ID: <38D68385.88CC55E7@rationalconcepts.com>

Oh, silly me...I guess my first question should have been, " is the power on?" ;-)

cindy

bilal_z_at_my-deja.com wrote:

> Still getting the same error. It has something to do with the Listener
> on the server not working.
>
> In article <38D665B8.2898D85D_at_rationalconcepts.com>,
> "C. Ferguson" <c_ferguson_at_rationalconcepts.com> wrote:
> >
> > --------------3F0E060C73D4E8F9B77ACEEC
> > Content-Type: text/plain; charset=us-ascii
> > Content-Transfer-Encoding: 7bit
> >
> > Hi,
> > the connection call is of the format
> > DriverManager.getConnection ("jdbc:oracle:thin:@<machine name>:<port
> > number>:<sid>", dbuser, dbpassword);
> >
> > so in your case it should be
> >
> > DriverManager.getConnection

 ("jdbc:oracle:thin:@207.159.74.75:1521:destro",
> > username, password);
> >
> > cheers,
> > cindy
> >
> > bilal_z_at_my-deja.com wrote:
> >
> > > The java snippet:
> > >
> > > DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
> > > Connection conn = DriverManager.getConnection
> > > ("jdbc:oracle:thin:207.159.74.75:1521:destro",
> > > username,password);
> > >
> > > The listener.ora file:
> > >
> > > # D:\ORACLE\ORA81\NETWORK\ADMIN\LISTENER.ORA Configuration
> > > File:d:\Oracle\Ora81\NETWORK\ADMIN\listener.ora
> > > # Generated by Oracle Net8 Assistant
> > >
> > > LISTENER =
> > > (DESCRIPTION_LIST =
> > > (DESCRIPTION =
> > > (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
> > > (PROTOCOL_STACK =
> > > (PRESENTATION = TTC)
> > > (SESSION = NS)
> > > )
> > > )
> > > (DESCRIPTION =
> > > (ADDRESS = (PROTOCOL = TCP)(HOST = 207.159.74.75)(PORT = 1521))
> > > (PROTOCOL_STACK =
> > > (PRESENTATION = TTC)
> > > (SESSION = NS)
> > > )
> > > )
> > > )
> > >
> > > SID_LIST_LISTENER =
> > > (SID_LIST =
> > > (SID_DESC =
> > > (SID_NAME = PLSExtProc)
> > > (ORACLE_HOME = d:\Oracle\Ora81)
> > > (PROGRAM = extproc)
> > > )
> > > (SID_DESC =
> > > (GLOBAL_DBNAME = destro)
> > > (ORACLE_HOME = d:\Oracle\Ora81)
> > > (SID_NAME = destro)
> > > )
> > > )
> > >
> > > I am running my app off Textpad.
> > > Thanks very much for your help.
> > >
> > > In article <38D2A313.4C83238C_at_rationalconcepts.com>,
> > > "C. Ferguson" <c_ferguson_at_rationalconcepts.com> wrote:
> > > > Hi,
> > > > please post the java snippet where you are registering the driver
 and
> > > > making the connection, the listener.ora file for your db, and the
> > > > execution command you are using to start your app (i.e. java
> > > > -classpath...).
> > > >
> > > > cindy
> > > >
> > > > bilal_z_at_my-deja.com wrote:
> > > >
> > > > > I cannot get a jdbc connection to our oracle 8i db. I'm using a
 thin
> > > > > driver and keep getting:
> > > > >
> > > > > java.sql.SQLException: The Network Adapter could not establish
 the
> > > > > connection
> > > > >
> > > > > All the connection parameters are correct. I know there has to
 be a
> > > > > simple solution to this. Can someone please help me?
> > > > >
> > > > > Sent via Deja.com http://www.deja.com/
> > > > > Before you buy.
> > > >
> > > >
> > >
> > > Sent via Deja.com http://www.deja.com/
> > > Before you buy.
> >
> > --------------3F0E060C73D4E8F9B77ACEEC
> > Content-Type: text/html; charset=us-ascii
> > Content-Transfer-Encoding: 7bit
> >
> > <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
> > <html>
> > Hi,
> > <br>&nbsp; the connection call is of the format
> > <br>&nbsp;&nbsp;&nbsp;&nbsp; DriverManager.getConnection
 ("jdbc:oracle:thin:<b>@</b>&lt;machine
> > name>:&lt;port number>:&lt;sid>", dbuser, dbpassword);
> > <p>so in your case it should be
> > <br>&nbsp;&nbsp;&nbsp; DriverManager.getConnection
 ("jdbc:oracle:thin:<b>@207.159.74.75:1521</b>:destro",
> > username, password);
> > <br>&nbsp;
> > <p>cheers,
> > <br>cindy
> > <p>bilal_z_at_my-deja.com wrote:
> > <blockquote TYPE=CITE>The java snippet:
> > <p>DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver
 ());
> > <br>&nbsp;&nbsp;&nbsp;&nbsp; Connection conn =
 DriverManager.getConnection
> > <br>("jdbc:oracle:thin:207.159.74.75:1521:destro",
> >
> <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
> bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
> bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> > username,password);
> > <p>The listener.ora file:
> > <p># D:\ORACLE\ORA81\NETWORK\ADMIN\LISTENER.ORA Configuration
> > <br><a href="File:d:\Oracle\Ora81
> \NETWORK\ADMIN\listener.ora">File:d:\Oracle\Ora81
> \NETWORK\ADMIN\listener.ora</a>
> > <br># Generated by Oracle Net8 Assistant
> > <p>LISTENER =
> > <br>&nbsp; (DESCRIPTION_LIST =
> > <br>&nbsp;&nbsp;&nbsp; (DESCRIPTION =
> > <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (ADDRESS = (PROTOCOL = IPC)(KEY =
 EXTPROC0))
> > <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (PROTOCOL_STACK =
> > <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (PRESENTATION = TTC)
> > <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (SESSION = NS)
> > <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )
> > <br>&nbsp;&nbsp;&nbsp; )
> > <br>&nbsp;&nbsp;&nbsp; (DESCRIPTION =
> > <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (ADDRESS = (PROTOCOL = TCP)(HOST =
 207.159.74.75)(PORT
> > = 1521))
> > <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (PROTOCOL_STACK =
> > <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (PRESENTATION = TTC)
> > <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (SESSION = NS)
> > <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )
> > <br>&nbsp;&nbsp;&nbsp; )
> > <br>&nbsp; )
> > <p>SID_LIST_LISTENER =
> > <br>&nbsp; (SID_LIST =
> > <br>&nbsp;&nbsp;&nbsp; (SID_DESC =
> > <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (SID_NAME = PLSExtProc)
> > <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (ORACLE_HOME = d:\Oracle\Ora81)
> > <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (PROGRAM = extproc)
> > <br>&nbsp;&nbsp;&nbsp; )
> > <br>&nbsp;&nbsp;&nbsp; (SID_DESC =
> > <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (GLOBAL_DBNAME = destro)
> > <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (ORACLE_HOME = d:\Oracle\Ora81)
> > <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (SID_NAME = destro)
> > <br>&nbsp;&nbsp;&nbsp; )
> > <br>&nbsp; )
> > <p>I am running my app off Textpad.
> > <br>Thanks very much for your help.
> > <p>In article &lt;38D2A313.4C83238C_at_rationalconcepts.com>,
> > <br>"C. Ferguson" &lt;c_ferguson_at_rationalconcepts.com> wrote:
> > <br>> Hi,
> > <br>> please post the java snippet where you are registering the
 driver
> > and
> > <br>> making the connection, the listener.ora file for your db, and
 the
> > <br>> execution command you are using to start your app (i.e. java
> > <br>> -classpath...).
> > <br>>
> > <br>> cindy
> > <br>>
> > <br>> bilal_z_at_my-deja.com wrote:
> > <br>>
> > <br>> > I cannot get a jdbc connection to our oracle 8i db. I'm using
 a
> > thin
> > <br>> > driver and keep getting:
> > <br>> >
> > <br>> > java.sql.SQLException: The Network Adapter could not establish
> > the
> > <br>> > connection
> > <br>> >
> > <br>> > All the connection parameters are correct. I know there has to
> > be a
> > <br>> > simple solution to this. Can someone please help me?
> > <br>> >
> > <br>> > Sent via Deja.com <a

 href="http://www.deja.com/">http://www.deja.com/</a>
> > <br>> > Before you buy.
> > <br>>
> > <br>>
> > <p>Sent via Deja.com <a

 href="http://www.deja.com/">http://www.deja.com/</a>
> > <br>Before you buy.</blockquote>
> > </html>
> >
> > --------------3F0E060C73D4E8F9B77ACEEC--
> >
> >
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Received on Mon Mar 20 2000 - 00:00:00 CST

Original text of this message

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