飛艷小屋

          程序--人生--哲學___________________歡迎艷兒的加入

          BlogJava 首頁 新隨筆 聯系 聚合 管理
            52 Posts :: 175 Stories :: 107 Comments :: 0 Trackbacks

          Oracle Database Configuration Assistant 創建好數據庫 A( 在開如菜單里 )

          DOS 環境下 , 打入 Sqlplus/nolog

          Connect system/system as sysdba

          Create user smile identified by smile;// 注意別忘記打分號

          Grant dba to smile with admin option;

          導入數據進入 A,imp smile/smile@A file=c:\bb.bmp

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

          ? 數據 出: ?1 將數據 TEST 完全 , system manager 出到 D:\daochu.dmp ?? exp system/manager@TEST file=d:\daochu.dmp full=y ?2 將數據 system sys 的表 ?? exp system/manager@TEST file=d:\daochu.dmp owner=(system,sys) ?3 將數據 中的表 table1 table2 ?? exp system/manager@TEST file=d:\daochu.dmp tables=(table1,table2)? ?4 將數據 中的表 table1 中的字段filed100 的數據 ?? exp system/manager@TEST file=d:\daochu.dmp tables=(table1)?query=\ where filed1 like 00%\ ? ???? 上面是常用的 出, 壓縮 我不太在意,用 winzip dmp文件可以很好的 壓縮 ???????????????????? 在上面命令后面 加上 compress=y? 就可以了 數據的 ?1 D:\daochu.dmp 中的數據 TEST 數據 中。 ?? imp system/manager@TEST? file=d:\daochu.dmp ?? 上面可能有點 問題 ,因 有的表已 存在,然后它就 報錯 對該 表就不 入。 ?? 在后面加上 ignore=y 就可以了。 ?2 d:\daochu.dmp中的表table1 ?imp system/manager@TEST? file=d:\daochu.dmp? tables=(table1)? ? ?基本上上面的 用了。 不少情況我是將表 除,然后 入。 ? 注意: ? 你要有足 限, 限不 它會提示你。 ? 數據 庫時 可以 上的。可以用 tnsping TEST 得數據 TEST 能否 上。

          posted on 2006-06-12 15:48 天外飛仙 閱讀(224) 評論(0)  編輯  收藏 所屬分類: Oracle
          主站蜘蛛池模板: 大城县| 繁峙县| 桦甸市| 芷江| 库伦旗| 宜兴市| 沅陵县| 安康市| 宾川县| 泰州市| 新和县| 三亚市| 吴旗县| 吉木乃县| 宜都市| 永定县| 临洮县| 玉门市| 彭泽县| 黄山市| 大埔区| 东乌珠穆沁旗| 沾化县| 胶南市| 都安| 尼玛县| 鹿邑县| 交城县| 隆安县| 武鸣县| 刚察县| 依兰县| 定南县| 儋州市| 商水县| 崇州市| 哈巴河县| 丰县| 丽水市| 河北省| 获嘉县|