![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| writing script file for database | shaksing | Shell Programming and Scripting | 3 | 07-26-2007 05:30 AM |
| Converting tables of row data into columns of tables | justthisguy | Shell Programming and Scripting | 7 | 07-16-2007 01:42 PM |
| Automating back up of database tables | new2ss | Shell Programming and Scripting | 1 | 05-18-2006 06:12 AM |
| Importing a unix file dump into a PC capable database | DaltonF | UNIX for Dummies Questions & Answers | 7 | 07-23-2002 02:06 PM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
writing database tables into a file in unix
I want to collect the database tables(Ex: Emp,Sal,Bonus...etc)
in a file & give this file at the command prompt, when prompted for the tables list at command prompt. How can i do that ? Ex:- Import jason/jason1 tables=emp,sal,bonus log=j1.log i want to change this into Ex:- Import jason/jason1 tables=i_tables.txt log=j1.log where i_tables.txt should contain emp,sal,bonus. How i can acheive this at the commnad prompt in unix . Thanks ! |
| Forum Sponsor | ||
|
|
|
|||
|
The original question is rather unclear. It seems as though he only wants to extract the DDL.
You can do this as follows: Code:
exp userid=user/pwd rows=n grants=n indexes=n constraints=n owner=schema_owner imp userid=user/pwd full=y indexfile=schema_owner.sql Thomas |
|||
| Google UNIX.COM |