============================================
RMAN을 이용한 Duplicate 복제 DB 생성
============================================
[root@lnx04 /]# mkdir -p /data/reorcl
[root@lnx04 /]# chown -R oracle.oinstall /data/
[oracle@lnx04 dbs]$ cp initorcl.ora initreorcl.ora
[oracle@lnx04 reorcl]$ mkdir -p bdump cdump udump adump pfile
[oracle@lnx04 dbs]$ vi initreorcl.ora
[oracle@lnx04 dbs]$ ss
[oracle@lnx04 ~]$ export ORACLE_SID=reorcl
[oracle@lnx04 ~]$ echo $ORACLE_SID
reorcl
[oracle@lnx04 ~]$ sqlplus sys/oracle as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Tue Oct 13 12:27:21 2015
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL*Plus: Release 11.2.0.1.0 Production on Tue Oct 13 12:28:35 2015
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SYS@reorcl>startup nomount
ORACLE instance started.
Total System Global Area 1046224896 bytes
Fixed Size 1341140 bytes
Variable Size 318769452 bytes
Database Buffers 721420288 bytes
Redo Buffers 4694016 bytes
database opened
Finished Duplicate Db at 2015-10-13:12:45:53
RMAN> exit
Recovery Manager complete.
[oracle@lnx04 reorcl]$ echo $ORACLE_SID
reorcl
[oracle@lnx04 reorcl]$ ss
SQL*Plus: Release 11.2.0.1.0 Production on Tue Oct 13 12:46:10 2015
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SYS@reorcl>select instance_name, status from v$instance;
INSTANCE_NAME STATUS
---------------- ------------
reorcl OPEN
SYS@reorcl>select name from v$datafile;
NAME
------------------------------------------------------------------------------------------------------------------------------------------------------
/data/reorcl/system01.dbf
/data/reorcl/sysaux01.dbf
/data/reorcl/undotbs01.dbf
/data/reorcl/users01.dbf
/data/reorcl/example01.dbf
/data/reorcl/rman_tbs.dbf
6 rows selected.
SYS@reorcl>select name from v$tablespace;
NAME
------------------------------
SYSTEM
TEMP
SYSAUX
UNDOTBS1
USERS
EXAMPLE
RMAN_TBS
7 rows selected.
'스터디북' 카테고리의 다른 글
[10/13] 실습 - 4 Flashback query, versions query, transaction query (0) | 2015.10.13 |
---|---|
[10/13] 실습 - 3 Backupset의 병렬화 (0) | 2015.10.13 |
[10/13] 실습 - 1 RMAN - current redolog file (0) | 2015.10.13 |
[10/13] 정리 (0) | 2015.10.13 |
[10/12] RMAN 복구 실습 - 4 (0) | 2015.10.12 |