使用root创建的asm,oracle dbca无法创建数据库:报错如下:
[oracle@db2 ~]$cat /oracle/app/oracle/base/cfgtoollogs/dbca/db1.log
Could not find ASM configured under /oracle/app/grid/11.2/gi. Use ASMCA to configure ASM.
查看集群资源ora.asm无法启动,但是可以从grid,sqlplus / as sysasm直接startup
crs_stat -t
使用grid重建ora.asm,注意使用grid用户添加并启动[不要使用root]
su - grid
srvctl add asm -h
srvctl remove asm
srvctl add asm -l LISTENER -p ‘/oracle/app/grid/11.2/gi/dbs/spfile+asm.ora’ -d ‘/dev/raw/raw*’
srvctl start asm -h
使用 ASM已经起来了
srvctl start asm
srvctl enable asm
或者先创建再修改指定两个参数的值 ASM_DISKSTRING
srvctl add asm
crsctl modify resource “ora.asm” -attr “AUTO_START=1”
srvctl modify asm -h
srvctl modify asm -d ‘/dev/raw/raw*’
srvctl modify asm -p ‘/oracle/app/grid/11.2/gi/dbs/spfile+ASM.ora’;
使用grid重新创建ora.asm, 已经能识别,提示NOT MOUNT,MOUNT之后已经能使用了
DiskGroup “DATA” does not exist or not mounted.
[oracle@db2 ~]$dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbname db -sid db1 -sysPassword oracle -systemPassword oracle -asmsnmpPassword oracle -storageType ASM -datafileDestination '+DATA/' -recoveryAreaDestination '+DATA/' -redoLogFileSize 50 -diskGroupName 'DATA' -responseFile NO_VALUE -characterset AL32UTF8 -nationalCharacterSet AL16UTF16 -sampleSchema false -automaticMemoryManagement true -totalMemory 1800
Copying database files
1% complete
3% complete
10% complete
17% complete
24% complete
31% complete
35% complete
Creating and starting Oracle instance
37% complete
42% complete
47% complete
52% complete
53% complete
56% complete
58% complete
Registering database with Oracle Restart
64% complete
Completing Database Creation
68% complete
71% complete
75% complete
85% complete
96% complete
100% complete
Look at the log file "/oracle/app/oracle/base/cfgtoollogs/dbca/db/db.log" for further details.
[oracle@db2 ~]$
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




