프린트 하기

 

OS환경 : Oracle Linux 6.8 (64bit)

 

DB 환경 : Oracle Database 12.2.0.1

 

방법 : 오라클 drop database 데이터베이스 삭제

 

 

 

 

DB 정상 종료

 

1
2
3
4
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.

 

DB exclusive restrict 모드로 마운트

1
2
3
4
5
6
7
8
9
SQL> startup mount exclusive restrict
ORACLE instance started.
 
Total System Global Area  805306368 bytes
Fixed Size            8625856 bytes
Variable Size          314573120 bytes
Database Buffers      478150656 bytes
Redo Buffers            3956736 bytes
Database mounted.

 

DB 삭제

1
2
3
4
5
SQL> drop database;
 
Database dropped.
 
Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

 

확인

1
2
3
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/oracle/app/oracle/product/12.2.0/dbhome_1/dbs/initORA12.ora'

확실하게 pfile 까지 삭제된 것을 확인할 수 있음

 

 

 

참조 : 

https://dba.stackexchange.com/questions/144602/how-to-drop-oracle-12c-instance-on-linux

https://docs.oracle.com/database/121/SQLRF/statements_8010.htm#SQLRF01513