plsql_index by_table of_count_next_prior_last,first语法小测
--table of--index by 元素引用测试set serveroutput ondeclare type table_type is table of number index by binary_integer; table1 table_type;begin table1(1):=1; table1(2):=2; tab...
v$transaction事务_v$session会话_v$rollstat_v$rollname关联测试_概念
1* select addr,ses_addr,xidusn,xidslot,xidsqn,ubafil,ubablk,status,space,recursive,noundo,ptx,name,log_io,phy_io,cr_get,cr_change,xid from v$transactionADDR &...
select for update_v$lock_dml小测试(锁类型及模式)
SQL> select kaddr,sid,type,id1,id2,decode(lmode,0,'none',1,'null',2,'row-share',3,'row-exclusive',4,'share',5,'share row exclusive',6,'exclusive') lmode,  ...
触发器trigger中调用包package(包中含:存储过程procedure及函数function)_plsql
create or replace package pkg_trig_trans --定义包(也叫包规范)isfunction f_trunc_a(v_a test_trim.a%type)return test_trim.a%type; --函数procedure p_upper_b(v_b in out test_trim.b%type);--过程end;/cre...
学习before之:new或:old转化加工触发器
SQL> create or replace trigger tri_trans 2 before insert on test_trim --before型,因为要在插入表前进行数据转换 3 for each row 4 declare 5 msg varc...
表number列的数据插入insert小测试
SQL> desc test_trim; Name &n...
触发器trigger_before_after_for each row_when_case(一)
--case when之inserting_updating_deleting 行级(for each row)触发器(非语句级)语法create or replace trigger tri_testbefore insert or update or delete on deptfor each rowbegin case when i...
alter table语法增补(一)
ALTER TABLE employees --alter可以跟多个enable|disable约束的子句,必须同须符合,才能开启约束 ENABLE NOVALIDATE PRIMARY KEY ENABLE NOVALIDATE CONSTRAINT emp_last_name_nn;&...
oracle10g_exceptions异常表_记录违犯pk_unique key约束信息
--构建一个存储违犯pk及unique key约束的记录表,须包括列:table_name,owner,rowid,constraint_nameSQL> alter table test enable constraint pk_test exceptions into exceptions; --通过alter 开启约束且exceptio...
监控linux(unix)性能指标的_cacti_rrdtool展示图表
--转摘chinaunixhttp://linux.chinaunix.net/techdoc/net/2007/01/15/948243.shtml--转摘dbanotes基于流量监控http://www.dbanotes.net/web/web_operations_capacity_planning.html 忆起以前...
sqlplus内部命令change之妙用
SQL> select sysdate, from dual 2 ;select sysdate, from dual *ERROR at line 1:ORA-00936: missing ex...
oracle10g_11g_bbed_oracle block browse editor_内部工具小记_转摘eygle大师
http://www.eygle.com/archives/2005/09/how_to_compile.html 转摘xsb大牛bbed使用笔记http://xsb.itpub.net/post/419/48405
oradebug分析oracle hang或慢_sqlplus_prelim
本节我基于scott用户产生两个会话,模拟死锁会话(一个update,一个delete)SQL> oradebug helpHELP [command]&n...
oracle_后台进程background process详解
dbwr进程: 负责把sga data buffer中的脏数据写到数据文件中(保为脏数据,sga data buffer中被修改的buffer)冷buffer是根据lru算法计算出来的buffer(就是近期没有被访问过的buffer),dbw...
forall_for loop性能对比测试_plsql
SQL> show userUSER is "SCOTT"SQL> create table blktest(num number(20),name varchar2(50));Table created.set time on timing oncreate or replace procedure p_compareistype numtab is table of blktest.nu...
v$log_v$logfile监控日志文件logfile切换及相关信息_status
SQL> select a.group#,a.bytes/1024/1024 mb,b.member,a.status from v$log a,v$logfile b where a.group#=b.group# order by a.group#; GROUP#  ...
oracle plsql_table of_index by binary_integer_for loop_批量赋值
利用table of及for loop批量产生一批数据(本例是10行记录,两个列集)SQL> r 1 declare 2 type numtab is table of number(20) ...
oracle10g_plsql_rercursor_type_table of_小引例_bulk collect into
SQL> set serveroutput onSQL> r 1 declare 2 type mytable is table of dept%rowtype;--此类型定义用到table of且rowtype,为表的部分记录集,而非某特定的行 3 l_mydata myta...
oracle10g oem web界面按钮乱码(转摘)
http://www.广告.com/topic/643494
oracle基表使用小记(一)_更新col$调整scott用户表test的排列次序
SQL> conn /as sysdbaConnected.SQL> desc col$; Name &...