Extract tables from Oracle Apps - Code migration between instances

| No Comments | No TrackBacks
I faced this situation: Need to move tables from one instance to another instance in Oracle applications. I just need to extract create table definitions, so that I can execute those create statements in another instance.

Script:

    SELECT DBMS_METADATA.GET_DDL('TABLE',u.table_name)
     FROM ALL_TABLES u
     where u.table_name like 'XX_TABLE_NAME'

dbms_metadata package helps us to get the create table definition. You can use all_tables or user_tables to get the table name details.

Usage: Move table definitions from one instance to another instance. 

No TrackBacks

TrackBack URL: http://chandramouly.com/MT/mt/mt-tb.cgi/15

Leave a comment

About this Entry

This page contains a single entry by chandramouly published on May 5, 2010 10:35 PM.

oracle apps scripts and commands was the previous entry in this blog.

FNDLOAD - Upload, download oracle program definitions is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.