DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: How can I retrieve defined database with all tables

  1. #1
    Join Date
    Feb 2002
    Posts
    1

    Question

    Hi,
    I am now to this forum and I am doing a project. I want to retrieve all table definations and constraints for a database in Oracle system. So that I can insert new data into all table and satisify the constraints.

    Is there simple way to get all those information into a templary file?

    Please help!!

    Regards,

    John


  2. #2
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,684
    You can get this information using the following views:

    USER_TABLES
    USER_TAB_COLUMNS
    USER_INDEXES
    USER_INDEX_COLUMNS
    USER_CONSTRAINTS

    Or modify this script to get what you want:

    http://www.oracle-base.com/DBA/DBASc...eate_Table.sql
    Tim...
    OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
    OCA PL/SQL Developer
    Oracle ACE Director
    My website: oracle-base.com
    My blog: oracle-base.com/blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width