Call to undefined function Oci_connect () issue resolved
Important: Make sure that PHP is the same version as the Oracle client that you want to install. It must be both 32-bit and 64-bit, or the OCI extension will not be available
1. View the PHp.ini configuration file:
A. Open the module path setting: view; Extension_dir = “ext” or “ext”; , and change the quotes to “PHP installation path \ext”, such as extension_dir = “D:\ PHP \php5\ext”
B. Open the OCI module and will; The extension = php_oci8. DLL,; Extension = PHp_oCI8_11g.DLL started; Remove to open the OCI module
After the module opens, restart IIS or Apache,
Check the output of your phpInfo () function to see if OCI8 is supported;
If not, proceed to the next step
2. Confirm whether oracle client is installed. If not, install Oracle client first. The client download address: link: http://pan.baidu.com/s/1kUUY1tP password: xq37.
At present, I am using oracle10g database and only have oracle10g client.
Installation tutorial: open ora10client.exe to start the installation, there is nothing special to set up, the default next step to know the installation is successful.
After successful installation, modify the HOST,PORT and SID parameters in the TNsnames.ora file under the Oracle folder
After modification, use the plsqldev.exe client to log in:
At this point, the client installation is complete. Please proceed to the next step
3. Write the oracle PATH to the computer environment variable PATH, and then restart the computer to make the PATH effective.
At this point, the basic solution to the problem, welcome to discuss.
If it has not been solved and there is a follow-up solution, please leave me a message, thank you.
Read More:
- Fatal error: Uncaught Error: Call to undefined function mysql_ Connect() problem solving
- Call to undefined function mysql_ Connect() solution summary
- PHP connection PostgreSQL error call to undefined function PG_ connect()
- Fatal error: Uncaught Error: Call to undefined function mysql_connect()
- Uncaught error: call to undefined function MySQL when building sqli lab environment with phpstudy_ Connect() error
- PHP connection to MySQL database error: call to undefined function MySQL_ connect()
- PHP error: call to undefined function curl_ init() window
- Uncaught Error: Call to undefined function mysql_select_db()
- mysql problem solving: mysqladmin: connect to server at’localhost’ failed
- bug-JAVA call SAP function Connect to SAP gateway failed
- Problem solving: failed to connect to github.com port 443: Operation timed out(2020.06.04)
- Solving the problem of joi. Validate is not a function
- Failed to connect to 127.0.0.1 port 43571: problem solving record
- Problem solving: PDF cannot be opened, and acrobat failed to connect to a DDE server appears
- Solving the problem of saving object set by save() function in R language
- An undetermined call to function ‘shell’: missing ‘. Stop. Problem encountered when using shell command in makefile
- Solving CodeBlocks OpenGL glew undefined reference to`_ imp__ Glewinit ‘error
- [problem record] objc_ Too many arguments to function call
- A call to an OS function failed
- [Qt] error: call to non-static member function without an object argument