Problem reading the Oracle Table
Posted: Fri Mar 09, 2007 1:58 pm
Hi All,
Well i have this job where i'm suppose to read an oracle table based on the user defined query and create a lookup file .
well in the Oracle Enterprise stage
in the properties tab i have defined as follows
under Source
Query = SELECT
SALES_CYCLE.CYCLE_CODE, TO_CHAR(SALES_CYCLE.BEGIN_DATE,'YYYY-MM-DD HH24:MI:SS'), TO_CHAR(SALES_CYCLE.END_DATE,'YYYY-MM-DD HH24:MI:SS')
FROM
ETL.SALES_CYCLE SALES_CYCLE
WHERE
SALES_CYCLE.BEGIN_DATE <= sysdate AND SALES_CYCLE.END_DATE >= sysdate
Read Method = User-defined SQL
Under Connection
(i have parameterised the oracle user name password and server name)
DB Option Mode = Auto Generate
Password= #$OraclePassword#
User = #$OracleLoginID#
Remote Server = #$OracleServer
and later i have used a transformer to used a transfomer to create a dummy column and later from transformer to a lookup fileset.
well when i run the job the job's aborting and the fatal error its displaying is as follows
Oracle_Enterprise_7: SELECT is missing in the query: SELECT
SALES_CYCLE.CYCLE_CODE, TO_CHAR(SALES_CYCLE.BEGIN_DATE,'YYYY-MM-DD HH24:MI:SS'), TO_CHAR(SALES_CYCLE.END_DATE,'YYYY-MM-DD HH24:MI:SS')
FROM
ETL.SALES_CYCLE SALES_CYCLE
WHERE
SALES_CYCLE.BEGIN_DATE <= SYSDATE AND SALES_CYCLE.END_DATE >= SYSDATE
well i have given select in my query then why is crying saying SELECT is missing .
Can anybody please help me how to resolve this issue
Thanks in advance
Well i have this job where i'm suppose to read an oracle table based on the user defined query and create a lookup file .
well in the Oracle Enterprise stage
in the properties tab i have defined as follows
under Source
Query = SELECT
SALES_CYCLE.CYCLE_CODE, TO_CHAR(SALES_CYCLE.BEGIN_DATE,'YYYY-MM-DD HH24:MI:SS'), TO_CHAR(SALES_CYCLE.END_DATE,'YYYY-MM-DD HH24:MI:SS')
FROM
ETL.SALES_CYCLE SALES_CYCLE
WHERE
SALES_CYCLE.BEGIN_DATE <= sysdate AND SALES_CYCLE.END_DATE >= sysdate
Read Method = User-defined SQL
Under Connection
(i have parameterised the oracle user name password and server name)
DB Option Mode = Auto Generate
Password= #$OraclePassword#
User = #$OracleLoginID#
Remote Server = #$OracleServer
and later i have used a transformer to used a transfomer to create a dummy column and later from transformer to a lookup fileset.
well when i run the job the job's aborting and the fatal error its displaying is as follows
Oracle_Enterprise_7: SELECT is missing in the query: SELECT
SALES_CYCLE.CYCLE_CODE, TO_CHAR(SALES_CYCLE.BEGIN_DATE,'YYYY-MM-DD HH24:MI:SS'), TO_CHAR(SALES_CYCLE.END_DATE,'YYYY-MM-DD HH24:MI:SS')
FROM
ETL.SALES_CYCLE SALES_CYCLE
WHERE
SALES_CYCLE.BEGIN_DATE <= SYSDATE AND SALES_CYCLE.END_DATE >= SYSDATE
well i have given select in my query then why is crying saying SELECT is missing .
Can anybody please help me how to resolve this issue
Thanks in advance