0% found this document useful (0 votes)
279 views6 pages

Oracle 19c Convert RAC To Non-RAC Manually

The document provides steps to manually convert an Oracle RAC database to a non-RAC single instance database. It involves verifying the current configuration, stopping and renaming instances, modifying parameter files, deleting unnecessary tablespaces and log files, and restarting as a single instance database.

Uploaded by

sidd_aish
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
279 views6 pages

Oracle 19c Convert RAC To Non-RAC Manually

The document provides steps to manually convert an Oracle RAC database to a non-RAC single instance database. It involves verifying the current configuration, stopping and renaming instances, modifying parameter files, deleting unnecessary tablespaces and log files, and restarting as a single instance database.

Uploaded by

sidd_aish
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Oracle 19c RAC

Convert RAC to Non-RAC


Manually
Part 1: Conversion
Connect to database

.oraenv
CONVERTM1

Launch DBUA to verify its RAC Database

dbua
Verify Nodes/Instance/Database

SQL> select distinct


INSTANCE_NUMBER
, INSTANCE_NAME
, HOST_NAME
, NAME as DB_NAME
, OPEN_MODE
from gv$database, gv$instance;
Verify Cluster Parameters

SQL> show parameter cluster;


Verify if Database is running on pfile or spfile

SQL> show parameter spfile;


If spfile, create pfile from spfile

SQL> create pfile from spfile;


Check Remote Connectivity via SQL Developer or any Client

Stop the Database

srvctl stop database -d CONVERTM


srvctl status database -d CONVERTM
Copy pfile with only database name (Not Instance Name)

cd $ORACLE_HOME/dbs

cp initCONVERTM1.ora initCONVERTM.ora
Remove all parameters related to Instance 2 from pfile.

Rename Instance 1 parameters as *

Change cluster_database to false

Remove Database from Cluster Configuration

srvctl remove database -db CONVERTM


Add Database back as Single Instance

srvctl add database -db CONVERTM


-oraclehome $ORACLE_HOME -dbtype SINGLE
-node db1
Start the Database

srvctl start database -db CONVERTM


Add entry in /etc/oratab if it’s not already present

gedit /etc/oratab

CONVERTM:/dbi/oracle/V193Database:N

Set oraenv to new instance/database

.oraenv
CONVERTM
Launch DBUA to verify its Single Instance Database

dbua

Part 2: Database Cleanup


sqlplus / as sysdba

SQL> select thread#, group# from v$log order by thread#;


SQL> alter database disable thread 2;
SQL> alter database drop logfile group 3;
SQL> alter database drop logfile group 4;
SQL> select thread#, group# from v$log order by thread#;

Drop UNDOTBS2
SQL> drop tablespace UNDOTBS2 including contents and
datafiles;

Create spfile from pfile;

SQL> show parameter spfile;

SQL> create
spfile='+ASM1/CONVERTM/PARAMETERFILE/s
pfileCONVERTM' from pfile;
Create spfile from pfile;

SQL> shut immediate;

Delete old spfile from ASM - optional

ASMCMD> cd +ASM1/CONVERTM/PARAMETERFILE
ASMCMD> ls –l
ASMCMD> rm spfile.344.1098378413
ASMCMD> ls –l

Delete redologs - optional

ASMCMD> cd +ASM1/CONVERTM
ASMCMD> ls –l
ASMCMD> rm redo03.log redo04.log
ASMCMD> ls –l

Post Verification - Start the Database


SQL> startup;

SQL> show parameter spfile;


SQL> show parameter cluster;
SQL> select thread#, group# from v$log
order by thread#;

Check Remote Connectivity

Fix Password file

ASMCMD> cd +ASM1/CONVERTM/PASSWORD

ASMCMD> pwcopy --dbuniquename CONVERTM -f


+ASM1/CONVERTM/PASSWORD/pwdconvertm.346.10983781
01 +ASM1/CONVERTM/PASSWORD/orapwCONVERTM

ASMCMD> ls –l

Delete old password file - optional

ASMCMD> rm pwdconvertm.346.1098378101
ASMCMD> ls –l

You might also like