Trigger execution
I have asked in an interview i have 4 triggers(statement,rowwith before and after trigger).
Which triggers will execute in which Order?
Depends. For example, deleting from parent table where child table FK has ON DELETE CASCADE. In such case child table BEFORE statement trigger is executed for first child table delete statement only and child AFTER statement trigger is executed for last child table delete statement only:
CREATE TABLE PARENT(
ID NUMBER
ALTER TABLE PARENT
ADD CONSTRAINT PARENT_PK
PRIMARY KEY(
ID
CREATE TRIGGER PARENT_BD_TRG
BEFORE DELETE
ON PARENT
BEGIN
DBMS_OUTPUT.PUT_LINE(
'Parent before DELETE statement.'
END;
CREATE TRIGGER PARENT_BDR_TRG
BEFORE DELETE
ON PARENT
FOR EACH ROW
BEGIN
DBMS_OUTPUT.PUT_LINE(
'Parent before DELETE row.'
END;
CREATE TRIGGER PARENT_AD_TRG
AFTER DELETE
ON PARENT
BEGIN
DBMS_OUTPUT.PUT_LINE(
'Parent after DELETE statement.'
END;
CREATE TRIGGER PARENT_ADR_TRG
AFTER DELETE
ON PARENT
FOR EACH ROW
BEGIN
DBMS_OUTPUT.PUT_LINE(
'Parent after DELETE row.'
END;
INSERT
INTO PARENT
SELECT LEVEL
FROM DUAL
CONNECT BY LEVEL <= 2
CREATE TABLE CHILD(
ID NUMBER
ALTER TABLE CHILD
ADD CONSTRAINT CHILD_PARENT_FK
FOREIGN KEY(
ID
REFERENCES PARENT(
ID
ON DELETE CASCADE
CREATE TRIGGER CHILD_BD_TRG
BEFORE DELETE
ON CHILD
BEGIN
DBMS_OUTPUT.PUT_LINE(
'Child before DELETE statement.'
END;
CREATE TRIGGER CHILD_BDR_TRG
BEFORE DELETE
ON CHILD
FOR EACH ROW
BEGIN
DBMS_OUTPUT.PUT_LINE(
'Child before DELETE row.'
END;
CREATE TRIGGER CHILD_ADR_TRG
AFTER DELETE
ON CHILD
FOR EACH ROW
BEGIN
DBMS_OUTPUT.PUT_LINE(
'Child after DELETE row.'
END;
CREATE TRIGGER CHILD_AD_TRG
AFTER DELETE
ON CHILD
BEGIN
DBMS_OUTPUT.PUT_LINE(
'Child after DELETE statement.'
END;
INSERT
INTO CHILD
SELECT CEIL(LEVEL / 2)
FROM DUAL
CONNECT BY LEVEL <= 4
COMMIT
SET SERVEROUTPUT ON
DELETE PARENT
Parent before DELETE statement.
Child before DELETE statement.
Parent before DELETE row.
Child before DELETE row.
Child after DELETE row.
Child before DELETE row.
Child after DELETE row.
Parent after DELETE row.
Parent before DELETE row.
Child before DELETE row.
Child after DELETE row.
Child before DELETE row.
Child after DELETE row.
Parent after DELETE row.
Child after DELETE statement.
Parent after DELETE statement.
2 rows deleted.
SQL>
SY.
Similar Messages
-
Trigger execution of a CR report from SAP BW Process chain
Hi,
we want to trigger execution of a Crystal Report from a BW process chain.
What is the best way to do this?
Our CR reports are not saved to BW.
We are currently investigation the option of using a file event on the BO server and using an ABAP program step in the process chain to create the file using FTP. But we want to know if there is an easier way of doing this?
Thanks and regards
JarleHello Nathan,
your solution with the FTP script and a file being moved to the BO server sounds very interesting!
Actually that's what I would need to implement in my project.
Would it be possible for you to give me some information on how to write such a script and how to call it from the Process Chain? Any hint would be really precious!
Thank you in advance!
Best regards,
Hubert -
Before report trigger execution sequence
Hi,
What is the execution sequence of the before report trigger ?
In the report builder help, the definition says "The Before Report trigger fires before the report is executed *but after queries are parsed and data is fetched*."
But the oracle document "Oracle iDS Reports: Build Internet Reports: Volume 2: Student Guide" says
"Before a report executes; *after queries are parsed, but before records are fetched*
I have built a report where, i am populating a table A with some data in the before report trigger. The data model query is a "select * from A ". But the report o/p is blank since the before report trigger was fired after the query was parsed and fetched. My understanding is that the queries should only be parsed but not fetched before the "before report trigger"
Regards,
SureshHi,
this is an important question.
In fact the online help is right: Before its execution the query is parsed and data fetching is strarted.
Thus any plsql operation that may influence the query and the data accessed is too late in the BEFOREREPORT trigger.
THe issue is that there is no error message or warning. THe problem scenario bandwidth is wide: From "no problem at all" to constant or intermittent error scenarios or worst case unrecognized problems like missing records or any strange behavior in the layout.
So very carefull while using BEFOREREPORT trigger
Ciao
Markus -
Hiding the trigger execution message
dear all
i have build an application
i have made a database trigger to stop the DML at a particular event
now the problem is that the DML is stopped at that time but in sql plus there comes an error message restricting the DML entry with the caption
"ERROR OCCURED DURING THE EXECUTION OF TRIGGER ....."
friends , I want to hide this message but trigger must function properly.
is there any method to hide this message from sql plus,either by user-defined exception, non predefined exception or by any other way,
please i mean DML should stop but no trigger indication should be there.
plz think over it
thanksdear all
i have build an application
i have made a database trigger to stop the DML at a particular event
now the problem is that the DML is stopped at that time but in sql plus there comes an error message restricting the DML entry with the caption
"ERROR OCCURED DURING THE EXECUTION OF TRIGGER ....."
friends , I want to hide this message but trigger must function properly.
is there any method to hide this message from sql plus,either by user-defined exception, non predefined exception or by any other way,
please i mean DML should stop but no trigger indication should be there.
plz think over it
thanks -
Hi Friends,
Suppose i have 3 triggers on a table emp ( having cols empno,ename, deptno, DOB,designation)
Trigger 1 : on update of EMPNO
Trigger 2 : on update of ENAME
Trigger 3 : on update of DEPTNO
what would be the execution sequence.
Thanksbtw exactly that is said in docs:
Note:
You can create multiple triggers of the same type (BEFORE, AFTER, or INSTEAD OF) that fire for the same statement on the same table. The order in which Oracle Database fires these triggers is indeterminate. If your application requires that one trigger be fired before another of the same type for the same statement, then combine these triggers into a single trigger whose trigger action performs the trigger actions of the original triggers in the appropriate order.
http://download-west.oracle.com/docs/cd/B12037_01/server.101/b10759/statements_7004.htm -
ERROR DURING TRIGGER EXECUTION
Hello
I need help on this issue.
I've a table with a INDEXTYPE (INDEXTYPE IS CTXSYS.CONTEXT;) on one Column
Every Time I Update,Insert,Delete one record I need to rebuild this Index or I can't access this modified Record
SO I Thought to built a Trigger that Calls a Procedure to Rebuild the Index AFTER UPDATE,INSERT or DELETE
Now when I Update or insert or Delete a record in the Table I get the Error Message :
SYS@cfmt > update IWS.ALUMNI_SEARCH set FIRST_NAME = 'TEST' where INTEGRATION_ID = 1000026;
update IWS.ALUMNI_SEARCH set FIRST_NAME = 'TEST' where INTEGRATION_ID = 1000026
ERROR at line 1:
ORA-00054: resource busy and acquire with NOWAIT specified
ORA-06512: at "IWS.REBUILD_ALUMDATA", line 15
ORA-06512: at "IWS.TRG_REB_ALUM", line 5
ORA-04088: error during execution of trigger 'IWS.TRG_REB_ALUM'
Any ideas
TRIGGER SCRIPT :
CREATE OR REPLACE TRIGGER IWS.TRG_REB_ALUM
AFTER
INSERT OR
UPDATE OR
DELETE ON
IWS.ALUMNI_SEARCH
FOR EACH ROW
DECLARE
BEGIN
IWS.REBUILD_ALUMDATA;
COMMIT;
END;
INDEX
CREATE INDEX ALUMNI_DATA ON ALUMNI_SEARCH
(ALUMNI_DATA)
INDEXTYPE IS CTXSYS.CONTEXT;Ah. Since you are using a desupported version, neither resync on commit nor transactional Text indexes. Any chance you could upgrade to a more recent version of the database?
If you are stuck on 9.2, are you really certain that you need the newly added rows available for searching immediately? That's a pretty unusual requirement for doing full-text searching. Any chance you could just schedule a periodic refresh every few minutes?
If you absolutely need immediate refreshes and you're stuck in a desupported database version, you could potentially have your trigger submit a job via the DBMS_JOB package that did your index rebuild asynchronously after your transaction committed (which would mimic the ON COMMIT attribute introduced in 10g). Since you are trying to do an ALTER INDEX, which is DDL, you won't be able to do that directly in a trigger. You might be able to call CTX_DDL.Sync_Index instead of issuing the ALTER INDEX, but I would wager that this has the same problem of doing implicit commits, and is thus ineligible to be called from a trigger.
Justin
Edited by: Justin Cave on Dec 12, 2008 1:04 PM
Generally, it's a bad idea to be using the SYS account for anything other than the small handful of administrative tasks that actually require logging in as SYS. You would generally want to use the appropriate object owner account, or at least a separate account that you created and granted appropriate privileges. SYS is special, and there are frequently behaviors that are different for SYS than other users that cause all sorts of confusion. Additionally, it's a bad idea from a security perspective to have people accessing the most powerful account in the database for routine operations. -
As per my knowledge we can writer n number of triggers of 12 different types for a table.
My question is , if we have more number of triggers of same type on table then which will execute first?
Is it random execution or any criteria is there for that.883279 wrote:
As per my knowledge we can writer n number of triggers of 12 different types for a table.
My question is , if we have more number of triggers of same type on table then which will execute first?
Is it random execution or any criteria is there for that.Till 10g it was not deterministic but 11g on you can specify that
http://docs.oracle.com/cd/E11882_01/appdev.112/e25519/triggers.htm#g1041767 -
Default Order of trigger execution
If a table has two or more triggers(of same type like both "before insert") defined on it then what is the default order of executing of the triggers.
Thanks in advance.Prior to 11g, there is none. Two triggers with identical specs (i.e. two row-level before insert triggers) will fire in an arbitrary order. And that order may change between calls. If you have code that depends on a particular order, you're much better off creating a single trigger that makes calls to two different procedures that do whatever the two triggers are doing in an appropriate order.
In 11g, you gain the ability to force triggers to run in a particular order, but I would generally advise against any architecture that would require this sort of thing.
Justin -
Database Trigger Execution Order
Hi folks:
I want to know which is the order of execution of the database triggers I have associated to a specific table.
By Example:
Table Name: Employees
Triggers:
name: first_step second_step
type: before each row before each row
trig event: insert or update insert or update
In these case, which one is executed first?
Thanks a lot.
AbdelIt depends ...
From http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96524/c18trigs.htm#13363
Although triggers of different types are fired in a specific order, triggers of the same type for the same statement are not guaranteed to fire in any specific order. For example, all BEFORE row triggers for a single UPDATE statement may not always fire in the same order. Design your applications so they do not rely on the firing order of multiple triggers of the same type. -
Execution Sequence of 'Personalization' and 'Standard Form Trigger'
Dear All,
A basic question, How about Execution Sequence of 'Personalization' and 'Standard Form Trigger'?
Which one will be firstly executed? any document about this question?
Thanks a LotHi HTH,
Actually I am not asking for Trigger Execution Sequence, I am asking Sequence between 'Personalization' and 'Standard Form Trigger',Personalization is first or Standard Form Trigger is first.
for example,if i have code at W-N-F-I trigger at standard trigger and Personalization , which code get invoked first?
Tks -
WHEN-NEW-ITEM-INSTANCE TRIGGER NOT FIRING IN FORM PERSONLIZATION
We are upgrading to R12, when-new-item-instance trigger written for radio group not firing. using USO-821 Order Administrator Responsibility the function order capture.After clicking on actions push button
opening Copy Quote for this Form Personalization written.
For Radio Group Copy-Group when-new-item-instance trigger written but this trigger not firing,but In 11i Instance its Firing.
trigger-event: when-new-item-instance
Trigger-object:copy_group
condition:when copy_group='ALL'
Action: showing message.
The same when-new-instance trigger written in form item level and trigger execution hierarchy properties 'OVERRIDE'.
Just I am thinking this overriding by Item level trigger of form.
Please kindly help me quickly .What I need to do?
How can I make trigger to Fire?
Please kindly give solution.....Its very urgent Requirement.pls help me.
Regards,
BasavarajPlease kindly help me quickly .What I need to do?
> Please kindly give solution.....Its very urgent Requirement.pls help me.
Kindly log a SR for urgent issues.
Thanks,
Hussein -
WHEN-NEW-ITEM-INSTANCE TRIGGER NOT FIRING IN FORM PERSONLIZATION(R12 UPGRAD
We are upgrading to R12, when-new-item-instance trigger written for radio group not firing. using USO-821 Order Administrator Responsibility the function order capture.After clicking on actions push button
opening Copy Quote for this Form Personalization written.
For Radio Group Copy-Group when-new-item-instance trigger written but this trigger not firing,but In 11i Instance its Firing.
trigger-event: when-new-item-instance
Trigger-object:copy_group
condition:when copy_group='ALL'
Action: showing message.
The same when-new-instance trigger written in form item level and trigger execution hierarchy properties 'OVERRIDE'.
Just I am thinking this overriding by Item level trigger of form.
Please kindly help me quickly .What I need to do?
How can I make trigger to Fire?
Please kindly give solution.....Its very urgent Requirement.pls help me.
Regards,
BasavarajPlease kindly help me quickly .What I need to do?
> Please kindly give solution.....Its very urgent Requirement.pls help me.
Kindly log a SR for urgent issues.
Thanks,
Hussein -
Sql server 2012 Logon trigger not working for certain logins
Hello. I created a login trigger to insert data for each login in a table, and it works for all logins except one that is format domain\login
and the login ends with the dollar sign(actual name is domain\CTXDEVDCSI1$).
I had been using varchar, but after reading other forum posts, I changed the varchar's to nvarchar's, but it still fails for that id.
The errors written to the sql server error log were the usual "login failed due to trigger execution".
I had granted insert on the rvvlogindata table in dsa to public, and only one id wasn't able to login after that.
Any suggestions would be much appreciated!
Here's the modified table ddl:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[rvvlogindata](
[sessionId] [int] NULL,
[LoginTime] [datetime] NULL,
[HostName] [nvarchar](50) NULL,
[ProgramName] [nvarchar](300) NULL,
[LoginName] [nvarchar](50) NULL,
[ClientHost] [nvarchar](50) NULL
) ON [PRIMARY]
GO
Here's the logon trigger code:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
create trigger [LOGIN_IP_RESTRICTION] on all server for logon
as
Begin
Declare @LogonTriggerData xml,
@EventTime datetime,
@LoginName nvarchar(50),
@ClientHost nvarchar(50),
@HostName nvarchar(50),
@AppName nvarchar(300)
Set @LogonTriggerData = eventdata()
set @EventTime = @LogonTriggerData.value('(/EVENT_INSTANCE/PostTime)[1]', 'datetime')
set @LoginName = @LogonTriggerData.value('(/EVENT_INSTANCE/LoginName)[1]', 'varchar(50)')
set @ClientHost = @LogonTriggerData.value('(/EVENT_INSTANCE/ClientHost)[1]', 'varchar(50)')
set @HostName = HOST_NAME()
set @AppName = APP_NAME()
insert into dsa.dbo.rvvlogindata
sessionId,
LoginTime,
HostName,
ProgramName,
LoginName,
ClientHost
select @@spid,
@EventTime,
convert(nvarchar(50),@HostName),
convert(nvarchar(300),@AppName),
convert(nvarchar(50),@LoginName),
convert(nvarchar(50),@ClientHost)
END
GO
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
ENABLE TRIGGER [LOGIN_IP_RESTRICTION] ON ALL SERVER
GOErland, I wanted to add more info to my reply earlier today.
sp_who2 showed no blocking, activity monitor from my local PC SSMS showed no major waits or high i/o or cpu activity.
I was wondering if you have any suggestions on how to find out what was the cause of the 5+ minute wait for SSMS on the remote desktop to respond and fully come up.
I definitely can't put this in production with this hanging delay possibly occurring there.
I was connecting as read_user when it hung.
sp_who2 output at the time was:
1 BACKGROUND sa . . NULL LOG WRITER 54631 0 04/10
06:59:43
1 0
2 BACKGROUND sa . . NULL RECOVERY WRITER 8673 0 04/10 06:59:43
2 0
3 BACKGROUND sa . . NULL LAZY WRITER 300691 0 04/10
06:59:43
3 0
4 BACKGROUND sa . . NULL RESOURCE MONITOR 1207010 0 04/10 06:59:43
4 0
5 BACKGROUND sa . . NULL XE TIMER 38828 0 04/10
06:59:43
5 0
6 BACKGROUND sa . . NULL XE DISPATCHER 1404 0 04/10
06:59:43
6 0
7 BACKGROUND sa . . master SIGNAL HANDLER 0 0 04/10 06:59:43
7 0
8 BACKGROUND sa . . NULL LOCK MONITOR 179978 0 04/10
06:59:43
8 0
9 sleeping sa . . master TASK MANAGER 0 11 04/21
08:37:04
9 0
10 sleeping sa . . master TASK MANAGER 0 0 04/10
06:59:44
10 0
11 BACKGROUND sa . . master TRACE QUEUE TASK 546 0 04/10 06:59:44
11 0
12 BACKGROUND sa . . NULL SYSTEM_HEALTH_MO 4930 0 04/10 06:59:44
12 0
13 BACKGROUND sa . . NULL RECEIVE 422 0 04/10
06:59:45
13 0
14 BACKGROUND sa . . master CHECKPOINT 79137 31811 04/10
06:59:46
14 0
15 BACKGROUND sa . . master TASK MANAGER 1606 0 04/10
06:59:46
15 0
16 BACKGROUND sa . . NULL UNKNOWN TOKEN 0 0 04/10 06:59:46
16 0
17 sleeping sa . . master TASK MANAGER 0 74 04/21
08:37:04
17 0
18 sleeping sa . . master TASK MANAGER 0 0 04/21
08:18:49
18 0
19 sleeping sa . . master TASK MANAGER 0 0 04/21
08:30:29
19 0
20 sleeping sa . . master TASK MANAGER 0 1 04/21
08:37:14
20 0
21 sleeping sa . . master TASK MANAGER 0 7 04/21
08:30:59
21 0
22 sleeping sa . . master TASK MANAGER 16 4 04/21
08:37:44
22 0
23 sleeping sa . . master TASK MANAGER 0 15 04/21
08:39:24
23 0
25 BACKGROUND sa . . master BRKR EVENT HNDLR 0 95 04/10 06:59:48
25 0
30 BACKGROUND sa . . master BRKR TASK 0 0 04/10
06:59:48
30 0
31 BACKGROUND sa . . master BRKR TASK 16926 0 04/10
06:59:48
31 0
32 BACKGROUND sa . . master BRKR TASK 0 0 04/10
06:59:48
32 0
34 BACKGROUND sa . . master BRKR TASK 10701 0 04/10
06:59:48
34 0
51 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
03:16:56
51 0
52 sleeping reports_adm REPORTSDEVSI2 . JBOSS_Cluster_CRServer2011 AWAITING COMMAND 0 0 04/21
08:52:12 jTDS
52 0
53 sleeping NT AUTHORITY\SYSTEM SQLDEV2012 . msdb AWAITING COMMAND 0 0 04/10
06:59:58 SQLAgent - Email Logger 53 0
54 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:51 Citrix:Broker#1 54 0
55 sleeping edit_user ASDEV1 . dsa AWAITING
COMMAND 0 0 04/21 08:55:27 jTDS
55 0
56 sleeping reports_adm REPORTSDEVSI2 . JBOSS_Cluster_CRServer2011 AWAITING COMMAND 0 0 04/21
08:52:12 jTDS
56 0
57 sleeping reports_adm REPORTSDEVSI2 . JBOSS_Cluster_CRServer2011 AWAITING COMMAND 0 0 04/21
08:52:12 jTDS
57 0
58 sleeping reports_adm REPORTSDEVSI2 . JBOSS_Cluster_CRServer2011 AWAITING COMMAND 0 0 04/21
08:52:12 jTDS
58 0
59 sleeping NT AUTHORITY\SYSTEM SQLDEV2012 . msdb AWAITING COMMAND 124 242 04/10
06:59:59 SQLAgent - Generic Refresher 59 0
60 sleeping NT AUTHORITY\SYSTEM SQLDEV2012 . msdb AWAITING COMMAND 2790 1160 04/21
08:55:00 SQLAgent - Job invocation engine 60 0
61 sleeping reports_adm REPORTSDEVSI2 . JBOSS_Cluster_CRServer2011 AWAITING COMMAND 0 0 04/21
08:52:12 jTDS
61 0
62 sleeping reports_adm REPORTSDEVSI2 . JBOSS_Cluster_CRServer2011 AWAITING COMMAND 0 0 04/21
08:52:12 jTDS
62 0
63 sleeping reports_adm REPORTSDEVSI2 . JBOSS_Cluster_CRServer2011 AWAITING COMMAND 0 0 04/21
08:52:12 jTDS
63 0
64 sleeping reports_adm REPORTSDEVSI2 . JBOSS_Cluster_CRServer2011 AWAITING COMMAND 0 0 04/21
08:52:12 jTDS
64 0
65 sleeping reports_adm REPORTSDEVSI2 . JBOSS_Cluster_CRServer2011 AWAITING COMMAND 0 0 04/21
08:52:12 jTDS
65 0
66 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
03:16:56
66 0
67 sleeping reports_adm REPORTSDEVSI2 . JBOSS_Cluster_CRServer2011 AWAITING COMMAND 0 0 04/21
08:52:12 jTDS
67 0
68 sleeping edit_user DCMA10685 . dsa AWAITING COMMAND 0 0 04/21
08:56:47 jTDS
68 0
69 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:49 Citrix:Configuration 69 0
70 sleeping rvanveen DCMA8460 . master AWAITING COMMAND 1794 7120 04/21
08:51:37 Microsoft SQL Server Management Studio 70 0
71 sleeping xsp_user XSPDEVSI2 . xspv5 AWAITING COMMAND 0 0 04/21
08:58:52 .Net SqlClient Data Provider 71 0
72 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:56:01 Citrix:Monitor 72 0
73 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:30 Citrix:Monitor 73 0
74 sleeping rvanveen DCMA8460 . master AWAITING COMMAND 16 2 04/21
08:53:37 Microsoft SQL Server Management Studio - Query 74 0
75 sleeping rvanveen DCMA8460 . loginaudit AWAITING COMMAND 0 22 04/21
08:50:29 Microsoft SQL Server Management Studio - Query 75 0
76 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
07:05:07
76 0
77 sleeping adm_jbossportal ASDEV1 . jbossportal AWAITING
COMMAND 0 0 04/21 08:40:27 jTDS
77 0
78 sleeping rvanveen DCMA8460 . master AWAITING COMMAND 110 542 04/21
08:46:17 Microsoft SQL Server Management Studio - Query 78 0
79 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
07:05:56
79 0
80 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:54 Citrix:MachineCreation 80 0
81 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
08:08:29
81 0
82 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
07:02:13
82 0
83 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
07:02:15
83 0
84 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:44 Citrix:Monitor 84 0
85 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
07:11:05
85 0
86 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:53 Citrix:AdIdentity 86 0
87 sleeping DAIWA_USA\admsql SQLDEV2012 . master AWAITING COMMAND 15 2 04/21
08:56:20 Microsoft SQL Server Management Studio - Query 87 0
88 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:36 Citrix:SiteServices 88 0
89 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:42 Citrix:Host 89 0
90 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:47 Citrix:ConfigurationLogging 90 0
91 RUNNABLE rvanveen DCMA8460 . master SELECT INTO
15 51 04/21 08:58:46 Microsoft SQL Server Management Studio - Query 91 0
92 sleeping rvanveen DCMA8460 . master AWAITING COMMAND 63 30 04/21
08:52:34 Microsoft SQL Server Management Studio - Query 92 0
94 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:53 Citrix:DelegatedAdmin 94 0
95 sleeping DAIWA_USA\admsql SQLDEV2012 . loginaudit AWAITING COMMAND 173 27 04/21
08:56:10 Microsoft SQL Server Management Studio 95 0
96 sleeping xsp_user XSPDEVSI2 . xspv5 AWAITING COMMAND 0 0 04/21
08:58:33 .Net SqlClient Data Provider 96 0
97 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
08:10:07
97 0
98 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 31 38 04/21
08:00:31
98 0
99 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
08:10:12
99 0
100 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 282 04/21
08:10:14
100 0
101 sleeping DAIWA_USA\admsql SQLDEV2012 . master AWAITING COMMAND 0 8 04/21
08:56:50 Microsoft SQL Server Management Studio 101 0
102 sleeping DAIWA_USA\admsql SQLDEV2012 . master AWAITING COMMAND 31 0 04/21
08:54:57 Microsoft SQL Server Management Studio 102 0
103 sleeping read_user SQLDEV2012 . master AWAITING COMMAND 0 8 04/21
08:57:09 Microsoft SQL Server Management Studio 103 0
104 sleeping read_user SQLDEV2012 . dsa AWAITING COMMAND 0 0 04/21
08:57:09 Microsoft SQL Server Management Studio 104 0
105 sleeping rvanveen DCMA8460 . tempdb AWAITING COMMAND 8875 336 04/21
08:58:54 Microsoft SQL Server Management Studio 105 0
106 sleeping read_user SQLDEV2012 . master AWAITING COMMAND 16 0 04/21
08:57:39 Microsoft SQL Server Management Studio 106 0
107 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:47 Citrix:EnvTest 107 0
108 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 2200 8514 04/21
08:00:31
108 0
109 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
07:05:56
109 0
110 sleeping rvanveen DCMA8460 . master AWAITING COMMAND 0 0 04/21
08:58:48 Microsoft SQL Server Management Studio 110 0
113 sleeping Citrix_adm CTXDEVSI1 . XenApp6 AWAITING COMMAND 284 777 04/21
08:51:33 Citrix IMA 113 0
119 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:42 Citrix:ConfigurationLoggingData 119 0
120 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:26 Citrix:Storefront 120 0
125 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/16
13:55:16
125 0
126 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 16 0 04/16
11:25:30
126 0
131 sleeping echouliak DCMA10685 . master AWAITING COMMAND 139 8 04/14
15:26:55 Microsoft SQL Server Management Studio 131 0
135 sleeping echouliak DCMA10685 . dsa AWAITING COMMAND 0 0 04/14
15:24:52 Microsoft SQL Server Management Studio - Query 135 0
136 sleeping echouliak DCMA10685 . dsa AWAITING COMMAND 0 0 04/14
15:00:17 Microsoft SQL Server Management Studio - Query 136 0
140 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
07:05:56
140 0
145 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
07:05:56
145 0 -
Key help trigger not displaying help file
We're using designer 2.0.24.2.0 with headstart 5.0.2, I've created a number of help files for different modules, when you run one of the forms and press the help key, the help file is displayed. If you do it a second time, the help file is not displayed, if you use the ? off the toolbar the help file is displayed.
I've had a quick look at the core library and there is a package body QMS$HELP which was modified on, with the comments :-
05-10-1998 S. Davelaar chk_help_mode, invoke_context_help,
context_help_invoked
Added boolean to keep track of context help invocation. This to prevent, online
help is invoked three times in a row: by item-level, block-level and form-level
trigger (trigger execution style is BEFORE!!).
I've checked the key-help triggers at Item, Block and Form level, they are all set execution style before and these triggers are firing each time the help key is pressed.
Is this a known bug which has been fixed in a later release? Or does anyone know of a quick fix?This was identified as bug #850317 and was resolved in Headstart 5.0.3.2.
-
Constraint Checking Vs After Row Trigger
According to db concepts Chap 17 Trigger -> Trigger Execution, integrity checking is performed BEFORE the after row trigger executed. I guess this is not 100% true. AFAIK, we can create an AFTER ROW trigger on a child table which automatically insert new referenced row in the parent table. e.g.
CREATE TABLE child (
child_id int primary key,
parent_id int references parent,
CREATE TABLE parent (
parent_id int primary key,
CREATE OR REPLACE TRIGGER A
AFTER INSERT OR UPDATE on child
FOR EACH ROW
BEGIN
INSERT INTO parent values (:new.parent_id,...);
END;
If the constraint checking is done before the trigger, the referential integrity should have been violated when the child row is inserted.
So if the documentation is wrong, when will the constraint checking be carried out with respect to trigger execution.There are plenty of things that are easier and/or safer to do in an AFTER ROW trigger, since can see exactly what the data in the row has been set to by any BEFORE ROW triggers and you can't change the data inadvertently. If your BEFORE ROW triggers are calling relatively complex procedures owned by various disparate groups of developers, it can be non-trivial to ensure that every groups changes are perfectly coordinated. AFTER ROW triggers are a heck of a lot easier to deal with here because you don't have to worry about another section of code changing the data you're using to make your decision.
I'm hard pressed to think of something that couldn't possibly be accomplished in a BEfORE ROW trigger, though I suspect there are at least a few oddball situations.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC
Maybe you are looking for
-
Photoshop CC crashes upon opening
As soon as I open Photoshop CC, a message pops up saying 'Adobe Photoshop CC 2014 has stopped working. A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available.' My operating sys
-
Hallow I doing an batch input and in the search term it bring the word just with 10 cahr and the word larger then that the search term is empty did anyone have an idea how to solve it because it work with word less then 10 letter this is my batch inp
-
Credit Management: VKM4 (Release SD Documents)
Hi, I have implemented Dynamic Credit Management at Delivery Level (02: Credit Group for Delivery). System is behaving also fine and is not allowing to save the delivery as soon as the credit limit of the customer gets increased. But when I am trying
-
Best method for flv playback in flash 8
group, i am currently trying to get to grips with flv playback with flash 8. i have come across a number of methods for flv playback within flash 8 and am curious to know the difference between methods and ultimately if there is such a difference dis
-
Can people share epub books via dropbox and use iBooks to read them?
my sister put an epub copy of a book I'd like to read in my dropbox folder, but when i load it on itunes on my mac, then sync my ipad, I get an error message ( invalid file format) message. Is this a DRM issue? To me, it's the same as her buying a ha