ODBC and OCI Stages

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
suma
Participant
Posts: 32
Joined: Fri Jun 11, 2004 8:18 am

ODBC and OCI Stages

Post by suma »

I need a clarification about ODBC stages and ORACLE OCI stages.
In ODBC stage we use the DSN name that we have created via
ODBC connectivity.But in ORACLE OCI only if we give the
service name it works fine.But still in the general tab of the OCI stage
DAtabase source name only is given not the service name!
Then why do we use service name?

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

Post by chulett »

Both stages work in a similar fashion, but are configured using different mechanisms. Both use a DSN - a Data Source Name - which is simply a marker or label for a set of configuration information. The DSN can bear absolutely no resemblance to what it actually connects to, but are generally made the same to avoid confusion.

As you've stated, ODBC has its own configuration file where you setup the DSN. Oracle has something similar called "tnsnames.ora" which is typically found in $ORACLE_HOME/network/admin. What you specify as the DSN for Oracle is the name of the entry in the tnsnames file you want to use to connect. Inside the entry is the actual Service Name or SID for the instance you are trying to connect to.
-craig

"You can never have too many knives" -- Logan Nine Fingers
suma
Participant
Posts: 32
Joined: Fri Jun 11, 2004 8:18 am

Post by suma »

Can i take it in this way.
Even though i am creating a DSN name for ODBC Stage ,Internally it is only the service name or SID in tnsnames.ora that Functions.
SO internally both the servicename and the DSN name functions in the same way. Can i frame a Rule that service id only should be used for ORACLE OCI stages and DSN name should be used for OCI stages.

Correct me if i am wrong!!
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I'm a little lost in what you are saying, but keep in mind the fact that the ODBC and OCI stages are configured separately and that one has no idea what you've setup for the other.
-craig

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