|
- select group_number , name from v$asm_diskgroup;
- select * from v$asm_template where group_number=2;
复制代码
- [oracle@station17 ~]$ . oraenv
- ORACLE_SID = [orcl] ? +ASM
- The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/grid is /u01/app/oracle
- [oracle@station17 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 17 20:58:03 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysasm
- Connected.
- SQL> alter diskgroup data add template idp1 attributes ( high fine hot mirrorhot ) ;
- Diskgroup altered.
- SQL>
复制代码 在数据库实例处创建表空间:
- create tablespace tbsidp1 datafile '+Data(idp1)/orcl/tbsidp1.dbf' size 5M ;
复制代码 在ASM实例中验证high fine hot hot:
- select * from v$asm_alias a
- where lower(a.name)='tbsidp1.dbf';
-
- --272
- select * from v$asm_file where file_number=272;
复制代码
改变已有文件的模板:
- alter diskgroup data modify file '+data/orcl/datafile/SYSTEM.258.959717607' attribute ( hot mirrorhot ) ;
- select * from v$asm_file where file_number=258;
复制代码- SQL> alter diskgroup data modify file '+data/orcl/datafile/SYSTEM.258.959717607' attribute ( hot mirrorhot ) ;
- Diskgroup altered.
- SQL> alter diskgroup data rebalance power 11 ;
- Diskgroup altered.
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
- With the Automatic Storage Management option
- [oracle@station17 ~]$ ps aux | grep asm_arb
- oracle 20801 1.4 1.0 425520 21948 ? Ss 21:38 0:00 asm_arb0_+ASM
- oracle 20803 1.8 1.0 425520 21980 ? Ss 21:38 0:00 asm_arb1_+ASM
- oracle 20805 1.5 1.0 425520 21992 ? Ss 21:38 0:00 asm_arb2_+ASM
- oracle 20807 1.4 1.0 425520 22096 ? Ss 21:38 0:00 asm_arb3_+ASM
- oracle 20809 2.1 1.0 425520 22012 ? Ss 21:38 0:00 asm_arb4_+ASM
- oracle 20811 1.5 1.0 425520 21992 ? Ss 21:38 0:00 asm_arb5_+ASM
- oracle 20831 0.0 0.0 340 132 pts/3 R+ 21:39 0:00 grep asm_arb
- [oracle@station17 ~]$ ps aux | grep asm_arb
- oracle 20801 1.4 1.0 425520 21992 ? Ss 21:38 0:00 asm_arb0_+ASM
- oracle 20803 1.5 1.0 425520 22016 ? Ss 21:38 0:00 asm_arb1_+ASM
- oracle 20805 1.5 1.0 425520 22056 ? Ss 21:38 0:00 asm_arb2_+ASM
- oracle 20807 1.3 1.0 425520 22124 ? Ss 21:38 0:00 asm_arb3_+ASM
- oracle 20809 2.0 1.0 425520 22068 ? Ss 21:38 0:00 asm_arb4_+ASM
- oracle 20811 1.4 1.0 425520 22044 ? Ss 21:38 0:00 asm_arb5_+ASM
- oracle 20834 0.0 0.0 4124 628 pts/3 S+ 21:39 0:00 grep asm_arb
复制代码- select * from dict
- where table_name like '%WAIT%CLASS%';
-
- select wait_class from V$SYSTEM_WAIT_CLASS;
-
-
- begin
- dbms_workload_repository.create_baseline(33,34,'baseline1');
- end;
-
- select * from dict
- where table_name like 'DBA%TEMPLATE%';
-
- select * from DBA_HIST_BASELINE_TEMPLATE;
-
- declare
- v_1 number;
- v_2 number;
- v_3 number;
-
- begin
- dbms_resource_manager.calibrate_io(num_physical_disks => 2,
- max_latency => 20,max_iops =>
- v_1,max_mbps => v_2,actual_latency => v_3);
- end;
-
- select s.username, s.resource_consumer_group
- from v_$session s
- where s.terminal='pts/4' ;
-
-
- select d.max_utilization_limit from dba_rsrc_plan_directives d
- where plan='PLAN1';
-
-
- begin
- dbms_resource_manager.create_pending_area;
- dbms_resource_manager.update_plan_directive(plan => 'PLAN1',
- group_or_subplan => 'GROUP2',new_max_utilization_limit => 30 );
- dbms_resource_manager.submit_pending_area;
- end;
-
- select * from v$rsrc_consumer_group;
复制代码
|
|