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 3230878
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:58:44+00:00 2026-05-17T16:58:44+00:00

Say you generate ddl to create all your db tables etc via Hibernate SchemaExport

  • 0

Say you generate ddl to create all your db tables etc via Hibernate SchemaExport etc. What you get is a script which starts with drop statements at the beginning. Not a problem, as I want this. But running this script produces a crapload of ORA-00942 errors running on an Oracle db.

Since they’re not really errors if the tables just didn’t exist yet, I’d like my create script to be error free when it executes so it’s easy to determine what (if any) failed.

What are my options? I DO want drop statements generated since tables may or may not exist yet, but I don’t want a million ORA-s coming back at me that I have to check (to determine if they’re actual errors) just because it couldn’t drop a table that’s brand new.

  • 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-05-17T16:58:44+00:00Added an answer on May 17, 2026 at 4:58 pm

    If you get a script of drop statements, and Hibernate won’t do it for you then wrap the DROP TABLE statements in an IF to test if the table exists before dropping it:

    IF EXISTS(SELECT NULL 
                FROM TABLE_XYZ) THEN
      DROP TABLE TABLE_XYZ;
    END IF;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I used the following command to create a User model: script/generate model
Let's say I did this: script/generate controller home And in the home controller made
Say I have a group of classes which generate documents from templates. For example...
Say I had an open-source project which I wanted to try and generate some
The instructions of vote-fu say to use ./script/generate, but I believe that is deprecated
Say I have my_application.py.in for automake to generate my_application.py . How do I get
Let's say that I want to generate a data frame which contains a column
I created some scripts which generate the data at intervals. Say, for each hour
say I want to scaffold generate university but university should eventually be related to
Say you have a tuple and want to generate a new tuple by applying

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.