REFERENCING NEW
Hi,
on 10.2.0.3 on Win 2003,
we have this trigger and insert on the table takes too much time :
CREATE OR REPLACE TRIGGER USER.TRIGGER
BEFORE INSERT
ON MYTABLE
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
DECLAREIs there any problem with trigger ?
Is this trigger usefull ? I ask this question because in documentation here
http://docs.oracle.com/cd/A97630_01/appdev.920/a96590/adg13trg.htm
A trigger fired by an INSERT statement has meaningful access to new column values only.
Because the row is being created by the INSERT, the old values are nullThank you.
You leave out the actual code, making it impossible to answer the question.
The header you show is a default trigger.
If this is 'taking too much time' Oracle would have addressed it in the previous milennium.
Sybrand Bakker
Senior Oracle DBA
Similar Messages
-
How to create a new document type for PO and Requisition
Hi All
Can you please help me with the steps of creating a new document type for PO and PR. Also the steps that need to be update for the procure pay cycle to work properly.
Once the document type is been created. I want to create the PO referecing the new PR and PO document type.I am new in MM.
Thanks, RosHi,
1. You can create new PR and PO docu types at the following path:
For PR docu type:
First you need to create number range for docu type or you can use existing number range also. The path for creation of no. range is
SPRO>Materials Management->Purchasing->Purchase Requisition->Define Number Ranges
Then create PR docu type at below path and assign no. range to PR docu type here only
SPRO>Materials Management->Purchasing->Purchase Requisition->Define Document Types
For PO docu type:
Follow same procedure as mentioned for PR docu type. Path is
SPRO>Materials Management->Purchasing->Purchase Order->Define Number Ranges
SPRO>Materials Management>Purchasing->Purchase Order->Define Document Types
If you want to create PO referencing new PR docu type, link the PR docu type to PO docu type at below path:
SPRO>Materials Management->Purchasing->Purchase Requisition->Define Document Types--> Link purchase requisition - document type
Regards
Chetan -
Trigger is not updateing the :new value in the table
Hi,
I've greated a row trigger that will trigger on insert statements.
The last thing the trigger will do is to update the :NEW.role_id value in the inserted row, see the trigger bellow.
The trigger was mutation so I had to add the 'PRAGMA AUTONOMOUS_TRANSACTION;' to avoid the mutation error.
When performing test with controlled insert statements the trigger is working without problems, but when I my J2EE application is inserting rows to the table the role_id value is nog updated, see the trigger below and the :NEW.role_id := nRole_id; part. The role_id for the new row is empty. What can be the problem?
CREATE OR REPLACE TRIGGER MSP_36.M2_USER_ALERT_INSERT_TRG_SCA
BEFORE INSERT
ON MSP_36.M2_USER_ALERT
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
DECLARE
ex_not_valid_role_name EXCEPTION;
/* Variables */
nAlertTypeId M2_USER_ALERT.alert_type%TYPE;
isLogical boolean;
validRole boolean;
nRole_id M2_ROLE.role_id%TYPE;
PRAGMA AUTONOMOUS_TRANSACTION;
BEGIN
BEGIN
SELECT distinct at.alert_type INTO nAlertTypeId
FROM M2_USER_ALERT ua, M2_ALERT_TYPE at,M2_ALERT_TYPE_PROPERTIES atp
WHERE ua.alert_type = at.alert_type
AND at.alert_type = atp.ALERT_TYPE_ID
AND ua.alert_type = :NEW.alert_type
AND upper(atp.property_name) = 'LOGICAL'
AND upper(atp.property_value) = 'TRUE';
isLogical := true;
EXCEPTION
WHEN no_data_found THEN
isLogical := false;
NULL;
END;
IF (isLogical = true) THEN
BEGIN
SELECT distinct ro.role_id INTO nRole_id
FROM M2_ROLE ro, M2_USER_ALERT
WHERE ro.name = :NEW.name;
EXCEPTION
WHEN no_data_found THEN
validRole :=false;
RAISE_APPLICATION_ERROR(-20001,'LOGICAL UserAlert: Role with id'|| nRole_id || ' does not exist.');
NULL;
END;
validRole := true;
IF (isLogical = true AND validRole = true AND :NEW.status = 1) THEN
INSERT INTO M2_USER_ROLE (user_id,role_id)
VALUES (:NEW.user_id,nRole_id);
:NEW.role_id := nRole_id;
END IF;
END IF;
commit;
END;
Many thanks,
MichaelI only get a empty column that include now data. The first insert is working correct so I know that the role_id is valid and working. Can there be problem with commit or my AUTONOMOUS_TRANSACTION running this from JDBC ?
EXAMPLE data from
M2_USER_ROLE
===================
USER_ID = ROLE_ID =
===================
20 = 10040 =
1259756 = 10040 =
===================
Example partly data from
M2_USER_ALERT
=========================================================
USERALERT_ID = USER_ID = ALERT_TYPE = NAME = ROLE_ID =
=========================================================
3725 = 1259756 = 10288 = MG_Test = =
=========================================================
When inserted from the application the role_id is empty and I've taken the same SQL from the library cache and run it with same BIND variables and then it's working.
Michael -
Update on a Table is Slow After a New Trigger is Applied on Table.
Hi All,
Here is the situation:
1. Table A - we have INSURANCE Records. If we have to cancel Insurance for an agent we have to update cancellation_date &
INS_Flag sysdate & 'N' respectively. It is having thousands of records.
- > Every time we update a record with cancellation_date & INS_Flag there are two other tables which are updating using
trigger.
- > For each record updated in Table A we have to terminate the existing contract in Table B and set the INS_flag to N in third
Table C.
2. Table B - It is the primary table for all the INSURANCE contracts. so we have to terminate existing contracts for those agent who are
having cancellation_date & INS_Flag in table A.
3. Table C - It is having all the basic contracts with a flag for INSURANCE Contracts. If a agent is having a flag as Y in this table must have a
INSURANCE contract in Table B.
Now We are having a simple after update trigger on TABLE A which will update table B & Table C accordingly for each row.
We are having Table A so that we can synchronize Oracle Apps Database & Oracle Database for deverlopers.
Before trigger - Update on table A was fast but after implementing the trigger it takes 4-5 mins. for 10 records update in table A.
There are several indexes on Table A as well( including several functional indexes ).
Oracle Database :
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for Solaris: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
Please help me How can I make the update faster.
If it is required I will post the trigger code as well.
Many thanks in advance.
Edited by: Kamal Sharma on Jun 23, 2010 4:10 PMHere Table A = TB_CMA063_NETONE_STAGE_DATA
Table B = TB_30.REAL_ESTATE_AGENT_NUM
Table C = TB_CMA009_SUPRA_RE_AGNT_CONT
CREATE OR REPLACE TRIGGER CMADBA.TR_CMA003_ALTERINS_ON_FLG_UPD
AFTER UPDATE
ON CMADBA.TB_CMA063_NETONE_STAGE_DATA
REFERENCING NEW AS New OLD AS Old
FOR EACH ROW
DECLARE
g_exception_id TB_CMA089_CMA_APPS_EXCEPTION.EXCEPTION_ID%Type;
v_msg varchar2(200);
v_status varchar2(10);
l_cmn NUMBER;
l_board_cmn NUMBER;
BEGIN
SELECT CUSTOMER_MASTER_NUM INTO l_board_cmn FROM TB_CMA005_CUSTOMER_MASTER
WHERE IS_REAL_ESTATE_BOARD_FLG='Y'
AND UPPER(RE_NETONE_NAM) = UPPER(:new.IR_INSTALL_SITE_NAM);
IF :new.IR_INSURANCE_FLG = 'N' THEN
BEGIN
-- CANCEL Table 30 record for this agent
UPDATE TB_CMA030_RE_AGENT_INS_PR_BIL TB_30
SET TB_30.cancellation_dt = SYSDATE,
TB_30.RECORD_UPDATE_FLG = 'Y'
WHERE TB_30.REAL_ESTATE_AGENT_NUM = :new.IR_AGENT_ID_NAM
AND CANCELLATION_DT IS NULL
AND CUSTOMER_MASTER_NUM = l_board_cmn;
-- UPDATE TABLE 9 RUF to Y so that Contract API would process this agent in next run
UPDATE TB_CMA009_SUPRA_RE_AGNT_CONT
SET RECORD_UPDATE_FLG='Y'
WHERE REAL_ESTATE_AGENT_NUM = :new.IR_AGENT_ID_NAM
AND CANCELLATION_DT IS NULL
AND CUSTOMER_MASTER_NUM = l_board_cmn;
END;
ELSIF :new.IR_INSURANCE_FLG = 'Y' THEN
BEGIN
INSERT INTO TB_CMA030_RE_AGENT_INS_PR_BIL
(BILL_FREQ_UNIT_CD,CUSTOMER_MASTER_NUM,SERIAL_NUM,REAL_ESTATE_AGENT_NUM,REAL_ESTATE_BOARD_NUM,
PRODUCT_NAM, SERVICE_TYPE_NAM, LEASE_TYPE_NAM, CONT_START_DT, RE_AGENT_CUSTOMER_MASTER_NUM,
RE_AGENT_CONT_START_DT, INS_BILL_FREQ_UNIT_CD,
CONT_END_DT, RECORD_UPDATE_FLG, INS_AGENT_CONT_START_DT)
SELECT DISTINCT 'AN', TB009.CUSTOMER_MASTER_NUM, TB009.SERIAL_NUM,
TB009.REAL_ESTATE_AGENT_NUM, TB009.REAL_ESTATE_BOARD_NUM, TB009.PRODUCT_NAM, 'INS',
TB009.LEASE_TYPE_NAM, TB009.CONT_START_DT, TB009.RE_AGENT_CUSTOMER_MASTER_NUM, TB009.RE_AGENT_CONT_START_DT,
TB009.BILL_FREQ_UNIT_CD, TB009.CONT_END_DT, 'Y', TRUNC(SYSDATE)
FROM TB_CMA009_SUPRA_RE_AGNT_CONT TB009
WHERE TB009.CUSTOMER_MASTER_NUM = l_board_cmn
AND TB009.CANCELLATION_DT IS NULL
AND TB009.IS_TRAINING_KEY_FLG = 'N'
AND TB009.REAL_ESTATE_AGENT_NUM = :new.IR_AGENT_ID_NAM
AND TB009.product_nam IN ('AKY','DKY')
and not exists
(select 'x'
from tb_cma030_re_agent_ins_pr_bil tb030
where tb030.customer_master_num = tb009.customer_master_num
and tb030.real_estate_agent_num = tb009.real_estate_agent_num
and tb030.serial_num = tb009.serial_num
and tb030.ins_bill_freq_unit_cd = tb009.bill_freq_unit_cd
and tb030.product_nam = tb009.product_nam);
-- UPDATE TABLE 9 RUF to Y so that Contract API would process this agent in next run
UPDATE TB_CMA009_SUPRA_RE_AGNT_CONT
SET RECORD_UPDATE_FLG='Y', AGENT_KEY_INS_FLG='Y'
WHERE REAL_ESTATE_AGENT_NUM = :new.IR_AGENT_ID_NAM
AND CANCELLATION_DT IS NULL
AND CUSTOMER_MASTER_NUM = l_board_cmn;
END;
END IF;
EXCEPTION
WHEN OTHERS THEN
pc_cma024_batchjob.sp_cma025_log_err(l_board_cmn
,'UPDATE_TB63_TRIGGER'
,'TRIGGER-TR_CMA003_ALTERINS_ON_FLG_UPD'
,sqlcode
,sqlerrm,
'An error occurred when Table 63 trigger tried to cancel/create Table 30 record for Agent ' || :new.IR_AGENT_ID_NAM);
End;
/ -
Trying to automatically add a new row w/o mutating table error...
I'm using Oracle 10g express. I'm trying to automatically add a new row with the same e_ID, (RDD + 6 months) as the updated row when RC is updated. I'm fairly new to Oracle, so I need some help on creating a trigger. If you need more details let me know. Thanks in advance.
create table E
e_id number(6,0) not null,
constraint e_pk primary key(e_id)
create Table ER
e_Id Number(6,0) Not Null,
SC Date,
RDD Date,
RC Date,
Constraint ER_Fk Foreign Key(E_Id) References E(E_Id)
);mookjais wrote:
I'm using Oracle 10g express. I'm trying to automatically add a new row with the same e_ID, (RDD + 6 months) as the updated row when RC is updated. I'm fairly new to Oracle, so I need some help on creating a trigger. If you need more details let me know. Thanks in advance.
create table E
e_id number(6,0) not null,
constraint e_pk primary key(e_id)
create Table ER
e_Id Number(6,0) Not Null,
SC Date,
RDD Date,
RC Date,
Constraint ER_Fk Foreign Key(E_Id) References E(E_Id)
);Do you mean following(example)?
create trigger after_insert_e
after
insert
on e /*This is table name*/
referencing new as new old as old
for each row
begin
insert into ER(e_Id,SC,rdd,rc)
values(:new.ed_id,sysdate,sysdate,sysdate);
end; -
PLS-00049: bad bind variable 'NEW.ID' on trigger
Hi guys, I am using Oracle SQL Developer version 2.1.1.64 and having the sql statement like below
CREATE TABLE Zipcodes
zipcode_id NUMBER(10),
zipcode VARCHAR2(10),
district_id NUMBER(10),
PRIMARY KEY(zipcode_id)
CREATE SEQUENCE ZIPCODE_ID_SEQ START WITH 1 INCREMENT BY 1;
CREATE OR REPLACE TRIGGER ZIPCODE_TRIGGER
BEFORE INSERT
ON ZIPCODES
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
BEGIN
SELECT ZIPCODE_ID_SEQ.NEXTVAL INTO :NEW.ZIPCODE_ID FROM DUAL;
END;
And I got errors:
Error(2,40): PLS-00049: bad bind variable 'NEW.ID'
Error(4,5): PL/SQL: Statement ignored
Error(4,39): PLS-00357: Table,View Or Sequence reference 'ZIPCODE_ID_SEQ.NEXTVAL' not allowed in this context
Error(2,36): PLS-00049: bad bind variable 'NEW.ID'
Error(2,2): PL/SQL: SQL Statement ignored
Error(2,9): PL/SQL: ORA-02289: sequence does not exist
Error(5,1): PLS-00103: Encountered the symbol "SHOW"
Firstly, I dont even have the "SHOW" key world in my syntax.
What is it happening ?
Thank you in advance.Hi,
954390 wrote:
Hi guys, I am using Oracle SQL Developer version 2.1.1.64 Thanks; that could be useful information. Even more important is your database version (e.g. 11.2.0.2.0)
and having the sql statement like below
CREATE TABLE Zipcodes
zipcode_id NUMBER(10),
zipcode VARCHAR2(10),
district_id NUMBER(10),
PRIMARY KEY(zipcode_id)
)Don't you need a semicolin or a slash after the CREATE TABLE statement?
CREATE SEQUENCE ZIPCODE_ID_SEQ START WITH 1 INCREMENT BY 1;Did you get a message like "Sequence created" at this point?
CREATE OR REPLACE TRIGGER ZIPCODE_TRIGGER
BEFORE INSERT
ON ZIPCODES
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
BEGIN
SELECT ZIPCODE_ID_SEQ.NEXTVAL INTO :NEW.ZIPCODE_ID FROM DUAL;
END;
And I got errors:
Error(2,40): PLS-00049: bad bind variable 'NEW.ID'
Error(4,5): PL/SQL: Statement ignored
Error(4,39): PLS-00357: Table,View Or Sequence reference 'ZIPCODE_ID_SEQ.NEXTVAL' not allowed in this context
Error(2,36): PLS-00049: bad bind variable 'NEW.ID'
Error(2,2): PL/SQL: SQL Statement ignored
Error(2,9): PL/SQL: ORA-02289: sequence does not exist
Error(5,1): PLS-00103: Encountered the symbol "SHOW"
Firstly, I dont even have the "SHOW" key world in my syntax.
What is it happening ?You don't have anything like NEW.ID, either.
Also, the line numbers in error messages for triggers start with the first DECLARE or BEGIN statement, so this trigger only has 3 lines, yet you're getting line numbers up to 5 in the error messages.
That trigger works fine for me in SQL*Plus (database 10.2.0.1.0).
Are you sure you're showing the complete script, exactly what you're running? If you had some syntax error before the CREATE OR REPLACE TRIGGER statement, that might possibly account for the parser getting confused.
Does your code work in SQL*Plus? -
Hello
When I use this Trigger:
CREATE OR REPLACE TRIGGER TMM_EXPLOSE_T
AFTER INSERT ON TMM_EXPLOSE
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
DECLARE TTCNT INTEGER;
BEGIN
TTCNT:=0;
IF (:NEW.TMM_TYPE != 'SNBOM') THEN
TMM_EXPLOSE_P(:NEW.TMM_TYPE,:NEW.USERNAME,:NEW.CAL,:NEW.POS,:NEW.DDATE,:NEW.LIV,:NEW.SLIV,:NEW.MQTY,:NEW.PARENT,:NEW.CHILD,'',TTCNT);
ELSE
TMM_EXPLOSE_SN(:NEW.TMM_TYPE,:NEW.USERNAME,:NEW.CAL,:NEW.POS,:NEW.DDATE,:NEW.LIV,:NEW.SLIV,:NEW.MQTY,:NEW.PARENT,:NEW.CHILD,'');
END IF;
END;
I receive this error:
PLS-00553: character set name is not recognized
I think is for the :NEW
Could you explain me how i can do it work please
I use Orcale 9.2.0.1.0 on Unix server with
NLS_CHARACTERSET WE8ISO8859P15
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_LANGUAGE AMERICAN
Thank you
Pierre Diazhi:
what version of Project Raptor are you using?
I created a tmm_explose table with just a column tmm_type;
I open a sql worksheet on Raptor 08.04 on linux, and when I run
CREATE OR REPLACE TRIGGER TMM_EXPLOSE_T
AFTER INSERT ON TMM_EXPLOSE
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
DECLARE TTCNT INTEGER;
BEGIN
TTCNT:=0;
IF (:NEW.TMM_TYPE != 'SNBOM') THEN
-- TMM_EXPLOSE_P(:NEW.TMM_TYPE,:NEW.USERNAME,:NEW.CAL,:NEW.POS,:NEW.DDATE,:NEW.LIV,:NEW.SLIV,:NEW.MQTY,:NEW.PARENT,:NEW.CHILD,'',TTCNT);
null;
ELSE
-- TMM_EXPLOSE_SN(:NEW.TMM_TYPE,:NEW.USERNAME,:NEW.CAL,:NEW.POS,:NEW.DDATE,:NEW.LIV,:NEW.SLIV,:NEW.MQTY,:NEW.PARENT,:NEW.CHILD,'');
null;
END IF;
END;
/the message is a popup window stating: "An error was encountered performing the requested operation: Missing IN or OUT parameter at index:: 1 Vendor code 17041"
The same works when I put :new in quotes:
CREATE OR REPLACE TRIGGER TMM_EXPLOSE_T
AFTER INSERT ON TMM_EXPLOSE
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
DECLARE TTCNT INTEGER;
BEGIN
TTCNT:=0;
IF (:"NEW".TMM_TYPE != 'SNBOM') THEN
-- TMM_EXPLOSE_P(:NEW.TMM_TYPE,:NEW.USERNAME,:NEW.CAL,:NEW.POS,:NEW.DDATE,:NEW.LIV,:NEW.SLIV,:NEW.MQTY,:NEW.PARENT,:NEW.CHILD,'',TTCNT);
null;
ELSE
-- TMM_EXPLOSE_SN(:NEW.TMM_TYPE,:NEW.USERNAME,:NEW.CAL,:NEW.POS,:NEW.DDATE,:NEW.LIV,:NEW.SLIV,:NEW.MQTY,:NEW.PARENT,:NEW.CHILD,'');
null;
END IF;
END;
/Please, note that I just commented the tmm_explose_p function (for lazyness... :-)) -
:NEW.columnaname is sport in trigger for picture replication.
:New.columnname is soprt in trigger for picture data replication. its is not working in my code. any body can help me. my code is below.
create table StoredImages
( imageid number,
imagecontainer blob);
Create table copy_StoredImages
as select * from StoredImages;
CREATE OR REPLACE TRIGGER "REPLICATE_storedImage"
AFTER INSERT OR DELETE OR UPDATE
OF imageid ON StoredImages
REFERENCING NEW AS N OLD AS O
FOR EACH ROW
BEGIN
IF INSERTING THEN
INSERT INTO COPY_StoredImages (imageid, imagecontainer)
VALUES (:N.imageid, :N.imagecontainer);
ELSIF UPDATING THEN
UPDATE COPY_StoredImages
SET imageid = :N.imageid,
imagecontainer = :N.imagecontainer
WHERE imageid = :O.imageid;
ELSIF DELETING THEN
DELETE FROM COPY_StoredImages
WHERE imageid = :O.imageid;
END IF;
END;
Through this trigger i want to replicate picture data in Copy_StoredImages all data is replicate but picture data is not replicate, Is there is any error in my trigger. Is there is another way to replicate picture data. please help me it is Very Urgent.
Sohail.Thanks for this, got it all downloaded now, hoorah!
The only thing that doesn't work is when I am running, the map is not showing anything - it is blank with the green line tracking my route, but no actual map showing road/street names etc (just says loading).
Do you know why this is? Do I need to download something else? I have google maps downloaded as an app, but its not picking that up....................Or is this only available on the newer version? Frustrating, I mean, it shows my route when I upload to my PC, but not as I'm running {( -
REFERENCING PARENT clause of CREATE TRIGGER
Hi All-
I have a mystery. Create Trigger, described in my "Oracle 8i: The Complete Reference" (Pg 1046-7 in my) book includes a syntax diagram which shows
REFERENCING OLD AS ...
REFERENCING NEW AS ...
REFERENCING PARENT AS ...
All as valid referencing clauses. OLD and NEW are discussed in the text, but PARENT is not.
What does this do? I am trying to solve a problem and this may apply.
Thanks for any advice!!!
David
luked(at--no spam please)bigfoot.comHi
'If the trigger is defined on a nested table, OLD and NEW refer to the row of the
nested table, and PARENT refers to the current row of the parent table.'
This sentence is from SQL Reference. I never used parent in my practice.
Regards
null -
When I try to create a model from the database, I get this:
An exception of type "System.TypeInitializationException" occurred while attempting to launch Entity Data Model Wizard.
The exception message is:
Type constructor threw an exception.
I've tried adding a new Data Source, adding a new empty Entity Data Model to the project, and adding a new Data Model generated from the database. All result in the same error.Thanks for the tips.
I'm working with a new Class Library project. I tried switching it to target x86 instead of AnyCPU but got the same error. I used the Oracle installer to install Beta 3.
The table I'm trying to model is a very simple test table that I created. Here's the script:
CREATE TABLE PERSON
ID INTEGER,
FIRST_NAME VARCHAR2(30 BYTE) NOT NULL,
LAST_NAME VARCHAR2(30 BYTE) NOT NULL
TABLESPACE DEFAULT_USER
PCTUSED 40
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
FREELISTS 1
FREELIST GROUPS 1
BUFFER_POOL DEFAULT
LOGGING
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING;
CREATE UNIQUE INDEX PERSON_PK ON PERSON
(ID)
LOGGING
TABLESPACE DEFAULT_USER
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
FREELISTS 1
FREELIST GROUPS 1
BUFFER_POOL DEFAULT
NOPARALLEL;
CREATE OR REPLACE TRIGGER PERSON_TRG
BEFORE INSERT
ON PERSON
REFERENCING NEW AS New OLD AS Old
FOR EACH ROW
DECLARE
N NUMBER;
BEGIN
-- For Toad: Highlight column ID
SELECT PERSON_SEQ.NEXTVAL INTO n FROM DUAL;
:new.ID := N;
END PERSON_TRG;
ALTER TABLE PERSON ADD (
CONSTRAINT PERSON_PK
PRIMARY KEY
(ID)
USING INDEX PERSON_PK
ENABLE VALIDATE);
It lets me go through the wizard, choosing a connection, then the table, but once I click Finish, I get the "Type constructor threw an exception" error.
The edmx file looks like it's created correctly if I view the XML, but the designer fails to load with "The operation could not be completed". It has the SSDL, CSDL, C-S mapping, and EF Designer sections.
The output generated is:
Generated model file: Model1.edmx.
Loading metadata from the database took 00:00:06.6309154.
Generating the model took 00:00:09.6584683.
Added the connection string to the App.Config file.
Writing the .edmx file took 00:00:00.0017806.
My machine is running VS2010 SP1 on Windows XP SP3.
edit - I tried generating a model from SQL Server Express and had the same error, so it's probably not related to ODP.NET. -
Hi, I am trying to properly display a list of tasks for a project however without a join to the project number (which I was aware of) and the employee table, I get over 500 results.
The task can be created without a employee assigned to it so therefore the page does not require the field to be filled in.
Here is the SQL code, any does anyone have any ideas?
select
pd.pk_proj_detail_id "Task Number",
pd.task_title "Task Title",
pd.DETAIL_STATUS "Task Status",
pm.name "Associated Project",
pps.last_name||', '||pps.first_name||', '||pps.middle_initial||'.' "Assigned Employee",
pd.TRACKIT_NUMBER "TrackIt! Number",
pd.CREATEBY_DATE "Date Entered",
pd.DATE_BEGIN "Date Began",
pd.ESTIMATED_DATE "Estimated Completion Date",
pd.DATE_END "Date Completed"
from
PROTRAC_DETAIL pd,
protrac_master pm,
cobr.vw_pps_payroll pps,
resources r
where
pd.fk_proj_master_id = pm.PK_PROJ_MASTER_ID
and r.fk_master_id = pm.PK_PROJ_MASTER_ID
and (r.emp_id = pps.emple_no
or r.emp_id is null)It's 10g r2 with Application Express 3.1.0.00.32
This is the tasks (detail) table
ALTER TABLE PROTRAC_DETAIL
DROP PRIMARY KEY CASCADE;
DROP TABLE PROTRAC_DETAIL CASCADE CONSTRAINTS;
CREATE TABLE PROTRAC_DETAIL
PK_PROJ_DETAIL_ID NUMBER NOT NULL,
FK_PROJ_MASTER_ID NUMBER,
TRACKIT_NUMBER NUMBER,
DETAIL_DESCRIPTION VARCHAR2(4000 CHAR),
DETAIL_STATUS VARCHAR2(19 CHAR),
DETAIL_STATUS_COMMENT VARCHAR2(4000 CHAR),
DATE_BEGIN DATE,
DATE_END DATE,
ESTIMATED_DATE DATE,
CREATEBY_DATE DATE,
CREATEBY_USER VARCHAR2(50 CHAR),
LASTMOD_DATE DATE,
LASTMOD_USER VARCHAR2(50 CHAR),
TASK_TITLE VARCHAR2(100 CHAR)
TABLESPACE DEVPROTRAC_DATA
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
BUFFER_POOL DEFAULT
CREATE UNIQUE INDEX PROTRAC_DETAIL_PK ON PROTRAC_DETAIL
(PK_PROJ_DETAIL_ID)
TABLESPACE DEVPROTRAC_DATA
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
BUFFER_POOL DEFAULT
CREATE OR REPLACE TRIGGER BUI_PROTRAC_DETAIL
before insert or update
on PROTRAC_DETAIL
referencing new as New old as Old
for each row
begin
if inserting then
select users_seq.nextval, sysdate, apex_application.g_user
into :new.pk_proj_detail_id, :new.createby_date, :new.createby_user
from dual;
elsif updating then
select sysdate, apex_application.g_user
into :new.lastmod_date, :new.lastmod_user
from dual;
end if;
end;
SHOW ERRORS;
ALTER TABLE PROTRAC_DETAIL ADD (
CONSTRAINT PROTRAC_DETAIL_PK
PRIMARY KEY
(PK_PROJ_DETAIL_ID)
USING INDEX
TABLESPACE DEVPROTRAC_DATA
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
ALTER TABLE PROTRAC_DETAIL ADD (
CONSTRAINT PROTRAC_DETAIL_NUM
FOREIGN KEY (FK_PROJ_MASTER_ID)
REFERENCES PROTRAC_MASTER (PK_PROJ_MASTER_ID));
ALTER TABLE DEVPROTRAC.RESOURCES ADD (
FOREIGN KEY (FK_DETAIL_ID)
REFERENCES DEVPROTRAC.PROTRAC_DETAIL (PK_PROJ_DETAIL_ID));
SET DEFINE OFF;
Insert into PROTRAC_DETAIL
(PK_PROJ_DETAIL_ID, FK_PROJ_MASTER_ID, TRACKIT_NUMBER, DETAIL_DESCRIPTION, DETAIL_STATUS,
DETAIL_STATUS_COMMENT, DATE_BEGIN, DATE_END, ESTIMATED_DATE, CREATEBY_DATE,
CREATEBY_USER, LASTMOD_DATE, LASTMOD_USER, TASK_TITLE)
Values
(34, 24, NULL, 'test', 'Queued',
NULL, NULL, NULL, NULL, TO_DATE('10/30/2008 13:37:01', 'MM/DD/YYYY HH24:MI:SS'),
'LREDMOND', TO_DATE('11/03/2008 15:19:35', 'MM/DD/YYYY HH24:MI:SS'), NULL, 'bananana');
Insert into PROTRAC_DETAIL
(PK_PROJ_DETAIL_ID, FK_PROJ_MASTER_ID, TRACKIT_NUMBER, DETAIL_DESCRIPTION, DETAIL_STATUS,
DETAIL_STATUS_COMMENT, DATE_BEGIN, DATE_END, ESTIMATED_DATE, CREATEBY_DATE,
CREATEBY_USER, LASTMOD_DATE, LASTMOD_USER, TASK_TITLE)
Values
(41, 40, NULL, '2354234', 'Queued',
NULL, NULL, NULL, NULL, TO_DATE('10/31/2008 00:00:00', 'MM/DD/YYYY HH24:MI:SS'),
'LREDMOND', TO_DATE('11/03/2008 13:52:02', 'MM/DD/YYYY HH24:MI:SS'), 'LREDMOND', 'I can type on the keyboarddf');
Insert into PROTRAC_DETAIL
(PK_PROJ_DETAIL_ID, FK_PROJ_MASTER_ID, TRACKIT_NUMBER, DETAIL_DESCRIPTION, DETAIL_STATUS,
DETAIL_STATUS_COMMENT, DATE_BEGIN, DATE_END, ESTIMATED_DATE, CREATEBY_DATE,
CREATEBY_USER, LASTMOD_DATE, LASTMOD_USER, TASK_TITLE)
Values
(49, 32, 78888, 'one day fishsticks will walk on the moon.', 'Queued',
'waiting for fishsticks.', NULL, NULL, NULL, TO_DATE('11/03/2008 11:28:11', 'MM/DD/YYYY HH24:MI:SS'),
'LREDMOND', NULL, NULL, 'Fix the keyboard');
Insert into PROTRAC_DETAIL
(PK_PROJ_DETAIL_ID, FK_PROJ_MASTER_ID, TRACKIT_NUMBER, DETAIL_DESCRIPTION, DETAIL_STATUS,
DETAIL_STATUS_COMMENT, DATE_BEGIN, DATE_END, ESTIMATED_DATE, CREATEBY_DATE,
CREATEBY_USER, LASTMOD_DATE, LASTMOD_USER, TASK_TITLE)
Values
(50, 38, NULL, 'dfdfdfdfdfdfdfdfdf', 'Queued',
NULL, NULL, NULL, NULL, TO_DATE('11/03/2008 12:03:06', 'MM/DD/YYYY HH24:MI:SS'),
'LREDMOND', TO_DATE('11/03/2008 15:19:44', 'MM/DD/YYYY HH24:MI:SS'), NULL, 'resreeeeeeeeee');
Insert into PROTRAC_DETAIL
(PK_PROJ_DETAIL_ID, FK_PROJ_MASTER_ID, TRACKIT_NUMBER, DETAIL_DESCRIPTION, DETAIL_STATUS,
DETAIL_STATUS_COMMENT, DATE_BEGIN, DATE_END, ESTIMATED_DATE, CREATEBY_DATE,
CREATEBY_USER, LASTMOD_DATE, LASTMOD_USER, TASK_TITLE)
Values
(33, 31, NULL, 'Make sure the bananas are fresh', 'Queued',
NULL, NULL, NULL, NULL, TO_DATE('10/29/2008 00:00:00', 'MM/DD/YYYY HH24:MI:SS'),
'LREDMOND', TO_DATE('11/03/2008 15:19:52', 'MM/DD/YYYY HH24:MI:SS'), NULL, 'e543563465');
Insert into PROTRAC_DETAIL
(PK_PROJ_DETAIL_ID, FK_PROJ_MASTER_ID, TRACKIT_NUMBER, DETAIL_DESCRIPTION, DETAIL_STATUS,
DETAIL_STATUS_COMMENT, DATE_BEGIN, DATE_END, ESTIMATED_DATE, CREATEBY_DATE,
CREATEBY_USER, LASTMOD_DATE, LASTMOD_USER, TASK_TITLE)
Values
(48, 37, NULL, 'guitar heros! yay', 'Queued',
NULL, NULL, NULL, NULL, TO_DATE('11/03/2008 11:26:06', 'MM/DD/YYYY HH24:MI:SS'),
'LREDMOND', TO_DATE('11/03/2008 15:19:57', 'MM/DD/YYYY HH24:MI:SS'), NULL, '34444444444444543etfg');
COMMIT;This is for the resources table:
ALTER TABLE RESOURCES
DROP PRIMARY KEY CASCADE;
DROP TABLE RESOURCES CASCADE CONSTRAINTS;
CREATE TABLE RESOURCES
PK_RESOURCES_ID NUMBER,
FK_DETAIL_ID NUMBER,
EMP_ID NUMBER,
RESOURCE_STATUS VARCHAR2(8 CHAR),
RESOURCE_COMMENT VARCHAR2(4000 CHAR),
CREATEBY_DATE DATE,
CREATEBY_USER VARCHAR2(50 CHAR),
LASTMOD_DATE DATE,
LASTMOD_USER VARCHAR2(50 CHAR),
FK_MASTER_ID NUMBER
TABLESPACE DEVPROTRAC_DATA
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
BUFFER_POOL DEFAULT
CREATE UNIQUE INDEX RESOURCES_PK ON RESOURCES
(PK_RESOURCES_ID)
TABLESPACE DEVPROTRAC_DATA
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
BUFFER_POOL DEFAULT
CREATE OR REPLACE TRIGGER BUI_RESOURCES
before insert or update
on RESOURCES
referencing new as New old as Old
for each row
begin
if inserting then
select users_seq.nextval, sysdate, apex_application.g_user
into :new.pk_resources_id, :new.createby_date, :new.createby_user
from dual;
elsif updating then
select sysdate, apex_application.g_user
into :new.lastmod_date, :new.lastmod_user
from dual;
end if;
end;
SHOW ERRORS;
ALTER TABLE RESOURCES ADD (
CONSTRAINT RESOURCES_PK
PRIMARY KEY
(PK_RESOURCES_ID)
USING INDEX
TABLESPACE DEVPROTRAC_DATA
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
ALTER TABLE RESOURCES ADD (
FOREIGN KEY (FK_DETAIL_ID)
REFERENCES PROTRAC_DETAIL (PK_PROJ_DETAIL_ID),
FOREIGN KEY (FK_MASTER_ID)
REFERENCES PROTRAC_MASTER (PK_PROJ_MASTER_ID));
SET DEFINE OFF;
Insert into RESOURCES
(PK_RESOURCES_ID, FK_DETAIL_ID, EMP_ID, RESOURCE_STATUS, RESOURCE_COMMENT,
CREATEBY_DATE, CREATEBY_USER, LASTMOD_DATE, LASTMOD_USER, FK_MASTER_ID)
Values
(53, 50, 356654, 'Active', NULL,
TO_DATE('11/04/2008 09:32:06', 'MM/DD/YYYY HH24:MI:SS'), 'LREDMOND', NULL, NULL, NULL);
Insert into RESOURCES
(PK_RESOURCES_ID, FK_DETAIL_ID, EMP_ID, RESOURCE_STATUS, RESOURCE_COMMENT,
CREATEBY_DATE, CREATEBY_USER, LASTMOD_DATE, LASTMOD_USER, FK_MASTER_ID)
Values
(51, 41, 447250, 'Active', 'No Sure.',
TO_DATE('11/03/2008 14:23:11', 'MM/DD/YYYY HH24:MI:SS'), NULL, TO_DATE('11/04/2008 09:00:04', 'MM/DD/YYYY HH24:MI:SS'), NULL, 40);
Insert into RESOURCES
(PK_RESOURCES_ID, FK_DETAIL_ID, EMP_ID, RESOURCE_STATUS, RESOURCE_COMMENT,
CREATEBY_DATE, CREATEBY_USER, LASTMOD_DATE, LASTMOD_USER, FK_MASTER_ID)
Values
(54, 50, 323829, 'Active', NULL,
TO_DATE('11/04/2008 10:26:08', 'MM/DD/YYYY HH24:MI:SS'), 'LREDMOND', NULL, NULL, 38);
Insert into RESOURCES
(PK_RESOURCES_ID, FK_DETAIL_ID, EMP_ID, RESOURCE_STATUS, RESOURCE_COMMENT,
CREATEBY_DATE, CREATEBY_USER, LASTMOD_DATE, LASTMOD_USER, FK_MASTER_ID)
Values
(52, 33, 8915, 'Active', 'get to work',
TO_DATE('11/03/2008 15:20:18', 'MM/DD/YYYY HH24:MI:SS'), 'LREDMOND', TO_DATE('11/03/2008 15:35:10', 'MM/DD/YYYY HH24:MI:SS'), NULL, NULL);
COMMIT;The results I want is everything above regardless of emp_id assigned (if any). Without the r.emp_id = pps.emple_no join, the query will generate 234234239482304234 results.
Hope this helps.
Edited by: leland on Nov 4, 2008 12:56 PM -
Help Needed in Checking data values.
There a table which has got the name, address, ph_number of the organisational division.These deailts are fetched from few other tables and stored in a table.
Could you suggest how to check the details(name,address,ph_number) stored in this table and to create/update a field in a table which has the following number ,along with other the details of the divisions,
‘2’ – Creation of the new New Divisions
‘3’ – Amendment – i.e. Changed Division (either in the Address, Name or Ph_number)
‘4’ – Not Changed
blank = undetermined
Could you pls help in this.
Thanks a lot.Hallo,
with trigger
Something like this
create or replace trigger scott.trg_org
before update or insert on scott.tbl_org
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
begin
if inserting THEN
:new.flag := '2';
else
if :old.adress != :new.adress
or :old.name != :new.name
or :old.phoneNr != :new.phoneNr
then
:new.flag := '3';
else
:new.flag := '4';
end if;
end if;
end;Regards
Dmytro Dekhtyaryuk -
Insert old missing data from one table to another(databaase trigger)
Hello,
i want to do two things
1)I want to insert old missing data from one table to another through a database trigger but it can't be executed that way i don't know what should i do in case of replacing old data in table_1 into table_2
2)what should i use :NEW. OR :OLD. instead.
3) what should i do if i have records exising between the two dates
i want to surpress the existing records.
the following code is what i have but no effect occured.
CREATE OR REPLACE TRIGGER ATTENDANCEE_FOLLOWS
AFTER INSERT ON ACCESSLOG
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
DECLARE
V_COUNT NUMBER(2);
V_TIME_OUT DATE;
V_DATE_IN DATE;
V_DATE_OUT DATE;
V_TIME_IN DATE;
V_ATT_FLAG VARCHAR2(3);
V_EMP_ID NUMBER(11);
CURSOR EMP_FOLLOWS IS
SELECT EMPLOYEEID , LOGDATE , LOGTIME , INOUT
FROM ACCESSLOG
WHERE LOGDATE
BETWEEN TO_DATE('18/12/2008','dd/mm/rrrr')
AND TO_DATE('19/12/2008','dd/mm/rrrr');
BEGIN
FOR EMP IN EMP_FOLLOWS LOOP
SELECT COUNT(*)
INTO V_COUNT
FROM EMP_ATTENDANCEE
WHERE EMP_ID = EMP.EMPLOYEEID
AND DATE_IN = EMP.LOGDATE
AND ATT_FLAG = 'I';
IF V_COUNT = 0 THEN
INSERT INTO EMP_ATTENDANCEE (EMP_ID, DATE_IN ,DATE_OUT
,TIME_IN ,TIME_OUT,ATT_FLAG)
VALUES (TO_NUMBER(TO_CHAR(:NEW.employeeid,99999)),
TO_DATE(:NEW.LOGDATE,'dd/mm/rrrr'), -- DATE_IN
NULL,
TO_DATE(:NEW.LOGTIME,'HH24:MI:SS'), -- TIME_IN
NULL ,'I');
ELSIF V_COUNT > 0 THEN
UPDATE EMP_ATTENDANCEE
SET DATE_OUT = TO_DATE(:NEW.LOGDATE,'dd/mm/rrrr'), -- DATE_OUT,
TIME_OUT = TO_DATE(:NEW.LOGTIME,'HH24:MI:SS'), -- TIME_OUT
ATT_FLAG = 'O'
WHERE EMP_ID = TO_NUMBER(TO_CHAR(:NEW.employeeid,99999))
AND DATE_IN <= (SELECT MAX (DATE_IN )
FROM EMP_ATTENDANCEE
WHERE EMP_ID = TO_NUMBER(TO_CHAR(:NEW.employeeid,99999))
AND DATE_OUT IS NULL
AND TIME_OUT IS NULL )
AND DATE_OUT IS NULL
AND TIME_OUT IS NULL ;
END IF;
END LOOP;
EXCEPTION
WHEN OTHERS THEN RAISE;
END ATTENDANCEE_FOLLOWS ;
Regards,
Abdetu..INSERT INTO SALES_MASTER
( NO
, Name
, PINCODE )
SELECT SALESMANNO
, SALESMANNAME
, PINCODE
FROM SALESMAN_MASTER;Regards,
Christian Balz -
Using if statement in a trigger to prevent autoincrement for a restore
I use the following trigger to simulate an autoincrement on the primary key id, each time a row is inserted:
CREATE OR REPLACE TRIGGER "ITPLAN".BI_VORHABEN BEFORE INSERT ON VORHABEN REFERENCING NEW AS NEW FOR EACH ROW
DECLARE
nKey NUMBER;
BEGIN
SELECT seq_vorhaben.NEXTVAL INTO nKey FROM dual;
:NEW.ID := nKey;
END;
now for a restore procedure, I want to keep the id of all rows, that are restored from an archive table. this trigger however will increment the value with each insert. Therefor I want to insert a condition that applies the trigger only if the ID value is null:
if (vorhaben.id is null) then :NEW.ID := nKey
unfortunately I get a compilation error. thanks for any help.How about ...
CREATE OR REPLACE TRIGGER "ITPLAN".BI_VORHABEN
BEFORE INSERT ON VORHABEN
REFERENCING NEW AS NEW
FOR EACH ROW
WHEN (new.id IS NULL)
DECLARE
nKey NUMBER;
BEGIN
SELECT seq_vorhaben.NEXTVAL INTO nKey FROM dual;
:NEW.ID := nKey;
END;
/Actually, I'm not sure that the variable is needed, is it? Can you just do ...
CREATE OR REPLACE TRIGGER "ITPLAN".BI_VORHABEN
BEFORE INSERT ON VORHABEN
REFERENCING NEW AS NEW
FOR EACH ROW
WHEN (new.id IS NULL)
BEGIN
SELECT seq_vorhaben.NEXTVAL INTO :NEW.ID FROM dual;
END;
/ -
Dear OAS experts, could you please help me with the problem, it worried me for weeks:
I have 2 OAS 10.1.2.0.2 on a different physical servers -
1) type Identity Management, host - OIDserver.mysite.ru, ORACLE_HOME = /d01/oracle/prd/imapp,
2) type J2EE and Web Cache, host - PerlApp.mysite.ru, ORACLE_HOME = /d01/oracle/prd/app_server_101202
they both are in the farm INFRA.mysite.RU, Repository Type - Database
There is a Perl application on a 2-nd server, it should be working thru SSO thru any free port (https). I defined 4445 for it. It's supposed that reference https://PerlApp.mysite.ru:4445 will be redirected to SSO. (On a 4445 for ssl it is faking certificate Oracle for testing purposes, but it doesnt bother me cause I need just to check if it redirects to SSO server, and next step I make certificate real).
What I did: I registered partner app on 1 server as per doc:
$ORACLE_HOME/sso/bin/ssoreg.sh -oracle_home_path /d01/oracle/prd/imapp -site_name PerlApp.mysite.ru:4445 -config_mod_osso TRUE -mod_osso_url https://PerlApp.mysite.ru:4445 -remote_midtier -config_file /d01/oracle/prd/imapp/Apache/Apache/conf/osso/osso4445.conf
Then I transfer appeared file osso4445.conf from 1 to 2 server thru FTP in /d01/oracle/prd/app_server_101202/Apache/Apache/conf/osso/
I changed /d01/oracle/prd/app_server_101202/Apache/Apache/conf/mod_osso.conf on 2 server a bit, so that it referenced new config file osso4445.conf
It looks like:
LoadModule osso_module libexec/mod_osso.so
<IfModule mod_osso.c>
OssoIpCheck off
OssoIdleTimeout off
OssoConfigFile /d01/oracle/prd/app_server_101202/Apache/Apache/conf/osso/osso4445.conf
# Insert Protected Resources: (see Notes below for how to protect resources)
# Notes
# 1. Here's what you need to add to protect a resource,
# e.g. <ApacheServerRoot>/htdocs/private:
# <Location /private>
# require valid-user
# AuthType Basic
# </Location>
</IfModule>
At the end I restarted HTTP-server thru OEM console and checked:
when I go to https://PerlApp.mysite.ru:4445 there is no any SSO redirect, it is just a certified page for App Server. What have I done wriong?Oracle AS 10.1.2 doesn't support J2EE 1.4 in general. You might be lucky with your tests on the other 10.1.2.x versions. For J2EE 1.4 applications you should consider AS 10.1.3.x.
--olaf
Maybe you are looking for
-
How to print more than one page at a time
I have not seen any place on the scanner where you can set the number of pages you want to print. I am using a hp diskjet 3050. thank you
-
BW Transformation formula using If in list statement
Hi there, I am trying to create some logic with a transformation formula and nested if statements. I believe that it does not like the IN context. Can someone tell me how to properly state in list as part of below formula? IF( SUBSTRING( PRDHA, 9,
-
I was burned by my Macbook Pro 13.3"! I have had a few surgeries on my abdomen from cancer when I was younger and was left with a large scar from my ribs to my pelvis. I have very little feeling in that area as a result. The other day, I noticed a la
-
Why Doesn't my twitter come up in notifications?
It says that twitter is set up in notification (yes i am using mountain lion) but the tweets never come up in the top right corner?? any suggestions would be good
-
Dear Experts, WE are running on ECC 6.0 on Windows MSSQL 2005 platform kernel level 146. Since yesterday we are not able to see any value in ST06 transaction code.( shwoing 0 value ) We have not done any changes in system and SAPOSCOL is running fine