Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

single line sql of exp

Status
Not open for further replies.

sssdexter

Programmer
Oct 7, 2003
29
MY
Hi,

How can write a single line script that exp a database table structure out witout copy the data? I would like to put that script in *.bat file, so that i can just doubleclick on that file, then it will auto generate all the table structures out.

Thanks in advance
 
Dexter,

Use the "rows=n" parameter: Your "exp" command can in the form:
exp tables=tab_name rows=n file=file_name userid=username/password

Depending upon your Oracle version, you may see a warning, "EXP-00091: Exporting questionable statistics.", but guess what...we don't care about statistics for a table with no rows, now do we?

Dave
Sandy, Utah, USA @ 09:30 GMT, 02:30 Mountain Time
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top