You are on page 1of 2

ASM Diskgroups

Create diskgroup Manually start CSSD (non-RAC)


CREATE DISKGROUP disk_group_1 NORMAL /etc/init.d/init.cssd start
REDUNDANCY
FAILGROUP failure_group_1 DISK
Manually stop CSSD (non-RAC)
'/devices/diska1' NAME diska1, /etc/init.d/init.cssd stop
'/devices/diska2' NAME diska2,
FAILGROUP failure_group_2 DISK
'/devices/diskb1' NAME diskb1, Resetting CSS to new Oracle Home
'/devices/diskb2' NAME diskb2; localconfig reset /apps/oracle/product/11.1.0/ASM

Drop disk groups ASM Dictionary Views


DROP DISKGROUP DATA INCLUDING CONTENTS; v$asm_alias Lists all aliases in all currently
mounted diskgroups
Add disks v$asm_client Lists all the databases
ALTER DISKGROUP DATA ADD DISK '/dev/sda3; currently accessing the
Viskosity Technologies diskgroups
Drop a disk v$asm_disk Lists all the disks discovered
ALTER DISKGROUP DATA DROP DISK DATA_0001; by the ASM instance
v$asm_diskgroup Lists all the diskgroups
Resize all disks in a disk group discovered by the ASM
Leaders in Oracle VISion and ALTER DISKGROUP DATA RESIZE ALL SIZE 100G; instance
v$asm_file Lists all files that belong to
Knowledge UNDROP DISKS clause of the ALTER diskgroups mounted by the
DISKGROUP ASM instance
ALTER DISKGROUP DATA UNDROP DISKS; v$asm_operation Reports information about
current active operations.
Automated Storage Management Rebalance diskgroup Rebalance activity is
reported in this view
ALTER DISKGROUP DATA REBALANCE POWER 5;
(ASM) Pocket Reference Guide
v$asm_template Lists all the templates
Check Diskgroup currently mounted by the
alter diskgroup data check; ASM instance
alter diskgroup data check norepair; v$asm_diskgroup_stat same as v$asm_diskgroup
VISKosity professionals are experts in the areas of: but does discover new
Diskgroup Metadata Backup diskgroups. Use this view
Real Application Clusters (RAC) - 9i, 10g, 10gR2 and 11g md_backup -b asm_backup.mdb.txt instead of v$asm_diskgroup
-g data,fra v$asm_disk_stat same as v$asm_disk but
EBusiness Suite Administration (11i and 12i)
does not discover new disks.
Data Warehousing ASM Specific Init.ora Use this view instead of
Parameters v$asm_disk
Business Intelligence *.cluster_database= true
*.asm_diskstring = srvctl commands
Database Security /dev/sd*1 ADD
Enterprise Systems Management (ITIL and ITSM) *.instance_type=asm srvctl add asm -n rac3 -i +ASM3 -o
*.shared_pool_size=100M /opt/oracle/app/product/10.2/asm
*.large_pool_size = 80M
Email: info@Viskosity.com *.db_cache_size=60M ENABLE
*.asm_diskgroups = srvctl enable asm -n rac3 -i +ASM3
Phone: 214.502.1231 DATA,FRA
DISABLE
URL: http://viskosity.com Initialize ASM for non-RAC srvctl disable asm -n rac3 -i +ASM3
./localconfig add
ls +data/testdb Lists the contents of an ASM
START directory, the attributes of the Database INIT parameters for ASM
srvctl start asm -n rac3 specified file, or the names and *.control_files='+DATA/visk/controlfile/control1.ctl','+FRA/visk/
attributes of all disk groups controlfile/control2.ctl'
STOP lsct Lists information about current *.db_create_file_dest='+DATA'
srvctl stop asm -n rac3 ASM clients *.db_create_online_log_dest_1='+DATA'
lsdg Lists all disk groups and their *.db_recovery_file_dest='+DATA
CONFIG attributes *.log_archive_dest_1='LOCATION=+DATA
srvctl config asm n rac1 mkalias Creates an alias for a system- *.log_file_name_convert='+DATA/VISKDR','+DATA/VISK' ##
generated filename added for DG
mkdir Creates ASM directories
REMOVE pwd Displays the path of the current Migrate to ASM using RMAN
srvctl remove asm n rac1 ASM directory run
rm Deletes the specified ASM files or {
STATUS rm -f directories backup as copy database format '+DATA';
srvctl status asm switch database to copy;
rmalias Deletes the specified alias,
srvctl status asm n rac1 # For each logfile
retaining the file that the alias
points to sql "alter database rename '/data/oracle/VISK/redo1a.rdo' to
MODIFY '+DATA'";
lsdsk Lists disks visible to ASM
srvctl modify asm o -n rac1 alter database open resetlogs;
md_backup Creates a backup of all of the # For each tempfile
ASMLIB commands (as sql "alter tablespace TEMP add tempfile";
mounted disk groups
root) md_restore Restores disk groups from a }
/etc/init.d/oracleasm start
backup
/etc/init.d/oracleasm stop
mkalias Creates an alias for system- Restore Database to ASM using SET NEWNAME
/etc/init.d/oracleasm restart
generated filenames run
/etc/init.d/oracleasm configure
remap Repairs a range of physical blocks {
/etc/init.d/oracleasm status
on a disk allocate channel d1 type disk;
/etc/init.d/oracleasm enable
cp Copies files into and out of ASM: # For each datafile
/etc/init.d/oracleasm disable
ASM diskgroup to OS file set newname for datafile 1 to '+DATA';
/etc/init.d/oracleasm listdisks
system restore database;
/etc/init.d/oracleasm deletedisk
OS file system to ASM switch datafile all;
/etc/init.d/oracleasm scandisks
diskgroup release channel d1;
/etc/init.d/oracleasm querydisk
ASM diskgroup to another }
/dev/sdd1
/etc/init.d/oracleasm createdisk ASM diskgroup on the same
VOL1 /dev/sdb1 server
/etc/init.d/oracleasm renamedisk ASM disk group to ASM
/dev/sdb1 VOL1 diskgroup on a remote
server

asmcmd Commands SYSASM Role (Starting in Oracle Database


cd Changes the current directory to
11g)
the specified directory SQL> Grant sysasm to sys; -- sysdba deprecated
du Displays the total disk space sqlplus / as sysasm
occupied by ASM files in the
specified ASM directory and all
its subdirectories, recursively ASM Rolling Upgrades
START
find Lists the paths of all occurrences
alter system start rolling migration to 11.2.0.2;
of the specified name (with
wildcards) under the specified
directory DISABLE Copyright 2008 This material may not be reproduced without
alter system stop rolling migration; the expressed consent of a Viskosity officer

You might also like