ORA 01109 資料庫未開啟

2022-01-12 12:45:24 字數 1618 閱讀 6898

在此之前做了這樣一操作,在plsql建立了2表空間,由於裝的是oracle精簡版所以建立表空間大小超過4g就不能建立,然後我就手動把錶空間給刪除了,**站也給刪了,問題就出現了,一直都報資料庫未開啟。

------解決方案--------------------

造成上述問題的原因是誤把'f:\oradb.def'這個資料檔案刪掉了,這種刪法是不正常的,如果刪掉了使用者及表空間,然後再把資料檔案刪除應該是沒問題的,但這次只是把資料檔案刪掉了,使用者及表空間還在。

解決方法:

1) mount資料庫:

startup mount ;

2) offline drop資料檔案:

alter database datafile '' offline drop;

3) 開啟資料庫:

alter database open;ps:這時候再open資料庫就ok了

4) 刪除表空間:

drop tablespace including contents;

ps:如果是誤刪的,只需重建表空間即可。

具體操作:

sql> startup mount

ora-01081: 無法啟動已在執行的 oracle - 請首先關閉它

sql> shutdown immediate

ora-01109: 資料庫未開啟

已經解除安裝資料庫。

oracle 例程已經關閉。

sql> startup mount

oracle 例程已經啟動。

total system global area 612368384 bytes

fixed size 1250428 bytes

variable size 167775108 bytes

database buffers 436207616 bytes

redo buffers 7135232 bytes

資料庫裝載完畢。

sql> alter database datafile 'f:\oradb.def'offline drop

2 ;

資料庫已更改。

sql> alter database open;

資料庫已更改。

sql> drop tablespace oradb including contents;

表空間已刪除。

------解決方案--------------------

你做什麼操作時報:一直都報資料庫未開啟

------解決方案--------------------

解決了嗎?

------解決方案--------------------

沒用過精簡版, 精簡版也應該有alter檔案吧? 把alert檔案裡面的內容弄出來。

另:你如何手動刪除表空間的,是直接作業系統刪除?

有點點思路: startup mount ;

alter database datafile '' offline drop;

alter database open;

還有是 精簡版資料庫不能檔案不能超過4g? 還是 你的磁碟是fat格式。。

ORA 01109 資料庫未開啟 解決

本文 執行drop user user name cascade 刪除使用者及使用者,然後又刪除了.dbf檔案,想重新建立使用者然後執行sql指令碼時,出現標題所示的問題,解決方法如下 sql startup mount ora 01081 無法啟動已在執行的 oracle 請首先關閉它 sql s...

ORA 01109 資料庫未開啟 解決

本文 執行drop user user name cascade 刪除使用者及使用者,然後又刪除了.dbf檔案,想重新建立使用者然後執行sql指令碼時,出現標題所示的問題,解決方法如下 sql startup mount ora 01081 無法啟動已在執行的 oracle 請首先關閉它 sql s...

ORA 01109 資料庫未開啟 解決

sql startup mount ora 01081 無法啟動已在執行的 oracle 請首先關閉它 sql shutdown immediate ora 01109 資料庫未開啟 已經解除安裝資料庫。oracle 例程已經關閉。sql startup mount oracle 例程已經啟動。to...