Closed venkateshkolisetty-ctl closed 1 year ago
The first one, NJS-089 is obvious: don't call that function in Thin mode. Remove the call, or change to Thick mode.
The second one, NJS-116, is answered in https://stackoverflow.com/a/76436179/4799035
I am trying to connect to Oracle 12.2.0.1.0
and the verified that the parameter sec_case_sensitive_logon
is set to true
.
Even though the configuration is supported by the Thin mode, I am getting error.
Regenerate your password as per the steps on SO.
I tried regenerating the password but I am getting same error. I also tried connecting to 3 different databases having same configuration and I see same error.
Try to run a fresh database via docker compose:
services:
XEPDB1:
image: container-registry.oracle.com/database/express:21.3.0-xe
ports:
- '1521:1521'
environment:
ORACLE_PWD: 'oracle'
and connect as:
await oracledb.getConnection({
user: 'PDBADMIN',
password: 'oracle',
connectString:'localhost/XEPDB1',
});
Hi @venkateshkolisetty-ctl, It seems that the username
used to connect to Oracle Database is using a less secure 10G password verifier for some reason.
Can you run the following query and see if your username
is listed in the result:
SELECT USERNAME FROM DBA_USERS WHERE ( PASSWORD_VERSIONS = '10G 'OR PASSWORD_VERSIONS = '10G HTTP ')
AND USERNAME <> 'ANONYMOUS';
You might want to check the following documentation to upgrade your password verifier in Oracle Database - Resetting Oracle Database password verifiers.
@sharadraju , my username IS LISTED in the result. What is the supported version for the Thin mode to work?
Node-oracledb's Thin mode supports 11G and higher password verifiers, which are more secure. To reset your password verifier to use more secure versions in your Oracle Database, please follow the steps listed here - Resetting Oracle Database password verifiers.
Thank you
Hellou how resolve this i have the same problem
@sharadraju Hello, I'm getting the same error Error: NJS-116: password verifier type 0x939 is not supported by node-oracledb in Thin mode
and:
sec_case_sensitive_logon
is truepassword_versions
for the user is 10G 11G 12C
I would've thought that having 11G and 12C
on top of 10G
would make it possible to connect, but it doesn't seem to be the case. Is it that password_versions
should not have 10G
at all?
Thank you.
@diegomansua Yes, the password_versions should not have 10G for the users as it is less secure and will be the default password verifier. As indicated in this link - Resetting Oracle Database password verifiers, the recommendation is to remove 10G from password-versions completely.
thx a lot! i can fix it!
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
process.platform:
win32
process.version:v18.16.0
process.arch:x64
require('oracledb').versionString:6.0.2
require('oracledb').oracleClientVersionString:Error