dbTalk Databases Forums  

How to "DUMP" a clob?

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss How to "DUMP" a clob? in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Malcolm Dew-Jones
 
Posts: n/a

Default How to "DUMP" a clob? - 04-01-2008 , 07:23 PM






Hello

DEFINE _SQLPLUS_RELEASE = "1001000500"
DEFINE _O_VERSION = "Oracle Database 10g Enterprise Edition Release
10.2.0.3.0 - 64bit Production

I have a clob. I save data in it, and then I want to get it back out. I
don't always get back what I expect. I would like to examine the "real"
data in the clob.


HOW can I examine the contents of the CLOB to see what is really in it?

DUMP won't do it, and all the other functions appear to do char set
translations before they show you anything, so the values you see don't
actually tell you what you stored at all.


Reply With Quote
  #2  
Old   
Vladimir M. Zakharychev
 
Posts: n/a

Default Re: How to "DUMP" a clob? - 04-02-2008 , 07:44 AM






On Apr 2, 4:23 am, yf... (AT) vtn1 (DOT) victoria.tc.ca (Malcolm Dew-Jones)
wrote:
Quote:
Hello

DEFINE _SQLPLUS_RELEASE = "1001000500"
DEFINE _O_VERSION = "Oracle Database 10g Enterprise Edition Release
10.2.0.3.0 - 64bit Production

I have a clob. I save data in it, and then I want to get it back out. I
don't always get back what I expect. I would like to examine the "real"
data in the clob.

HOW can I examine the contents of the CLOB to see what is really in it?

DUMP won't do it, and all the other functions appear to do char set
translations before they show you anything, so the values you see don't
actually tell you what you stored at all.
You need to convert it to a BLOB and inspect that. See
DBMS_LOB.CONVERTTOBLOB() in the docs.

Hth,
Vladimir M. Zakharychev
N-Networks, makers of Dynamic PSP(tm)
http://www.dynamicpsp.com


Reply With Quote
  #3  
Old   
Vladimir M. Zakharychev
 
Posts: n/a

Default Re: How to "DUMP" a clob? - 04-02-2008 , 07:44 AM



On Apr 2, 4:23 am, yf... (AT) vtn1 (DOT) victoria.tc.ca (Malcolm Dew-Jones)
wrote:
Quote:
Hello

DEFINE _SQLPLUS_RELEASE = "1001000500"
DEFINE _O_VERSION = "Oracle Database 10g Enterprise Edition Release
10.2.0.3.0 - 64bit Production

I have a clob. I save data in it, and then I want to get it back out. I
don't always get back what I expect. I would like to examine the "real"
data in the clob.

HOW can I examine the contents of the CLOB to see what is really in it?

DUMP won't do it, and all the other functions appear to do char set
translations before they show you anything, so the values you see don't
actually tell you what you stored at all.
You need to convert it to a BLOB and inspect that. See
DBMS_LOB.CONVERTTOBLOB() in the docs.

Hth,
Vladimir M. Zakharychev
N-Networks, makers of Dynamic PSP(tm)
http://www.dynamicpsp.com


Reply With Quote
  #4  
Old   
Vladimir M. Zakharychev
 
Posts: n/a

Default Re: How to "DUMP" a clob? - 04-02-2008 , 07:44 AM



On Apr 2, 4:23 am, yf... (AT) vtn1 (DOT) victoria.tc.ca (Malcolm Dew-Jones)
wrote:
Quote:
Hello

DEFINE _SQLPLUS_RELEASE = "1001000500"
DEFINE _O_VERSION = "Oracle Database 10g Enterprise Edition Release
10.2.0.3.0 - 64bit Production

I have a clob. I save data in it, and then I want to get it back out. I
don't always get back what I expect. I would like to examine the "real"
data in the clob.

HOW can I examine the contents of the CLOB to see what is really in it?

DUMP won't do it, and all the other functions appear to do char set
translations before they show you anything, so the values you see don't
actually tell you what you stored at all.
You need to convert it to a BLOB and inspect that. See
DBMS_LOB.CONVERTTOBLOB() in the docs.

Hth,
Vladimir M. Zakharychev
N-Networks, makers of Dynamic PSP(tm)
http://www.dynamicpsp.com


Reply With Quote
  #5  
Old   
Vladimir M. Zakharychev
 
Posts: n/a

Default Re: How to "DUMP" a clob? - 04-02-2008 , 07:44 AM



On Apr 2, 4:23 am, yf... (AT) vtn1 (DOT) victoria.tc.ca (Malcolm Dew-Jones)
wrote:
Quote:
Hello

DEFINE _SQLPLUS_RELEASE = "1001000500"
DEFINE _O_VERSION = "Oracle Database 10g Enterprise Edition Release
10.2.0.3.0 - 64bit Production

I have a clob. I save data in it, and then I want to get it back out. I
don't always get back what I expect. I would like to examine the "real"
data in the clob.

HOW can I examine the contents of the CLOB to see what is really in it?

DUMP won't do it, and all the other functions appear to do char set
translations before they show you anything, so the values you see don't
actually tell you what you stored at all.
You need to convert it to a BLOB and inspect that. See
DBMS_LOB.CONVERTTOBLOB() in the docs.

Hth,
Vladimir M. Zakharychev
N-Networks, makers of Dynamic PSP(tm)
http://www.dynamicpsp.com


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.