参数调优
Posted lvcha001
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了参数调优相关的知识,希望对你有一定的参考价值。
--查询检测是否已设置 SQL>show parameter log_file_sync SQL>show parameter parallel_force_local SQL>select client_name,status from dba_autotask_client; SQL>select status,filename from v$block_change_tracking; SQL>select * from v$rman_backup_job_details; --参数调整 ---关闭自适应log file sync SQL>alter system set "_use_adaptive_log_file_sync"=false sid=‘*‘; ---在11G版本中,为了降低集群间的数据交互,建议并行进程强制在本地实例分配。 SQL>alter system set parallel_force_local=TRUE sid=‘*‘; ---禁用auto space advisor SQL>BEGIN DBMS_AUTO_TASK_ADMIN.disable( client_name => ‘auto space advisor‘, operation => NULL, window_name => NULL); END; / SQL>commit; --开启块跟踪 SQL>alter database enable block change tracking using file ‘+DATA‘ reuse; --查询检测设置是否生效 SQL>show parameter log_file_sync SQL>show parameter parallel_force_local SQL>select client_name,status from dba_autotask_client; SQL>select status,filename from v$block_change_tracking; SQL>select * from v$rman_backup_job_details;
show parameter log_file_sync show parameter parallel_force_local select client_name,status from dba_autotask_client; select status,filename from v$block_change_tracking; alter system set "_use_adaptive_log_file_sync"=false sid=‘*‘; alter system set parallel_force_local=TRUE sid=‘*‘; BEGIN DBMS_AUTO_TASK_ADMIN.disable( client_name => ‘auto space advisor‘, operation => NULL, window_name => NULL); END; / commit; alter database enable block change tracking using file ‘+DATA‘ reuse; SQL> select PROGRAM,sid,serial#,username,sql_id,event,BLOCKING_SESSION_STATUS,BLOCKING_INSTANCE,BLOCKING_SESSION from v$session where username=‘SYS‘ ; PROGRAM SID SERIAL# ------------------------------------------------ ---------- ---------- USERNAME SQL_ID ------------------------------ ------------- EVENT BLOCKING_SE ---------------------------------------------------------------- ----------- BLOCKING_INSTANCE BLOCKING_SESSION ----------------- ---------------- sqlplus@dsapdb23 (TNS V1-V3) 249 42993 SYS enq: CT - state VALID 2 443 SQL> select sql_id,sid,serial#,event,username,PROGRAM from gv$session where inst_id=2 and sid=443; SQL_ID SID SERIAL# ------------- ---------- ---------- EVENT ---------------------------------------------------------------- USERNAME PROGRAM ------------------------------ ------------------------------------------------ 443 18359 RMAN backup & recovery I/O SYS rman@dsapdb24 (TNS V1-V3) 1* select sid,serial#,username,event from gv$session where status=‘ACTIVE‘ AND STATE !=‘WAITING‘ SID SERIAL# USERNAME EVENT ---------- ---------- ------------------------------ ---------------------------------------------------------------- 248 58713 SYS PX Deq: Execution Msg 2019 14945 SYS PX Deq: Execution Msg alter system kill session ‘249,42993‘ immediate; select sid,serial#,username,event from gv$session where status=‘ACTIVE‘ AND PROGRAM like ‘rman%‘;
以上是关于参数调优的主要内容,如果未能解决你的问题,请参考以下文章
14.VisualVM使用详解15.VisualVM堆查看器使用的内存不足19.class文件--文件结构--魔数20.文件结构--常量池21.文件结构访问标志(2个字节)22.类加载机制概(代码片段