安装plsql出现无法报错tns无法处理服务名
需要安装plsql跟Oracle精简版。
1、注意plsql跟Oracle的安装路径不要有( )
2、注意看下在Oracle下的文件内容。如下
例如:
sqlnet.ora文件内容
# Generated by Oracle configuration tools. # This file is actually generated by netca. But if customers choose to # install "Software Only", this file wont exist and without the native # authentication, they will not be able to connect to the database on NT. SQLNET.AUTHENTICATION_SERVICES= (NTS) NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
tnsnames.ora
jjsaassuua = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.23.233)(PORT = 1521)) ) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ikdjajdfa) ) )
listener.ora
# listener.ora Network Configuration File: E:\oracle\product\10.2.0\db_1\network\admin\listener.ora # Generated by Oracle configuration tools. SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = C:\Oracle\ora90) (PROGRAM = extproc) ) (SID_DESC = (SID_NAME = ngact) (ORACLE_HOME = C:\Oracle\ora90) ) ) LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1)) (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) ) )
三个文件都是在同级目录下,在ADMIN目录下

浙公网安备 33010602011771号