连接 Oracle 11G R2 ASM实例

连接 Oracle 11G R2 ASM实例

开始连接ASM时候,效仿10G的方法却怎么都连接不到ASM
连接的都是idle实例

[root@tip02 ~]# su - oracle
[oracle@tip02 ~]$ export ORACLE_SID=+ASM2
[oracle@tip02 ~]$ sqlplus   / as  sysdba

SQL*Plus: Release 11.2.0.3.0 Production on Wed May 16 18:23:39 2012

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

Connected to an idle instance.



查看资料后,11G连接ASM与10G还是有变化,需要切换到grid用户
设置ORACLE_HOME再连接


[oracle@tip02 ~]$ su - grid
口令:

[grid@tip02 ~]$ oraenv 
ORACLE_SID = [+ASM2] ? 
The Oracle base remains unchanged with value /u01/app/grid

[grid@tip02 ~]$ sqlplus  / as  sysdba

SQL*Plus: Release 11.2.0.3.0 Production on Wed May 16 18:35:35 2012

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


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options

SQL> show  parameter sga

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
lock_sga                             boolean     FALSE
sga_max_size                         big integer 568M
sga_target                           big integer 0

SQL> select instance_name from v$instance;

INSTANCE_NAME
----------------
+ASM2

SQL> 

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值