Usage of exp and imp

1.exp export database

Export data and table structure (all)

exp clo_user/clo_user file=clo_user_partition20150610.dmp

 

Export the data and table structure of a table

exp tnkpdev/tnkpdev tables=USER_MORE_INFO file=USER_MORE_INFO.dmp

 

2.imp import database

1) Grant dba permissions to the user importing the database

SQL>grant dba to system; 

2) imp import

imp system/manager file=bible_db log=dible_db full=y ignore=y (ingore means only import data)

3) Delete dba permissions

SQL> revoke dba from km;

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326465057&siteId=291194637
imp