dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

JDBC DB Connection with Eclipse 3.2 and Oracle 10g Express - Oracle Tools

This is a discussion on JDBC DB Connection with Eclipse 3.2 and Oracle 10g Express - Oracle Tools ; Hi, I'm trying to connect to a newly downloaded and installed Oracle 10g Express database via MyEclipse. I need to define a connection URL. The name of the database I want to connect to is 'HR' (the sample that comes ...


Home > Database Forum > Oracle Database > Oracle Tools > JDBC DB Connection with Eclipse 3.2 and Oracle 10g Express

Reply

 

LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1  
Old 11-10-2006, 02:31 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default JDBC DB Connection with Eclipse 3.2 and Oracle 10g Express

Hi,
I'm trying to connect to a newly downloaded and installed Oracle 10g
Express database via MyEclipse. I need to define a connection URL. The
name of the database I want to connect
to is 'HR' (the sample that comes with the installation). The username
is 'SYSTEM' and the password is 'wgb1454'. I'm assuming the driver is a
'thin' driver (see the URL below). The driver's
package is oracle.jdbc.OracleDriver found in the ojdbc14.jar.

jdbcracle:thin@//localhost:1521:HR,SYSTEM,wgb1454

I'm also unable to connect via port 8080. The database is up and
running. Any help would be greatly appreciated!

Reply With Quote
  #2  
Old 11-10-2006, 05:16 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: JDBC DB Connection with Eclipse 3.2 and Oracle 10g Express


d****zu wrote:
> Hi,
> I'm trying to connect to a newly downloaded and installed Oracle 10g
> Express database via MyEclipse. I need to define a connection URL. The
> name of the database I want to connect
> to is 'HR' (the sample that comes with the installation). The username
> is 'SYSTEM' and the password is 'wgb1454'. I'm assuming the driver is a
> 'thin' driver (see the URL below). The driver's
> package is oracle.jdbc.OracleDriver found in the ojdbc14.jar.
>
> jdbcracle:thin@//localhost:1521:HR,SYSTEM,wgb1454
>
> I'm also unable to connect via port 8080. The database is up and
> running. Any help would be greatly appreciated!


HR is the *schema* name, not something identifying the database.
For the thin driver you need the *SID* of the database.
The SID of any XE database is XE.
All of which of course is documented in the XE documentation up at
http://otn.oracle.com, including a 'Getting Started' Manual, which you
obviously didn't bother to read.
The username is obviously als NOT SYSTEM, but HR.

--
Sybrand Bakker
Senior Oracle DBA

Reply With Quote
  #3  
Old 11-10-2006, 05:16 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: JDBC DB Connection with Eclipse 3.2 and Oracle 10g Express


d****zu wrote:
> Hi,
> I'm trying to connect to a newly downloaded and installed Oracle 10g
> Express database via MyEclipse. I need to define a connection URL. The
> name of the database I want to connect
> to is 'HR' (the sample that comes with the installation). The username
> is 'SYSTEM' and the password is 'wgb1454'. I'm assuming the driver is a
> 'thin' driver (see the URL below). The driver's
> package is oracle.jdbc.OracleDriver found in the ojdbc14.jar.
>
> jdbcracle:thin@//localhost:1521:HR,SYSTEM,wgb1454
>
> I'm also unable to connect via port 8080. The database is up and
> running. Any help would be greatly appreciated!


HR is the *schema* name, not something identifying the database.
For the thin driver you need the *SID* of the database.
The SID of any XE database is XE.
All of which of course is documented in the XE documentation up at
http://otn.oracle.com, including a 'Getting Started' Manual, which you
obviously didn't bother to read.
The username is obviously als NOT SYSTEM, but HR.

--
Sybrand Bakker
Senior Oracle DBA

Reply With Quote
  #4  
Old 03-26-2008, 10:18 PM
Database Newbie
 
Join Date: Mar 2008
Posts: 2
jakhar83 is on a distinguished road
Default Re: JDBC DB Connection with Eclipse 3.2 and Oracle 10g Express

hey Dude r trying this jdbco:racle:thin@//localhost:1521:HR,SYSTEM,wgb1454

Now try this ---it will solve ur problem

jdbco:racle:thin@localhost:1521:HR,SYSTEM,wgb1454
Reply With Quote
  #5  
Old 03-26-2008, 10:22 PM
Database Newbie
 
Join Date: Mar 2008
Posts: 2
jakhar83 is on a distinguished road
Default Re: JDBC DB Connection with Eclipse 3.2 and Oracle 10g Express

u r trying this jdbcracle:thin@//localhost:1521:HR,SYSTEM,wgb1454


Now try this it will solve ur problem

jdbcracle:thin-at-localhost:1521:HR,SYSTEM,wgb1454

just remove //...i don't know why u r using that..

Ashwini Jakhar

Java developer
Reply With Quote
Reply

Thread Tools
Display Modes


LinkBacks (?)

LinkBack to this Thread: http://dbaspot.com/forums/oracle-tools/129609-jdbc-database-connection-eclipse-3-2-oracle-10g-express.html

Posted By For Type Date
re: example java connection database Oracle | VIRGILIO Ricerca | Web This thread Refback 11-28-2008 11:51 AM


All times are GMT -4. The time now is 05:52 AM.