Баазыг устгах (drop database manually)

dbca комманд ашиглаад баазыг хялбархан устгаж болно. Харин танд зөвхөн коммандын мөр байгаа тохиолдолд хэрхэн устгах талаар сонирхуулъя.

[[email protected] ~]$ sqlplus / as sysdba
SQL> select name from v$datafile;

NAME
--------------------------------------------------------------------------------
/u01/app/oracle/oradata/orcl/system01.dbf
/u01/app/oracle/oradata/orcl/sysaux01.dbf
/u01/app/oracle/oradata/orcl/undotbs01.dbf
/u01/app/oracle/oradata/orcl/users01.dbf

SQL>
SQL>
SQL> shu immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>
SQL> startup nomount restrict;
ORACLE instance started.

Total System Global Area  217157632 bytes
Fixed Size		    2251816 bytes
Variable Size		  159384536 bytes
Database Buffers	   50331648 bytes
Redo Buffers		    5189632 bytes
SQL>
SQL> alter database mount;

Database altered.

SQL>
SQL> drop database;

Database dropped.

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>

[[email protected] ~]$ rm -Rf /u01/app/oracle/oradata/orcl/
[[email protected] ~]$ rm -Rf /u01/app/oracle/admin/orcl/
[[email protected] ~]$ rm -Rf /u01/app/oracle/fast_recovery_area/orcl/

Үүний дараагаар /etc/oratab файлаас уг баазын харгалзах мөрийг устгана.