飛艷小屋

          程序--人生--哲學(xué)___________________歡迎艷兒的加入

          BlogJava 首頁(yè) 新隨筆 聯(lián)系 聚合 管理
            52 Posts :: 175 Stories :: 107 Comments :: 0 Trackbacks

          Oracle Database Configuration Assistant 創(chuàng)建好數(shù)據(jù)庫(kù) A( 在開如菜單里 )

          DOS 環(huán)境下 , 打入 Sqlplus/nolog

          Connect system/system as sysdba

          Create user smile identified by smile;// 注意別忘記打分號(hào)

          Grant dba to smile with admin option;

          導(dǎo)入數(shù)據(jù)進(jìn)入 A,imp smile/smile@A file=c:\bb.bmp

          ?imp system/manager@TEST? file=d:\daochu.dmp ? full=y

          ? 數(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ù) 中的表 table1 table2 導(dǎo) ?? exp system/manager@TEST file=d:\daochu.dmp tables=(table1,table2)? ?4 將數(shù)據(jù) 庫(kù) 中的表 table1 中的字段filed100 的數(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? 就可以了 數(shù)據(jù)的 導(dǎo) ?1 D:\daochu.dmp 中的數(shù)據(jù) 導(dǎo) TEST 數(shù)據(jù) 庫(kù) 中。 ?? imp system/manager@TEST? file=d:\daochu.dmp ?? 上面可能有點(diǎ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)? ? ?基本上上面的 導(dǎo) 導(dǎo) 用了。 不少情況我是將表 除,然后 導(dǎo) 入。 ? 注意: ? 你要有足 權(quán) 限, 權(quán) 限不 它會(huì)提示你。 ? 數(shù)據(jù) 庫(kù)時(shí) 可以 上的。可以用 tnsping TEST 得數(shù)據(jù) 庫(kù) TEST 能否 上。

          posted on 2006-06-12 15:48 天外飛仙 閱讀(224) 評(píng)論(0)  編輯  收藏 所屬分類: Oracle
          主站蜘蛛池模板: 宜阳县| 南郑县| 万盛区| 瑞金市| 杨浦区| 乌兰察布市| 蒲城县| 宝坻区| 惠东县| 白银市| 雷山县| 安国市| 拜泉县| 新乡县| 石首市| 华坪县| 长沙市| 冕宁县| 威远县| 海口市| 沂水县| 将乐县| 临泉县| 肥东县| 山西省| 察哈| 剑川县| 五原县| 澄迈县| 藁城市| 汶上县| 同德县| 鱼台县| 红原县| 华安县| 资溪县| 县级市| 册亨县| 濮阳市| 台州市| 灵川县|