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
Library Cache Lock

Library Cache Lock

2005-01-12       - By Barr, Stephen

Reply:     <<     11     12     13     14     15     16     17     18     19     20     >>  

We have a situation where a majority of the sessions in the database are
waiting for "library cache lock ".
A simple explain plan against the wh_bills table hangs indefinitely.


READONLY@ >select event, count(*)
2 from v$session_wait
3 where state = 'WAITING '
4 group by event
5 order by 2 desc
6 /

EVENT COUNT(*)
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ -- ---- --
SQL*Net message from client 13
library cache lock 13
rdbms ipc message 9
PX Deq Credit: send blkd 8
PL/SQL lock timer 1
smon timer 1
row cache lock 1
PX Deq: Execute Reply 1
library cache pin 1
pmon timer 1

10 rows selected.

Some of these session have been waiting for days.

The only activity currently happening on the database is a rebuild of the
partitioned indexes on a single table (WH_BILLS). The indexes are being
built by a simple set of statements running in separate sessions which are
actually kicked off via dbms_job and a stored procedure -

Session 1
ALTER INDEX dw_owner.il_bills_001 REBUILD PARTITION p_bills_1998_08
NOPARALLEL NOLOGGING

Session 2
ALTER INDEX dw_owner.il_bills_002 REBUILD PARTITION p_bills_1998_08
NOPARALLEL NOLOGGING

Session 3
ALTER INDEX dw_owner.akl_bills_1 REBUILD PARTITION p_bills_1998_08
NOPARALLEL NOLOGGING


The locking activity produced by this is -


1 select obj.object_type, obj.object_name,l.session_id, l.locked_mode
2 from v$locked_object l,
3 all_objects obj
4* where obj.object_id = l.object_id
READONLY@ >/

OBJECT_TYPE OBJECT_NAME SESSION_ID LOCKED_MODE
-- ---- ---- ----- -- ---- ---- ---- ---- ---- -- -- ---- -- -- ---- ---
TABLE WH_BILLS 151 2
TABLE PARTITION WH_BILLS 151 4
TABLE WH_BILLS 17 2
TABLE PARTITION WH_BILLS 17 4
TABLE WH_BILLS 19 2
TABLE PARTITION WH_BILLS 19 4
TABLE WH_BILLS 44 2
TABLE PARTITION WH_BILLS 44 4

8 rows selected.

Elapsed: 00:00:00.02
READONLY@ >


How could this situation arise where we can 't even read from the table?
Should the indexes be built like this?

Thanks,

Steve.



-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
Information in this email may be privileged, confidential and is
intended exclusively for the addressee. The views expressed may
not be official policy, but the personal views of the originator.
If you have received it in error, please notify the sender by return
e-mail and delete it from your system. You should not reproduce,
distribute, store, retransmit, use or disclose its contents to anyone.

Please note we reserve the right to monitor all e-mail
communication through our internal and external networks.
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---



--
http://www.freelists.org/webpage/oracle-l