怎样进行ASM安装

发布时间:2021-11-09 10:09:37 作者:柒染
来源:亿速云 阅读:154

本篇文章为大家展示了怎样进行ASM安装,内容简明扼要并且容易理解,绝对能使你眼前一亮,通过这篇文章的详细介绍希望你能有所收获。

ASM学习笔记_ASM安装

Refer to the <<Oracle Database Installation Guide>> for your operating system for details on installing ASM.

1 ASM’s installtion can be done by DBCA.

2 如果是非RAC环境下使用ASM, 需要在安装ASM之前用脚本$ORACLE_HOME/bin/localconfig add 启动CSS服务

CSS服务在单实例下的作用还有待确认?

只需启动CSS服务,用来实现ASM实例与RDBMS实例之间的通信
The Cluster Synchronization Services (CSS) daemon is required to enable synchronization between ASM and its client

database instances.


Oracle> su - root
password: xxxx

# /opt/oracle/product/10gr2/bin/localconfig delete
Stopping CSSD.
Unable to communicate with the CSS daemon.
Shutdown has begun. The daemons should exit soon.

#/opt/oracle/product/10gr2/bin/localconfig add

/etc/oracle does not exist. Creating it now.
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Configuration for local CSS has been initialized

Adding to inittab
Startup will be queued to init within 90 seconds.
Checking the status of new Oracle init process...
Expecting the CRS daemons to be up within 600 seconds.

...........

Giving up: Oracle CSS stack appears NOT to be running.
Oracle CSS service would not start as installed
Automatic Storage Management(ASM) cannot be used until Oracle CSS service is starte

启动不了

查看/opt/oracle/product/10gr2/log/z810/client/css.log
[ CSSCLNT][2550264832]clsssInitNative: connect failed, rc 9

运行DBCA过程中报如下错误
Oracle> $ORACLE_HOME/bin/dbca

报错:ORA-29701:Unable to connect to Cluster Manager


单实例下如何启动CRS,CSS,EVM
/etc/init.d/start crs
/etc/init.d/start css
/etc/init.d/start evm


Oracle@Z810:/opt/oracle/product/10gr2/bin/crsctl check crs
Failure 1 contacting CSS daemon
Cannot communicate with CRS
Cannot communicate with EVM

Oracle@Z810:/opt/oracle/product/10gr2/bin/crsctl start crs
Attempting to start CRS stack
The CRS stack will be started shortly


Oracle@Z810:/opt/oracle/product/10gr2/bin/crsctl check crs
Failure 1 contacting CSS daemon
Cannot communicate with CRS
Cannot communicate with EVM

启动不了

在尝试了n次后终于成功了
可能的问题

1 由于在同一个节点上安装了两个Oracl版本:9i,10g.有两个ORACLE_HOME,造成混乱
在有多个ORACLE_HOME的环境下,似乎可以通过/opt/oracle/product/10gr2/bin/localconfig reset来设置环境变量
/opt/oracle/product/10gr2/bin/localconfig  $ORACLE_HOME
是这样吗? 尝试几次都未能成功


2 每尝试一次前应先将LISTENER与各个后台进程建立连接的IPC Socket临时文件删除
rm -f /var/tmp/.oracle/*
rm -f /tmp/.oracle/*
rm -f /usr/tmp/.oracle/*

3 启动监听

4 /opt/oracle/product/10gr2/bin/localconfig add
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Configuration for local CSS has been initialized

Adding to inittab
Startup will be queued to init within 90 seconds.
Checking the status of new Oracle init process...
Expecting the CRS daemons to be up within 600 seconds.
CSS is active on these nodes.
        z810
CSS is active on all nodes.
Oracle CSS service is installed and running under init(1M)

5 oracle@Z810:/var/tmp/.oracle> /opt/oracle/product/10gr2/bin/crsctl check crs

CSS appears healthy
Cannot communicate with CRS
Cannot communicate with EVM

上述内容就是怎样进行ASM安装,你们学到知识或技能了吗?如果还想学到更多技能或者丰富自己的知识储备,欢迎关注亿速云行业资讯频道。

推荐阅读:
  1. 安装grid时找不到ASM共享磁盘
  2. Oracle-ASM安装教程

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

asm

上一篇:数据库中如何查看所有外键

下一篇:如何解决php7提示500错误

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》