一、.PL/SQL 连接oracle 10g时出错:
---------------------------PL/SQL Developer---------------------------ORA-12514: TNS: 监听程序当前无法识别连接描述符中请求的服务 ---------------------------OK
二、网上查了下资料,解决方法如下:1. Open the ""<OracleHome>/network/admin/listener.ora" file in the host,and you will see:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
)
)
2. Add the following lines after the 7th line in the above
(SID_DESC =
(GLOBAL_DBNAME = ORACLE)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
(SID_NAME = ORACLE)
)
3. At last the content of the file become to the following section:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = ORACLE)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
(SID_NAME = ORACLE)
)
)
4. Save the file and restart the TNSListener service in the host. That's OK!
三、问题:为什么我在安装完oracle 10g 后能用pl/sql连接orcale,重启电脑后就不行了?
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/gysheng2/archive/2010/12/04/6054449.aspx
---------------------------PL/SQL Developer---------------------------ORA-12514: TNS: 监听程序当前无法识别连接描述符中请求的服务 ---------------------------OK
二、网上查了下资料,解决方法如下:1. Open the ""<OracleHome>/network/admin/listener.ora" file in the host,and you will see:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
)
)
2. Add the following lines after the 7th line in the above
(SID_DESC =
(GLOBAL_DBNAME = ORACLE)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
(SID_NAME = ORACLE)
)
3. At last the content of the file become to the following section:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = ORACLE)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
(SID_NAME = ORACLE)
)
)
4. Save the file and restart the TNSListener service in the host. That's OK!
三、问题:为什么我在安装完oracle 10g 后能用pl/sql连接orcale,重启电脑后就不行了?
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/gysheng2/archive/2010/12/04/6054449.aspx
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
)
)
那之前为什么oracle仅根据这个就能监听到客户端的请求?我的电脑是自动获取ip地址的,但和这有什么关系呢?我是通过localhost连接的
中的host 改成计算机名称 或者localhost 重启服务 试下