常用的oracle 命令,總是忘,呵呵


          1
          導(dǎo)出:
          EXP.EXE cits_cc/cits_cc@cits direct=y buffer=327680 file=D:\cits.dmp owner=(cits_cc,cits_stat)

          導(dǎo)入:
          IMP.EXE cits_cc/cits_cc@cits file=D:\cits.dmp fromuser=(cits_cc,cits_stat) touser=(cits_cc,cits_stat)

          2
          連接數(shù)據(jù)庫(kù)
          sqlpuls /nolog
          connect / as sysdba

          3 查看實(shí)例
          select * from v$instance

          4 啟動(dòng)數(shù)據(jù)庫(kù)

          ?startup nomount 啟動(dòng)實(shí)例但不加載數(shù)據(jù)
          ?startup mount?? 啟動(dòng)實(shí)例加載數(shù)據(jù),但不大開(kāi)數(shù)據(jù)庫(kù)
          ?startup???????? 啟動(dòng)實(shí)例,加載數(shù)據(jù),打開(kāi)數(shù)據(jù)庫(kù)
          ?
          ?alter database mount 為實(shí)例加載數(shù)據(jù)
          ?alter database open? 從加載狀態(tài)進(jìn)入打開(kāi)狀態(tài)

          ?startup force 強(qiáng)行啟動(dòng)數(shù)據(jù)庫(kù)

          5 受限狀態(tài) 只有dba 或同時(shí)具有create sesson 和restricted session 可以訪問(wèn)數(shù)據(jù)庫(kù)
          ?在受限狀態(tài)下一般的用戶(create session)不能訪問(wèn),但是dba 可以進(jìn)行數(shù)據(jù)庫(kù)的維護(hù),數(shù)據(jù)的導(dǎo)入導(dǎo)出
          ?startup restrict 啟動(dòng)進(jìn)入受限狀態(tài)
          ?alter system disable restricted session 恢復(fù)正常狀態(tài)
          ?alter system enable restricted session? 進(jìn)入受限狀態(tài)

          6 只讀數(shù)據(jù)庫(kù)
          ? alter database open read only
          ? alter database open read write

          7 關(guān)閉數(shù)據(jù)庫(kù)
          ?shutdonw normal???????? 正常關(guān)閉
          ?shutdown immediate????? 立即關(guān)閉
          ?shutdown transactional? 事務(wù)型關(guān)閉
          ?shutdown abort????????? 立即中止

          8 靜默狀態(tài)(只有dba 可以訪問(wèn))
          ?alter system? quiesce restricted 進(jìn)入靜默狀態(tài)
          ?alter system unquiesce?????????? 退出靜默狀態(tài)
          ?select active_status from v$instance 查詢(xún)靜默狀態(tài)

          9 掛起狀態(tài)(暫停所有io操作)
          ?alter system suspend 掛起
          ?alter system resume? 恢復(fù)
          ?select database_status from v$instance 查詢(xún)狀態(tài)

          9 創(chuàng)建數(shù)據(jù)庫(kù) dbca

          posted on 2006-07-13 14:00 康文 閱讀(408) 評(píng)論(1)  編輯  收藏 所屬分類(lèi): 數(shù)據(jù)庫(kù)

          評(píng)論

          # re: 常用的oracle 命令,總是忘,呵呵 2006-11-03 19:16 miao

          xiela  回復(fù)  更多評(píng)論   

          <2006年11月>
          2930311234
          567891011
          12131415161718
          19202122232425
          262728293012
          3456789

          導(dǎo)航

          統(tǒng)計(jì)

          常用鏈接

          留言簿(1)

          隨筆分類(lèi)

          隨筆檔案

          文章檔案

          搜索

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 雅安市| 万源市| 珠海市| 辽阳市| 关岭| 分宜县| 洱源县| 和顺县| 攀枝花市| 龙江县| 天峨县| 冕宁县| 弥勒县| 贡嘎县| 久治县| 绵阳市| 芦山县| 封丘县| 临邑县| 盘山县| 拉孜县| 铜梁县| 沈阳市| 岳普湖县| 肇庆市| 新闻| 辰溪县| 苏尼特左旗| 湘阴县| 斗六市| 江安县| 台东市| 宿松县| 蓬溪县| 岐山县| 吴忠市| 三河市| 平谷区| 秦皇岛市| 梅河口市| 天全县|