Links
Home
Oracle DBA Forum
Frequent Oracle Errors
TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found'>ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated
EXEC pROCEDURE IN TRIGGER

EXEC pROCEDURE IN TRIGGER

2005-06-29       - By Powell, Mark D

Reply:     1     2     3     4     5     6     7     8     9     10  

In earlier versions of the documentation Oracle recommended that a
trigger not exceed 72 lines of code.  On version 7.0 of the database
triggers were not compiled so trigger code was more like anonymous code
and had a higher run time cost compared to stored procedures and
packaged code.

But somewhere along the line Oracle has changed triggers to be stored
code.  From the 9.2 Concepts manual >> Oracle stores PL/SQL triggers in
compiled form, just like stored procedures.<<  

HTH -- Mark D Powell --


-- --Original Message-- --
From: oracle-l-bounce@(protected)
[mailto:oracle-l-bounce@(protected)] On Behalf Of Guang Mei
Sent: Wednesday, June 29, 2005 10:06 AM
To: oracle-l@(protected)
Subject: RE: EXEC pROCEDURE IN TRIGGER

I have read somewhere that when writing a trigger, one should not put
all the code in the trigger, instead one should create a store procedure
and call it from the trigger. Doing so would improve the performance,
becuase oracle will re-compile the trigger code everytime when a trigger
is fired.
My question is if there is any paper/doc/study exist somewhere that
compare the performance. For a typical trigger with say about 20 lines
of code, how much improvement could one expect if putting the code into
a procedure. I guess I could do some test on the system by myself (too
lazy), but wondering if I can get some rough idea. I looked around on
the web but can not find any detailed paper out there.

Thanks.

Guang  

-- --Original Message-- --
From: oracle-l-bounce@(protected)
[mailto:oracle-l-bounce@(protected)]On Behalf Of Hallas, John, Tech
Dev
Sent: Wednesday, June 29, 2005 6:36 AM
To: oracle-l@(protected)
Subject: RE: EXEC pROCEDURE IN TRIGGER


Oracle does not allow a commit (or rollback or savepoint)in a trigger.
Your procedure must have an implicit commit because of the use of DDL.
This is allowed in SLQ obviously but explains why it fails when called
from a trigger.

What exactly is the contents of the procedure. Can you work around it?

John

************************************************************************
*
PRIVILEGED AND CONFIDENTIAL:
This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential and/or privileged
information.  If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited.  If
you are not the intended recipient, please notify the sender immediately
by return e-mail, delete this communication and destroy all copies.  
************************************************************************
*
--
http://www.freelists.org/webpage/oracle-l
--
http://www.freelists.org/webpage/oracle-l