|
本帖最后由 botang 于 2017-5-25 23:08 编辑
上完1Z0-053第20章
开始1Z0-053第19章传送数据库(win32->linux64)
做完11b和15两个实验
1Z0-052共19章(上完12章),1Z0-053共21章(上完12章)和1Z0-063多租户部分共9章(上完0章)
总共上完全部49章中的24章
先备份:
- --源头把备份优化关掉,或用force语法
- run {
- allocate channel c1 device type disk format '/home/oracle/backup/%U';
- allocate channel c2 device type disk format '/home/oracle/backup/%U';
- allocate channel c3 device type disk format '/home/oracle/backup/%U';
- allocate channel c4 device type disk format '/home/oracle/backup/%U';
- allocate channel c5 device type disk format '/home/oracle/backup/%U';
- allocate channel c6 device type disk format '/home/oracle/backup/%U';
- allocate channel c7 device type disk format '/home/oracle/backup/%U';
- allocate channel c8 device type disk format '/home/oracle/backup/%U';
- backup database plus archivelog force;
- backup spfile;
- backup current controlfile;
- }
复制代码 mydb.rcv:
- run{
- duplicate target database to mydb
- backup location '/home/oracle/backup'
- nofilenamecheck
- spfile
- set
- control_files='/u01/app/oracle/oradata/mydb/control01.ctl','/u01/app/oracle/oradata/db11g/control02.ctl','/u01/app/oracle/oradata/db11g/control03.ctl'
- set
- db_file_name_convert='+DATA/orcl/datafile/example.258.880451611','/u01/app/oracle/oradata/db11g/example01.dbf','+DATA/orcl/datafile/users.259.880451615','/u01/app/oracle/oradata/db11g/users01.dbf','+DATA/orcl/datafile/undotbs1.256.880451607','/u01/app/oracle/oradata/db11g/undotbs01.dbf','+DATA/orcl/datafile/sysaux.257.880451605','/u01/app/oracle/oradata/db11g/sysaux01.dbf','+DATA/orcl/datafile/system.265.880451605','/u01/app/oracle/oradata/db11g/system01.dbf'
- set
- log_file_name_convert='+DATA/orcl/onlinelog/group_1.270.880453135','/u01/app/oracle/oradata/db11g/redo01a.log','+FRA/orcl/onlinelog/group_1.276.880453137','/u01/app/oracle/oradata/db11g/redo01b.log','+DATA/orcl/onlinelog/group_3.272.880453141','/u01/app/oracle/oradata/db11g/redo03a.log','+FRA/orcl/onlinelog/group_3.274.880453141','/u01/app/oracle/oradata/db11g/redo03b.log','+DATA/orcl/onlinelog/group_2.271.880453137','/u01/app/oracle/oradata/db11g/redo02a.log','+FRA/orcl/onlinelog/group_2.275.880453139','/u01/app/oracle/oradata/db11g/redo02b.log'
- set
- audit_file_dest='/u01/app/oracle/admin/mydb/adump'
- set
- db_create_file_dest=''
- set db_recovery_file_dest='/u01/app/oracle/flash_recovery_area'
- }
复制代码 mydb2.rcv:
- run {
- allocate auxiliary channel c1 device type disk;
- allocate auxiliary channel c2 device type disk;
- allocate auxiliary channel c3 device type disk;
- allocate auxiliary channel c4 device type disk;
- allocate auxiliary channel c5 device type disk;
- allocate auxiliary channel c6 device type disk;
- allocate auxiliary channel c7 device type disk;
- allocate auxiliary channel c8 device type disk;
- duplicate database to mydb2
- backup location '/home/oracle/backup'
- nofilenamecheck
- db_file_name_convert '+DATA/orcl/datafile','/u01/app/oracle/oradata/mydb2'
- logfile
- group 1 ('/u01/app/oracle/oradata/mydb2/redo01.log') size 50M,
- group 2 ('/u01/app/oracle/oradata/mydb2/redo02.log') size 50M,
- group 3 ('/u01/app/oracle/oradata/mydb2/redo03.log') size 50M;
- spfile
- parameter_value_convert '+DATA','/u01/app/oracle/oradata/mydb2','+FRA','/u01/app/oracle/flash_recovery_area','/u01/app/oracle/admin/orcl/adump','/u01/app/oracle/admin/mydb2/adump'
- set
- control_files='/u01/app/oracle/oradata/mydb2/control01.ctl','/u01/app/oracle/oradata/mydb2/control02.ctl','/u01/app/oracle/oradata/mydb2/control03.ctl';
- }
复制代码 跨平台迁移后:
- SELECT COUNT(*) FROM obj$ WHERE status IN (4, 5, 6);
- select * from dba_objects where status <> 'VALID'
- and object_type like 'PACKAGE%';
-
- alter package olapsys.dbms_odm compile;
复制代码 11b(11b_当前控制文件和日志文件全部损坏_不完全恢复_用控制文件脚本)实验结果:
bclresult-11b.zip
(61.09 KB, 下载次数: 615)
|
|