plsql11 x64 installation and configuration solve OCI: not initialized



Downloaded instantclient-basic-windows.x64-12.1.0.2.0.zip and plsqldeveloper11x64.zip

Configure instantclient
Unzip instantclient to d:\instantclient_12_1
Configure the following environment variables
TNS_ADMIN=d:\instantclient_12_1
PATH variable and finally add;%TNS_ADMIN%

to install plsql
Set Oracle_Home and OCI Library in PLSQL Developer, and
in tools/preference, configure oracle home and oci library with oracle-connection option.

For example mine is oracle home: d:\instantclient_12_1, oci library: d:\instantclient_12_1\oci.dll.

Configure tnsnames.ora to create a
new text file d:\instantclient_12_1\tnsnames.ora
file content
orcl =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.1)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SID = orcl)
    )
  )


Close plsql, reopen plsql, and find that the configured database connection cannot be used,
tnsnames.ora does not take effect, check plsql's help--"support info
OCI Library: d:\instantclient_12_1\ oci.dll
Use OCI7: False

DLL: d:\instantclient_12_1\oci.dll
OCI: not initialized


The post on the Internet said that there is no file on windows, only 32-bit instantclient can be used, and the
original 64-bit instantclient can be deleted , replaced with 32-bit instantclient,
after the replacement, x64 plsql cannot be adjusted to x32 instantclient, uninstall 64-bit plsql11
and replace 32-bit plsql8, the result is still an error.

The online post also said that it is necessary to install instantclient 32-bit and instantclient 64 at the same time, and also install
oracle client. I dare not think about what these people are doing. I have never
installed oracle client before using plsql. After installing oracle client, there is no need to install instantclient. Yes ,
do more than that.

Go to the official website to view the documentation, and you can try to download sqlplus and try it. It can run or not.
Downloaded instantclient-sqlplus-windows.x64-12.1.0.2.0.zip
, decompressed and copied the files in instantclient_12_1 to d:\instantclient_12_1

, opened the command line, executed the sqlplus command, and prompted msvcr100.dll missing

English website search
http:// answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/trying-to-open-computer-management-the-program/5c9d301a-2191-4edb-916e-5e4958558090?auth=1
prompt requires microsoft visual c++ Redistributable package support

Download and install microsoft visual c++ redistributable 2010 x64

After installation, restart plsql, and the familiar database connection will come out. Due to being misled by the net posting,
installing a necessary tool took more than 10 hours of work.


Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326801626&siteId=291194637