dbTalk Databases Forums  

Getting Table / Index creation script

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Getting Table / Index creation script in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
fred
 
Posts: n/a

Default Getting Table / Index creation script - 03-20-2006 , 09:23 AM






Hello,

is there any view where I could get the creation script of an existing table
?
Same question for an index.

Thanks.

Fred.



Reply With Quote
  #2  
Old   
Thomas Kellerer
 
Posts: n/a

Default Re: Getting Table / Index creation script - 03-20-2006 , 09:29 AM






fred wrote:
Quote:
Hello,

is there any view where I could get the creation script of an existing table
?
Same question for an index.

http://oraclesvca2.oracle.com/docs/c...2/d_metada.htm


Reply With Quote
  #3  
Old   
DA Morgan
 
Posts: n/a

Default Re: Getting Table / Index creation script - 03-20-2006 , 10:37 AM



fred wrote:
Quote:
Hello,

is there any view where I could get the creation script of an existing table
?
Same question for an index.

Thanks.

Fred.
To do this use the dbms_metadata built-in package.

An easy to follow demo can be found in Morgan's Library at
www.psoug.org.

HTH
--
Daniel A. Morgan
http://www.psoug.org
damorgan@x.washington.edu
(replace x with u to respond)


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.