免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1649 | 回复: 0
打印 上一主题 下一主题

解决ora-01034\\27101的方法 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-12-21 08:44 |只看该作者 |倒序浏览
[oracle@oracle ~]$ sqlplus system/oracle

SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jun 15 10:51:48 2011

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

ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory


=========================================

原因:数据库还没有启动。
         应该这样启动:

Enter user-name:
ERROR:
ORA-01017: invalid username/password; logon denied


SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
[oracle@oracle ~]$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jun 15 10:53:28 2011

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

/etc/host.conf: line 1: bad command `192.168.1.155 oracle'
Connected to an idle instance.


         接下来输入
         SQL> startup
/etc/host.conf: line 1: bad command `192.168.1.155 oracle'
/etc/host.conf: line 1: bad command `192.168.1.155 oracle'
ORACLE instance started.

Total System Global Area  264241152 bytes
Fixed Size                  1218868 bytes
Variable Size              88082124 bytes
Database Buffers          171966464 bytes
Redo Buffers                2973696 bytes
Database mounted.
/etc/host.conf: line 1: bad command `192.168.1.155 oracle'
Database opened.
SQL> select * from V$version;

BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE    10.2.0.1.0      Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
++++++++++++++++++++++++++==
请注意其中的‘/etc/host.conf: line 1: bad command `192.168.1.155 oracle'’
是因为`192.168.1.155 oracle'’不因该放在/etc/host.conf里,而是应放在/etc/hosts中如下:
/etc/host.conf
order hosts,bind(默认保持不变)

修改/etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.1.155 localhost.localdomain     oracle
::1     localhost6.localdomain6 localhost6

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP