You are not logged in.
Announcement
Unanswered posts
|
Pages: 1

Hi,
I have a query in a tOracleInput that returns all the tables in the database like 'XXX_' and I have to delete this tables from the database. Can anyone tell me how to achieve this?
Thanks,
Khor
Offline

Hi Khor
You might use tOracleTableList to retrieve tablename, tOracleRow to delete them.
The job should be as follow.
tOracleTable--iterate-->tOracleRow
Regards,
Pedro
Offline

Pedro,
I have two problems:
I get a nullPointerException in the tOracleTableList component.
And how can I get the table name from tOracleTableList in the tOraclerow component?
Regards,
Khor
Offline

Hi Khor
The NPE exception means you didn't put a tOracleConnection component in your job.
You might use this expression to get table name.
((String)globalMap.get("tOracleTableList_1_CURRENT_TABLE"))
Regards,
Pedro
Offline
Pages: 1