国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數(shù)據(jù)庫 > Oracle > 正文

Oracle某個(gè)數(shù)據(jù)文件損壞,如何打開數(shù)據(jù)庫

2024-08-29 13:31:01
字體:
供稿:網(wǎng)友



某個(gè)數(shù)據(jù)文件損壞,如何打開數(shù)據(jù)庫?






系統(tǒng)環(huán)境:
1、操作系統(tǒng):windows 2000 server,機(jī)器內(nèi)存128m
2、數(shù)據(jù)庫: oracle 8i r2 (8.1.6) for nt 企業(yè)版
3、安裝路徑:c:/oracle


錯(cuò)誤現(xiàn)象:
因誤操作,數(shù)據(jù)庫中某一數(shù)據(jù)文件被誤刪,
控制面板的oracle相關(guān)服務(wù)顯示已啟動(dòng),但用sql*plus無法連接,
顯示以下錯(cuò)誤
ora-01033: oracle initialization or shutdown in progress


模擬現(xiàn)象:

create tablespace test datafile
'c:/test.ora' size 5m
autoextend on next 1m maxsize unlimited
default storage (initial 128k next 1m pctincrease 0)
/

關(guān)閉所有服務(wù)stop.bat

net stop "oraclewebassistant0"
net stop "oracleorahome81tnslistener"
net stop "oracleserviceoradb"

shutdown

在操作系統(tǒng)中刪除test.ora文件

重新啟動(dòng)服務(wù)start.bat

net start "oraclewebassistant0"
net start "oracleorahome81tnslistener"
net start "oracleserviceoradb"

服務(wù)里oracleserviceoradb顯示已啟動(dòng),但用sql*plus無法連接,
顯示ora-01033: oracle initialization or shutdown in progress


解決方法:

先讓該數(shù)據(jù)文件脫機(jī),就可以打開數(shù)據(jù)庫
c:/>svrmgrl
svrmgrl>connect internal
svrmgrl>shutdown
svrmgrl>startup mount

--archivelog模式命令,文件名要大寫
svrmgrl>alter database datafile 'c:/test.ora' offline;

--noarchivelog模式命令
svrmgrl>alter database datafile 'c:/test.ora' offline drop;

svrmgrl>alter database open;


--查詢數(shù)據(jù)文件聯(lián)、脫機(jī)狀態(tài)
sql> select file#,name,status from v$datafile;

sql> drop tablespace test;

表空間已丟棄。


發(fā)表評論 共有條評論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 东安县| 琼中| 准格尔旗| 阿拉善盟| 元谋县| 耿马| 巧家县| 开封市| 永州市| 夏河县| 花莲市| 尉氏县| 宁阳县| 慈利县| 襄樊市| 石城县| 多伦县| 铜鼓县| 明星| 阿拉善右旗| 昌宁县| 临安市| 平泉县| 广州市| 伊宁市| 靖江市| 博爱县| 巩留县| 射阳县| 奉新县| 乾安县| 新巴尔虎左旗| 肃南| 紫金县| 上林县| 新昌县| 临邑县| 察雅县| 佛坪县| 阿尔山市| 辽阳县|