dbTalk Databases Forums  

OCILogon using Secure External Password Store parameters

comp.databases.oracle.tools comp.databases.oracle.tools


Discuss OCILogon using Secure External Password Store parameters in the comp.databases.oracle.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Warren Van Wyck
 
Posts: n/a

Default OCILogon using Secure External Password Store parameters - 02-21-2009 , 09:56 AM






I'm using Oracle 10g Release 2 on IBM AIX.

sqlplus /@PPRD works fine with Secure External Password Store where PPRD
is a TNS Alias

It's not working for my OCI program.

Code for OCI

rc = OCILogon(p_env, p_err, &p_svc, "/@PPRD", 6, "", 0, "", 0);

yields

Logon Error - ORA-01005: null password given; logon denied

Various other combinations also fail.

Reply With Quote
  #2  
Old   
Michael Austin
 
Posts: n/a

Default Re: OCILogon using Secure External Password Store parameters - 02-21-2009 , 06:06 PM






Warren Van Wyck wrote:
Quote:
I'm using Oracle 10g Release 2 on IBM AIX.

sqlplus /@PPRD works fine with Secure External Password Store where PPRD
is a TNS Alias

It's not working for my OCI program.

Code for OCI

rc = OCILogon(p_env, p_err, &p_svc, "/@PPRD", 6, "", 0, "", 0);

yields

Logon Error - ORA-01005: null password given; logon denied

Various other combinations also fail.

various docs and examples abound ...

http://www.oracle-base.com/articles/...tore_10gR2.php

and
http://www.google.com/search?hl=en&q...earch&aq=f&oq=


Reply With Quote
  #3  
Old   
Warren Van Wyck
 
Posts: n/a

Default Re: OCILogon using Secure External Password Store parameters - 02-21-2009 , 07:11 PM



Hi,

I had already read the first link in depth -- it does not show how to
code a OCI logon. I had also googled it, checked Oracle forums and have
not seen the proper parameter list. Pro*C SQL CONNECT works OK, but I'm
working for specific advice for OCI. SEPS is set up properly since
SQLPLUS and PRO*C work with it.

-- Warren


Michael Austin wrote:
Quote:
Warren Van Wyck wrote:
I'm using Oracle 10g Release 2 on IBM AIX.

sqlplus /@PPRD works fine with Secure External Password Store where
PPRD is a TNS Alias

It's not working for my OCI program.

Code for OCI

rc = OCILogon(p_env, p_err, &p_svc, "/@PPRD", 6, "", 0, "", 0);

yields

Logon Error - ORA-01005: null password given; logon denied

Various other combinations also fail.


various docs and examples abound ...

http://www.oracle-base.com/articles/...tore_10gR2.php


and
http://www.google.com/search?hl=en&q...earch&aq=f&oq=


Reply With Quote
  #4  
Old   
Michael Austin
 
Posts: n/a

Default Re: OCILogon using Secure External Password Store parameters - 02-21-2009 , 07:37 PM



Warren Van Wyck wrote:
Quote:
Hi,

I had already read the first link in depth -- it does not show how to
code a OCI logon. I had also googled it, checked Oracle forums and have
not seen the proper parameter list. Pro*C SQL CONNECT works OK, but I'm
working for specific advice for OCI. SEPS is set up properly since
SQLPLUS and PRO*C work with it.

-- Warren


Michael Austin wrote:
Warren Van Wyck wrote:
I'm using Oracle 10g Release 2 on IBM AIX.

sqlplus /@PPRD works fine with Secure External Password Store where
PPRD is a TNS Alias

It's not working for my OCI program.

Code for OCI

rc = OCILogon(p_env, p_err, &p_svc, "/@PPRD", 6, "", 0, "", 0);

yields

Logon Error - ORA-01005: null password given; logon denied

Various other combinations also fail.


various docs and examples abound ...

http://www.oracle-base.com/articles/...tore_10gR2.php


and
http://www.google.com/search?hl=en&q...earch&aq=f&oq=

Question.. is the OCI connection being called from the same "server" or
is it a remote app server?

http://download.oracle.com/docs/cd/B...0/oci08sca.htm

and

http://download.oracle.com/docs/cd/B...b14266/toc.htm
*specifically chapter 9: and subsection "Configuring Clients to use the
External Password Store".


Reply With Quote
  #5  
Old   
wvwwork
 
Posts: n/a

Default Re: OCILogon using Secure External Password Store parameters - 02-23-2009 , 03:33 PM



On Feb 21, 8:37*pm, Michael Austin <maus... (AT) firstdbasource (DOT) com> wrote:
Quote:
Warren Van Wyck wrote:
Hi,

I had already read the first link in depth -- it does not show how to
code a OCI logon. *I had also googled it, checked Oracle forums and have
not seen the proper parameter list. *Pro*C SQL CONNECT works OK, but I'm
working for specific advice for OCI. *SEPS is set up properly since
SQLPLUS and PRO*C work with it.

-- *Warren

Michael Austin wrote:
Warren Van Wyck wrote:
I'm using Oracle 10g Release 2 on IBM AIX.

sqlplus /@PPRD works fine with Secure External Password Store where
PPRD is a TNS Alias

It's not working for my OCI program.

Code for OCI

rc = OCILogon(p_env, p_err, &p_svc, "/@PPRD", 6, "", 0, "", 0);

yields

Logon Error - ORA-01005: null password given; logon denied

Various other combinations also fail.

various docs and examples abound ...

http://www.oracle-base.com/articles/...asswordStore_1....

and
http://www.google.com/search?hl=en&q...l+password+sto...

Question.. is the OCI connection being called from the same "server" or
is it a remote app server?

http://download.oracle.com/docs/cd/B.../b14250/oci08s...

and

http://download.oracle.com/docs/cd/B...b14266/toc.htm
*specifically chapter 9: and subsection "Configuring Clients to use the
External Password Store".
Hi. I'm responding from another account.

I've read a number of sections and none detail a OCILogon or OCILogon2
for Secure External Password Store. The closest I read is:

-- start quote --

How Does the External Password Store Work?

Typically, users (including applications, batch jobs, and scripts)
connect to databases by using a standard CONNECT statement that
specifies a database_connect_string. This string can include a user
name and password, and an Oracle Net service name identifying the
database on an Oracle network. For example, the service name could be
the URL that uniquely identifies that database, or a TNS alias you
entered in the tnsnames.ora file in the database. Another possibility
is a hostort:sid string.

The following examples are standard CONNECT statements that could be
used for a client that is not configured to use the external password
store:

*

connect salesapp/2Ip6Cg8 (AT) sales_db (DOT) us.acme.com
or
connect salesapp/2Ip6Cg8@ORASALES
or
connect salesapp/2Ip6Cg8@ourhost37:1527B17

In these examples, salesapp is the user name and 2Ip6Cg8 is the
password, with the unique connect string for the database shown as
specified in three different ways. You could use its URL
sales_db.us.acme.com, or its TNS alias ORASALES from the tnsnames.ora
file, or its hostort:sid string.

However, when clients are configured to use the secure external
password store, applications can connect to a database with the
following CONNECT statement syntax, without specifying database login
credentials:

connect /@db_connect_string

where db_connect_string is a valid connect string to access the
intended database, such as the service name, URL, or alias as
illustrated in the earlier examples.

In this case, the database credentials, username and password, are
securely stored in an Oracle wallet created for this purpose. The
autologin feature of this wallet is turned on so the system does not
need a password to open the wallet. From the wallet, it gets the
credentials to access the database for the user they represent.

--- end quote --

Perhaps Secure External Password Store does not work with OCILogon or
OCILogon2.

OCILogon is described as a "simplified logon message".

If I use

OCISessionBegin ( svchp, errhp, authp, OCI_CRED_EXT,

SEPS does work if OCI_CRED_EXT is specified instead of OCI_CRED_RDMS.

Pro*C is certainly easier for this.

-- Warren


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.