现象:

在客户端用PL/SQL DEV连接连虚拟机的数据库,报错误ORA-12514。

ora-12514报错解决方法_第1张图片

原因:

 在网上差了下,大部分是在Windows平台安装数据库,或者在虚拟机安装Linux系统的Oracle后重启产生的现象。

Oracle Net Services - Version 9.2.0.1.0 to 11.2.0.3 [Release 9.2 to 11.2]
Information in this document applies to any platform.
Checked for relevance on 7-MAY-2010.


解决方法:

修改Listenser.ora文件,11G个改成以下的形式:


LISTENER =

 (DESCRIPTION_LIST =

   (DESCRIPTION =

     (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.21.10)(PORT = 1521))

   )

 )

   (SID_DESC =

     (GLOBAL_DBNAME = orcl)

     (ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)

     (SID_NAME = orcl)

   )

 )


Oracle10.2.0的修改方法:


SID_LIST_LISTENER =

  (SID_DESC =

   (GLOBAL_DBNAME = orcl)

   (ORACLE_HOME = G:\oracle\product\10.2.0\db_1)  

   (SID_NAME = orcl)

   )

 )

LISTENER =

 (DESCRIPTION_LIST =

   (DESCRIPTION =

     (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.21.10)(PORT = 1521))

   )

 )