准备清理环境时发现deleteDatabase告警,如下图
SYS@orcl> startup;
ORACLE instance started.
Total System Global Area 1.6106E+10 bytes
Fixed Size 8639712 bytes
Variable Size 2449476384 bytes
Database Buffers 1.3623E+10 bytes
Redo Buffers 24911872 bytes
Database mounted.
Database opened.
SYS@orcl> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
orcl:/home/oracle@hydb> dbca -silent -deleteDatabase -sourceDB orcl
[FATAL] [DBT-10201] Delete database operation cannot be performed.
CAUSE: There are no databases present on the system.
orcl:/home/oracle@hydb>
处理办法,在/etc/oratab中增加一条orcl的记录
orcl:/home/oracle@hydb> echo "orcl:/u01/app/oracle/product/12.2.0/db_1:Y" >> /etc/oratab
再次删除实例正常
orcl:/home/oracle@hydb>dbca -silent -deleteDatabase -sourceDB orcl
Enter SYS user password:
Connecting to database
4% complete
9% complete
14% complete
19% complete
23% complete
28% complete
47% complete
Updating network configuration files
52% complete
Deleting instance and datafiles
76% complete
100% complete
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/orcl1.log" for further details.
orcl:/home/oracle@hydb>