ORA-00000 normal, successful completion

本文介绍因hosts文件配置错误导致Oracle数据库启动失败的问题及解决方法。通过调整hosts文件中的条目,成功解决了使用sqlplus登录后执行startupnomount命令时报错ORA-00000的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

当hosts文件配置错误时,用sqlplus登录后startup nomount,就会报错ORA-00000


[oracle11g@xulq dbs]$ sqlplus "/ as sysdba"


SQL*Plus: Release 11.2.0.4.0 Production on Mon Apr 21 13:48:32 2014


Copyright (c) 1982, 2013, Oracle. All rights reserved.


Connected.
SQL> startup nomount
ORA-00000: normal, successful completion
SQL> alter database mount;
ERROR:
ORA-01012: not logged on


SQL>


[root@xulq etc]# cat hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.19.205.30 xulq1


修改host文件后:


[root@xulq etc]# cat hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.19.205.30 xulq


再次启动:
SQL> startup nomount
ORACLE instance started.


Total System Global Area 1052274688 bytes
Fixed Size 2259840 bytes
Variable Size 1023411328 bytes
Database Buffers 20971520 bytes
Redo Buffers 5632000 bytes
SQL>


正常。


另外,除了写错,如果丢失hosts文件,startup nomount时也会同样报错ORA-00000
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值