WIN7 64-bit system PHP connection to Oracle database, win7oracle
Let's talk about the configuration process
First, download Oracle Instantclient
Download Address: http://www.oracle.com/technetwork/topics/winx64soft-089540.html
Download
My local PHP connection to the remote Oracle database, I downloaded the Oracle client instantclient-basic-nt-11.2.0.2.0, CONFIGURED the environment variables, opened the PHP_OCI8 and php_oci8_ 11, restart the computer and then use the connection,
Resume oracle.sh in/etc/profile.d/
The contents are as follows in Nls_lang setup encoding
1 oracle_home=/usr/lib/oracle/12.1/client642 c_include_path=/usr/include/ oracle/12.1/client643 ld_library_path= $ORACLE _home/lib4# RememberThis was the
db_driver.php
oci8_driver.php
Reply content:
db_driver.php
oci8_driver.php
The experience may be that there is a problem with the Oracle client or that the environment variable does not match.PHP5. After x, the Oracle client must be a
' Open the Database
Public Sub openoradb ()
On Error GoTo Toexit
Oradb_open = False
Set oradb = New ADODB. Connection
Oraconstr = "PROVIDER=ORAOLEDB.ORACLE.1; Password= "& Strorapwd &"; User id= "& Strorauser &";D ata source= "& Oradbnetname &";
Generally after the completion of the import oracle.jdbc.driver.*; Statement, you will find an error. This requires:
First, add JDBC driver to Classpath
Two methods. One is graphical, computer-attribute-Advanced Settings-environment variable-edit
Configuring an ODBC data source
1. Select Microsoft ODBC for Oracle
2. Data Source Name: Connection string name/user name: Database name (SID name)/server name: Database server IP Address
Using System.Data.Odbc;
private void Monitorbatch ()
{
Yesterday download installed Navicat 9.0 Premium (Advanced English edition), connect MySQL normal, see He also support Oracle, SQLite and PostgreSQL, also want to connect Oracle, for centralized management.
1, but the connection is first reported a
Recently, I was prompted to connect Oracle with C + + ADO, "No providers found, possible programs not installed correctly"
Most of the solutions found on the Internet are set up the Oracle installation directory permissions, I set up after also did
To successfully install the Oracle client first, use the Sqlplus tool to connect the local service name of the Tnsnames.ora configuration such as:Conn user/[email protected]If the connection is successful, the client installation is successful.Java
The first time to install Oracle, installed in the virtual machine, with PL/SQL dev connection to the remote database is always pop-up blank prompt box, online search for a long time, the solution is also a lot, but there is no way to solve my
In the first case:
If the Oracle server is installed on this machine, it is not much to say, the connection is only the user name and password problem. However, be aware that the environment variable%oracle_home%/network/admin/is set.
In the second
The example in this article describes Java's approach to Oracle 11g RELEASE2 based on JDBC. Share to everyone for your reference. Specifically as follows:
The JDBC connection for Oracle 11g Release 2 appears to be different if you receive the
Method 1: Yesterday in order to manage some information of the database, the first time with Toad for Oracle this software. Did not expect to encounter the first use: "Can" T initialize OCI. Error-1 ".
This error is identified because there is no
Download instantclient-basic-nt-11.2.0.2.0 -bit client, post-pressurized storage, such as F:\instantclient_11_2
Copy the Oracle 11.2G Msvcr80.dll and Tnsnames.ora to the extracted instantclient_32-bit client root directory, where they
Installation-free Oracle Client usage PL/SQL Connection Oracle
As we all know PL/SQL Connection Oracle To install Oracle Client software. Have you ever thought about not installing Oracle Client direct connection
SQL execution efficiency has a significant impact on system usage, and this article summarizes some of the solutions to Oracle optimization problems that are encountered in troubleshooting problems, or the daily learning gains. 1.Oracle SQL
Problem Description:Local is Win7 operating system, cmd inside Sqlplus go in and connect Oracle database, Chinese can be displayed normally, but Plsql Connection Oracle database, Chinese display garbled, and Xshell Remote Connection Oracle server
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.