Professional Documents
Culture Documents
over the network. The article is for the scenario where ALL directory structure
s are the same on both the source and the destination database.
mkdir -p /ora11g/app/ora11g/admin/PRODDBR2/adump
mkdir -p /ora11g/app/ora11g/diag/rdbms/proddbr2/PRODDBR2/trace
mkdir -p /ora11g/app/ora11g/diag/rdbms/proddbr2/PRODDBR2/cdump
mkdir -p /ora11g/app/ora11g/diag/rdbms/proddbr2/PRODDBR2/trace
mkdir -p /oradata11g/oradata/PRODDBR2/
mkdir -p /ora11g/app/ora11g/flash_recovery_area/PRODDBR2/
Also create the directories for your datafiles and redo logfiles
?[Copy to clipboard]Download tnsnames.ora1
mkdir -p /oradata11g/oradata/PRODDBR2/ (in my case, it is already create
d earlier)
Create a bare minimum initialization parameter file
Add db_name=PRODDBR2 to initPRODDBR2.ora in $ORACLE_HOME/dbs. Since the SPFILE w
ill be brought from the production, and the directory structure is the same, the
other parameters can be ignored
Create the listener for remote logins
Create and start the listener for this instance
?[Copy to clipboard]Download listener.ora1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Generated by Oracle configuration tools.
SID_LIST_LISTENER_DEST =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = PRODDBR2)
(ORACLE_HOME = /ora11g/app/ora11g/product/11.2.0/dbhome_1)
(SID_NAME = PRODDBR2)
)
)
LISTENER_DEST =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.222)(PORT = 1521))
)
)
ADR_BASE_LISTENER = /ora11g/app/ora11g
Startup in nomount mode
?[Copy to clipboard]Download tnsnames.ora1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$ sqlplus "/ as sysdba"
SQL*Plus: Release 11.2.0.1.0 Production on Tue Jul 13 16:08:36 2010
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.