Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Oracle 11g Database schema selection

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi All

I am using Oracle 11g express, have problem to a particular schema or workspace. How can I connect to a particular schema?

Below configuration works fine. I dont know which schema it is connecting.

Thanks

Ornelo


<hibernate-configuration>


<session-factory>

<!-- Database connection settings -->


<property name="connection.driver_class">oracle.jdbc.OracleDriver</property>

<property name="connection.url">jdbcracle:thin:ornelo/ornelo@localhost:1521:xe</property>

<property name="connection.databaseName">hr</property>
<!--
<property name="connection.username">ornelo</property>

<property name="connection.password">ornelo</property>
-->


<!-- JDBC connection pool (use the built-in) -->


<property name="connection.pool_size">1</property>

<!-- SQL dialect -->


<property name="dialect">org.hibernate.dialect.OracleDialect</property>

<!-- Disable the second-level cache -->


<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>

<!-- Echo all executed SQL to stdout -->


<property name="show_sql">true</property>

<!-- Drop and re-create the database schema on startup -->


<property name="hbm2ddl.auto">create</property>

<!-- <mapping resource="org/hibernate/tutorial/hbm/Event.hbm.xml" /> -->

<mapping class="com.nazare.hibernate.dto.UserDetails"/>


</session-factory>

</hibernate-configuration>
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Topic continue in https://coderanch.com/t/636077/ORM/databases/Oracle-Database-schema-selection#2915949

locking
 
    Bookmark Topic Watch Topic
  • New Topic