If I want to use Kerberos authentication to connect to an Oracle database server I need this line in my active $TNS_ADMIN/sqlnet.ora file:
SQLNET.AUTHENTICATION_SERVICES = (BEQ, KERBEROS5)
If I want to connect with a simple login/password, I need that line to be:
SQLNET.AUTHENTICATION_SERVICES = (NONE)
Is there some magic configuration so I can connect to both from the same process using the same sqlnet.ora file?
I am using Java and ojdbc6.jar, but I don't think that matters.