Sir i am wondering do i need to identify the con variable as a String ??
what about if i want to use for example _Xcon as the variable of _Xcon =
DriverManager.getConnection (bla bla bla )???

-----Original Message-----
From: N Hari Babu [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 05, 2000 3:57 PM
To: [EMAIL PROTECTED]
Subject: Re: Connecting to Oracle thro Thin driver


Hi Sanjay,
        Try the following way.

first load the driver with the following method.
Class.forName("oracle.jdbc.driver.OracleDriver")

Next get the connection by using getConnection() method of DriverManager
class.


con=DriverManager.getConnection("jdbc:oracle:thin:@ser:1521:sid",userid,pass
word);

@ser represents the ur oracle server address.
sid is ur server sid.

next create the appropriate statement which u need....

Thanks,
Haribabu.

At 12:39 PM 7/5/00 IST, you wrote:
>Hi guys,
>Have been connecting to Oracle thro DSNs
>
>Now I want to connect using thro the Oracle thin driver
>Please can somebody help.Please mention the procedure
>
>TIA
>Sanjay
>________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to