Welcome Guest
(
Log In
|
Register
)
Oracle DBA Forums
>
Oracle
>
Oracle Forum
SYS.ANYDATA to BLOB
, SYS.ANYDATA to BLOB
Options
manohar reddy g
View Member Profile
Feb 27 2012, 05:48 AM
Post
#1
Newbie
Group: Members
Posts: 4
Joined: 3-January 12
Member No.: 46,518
How to convert a SYS.ANYDATA object to BLOB?
or any user defined type to BLOB?
burleson
View Member Profile
Feb 27 2012, 06:16 AM
Post
#2
Advanced Member
Group: Members
Posts: 10,370
Joined: 26-January 04
Member No.: 13
Hi Manohar,
>> How to convert a SYS.ANYDATA object to BLOB?
good question!
Read up on dbms_lob.converttoblob
http://docs.oracle.com/cd/B19306_01/appdev...ob.htm#i1020355
I've never done it before, but I would try this first:
1 - Use utl_raw.cast_to_raw to convert to a raw datatype
2 - Input the raw into the dbms_lob.converttoblob function and see if it goes into a BLOB datatype
Here is a working example of converting to a blob:
http://www.dba-oracle.com/t_convert_to_blob_datatype.htm
Let me know if this works!
--------------------
Hope this helps. . .
Donald K. Burleson
Oracle Press author
Author of
Oracle Tuning: The Definitive Reference
« Next Oldest
·
Oracle Forum
·
Next Newest »
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Forum Home
Search
Help
Oracle
|-- Oracle Forum
Display Mode:
Standard
·
Switch to: Linear+
·
Switch to: Outline
Track this topic
·
Email this topic
·
Print this topic
·
Subscribe to this forum
Lo-Fi Version
Time is now: 22nd May 2013 - 03:14 PM
Powered By
IP.Board
2.3.6 © 2013
IPS, Inc
.