Reading a CLOB data type using oracle enterprise stage
Posted: Fri Dec 11, 2009 11:09 am
Hi ,
I'm trying to read a CLOB data type in datastage 7.5.2 using oracle Enterprise stage and my oracle is 10g
in oracle
DESC Test_CLOB
Name Null? Type
----------------------------------------- -------- --------
TEST CLOB
select dbms_lob.substr( TEST, 4000, 1 ) as TEST from Test_CLOB;
I got output as 123 in oracle
I used same SQL in datastage and mentioned column as Varchar2 with out length the job is running fine but I could not able to see any data as I mentioned above like 123 in a dataset .
I tried with utl_raw.cast_to_varchar2 in oracle but it is giving me some pound and space stuff .
select utl_raw.cast_to_varchar2 ( dbms_lob.substr( TEST, 4000, 1 )) as TEST from Test_CLOB;
TEST
---------
#
My aim is to read CLOB column data and write to a dataset. Any help is appricated.
Thanks,
Raju.
I'm trying to read a CLOB data type in datastage 7.5.2 using oracle Enterprise stage and my oracle is 10g
in oracle
DESC Test_CLOB
Name Null? Type
----------------------------------------- -------- --------
TEST CLOB
select dbms_lob.substr( TEST, 4000, 1 ) as TEST from Test_CLOB;
I got output as 123 in oracle
I used same SQL in datastage and mentioned column as Varchar2 with out length the job is running fine but I could not able to see any data as I mentioned above like 123 in a dataset .
I tried with utl_raw.cast_to_varchar2 in oracle but it is giving me some pound and space stuff .
select utl_raw.cast_to_varchar2 ( dbms_lob.substr( TEST, 4000, 1 )) as TEST from Test_CLOB;
TEST
---------
#
My aim is to read CLOB column data and write to a dataset. Any help is appricated.
Thanks,
Raju.