0% found this document useful (0 votes)
2 views

Database Duplicate

The document outlines the prerequisites and steps for duplicating an Oracle database, including necessary configurations and commands. It details the process for stopping the old server, copying files, and starting the new database, along with potential error solutions. Key components include checking database parameters, file locations, and ensuring proper setup of Oracle Home and Base directories.

Uploaded by

raisulg.kccl
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Database Duplicate

The document outlines the prerequisites and steps for duplicating an Oracle database, including necessary configurations and commands. It details the process for stopping the old server, copying files, and starting the new database, along with potential error solutions. Key components include checking database parameters, file locations, and ensuring proper setup of Oracle Home and Base directories.

Uploaded by

raisulg.kccl
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Database Duplicate:

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

Prerequisit:
==================

0. Sys User ID Password :


1. Host Name : tareq-13
2. User Name : tareq
3. IP Address : 192.168.3.13
4. Database Installation Location : [HDD Drive Leter Order must be same as
Source]
Software Base & Home : [HKEY_LOCAL_MACHINE]\SOFTWARE\ORACLE
: [SQL Command]
var OracleHome varchar2(100);
var OracleBase varchar2(100);
EXEC
dbms_system.get_env('ORACLE_HOME', :OracleHome) ;
EXEC
dbms_system.get_env('ORACLE_BASE', :OracleBase) ;
PRINT OracleHome
PRINT OracleBase
5. Oracle Software Version : [Oracle_Home\bin\sqlplus.exe login as sys
=> see the banner]
: select banner from v$version
6. Global Name, Database Name, : select * from global_name; select name
from v$database;
Service Name & SID : select name from v$services; select
instance_name from v$instance;

7. Check CDB Status & Name : SELECT CDB FROM V$DATABASE; SELECT NAME
FROM V$CONTAINERS;

8. Datafile Location: : select name from v$datafile;

9. Check SGA, PGA : show parameter sga; show parameter pga;

10. Check & Create SPFile & PFile : Show parameter spfile; Show parameter
pfile; create pfile from spfile;

11. Check FRA & Archive log list : Show parameter reco; archive log list;

12. Check & Create PWD File : [\app\oracle\product\version\home_dir\


database\PWD[SID].ORA]

13. Install New Database according to the avobe information.

Steps:
========================

1. Stop Old Server Database.

2. Copy Old app folder to New Server.

2. Stop New Database: force shutdown


2. Create a Backup of new Database APP Folder

3. Copy Password & SP File from old database to new New Database:
[\app\oracle\product\version\home_dir\database\PWD[SID].ORA]
[\app\oracle\admin\[SID]\pfile\SPFILE[SID].ORA]
4. Startup

[May be no Errors]

5. Shutdown Immediate

6. Copy Old oradata folders to new Database;

7. Backup new Server fast_recovery_area for backup

* Oracle ORA-03113: end-of-file on communication channel


Solution-1. Reconnect with SQLPLUS and run the command again.

Solution-2.
startup mount;
Show parameter db_recovery_file_dest_size;
alter system set db_recovery_file_dest_size = 75G scope=both;

Solution-3.
startup nomount
alter database mount;
alter database clear unarchived logfile group 1;
alter database clear unarchived logfile group 2;
alter database clear unarchived logfile group 3;
shutdown immediate
startup

* Oracle BASE: it means root directory of Oracle Product Installed in the System.
multiple Oralce version may have single base.
* Oracle Home: it means the home directory of oracle product. multiple Oralce
version may have multiple home.

You might also like