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的更多相关文章

  1. 破解Oracle ERP密码

    前提:你有apps的数据库账户,想知道某个用户的密码,因为fnd_user中的密码为加密的,所以无法看懂,你可以尝试用下边的方式来查看用户密码. SQL> desc fnd_user; Name ...

  2. Oracle Erp常用网站

    2014-01-01 Created By BaoXinjian

  3. ORACLE ERP 的前世今生

    一个伟大的公司必有一个伟大的产品.如果说数据库是ORACLE在上世纪最后二十年赖以起家并奠定江湖地位的旗舰产品,那么,企业应用产品(或曰ERP)则毫无疑问是ORACLE在本世纪初的这近十年,征战疆场. ...

  4. oracle erp 表结构

    BOM模块常用表结构 表名: bom.bom_bill_of_materials 说明: BOM清单父项目 BILL_SEQUENCE_ID NUMBER 清单序号(关键字)ASSEMBLY_ITEM ...

  5. 破解Oracle ERP 密码

    1.        写作目的        1 2.        利用Toad或其它pl/sql工具在Oracle ERP Database中建立Package,源码如下        1 (1). ...

  6. ORACLE ERP各模块会计分录

      ORACLE ERP各模块会计分录   第一章 采购模块 一.资产采购(科目来源:库存组织) 1.物料接收 借  材料采购     接收数量*采购单价 贷 应计暂估     接收数量*采购单价 2 ...

  7. ORACLE ERP consolidation流程(一)

    原文地址:ORACLE ERP consolidation流程(一) 作者:wolfyuan ORACLE EBS by transaction consolidation的详细流程(一)[@more ...

  8. Oracle ERP Profile

    1.配置系统 . 进入路径:SYSADMIN 登录,系统管理员--Profile--系统: 配置分类 配置文件 文件选项 内容 配置系统 ICX% ICX:日期显示样式 选择修改日期输 入格式(199 ...

  9. Oracle ERP系统借贷关系表

    Oracle ERP系统借贷关系表 成本核算会计信息归纳 按照事务处理的来源类型归纳. 一. 采购接收入库和退货: 1.接收:   借:材料采购 (订单价格) 贷:应计负债 (订单价格) 2.入库: ...

随机推荐

  1. App调试的几个命令实践【转】

    在Android的应用开发中,我们会用到各种代码调试:其实在Android的开发之后,我们可能会碰到一些随机的问题,如cpu过高,内存泄露等,我们无法简单的进行代码调试,我们需要一个系统日志等等,下面 ...

  2. Android设计模式-观察者模式

    原文地址 http://blog.csdn.net/qq_25806863/article/details/69218968 观察者模式是一种使用频率非常高的设计模式,最常用的地方就是订阅-发布系统. ...

  3. 【转载】linux下升级npm以及node

    原文:http://blog.csdn.net/qq_16339527/article/details/73008708 npm升级 废话不多说,直接讲步骤.先从容易的开始,升级npm. npm这款包 ...

  4. JAVA Random 随机类

    nextInt 方法 得到一个随机整数, 可以指定范围 package object; import static net.util.Print.*; import java.util.Random; ...

  5. python 全栈开发,Day90(Vue组件,前端开发工具包)

    昨日内容回顾 1. Vue使用 1. 生成Vue实例和DOM中元素绑定 2. app.$el --> 取出该vue实例绑定的DOM标签 3. app.$data --> 取出该vue实例绑 ...

  6. Asp.Net Core WebAPI入门整理(三)跨域处理

    一.Core  WebAPI中的跨域处理  1.在使用WebAPI项目的时候基本上都会用到跨域处理 2.Core WebAPI的项目中自带了跨域Cors的处理,不需要单独添加程序包 3.使用方法简单 ...

  7. elastalert邮件报警

    https://www.cnblogs.com/zhaijunming5/p/7943933.html

  8. springmvc文件上传下载简单实现案例(ssm框架使用)

    springmvc文件上传下载实现起来非常简单,此springmvc上传下载案例适合已经搭建好的ssm框架(spring+springmvc+mybatis)使用,ssm框架项目的搭建我相信你们已经搭 ...

  9. openstack基础环境准备(一)

    一.环境介绍 操作系统 ip地址 主机名 服务 centos7.5 192.168.56.11 linux-node1 控制节点 centos7.5 192.168.56.12 linux-node2 ...

  10. k8s nod rc service 使用

    引用自:https://blog.csdn.net/dream_broken/article/details/53115770