Where to change Database datafile name and path in datastage

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
shalini11
Participant
Posts: 74
Joined: Thu Jan 22, 2009 3:00 am

Where to change Database datafile name and path in datastage

Post by shalini11 »

Hi All,

The DBA has moved the oracle schema attached to my project to a different file system due to some memory issues. The schema name is the same as the old one but the data file name and path is changed. Now when I am trying to load database table from datastage job, I am getting fatal error as below:

SQL*Loader-951: Error calling once/load initialization
ORA-01116: error in opening database file 7
ORA-01110: data file 7: '/data1/app/oracle/oradata/smartdc/SMART.dbf'
ORA-27041: unable to open file


The datafile it is pointing to is SMART.dbf, but now the data filename is changed to SMART_NEW.dbf.

I am using Oracle Enterprise stage to connect to database.I want to know where in Datastage can I change the datafile path it is pointing to.


Thnx in adv
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

It depends where you've set the pertinent environment variables; it may be in the dsenv script, or you may have specific-to-project environment variables set in the Administrator client (and stored in the DSParams file in the project directory).

Then again, your jobs may set these as job parameters or even as hard-coded values in the Oracle stages involved.

Finally, get your DBA to confirm that all the settings in tnsnames.ora file on the DataStage server machine are set correctly.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
shalini11
Participant
Posts: 74
Joined: Thu Jan 22, 2009 3:00 am

Post by shalini11 »

Thanks for the reply

Datastage and Oracle database are in different server.In the dsenv file, the oracle home path is mentioned which is the oracle client path in the datastage server.In administrator, I am just giving the database name,schema name and password for connection. Nowhere I could find the datafile path.

I am not able to find where is this datafile path specified so that I can change it to the new path.
anugrah86
Participant
Posts: 5
Joined: Fri Feb 08, 2008 7:35 am
Location: India

Post by anugrah86 »

Shalini,

Pls contact with the DBAs coz (AFAIK) oracle doesn't allows you to access datafiles directly. You fetch them using tablespaces.

So, DBAs can set the datafile path in tablespace details.

check if below query gives you path for tablespace you are using.

select * from DBA_DATA_FILES
~Anugrah
"Good Better Best. Don't take rest until Good becomes Better and Better becomes Best!!"
shalini11
Participant
Posts: 74
Joined: Thu Jan 22, 2009 3:00 am

Post by shalini11 »

I tried the query which u suggested.Actually datafile path is set but the job is not pointing to that path.

The entire filesystem is changed but datastage is pointing to the old filesystem path. Even DBA is confused what to do
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Then your DBA, may we suggest, needs to get some Oracle support.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply