学习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 &...
oracle sys_context 使用小记_转摘骨骨网友笔记
http://hi.baidu.com/edeed/blog/item/28cba0ecaa6c8e3e269791bb.html sys_context很牛,用它替代userenv函数(select userenv('sessionid') from dual;)功能相当全备 如想对客户端连接进行审...
如何解压cpio.gz文件
http://linux.chinaunix.net/techdoc/system/2009/06/08/1117444.shtml
redhat5 for x86-64bit安装oracle10.2.0.1 for x86-64bit小记
os及相关安装前环境搞定后,运行runinstaller,报错如下:Preparing to launch Oracle Universal Installer from /tmp/OraInstall2010-08-06_03-17-09PM. Please wait ...-bash-3.2$ Exception in thread "ma...
vnc server客户端分辨率geometry调整_转摘secooler大牛
http://space.itpub.net/519536/viewspace-668621