File "C:\django\db\backends\oracle\base.py", line 254, in get_new_connection return Database.connect( cx_Oracle.DatabaseError: ORA-12154: TNS:could not resolve the connect identifier specified
First copy the tnsnames.ora into local system and test tnsping.
C:\> tnsping <service Name>
If the tnsping is working fine, then below are the passible reason for ORA-12154 error
- TNS_ADMIN might not be configured or set the right path
- There might be a typo in service name
- Connection details in settings.py might not be correct
ORA-29003: SSL transport detected mismatched server certificate
Django supports Oracle Database 19c or higher versions but cx_oracle python driver required. We verified that required driver is installed. We try to connect using SQL*PLUS but still receiving same error. That means there is no issue with the settings.
After research we found that 12c client is not supported for new mTLS authentication as per document “ALERT: Action Required for Autonomous Databases (Doc ID 2911553.1)”
We have installed Oracle 19c client and were able to connect without any issues.
Below are the options to resolve the issue
1. Install certified oracle client versions 11.2.0.4.220719 (or later), 18.19 (or later), 19.2 (or later), 21 (base release or later)
2. Update Autonomous database instance to allow both TLS and mTLS authentication.
- Goto Autonomous Database Details page --> Network --> click Edit in the Mutual TLS (mTLS) Authentication field.
- Change the value to allow TLS authentication, deselect Require mutual TLS (mTLS) authentication
- Click Update
I hope this helps.
Thanks
Satishbabu G, Oracle ACE Pro
Satishbabu G, Oracle ACE Pro
pg dragon gaming สล็อตออนไลน์ เล่นบนมือถือ การเล่นสล็อตออนไลน์บนมือถือเป็นทางเลือก pg ที่สะดวกและยืดหยุ่นสำหรับผู้เล่นที่ต้องการทดลองโชคที่สะดวกทุกที่ทุกเวลา นี่คือขั้นตอนที่เล่นสล็อต
ReplyDelete