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
AFTER LOGON System Trigger

AFTER LOGON System Trigger

2004-07-12       - By Mark Burgess
Reply:     1     2     3     4  

Hi,

I am trying to record the logon even for a certain
user with the following trigger code:

CREATE OR REPLACE TRIGGER SESS_JOB_QUEUE AFTER LOGON
ON DATABASE

BEGIN

IF sys.login_user = 'DISCO_SCH ' THEN
do something;
end if;

END;

..

Whenever I try and connect as this user that I am
trying to capture I get the following:

SQL*Plus: Release 9.2.0.5.0 - Production on Tue Jul 13
11:49:59 2004

Copyright (c) 1982, 2002, Oracle Corporation. All
rights reserved.

ERROR:
ORA-04088 (See ORA-04088.ora-code.com): error during execution of trigger
'SYS.SESS_JOB_QUEUE '
ORA-01403 (See ORA-01403.ora-code.com): no data found
ORA-06512 (See ORA-06512.ora-code.com): at line 20

..

I would have thought the sys.login_user function would
have been populated by this session when trying to
login. I am not sure what I am missing here as a
similar trigger on 'AFTER SERVERERROR ' works fine.

Has anyone encountered something similar? Platform is
Win XP Pro, 9.2.0.5 with 9.2.0.5 patch 2 applied.

Regards,

Mark




Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe send email to: oracle-l-request@(protected)
put 'unsubscribe ' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --