备注:ORACLE_ BASE =/u01/app/oracle/
/u01/app/oracle/product/10.2.0/db_1/bin
3.3. 建密码文件
仍在$ORACLE_HOME/dbs目录,命令行运行: orapwd file=orapwd+ASM password=dba
3.4. 安装和配置CSS
$su – root
[root@/]#/u01/app/oracle/product/10.2.0/db_1/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 30 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. htsolaris
CSS is active on all nodes.
Oracle CSS service is installed and running under init(1M) 检查CSS服务开启没有 ps -ef|grep ocssd
备注:$ORACLE_ HOME=/u01/app/oracle/product/10.2.0/db_1
第 21 页 共 51 页
3.5. 启动实例
以oracle用户运行:
export ORACLE_SID=+ASM sqlplus / as sysdba
startup
第 22 页 共 51 页
3.6. 建spfile
SQL> create spfile from pfile;
3.7. 建diskgroup
create diskgroup dgroup1 normal redundancy
failgroup fgroup1 disk 'ORCL:VOL1','ORCL:VOL2' failgroup fgroup2 disk 'ORCL:VOL3','ORCL:VOL4';
查看
select name,state from v$asm_diskgroup;
show parameter asm_diskgroups;
3.8. 关闭ASM实例
SQL>shutdown immediate
第 23 页 共 51 页
4. 建ASM数据库
4.1. 以oracle用户登录,运行dbca
出现欢迎界面,点next
第 24 页 共 51 页
4.2. 选择create a database,点next
第 25 页 共 51 页