ora-12514

Oracle异常处理—ORA-12514

我只是一个虾纸丫 提交于 2020-03-02 04:46:07
oracle11g,安装完成之后直接使用,今天用PLSQL链接突然报错,报错代码为:ORA-12514:监听程序当前无法识别连接描述符中请求的服务。网上查了这种异常的解决办法,特在此记录。 出现该问题一般有两种情况。 第一种是在你安装完之后未配置监听(在此我暂时忘记安装完之后有没有配置监听); 第二种是之前配置了监听但是系统未写入到listener.ora文件中(在此我暂未搞明白什么时候写入),所以只需要在该文件中写入配置参数就可以了。 解决办法: 1、打开listener.ora文件 找到listener.ora文件的存放位置并打开。我本机文件目录在D:\app\**\product\11.2.0\dbhome_1\NETWORK/ADMIN下。该文件须根据自己安装目录的实际情况找。(注:Oracle10g与11g的目录好像不太一样)。文件内容如下图: 从上图中我们可以看出我已经配置过监听了,但是报错是由于Oracle的地址没有写到SID_DESC中,在此我们将此写入就可以了。 2、修改listener.ora文件 将以下内容追加到该文件的SID_LIST节点下 (SID_DESC = (GLOBAL_DBNAME = orcl ) (ORACLE_HOME = D:\app\**\product\11.2.0\dbhome_1 ) (SID_NAME = orcl ) ) 注

How to connect to Oracle 10g from remote client?

*爱你&永不变心* 提交于 2019-12-12 03:57:02
问题 Using the standard Delphi dbexpress dbexpora.dll + oci.dll (10g) (the oracle instantclient is installed). When directly on the Oracle Database box we can run dbexpress apps just fine. The local dbxconnections.ini alias used in that case simply specifies our DB service name ORCL as the "database" parameter. We are trying to connect to this same database from client machines and receiving a series of errors. Naturally, we are trying all manner of strings in the database parameter. Using a

Suddenly getting ORA-12514 error Oracle 11gr2

南笙酒味 提交于 2019-12-11 14:24:22
问题 I installed Oracle 11g r2 fine, had 2 databases (se3 and mydb, both have db_domain .orcl i.e. mydb.orcl and se3.orcl) running on it fine till yesterday. but suddenly im getting ORA-12514 error (TNS:listener doesn't know of service requested in connect descriptor).. My tnsnames.ora file: # tnsnames.ora Network Configuration File: G:\oracledb\product\11.2.0\dbhome_1\network\admin\tnsnames.ora # Generated by Oracle configuration tools. LISTENER_MYDB = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost

数据库报ORA-12514

回眸只為那壹抹淺笑 提交于 2019-12-03 20:55:50
Listener refused the connection with the following error: ORA-12514, TNS:listener does not currently know of service requested in connect descriptor. 原因:监听器配置问题,具体没搞懂,猜测是SID链接不匹配,监听器无法监听到orcl。 修改oracle安装目录下 D:\app\xuannan\product\11.2.0\dbhome_1\network\admin\listener.ora 文件 # listener.ora Network Configuration File: D:\app\xuannan\product\11.2.0\dbhome_1\network\admin\listener.ora # Generated by Oracle configuration tools. SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = CLRExtProc) (ORACLE_HOME = D:\app\xuannan\product\11.2.0\dbhome_1) (PROGRAM = extproc) (ENVS = "EXTPROC_DLLS=ONLY:D:

ORA-12514: TNS:listener does not currently know of service requested in connect descriptor

匿名 (未验证) 提交于 2019-12-03 01:12:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have problem, when trying to connect to Oracle Database XE via listener: sqlplus system/my_password@XE I get the following error: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor I use Ubuntu 12.10 and Oracle Express Edition 11g. My main goal to connect java + oracle db with jdbc, but there i get the same error. Here are my listener.ora # listener.ora Network Configuration File: SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = /u01/app/oracle/product/11.2.0/xe)

oracle centos 重启后报错ORA-12514, TNS:listener does not currently know of service requested in connect descriptor

匿名 (未验证) 提交于 2019-12-02 23:34:01
oracle centos 重启后报错ORA-12514, TNS:listener does not currently know of service requested in connect descriptor 1、查看监听状态 lsnrctl start 2、通过 sqlplus / as sysdba ,执行 startup 来启动数据库,发现报错,initORCL.ora不存在。 3、进入对应目录,打开 spfileorcl.ora ,发现 db_name=orcl , 4、查看环境变量 cat ~/.bash_profile ,发现 ORACLE_SID=ORCL 5、 conn / as sysdba ,然后 startup nomount startup nomount 选项启动实例,但不安装数据库。当数据库以这个模式启动时,参数文件被读取;后台进程和内存结构被启动;但它们不被附加或与数据库的磁盘结构进行通信。当实例处于这个状态时,数据库是不可使用的。 create database , create or recreate control file 或者是 mount standby database 等动作,修改 parameter 也是可以的。 6、 alter database mount ; alter database open;

Ora-12514和Ora-12514解决方法

廉价感情. 提交于 2019-12-02 15:37:38
Ora-12514和Ora-12514解决方法 2007-11-07 16:35:28 标签: Ora-12514 休闲 Ora-12514 解决方法 职场 原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。 http://guojie.blog.51cto.com/59049/49542 因本人长远职业规划是OracleDBA,所以,在工作中并没有像其他开发人员一样,只是安装了Oracle客户端,而是安装了完整的Oracle,以备学习、研究。但是,由于系统性能问题。平时,都把Oracle相关的服务都关闭。 最近,时间允许了,把Oralce的服务启动,但是,却遇到下面的问题,经过查资料和反复试验,终于搞清楚问题的原因。所以,想记录下来,以备将来遇到类似问题不再麻烦。 OracleOraDb10g_home1TNSListener: 该服务对应 %Oracle_Hoem\bin TNSLSNR.EXE 若该服务未启动,将会导致Oracle错误- Ora-12514:TNS:无监听程序 。 OracleServiceORACLE: 若该服务未启动,将会导致Oracle错误- Ora-12514:TNS:监听程序当前无法识别链接描述符中请求的服务。 但是,启动了该服务也有可能导致该错误。解决方法如下: 打开: %Oracle_Hoem

ORA-12514: TNS: 监听程序当前无法识别连接描述符中请求的服务 问题解决

独自空忆成欢 提交于 2019-12-02 15:37:10
ORA-12514: TNS: 监听程序当前无法识别连接描述符中请求的服务 问题解决 近日在配置 Oracle 10G 的流复制环境时,遇到一个问题,关闭数据库( shutdown immediate )后,通过 SQL Plus 连接数据库 :conn sys/his@orc0 as sysdba ,出现如下错误: ORA-12514: TNS: 监听程序当前无法识别连接描述符中请求的服务 通过重启服务的方式启动数据库,再次连接却能成功登录,也就是说在关闭数据库状态下无法连接服务器。 开始以为是系统环境变量 Oracle_SID 的配置问题,因为机器有多个实例,一阵折腾后还是不能连接。后来查资料得知: Oracle9i 以后,后台进程 PMON 自动在监听器中注册在系统参数 SERVICE_NAMES 中定义的服务名, SERVICE_NAMES 默认为 DB_NAME+DOMAIN_NAME 。监听配置文件 listener.ora 中可以不必指定监听的服务名。但是,当数据库处于关闭状态下 PMON 进程没有启动,也就不会自动注册监听的实例名,所以使用 sqlplus sys/his@orc0 as sysdba 会出现 ORA-12514 错误。 如果在 listener.ora 文件中指定监听的实例名,则即使数据库处于关闭状态,仍然可以连接。 listener.ora

Connect to an Oracle 10g database with Microsoft ODBC for Oracle

巧了我就是萌 提交于 2019-11-29 07:54:46
I'm trying to connect to an Oracle 10g database using the built in Microsoft ODBC for Oracle driver. I want to use an dnsless connection, so I grab my connection string from www.connectionstrings.com . Ideally I won't have to setup a DNS entry or an Oracle TNS entry, and I may be mistaken, but I thought the above would do that for me. I'm getting the following: ERROR [NA000] [Microsoft][ODBC driver for Oracle][Oracle]ORA-12514: TNS:listener does not currently know of service requested in connect descriptor ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed ERROR

TNSPING OK but sqlplus gives ORA-12154?

好久不见. 提交于 2019-11-29 03:41:16
I have Oracle 11 running on a Windows server and I'm logged onto the same server trying to use SQL Plus. When I try to connect I get a ORA-12154 even though TNSPING and various other diagnostics look OK. Can anyone suggest why ? Loads of detail below. I can use sqlplus if I use EZCONNECT like this .. sqlplus EST/EST@192.168.10.15/ORCL ... but if I try to connect using TNSNAMES like this ... sqlplus EST/EST@ORCL ... I get ... ORA-12154: TNS:could not resolve the connect identifier specified TNSPING works OK C:\Documents and Settings\user1>tnsping ORCL TNS Ping Utility for 64-bit Windows: