国产成人精品亚洲777人妖,欧美日韩精品一区视频,最新亚洲国产,国产乱码精品一区二区亚洲

您的位置:首頁(yè)技術(shù)文章
文章詳情頁(yè)

Oracle數(shù)據(jù)庫(kù)導(dǎo)入導(dǎo)出方法的個(gè)人總結(jié)

瀏覽:157日期:2023-11-27 18:22:35
Oracle數(shù)據(jù)庫(kù)導(dǎo)入導(dǎo)出方法:

1.使用命令行:

數(shù)據(jù)導(dǎo)出:

1.將數(shù)據(jù)庫(kù)TEST完全導(dǎo)出,用戶名system密碼manager導(dǎo)出到D:daochu.dmp中

exp system/manager@TEST file=d:daochu.dmp full=y

2.將數(shù)據(jù)庫(kù)中system用戶與sys用戶的表導(dǎo)出

exp system/manager@TEST file=d:daochu.dmp owner=(system,sys)

3.將數(shù)據(jù)庫(kù)中的表inner_notify、notify_staff_relat導(dǎo)出

exp aichannel/aichannel@TESTDB2 file= d:datanewsmgnt.dmp tables=(inner_notify,notify_staff_relat)

4.將數(shù)據(jù)庫(kù)中的表table1中的字段filed1以'00'打頭的數(shù)據(jù)導(dǎo)出

exp system/manager@TEST file=d:daochu.dmp tables=(table1) query=' where filed1 like '00%''

上面是常用的導(dǎo)出,對(duì)于壓縮,既用winzip把dmp文件可以很好的壓縮。

也可以在上面命令后面加上compress=y來(lái)實(shí)現(xiàn)。

數(shù)據(jù)的導(dǎo)入:

1.將D:daochu.dmp 中的數(shù)據(jù)導(dǎo)入 TEST數(shù)據(jù)庫(kù)中。

imp system/manager@TEST file=d:daochu.dmp

imp aichannel/aichannel@HUST full=y file=file= d:datanewsmgnt.dmp ignore=y

上面可能有點(diǎn)問(wèn)題,因?yàn)橛械谋硪呀?jīng)存在,然后它就報(bào)錯(cuò),對(duì)該表就不進(jìn)行導(dǎo)入。

在后面加上 ignore=y 就可以了。

2.將d:daochu.dmp中的表table1導(dǎo)入

imp system/manager@TEST file=d:daochu.dmp tables=(table1)

2.plsql:

數(shù)據(jù)導(dǎo)出:

TOOLS-Export user objects(用戶對(duì)象)

TOOLS-Export tables(表)

數(shù)據(jù)的導(dǎo)入:

TOOLS-Import tables

Oracle Import(表) SQL Inserts(用戶對(duì)象)

也可以將用戶對(duì)象的語(yǔ)句拷貝出來(lái),粘貼到Command Window這樣的好處是可以看到執(zhí)行的過(guò)程。

主站蜘蛛池模板: 长子县| 开江县| 孝昌县| 凌云县| 洪洞县| 温宿县| 客服| 巧家县| 故城县| 丰县| 磴口县| 莱西市| 阳新县| 枣庄市| 阆中市| 青阳县| 阿尔山市| 前郭尔| 防城港市| 徐州市| 汉阴县| 清流县| 浦县| 吴桥县| 德州市| 称多县| 阳泉市| 本溪市| 清丰县| 莱阳市| 乌拉特中旗| 纳雍县| 易门县| 阳信县| 襄樊市| 灵寿县| 石嘴山市| 宁南县| 广州市| 屯门区| 沈丘县|