Teradata Write permission error

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
xinhuang66
Participant
Posts: 161
Joined: Wed Aug 02, 2006 4:30 am

Teradata Write permission error

Post by xinhuang66 »

I try to load a seqential file to Teradata, creating a table as well.

The issue is if developerA first run the job and create the table, then developerB re-run the job again, developerB will encounter couldn't write tableName.dat file issue.

developerA and developerB are in the same Unix group.

Anyone can help ? Thanks.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

It's not about UNIX permissions, it's about table privileges within Teradata. The first developer, creating the table, becomes its owner and has all privileges. The second developer has none, because neither the first developer nor the DBA granted any. Usually, when you create a table via an ETL tool, you should GRANT appropriate table privileges in the "after" (or "Close") command.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
xinhuang66
Participant
Posts: 161
Joined: Wed Aug 02, 2006 4:30 am

Post by xinhuang66 »

Both two datastage developers use the same standard Teradata login.

Actually, if I specify a detailed location and data file for teradata, and change the file permission, it works. But I think assign a detailed data file is not a good option.
nishadkapadia
Charter Member
Charter Member
Posts: 47
Joined: Fri Mar 18, 2005 5:59 am

Post by nishadkapadia »

I believe you are not using named pipes as a option on the utilities.
it is preferable that you also check 'Delete data file after load' option
on the utilities.

That way both the developers would be able to run their jobs one after another.
xinhuang66
Participant
Posts: 161
Joined: Wed Aug 02, 2006 4:30 am

Post by xinhuang66 »

Thanks for your input, I will test it and let you know the output.

What does "delete data file" option really do ? Assume it was set up as YES.

It will delete the source input file or whatever files regarding the job ?

Thanks
Post Reply