Oracle中利用Trigger进行工作
Oracle数据库中,有些情况下,对数据记录需要记录日志,或保存操作历史等情况.在此我们可以借助“数据库Trigger”进行。下面以一例进行说明:
CREATE OR REPLACE TRIGGER aits_auth_group_auth_trga_diu
AFTER update OR DELETE OR INSERT on aits_authority_group_auth
for each row
/*****************************************************************************************
*
* Trigger Name : aits_auth_group_auth_trga_diu
* Description : Log insert, Modify ,delete action to History table
* Version : 1.0
*****************************************************************************************/
declare
BEGIN
IF inserting THEN
INSERT INTO aits_auth_group_auth_history
(application_code, auth_id, ranage_code,
group_code, module_code, function_code,
creation_date, created_by, last_update_date,
last_updated_by, action_type)
VALUES
(:new.application_code, :new.auth_id, :new.ranage_code,
:new.group_code, :new.module_code, :new.function_code,
:new.creation_date, :new.created_by, :new.last_update_date,
:new.last_updated_by, aits_pak_common.InsertDesc);
ELSIF DELETING THEN
INSERT INTO aits_auth_group_auth_history
(application_co
相关文档:
Oracle sqlplus远程连接数据库
sqlplus username/password@yunSID_192.168.1.5
公司使用linux开发机进行程序开发时,由于开发用Oracle数据库是由日方提供,所以经常使用sqlplus连接到远程数据库上进行开发,例如:
sqlplus username/password@servicename
于是想,用我的两台电脑双机互联试一试,也玩个&ldq ......
跟其他语言的参数差不多,使用时要把把真实数据传过去替代
优点记得一些,如果在查询中使用直接量(常量),那么每个查询都将是一个全新的查询,必须对查询进行解析、限定(命名解析)、安全性检查、优化等即重新生成执行计划。而使用了以后就可以重复使用最先创建的执行计划。 ......
环境:数据库 oracle 64bit 系统 win2008 64bit IIS7 在asp 网页中使用ado连接数据库 ODBC用的是Microsft ODBC for oracle
情况:在网页的查询语句中不含中文的可以,只要语句中含有中文就会返回错误结果。
如:select '一二三' from dual;这样的语句 返回回来就是???
还要说明的是oracle的字符集是AMERICAN_AMERICA.U ......
http://inthirties.com:90/thread-918-3-1.html
This article describes the installation of
Oracle 10g release 2 (10.2.0.1) RAC on Linux (Oracle Enterprise Linux
4.5) using NFS to provide the shared storage.
Introduction
Download Software
Operating System Installation
Oracle Installation Prereq ......
Oracle的每门认证考试是135美金,共有5门考试,所有的考试费用再加上一些其它费用(书、培训等等),要想通过Oracle认证考试本身就是一笔不小的投资,但是,从今天的就业市场来看,得到的回报还是值得的。
很多人都希望在IT领域得到像Oracle DBA那样的高薪——年薪75,000$到140,000$.对于Oracle DBA的资深人士 ......