简体   繁体   English

从快照还原服务器后的ORA-12514

[英]ORA-12514 after restoring server from snapshot

We have a series of Amazon Web Services servers running Amazon Linux and Oracle XE, which is used by a local app. 我们有一系列运行Amazon Linux和Oracle XE的Amazon Web Services服务器,由本地应用程序使用。 OracleXE installs and runs just fine, our app can connect to the DB, everything is great. OracleXE安装和运行都很好,我们的应用程序可以连接到数据库,一切都很棒。

For one of our particular servers, we needed to shut it down and archive it. 对于我们的某个特定服务器,我们需要将其关闭并归档。 Today, I need to bring it online. 今天,我需要把它带到网上。 This is done by setting up a new AWS instance, creating a new virtual hard drive from backup snapshot, setting up a new public IP for the server and changing DNS settings to that the old domain points to the new IP, connecting up the restored virtual drive as the main drive, and starting it up. 这可以通过设置新的AWS实例,从备份快照创建新的虚拟硬盘驱动器,为服务器设置新的公共IP以及将DNS设置更改为旧域指向新IP,连接已还原的虚拟IP来完成作为主驱动器驱动,并启动它。

OracleXE doesn't want to work. OracleXE不想工作。 Using sqlplus to connector to localhost:1521/XE produces "ORA-12514: TNS:listener does not currently know of service requested in connect descriptor". 使用sqlplus连接到localhost:1521 / XE生成“ORA-12514:TNS:侦听器当前不知道连接描述符中请求的服务”。

This system was working just fine when I snapshotted it and archived it the first time, and I hadn't changed any settings since restoring it. 当我第一次对它进行快照并将其存档时,这个系统运行得很好,而且自恢复以来我没有更改任何设置。 Everything should be exactly the same, so why is OracleXE now not working? 一切都应该完全一样,为什么OracleXE现在不能正常工作?

The listener.ora and tnsnames.ora had the host defined using the server's public domain name. listener.ora和tnsnames.ora使用服务器的公共域名定义了主机。 I tried changing that to localhost, but it's still not working. 我尝试将其更改为localhost,但它仍然无法正常工作。

The only things I can think of that will be different are the server's public IP address, and the "rsa2 key fingerprint" (what Putty complains about due to the SSH key being the same but it being a new AWS instance). 我能想到的唯一不同的是服务器的公共IP地址和“rsa2密钥指纹”(Putty抱怨由于SSH密钥相同但它是一个新的AWS实例)。 All the advice I've seen so far is for fixing config errors for ORA-12514 when setting up a new system or after restarting, but this is a system that was working fine but has been restored from snapshot. 到目前为止,我看到的所有建议都是为了在设置新系统或重新启动后修复ORA-12514的配置错误,但这是一个工作正常但已从快照恢复的系统。

Most likely, your listener uses dynamic instance registration. 最有可能的是,您的侦听器使用动态实例注册。

For that to work, your listener must be listening to the default port (1521) or your instance must use the local listener parameter that defines the address of the listener where the instance should register it's existence. 为了使其工作,您的侦听器必须正在侦听默认端口(1521),或者您的实例必须使用本地侦听器参数来定义侦听器的地址,实例应该在该位置注册它的存在。

So, check your local_listener parameter, check the servers tnsnames.ora and listener.ora. 因此,检查local_listener参数,检查服务器tnsnames.ora和listener.ora。 Also check your clients tnsnames.ora, it should point to your new server and listener. 还要检查你的客户端tnsnames.ora,它应该指向你的新服务器和监听器。

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

相关问题 重启服务器后ORA-12514 - ORA-12514 after rebooting server 重新启动服务器后出现ORA-12514错误 - ORA-12514 error after restarting the server Oracle 11即时客户端连接到远程Oracle 8i服务器:ORA-12514错误 - Oracle 11 instant client connect to remote Oracle 8i server: ORA-12514 error Ora-12514 TNS:来自Oracle Net Configuration Assistant的侦听器错误 - Ora-12514 TNS: Listener Error from Oracle Net Configuration Assistant 通过端口号,服务名称和数据库从C#进行Oracle连接(ORA-12514 - Oracle connection with port, service name, and database from C# (ORA-12514 为什么我可以通过轻松连接获得ORA-12514,而不能通过TNS获得ORA-12514? - Why do I get ORA-12514 with easy connect but not with TNS? 使用Spring jdbc模板的Oracle连接ORA-12514 - Oracle connection using Spring jdbc template, ORA-12514 oracle sql developer-ora-12514 错误 - oracle sql developer- ora-12514 error Oracle 数据库错误 12514:ORA-12514:TNS:侦听器当前不知道连接描述符中请求的服务 - Oracle database error 12514: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor expressjs oracledb { [错误:ORA-12514:TNS:侦听器当前不知道连接描述符中请求的服务] errorNum:12514,偏移量:0 } - expressjs oracledb { [Error: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor] errorNum: 12514, offset: 0 }
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM