Oracle ERP Audit Funtion in R12.2.4
M1 JOB NAME: 164839
TABLE NAME: WIP_REQUIREMENT_OPERATIONS
Request name: AuditTrail Update Tables
Output log
/etc/host.conf: line 1: bad command `: 'weblog'
+---------------------------------------------------------------------------+
Application Object Library: Version : 12.2
Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
FNDATUPD: AuditTrail Update Tables
+---------------------------------------------------------------------------+
Current system time is 05-MAY-2018 22:13:10
+---------------------------------------------------------------------------+
----->Expand Rows
INSERT INTO FND_AUDIT_COLUMNS (TABLE_APP_ID, TABLE_ID,COLUMN_ID,STATE,SEQUENCE_ID, SCHEMA_ID, LAST_UPDATE_DATE,LAST_UPDATED_BY, LAST_UPDATE_LOGIN,CREATED_BY,CREATION_DATE) VALUES ( 706, 51419, 75741, 'P', -1, 900, SYSDATE,0,0,0,SYSDATE)
UPDATE FND_AUDIT_TABLES T SET T.STATE = 'P' WHERE T.TABLE_APP_ID = 706 AND T.TABLE_ID = 51419
commit
INSERT INTO FND_AUDIT_COLUMNS (TABLE_APP_ID, TABLE_ID,COLUMN_ID,STATE,SEQUENCE_ID, SCHEMA_ID, LAST_UPDATE_DATE,LAST_UPDATED_BY, LAST_UPDATE_LOGIN,CREATED_BY,CREATION_DATE) VALUES ( 706, 51419, 75742, 'P', -1, 900, SYSDATE,0,0,0,SYSDATE)
UPDATE FND_AUDIT_TABLES T SET T.STATE = 'P' WHERE T.TABLE_APP_ID = 706 AND T.TABLE_ID = 51419
commit
INSERT INTO FND_AUDIT_COLUMNS (TABLE_APP_ID, TABLE_ID,COLUMN_ID,STATE,SEQUENCE_ID, SCHEMA_ID, LAST_UPDATE_DATE,LAST_UPDATED_BY, LAST_UPDATE_LOGIN,CREATED_BY,CREATION_DATE) VALUES ( 706, 51419, 78406, 'P', -1, 900, SYSDATE,0,0,0,SYSDATE)
UPDATE FND_AUDIT_TABLES T SET T.STATE = 'P' WHERE T.TABLE_APP_ID = 706 AND T.TABLE_ID = 51419
commit
INSERT INTO FND_AUDIT_COLUMNS (TABLE_APP_ID, TABLE_ID,COLUMN_ID,STATE,SEQUENCE_ID, SCHEMA_ID, LAST_UPDATE_DATE,LAST_UPDATED_BY, LAST_UPDATE_LOGIN,CREATED_BY,CREATION_DATE) VALUES ( 706, 51419, 143757, 'P', -1, 900, SYSDATE,0,0,0,SYSDATE)
UPDATE FND_AUDIT_TABLES T SET T.STATE = 'P' WHERE T.TABLE_APP_ID = 706 AND T.TABLE_ID = 51419
commit
commit
DELETE FROM FND_AUDIT_TABLES WHERE STATE = 'X'
DELETE FROM FND_AUDIT_COLUMNS C WHERE C.STATE = 'P' AND NOT EXISTS (SELECT NULL FROM FND_AUDIT_TABLES T WHERE T.TABLE_APP_ID = C.TABLE_APP_ID AND T.TABLE_ID = C.TABLE_ID AND T.STATE !='X')
----->Create New Table
GRANT ALL ON WIP_REQUIREMENT_OPERATIO_A to APPS
----->Adding ROW_KEY
**Starts**05-MAY-2018 22:13:12
**Ends**05-MAY-2018 22:13:13
----->Alter Shadow Table
ALTER TABLE WIP_REQUIREMENT_OPERATIO_A ADD (REPETITIVE_SCHEDULE_ID NUMBER )
commit
DELETE FROM FND_AUDIT_COLUMNS C WHERE C.TABLE_APP_ID= 706 AND C.TABLE_ID = 51419 AND C.COLUMN_ID = 78406 AND C.SCHEMA_ID = 900
INSERT INTO FND_AUDIT_COLUMNS (TABLE_APP_ID,TABLE_ID,COLUMN_ID,STATE,SEQUENCE_ID,SCHEMA_ID,LAST_UPDATE_DATE,LAST_UPDATED_BY,LAST_UPDATE_LOGIN,CREATED_BY,CREATION_DATE) VALUES ( 706, 51419, 78406, 'K', 0, 900, SYSDATE,0,0,0,SYSDATE)
commit
----->Adding ROW_KEY
**Starts**05-MAY-2018 22:13:13
**Ends**05-MAY-2018 22:13:13
----->Alter Shadow Table
ALTER TABLE WIP_REQUIREMENT_OPERATIO_A ADD (OPERATION_SEQ_NUM NUMBER )
commit
DELETE FROM FND_AUDIT_COLUMNS C WHERE C.TABLE_APP_ID= 706 AND C.TABLE_ID = 51419 AND C.COLUMN_ID = 75742 AND C.SCHEMA_ID = 900
INSERT INTO FND_AUDIT_COLUMNS (TABLE_APP_ID,TABLE_ID,COLUMN_ID,STATE,SEQUENCE_ID,SCHEMA_ID,LAST_UPDATE_DATE,LAST_UPDATED_BY,LAST_UPDATE_LOGIN,CREATED_BY,CREATION_DATE) VALUES ( 706, 51419, 75742, 'K', 1, 900, SYSDATE,0,0,0,SYSDATE)
commit
----->Adding ROW_KEY
**Starts**05-MAY-2018 22:13:13
**Ends**05-MAY-2018 22:13:13
----->Alter Shadow Table
ALTER TABLE WIP_REQUIREMENT_OPERATIO_A ADD (INVENTORY_ITEM_ID NUMBER )
commit
DELETE FROM FND_AUDIT_COLUMNS C WHERE C.TABLE_APP_ID= 706 AND C.TABLE_ID = 51419 AND C.COLUMN_ID = 143757 AND C.SCHEMA_ID = 900
INSERT INTO FND_AUDIT_COLUMNS (TABLE_APP_ID,TABLE_ID,COLUMN_ID,STATE,SEQUENCE_ID,SCHEMA_ID,LAST_UPDATE_DATE,LAST_UPDATED_BY,LAST_UPDATE_LOGIN,CREATED_BY,CREATION_DATE) VALUES ( 706, 51419, 143757, 'K', 2, 900, SYSDATE,0,0,0,SYSDATE)
commit
----->Adding ROW_KEY
**Starts**05-MAY-2018 22:13:13
**Ends**05-MAY-2018 22:13:13
----->Alter Shadow Table
ALTER TABLE WIP_REQUIREMENT_OPERATIO_A ADD (WIP_ENTITY_ID NUMBER )
commit
DELETE FROM FND_AUDIT_COLUMNS C WHERE C.TABLE_APP_ID= 706 AND C.TABLE_ID = 51419 AND C.COLUMN_ID = 75741 AND C.SCHEMA_ID = 900
INSERT INTO FND_AUDIT_COLUMNS (TABLE_APP_ID,TABLE_ID,COLUMN_ID,STATE,SEQUENCE_ID,SCHEMA_ID,LAST_UPDATE_DATE,LAST_UPDATED_BY,LAST_UPDATE_LOGIN,CREATED_BY,CREATION_DATE) VALUES ( 706, 51419, 75741, 'K', 3, 900, SYSDATE,0,0,0,SYSDATE)
commit
----->Update Pending Columns
commit
----->Drop Triggers
DROP TRIGGER WIP_REQUIREMENT_OPERATIO_AI
Oracle error 4080: ORA-04080: trigger 'WIP_REQUIREMENT_OPERATIO_AI' does not exist
ORA-06512: at "SYSTEM.AD_DDL", line 188
ORA-06512: at line 1 has been detected in afuddl() [3_xdd].
do_ddl(APPLSYS, FND, 8, $statement$, WIP_REQUIREMENT_OPERATIO_AI): private_do_ddl(APPS, APPLSYS, APPLSYS, 8, $statement$, WIP_REQUIREMENT_OPERATIO_AI): do_acd_trigger(0, APPS, $statement$): : do_apps_ddl(APPS, $statement$): : substr($statement$,1,255)='DROP TRIGGER WIP_REQUIREMENT_OPERATIO_AI'
DROP PROCEDURE WIP_REQUIREMENT_OPERATIO_AIP
Oracle error 4043: ORA-04043: object WIP_REQUIREMENT_OPERATIO_AIP does not exist
ORA-06512: at "SYSTEM.AD_DDL", line 188
ORA-06512: at line 1 has been detected in afuddl() [3_xdd].
do_ddl(APPLSYS, FND, 8, $statement$, WIP_REQUIREMENT_OPERATIO_AIP): private_do_ddl(APPS, APPLSYS, APPLSYS, 8, $statement$, WIP_REQUIREMENT_OPERATIO_AIP): do_acd_trigger(0, APPS, $statement$): : do_apps_ddl(APPS, $statement$): : substr($statement$,1,255)='DROP PROCEDURE WIP_REQUIREMENT_OPERATIO_AIP'
DROP TRIGGER WIP_REQUIREMENT_OPERATIO_AD
Oracle error 4080: ORA-04080: trigger 'WIP_REQUIREMENT_OPERATIO_AD' does not exist
ORA-06512: at "SYSTEM.AD_DDL", line 188
ORA-06512: at line 1 has been detected in afuddl() [3_xdd].
do_ddl(APPLSYS, FND, 8, $statement$, WIP_REQUIREMENT_OPERATIO_AD): private_do_ddl(APPS, APPLSYS, APPLSYS, 8, $statement$, WIP_REQUIREMENT_OPERATIO_AD): do_acd_trigger(0, APPS, $statement$): : do_apps_ddl(APPS, $statement$): : substr($statement$,1,255)='DROP TRIGGER WIP_REQUIREMENT_OPERATIO_AD'
DROP PROCEDURE WIP_REQUIREMENT_OPERATIO_ADP
Oracle error 4043: ORA-04043: object WIP_REQUIREMENT_OPERATIO_ADP does not exist
ORA-06512: at "SYSTEM.AD_DDL", line 188
ORA-06512: at line 1 has been detected in afuddl() [3_xdd].
do_ddl(APPLSYS, FND, 8, $statement$, WIP_REQUIREMENT_OPERATIO_ADP): private_do_ddl(APPS, APPLSYS, APPLSYS, 8, $statement$, WIP_REQUIREMENT_OPERATIO_ADP): do_acd_trigger(0, APPS, $statement$): : do_apps_ddl(APPS, $statement$): : substr($statement$,1,255)='DROP PROCEDURE WIP_REQUIREMENT_OPERATIO_ADP'
DROP TRIGGER WIP_REQUIREMENT_OPERATIO_AU
Oracle error 4080: ORA-04080: trigger 'WIP_REQUIREMENT_OPERATIO_AU' does not exist
ORA-06512: at "SYSTEM.AD_DDL", line 188
ORA-06512: at line 1 has been detected in afuddl() [3_xdd].
do_ddl(APPLSYS, FND, 8, $statement$, WIP_REQUIREMENT_OPERATIO_AU): private_do_ddl(APPS, APPLSYS, APPLSYS, 8, $statement$, WIP_REQUIREMENT_OPERATIO_AU): do_acd_trigger(0, APPS, $statement$): : do_apps_ddl(APPS, $statement$): : substr($statement$,1,255)='DROP TRIGGER WIP_REQUIREMENT_OPERATIO_AU'
DROP PROCEDURE WIP_REQUIREMENT_OPERATIO_AUP
Oracle error 4043: ORA-04043: object WIP_REQUIREMENT_OPERATIO_AUP does not exist
ORA-06512: at "SYSTEM.AD_DDL", line 188
ORA-06512: at line 1 has been detected in afuddl() [3_xdd].
do_ddl(APPLSYS, FND, 8, $statement$, WIP_REQUIREMENT_OPERATIO_AUP): private_do_ddl(APPS, APPLSYS, APPLSYS, 8, $statement$, WIP_REQUIREMENT_OPERATIO_AUP): do_acd_trigger(0, APPS, $statement$): : do_apps_ddl(APPS, $statement$): : substr($statement$,1,255)='DROP PROCEDURE WIP_REQUIREMENT_OPERATIO_AUP'
DROP TRIGGER WIP_REQUIREMENT_OPERATIO_AC
Oracle error 4080: ORA-04080: trigger 'WIP_REQUIREMENT_OPERATIO_AC' does not exist
ORA-06512: at "SYSTEM.AD_DDL", line 188
ORA-06512: at line 1 has been detected in afuddl() [3_xdd].
do_ddl(APPLSYS, FND, 8, $statement$, WIP_REQUIREMENT_OPERATIO_AC): private_do_ddl(APPS, APPLSYS, APPLSYS, 8, $statement$, WIP_REQUIREMENT_OPERATIO_AC): do_acd_trigger(0, APPS, $statement$): : do_apps_ddl(APPS, $statement$): : substr($statement$,1,255)='DROP TRIGGER WIP_REQUIREMENT_OPERATIO_AC'
DROP TRIGGER WIP_REQUIREMENT_OPERATIO_AH
Oracle error 4080: ORA-04080: trigger 'WIP_REQUIREMENT_OPERATIO_AH' does not exist
ORA-06512: at "SYSTEM.AD_DDL", line 188
ORA-06512: at line 1 has been detected in afuddl() [3_xdd].
do_ddl(APPLSYS, FND, 8, $statement$, WIP_REQUIREMENT_OPERATIO_AH): private_do_ddl(APPS, APPLSYS, APPLSYS, 8, $statement$, WIP_REQUIREMENT_OPERATIO_AH): do_acd_trigger(0, APPS, $statement$): : do_apps_ddl(APPS, $statement$): : substr($statement$,1,255)='DROP TRIGGER WIP_REQUIREMENT_OPERATIO_AH'
DROP TRIGGER WIP_REQUIREMENT_OPERATIO_AT
Oracle error 4080: ORA-04080: trigger 'WIP_REQUIREMENT_OPERATIO_AT' does not exist
ORA-06512: at "SYSTEM.AD_DDL", line 188
ORA-06512: at line 1 has been detected in afuddl() [3_xdd].
do_ddl(APPLSYS, FND, 8, $statement$, WIP_REQUIREMENT_OPERATIO_AT): private_do_ddl(APPS, APPLSYS, APPLSYS, 8, $statement$, WIP_REQUIREMENT_OPERATIO_AT): do_acd_trigger(0, APPS, $statement$): : do_apps_ddl(APPS, $statement$): : substr($statement$,1,255)='DROP TRIGGER WIP_REQUIREMENT_OPERATIO_AT'
----->Create Standard Triggers
CREATE OR REPLACE PROCEDURE
WIP_REQUIREMENT_OPERATIO_AIP(A0 IN NUMBER,A1 IN NUMBER,A2 IN NUMBER,A3 IN NUMBER,E0 IN NUMBER,E1 IN NUMBER,E2 IN NUMBER,E3 IN NUMBER )
AS
ROWKEY number;
NXT number;
CMT number;
NUSER varchar2(100);
nls_date_fmt VARCHAR2(40);
BEGIN
select value into nls_date_fmt from v$NLS_PARAMETERS where parameter='NLS_DATE_FORMAT';
execute IMMEDIATE 'alter session set nls_date_format="MM/DD/YYYY HH24:MI:SS"';
NXT:=FND_AUDIT_SEQ_PKG.NXT;
CMT:=FND_AUDIT_SEQ_PKG.CMT;
ROWKEY:=(TO_NUMBER(TO_CHAR(SYSDATE,'YYYYMMDDHH24MISS'))*100000 +MOD(NXT,100000)) * 100000 + USERENV('SESSIONID');
NUSER:=FND_AUDIT_SEQ_PKG.USER_NAME;
INSERT INTO WIP_REQUIREMENT_OPERATIO_A
VALUES(SYSDATE,'I',NUSER,NULL,USERENV('SESSIONID'),NXT,CMT,ROWKEY,E0,E1,E2,E3);
execute IMMEDIATE 'alter session set nls_date_format="'||nls_date_fmt||'"';
END WIP_REQUIREMENT_OPERATIO_AIP;
CREATE OR REPLACE PROCEDURE
WIP_REQUIREMENT_OPERATIO_AUP (A0 IN NUMBER,A1 IN NUMBER,A2 IN NUMBER,A3 IN NUMBER,E0 IN NUMBER,E1 IN NUMBER,E2 IN NUMBER,E3 IN NUMBER)
AS
NXT NUMBER;
CMT NUMBER;
NUSER varchar2(100);
newtransaction_TYPE VARCHAR2(1);
newTRUE_NULLS VARCHAR2(250);
tmpPRIMCHANGE NUMBER;
nls_date_fmt VARCHAR2(40);
I0 NUMBER;
I1 NUMBER;
I2 NUMBER;
I3 NUMBER;
BEGIN
select value into nls_date_fmt from v$NLS_PARAMETERS where parameter='NLS_DATE_FORMAT';
execute IMMEDIATE 'alter session set nls_date_format="MM/DD/YYYY HH24:MI:SS"';
NUSER:=FND_AUDIT_SEQ_PKG.USER_NAME;
SELECT 0+decode(E0,A0,0,1)+decode(E1,A1,0,1)+decode(E2,A2,0,1)+decode(E3,A3,0,1) into tmpPRIMCHANGE FROM SYS.DUAL;
IF tmpPRIMCHANGE>=1 THEN
SELECT decode(A0,NULL,'Y','N')
||decode(A1,NULL,'Y','N')
||decode(A2,NULL,'Y','N')
||decode(A3,NULL,'Y','N') INTO newTRUE_NULLS FROM SYS.DUAL;
IF(newTRUE_NULLS='NNNN')THEN
newTRUE_NULLS:=NULL;END IF;
NXT:=FND_AUDIT_SEQ_PKG.NXT;
CMT:=FND_AUDIT_SEQ_PKG.CMT;
INSERT INTO WIP_REQUIREMENT_OPERATIO_A
VALUES(SYSDATE,'D',NUSER,newTRUE_NULLS,
USERENV('SESSIONID'),NXT,CMT,(TO_NUMBER(TO_CHAR(SYSDATE,'YYYYMMDDHH24MISS'))*100000+MOD(NXT,100000)) * 100000 + USERENV('SESSIONID'),
A0,A1,A2,A3);
NXT:=FND_AUDIT_SEQ_PKG.NXT;
CMT:=FND_AUDIT_SEQ_PKG.CMT;
NUSER:=FND_AUDIT_SEQ_PKG.USER_NAME;
INSERT INTO WIP_REQUIREMENT_OPERATIO_A
VALUES(SYSDATE,'I',NUSER,NULL,USERENV('SESSIONID'),NXT,CMT,(TO_NUMBER(TO_CHAR(SYSDATE,'YYYYMMDDHH24MISS'))*100000+MOD(NXT,100000)) * 100000 + USERENV('SESSIONID'),
E0,E1,E2,E3);
ELSE
SELECT decode(A0,NULL,decode(E0,NULL,'N','Y'),'N')
||decode(A1,NULL,decode(E1,NULL,'N','Y'),'N')
||decode(A2,NULL,decode(E2,NULL,'N','Y'),'N')
||decode(A3,NULL,decode(E3,NULL,'N','Y'),'N') INTO newTRUE_NULLS FROM SYS.DUAL;
IF(newTRUE_NULLS='NNNN')THEN newTRUE_NULLS:=NULL;END IF;
IF(newTRUE_NULLS is not NULL)THEN
NXT:=FND_AUDIT_SEQ_PKG.NXT;
CMT:=FND_AUDIT_SEQ_PKG.CMT;
INSERT INTO WIP_REQUIREMENT_OPERATIO_A
VALUES(SYSDATE,'U',NUSER,newTRUE_NULLS,USERENV('SESSIONID'),NXT,CMT,(TO_NUMBER(TO_CHAR(SYSDATE,'YYYYMMDDHH24MISS'))*100000+MOD(NXT,100000)) * 100000 + USERENV('SESSIONID'),
E0,E1,E2,E3);
END IF;
END IF;
execute IMMEDIATE 'alter session set nls_date_format="'||nls_date_fmt||'"';
END WIP_REQUIREMENT_OPERATIO_AUP;
CREATE OR REPLACE PROCEDURE
WIP_REQUIREMENT_OPERATIO_ADP(A0 IN NUMBER,A1 IN NUMBER,A2 IN NUMBER,A3 IN NUMBER,E0 IN NUMBER,E1 IN NUMBER,E2 IN NUMBER,E3 IN NUMBER)
AS
NXT NUMBER;
CMT NUMBER;
NUSER varchar2(100);
newTRUE_NULLS VARCHAR2(250);
nls_date_fmt VARCHAR2(40);
BEGIN
select value into nls_date_fmt from v$NLS_PARAMETERS where parameter='NLS_DATE_FORMAT';
execute IMMEDIATE 'alter session set nls_date_format="MM/DD/YYYY HH24:MI:SS"';
NXT:=FND_AUDIT_SEQ_PKG.NXT;
CMT:=FND_AUDIT_SEQ_PKG.CMT;
NUSER:=FND_AUDIT_SEQ_PKG.USER_NAME;
SELECT decode(A0,NULL,'Y','N')
||decode(A1,NULL,'Y','N')
||decode(A2,NULL,'Y','N')
||decode(A3,NULL,'Y','N') INTO newTRUE_NULLS FROM SYS.DUAL;
IF(newTRUE_NULLS='NNNN') THEN
newTRUE_NULLS:= NULL;
END IF;
INSERT INTO WIP_REQUIREMENT_OPERATIO_A
VALUES(SYSDATE,'D',NUSER,newTRUE_NULLS,
USERENV('SESSIONID'),NXT,CMT,(TO_NUMBER(TO_CHAR(SYSDATE,'YYYYMMDDHH24MISS'))*100000+MOD(NXT,100000)) * 100000 + USERENV('SESSIONID'),
A0,A1,A2,A3);
execute IMMEDIATE 'alter session set nls_date_format="'||nls_date_fmt||'"';
END WIP_REQUIREMENT_OPERATIO_ADP;
CREATE OR REPLACE TRIGGER WIP_REQUIREMENT_OPERATIO_AH BEFORE INSERT ON WIP_REQUIREMENT_OPERATIONS BEGIN IF fnd_global.audit_active THEN fnd_audit_pkg.audit_on := TRUE;ELSE fnd_audit_pkg.audit_on := FALSE;END IF;END;
CREATE OR REPLACE TRIGGER WIP_REQUIREMENT_OPERATIO_AI AFTER INSERT ON WIP_REQUIREMENT_OPERATIONS FOR EACH ROW BEGIN IF fnd_audit_pkg.audit_on THEN WIP_REQUIREMENT_OPERATIO_AIP(:old.REPETITIVE_SCHEDULE_ID,:old.OPERATION_SEQ_NUM,:old.INVENTORY_ITEM_ID,:old.WIP_ENTITY_ID,:new.REPETITIVE_SCHEDULE_ID,:new.OPERATION_SEQ_NUM,:new.INVENTORY_ITEM_ID,:new.WIP_ENTITY_ID);END IF;END;
CREATE OR REPLACE TRIGGER WIP_REQUIREMENT_OPERATIO_AT BEFORE UPDATE OF REPETITIVE_SCHEDULE_ID,OPERATION_SEQ_NUM,INVENTORY_ITEM_ID,WIP_ENTITY_ID ON WIP_REQUIREMENT_OPERATIONS BEGIN IF fnd_global.audit_active THEN fnd_audit_pkg.audit_on := TRUE;ELSE fnd_audit_pkg.audit_on := FALSE;END IF;END;
CREATE OR REPLACE TRIGGER WIP_REQUIREMENT_OPERATIO_AU AFTER UPDATE OF REPETITIVE_SCHEDULE_ID,OPERATION_SEQ_NUM,INVENTORY_ITEM_ID,WIP_ENTITY_ID ON WIP_REQUIREMENT_OPERATIONS FOR EACH ROW BEGIN IF fnd_audit_pkg.audit_on THEN WIP_REQUIREMENT_OPERATIO_AUP(:old.REPETITIVE_SCHEDULE_ID,:old.OPERATION_SEQ_NUM,:old.INVENTORY_ITEM_ID,:old.WIP_ENTITY_ID,:new.REPETITIVE_SCHEDULE_ID,:new.OPERATION_SEQ_NUM,:new.INVENTORY_ITEM_ID,:new.WIP_ENTITY_ID);END IF;END;
CREATE OR REPLACE TRIGGER WIP_REQUIREMENT_OPERATIO_AC BEFORE DELETE ON WIP_REQUIREMENT_OPERATIONS BEGIN IF fnd_global.audit_active THEN fnd_audit_pkg.audit_on := TRUE;ELSE fnd_audit_pkg.audit_on := FALSE;END IF;END;
CREATE OR REPLACE TRIGGER WIP_REQUIREMENT_OPERATIO_AD AFTER DELETE ON WIP_REQUIREMENT_OPERATIONS FOR EACH ROW BEGIN IF fnd_audit_pkg.audit_on THEN WIP_REQUIREMENT_OPERATIO_ADP(:old.REPETITIVE_SCHEDULE_ID,:old.OPERATION_SEQ_NUM,:old.INVENTORY_ITEM_ID,:old.WIP_ENTITY_ID,:new.REPETITIVE_SCHEDULE_ID,:new.OPERATION_SEQ_NUM,:new.INVENTORY_ITEM_ID,:new.WIP_ENTITY_ID);END IF;END;
----->Create Views
VIEW WIP_REQUIREMENT_OPERATIO_AV1
VIEW WIP_REQUIREMENT_OPERATIO_AC1
-->REPETITIVE_SCHEDULE_ID
-->OPERATION_SEQ_NUM
-->INVENTORY_ITEM_ID
-->WIP_ENTITY_ID
UPDATE FND_AUDIT_TABLES T SET T.STATE = 'E' WHERE T.TABLE_ID = 51419 AND T.TABLE_APP_ID = 706 AND NOT EXISTS ( SELECT NULL FROM FND_AUDIT_COLUMNS C WHERE C.TABLE_APP_ID = T.TABLE_APP_ID AND C.TABLE_ID = T.TABLE_ID AND C.STATE = 'P' AND C.SCHEMA_ID != -1)
commit
commit
----->Delete Invalid Columns
commit
update fnd_audit_groups g set g.state='E' where g.state = 'R' and not exists (select NULL from fnd_audit_tables t where t.audit_group_id = g.audit_group_id and t.audit_group_app_id = g.application_id and t.state != 'E')
commit
----->Update Triggers
commit
+---------------------------------------------------------------------------+
Start of log messages from FND_FILE
+---------------------------------------------------------------------------+
+---------------------------------------------------------------------------+
End of log messages from FND_FILE
+---------------------------------------------------------------------------+
+---------------------------------------------------------------------------+
No completion options were requested.
Output file size:
0
Output is not being printed because:
The print option has been disabled for this report.
+---------------------------------------------------------------------------+
Concurrent request completed successfully
Current system time is 05-MAY-2018 22:13:16
+---------------------------------------------------------------------------+
Auto creating table: SELECT * FROM wip_requirement_operatio_a;
Add cols
Update cols
没审计 Per Assembly 字段,所以审计表不会记录更新操作
增加审计字段
Delete cols
End Audit Funtion.
Oracle ERP Audit Funtion in R12.2.4的更多相关文章
- 破解Oracle ERP密码
前提:你有apps的数据库账户,想知道某个用户的密码,因为fnd_user中的密码为加密的,所以无法看懂,你可以尝试用下边的方式来查看用户密码. SQL> desc fnd_user; Name ...
- Oracle Erp常用网站
2014-01-01 Created By BaoXinjian
- ORACLE ERP 的前世今生
一个伟大的公司必有一个伟大的产品.如果说数据库是ORACLE在上世纪最后二十年赖以起家并奠定江湖地位的旗舰产品,那么,企业应用产品(或曰ERP)则毫无疑问是ORACLE在本世纪初的这近十年,征战疆场. ...
- oracle erp 表结构
BOM模块常用表结构 表名: bom.bom_bill_of_materials 说明: BOM清单父项目 BILL_SEQUENCE_ID NUMBER 清单序号(关键字)ASSEMBLY_ITEM ...
- 破解Oracle ERP 密码
1. 写作目的 1 2. 利用Toad或其它pl/sql工具在Oracle ERP Database中建立Package,源码如下 1 (1). ...
- ORACLE ERP各模块会计分录
ORACLE ERP各模块会计分录 第一章 采购模块 一.资产采购(科目来源:库存组织) 1.物料接收 借 材料采购 接收数量*采购单价 贷 应计暂估 接收数量*采购单价 2 ...
- ORACLE ERP consolidation流程(一)
原文地址:ORACLE ERP consolidation流程(一) 作者:wolfyuan ORACLE EBS by transaction consolidation的详细流程(一)[@more ...
- Oracle ERP Profile
1.配置系统 . 进入路径:SYSADMIN 登录,系统管理员--Profile--系统: 配置分类 配置文件 文件选项 内容 配置系统 ICX% ICX:日期显示样式 选择修改日期输 入格式(199 ...
- Oracle ERP系统借贷关系表
Oracle ERP系统借贷关系表 成本核算会计信息归纳 按照事务处理的来源类型归纳. 一. 采购接收入库和退货: 1.接收: 借:材料采购 (订单价格) 贷:应计负债 (订单价格) 2.入库: ...
随机推荐
- 基于react/vue的移动端终极适配方案vw单位(更新css-modules配置)
传送门: https://segmentfault.com/a/1190000014185590
- php 中使用include、require、include_once、require_once的区别
在PHP中,我们经常会通过include.require.include_once.require_once来引用文件,都可以达到引用文件的目的,但他们之间又有哪些区别呢,接一下我们详细的介绍一下 i ...
- java StringTokenizer
在java引入正则表达式和Scanner类之前分割字符串的唯一方法是使用StringTokenizer来分词,不过现在有了正则表达式和Scanner类我们可以使用更加简单更加简洁的方式来完成同样的工作 ...
- PHP实现字符串转义和还原
首先大家可以简单了解下什么是转义字符?有什么用? 转义字符是一种特殊的字符常量.转义字符以反斜线"\"开头,后跟一个或几个字符.转义字符具有特定的含义,不同于字符原有的意义,故称“ ...
- Linux学习笔记:scp远程拷贝文件
scp是secure copy的简写,用于Linux下进行远程拷贝文件的命令,类似的有cp,不过cp仅在本机上进行拷贝不能跨服务器. 命令格式: scp [参数] [原路径] [目标路径] -q 不显 ...
- kafka 数据存储结构+原理+基本操作命令
数据存储结构: Kafka中的Message是以topic为基本单位组织的,不同的topic之间是相互独立的.每个topic又可以分成几个不同的partition(每个topic有几个partitio ...
- sum of powers
题意: 考虑所有的可重集{a1,a2,a3....ak} 满足a1+a2+....+ak=n,求所有a1^m+a2^m+a3^m的和 n,m,k<=5000 题解: part1: 考虑f[i][ ...
- 一次流式处理的submit
考虑很多: 压背.限流.JVM优化,出错的重试等 #!/bin/bash num_executors=1 executor_memory=1g driver_memory=1g executor_co ...
- 4.Django|ORM模型层
ORM简介 MVC或者MVC框架中包括一个重要的部分,就是ORM,它实现了数据模型与数据库的解耦,即数据模型的设计不需要依赖于特定的数据库,通过简单的配置就可以轻松更换数据库,这极大的减轻了开发人员的 ...
- python tkinter-单选、多选
单选按钮 tkinter.Radiobutton(root,text='a').pack() tkinter.Radiobutton(root,text='b').pack() tkinter.R ...