Convert Oracle RAC to stand-alone database

Source: Internet
Author: User

1. Stop database and CRS on both node
$ srvctl Stop database-d mydb
# Crsctl Stop CRS

2. Turn off RAC

Sql> Startup
ORA-29702 error occurred in Cluster Group Service operation

Relink with the RAC off.
$ cd $ORACLE _home/rdbms/lib
$/usr/ccs/bin/make-f ins_rdbms.mk Rac_off

Relinking Oracle
$ make-f ins_rdbms.mk ioracle

# # OR, both working fine
$ cd $ORACLE _home/bin
$ relink Oracle

If ASM Instance Exist, run below command as root
#/oracle/product/10.2.0/db/bin/localconfig Delete
#/oracle/product/10.2.0/db/bin/localconfig Add

3. Parameter (pfile/spfile) & Database Changes
Sql> Startup
sql> ALTER DATABASE disable thread 2;
Sql> alter system set remote_listener= ';

3a. Remove unwanted logfile
Sql> Select thread#, group# from V$log;
sql> ALTER DATABASE drop logfile Group 3;
sql> ALTER DATABASE drop logfile Group 4;

3b. Remove unwanted tablespace
Sql> drop tablespace UNDOTBS2 including contents and datafiles;

3c. Rename instance name.
Sql> alter system set instance_name=<new_name> Scope=spfile;
sql> shutdown Immediate
Sql> Startup
-Change your ORACLE_SID environment

4. Run $ORA _crs_home/install/rootdelete.sh on both node
-This'll stop and remove all CRS startup related file

5. Remove $ORA _crs_home binary using Clusterware OUI Installer
-Ignore any error if 2nd node already down
-RM-RF $ORA _crs_home

6. Modify Listener File
$ VI $ORACLE _home/network/admin/listener.ora

6a. Modify Tnsname File
$ VI $ORACLE _home/network/admin/tnsnames.ora

You should also change the cluster_database in the initialization parameter to False

========================================================

Oracle expert QQ Group: 60632593 (Full), 60618621, 23145225

Blog: blog.csdn.net/newhappy2008

========================================================

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.