How to drop Oracle RAC database manually?
Hi Friends,
Today we are discussing about how to drop Oracle RAC database with Oracle RAC instances manually.
Take Example:
Our Oracle RAC database name is RACDB
Our Oracle RAC instances are 2 and both names RAC1 and RAC2.
Dropping Oracle RAC database step by step as follows:
1) First use command line and Stop database using srvctl command.
srvctl stop database -d RACDB
2) Now remove the database entry from crs (Cluster Ready Services)
srvctl remove instance -d RACDB -i RAC1
srvctl remove instance -d RACDB -i RAC2
srvctl remove database -d RACDB
3) After finishing above steps, Start the database on first instance
using sqlplus.
SQL> startup
SQL> alter system set cluster_database=false scope=spfile;
SQL> alter system set cluster_database_instances=1 scope=spfile;
SQL> alter database disable thread 2;
4) Delete the unwanted thread and redo logfiles. Thread 1 is for active instance and other is for another instance. Drop all redo group of other thread. Ex: Group 4,5,6 are for other thread then drop as follows.
SQL> select thread#, group# from v$log;
SQL> alter database drop logfile group 4;
SQL> alter database drop logfile group 5;
SQL> alter database drop logfile group 6;
5) Drop the unwanted undo tablespace
SQL> drop tablespace UNDOTBS2 including contents and datafiles; create pfile from spfile;
SQL> shut immediate
After shutdowning Oracle database kindly ensure to “shutdown immediate” command should need to use. Don’t use “shutdown abort”
7) Now start database again in mount stage
SQL>startup mount restrict
Drop database
SQL>drop database;
Your Oracle RAC database will be dropped with Oracle RAC instance smoothly.
All the best.
Regards,
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/90618/viewspace-695836/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- How To Deal With Split Brain In Oracle 19c RacAIOracle
- [20221222]How to Enable and Disable Database Options in oracle 11g.txtDatabaseOracle
- Disable Database Audit In Oracle 19c RAC-20220111DatabaseOracle
- How To Deal With Split Brain In Oracle 19c Rac-202203AIOracle
- Oracle Database 19c(19.9) RAC On RedHat 8.3 Using VirtualBox and MacBookOracleDatabaseRedhatMac
- PostgreSQL DBA(138) - PG 13(Drop database force)SQLDatabase
- Manually Evolve and Accept SQL PLAN BASELINES in Oracle 12cSQLOracle
- Oracle Database 12c RAC損壞ocr和votedisk恢復實驗OracleDatabase
- How to Collect Diagnostics for Database Hanging Issues (Doc ID 452358.1)Database
- Oracle clone databaseOracleDatabase
- ORACLE database vaultOracleDatabase
- oracle RACOracle
- Oracle RAC啟動歸檔時需要設定CLUSTER_DATABASE引數嗎?OracleDatabase
- Oracle Database Cloud - Database as a Service Quick StartOracleDatabaseCloudUI
- Oracle RAC Cache Fusion 系列十七:Oracle RAC DRMOracle
- 6、MySQL刪除資料庫(DROP DATABASE語句)MySql資料庫Database
- Oracle 11.2 DataGuard RAC To RAC搭建Oracle
- Oracle RAC CacheFusion 系列十五:Oracle RAC CRServer Part TwoOracleServer
- Oracle Physical Database LimitsOracleDatabaseMIT
- Oracle Database Scheduler整理OracleDatabase
- ORACLE RAC clusterwareOracle
- Oracle RAC Cache Fusion系列十八:Oracle RAC Statisticsand Wait EventsOracleAI
- How Oracle Store Number internal(zt)Oracle
- Oracle RAC Cache Fusion 系列十四:Oracle RAC CR Server Part OneOracleServer
- Oracle RAC Cache Fusion 系列十:Oracle RAC Enqueues And Lock Part 1OracleENQ
- 【RAC】Oracle RAC如何修改心跳網路Oracle
- Oracle 12.2 使用Database Link優化Standby Database WorkloadOracleDatabase優化
- oracle rac 增加磁碟Oracle
- Oracle RAC Wait EventsOracleAI
- HowTo Restore RMAN Disk backups of RAC Database to Single Instance On Another NoRESTDatabase
- 深入解析 oracle drop table內部原理Oracle
- 【RAC】Oracle rac 如何修改公網及vipOracle
- How to Install EMC PowerPath on Oracle VM 3.4Oracle
- Oracle 19c Concepts(01):Introduction to Oracle DatabaseOracleDatabase
- Oracle 19c Concepts(13):Oracle Database InstanceOracleDatabase
- Oracle RAC Cache Fusion 系列九:Oracle RAC 分散式資源管理(二)Oracle分散式
- Oracle RAC Cache Fusion 系列八:Oracle RAC 分散式資源管理(一)Oracle分散式
- Oracle DG Standby Database型別OracleDatabase型別
- Oracle DG建立Physical Standby DatabaseOracleDatabase