This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Oracle/OAS and the fly likes Configuring Oracle 10 G to Work with Java Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Oracle/OAS
Reply Bookmark "Configuring Oracle 10 G to Work with Java Hibernate" Watch "Configuring Oracle 10 G to Work with Java Hibernate" New topic
Author

Configuring Oracle 10 G to Work with Java Hibernate

Ramesh Jothimani
Ranch Hand

Joined: May 05, 2011
Posts: 40

I am a beginner of Java - Hibernate . I have installed Oracle 10G in my PC and I am not aware of how to link between my Java Code (hibernate-config.xml) and Oracle DB . I have Googled regarding it and came to know that we need to create a Listener & seperate DB to configure in hibernate-config.xml and tnsnames.ora . I am not aware about these configurations.

Kindly help me to resolve the same.

Thanks !
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 26193
    
  66

I recommend trying this one at a time. First create the listener. Oracle provides a wizard for this. When you are able to connect to your database using sql plus, you will be ready for hibernate.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Ramesh Jothimani
Ranch Hand

Joined: May 05, 2011
Posts: 40

Thanks for the reply !

I have installed Oracle 10G in my PC but I can't find " Oracle Net Manager " . I have connected my Oracle to SQL Plus and it is working fine. Can you please tell me how to find out whether there is a listener already or else how to create one ?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 26193
    
  66

As the link I posted alluded to, Net Manager is under:
Start > Programs > Oracle - HOME_NAME > Configuration and Migration Tools > Net Manager

If it works in SQL plus, that means your listener is set up though. SInce we are moving on to another question, I recommend posting in the ORM forum up top a more specific question about Hibernate.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Configuring Oracle 10 G to Work with Java Hibernate
 
Similar Threads
Multiple Java positions in Wilmington, De
Java Developer ... LPIC or OCA/OCE
JDBC connect to Oracle 11g
Is Oracle Client required?????
to stop unlocking an account from if failed attempts is more than 5 within 24hrs