手动删除数据库

手动删除数据库

删除admin目录下相关文件

删除adump,dpdump,pfile,scripts子目录下的所有文件

cd  /u01/app/oracle/admin/orcl/adump;rm -rf *
cd  /u01/app/oracle/admin/orcl/dpdump;rm -rf *
cd  /u01/app/oracle/admin/orcl/pfile;rm -rf *  (如init.ora.47201325517)
cd  /u01/app/oracle/admin/orcl/scripts;rm -rf *

删除/u01/diag/rdbms目录下相关文件

[root@bj orcl]# pwd
/u01/app/oracle/diag/rdbms/orcl
[root@bj orcl]# ls
i_1.mif  orcl
[root@bj orcl]# rm -rf *

删除/u01/oradata/目录下相关文件

/u01/oradata/orcl:
control01.ctl         control02.ctl           example01.dbf
redo01.log            redo02.log              redo03.log
sysaux01.dbf          system01.dbf            temp01.dbf
undotbs01.dbf         users01.dbf

删除dbs目录下相关文件

rm -f  /u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora
rm -f /u01/app/oracle/product/11.2.0/db_1/dbs/lkORCL
rm -f /u01/app/oracle/product/11.2.0/db_1/dbs/hc_dg.dat
rm -f /u01/app/oracle/product/11.2.0/db_1/dbs/orapworcl
rm -f /u01/app/oracle/product/11.2.0/db_1/dbs/initorcl.ora