OCI Error occurs when installing Oracle10g Client & Oracle11g DB at the same time

  1. Can't initialize OCI. Error -1
  2. OCI version 11.2.0.1.0 Production is not supported

You can log in normally with SQLPLUS, but the above problems occur in the
Toad client. It is confirmed that the Toad client version is too low.

The difference between installing the Oracle database and installing the Oracle client:

  1. listener.ora must exist, and configure the computer name or ip address
  2. sqlnet.ora must exist
  3. tnsnames.ora must retain the installation time, and host=computer name or ip
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    )
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    )
    )

LISTENER_ORCL =
(ADDRESS = (PROTOCOL = TCP)(HOST = CNSPO000226)(PORT = 1521))
Otherwise, the database service starts normally, but it cannot actually log in, indicating that there is a problem with LISTENER_ORCL

Log in to cmd -> sqlplus /nolog
conn / as sysdba and encounter the ORA-01031: insufficient privileges error.
Solution:
Turn on the computer "Management" Local Users and Groups" Groups "ORA_DBA
ORA_DBA This group is empty and has no members.
Add the administrator, and then go to the command line to execute

After logging in, execute startup and fail to start. There are problems with tnsnames.ora and listener.ora. Modify the
startup version according to the installation time. After successful, connect to a idle instance
tnsnames.ora is caused by the setting method of Oracle client. Add the above part to Restart in tnsnames.ora and it succeeded.

Guess you like

Origin blog.51cto.com/jinfreaks/2545585