Error while loading to oracle

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
jusami25
Premium Member
Premium Member
Posts: 84
Joined: Tue Oct 26, 2004 12:49 am

Error while loading to oracle

Post by jusami25 »

We are using Oracle Enterprise Stage and have this error:

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

However, when we Load with ODBC Enterprise with same user, the load is correct. So we are wondering why we are getting this error message.

Could you please let me know any possible reasons for this?

Thanks in advance
OddJob
Participant
Posts: 163
Joined: Tue Feb 28, 2006 5:00 am
Location: Sheffield, UK

Post by OddJob »

Try using the search facility on this forum using 'sys.dba_data_files' as your search term :roll:
sureshabbisetti
Participant
Posts: 21
Joined: Thu Oct 04, 2007 4:34 am
Location: India
Contact:

Post by sureshabbisetti »

Hi,

Your DBA has to give the permissions to Datastage server.
CREATE ROLE DSXE;
GRANT SELECT on sys.dba_extents to DSXE;
GRANT SELECT on sys.dba_data_files to DSXE;
GRANT SELECT on sys.dba_tab_partitions to DSXE;
GRANT SELECT on sys.dba_tab_subpartitions to DSXE;
GRANT SELECT on sys.dba_objects to DSXE;
GRANT SELECT on sys.all_part_indexes to DSXE;
GRANT SELECT on sys.all_part_tables to DSXE;
GRANT SELECT on sys.all_indexes to DSXE;

Regards
Suresh
OddJob
Participant
Posts: 163
Joined: Tue Feb 28, 2006 5:00 am
Location: Sheffield, UK

Post by OddJob »

That won't help unless you then grant the role to each of the users as required:

GRANT DSXE to <oracle user id>;
keshav0307
Premium Member
Premium Member
Posts: 783
Joined: Mon Jan 16, 2006 10:17 pm
Location: Sydney, Australia

Post by keshav0307 »

read the pre requirement of using Oracle Enterprize stage.
the oracle user need access to sub sys tables abd views.
Post Reply