Extract data from Oracle 9i and 10g

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
shyju
Participant
Posts: 58
Joined: Thu May 19, 2005 1:00 am

Extract data from Oracle 9i and 10g

Post by shyju »

Hi All,

I have a table A containing some amount of data in both Oracle 9i and Oracle 10g database. I have to extract data from both the database 9i and 10g using DataStage. I would like to know whether we need to install plug in for both oracle 9i and Oracle 10g. Also I would like to know whether there is a plugin for Oracle 10g.

Can I extract data using ODBC stage from Oracle 10g database?

Cheers,
Shyju.
loveojha2
Participant
Posts: 362
Joined: Thu May 26, 2005 12:59 am

Post by loveojha2 »

Not very sure about the plugin,
I have tried using the ODBC, it works fins for me with 10g.
I guess,Oracle Oci Stage should work well with the 10g also. :?
Success consists of getting up just one more time than you fall.
balajisr
Charter Member
Charter Member
Posts: 785
Joined: Thu Jul 28, 2005 8:58 am

Post by balajisr »

Oracle OCI can be used to connect to oracle 10g.
gbusson
Participant
Posts: 98
Joined: Fri Oct 07, 2005 2:50 am
Location: France
Contact:

Post by gbusson »

right.

a 9i client can connect to a 10g database
shyju
Participant
Posts: 58
Joined: Thu May 19, 2005 1:00 am

Post by shyju »

I would like to know whether we can use Oracle 9i stage as well as Oracle 10g stage (if present) in the same job?
loveojha2
Participant
Posts: 362
Joined: Thu May 26, 2005 12:59 am

Post by loveojha2 »

shyju wrote:I would like to know whether we can use Oracle 9i stage as well as Oracle 10g stage (if present) in the same job?
I don't think that Ascential Server Edition (till 7.5.1.a) have any thing called as Oracle 10g Stage.
If you are talking about accessing Oracle 9i and 10g in the same server job then I don't think there would be an problem in that. Since both connections would be made using different Stages Altogether.
Success consists of getting up just one more time than you fall.
shyju
Participant
Posts: 58
Joined: Thu May 19, 2005 1:00 am

Post by shyju »

How can we use Oracle 9i and Oracle 8i stages(Since we dont have Oracle 10g stage so I took 8i as an example) in a single job? Since we define the path for the ORACLE_HOME in Administrator, we can define either for 9i or 8i but not both rite?

Please let me know if I am missing some thing here.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You can't use 'both stages' in one job if you have both - they are mutually exclusive as noted in the documentation. Well, actually you can but the job won't run and you'll get all kinds of goofy 'put' errors. :wink:

When you are dealing with multiple Oracle versions, you need to play the 'least common denominator' game. Use the client and the stage for the lower version and always use that one to connect to either database.

So, 8i and 9i? Point to the 8i Client in your dsenv file and always use the 8i stage in your jobs. 9i and 10g? Point to the 9i Client in your dsenv file and always use the 9i stage in your jobs. We are currently doing the latter because of our mixed environment.

ps. As noted, it's not until the 7.5.x versions that you have an OCI stage 'certified' against 10g. That doesn't mean you can't access 10g using earlier versions of the stage.
-craig

"You can never have too many knives" -- Logan Nine Fingers
shyju
Participant
Posts: 58
Joined: Thu May 19, 2005 1:00 am

Post by shyju »

Thanks Craig for the detailed explaination. I have one small clarification. Since the two stages 8i and 9i cannot be used in a single job, Is there a possibility that we can split the job into where the first job holds oracle8i and the second as 9i and then run the two jobs? Do we still have errors popping up?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Sure you can, but you are still restricted to the fact that you can only point to one Oracle Client in your Server. So there's really no reason to use the other stage. You can and it will typically work but it will also generate odd errors on occassion, depending on exactly what you are doing. Been there, done that. :wink:

Now, in later versions you can 'work around' this single client restriction by overriding those specific environment variables - like ORACLE_HOME - in any given job. But that's a topic for another conversation.
-craig

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