Prev | Current Page 210 | Next

Richard Niemiec

"Oracle Database 10g Performance Tuning Tips & Techniques"

In this example, you
asmcmd Command 11g Only Description
cd Change the directory to the specified directory.
cp Y Copy files between ASM disk groups, both in the same
instance and in remote instances.
du Recursively displays total disk space usage for the current
directory and all subdirectories.
exit Terminate asmcmd and return to the operating system
shell prompt.
find Find all occurrences of the name (using wildcards as
well), starting with the specified directory.
help List the asmcmd commands.
ls List the contents of the current directory.
lsct Lists information about current ASM client databases.
lsdg Lists all disk groups and their attributes.
lsdsk Y Lists all disks visible to this ASM instance.
md_backup Y Create metadata backup script for specified disk groups.
md_restore Y Restore disk groups from a backup.
mkalias Creates an alias for system-generated ASM filenames.
mkdir Create an ASM directory.
pwd Display the current ASM directory.
remap Y Repair a range of corrupted or damaged physical blocks
on a disk.
rm Remove ASM files or directories.
rmalias Remove an ASM alias, but not the target of the alias.
TABLE 4-7 asmcmd Command Summary
118 Oracle Database 11g DBA Handbook
start asmcmd and query the existing disk groups, along with the total disk space used within all
disk groups:
[oracle@dw ~]$ asmcmd
ASMCMD> ls ??“l
State Type Rebal Unbal Name
MOUNTED NORMAL N N DATA/
MOUNTED HIGH N N DATA2/
MOUNTED NORMAL N N RECOV/
ASMCMD> du
Used_MB Mirror_used_MB
2143 4399
ASMCMD> pwd
+
ASMCMD>
As with the Linux shell ls command, you can append ??“l to get a more detailed listing of the
objects retrieved by the command.


Pages:
198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222
tanie noclegi mielno asus netbooki Chirurg łódź Namioty Mazury i interesująca cena Szkoły policealne fryzjer w warszawie