.ora-code.com

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
compile trigger "reuse settings " making difference? ORA-04020

compile trigger "reuse settings " making difference? ORA-04020

2006-01-16       - By zhu chao

hi, all,
  We have a case, when adding column to database table, caused sessions
hang. Our oracle is 9205 running on solaris.

1.    The same code in test 9205 does not report error, but in production
database with several thousand connections, it caused high session when most
other session waiting on library cache pin/library cache lock.   Hanganalyze
does not report a valid blocker.

2.    The same code give out orror in 817 instance. but does not error in
test 9205 version.

  What I noticed from trace file, is , the 9205 version, compiled the
trigger with reuse setting, but 817 instance doesnot. Is this making the
difference?Anyone has some experience with that?  All the SQL are executed
by oracle internally. Recursive SQL.

you can test with the following test code:

set line 200 echo on
col object_name format a40

create table test as select * from dba_tables;
alter table test add last_modified date;

create or replace trigger trig_test before update  on test
for each row
begin
:new.last_analyzed:=sysdate;
end;
/



 update test set owner='A' WHERE ROWNUM=1;

 ALTER SESSION SET NLS_DATE_FORMAT='YYYY/MM/DD HH24:MI:SS';

 SELECT OWNER,LAST_ANALYZED FROM test WHERE OWNER='A';

 ALTER TABLE test ADD TESTCOL DATE;

 SELECT TRIGGER_NAME,STATUS FROM USER_TRIGGERS;

  select object_name,status from user_objects where object_name='TRIG_TEST'
or object_name='TRIG2';
  set timing on
  ALTER SESSION SET EVENTS '10046 TRACE NAME CONTEXT FOREVER,LEVEL 8';

update test set owner='A-TRITEST' WHERE OWNER='A';
  ALTER SESSION SET EVENTS '10046 TRACE NAME CONTEXT off';


 SELECT TRIGGER_NAME,STATUS FROM USER_TRIGGERS;
  select object_name,status from user_objects where
object_name='TRIG_TEST'  or object_name='TRIG2';





--
Regards
Zhu Chao
www.cnoug.org

<div>hi, all,</div>
<div>&nbsp;&nbsp; We have a case, when adding column to database table, caused
sessions hang. Our oracle is 9205 running on solaris.</div>
<div>&nbsp;</div>
<div>1. &nbsp;&nbsp; The same code in test 9205 does not report error, but in
production database with several thousand connections, it caused high session
when most other session waiting on library cache pin/library cache lock.&nbsp;
&nbsp; Hanganalyze does not report a valid blocker.
</div>
<div>&nbsp;</div>
<div>2. &nbsp;&nbsp; The same code give out orror in 817 instance. but does not
error in test 9205 version. </div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp; What I noticed from trace file, is , the 9205 version,
compiled the trigger with reuse setting, but 817 instance doesnot. Is this
making the difference?Anyone has some experience with that?&nbsp; All the SQL
are executed by oracle internally. Recursive SQL.
</div>
<div>&nbsp;</div>
<div>you can test with the following test code:</div>
<p>set line 200 echo on<br>col object_name format a40</p>
<p>create table test as select * from dba_tables; <br>alter table test add last
_modified date; </p>
<p>&nbsp;create or replace trigger trig_test before update&nbsp; on test<br>
&nbsp;for each row<br>&nbsp;begin<br>&nbsp;:new.last_analyzed:=sysdate;<br>&nbsp
;end;<br>/</p>
<p>&nbsp;</p>
<p>&nbsp; update test set owner='A' WHERE ROWNUM=1;<br>&nbsp; <br>&nbsp; ALTER
SESSION SET NLS_DATE_FORMAT='YYYY/MM/DD HH24:MI:SS';<br>&nbsp; <br>&nbsp;
SELECT OWNER,LAST_ANALYZED FROM test WHERE OWNER='A';<br>&nbsp; <br>&nbsp;
ALTER TABLE test ADD TESTCOL DATE;
<br>&nbsp; <br>&nbsp; SELECT TRIGGER_NAME,STATUS FROM USER_TRIGGERS;<br>&nbsp;
<br>&nbsp;&nbsp; select object_name,status from user_objects where object_name=
'TRIG_TEST' or object_name='TRIG2';<br>&nbsp;&nbsp; set timing on<br>&nbsp;&nbsp
; ALTER SESSION SET EVENTS '10046 TRACE NAME CONTEXT FOREVER,LEVEL 8';
</p>
<p>&nbsp;update test set owner='A-TRITEST' WHERE OWNER='A';<br>&nbsp;&nbsp;
ALTER SESSION SET EVENTS '10046 TRACE NAME CONTEXT off';</p>
<p><br>&nbsp; SELECT TRIGGER_NAME,STATUS FROM USER_TRIGGERS;<br>&nbsp;&nbsp;
select object_name,status from user_objects where object_name='TRIG_TEST'&nbsp;
or object_name='TRIG2';</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div><br>-- <br>Regards<br>Zhu Chao<br><a href="http://www.cnoug.org">www.cnoug
.org</a><br>&nbsp;</div>