I'm writing a sqplus-like program. I assume the connect string contains the password if it contains a slash, e.g. scott/tiger
or scott/tiger@orcl
.
if connect string does not contain "/":
prompt for password entry
Is there ever a case where a user could have a connect string scott
or scott@orcl
and not need to be prompted for a password?
Best Answer
Possible solutions:
You can use the stored credentials without specifying a username or password. Connection string:
/@orcl
.Not recommended, insecure, mentioned just for completeness, do not use it.
You can use your directory credentials for logging in without specifying your username or password. Connection string:
/@orcl
.You own a certificate and you will be authenticated by that, without specifying a username or password. Connection string:
/@orcl
./ as sysdba
,/ as sysoper
,/ as sysbackup
,/ as sysdg
,/ as syskb
.