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
-none-

-none-

2004-08-04       - By -not available-
Reply:     <<     151     152     153     154     155     156     157     158     159     160     >>  

43,651713,1

2. Dump the block:
Using the file and block dump the block..

Alter system dump datafile <fileid > block min <blockid > block max
<blockid >

Alter system dump datafile 43 block min 651713 block max 651713

3. Look at the trace file and look for the row number from the query 1,
in the dump..

tab 0, row 1, @(protected)
tl: 46 fb: --H-FL-- lb: 0x1 cc: 2

4. For the lob columns stored out of line: dba is in the last four
bytes.. Here is an example..Second columns I blob for me. Count starts
from 0.

col 1: [40]
00 54 00 01 02 0c 00 00 00 01 00 00 00 01 00 00 04 0e f8 c3 00 14 05 00
00
00 00 00 0f a0 00 00 00 00 00 02 0a c9 f2 5e

   Here 0ac9f25e is the dba of the out of line lob.

5. Convert this to decimal 181006942.

6. Find the file and block using the above dba..
undef dba
select
dbms_utility.DATA_BLOCK_ADDRESS_FILE(&&dba)|| ', '||
dbms_utility.DATA_BLOCK_ADDRESS_BLOCK(&&dba)
from dual
/

7. You can also dump this lob block to confirm that this analysis is
correct..

buffer tsn: 21 rdba: 0x0ac9f25e (43/651870)
scn: 0x0518.8462f4a6 seq: 0x02 flg: 0x00 tail: 0xf4a61b02
frmt: 0x02 chkval: 0x0000 type: 0x1b=LOB BLOCK

Long field block dump:
Object Id 297174
LobId: 0001004EF8C3 PageNo 0
Version: 0x0000.00000001

PS: This is 8i, 64 bit on Solaris..

HTH

Thanks
Riyaj "Re-yas " Shamsudeen
Certified Oracle DBA


-- --Original Message-- --
From: oracle-l-bounce@(protected)
[mailto:oracle-l-bounce@(protected)] On Behalf Of DENNIS WILLIAMS
Sent: Wednesday, August 04, 2004 4:01 PM
To: 'oracle-l@(protected) '
Subject: From row to datafile


List - Does anyone know how to relate a database row to the datafile
where it is stored? Here is the situation: we are going to test the
recovery of a database, removing a few data files and then recovering
them from RMAN backup. These data files store image blobs out-of-line. I
would like to be able to list a few images from a particular data file
so after recovery we could retrieve those images. There are some queries
for dealing with database corruption where you can take a given file and
block and relate it back using dba_segments and sys.uet$. I 'm not sure
how to work for a specific row or with out-of-line blobs. Any ideas
appreciated.


Dennis Williams
DBA
Lifetouch, Inc.

"We all want progress, but if you 're on the wrong road, progress means
doing an about-turn and walking back to the right road; in that case,
the man who turns back soonest is the most progressive. "
-- C.S. Lewis

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



-- Attached file included as plaintext by Ecartis --
-- Desc: Signature

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. If the reader of this message is not the intended recipient,
you are hereby notified that your access is unauthorized, and any review,
dissemination, distribution or copying of this message including any
attachments is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete the material from any
computer.


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