Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

create script to connect to asmcmd prompt

user11958935Sep 2 2012 — edited Sep 3 2012
Hi All,


I want to create script to connect to backend to asmcmd prompt through linux shell script and change directory and check file .

#!/bin/sh

export ORACLE_HOME=/u02/oracle/asm/product/11.2.0/grid
export ORACLE_SID=+ASM
asmcmd lsdg

doing this iam able to list disk groups but when iwant to go in disk group by using

asmcmd cd <diskgroupname>

I cnt to this .Kindly help...


Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 1 2012
Added on Sep 2 2012
8 comments
865 views