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 Deinstall Oracle Clusterware Home ManuallyOracle
- Create database manuallyDatabase
- How To Drop, Create And Recreate DB Control In A 10g DatabaseDatabase
- Drop DatabaseDatabase
- How to Relink Oracle Database SoftwareOracleDatabase
- How to Shrink Undo Segment In Oracle DatabaseOracleDatabase
- How to purge the Oracle Database Recycle BinOracleDatabase
- How To Install An Oracle Database In An Active/Passive Configuration Without RAC? [ID 734361.1]OracleDatabase
- Oracle 10g新增DROP DATABASE命令Oracle 10gDatabase
- How to create and relocate an 11gr2 RAC DATABASE SERVICEDatabase
- How to find Master Node in Oracle RAC(zt)ASTOracle
- Manually Backup - Restore or Clone a Database to Another Node [ID 562556.1]RESTDatabase
- How to Quiesce a DatabaseUIDatabase
- How To Efficiently Drop A Table With Many Extents
- How to check whether the current database in using Oracle optionsDatabaseOracle
- [doc]How To Efficiently Drop A Table With Many Extents
- How to Perform a Healthcheck on the DatabaseORMDatabase
- How to enable the flashback database:Database
- How a Database Is Mounted (293)Database
- Oracle DataBase單例項遷移到Oracle RACOracleDatabase單例
- How to Create Oracle Database QoS Management Administrator AccountsOracleDatabase
- Create RAC Standby Database for RAC Primary DatabaseDatabase
- flashback drop/query/table/database/archiveDatabaseHive
- alter database drop datafile 與 drop tablespace file 的區別Database
- Database Testing: How to Regression Test a Relational DatabaseDatabase
- 11.2.0.2管理Oracle RAC One Node DatabaseOracleDatabase
- How to Perform a Health Check on the DatabaseORMDatabase
- [原創] How to Quiesce a DatabaseUIDatabase
- How a Standby Database Is Mounted (295)Database
- How a Clone Database Is Mounted (296)Database
- How to check Database corrupt BlockDatabaseBloC
- How does one rename a database?Database
- How To Deal With Split Brain In Oracle 19c RacAIOracle
- drop database---ora-01586Database
- Oracle RAC Database 11.1.0.6監聽故障案例OracleDatabase
- [轉]How to release space from databaseDatabase
- How to move progress database to different OSDatabase
- How a Database Is Quiesced (331)DatabaseUI