Problem Description:
Using Python package CX_ When setting scheduled tasks on the Oracle server, errors are always reported, such as the title, but running alone is no problem
resolvent:
Under the guidance of the boss, add a few lines of code in front of the script to solve the problem perfectly. The environment variable path is configured according to its own path.
import os
os.environ["ORACLE_HOME"] = '/home/oracle/app/oracle/product/11.2.0/dbhome_1'
os.environ["ORACLE_BASE"] = '/home/oracle/app/oracle'
os.environ["ORACLE_SID"] = 'orcl'
os.environ["LD_LIBRARY_PATH"] = '/home/oracle/app/oracle/product/11.2.0/dbhome_1/lib:/lib:/usr/lib'
Read More:
- Python uses CX_ Oracle batch insert error report ora-01036 error solution
- Error while trying to retrieve text for error ORA-01019 solution
- Failed to create Oracle Oracle home user solution appears in oracle12c installation
- Oracle login error: Oracle error 6 initializing SQL * plus (normal before)
- [HTML] Python extracts HTML text to TXT
- Solution to Oracle error 17002
- How to convert audio to subtitle (text) with Python?
- Oracle12c client32 bit installation error: [ins-20802] Oracle net configuration assistant failed
- Python implements inserting content in the specified position of text
- Oracle database file is damaged, Error:ORA-01033 :ORACLE initialization or shutdown in progress
- Parsing the difference between “R” and “RB” patterns of text files (Python)
- yum install/update error: sqlite3.DatabaseError: database disk image is malformed
- The solution of PL / SQL can’t connect to the remote server after installing Oracle locally
- Failed to retrieve platformtransactionmanager for @ transactional test: [defaulttest]
- there was an error running the selected code generator unable to retrieve metadata for
- A series of errors encountered in connecting to the database using Oracle SQL developer
- “[warning] failed to retrieve plugin descriptor for caused by Maven security agent settings org.apache.maven . plugins:… “
- Solution of Oracle error 6550
- SSIS Exception: Failed to retrieve long data for column “TS_Description”
- Ie8.0 reports Oracle error 1403 error after logging into Oracle EBS