JDBC Database Connection with Eclipse 3.2 and Oracle 10g Express

This is a discussion on JDBC Database Connection with Eclipse 3.2 and Oracle 10g Express within the Oracle Tools forums in Oracle Database category; 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 ...

Go Back   Database Forum > Oracle Database > Oracle Tools

Database Forums

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 11-10-2006, 02:31 PM
Default JDBC Database 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
Default Re: JDBC Database 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
Default Re: JDBC Database 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, 11:18 PM
Default Re: JDBC Database 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-at-localhost:1521:HR,SYSTEM,wgb1454
Reply With Quote
  #5  
Old 03-26-2008, 11:22 PM
Default Re: JDBC Database 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



All times are GMT -4. The time now is 04:45 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Integrated by bbpixel2008 :: jvbPlugin R1013.368.1

Search Engine Friendly URLs by vBSEO 3.1.0
vB Ad Management by =RedTyger=
In an effort to better serve ads to our visitors, cookies are used on Mydatabasesupport.com. For more information, check out our Privacy Policy.