<<Back to Oracle RAC Main Page
Cloning Oracle RAC Database to Single Instance Database
Existing DB ORCL with 2 node (ORCL11 and ORCL12)
Closed DB: ORCLN
Step1: Add Static Listener Entry
Add Static Listener Entry in GRID_HOME/network/admin/listener.ora and reload the listener
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = ORCLN)
(ORACLE_HOME = /ora_app/product/19c/dbd1)
(SID_NAME = ORCLN)
)
)
lsnrctl reload LISTENER
LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 03-FEB-2026 09:14:16
Copyright (c) 1991, 2023, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
The command completed successfully
[+ASM1] lsnrctl status |grep -i ORCLN
Service "ORCLN" has 1 instance(s).
Instance "ORCLN", status UNKNOWN, has 1 handler(s) for this service...
Step2:Add TNS entry for ORCLN
add TNS entry for "ORCLN" in Oracle RDBMS Home $ORACLE_HOME/network/admin/tnsnames.ora
ORCLN =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = node1)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORCLN)
)
)
Step3: Create Password File
NOTE: Clone database password shoud be same as source database for rman duplicate to work
[ORCL11] orapwd file=orapwORCLN
Enter password for SYS:*******
[ORCL11] ls -lrt *ORCLN*
-rw-r----- 1 oracle oinstall 6144 Feb 3 09:20 orapwORCLN
Step4:Verify TNS Connectivity for ORCLN database
[ORCL11] sqlplus sys@ORCLN as sysdba
SQL*Plus: Release 19.0.0.0.0 - Production on Tue Feb 3 09:23:42 2026
Version 19.20.0.0.0
Copyright (c) 1982, 2022, Oracle. All rights reserved.
Enter password:
Connected to an idle instance.
Step5: Create Directory Structures for ORCLN
mkdir -p /ora_log/diag/rdbms/ORCLN/adump/
Step6: Create parameter file for ORCLN database
You need to carefully review the parameters of Source database and pre-create the directory structures for ORCLN as needed.
cat initORCLN.ora
*.audit_file_dest='/ora_log/diag/rdbms/ORCLN/adump/'
*.cluster_database=false
*.control_files='+DATA/ORCLN/cntrlORCLN.dbf','+ARCH/ORCLN/cntrlORCLN.dbf','+RECO/ORCLN/cntrlORCLN.dbf'
*.db_name='ORCLN'
*.memory_max_target=10G
*.memory_target=8G
*.db_file_name_convert='+DATA/orcl/datafile','+DATA/ORCLN','+DATA/orcl/DATAFILE','+DATA/ORCLN','+DATA/orcl/tempfile','+DATA/ORCLN'
*.log_file_name_convert='+DATA/orcl/onlinelog','+DATA/ORCLN/onlinelog','+RECO/orcl/onlinelog','+RECO/ORCLN/onlinelog'
*.db_file_create='+DATA'
Step7: Start ORCLN (auxiliary) instance in NOMOUNT mode
export ORACLE_SID=ORCLN
export ORACLE_HOME=/ora_app/product/19c/dbd1
export PATH=$PATH:$ORACLE_HOME/bin
[ORCLN] sqlplus "/as sysdba"
SQL*Plus: Release 19.0.0.0.0 - Production on Tue Feb 3 09:48:25 2026
Version 19.20.0.0.0
Copyright (c) 1982, 2022, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup nomount;
ORACLE instance started.
Total System Global Area 1.0737E+10 bytes
Fixed Size 13670496 bytes
Variable Size 6593445888 bytes
Database Buffers 4110417920 bytes
Redo Buffers 19881984 bytes
SQL>
SQL> show parameter convert
NAME TYPE
------------------------------------ ---------------------------------
VALUE
------------------------------
db_file_name_convert string
+DATA/orcl/datafile, +DATA/ORCLN,
+DATA/orcl/DATAFILE, +DATA/ORCLN
log_file_name_convert string
+DATA/orcl/onlinelog, +DATA/ORCLN
/onlinelog, +RECO/orcl/onlinelo
g, +RECO/ORCLN/onlinelog
pdb_file_name_convert string
Step8:connect with target and auxiliary database using rman
oracle@node1:~/ [ORCL11] rman target sys/*********@ORCL11 auxiliary sys/**************@ORCLN
Recovery Manager: Release 19.0.0.0.0 - Production on Tue Feb 3 10:00:53 2026
Version 19.20.0.0.0
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
connected to target database: orcl (DBID=3798554321)
connected to auxiliary database: ORCLN (not mounted)
Step9: Duplicate database
RMAN>
run
{
allocate channel tgt1 device type disk ;
allocate channel tgt2 device type disk ;
allocate auxiliary channel aux1 device type disk ;
duplicate target database to ORCLN from active database;
}
Successful completion message
contents of Memory Script:
{
Alter clone database open resetlogs;
}
executing Memory Script
database opened
Finished Duplicate Db at 03-FEB-26
ep How to Install Oracle RAC Database Software 12c Release2
Comments
Post a Comment