zt_oracle一致性读consistent read
http://www.cnblogs.com/caroline/archive/2012/01/13/2322113.html
oracle父存储过程调用子存储过程procedure与输出参数
--建立存储过程SQL> create or replace procedure proc_inner(v_a int,v_out_a out int) 2 as 3 begin 4 v_out_a:=v_a; 5 dbms_output.put_line(v_out_a); 6...
oradebug详解
http://psoug.org/reference/oradebug.html
ORA-12560: TNS:protocol adapter error
--停止oracle服务net stop oracleserviceorcl --连接oracle实例报ora-12560C:\Users\123>sqlplus sys/system as sysdbaSQL*Plus: Release 11.2.0.1.0 Production on Thu Mar 14 11:31:50 2013Copyright (c) 1982,...
oracle performance tuning性能优化学习系列(三)_补二
--说明是前后端所有的会话统计SQL> select distinct sid from v$session_event; SID---------- 1 &n...
oracle performance tuning性能优化学习系列(三)_补一
--会话级别的等待事件统计,注意是所有的会话SQL> select * from v$session_event; SID EVENT  ...
oracle performance tuning性能优化学习系列(三)
oracle性能优化学习系列(三)自动化收集性能统计信息Automatic Performance Statistics1,统计信息存储在v$sysstat and v$sesstat2,重启库后,统计信息会重置3,awr会定时收集统计,存储在相应的表中4,metric度量是...
sqlplus之prompt_&&_&_new_value
--sqlplus之提示,用于功能注解SQL> promptSQL> prompt choose a valuechoose a valueSQL>SQL> desc t_sqlplus; Name ...
oracle sqlplus中column格式化命令之heading用法
SQL> create table t_sqlplus(a int,b int);Table created.--格式化a列为列宽4且标题为a_headingSQL> column a for 9999 heading 'a_heading'SQL> column b for 9999 heading 'b_heading'--插入数据方可看到colum...
oracle performance tuning性能优化学习系列(五)
oracle性能优化学习系列(五)awr概述1,如配置statistics_level=typical or all,自动启用awr2,如配置为basic,使用dbms_workload_repository手工收集;但可能收集的统计信息不全;3,awr收集统计信息包含: &nb...
oracle performance tuning性能优化学习系列(四)_补
--查询度量参数的含义 SQL> select * from v$metricname mt where mt.METRIC_NAME='Database CPU Time Ratio'; GROUP_ID GROUP_NAME  ...
oracle performance tuning性能优化学习系列(四)
CPU Statistics1,获取整个系统的cpu使用情况2,获取多处理器环境的每个独立cpu的使用情况3,大多os关于cpu usage用时在user space or mode and kernel space or mode(即用户和内核模式)4,当然还有一些额外的信息体现,...
oracle sys_context与dbms_session.set_context实现view动态查询
--创建包及包体(之前我仅创建包,未创建包体;且要定义一个存储过程--调用dbms_session.set_context配置context的相关参数值SQL> create or replace package pack_order_date 2 as 3 ...
oracle performance tuning性能优化学习系列(二)
oracle性能优化学习系列(二)处理突发性能故障的方法1,仔细调查性能问题,并收集相关的统计信息;包含: a,了解用户的反馈信息,吞吐量和响应时间; 自上次系统良好运行以来到底发生了什么变化,可以收集一...
oracle dml与索引index(一)
测试dml与索引的关系SQL> desc user_indexes;Name Type  ...
oracle performance tuning性能优化学习系列(一)
oracle性能优化学习系列(一)C:\Users\123\Desktop\每天工作明细\文档\oracle文档\oracle11g官方文档\server.112\e16638\perf_overview.htmUnderstanding Scalability?What is Scalability? ?System Scalab...
oracle index索引相关笔记
学习oracle的索引 1,索引的概念和分类 1,create index可以建立索引在如下几种情况 1,表,分区表,索引组织表,或集表的一个或多个列 2,表或集表的一或多个标量类型...
merge与ORA-02287: sequence number not allowed here
SQL> merge into t_test 2 using (select seq_rpt.nextval as pk 3 from dual connect by level<=2 4 &nbs...
group by与ORA-02287: sequence number not allowed here
--创建表SQL> create table t_test(a int); Table created--插入数据SQL> insert into t_test values(1); 1 row inserted SQL> commit; Commit complete SQL> insert into t_test values(...
count_sum_distinct与null
SQL> create table t_agg(a int,b int,c int); Table created SQL> insert into t_agg values(1,null,1); 1 row inserted SQL> insert into t_agg values(1,2,null); 1 row inserted ...