RAC下连接ASM实例正常,查询数据失败

[复制链接]
查看11 | 回复6 | 2008-8-13 23:11:47 | 显示全部楼层 |阅读模式
RAC节点1上
export ORACLE_SID=+ASM1
WWDB1:/u01/app/oracle$sqlplus / as sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Fri Aug 21 16:16:24 2009
Copyright (c) 1982, 2007, Oracle.All Rights Reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
SQL> select name from v$datafile;
select name from v$datafile
*
ERROR at line 1:
ORA-01507: database not mounted

SQL> alter database mount;
alter database mount
*
ERROR at line 1:
ORA-15000: command disallowed by current instance type

SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-15000: command disallowed by current instance type

SQL>
回复

使用道具 举报

千问 | 2008-8-13 23:11:47 | 显示全部楼层
这些都是在你的数据库里的查的,不是在ASM查的
回复

使用道具 举报

千问 | 2008-8-13 23:11:47 | 显示全部楼层
ASM只是提供了一个文件系统和卷管理功能
回复

使用道具 举报

千问 | 2008-8-13 23:11:47 | 显示全部楼层
export ORACLE_SID=+ASM1这样就到asm实例下了,你的查询查不了
回复

使用道具 举报

千问 | 2008-8-13 23:11:47 | 显示全部楼层
你要查datafile的话 进asmcmd看如果要看asm_disk的话 使用v$asm_disk
回复

使用道具 举报

千问 | 2008-8-13 23:11:47 | 显示全部楼层
原帖由 guoq.lee 于 2009-8-21 16:30 发表
ASM只是提供了一个文件系统和卷管理功能

理解了,以前一直未仔细研究asm的东西
回复

使用道具 举报

千问 | 2008-8-13 23:11:47 | 显示全部楼层
呵呵。这样能查出来就不正常了。
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行