Can we read clob data present in oracle database by BPEL
Hi all,
Please let me know or help me understand whether we can read clob data(excel file) present in database by BPEL?
TIA
Try this one,
Re: Reading Xml file from clob column in the staging table
Hope it helps,
Similar Messages
-
How can i save the data from the Oracle database to my local directory
How can i save the data from the Oracle database to my local directory instead Of saving the data file to the Directory created on the Oracle Server ?
I require to design the Procedure which will pull the data from various tables and needs to store the data in the Client's local directory.Since SQL*PLUS runs on the client, you can use SQL*PLUS to spool data to your local drive.
You could also use the database to write a a specified drive where all users have access to (mapped network drive, e.g.). I wouldn't recommend doing it that way, but it is sometimes useful when the files are created in some nightly batch run. -
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 -
in oracle 8.1.7, I can read clob success; but can't execute in 8.1.6. the error info is :
ORA-03120: two-task conversion routine: integer overflow
please help me! please help me!
example code:
myClob = rs.getClob("content");
Reader instream = myClob.getCharacterStream();
char[] buffer = new char[10];
int length = 0;
while ((length = instream.read(buffer)) != -1) {
out.print("Read " + length + " chars: ");
for (int i=0; i<length; i++) out.print(buffer);
instream.close();Hi there,
I am not a php expert, but worked with C, C++, Perl and Java systems working with Oracle database.
Oracle 10g is very flexible and advanced in term of LOBs and CLOBs (you can retrive CLOBs like any other type, can create indexes on CLOB columns and all string functions can work with CLOBs).
When we retrive Oracle CLOB into another language, we need to look at the facilities provided by driver software interacting with Oracle.
In Oracle, you can simply do 'select clob_column from table'. Question is, how the php driver can handle that CLOB data? Can you create a ref cursor and retrive the data? can you create a stream of data and extract the clob (like in C)? or can you simply create a php veriable of unlimited size and select the clob into it (like in Perl)?
See if this link is relevant for you
http://www.oracle.com/technology/pub/articles/oracle_php_cookbook/fuecks_lobs.html
Please let us know which solution did you implement.
Regards -
How can we do the data migration between Oracle Applications and SAP R/3.
Hi All,
How can we do the data migration between Oracle Applications and SAP R/3 system.What are all the possible ways to move bulk data from Oracle Apps to SAP r/3 system.
Provide any 3rd party tools which supports data migration and also pls rpovide the SAP's own data migration tools with supports the above feature.
Awaiting for best possible solution.
Thanks in advance.
Regards
Dharmarajuthe 3rd party tool is ETL , you can use ETL tool and the prepare the load files then you can use LSMW method to upload the data to SAP.
-
How to read RMAN data into an ORACLE Table?
Hallo,
With regards to RMAN, how should we store the data into a database table, from the commands which can run only on RMAN prompt without using Recovery Catalog?
For Example:
RMAN> Report need backup days 3;
RMAN DATA:
RMAN-03022: compiling command: report
Report of files whose recovery needs more than 3 days of archived logs
File Days Name
1 1203 D:\ORACLE\ORADATA\TEST\SYSTEM01.DBF
2 1203 D:\ORACLE\ORADATA\TEST\RBS01.DBF
3 1203 D:\ORACLE\ORADATA\TEST\USERS01.DBF
Should it done via UTL_FILE?
If so, could someone give simple example/code how to do that, in order to write this RMAN data into an Oracle Database table?
I also set the utl_file_dir parameter to a particular directory in my database.
Thanks
W.BenvortActually, I am not using Recovery Catalog, so the views like RC_database, Rc_tablespaces etc , which are specific to recovery catalog are not available.
r.- this make sense at 100% because those views belong to the recovery catalog.
So, I wanted that these information, which we can get via using the commands like above, transfer into an Oracle table
r.- If you want to access the views of the Recovery Catalog to store part of that information in tables you have to have the database registered in a Recovery Catalog.
Should we keep the Recovery Catalog in Control file? Instead of using separate Schema.
r.- I recommend you to create a catalog for your database because the space the controlfile to store information regarding RMAN is reused and you can lose important information about your backups.
Can we run Catrman.sql script as a sys in order to keep the recovery catalog in sys schema?
r.- As you know, this is not recommended at all.
Conclusion : Create a Recovery Catalog and you will be able to perform all that you want regardind what you mentioned above.
I have a thread for this:
RMAN ( CATALOG CREATION ) STEP BY STEP by Joel Pérez
Joel Pérez
http://otn.oracle.com/experts -
ITunes says it can't read my data, but restoring will install iOS4
Hi,
I've only recently purchased my 8gb iPod Touch, and am on my second one at the moment. I had to take the first one back in less than a day after I purchased it because iOS4 completely crashed it. Nothing could fix it.
Anyway, just recently the new iPod hasn't been connecting to iTunes properly. iTunes can find it but it says it can't read the data and it needs to restore it to the factory settings. I wouldn't have a problem with this normally, however when I go to restore, iTunes says that restoring will also install the iOS4 software, which ruined my last iPod Touch.
I really don't know what to do. Sooner or later I'm going to need to put more things on and take things off...I'm too scared to try and install iOS4 again and I've been told Apple won't help you if your iPod dies as a result of iOS4..
Does anyone know how I can fix this without installing iOS4?
Much appreciated..mine is doing the same thing other than Itunes saying it can't read the format. I can't play 90% of my music. I took it to an apple store the other day an they told me only purchased music will work. Not even a music upload from a CD. Which to me is a load of ....because my wife has all the songs on her iphone that are greyed out on mine and they work on hers
-
How can i read the data fromtext fieldsin the form of bytes??
Hi friends,
How can i read the data fromtext fieldsin the form of byte string while using Socket connection.
I have two text fields. i need to send the data from the textfeilds to the server using a byte string.
Can anyboday help me???
KKDoes <cfdbinfo> work for Access DBs?
You might be better off asking this on a MS Access forum. It's more of an Access issue than a CF one.
Adam -
Can't read form data from newer version
I can't read form data I filled in with older version of reader after I upgraded to a newer version reader. please help. thank you.
On Sun, 16 Apr 2006 11:45:51 +0000 (UTC), "Pedro_3"
<[email protected]> wrote:
> <form method="post"
action="mailto:[email protected]">
See
http://apptools.com/rants/mailto.php
Gary -
How can i read a image from a oracle DB?
How can i read a image from a oracle DB?
Because in the DB a have a field that is a picture that i would like to show in a jpanel.....but this field is in oracle DB only has strange caracters ..... so Do i have to read this field like a input stream?....
Could some body help me please?
Thanks...
MaryWell I suppose the picture is stored in a blob. If that is so this is some code I have used to load a picture to a panel. Hope you find it usefull.
PreparedStatement retreive = db.createPreparedStatement("select bl from test where ln = ?");
Blob bl;
try{
retreive.setBigDecimal(1, new BigDecimal(jTFln.getText()));
ResultSet rs = retreive.executeQuery();
if (!rs.next())
System.out.println("Empty Result Set");
bl = rs.getBlob("bl");
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 (BadLocationException ble){
ble.printStackTrace();
} catch (SQLException sqle){
sqle.printStackTrace();
} catch (IOException ioe){
ioe.printStackTrace();
} -
ASP & Clob fields in the Oracle Database 8i
Hi All,
This is the first time I am posting a question. We are having a problem interfacing ASP pages with Clob fields int he Oracle Database.
We are trying to display clob fields in an oracle database from ASP PAge. The ASP Page does a select to a clob field from a table. But we lose the formatting od the data inside the clob field when we display it out using ASP. We display it as a
single stream of data. But when we display the clob using SQLPLUS we do see the formatted data.
How can we solve this issue or circumvent it ?
We are not looking to parse through the clob field in ASP, rather we already have a stored procedure that parses the data for us. The parsed data is then stored in a clob field already formatted the way we need it. The problem occurs when the ASP
page reads the clob field. The ASP page reads it as one continuos string instead of the formatted data that exists in the clob field.
I imported the data from Oracle to Access in order to view the raw data. The data is shown formatted properly in Access, so we know our stored procedure is doing what it supposed to do. As far as getting the data to display. The only way to retrieve (as far as I know) a clob field using ASP is by a built in function called GetChunk(). Is there a better method of displaying the formatted data aside from parsing on the client side, using ASP?
Let me know if anyone has a solution to this problem.
Thanks for your help and time. Sanjiv.Sanjiv, you might want to try some of the Windows development forums:
ODBC: http://forums.oracle.com/forums/forum.jsp?id=763957
New .NET provider forum: http://forums.oracle.com/forums/forum.jsp?id=1015160
Oracle Objects for OLE: http://forums.oracle.com/forums/forum.jsp?id=763961
Oracle Provider for OLE DB: http://forums.oracle.com/forums/forum.jsp?id=763961
Oracle Services for MTS: http://forums.oracle.com/forums/forum.jsp?id=763960
You'll reach a more appropriate audience than just the Web services audience.
Mike. -
How to find out the date when an oracle database is upgraded
Hi,
I would like to know the date when an oracle database is upgraded (for example 10.2.0.4 to 11.2.0.3).
Can you help me to find out these details.
Thanks,
Sarayuuser13312943 wrote:
Hi Ed and SB,
Thanks for your replies. How about this option?
Let us assume I am interested in checking when my database is upgraded to any 11g version.
Will this query help?
select min(first_usage_date) from dba_feature_usage_statistics where version like '11%';
I understand this may not be a generic solution , but with this idea I may be able to build up a query to get the result.
Thanks,
Sarayu
How is it that you or nobody knows when the DB was upgraded?
I would have expected a formal testing & upgrade plan.
Does the organization practice safe software & utilize any source code repository?
Does everyone suffer from amnesia?
How could a MAJOR database upgrade slip by everyone who should care about such a detail? -
Different ways to download data into a Oracle database
Apart from the below are there any other ways to download data into an Oracle database ?
1. Import data using import/export features.
2. Oracle external tables.
3. Data Pump
4. SQL Loader.
5. PL/SQL => utl_file package.
6. Oracle SQL developer tool - it was a nice surprise this morning to know that this tool can be used to import data into Oracle database.
Thanks
GonyI will be able to do that once I complete my transition into an Oracle DBA
Next Great DBA
I downloaded oracle to my laptop today.
I will become the next great DBA.
No need for education or taking a course,
I'll use the forum and learn by brute force.
The guru's won't mind, they know it all
They are so profound, their ego's enthrall.
They have it written by steps 1 through 10.
If I don't get it once, I'll just ask it again.
I won't write it down, seems simple enough
After all, I've used Access with SQL and stuff.
Why you upset? Why you tell me to read?
I've no time for a manual, No Sir, Indeed!
Why waste my time with a book or a link,
I have this forum, no need to think.
I have no work history, just out of college,
But I'm smarter than those who are three times my age.
I'll become certified with an OCP,
Have you the answers, just give them to me.
Then we'll be equal just wait and see!
But, Why are you paid 100K more than me?Edited by: sb92075 on Jul 12, 2009 7:57 AM -
Problem finding data in an Oracle Database using CMP beans
I am having a problem retrieving data from an Oracle database that has a date as
part of the key. This data was loaded into my database via a batch process writing
in java using java.sql.Date to store the date information. When calling the findByPrimaryKey
method of a CMP Entity Bean I continued to get the FinderException. I know this
data is in my database because I can view the data via SQLPlus and Microsoft Access.
Has anyone ever experience problems with CMP beans accessing data from an Oracle
database that had a date as part if the key or with accessing data in the database
that insert via another method outside of your CMP bean. I desperately need some
answers.Hi Dave,
You should probably post this type of question in the CMP or JDBC section
for best results. Chances are that the date is suffering from a rounding
problem (it could be a date/time in the database with a different time zone)
or is not the date that you think it is (wrong century or millenium). I've
seen both. You need to write a quick piece of code that loads in those
values as both Java timestamps and dates and makes sure that they are what
you think they are.
Peace,
Cameron Purdy
Tangosol Inc.
Tangosol Coherence: Clustered Coherent Cache for J2EE
Information at http://www.tangosol.com/
"Dave White" <[email protected]> wrote in message
news:3c1a4ac3$[email protected]..
>
I am having a problem retrieving data from an Oracle database that has adate as
part of the key. This data was loaded into my database via a batchprocess writing
in java using java.sql.Date to store the date information. When callingthe findByPrimaryKey
method of a CMP Entity Bean I continued to get the FinderException. Iknow this
data is in my database because I can view the data via SQLPlus andMicrosoft Access.
Has anyone ever experience problems with CMP beans accessing data from anOracle
database that had a date as part if the key or with accessing data in thedatabase
that insert via another method outside of your CMP bean. I desperatelyneed some
answers. -
Data transfer from oracle database(external database) to sap database
Hi Abapers,
I have a requirment like excel data upload from oracle database(external database) to SAP database .Plz any one can help me how to create a bdc program for this requarment.
Advance thanks you.
JnanaHI
use function module 'ASLM_EXCEL_TO_INTERNAL_TABLE' TO UPLOAD DATA FROM EXCEL SHEET TO INTERNAL TABLE. FROM THERE U CAN SAVE IT TO DATABASE USING BDC FUNCTION MODULES.
Maybe you are looking for
-
I've been using Firefox for about 3 years. Today, I ran a scan of my computer Webroot Anti Virus and deleted all "risky stuff" they checked. Don't know if this is a coincidence but right after the scan I could not open Firefox. I receive the message,
-
If I create a new apple ID will I lose all the apps I have purchased with my original ID?
If I create a new apple ID will I lose all the apps I have purchased with my original ID?
-
Creating 2 header in ALV (Urgent!)
Hello... i have aproblem right now. i want to create report using ALV grid and i'm using OO method, the problem is, i want to create 2 header in the same screen, for example [header1] [header2] name place
-
Enable Shopping Lists for every SRM-MDM Catalog User individually
Hi, As per SAP Note 1153525, I am trying to pass the username through OCI parameter 'sl_user' with value 'SY-UNAME' and type SAP field. When I try to access the catalog through SRM, I get 'Logon Failed' error. Not sure if I am missing anything becau
-
1300 Series w/ Internal Antenna
We have installed several external antenna 1300's but this is the first with an internal antenna. Which direction is the wireless radiating? The mount that we have places the front (grey side) against a wall with the rear facing outward. Thanks.