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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

user exp / imp in db2

Status
Not open for further replies.

val02

Programmer
Jul 29, 2002
5
IN
hi all

is there any way in which we can export the user (db2admin)objects (tables, procedures, functions etc) to a dump file .dmp or any other file and import the file at some other database in some other user...
oracle has exp and imp command (command line commands) ..


thanks and regards

vallabh
 
Yes, there is.

Here is an example using CLI for exporting data:
db2 export to my_exprt.ixf of ixf select * from owner.table_name

To import the data into a table, use "import":
db2 "import from my_exprt.ixf of ixf insert into other.table_name"

The db2look command is useful for generating ddl.

The above examples are very basic. For more details, please see the DB2 UDB "Command Reference" manual.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top