SPT oracle or ODBC?

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

Post Reply
vpauls
Premium Member
Premium Member
Posts: 37
Joined: Mon May 09, 2005 2:26 am
Location: Oslo

SPT oracle or ODBC?

Post by vpauls »

Hello,

I'm wondering about the Stored procedure stage in the database palette of DataStage. We are using Oracle as database for our datawarehouse solution and are wondering if we can make use of this stage?

In other words, are the stage using an ODBC connection to connect to the database or is it using Oracles own drivers?

For us to be able to use it it has to use oracle, not ODBC.

Anyone who can spread any light on this issue? Can't find it in the documentation.

Thanks beforehand

/Elin
vpauls
Premium Member
Premium Member
Posts: 37
Joined: Mon May 09, 2005 2:26 am
Location: Oslo

Post by vpauls »

Another question regarding the same topic, to import the stored procedure definitions, it seems like i must use ODBC, why can-t I do it the same way as with the tables, using the ORACCLI or whatever it is called?

Or am I missing something here?

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

Post by chulett »

The Stored Procedure stage when set to 'Oracle' will use the Oracle client on your DataStage server, not ODBC. This also implies you must have configured DataStage for Oracle and be able to use the 'OCI' stages.

Have you? Can you?
-craig

"You can never have too many knives" -- Logan Nine Fingers
vpauls
Premium Member
Premium Member
Posts: 37
Joined: Mon May 09, 2005 2:26 am
Location: Oslo

Post by vpauls »

Yes I have and I can when importing table metadata, but when trying to import stored procedure definitions it wants to have a dns and it isn't provided from the server.

/Elin

Thanks for your answer!!
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

:? "It isn't provided from the server"? In what sense?

If you want to import the metadata, then you will need to setup an ODBC connection to your Oracle database, as that is what it uses. However, there's no requirement that you do this step, it just... helps... as it gives you something to load into the stage. If you know what your SP needs, just setup that information in the stage.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

vpauls wrote:Yes I have and I can when importing table metadata, but when trying to import stored procedure definitions it wants to have a dns and it isn't provided from the server.

/Elin

Thanks for your answer!!
Do you mean DNS (domain name server) or DSN (data source name)?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vpauls
Premium Member
Premium Member
Posts: 37
Joined: Mon May 09, 2005 2:26 am
Location: Oslo

Post by vpauls »

I mean DSN, sorry.

When I try to import the datadefinitions I get an import window that among other things asks for a DSN in a pull down box. When I try to open the box to choose DSN I get the error message: "Empty DSN: list returned from host XXX.XXX.XXX.XXX".

I assume that this is because I haven't set up ODBC on the server?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Almost certainly.

The DataStage server is the client for the database. It is the DataStage server that must establish the ODBC connection, and therefore you must set up your DSNs on the server.

This involves two files on UNIX machines: .odbc.ini in the DataStage engine directory (usually DSEngine), and uvodbc.config in the project. The first is where you actually configure the DSNs, the second is where you specify the list of DSNs to which you want to connect from that particular project.

(On Windows servers, ODBC.INI is a Registry entry, but uvodbc.config still exists in each project.)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Skip that step.
-craig

"You can never have too many knives" -- Logan Nine Fingers
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I just mean that the import of SP metadata isn't absolutely required for use by the STP stage.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply