简体   繁体   English

Oracle 10g无法连接到数据库实例

[英]Oracle 10g not able to connect to database instance

The machine was assigned a DHCP address so I had to install and configure the Microsoft Loopback Adapter before installing 10g. 机器被分配了一个DHCP地址,因此我必须在安装10g之前安装和配置Microsoft Loopback Adapter。 It installed without errors or warnings and I'm able to ping the adapter IP address. 它已安装,没有错误或警告,并且能够ping适配器IP地址。 I also configured a TCP listener through the net configuration assistant to the default port 1521. I then created a database and configured it using the wizard but now when I try to connect to it from SQL Plus it gives me this error: 我还通过网络配置助手将TCP侦听器配置为默认端口1521,然后创建了一个数据库并使用向导对其进行了配置,但是现在当我尝试从SQL Plus连接到它时,会出现此错误:

ORA-12154: TNS:could not resolve the connect identifier specified.

The TNSNAMES.ORA file is automatically generated and nothing seems to be wrong with it. TNSNAMES.ORA文件是自动生成的,似乎没有问题。 What could be the problem? 可能是什么问题呢?

Thanks 谢谢

It was a very silly mistake. 这是一个非常愚蠢的错误。 The name maxprodtest was too long and so the listener identifier was shortened automatically to maxprodt. 名称maxprodtest太长,因此侦听器标识符自动缩短为maxprodt。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM