ORACLE 提示“ERROR - ORA-12541: TNS: 无监听程序”解决方案

查看\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora文件,显示oracle值:

ORACLE =

(DESCRIPTION =

   (ADDRESS = (PROTOCOL = TCP)(HOST =自动分配的IP地址)(PORT = 1521))

   (CONNECT_DATA =

     (SERVER = DEDICATED)

     (SERVICE_NAME = oracle)

   )

)

主机名输入localhost或127.0.0.1都会提示无监听程序。由于自动分配的IP地址会有变动,所以将oralce值中的host改成本机的计算机名,保存修改后的tnsnames.ora。再次新建数据库,出错问题解决。

# tnsnames.ora Network Configuration

File: G:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora

# Generated by Oracle configuration tools.

ORACLE =

(DESCRIPTION =

   (ADDRESS = (PROTOCOL = TCP)(HOST =计算机名称)(PORT = 1521))

   (CONNECT_DATA =

     (SERVER = DEDICATED)

     (SERVICE_NAME = oracle)

   )

)

你可能感兴趣的:(oracle)