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
PUP table

PUP table

2004-08-13       - By Reardon, Bruce (CALBBAY)
Reply:     1     2     3     4     5     6     7     8     9  

You can do with after logon on database trigger
eg as per http://www.orafaq.com/scripts/security/notoad.txt

Note - sys can still connect
And, someone can just alter the name of client application to get around =
it

SQL > CREATE OR REPLACE TRIGGER block_access
2 AFTER LOGON ON DATABASE
3 BEGIN
4 =20
5 RAISE_APPLICATION_ERROR(-20000, 'No one can connect ');
6 end;
7 /

Trigger created.

SQL > show errors
No errors.
SQL > connect usera@(protected)
Enter password:=20
ERROR:
ORA-00604 (See ORA-00604.ora-code.com): error occurred at recursive SQL level 1
ORA-20000 (See ORA-20000.ora-code.com): No one can connect
ORA-06512 (See ORA-06512.ora-code.com): at line 3


Warning: You are no longer connected to ORACLE.
SQL > connect sys@(protected)
Enter password:=20
Connected.
SQL >=20

SQL > drop trigger userb.block_access;

Trigger dropped.

SQL > connect usera@(protected)
Enter password:=20
Connected.
SQL >=20
SQL >=20


HTH,
Bruce Reardon

-- --Original Message-- --
[mailto:oracle-l-bounce@(protected)]On Behalf Of Tim Gorman
Sent: Friday, 13 August 2004 1:49 PM

Unfortunately (or rather, fortunately), a failure in an AFTER LOGON =
trigger
does not do anything to interfere with the session...

SQL > connect scott/tiger
Connected.
SQL > create or replace trigger x
2 after logon
3 on schema
4 begin
5 raise_application_error(-20000, 'raise error ');
6 end x;
7 /

Trigger created.

SQL > connect scott/tiger
Connected.
SQL >=20

However, in the "alert.log ", it says:

Thu Aug 12 21:43:03 2004
Errors in file /Users/oracle/base/admin/TST1/udump/tst1_ora_8963.trc:
ORA-00604 (See ORA-00604.ora-code.com): error occurred at recursive SQL level 1
ORA-20000 (See ORA-20000.ora-code.com): AFTER LOGIN trigger exception
ORA-06512 (See ORA-06512.ora-code.com): at line 2

And the trace file isn 't much more helpful than that...

__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ___

NOTICE
=20
This e-mail and any attachments are private and confidential and=20
may contain privileged information
=20
If you are not an authorised recipient, the copying or distribution=20
of this e-mail and any attachments is prohibited and you must not=20
read, print or act in reliance on this e-mail or attachments
=20
This notice should not be removed
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ___
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
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
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --