oracel客户端登录时出现ORA-12514 错误的解决办法

正常情况下在

 

Oracle 配置过程:

Oracle 客户端连接配置:
1. 配置文件:
$Oracle/network/admin/sqlnet.ora
$Oracle/network/admin/tnsnames.ora

2.配置内容:

$Oracle/network/admin/sqlnet.ora

NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
配置客户端连接的方式。

$Oracle/network/admin/tnsnames.ora

newdb =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = xx.xx.xxx.xx)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = devdb1.xxxxx.com)
    )
  )

 

出现ORA-12514 错误时应该

newdb =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = xx.xx.xxx.xx)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SID = medn)
      (SERVER = DEDICATED)
    )

  )

 

 

 

你可能感兴趣的:(oracle)