oracle监听1067错误的处理

一,oracle监听1067错误的处理
修改oracle安装目录D:\DataBase\oracle\product\10.1.0\Db_1\NETWORK\ADMIN\下的 listener.ora和tnsnames.ora里的HOST值为localhost或者计算机名即可。

 
F:\oracle\product\10.2.0\db_1\NETWORK\ADMIN里listener.ora SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = F:\oracle\product\10.2.0\db_1)
      (PROGRAM = extproc)
    )
    (SID_DESC =                    
    (GLOBAL_DBNAME = ORCL)        
    (ORACLE_HOME = F:\oracle\product\10.2.0\db_1)
    (SID_NAME = ORCL)
    )
  )
 
LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    )
  ))

 

配置有问题。

检查listener.ora和tnsnames.ora配置:

示例如下:

listener.ora

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = F:\oracle\product\10.2.0\db_1)
      (PROGRAM = extproc)
    )
     (SID_DESC =
      (ORACLE_HOME = F:\oracle\product\10.2.0\db_1)
      (SID_NAME = orcl(修改为实例名))
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1(修改为主机IP地址或主机名))(PORT = 1521))
    )
  )


tnsnames.ora

myORCL=
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1(修改为主机IP地址或主机名))(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = orcl(修改为实例名))
    )
  )


配置好后tnsping myORCL 看通不通。
登陆格式为 sqlplus username/password@myORCL
myORCL为tnsnames.ora中配置的名称,名称可以随便取,不一定要与实例名一样,不是实例名,注意区别。

开启监听服务:lsnrctl start

你可能感兴趣的:(oracle)