Page 1 of 1

Calling oracle stored procedure with os level authentication

Posted: Mon Jun 15, 2009 6:20 am
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

Posted: Mon Jun 15, 2009 6:33 am
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.

Posted: Mon Jun 15, 2009 7:01 am
by asaf_arbely
The stored procedure can be accessed via sqlplus from the server, what kind of configuration should we implement on DataStage?

Posted: Mon Jun 15, 2009 7:06 am
by ArndW
I don't have access right now to DataStage to test out what you ask, perhaps someone else might know the answer.

Re: Calling oracle stored procedure with os level authentica

Posted: Mon Jun 15, 2009 7:25 am
by chulett
asaf_arbely wrote:On the oracle stage there's a check box "use os level authentication" that works
??

Posted: Mon Jun 15, 2009 7:50 am
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

Posted: Mon Jun 15, 2009 8:08 am
by chulett
Right... so why not use the Oracle stage to "call" the stored procedure?

Posted: Tue Jun 16, 2009 7:44 am
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.