Bo's Oracle Station

查看: 2349|回复: 0

课程第16/17次(2017-04-08星期六上下午)

[复制链接]

75

主题

115

帖子

2772

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
2772
发表于 2017-4-10 17:18:49 | 显示全部楼层 |阅读模式
上完1Z0-052第5章:ASM实例
进行1Z0-053闪回三章
1Z0-052共19章(上完10章),1Z0-053共21章(上完2章)和
1Z0-063多租户部分共9章(上完0章)
总共上完全部49章中的12章

如需绑定raw设备:
raw-to-asm.png
  1. select  * from v$asm_diskgroup;

  2. create diskgroup highdata high redundancy
  3. failgroup fgroup1 disk 'ORCL:MYDISK6' name mydisk6
  4.   failgroup fgroup2 disk 'ORCL:MYDISK7' name mydisk7
  5.    failgroup fgroup3 disk 'ORCL:MYDISK8' name mydisk8;

  6. select  * from v$asm_file  where group_number=3;

  7. select  * from v$asm_operation;

  8. select  * from v$asm_attribute;

  9. select  * from v$asm_template where group_number=1;

  10. select  * from v$asm_alias  where group_number=1  ;
  11. select  * from v$asm_file where group_number=1 and file_number in (269,270);

  12. select  * from v$asm_client;

  13. select  * from v$asm_disk;


  14. select  * from v$asm_disk where group_number=1;

  15. alter diskgroup data add failgroup data_0000
  16. disk '/dev/raw/raw16' size 990M
  17.    failgroup data_0001  disk
  18.    '/dev/raw/raw17' size 990M;
  19.    
  20.    alter diskgroup data drop disk data_0006 disk data_0007;
  21. alter diskgroup data undrop disks;

  22. ---
  23. create tablespace tbsasmhigh  datafile '+HIGHDATA'
  24. size 5M  ;

  25. drop tablespace tbsasmhigh;

  26. select   * from dba_data_files;

  27. create tablespace tbsasmhigh2  datafile '+HIGHDATA/orcl/datafile/tbsasmhigh2.dbf'
  28. size 5M  ;

  29. alter tablespace tbsasmhigh2 offline;

  30. alter database rename file '+HIGHDATA/orcl/datafile/tbsasmhigh2.dbf'  to
  31.   '+HIGHDATA/orcl/datafile/TBSASMHIGH2.257.940778913';
  32.   
  33.    alter tablespace tbsasmhigh2 online;
  34.    
  35.     create tablespace tbsasmhighfine  datafile '+DATA(mytem1)/orcl/datafile/tbsasmhighfine.dbf'
  36. size 5M  ;

  37.      create tablespace tbsasmunfine  datafile '+DATA(mytem2)/orcl/datafile/tbsasmunfine.dbf'
  38. size 5M  ;

  39. select  *  from flashback_transaction_query;

  40. select *  from v$transaction;

  41. select  *  from flashback_transaction_query f
  42. where f.logon_user='HR' and f.table_name='EMPLOYEES'
  43. order by commit_scn
  44. ;

  45. select  t.row_movement
  46.   from dba_tables t
  47.   where t.owner='HR' and t.table_name='EMPLOYEES';
  48.   
  49.   alter system set resource_manager_plan='';
  50.   
  51.   select  d.SUPPLEMENTAL_LOG_DATA_MIN,
  52.              d.SUPPLEMENTAL_LOG_DATA_PK,
  53.              d.SUPPLEMENTAL_LOG_DATA_UI,
  54.              d.SUPPLEMENTAL_LOG_DATA_ALL
  55.     from v_$database  d;
  56.    
  57.     alter database add SUPPLEMENTAL   LOG DATA;

复制代码



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-11-22 05:10 , Processed in 0.101832 second(s), 31 queries .

快速回复 返回顶部 返回列表