1.查看当前管理方式
[oracle@rac01 ~]$ srvctl config database -db orcl
Database unique name: orcl
Database name: orcl
Oracle home: /u01/app/oracle/product/19.3.0/db_1
Oracle user: oracle
Spfile: +DATA/ORCL/PARAMETERFILE/spfile.268.1099575253
Password file: +DATA/ORCL/PASSWORD/pwdorcl.256.1099574061
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: racdbpool
Disk Groups: FRA,DATA
Mount point paths:
Services: racdb
Type: RAC
Start concurrency:
Stop concurrency:
OSDBA group: dba
OSOPER group: oper
Database instances:
Configured nodes:
CSS critical: no
CPU count: 0
Memory target: 0
Maximum memory: 0
Default network number for database services:
Database is policy managed
2.停止数据库
[oracle@rac01 ~]$ srvctl stop database -db orcl
[oracle@rac01 ~]$
[oracle@rac01 ~]$
[oracle@rac01 ~]$ srvctl status database -db orcl
Instance orcl_1 is not running on node rac02
Instance orcl_2 is not running on node rac01
3.剔除数据库
[oracle@rac01 ~]$ srvctl remove database -db orcl
Remove the database orcl? (y/[n]) y
[oracle@rac01 ~]$ srvctl status database -db orcl
PRCD-1120 : The resource for database orcl could not be found.
PRCR-1001 : Resource ora.orcl.db does not exist