標籤:
1- 匯入資料庫的SID,如果沒有定義的話
export ORACLE_SID=database
2- 以作業系統認證串連資料庫
[[email protected] ~]$ sqlplus / as sysdbaSQL*Plus: Release 11.2.0.1.0 Production on Mon Dec 1 17:38:02 2014Copyright (c) 1982, 2009, Oracle. All rights reserved.Connected to an idle instance.
3- 啟動資料庫執行個體
SQL> startupORACLE instance started.Total System Global Area 3340451840 bytesFixed Size 2217952 bytesVariable Size 1828718624 bytesDatabase Buffers 1493172224 bytesRedo Buffers 16343040 bytesDatabase mounted.Database opened.
4- 關閉資料庫
SQL> shutdown immediate;Database closed.Database dismounted.ORACLE instance shut down.
5- 啟動獨佔模式
SQL> startup mount exclusive restrictORACLE instance started.Total System Global Area 3340451840 bytesFixed Size 2217952 bytesVariable Size 1828718624 bytesDatabase Buffers 1493172224 bytesRedo Buffers 16343040 bytesDatabase mounted.
6- 刪除資料庫
SQL> drop database;<br>Database dropped.Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing options
完成!
如何不使用DBCA在Oracle 11中刪除資料庫