1. Creation new diskgroup
[oracle]$
[oracle]$
export ORACLE_HOME=/u01/app/19.0/grid
export ORACLE_HOME=+ASM
$ORACLE_HOME/bin/sqlplus -s /nolog << EOF
connect /as sysasm
create diskgroup DATA external redundancy disk 'AFD:DATA01' ATTRIBUTE 'compatible.asm' = '19.0','compatible.rdbms' = '19.0','compatible.advm' = '19.0','au_size' = '1M';
export ORACLE_HOME=+ASM
$ORACLE_HOME/bin/sqlplus -s /nolog << EOF
connect /as sysasm
create diskgroup DATA external redundancy disk 'AFD:DATA01' ATTRIBUTE 'compatible.asm' = '19.0','compatible.rdbms' = '19.0','compatible.advm' = '19.0','au_size' = '1M';
exit;
EOF
EOF
-- checking disks
[oracle]$ asmcmd lsdsk
-- note
ALTER DISKGROUP DATA SET ATTRIBUTE 'compatible.asm' = '19.0';
ALTER DISKGROUP DATA SET ATTRIBUTE 'compatible.rdbms' = '19.0';
ALTER DISKGROUP DATA SET ATTRIBUTE 'compatible.advm' = '19.0';
2. Creation new volumes
[oracle]$
[oracle]$
export ORACLE_HOME=/u01/app/19.0/grid
export ORACLE_HOME=+ASM
asmcmd volcreate -G DATA -s 80g --column 8 oradata
asmcmd volcreate -G DATA -s 10g --column 8 oralog
export ORACLE_HOME=+ASM
asmcmd volcreate -G DATA -s 80g --column 8 oradata
asmcmd volcreate -G DATA -s 10g --column 8 oralog
3. Enable volumes
[oracle]$
asmcmd volenable --all
-- info about
asmcmd volinfo --all
-- info about
asmcmd volinfo --all
4. Creation file system
[root]#
[root]#
mkdir -p /u02/oradata/bank /u02/fra
mount -t acfs /dev/asm/oradata-360 /u02/oradata/bank
mount -t acfs /dev/asm/oradata-360 /u02/oradata/bank
No comments:
Post a Comment