Blob to Clob
Hi All,
Any help with be much appreciated.
I wrote the following but keep getting the following error: ORA-06502: PL/SQL: numeric or value error. I know the flex_ws_api.blob2clobbase64 function is working as I have tested it outside of the application but when I try to push it to a page item I get the error, the function is converting a document form a blob to a clob.
declare
l_blob BLOB;
l_return CLOB;
BEGIN
select blob_content into l_blob
from wwv_flow_files
where name = :P169_FILENAME;
l_return := flex_ws_api.blob2clobbase64(l_blob);
:P169_CLOB_VALUE := l_return;
END;
user10256482 wrote:
:P169_CLOB_VALUE defined as just a textarea item and the error I receive is in the Application (APEX) so I dont get a line number.I'm thinking :p169_clob_value was defined with insufficient length and the clob is too long to fit into it
Similar Messages
-
BLOB and CLOB data in BI Publisher
Hello,
I have an XML file with blob and clob data in it. I am using BI desktop publisher to load the xml file and create the rtf template. I am getting the following error:
ConfFile: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config\xdoconfig.xml
Font Dir: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts
Run XDO Start
Template: C:\work\employee.rtf
RTFProcessor setLocale: en-us
FOProcessor setData: C:\work\employee.xml
FOProcessor setLocale: en-us
Do i need to install anything or am i missing any configuration to read the blob and clob? Please advise
thanksCheck this out, hopefully it'll help you
http://oraclebizint.wordpress.com/2007/11/12/oracle-bi-ee-101332-working-with-clob-fields/
Fiston -
How can i read a stored picture in oracle Long Raw datatype? blob or clob?
How can i read a stored picture in oracle Long Raw datatype? Like a blob or clob?....i am using jdk 1.3
This is because...i tried to read it like a blob but i obtain a exception...about Type of column no valid......but the column exist....and it contains the long raw datatype of the pictures.....this is my code:
import java.sql.*;
import java.io.*;
import java.util.*;
import oracle.jdbc.driver.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.io.InputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.sql.Connection;
import java.sql.Statement;
import java.sql.ResultSet;
import java.sql.DriverManager;
import oracle.sql.BLOB;
import oracle.sql.BLOB.*;
import oracle.jdbc.driver.*;
import java.sql.*;
class rec_ima1
public static void main(String h[])
Connection con = null;
Blob bl;
final ImageIcon image1;
JPanel photo;
try
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
con= DriverManager.getConnection("jdbc:oracle:thin:@123.3.12.213:1521:db_name","user","password");
String query = "Select * from pictures where ID = '18840'";
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery( query );
if (!rs.next())
System.out.println("Empty Result Set");
bl = rs.getBlob(5);
if (bl == null) {
System.out.println("Null Blob");
return;
InputStream is = bl.getBinaryStream();
int imageLength = (int) bl.length();
System.out.println(imageLength);
System.out.println(bl.length());
byte[] imageData = new byte [imageLength];
is.read(imageData, 0, imageLength);
image1 = new ImageIcon(imageData);
photo = new JPanel() {
public void paint(Graphics g){
g.setColor(Color.lightGray);
g.drawImage(image1.getImage(), 0, 0, this);
} catch (Exception e) {
e.printStackTrace();
Now i tried using clob:
import java.sql.*;
import java.io.*;
import java.util.*;
import oracle.jdbc.driver.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.io.InputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.sql.Connection;
import java.sql.Statement;
import java.sql.ResultSet;
import java.sql.DriverManager;
import oracle.sql.CLOB;
import oracle.sql.CLOB.*;
import oracle.jdbc.driver.*;
import java.sql.CallableStatement;
class rec_ima4
public static void main(String h[])
Connection con = null;
Clob cl;
JPanel photo;
try
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
con= DriverManager.getConnection("jdbc:oracle:thin:@123.3.12.213:1521:db_name","user","password");
con.setAutoCommit (false);
String query = "Select * from pictures where ID = '18840'";
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery( query );
while (rs.next()) {
oracle.sql.CLOB clob = (CLOB) rs.getObject(5); //line 47
} catch (Exception e) {
e.printStackTrace();
This is the runtime exception:
java.lang.ClassCastException: [B
at rec_ima4.main(rec_ima4.java:47)Thanks by answering to me......
Well....i did that....but what is ImageIO?....
I declared a ImageIcon imageIO, but this give me the following:
rec_ima3.java:49: cannot resolve symbol
symbol : class BufferedImage
location: class rec_ima3
BufferedImage bi = ImageIO.read(bInput);
^
rec_ima3.java:49: cannot resolve symbol
symbol : variable ImageIO
location: class rec_ima3
BufferedImage bi = ImageIO.read(bInput);
^
What classes i have to import?.....what is ImageIO?
Thanks -
I am using the below function to convert a CSV file with large data (say more than 100k records) . the below functions allows me to read not more than 350 records. Can any one help me with accepting the larger files ?
create or replace FUNCTION blob_to_clob (blob_in IN BLOB)
RETURN CLOB
AS
v_clob CLOB;
v_varchar VARCHAR2(32767);
v_start PLS_INTEGER := 1;
v_buffer PLS_INTEGER := 32767;
BEGIN
DBMS_LOB.CREATETEMPORARY(v_clob, TRUE);
FOR i IN 1..CEIL(DBMS_LOB.GETLENGTH(blob_in) / v_buffer)
LOOP
v_varchar := UTL_RAW.CAST_TO_VARCHAR2(DBMS_LOB.SUBSTR(blob_in, v_buffer, v_start));
DBMS_LOB.WRITEAPPEND(v_clob, LENGTH(v_varchar), v_varchar);
v_start := v_start + v_buffer;
END LOOP;
RETURN v_clob;
END blob_to_clob;Not sure why a BLOB is being used here. If you are processing just a CSV (text) file you shouldn't need a BLOB. You should be able to handle it directly as a CLOB. Could you detail more how you are using this function or what exactly your process is doing i.e. how is the data read in from CSV, where does it go, etc.?
-
Display BLOB and CLOB on browser
Hi All.
I need to display contents of BLOBs and CLOBs on the browser. They can be any docFlavour eg. .jpg, .gif, .pdf, .doc etc
Is there some standard way of doing this ???
If any all possible I would rather not use swing class because of its footprint and its slow performance over the net.Hi !
Just in case anyone read this and is willing to comment on it...
I have one BLOB and one CLOB column in the same record.
I have been able to stream documents into and out of the BLOB's incl. MS .doc Also I have been able to get the content from BLOB and write it to a target directory.
However I am having odd problems with CLOB, a simple text file. My servlet attempts to read the CLOB and does create the output file in the target directory, but does not copy the content over. It also returns 0 for clobLength !?! Here is the stub-code :
ResultSet clobRS = thisStmt.executeQuery (
"SELECT ATextMsg " +
"FROM ... " +
"WHERE ... " );
clobRS.next();
CLOB thisCLOB = ((OracleResultSet) clobRS).getCLOB("ATextMsg");
int chunkSize = thisClob.getChunkSize();
System.out.println("chunkSize is " + chunkSize); // default us 8132...
char [] textBuffer = new char[chunkSize];
String targetFile = targetDir + "retrieved_" + fileName;
File thisFile = new File(targetFile); // it does create an empty target file...
// read content as ASCII (text) content...
FileOutputStream thisFileOutputStream = new FileOutputStream(thisFile);
OutputStreamWriter thisWriter = new OutputStreamWriter(thisFileOutputStream);
BufferedWriter thisBufferedWriter = new BufferedWriter(thisWriter);
// things go wrong here, returns length of 0, why ?!?
long clobLength = thisClob.length();
System.out.println("clobLength is " + clobLength);
// flush to targetFile - but since clobLength=0, nothing gets copied over...
for (position=1; position<=clobLength; position+=chunkSize)
int charsRead = thisClob.getChars(position, chunkSize, textBuffer);
thisBufferedWriter.write(testBuffer);
Since the clobLength is 0, obviously it will not copy from the database CLOB to the file.
Manually change the clobLength = 8132, recompile and run, then it copies some junk to the targetFile, certainly not the textual data in the CLOB itself.
The BLOB is fine...
Can someone comment on this please and if possible, give me a hint on where I might have gone wrong with a simple text file ??? -
Function convertion from blob to clob
Plesae need help,to make function convert from blob to clob
i have function but not work when coulmn of blob is vey large
=========================================================================================
CREATE OR REPLACE PACKAGE BODY "SHB_PACKAGE"
AS
FUNCTION blob2clob (l_blob BLOB)
RETURN CLOB
IS
l_clob CLOB;
l_src_offset NUMBER;
l_dest_offset NUMBER;
l_blob_csid NUMBER := DBMS_LOB.default_csid;
v_lang_context NUMBER := DBMS_LOB.default_lang_ctx;
l_warning NUMBER;
l_amount NUMBER := dbms_lob.lobmaxsize;
BEGIN
IF l_blob is null
THEN
return null;
ELSE
DBMS_LOB.createtemporary (l_clob, TRUE);
l_src_offset := 1;
l_dest_offset := 1;
l_amount := NVL(DBMS_LOB.getlength (l_blob),0);
DBMS_LOB.converttoclob (l_clob,
l_blob,
l_amount,
l_src_offset,
l_dest_offset,
0,
v_lang_context,
l_warning
RETURN l_clob;
END IF;
END;
END SHB_package;thanks,function is working fine
issue duo to i used under informatice and bug in informatica
Edited by: user8929623 on Jan 17, 2010 1:39 AM -
Hi,
Has anybody been successful in using the DBMS_LOB.ConvertToClob procedure. It's giving me "invalid lob locator specified" error.
here's my code
create or replace function convert_blob_to_clob(p_file in varchar2) return clob is
v_file_blob blob;
v_file_clob clob;
v_file_size integer := dbms_lob.lobmaxsize;
v_dest_offset integer := 1;
v_src_offset integer := 1;
v_blob_csid number := dbms_lob.default_csid;
v_lang_context number := dbms_lob.default_lang_ctx;
v_warning integer;
begin
select a.blob_content into v_file_blob
from txt_files a
where name = p_file;
dbms_lob.convertToClob(v_file_clob, v_file_blob,v_file_size,
v_dest_offset, v_src_offset, v_blob_csid,
v_lang_context, v_warning);
if v_warning = 0 then
return v_file_clob;
end if;
end;
Any help would be greatly appreciated
Thanks.I figured it out...
here 's the new code..
create or replace function convert_blob_to_clob(p_file in varchar2) return clob is
v_file_blob blob;
v_file_clob clob;
v_file_size integer := dbms_lob.lobmaxsize;
v_dest_offset integer := 1;
v_src_offset integer := 1;
v_blob_csid number := dbms_lob.default_csid;
v_lang_context number := dbms_lob.default_lang_ctx;
v_warning integer;
begin
select a.blob_content into v_file_blob
from txt_files a
where name = p_file;
-- the following line solved it
DBMS_LOB.CREATETEMPORARY(v_file_clob, TRUE);
dbms_lob.convertToClob(v_file_clob, v_file_blob,v_file_size,
v_dest_offset, v_src_offset, v_blob_csid,
v_lang_context, v_warning);
if v_warning = 0 then
return v_file_clob;
end if;
end; -
Table export to csv files and blob/lob/clob data types
Greetings,
Im planning to export oracle tables to a csv file, however, it came to my attention if BLOB/LOB/CLOB datatypes will be included during the export to the csv file?
DB: Oracle9i Database 9.2.0.1.0
Regards
Edited by: oracleelcaro on 4-okt-2010 9:45Hi,
The performance would be slow, since as per my knowledge if you go for direct path - still tables or segments dealing with lob will opt for "conventional path".
Any non-textual information exists - kindly check out before to export.. ??
- Pavan Kumar N -
Using blob or clob from db as document
I'm changing a working process to fetch an XDP document from a database rather than fetch from resources:// on the Adobe server. The DB2 database field containing the XDP is a clob data type. We were using blob. The services operations are:
- Foundation/JdbcService/Query Single Row this fetches the XDP
- Foundation/SetValue/Execute this converts whatever was fetched into a document variable
- Forms/FormsService/renderPDFForm this merges the document with XML and produces PDF output
I'm unable to write the database field into a variable due to lack of choices. For instance there is no BLOB or CLOB variable type in the list of available types. When using STRING I get the following error:
Caused by: java.io.NotSerializableException: com.ibm.db2.jcc.b.ub
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at com.adobe.idp.dsc.util.CoercionUtil.toString(CoercionUtil.java:498)
When using XML I get the following error:
Caused by: com.adobe.workflow.WorkflowRuntimeException: Invalid location: /process_data/@clob_XDP_string cannot be stored for action instance: -1
at com.adobe.workflow.pat.service.PATExecutionContextImpl.setProcessDataValue(PATExecutionCo ntextImpl.java:701)
When using OBJECT I get the following error:
Caused by: com.adobe.workflow.WorkflowRuntimeException: Invalid location: /process_data/@clob_XDP_string cannot be stored for action instance: -1
at com.adobe.workflow.pat.service.PATExecutionContextImpl.setProcessDataValue(PATExecutionCo ntextImpl.java:701)Steve,
Going against DB2 doesn't work for me with a document variable type. It gives a coercion error.
I did solve my problem though from the following URL: http://groups.google.com/group/livecycle/browse_thread/thread/6c4b9156b52b71a7
JYates:
You can do this, but you have to use the Execute Script service -- at this time there isn't a deployable component for it.
Use this sort of script in the Execute Script service to read the PDF blob from the database and populate a Document variable.
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.Statement;
import java.sql.ResultSet;
import javax.sql.DataSource;
import javax.naming.InitialContext;
int processId = patExecContext.getProcessDataIntValue("/process_data/@id");
InitialContext context = new InitialContext();
Connection connection = ((DataSource)context.lookup("java:/IDP_DS")).getConnection();
String queryQuery = "select bigdocument, bigstring from tb_pt_workwithxlobs where process_instance_id = ?";
PreparedStatement queryStatement = connection.prepareStatement(queryQuery);
try {
queryStatement.setInt(1, processId);
ResultSet results = queryStatement.executeQuery();
results.next();
java.sql.Blob documentBlob = results.getBlob(1);
com.adobe.idp.Document document = new com.adobe.idp.Document(documentBlob.getBinaryStream());
patExecContext.setProcessDataValue("/process_data/@NewBigDocument",document);
java.sql.Clob stringClob = results.getClob(2);
patExecContext.setProcessDataValue("/process_data/@NewBigString",stringClob.getSubString( 1L,(int)stringClob.length()));
catch(Exception ex) {
ex.printStackTrace();
queryStatement.close();
connection.close(); -
Help required in handling of Oracle BLOB and CLOB in OC4J
Hi,
I am in a process of porting my application from Weblogic 6 to OC4J.
I have problem while handling CLob and Blob's in oracle. Weblogic has
classes defined to do the same. (weblogic.jdbc.common.OracleClob)
Does any one know how I can achieve this.
Thanks in advance.
Regards,
MoinWe have an application running on OC4J accessing an Oracle 8.1.7 db, and have no problems using BLOBs and CLOBs. It is explained quite clearly in the Oracle documentation.
If you require further assistance let me know :-) -
Code for using thin client over connection pool to access blob and clob
Hi,
Currently I am running WL5.1SP12 with oracle thin client 8.1.7 to access blob
and clob data. As the performance for concurrent users is very bad, I like to
use the thin client over a connection pool to access the blob and clob instead.
My question is whether this is possible and if so does anyone have a sample code?
Thanks.
This is urgent as the site has to roll out in 2 weeks..
Rgd,
JasonSee http://e-docs.bea.com/wls/docs61/jdbc/thirdparty.html#1043705.
"Jason" <[email protected]> wrote in message news:3eba851f$[email protected]..
>
Hi Stephen,
Thanks for the reply. Can I confirm that what you are saying is that in release
6.1 I am able to access blob/clob data via thin client over connection pool?
Rgd.
Jason
"Stephen Felts" <[email protected]> wrote:
Blob/clob support through the connection pool came in with release 6.1.
"Jason" <[email protected]> wrote in message news:[email protected]..
Hi,
Currently I am running WL5.1SP12 with oracle thin client 8.1.7 to accessblob
and clob data. As the performance for concurrent users is very bad,I like to
use the thin client over a connection pool to access the blob and clobinstead.
My question is whether this is possible and if so does anyone havea sample code?
Thanks.
This is urgent as the site has to roll out in 2 weeks..
Rgd,
Jason -
Can I convert existing column BLOB to CLOB?
Hi ,
I need conversion of existing column from BLOB to CLOB. Kindly sueggest workaround. Table structure is as
{ desc tab1;
Name Null? Type
Name Null? Type
RECID NOT NULL VARCHAR2(255)
XMLRECORD BLOB}
I need to convert it from blob to clob. Kindly provide workaround.
RegardsHi,
How can i use this function for my scenario
1. Table name is "test" and XMLRECORD column should be in CLOB without drop table. Kindly update this fuction as per my scenario and also provide all the steps
CREATE OR REPLACE FUNCTION blob_to_clob (blob_in IN BLOB)
RETURN CLOB
AS
v_clob CLOB;
v_varchar VARCHAR2(32767);
v_start PLS_INTEGER := 1;
v_buffer PLS_INTEGER := 32767;
BEGIN
DBMS_LOB.CREATETEMPORARY(v_clob, TRUE);
FOR i IN 1..CEIL(DBMS_LOB.GETLENGTH(blob_in) / v_buffer)
LOOP
v_varchar := UTL_RAW.CAST_TO_VARCHAR2(DBMS_LOB.SUBSTR(blob_in, v_buffer, v_start));
DBMS_LOB.WRITEAPPEND(v_clob, LENGTH(v_varchar), v_varchar);
v_start := v_start + v_buffer;
END LOOP;
RETURN v_clob;
END blob_to_clob;
] -
hi all,
i have a table have 2 clounms in my DB (10.2.0.4) one colunm is varchar2 and other one was blob. as per requested from developer team, i changed it from blob to clob. after this conversion, object size is increased from 11mb to 39mb. my point is is it expected behavior ?????? if yes ! can any one pl. explain it.
regards,CREATE TABLE TABLE_CLOB
RECID VARCHAR2(255 BYTE),
XMLRECORD SYS.XMLTYPE
TABLESPACE DATATABLESPACE
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
BUFFER_POOL DEFAULT
LOGGING
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING
ENABLE ROW MOVEMENT;
CREATE UNIQUE INDEX TABLE_CLOB_PK ON TABLE_CLOB
(RECID)
LOGGING
TABLESPACE INDEXTABLESPACE
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
BUFFER_POOL DEFAULT
NOPARALLEL;
ALTER TABLE TABLE_CLOB ADD (
CONSTRAINT TABLE_CLOB_PK
PRIMARY KEY
(RECID)
USING INDEX
TABLESPACE INDEXTABLESPACE
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
)); -
Blob to clob conversion when inserting as select?
I have a table with one row that has BLOB column. I would like to copy that row to a different table, with CLOB column data type. I’ve found this discussion (BLOB to CLOB? where some examples of stored procedures to convert blob to clob are used but I am unsure what should I use as input parameter to the blob_to_clob procedures listed in that discussion? Please advice.
Thank you very much for your time.
DanielThe function by Richard Wiener {message:id=9646697} in the thread simply uses the procedure dbms_lob.converttoclob with a set of parameters defined in the function.
At my work we have created a similar function:
CREATE OR REPLACE function blob2clob (p_blob in blob)
return clob
is
v_clob clob;
amount INTEGER;
dest_offset INTEGER;
src_offset INTEGER;
blob_csid NUMBER;
lang_context INTEGER;
warning INTEGER;
begin
dbms_lob.createtemporary (
v_clob,
false,
dbms_lob.session
amount := dbms_lob.lobmaxsize;
dest_offset := 1;
src_offset := 1;
blob_csid := nls_charset_id('AL32UTF8');
lang_context := 0;
dbms_lob.converttoclob(
v_clob,
p_blob,
amount,
dest_offset,
src_offset,
blob_csid,
lang_context,
warning
return v_clob;
end blob2clob;
/Difference here is that Richard uses default charset - we have need for AL32UTF8 charset. You should use whatever is relevant for your case.
The use of either Richards function or the above is simple for your insert as select:
insert into tab_c (clob_col)
select blob_to_clob(blob_col) from tab_b -
XML data from BLOB to CLOB - character set conversion
Hi All,
I'm trying to solve a problem with a character set conversion in PL/SQL in the following scenario:
1. source is an XML as a BLOB variable.
2. target is an XML as a CLOB variable.
3. the problem I have is the following:
- database character set is set to UTF-8
- XML character set could be anything (UTF-8, ISO 8859-1, ISO 8859-2, ASCII, ...)
- I need to write a procedure which converts the source BLOB content into the target CLOB taking into account the XML encoding and converts it into the DB default character set (UTF8).
I've been able to implement a simple conversion function. However, this function expects static XML encoding ISO-8859-1. The main part of the function looks as follows:
buffer := UTL_RAW.cast_to_varchar2(
UTL_RAW.convert(
DBMS_LOB.SUBSTR(source_blob_variable, 16000, pos)
, 'American_America.UTF8'
, 'American_America.we8iso8859p1')
Does anyone have an idea how to rewrite the code to handle "any" XML encoding in the source BLOB file? In other words, is there a function in Oracle which converts XML character set names into Oracle character set values (ISO-8859-1 to we8iso8859p1, UTF-8 to UTF8, ...)?
Thanks a lot for any help.
JuliusI want to pass a BLOB to some "createXML" procedure and get a proper XMLType in UTF8 character set, properly converted from whatever character set is the input in.As per documentation the generated XML has always the encoding set at the client side depending on NLS_LANG (default UTF-8), regardless of the input encoding, so I don't see a need to parse the PI of the XML:
C:\>echo %NLS_LANG%
%NLS_LANG%
C:\>sqlplus
SQL*Plus: Release 11.1.0.6.0 - Production on Wed Apr 30 08:54:12 2008
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> var cur refcursor
SQL>
SQL> declare
2 b blob := utl_raw.cast_to_raw ('<a>myxml</a>');
3 begin
4 open :cur for select xmlroot (xmltype (utl_raw.cast_to_varchar2 (b))) xml from dual;
5 end;
6 /
PL/SQL procedure successfully completed.
SQL>
SQL> print cur
XML
<?xml version="1.0" encoding="UTF-8"?><a>myxml</a>
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
C:\>set NLS_LANG=GERMAN_GERMANY.WE8ISO8859P1
C:\>sqlplus
SQL*Plus: Release 11.1.0.6.0 - Production on Mi Apr 30 08:55:02 2008
Copyright (c) 1982, 2007, Oracle. All rights reserved.
SQL> var cur refcursor
SQL>
SQL> declare
2 b blob := utl_raw.cast_to_raw ('<a>myxml</a>');
3 begin
4 open :cur for select xmlroot (xmltype (utl_raw.cast_to_varchar2 (b))) xml from dual;
5 end;
6 /
PL/SQL-Prozedur erfolgreich abgeschlossen.
SQL>
SQL> print cur
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
<a>myxml</a>
Maybe you are looking for
-
Linux: Can't go to google-related websites after 35 update
Hi guys. I'm running Linux Mint, and firefox just updated to version 35. Right after restarting firefox for this update, I can't load any google-related pages. I do not get any sort of cannot connect error. When I type in the address and press enter,
-
Read Itab binary search not working.
Hi, I have the following issue: From a table, I am picking up 5 fields into an internal table (in the correct sequence): A B C D E. Now, I am sorting the above internal table as follows: sort itab by A B C descnding. Now, I am writing the read stmt a
-
Burning CD after updates? Of what?
So I finally finished almost all of the updates I had to do. (I still have to do iTunes, but I first want to make yet another copy of my Library onto another backup LaCie HD - besides my SuperDuper! backup copy on a different LaCie - I really don't w
-
is there any way to put a cell phone charm on the iPhone?
-
2 defective Macbooks in a row - defective batch confirmed, but no replacement
Hi. Last year I've bought a Macbook White, after having 3 other Apple computers. In the first 3 months the display started to show some white spots and, suddenly, a dead pixel. In 3 months of use. I've sent it to an Apple Authorized Service Provider,