RE: Easy Question: Test Connection

  • From: "Sinardy Xing" <SinardyXing@xxxxxxxxxxxxx>
  • To: <oracle-l@xxxxxxxxxxxxx>
  • Date: Tue, 11 May 2004 11:26:06 +0800

Hi Justin,

I want have a loop to ask user for correct password before proceed with =
login.

I remember the Oracle GUI they have something like "test connection"
the result either successful of not successful.

Sinardy

-----Original Message-----
From: oracle-l-bounce@xxxxxxxxxxxxx
[mailto:oracle-l-bounce@xxxxxxxxxxxxx]On Behalf Of Justin Cave (DDBC)
Sent: 11 May 2004 11:21
To: oracle-l@xxxxxxxxxxxxx
Subject: RE: Easy Question: Test Connection


You would need to actually try to create a connection to the database
with that user name & password.  Why would you want to check the
validity of a password other than when you are logging in?=3D20


Justin Cave
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

-----Original Message-----
From: oracle-l-bounce@xxxxxxxxxxxxx
[mailto:oracle-l-bounce@xxxxxxxxxxxxx] On Behalf Of Sinardy Xing
Sent: Monday, May 10, 2004 8:58 PM
To: oracle-l@xxxxxxxxxxxxx
Subject: Easy Question: Test Connection

Hi all,
=3D20
How I test given password? (test connect)
=3D20
example
the logic is something like this
=3D20
username=3D3Dsystem;
password=3D3Dmanager;
=3D20
if ORACLE_TEST_CONNECT(username, password) < 0 then
    echo Wrong id or(and) password
else
    exp username/password
endif;
=3D20
=3D20
How to test the given username or password?
=3D20
=3D20
=3D20
thanks so much
=3D20
Sinardy
=3D20
=3D20
=3D20
=3D20
----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request@xxxxxxxxxxxxx put
'unsubscribe' in the subject line.
--
Archives are at //www.freelists.org/archives/oracle-l/
FAQ is at //www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------


----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request@xxxxxxxxxxxxx
put 'unsubscribe' in the subject line.
--
Archives are at //www.freelists.org/archives/oracle-l/
FAQ is at //www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------

----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request@xxxxxxxxxxxxx
put 'unsubscribe' in the subject line.
--
Archives are at //www.freelists.org/archives/oracle-l/
FAQ is at //www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------

Other related posts: