Documentos de Académico
Documentos de Profesional
Documentos de Cultura
để Duplicate Database
Trong thực tế có rất nhiều trường hợp
chúng ta cần phải Duplicate Database
(Clone DB). Chẳng hạn như chúng ta cần
DB để test chương trình mới, sử dụng để
cho developer, dùng chạy reports,...
- DB nguồn: orcl
+ Archive Mode
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning and Data Mining options
SQL>
- Để tìm hiểu cấi hình Oracle Net, vui lòng xem ở đây.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning and Data Mining options
File created.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning and Data Mining options
[oracle@labs ~]$
[oracle@labs ~]$ ls -lh /u01/oravn_backup/initoravn.ora
-rw-r--r-- 1 oracle dba 1.1K Apr 27 09:49 /u01/oravn_backup/initoravn.ora
[oracle@labs ~]$
-Lưu ý: tạo các đường dẫn tương ứng trong file trên:
[oracle@labs ~]$ mkdir -p /u01/app/oracle/admin/oravn/adump
[oracle@labs ~]$ mkdir -p /u01/app/oracle/admin/oravn/bdump
[oracle@labs ~]$ mkdir -p /u01/app/oracle/admin/oravn/cdump
[oracle@labs ~]$ mkdir -p /u01/app/oracle/admin/oravn/udump
[oracle@labs ~]$ mkdir -p /u01/app/oracle/oradata/oravn
Lưu ý:
+ Trên Linux và Unix, tên file phân biệt chữ Hoa và chữ thường.
+ Tên và vị trí pwfile phải nằm đúng thư mục qui ước tùy theo OS.
File created.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning and Data Mining options
[oracle@labs ~]$
RMAN>
RMAN> list backup ;
RMAN>
RMAN> exit
RMAN>
}
executing Memory Script
}
executing Memory Script
database dismounted
Oracle instance shut down
database opened
Finished Duplicate Db at 27-APR-09
RMAN> exit
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning and Data Mining options
SQL> select name from v$database ;
NAME
---------
ORAVN
COUNT(*)
----------
107
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning and Data Mining options
[oracle@labs _backup]$
WELcome to ORAVN !!