Database Reference
In-Depth Information
(which should be using a GRID_HOME location that is separate from your ORACLE_HOME loca-
tion. So, starting asmcmd might look like this:
/opt/oracle>export ORACLE_SID=+ASM1
/opt/oracle>asmcmd
The asmcmd tool provides a great deal of functionality, as seen in TableĀ 7.5 below:
TABleĀ 7.5 ASMCMD commands
Command
Purpose
Example
Cd
Changes ASM directory.
cd +group1
du
Gets disk use.
du
find
Finds directory or file.
find + rob11g
help
Displays the help screen.
help
ls
Lists files in directory.
ls -l
lsct
Lists all clients using the
ASM instance.
lsct
lsdg
Lists information on disk
groups in the ASM instance.
lsdg
lsdsk
Lists ASM visible disks.
Supported only in Unix.
lsdsk -k -d DATA *
mkalias
Creates an ASM alias for a
given ASM filename.
mkalias +cooked_dgroup1/11gDB/
controlfile/Current.258.613087119
+cooked_dgroup1/control01.ctl
Mkdir
Creates an ASM directory.
mkdir old
md_backup
Backs up ASM metadata.
md_backup -b /tmp/dgbackup070222 -g
dgroup1 -g dgroup2
md_restore
Restores ASM metadata.
md_restore -t full -g dgroup1 -i /
tmp/dgbackup070222
pwd
Locates where you are on
the ASM directory tree.
pwd
remap
Remaps a range of physical
blocks on disk.
remap data data_0003 6000-8000
Search WWH ::




Custom Search