Generating Database Definitions to a File

Create a SQL file containing the CREATE and DROP statements that you can run against an online database schema.

Note: If you have made changes to tables that have foreign keys, it is possible that the foreign keys will be dropped when you generate your changes to the database. For more information, refer to Offline Tables and Foreign Keys.

To create the file:

  1. In the navigator, expand the workspace and project.
  2. Right-click an offline schema and choose New to display the New Gallery.
  3. From the New Gallery, expand Database Tier , and select Offline Database.
  4. Select SQL Generated from Offline Database Objects wizard to launch the Generate SQL from Offline Database Objects wizard.
  5. In the pages of the wizard enter parameters and select options to define the table. For information about how to fill in these values, click Help in the dialog.
  6. On the Generate Options page select CREATE (or replace) the chosen objects. Click Next.
  7. On the SQL Script Options page specify details for the generated file, then click Next.
  8. On the Finish page, click Finish to create the file.

Context Menu Shortcut:


About Offline Schemas
Generating From Offline Table Definitions
Working with Offline Database Definitions

 

Copyright © 1997, 2004, Oracle. All rights reserved.