Oracle table truncate

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
kennyapril
Participant
Posts: 248
Joined: Fri Jul 30, 2010 9:04 am

Oracle table truncate

Post by kennyapril »

I need to truncate and load the table same time in the same job everyday.

So in the target I used Oracle enterprise stage with write method as load and
write mode as truncate.

Please let me know whether this works for my requirement,

I tried to do this use the userid of the table owner but I get an error

Access to sys.dba_data_files is required but is not available;
please see your database administrator for select privileges.



Thanks
Regards,
Kenny
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Re: Oracle table truncate

Post by chulett »

Access to sys.dba_data_files is required but is not available;
please see your database administrator for select privileges.
That seems pretty clear to me.
-craig

"You can never have too many knives" -- Logan Nine Fingers
pandeesh
Premium Member
Premium Member
Posts: 1399
Joined: Sun Oct 24, 2010 5:15 am
Location: CHENNAI, TAMIL NADU

Post by pandeesh »

I think the below link will help you:
http://publib.boulder.ibm.com/infocente ... ysadm.html
pandeeswaran
marpadga18
Premium Member
Premium Member
Posts: 96
Joined: Fri Aug 20, 2010 8:51 am

Re: Oracle table truncate

Post by marpadga18 »

You can truncate table before loading in Oracle enterprise stage use "OPEN COMMAND"

begin
execute immediate 'truncate tablename;
Last edited by marpadga18 on Wed Aug 03, 2011 12:27 pm, edited 1 time in total.
kennyapril
Participant
Posts: 248
Joined: Fri Jul 30, 2010 9:04 am

Post by kennyapril »

Forwarded this to DBA for the select permission to the below data files as mentioned in the document.

The problem was with the SQL bulk loader which needs specific permissions as I used LOAD in oracle enterprise.
Regards,
Kenny
Post Reply