1 將數(shù)據(jù)庫TEST完全導(dǎo)出,用戶名system 密碼manager 導(dǎo)出到D:daochu.dmp中
exp system/manager@TEST file=d:daochu.dmp full=y
2 將數(shù)據(jù)庫中system用戶與sys用戶的表導(dǎo)出
exp system/manager@TEST file=d:daochu.dmp owner=(system,sys)
語法是:exp 登入數(shù)據(jù)庫名/登入數(shù)據(jù)庫密碼@服務(wù)名 file=文件存放路徑 owner=導(dǎo)出用戶名下的所有表結(jié)構(gòu)和數(shù)據(jù)
1 將D:daochu.dmp 中的數(shù)據(jù)導(dǎo)入 TEST數(shù)據(jù)庫中。
imp system/manager@TEST file=d:daochu.dmp
// imp system/manager@TEST full=y file=d:daochu.dmp ignore=y
// imp help=y
imp system/manager@TEST file=d:daoru.dmp fromuser=’kk’ touser=’testkk’//
語法是imp 登入數(shù)據(jù)庫名/登入數(shù)據(jù)庫密碼@服務(wù)名 file=需要導(dǎo)入的文件 fromuser=需要導(dǎo)入的那個文件是屬于哪個用戶的 touser=要導(dǎo)入的用戶名
imp system/manager@TEST full=y file=d:daoru.dmp fromuser=’kk’ touser=’testkk’ ignore=y
exp system/manager@TEST file=d:daochu.dmp full=y
2 將數(shù)據(jù)庫中system用戶與sys用戶的表導(dǎo)出
exp system/manager@TEST file=d:daochu.dmp owner=(system,sys)
語法是:exp 登入數(shù)據(jù)庫名/登入數(shù)據(jù)庫密碼@服務(wù)名 file=文件存放路徑 owner=導(dǎo)出用戶名下的所有表結(jié)構(gòu)和數(shù)據(jù)
1 將D:daochu.dmp 中的數(shù)據(jù)導(dǎo)入 TEST數(shù)據(jù)庫中。
imp system/manager@TEST file=d:daochu.dmp
// imp system/manager@TEST full=y file=d:daochu.dmp ignore=y
// imp help=y
imp system/manager@TEST file=d:daoru.dmp fromuser=’kk’ touser=’testkk’//
語法是imp 登入數(shù)據(jù)庫名/登入數(shù)據(jù)庫密碼@服務(wù)名 file=需要導(dǎo)入的文件 fromuser=需要導(dǎo)入的那個文件是屬于哪個用戶的 touser=要導(dǎo)入的用戶名
imp system/manager@TEST full=y file=d:daoru.dmp fromuser=’kk’ touser=’testkk’ ignore=y