|
上完1Z0-052第5章:ASM实例
进行1Z0-053闪回三章
1Z0-052共19章(上完10章),1Z0-053共21章(上完2章)和1Z0-063多租户部分共9章(上完0章)
总共上完全部49章中的12章
如需绑定raw设备:
- select * from v$asm_diskgroup;
- create diskgroup highdata high redundancy
- failgroup fgroup1 disk 'ORCL:MYDISK6' name mydisk6
- failgroup fgroup2 disk 'ORCL:MYDISK7' name mydisk7
- failgroup fgroup3 disk 'ORCL:MYDISK8' name mydisk8;
-
- select * from v$asm_file where group_number=3;
- select * from v$asm_operation;
- select * from v$asm_attribute;
- select * from v$asm_template where group_number=1;
- select * from v$asm_alias where group_number=1 ;
- select * from v$asm_file where group_number=1 and file_number in (269,270);
- select * from v$asm_client;
- select * from v$asm_disk;
- select * from v$asm_disk where group_number=1;
- alter diskgroup data add failgroup data_0000
- disk '/dev/raw/raw16' size 990M
- failgroup data_0001 disk
- '/dev/raw/raw17' size 990M;
-
- alter diskgroup data drop disk data_0006 disk data_0007;
- alter diskgroup data undrop disks;
- ---
- create tablespace tbsasmhigh datafile '+HIGHDATA'
- size 5M ;
-
- drop tablespace tbsasmhigh;
-
- select * from dba_data_files;
-
- create tablespace tbsasmhigh2 datafile '+HIGHDATA/orcl/datafile/tbsasmhigh2.dbf'
- size 5M ;
-
- alter tablespace tbsasmhigh2 offline;
-
- alter database rename file '+HIGHDATA/orcl/datafile/tbsasmhigh2.dbf' to
- '+HIGHDATA/orcl/datafile/TBSASMHIGH2.257.940778913';
-
- alter tablespace tbsasmhigh2 online;
-
- create tablespace tbsasmhighfine datafile '+DATA(mytem1)/orcl/datafile/tbsasmhighfine.dbf'
- size 5M ;
-
- create tablespace tbsasmunfine datafile '+DATA(mytem2)/orcl/datafile/tbsasmunfine.dbf'
- size 5M ;
- select * from flashback_transaction_query;
- select * from v$transaction;
- select * from flashback_transaction_query f
- where f.logon_user='HR' and f.table_name='EMPLOYEES'
- order by commit_scn
- ;
-
- select t.row_movement
- from dba_tables t
- where t.owner='HR' and t.table_name='EMPLOYEES';
-
- alter system set resource_manager_plan='';
-
- select d.SUPPLEMENTAL_LOG_DATA_MIN,
- d.SUPPLEMENTAL_LOG_DATA_PK,
- d.SUPPLEMENTAL_LOG_DATA_UI,
- d.SUPPLEMENTAL_LOG_DATA_ALL
- from v_$database d;
-
- alter database add SUPPLEMENTAL LOG DATA;
复制代码
|
|