It shows that you are unregistered. Please register with us by clicking Here
![]() |
|
![]() |
![]() | Register - FAQ - Today's Posts - New Posts - Support - Search | ![]() |
|
|
#1 (permalink) |
|
Junior Member
Join Date: Jul 2006
Age: 26
Posts: 5
|
Hi there, I Am very new to Oracle, and this forum
My situation is, im working on NetBeans and have to connect to a Oracle DB in Oracle Database 10g Express Edition. So far i did: import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.ResultSet; import java.sql.Statement; final private String driverName = "oracle.jdbc.driver.OracleDriver"; I am not sure of this the connection string, is the syntax below correct? conn = DriverManager.getConnection("jdbc If so, is this how the connection string should look like? Example: conn = DriverManager.getConnection("jdbc Also in NetBeans, under Runtime, i've added Oracle driver. When trying to connect, they ask for this: jdbc May i know what is the SID? Is it the table name? Is there any other thing else i missed out? Do i need to set CLASSPATH in command prompt? Im unsure of what to set besides the "ojdbc14.jar" driver file. Any help will be appreciated. Been trying to connect for quite some time but i keep getting error msg :S Thanks for reading this. LAUREN |
|
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problems in upgrading from Oracle 8 to 9i | zachary | Programming | 0 | 07-29-2006 04:21 PM |
| new to oracle | aaron | Programming | 0 | 07-29-2006 03:42 PM |
| ODBC error while connecting to database | andrew | ASP | 2 | 07-27-2006 10:35 AM |
| Perl DBD::Oracle | andrew | Perl | 0 | 07-12-2006 05:52 PM |
| Perl & Oracle Database; vcvars32.bat | sebastian | Perl | 0 | 07-02-2006 01:04 PM |