error in view data

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Renita
Participant
Posts: 28
Joined: Sun Feb 26, 2006 10:06 pm

error in view data

Post by Renita »

Hi,

I am on datastage Server edition 7.5.1 on AIX server.
I am connecting to an oracle database via a DRS stage.
The map runs fine, however when i try to view data. I get the following line or error message

Error calling subroutine: DSD.Browse (Action=3); check DataStage is set up correctly in project PORU02

Data Source is Empty

Error calling subroutine: DSD.Browse (Action=2); check DataStage is set up correctly in project PORU02
(The connection is broken (81002))

Finally I have to close the client to connect to the same job again.

The maps run fine and I am able to import table definitions etc.
I only have a problem with view data!

Awaiting a reply.

Thanks in advance!

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

Post by chulett »

What happens if you use an OCI stage instead?

ps. It's not called a 'map' in this world. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Renita
Participant
Posts: 28
Joined: Sun Feb 26, 2006 10:06 pm

Post by Renita »

Hi chulett,

I agree !! But who would convince the developers!! ;)

I would have to go and change jobs from development to Production for that. Any idea with DRS instead?

Thanks,
Renita
Hemant_Kulkarni
Premium Member
Premium Member
Posts: 50
Joined: Tue Jan 02, 2007 1:40 am

Post by Hemant_Kulkarni »

Try to put in a "where" condition to limit the number of rows and see if the error still appears.
Hemant_Kulkarni
Premium Member
Premium Member
Posts: 50
Joined: Tue Jan 02, 2007 1:40 am

Post by Hemant_Kulkarni »

Try to put in a "where" condition to limit the number of rows and see if the error still appears.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I was thinking of the OCI stage as an experiment. How is the DRS set - to Oracle or ODBC? Is this a source or target stage? Do you have problems with any other job accessing Oracle or is it literally just this one?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Renita
Participant
Posts: 28
Joined: Sun Feb 26, 2006 10:06 pm

Post by Renita »

Hi Chulett,

I have this issue with all jobs using the Oracle database. The database is set to Oracle.

This problem persists on other projects also on the same datastage server.

Also the problem exists for database stages that are source or target stages.

Thanks,
Renita
Renita
Participant
Posts: 28
Joined: Sun Feb 26, 2006 10:06 pm

Post by Renita »

Hi Hemant,

The issue exists even after using the while condition. Actually the stage cannot even fetch 3 rows or data and errors out before that.

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

Post by chulett »

Ok, it doesn't sound like you have configured DataStage for Oracle yet. There are specific changes you need to make to your dsenv file that are documented in the configuration guides. Have you done so? Do you have an Oracle client installed on the DataStage server?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Renita
Participant
Posts: 28
Joined: Sun Feb 26, 2006 10:06 pm

Post by Renita »

Hi Chulett,

I have finished the configuration related to Oracle. The dsenv has been setup correctly all all environment variables are set.

The maps run successfully, hence the server can connect to the database. The outputs also are correct.

However the problem is only with the view data via the database stage.

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

Post by chulett »

Ok. Is your connection information parameterized? Do those parameters reference environment variables? Does the view data work if those values are hard-coded in the stage?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Renita
Participant
Posts: 28
Joined: Sun Feb 26, 2006 10:06 pm

Post by Renita »

Hi Chulett,

When I need to view data i explicitely provide the database name,user id and password. It does not refer to any variable for the id or password.

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

Post by chulett »

Meaning your instance name, userid and password are hard-coded in the stage?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Renita
Participant
Posts: 28
Joined: Sun Feb 26, 2006 10:06 pm

Post by Renita »

Hi Chulett,

I hardcode the user id and password just to view the data cause I cannot use $PROJDEF when i view the data.


Thanks,
Renita
Renita
Participant
Posts: 28
Joined: Sun Feb 26, 2006 10:06 pm

Post by Renita »

Hi,

I got the solution for this issue. Its a bug in DS version 7x with DRS stage and Oracle database which has been fixed in version 8. If I use database type to ODBC and view data I can view data.

Thanks for all your help.


Renita
Post Reply