Calling oracle stored procedure with os level authentication

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
asaf_arbely
Premium Member
Premium Member
Posts: 87
Joined: Sat Jul 14, 2007 2:24 pm

Calling oracle stored procedure with os level authentication

Post by asaf_arbely »

Hi
Do you know of a way to call oracle stored procedure without supplying user name and pwd ?
On the oracle stage there's a check box "use os level authentication" that works
Thank's
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

If you google "sqlplus with no password" you should get some hits on how this might be done. Most likely the quickest is to use a very restricted user and password that can be made public, i.e. User "restricted", password "restricted" that can only do those queries that you specify.
Otherwise you could use scripts available on the internet to grant access without making the password visible.
asaf_arbely
Premium Member
Premium Member
Posts: 87
Joined: Sat Jul 14, 2007 2:24 pm

Post by asaf_arbely »

The stored procedure can be accessed via sqlplus from the server, what kind of configuration should we implement on DataStage?
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

I don't have access right now to DataStage to test out what you ask, perhaps someone else might know the answer.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Re: Calling oracle stored procedure with os level authentica

Post by chulett »

asaf_arbely wrote:On the oracle stage there's a check box "use os level authentication" that works
??
-craig

"You can never have too many knives" -- Logan Nine Fingers
asaf_arbely
Premium Member
Premium Member
Posts: 87
Joined: Sat Jul 14, 2007 2:24 pm

Post by asaf_arbely »

When accessing oracle DB via oracle stage the check box "use os level authentication" enables to connect the DB without supplying user name and pwd.
On the stored procedure stage that kind of configuration is missing
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Right... so why not use the Oracle stage to "call" the stored procedure?
-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 »

There's nothing documented except here, I believe. You can put "call sp_name" either before or after sql, typically before if the sproc is a target. Then you'll need something that does 'nothing' in the actual sql tab - delete or modify something you know will never succeed, this as a 'no-op' since the goal is to simply execute the before-sql.
-craig

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