Error:
cx_Oracle connect oracle error:
cx_Oracle.DatabaseError: Error while trying to retrieve text for error ORA-01804 sample code: import cx_Oracle conn = cx_Oracle.connect(user,pwd, self.ois_tns)
Solution: Check the environment variable settings for oracle in the .bash_profile under the Linux user on the server executing the code, as follows.
export ORACLE_HOME=/test/home/oracle/product/11.2.0.4 export LD_LIBRARY_PATH=O R A C L E H O M E / l i b e x p o r t T N S A D M I N = ORACLE_HOME/lib export TNS_ADMIN=ORACLEHOME/libexportTNSADMIN=ORACLE_HOME/network/admin
Read More:
- Linux Fatal Python error: Py_Initialize Unable to get the locale encoding
- Python environment error, bad interpreter: there is no file or directory
- [Solved] Django.core.exceptions.ImproperlyConfigured: SQLite 3.9.0 or later is required (found 3.7.17).
- Python: How to Solve mysqlclient Install Error in Mac
- VScode import numpy Error: DLL load failed [How to Solve]
- Pytorch CUDA Error: UserWarning: CUDA initialization: CUDA unknown error…
- [Solved] ModuleNotFoundError: No module named ‘requests‘
- How to Solve QGIS installation paddy GPU error
- [Solved] Mujoco Error: Missing path to your environment variable.
- Python Connect database error: command listdatabases requires authentication
- Python 3 uses the relative path import module
- Python Fatal error: Py_Initialize: unable to load the file system codec
- [CUDA Environment] Python Pytorch Error: CudaSetupArgument
- Django uses Mysql to report an error loading MySQL DB module: no module named ‘mysqldb’
- [Solved] Python Project Import Module Error: ModuleNotFoundError
- Python parsing JSON Error: NameError: name ‘false’ is not defined
- SyntaxError: (unicode error) ‘unicodeescape‘ codec can‘t decode bytes in position 2-3: truncated \UX
- [Solved] C error: expected 1 fields in line 3, saw 2 processing method
- [Solved] Python Django error: error: (1146, “Table ‘mydb.django_session’ doesn’t exist”)
- VScode Run CONDA environment Error [How to Solve]