常用的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)論排行榜

          主站蜘蛛池模板: 康保县| 荃湾区| 衡山县| 襄垣县| 陇西县| 祁门县| 台南市| 南靖县| 甘谷县| 河曲县| 崇仁县| 永兴县| 九寨沟县| 依安县| 宜章县| 郴州市| 石首市| 潮州市| 潞西市| 夹江县| 泰州市| 砀山县| 张北县| 白朗县| 中山市| 勃利县| 高雄市| 全椒县| 玛多县| 屯昌县| 准格尔旗| 柳江县| 门源| 昆山市| 蕲春县| 剑川县| 文化| 长岭县| 章丘市| 南部县| 上思县|