Fetch XML CLOB data through Oracle Connector faster
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 4
- Joined: Tue Feb 16, 2016 4:58 am
Fetch XML CLOB data through Oracle Connector faster
Hi ,
I am trying to read 4 columns from Oracle database using a SELECT query in Oracle connector. One of the columns has CLOB data type in the Oracle database. The query has a WHERE clause to fetch data for a single day.
If I run the query in SQL Developer it finishes in 90 sec for 70,000 records. While in Connector stage it takes 1 hour to read 70,000 records.
Could someone please tell me how I can fetch this data faster? If I remove the XML column the job finishes in 1 minute. If I add the XML column in the select query then the job runs for 1 hour .
Please someone help me asap. Thanks in advance.
I am trying to read 4 columns from Oracle database using a SELECT query in Oracle connector. One of the columns has CLOB data type in the Oracle database. The query has a WHERE clause to fetch data for a single day.
If I run the query in SQL Developer it finishes in 90 sec for 70,000 records. While in Connector stage it takes 1 hour to read 70,000 records.
Could someone please tell me how I can fetch this data faster? If I remove the XML column the job finishes in 1 minute. If I add the XML column in the select query then the job runs for 1 hour .
Please someone help me asap. Thanks in advance.
appy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 4
- Joined: Tue Feb 16, 2016 4:58 am
Thanks for your reply. But my select query already had this CLOB column in last position. And I have kept the datatype as LongVarChar.
Do you have any other suggestions as to what values to set for array size, record count, buffer size etc?
Or please let me know if I could use some other stage to perform this functionality. Please help me with any suggestions you have.
Thanks a lot.
Do you have any other suggestions as to what values to set for array size, record count, buffer size etc?
Or please let me know if I could use some other stage to perform this functionality. Please help me with any suggestions you have.
Thanks a lot.
appy
Just curious...but what are you doing to make your comparisons? Are you processing all of the xml clob columns in both tools? What is your Job doing downstream from the Oracle Connector? What is the other tool doing with the XML that it retrieves?
Let's see exactly "where" the performance issue is.
Ernie
Let's see exactly "where" the performance issue is.
Ernie
Ernie Ostic
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Array size = 1.
Record count = 1.
Buffer size - which buffers are you asking about, virtual data set buffers or transport buffers or some other? Any buffer needs to be large enough to hold at least one record.
Record count = 1.
Buffer size - which buffers are you asking about, virtual data set buffers or transport buffers or some other? Any buffer needs to be large enough to hold at least one record.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 4
- Joined: Tue Feb 16, 2016 4:58 am
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 4
- Joined: Tue Feb 16, 2016 4:58 am
-
- Participant
- Posts: 9
- Joined: Fri Feb 18, 2011 1:12 am
- Location: Hyderabad