ORACLE 数据库系统级拷贝的问题

luguang 2014-05-25 04:41:34
大家好:
问题描述如下:现有一台正常运行在VM上的windows 2008系统,在上面装了ORACLE 11G r2,数据库可以正常运行,无任何问题,但是我将此虚拟机拷贝出来,重新启动后,虚拟机可以正常运行,但是原来的11G r2的数据库却运行不了,找了很多资料都说是要改主机名,配置信息等,但是改了仍然不可以让数据库正常的运行,连接数据库的时候总是报错:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
求高手指点!
非常感谢
...全文
322 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
tomshenhao 2014-06-06
  • 打赏
  • 举报
回复
如果是主机名不同,参照下面的修改。 1. 停数据库,停监听器,修改操作系统主机名,重启操作系统; 2. 修改C:\WINDOWS\system32\drivers\etc下面的hosts文件中的主机名; 3. 使用Net Configuration Assistant重建监听器; 4. 使用Net Manger修改”服务命名”和”监听程序”中有关主机名的部分; 5. 重启监听器:lsnrctl restart 如果是IP地址变更,查看一下服务器上的hosts文件内容。
c_sdn_shang_bu_qi 2014-06-06
  • 打赏
  • 举报
回复
首先出现这个错误,可能是下面几种情况吧 1,oracle没有正常关闭。ps aux|grep ORA 然后kill -9 进程名,杀死进程重新启动试试 2,oracle要求ip地址唯一, 你看下配置回来原来的ip地址试试。或者重新配置下监听。有对应ip的 3,/etc/hosts是否配置有ip对应的服务名
huangdh12 2014-06-06
  • 打赏
  • 举报
回复
再看了一下, ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exist 提示是数据库没有启动起来而已,看看alert日志的告警内容。 1.会不会是你的数据库自启动有问题了 2.如果没有自启动,你的数据库服务没有手动开启
卖水果的net 2014-05-28
  • 打赏
  • 举报
回复
修改了主机名是一个方面,你把 VM 拷走了,内存的配置,你是不是改动了,比如原来你给 VM 分配了4G, 等你拷走了,只分配给了2G ?
feihuchina 2014-05-28
  • 打赏
  • 举报
回复
同时,看一下, 主机IP和主机名,与/etc/hots中配置的是否一致, 另外,检查一下,是不是变化前后虚拟机内存大小变化过。
feihuchina 2014-05-28
  • 打赏
  • 举报
回复
Symptom(s) ~~~~~~~~~~ Database has been configured to start automatically whenever the server is rebooted. But the database does not start and any query to the database fails with Ora-27101 and Ora-1034 errors. Same errors are reported in the Oradim.log. ORA-01034 ORACLE not available ORA-27101 "Shared Memory Realm Does Not Exist" Change(s) ~~~~~~~~~~ DBAs are trying to automate the startup of the database when server reboots. The Registry key ORA_<SID>_AUTOSTART is set to TRUE and ORA_<SID>_PFILE is pointing to correct location. The "startmode" of Oracle service ORACLESERVICE<SID> has been set to AUTOMATIC. Cause ~~~~~~~ The Oracle service ORACLESERVICE<SID> got corrupted for some unknown reasons and does not start the database successfully Fix ~~~~ Recreate the Oracle service using ORADIM utility a) delete the current service - c:\> oradim -delete -sid <sid_name> b) make sure the service has status DISABLED in Service Windows and it does not appear after refreshing the Service Windows. If the service still appears, reboot the server. c) create the service c:\> oradim -new -sid <sid> -startmode auto -pfile <absolute path of init.ora> References ~~~~~~~~~~~
huangdh12 2014-05-26
  • 打赏
  • 举报
回复
你拷贝的时候,虚拟机的数据库服务有没有关闭的啊?
乐快乐 2014-05-26
  • 打赏
  • 举报
回复
在百度上帮你找了下资料: http://blog.csdn.net/lpioneer/article/details/6109933 结果又回到csdn,真神奇。
小灰狼W 2014-05-26
  • 打赏
  • 举报
回复
ip变了吧 看看alert日志报什么错

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧