Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8934909
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:52:54+00:00 2026-06-15T09:52:54+00:00

I am migrating to hibernate 4.1 and also adding support for oracle 11g. The

  • 0

I am migrating to hibernate 4.1 and also adding support for oracle 11g. The migration to 4.1 appears to have gone ok with the mysql setup and I am debugging oracle specific problems. I have an issue where oracle complains with

java.sql.SQLException: ORA-00903: invalid table name

I should mention this setup is also using c3p0 and ehcache.

The query that causes this exception is:

DEBUG org.hibernate.SQL  - 

select
    dp.id as id168_,
    dp.Description as Descript2_168_,
    dp.name as name168_,
    case 
        when dp1_.id is not null then 1 
        when dp2_.id is not null then 2 
        when dp.id is not null then 0 
    end as clazz_ 
from
    .tableA dp 
left outer join
    .tableB dp1_ 
        on dp.id=dp1_.id 
left outer join
    .tableC dp2_ 
        on dp.id=dp2_.id

I tried this query in SQL Developer and it failed. The problem appears to be with the ‘.’ on the table names. If I remove this or put the db user/schema before the query is good.

Is there a setting to turn this notation off?
Have I not provided a property that is needed?

<properties>
        <property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect"/>
        <property name="hibernate.connection.driver_class" value="oracle.jdbc.OracleDriver"/>
        <property name="hibernate.connection.username" value="myUser"/>
        <property name="hibernate.connection.password" value="myPassword"/>
        <property name="hibernate.connection.url" value="jdbc:oracle:thin://@192.168.X.X:1521:oracledb"/>
        <property name="hibernate.archive.autodetection" value=""/>

        <property name="hibernate.format_sql" value="true"/>
        <property name="hibernate.show_sql" value="true"/>
        <property name="hibernate.default_schema" value="public"/>

        <property name="hibernate.ejb.cfgfile" value="META-INF/hibernate.cfg.xml"/>

        <!-- cache configuration -->
        <property name="hibernate.cache.region.factory_class" value="org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory" />
        <property name="hibernate.cache.use_second_level_cache" value="true"/>
        <property name="hibernate.cache.use_query_cache" value="true"/>

        <!-- pool configuration -->
        <property name="hibernate.connection.provider_class" value="org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider" />
        <property name="hibernate.c3p0.max_size" value="50" />
        <property name="hibernate.c3p0.min_size" value="5" />
        <property name="hibernate.c3p0.acquire_increment" value="1" />
        <property name="hibernate.c3p0.idle_test_period" value="17" />
        <property name="hibernate.c3p0.max_statements" value="0" />
        <property name="hibernate.c3p0.timeout" value="3600" />
        <property name="hibernate.c3p0.preferredTestQuery" value="SELECT 1 FROM DUAL"/>

    </properties>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T09:52:55+00:00Added an answer on June 15, 2026 at 9:52 am

    This problem was with

    <property name="hibernate.default_schema" value="public"/>
    

    This value needs to match the schema that you have created.

    ctapobep’s comment helped identify this problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm migrating an old Sybase database to MySQL and I have to create foreign
I have an application in migrating to MySQL and PostgreSQL and I both have
I'm in the process of migrating my JDBC project to Hibernate. I have a
We are migrating a database from MySQL to SQL Server. The migration is pretty
I have a typical Flex-based application that was written to use a Java/Hibernate/MySQL backend.
I use: EJB3 / JPA (Hibernate) MySQL 5 I have to set up a
I'm currently migrating my project from Hibernate HBM Mappings to Annotations. Everything was easy
After migrating my whole setup from Java 1.5 to 1.6 (J2EE, Tomcat) a couple
I'm migrating an old Sybase database to a new MySQL db. Since the moment
I have legacy application using struts & ejb2.0 , hibernate v3.0 running on JBoss

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.