create or replace trigger user_operation after delete operation_table
declare
begin_date varchar2(100);
end_date varchar2(100);
productID number;
backInt number;
begin
backInt:=0;
select to_char(t.start_date,'yyyy-mm-dd hh24:mi:ss') as date1,
to_char(t.end_date,'yyyy-mm-dd hh24:mi:ss') as date2,t.product_id
into begin_date ,end_date ,productID from st_generateLog t;
createReport(begin_date,end_date,productID,backInt);
end user_operation ;
结果当删除operation_table 时候 执行createreport后报错 说是检测到活动的独立事物处理,已经回退
declare
begin_date varchar2(100);
end_date varchar2(100);
productID number;
backInt number;
begin
backInt:=0;
select to_char(t.start_date,'yyyy-mm-dd hh24:mi:ss') as date1,
to_char(t.end_date,'yyyy-mm-dd hh24:mi:ss') as date2,t.product_id
into begin_date ,end_date ,productID from st_generateLog t;
createReport(begin_date,end_date,productID,backInt);
end user_operation ;
结果当删除operation_table 时候 执行createreport后报错 说是检测到活动的独立事物处理,已经回退
解决方案 »
- oracle =ALL的问题
- 请教一个PLSQL过程编译问题
- oracle 9i 备份
- .net连接操作ORACLE(数据量较大),请问用什么方法连接比较好?
- oracle的全文检索技术如何模糊查询?
- oracle11g的 安装问题???????????? 请大家看下,谢谢........!!!!!!!!!!!!!!
- 各位大哥,哪里有toad 8.0下载啊,能注册的那种?
- 用create database 创建了一个数据库,连接不上
- ORACLE 9i for AIX问题:我的listener不能启动
- php运行SQL语句 提示 ORA-00923: 未找到要求的 FROM
- 急!急!在线等!oracle 10g的数据库导入11g过程中报错!
- 求救:如何将2条数据合并?
create or replace trigger user_operation
after delete operation_table
for each row
declare
begin_date varchar2(100);
end_date varchar2(100);
productID number;
backInt number;
begin
backInt:=0;
select to_char(t.start_date,'yyyy-mm-dd hh24:mi:ss'),
to_char(t.end_date,'yyyy-mm-dd hh24:mi:ss'),
t.product_id
into begin_date ,end_date ,productID
from st_generateLog t;
--createReport(begin_date,end_date,productID,backInt);
--触发器里面调用过程?
--你的过程是干嘛的?
end user_operation ;
则你的存储过程不能使用commit。
除非你声明存储过程为自治事务。
使用自治事务后记得要commit。
同时同意楼上的说法。