11.07.2015 Views

Oracle Database 11 g - Online Public Access Catalog

Oracle Database 11 g - Online Public Access Catalog

Oracle Database 11 g - Online Public Access Catalog

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 9 ■ STORAGE MANAGEMENT 395SAN administrators and SAs may receive alerts from the SAN monitoring tools that a particulardisk may go bad soon. For such situations, disks will have to be replaced and measures will need totake place so that it does not become an outage.asmcmd CommandsReleased as an ASM feature in <strong>Oracle</strong> <strong>Database</strong> 10g Release 2, asmcmd is a command-line utilityto access and manage files associated with the ASM diskgroups. The asmcmd utility has a myriadof enhancements in <strong>Oracle</strong> <strong>Database</strong> <strong>11</strong>g. asmcmd provides backward compatibility with <strong>Oracle</strong><strong>Database</strong> 10g ASM instances. You can use the <strong>Oracle</strong> <strong>Database</strong> <strong>11</strong>g asmcmd utility to manageyour <strong>Oracle</strong> <strong>Database</strong> 10g ASM environments. <strong>Oracle</strong> will support copying of the asmcmd executablefrom the <strong>Oracle</strong> <strong>Database</strong> <strong>11</strong>g software binary directory to an <strong>Oracle</strong> <strong>Database</strong> 10g Release 2software binary directory. The asmcmd utility will allow various <strong>11</strong>.1 functionality to be leveragedagainst a 10.x <strong>Oracle</strong> release.There are numerous improvements and additional options to the existing commands toasmcmd. The key commands set that will be discussed are as follows:ls• ls• lsdg• lsct• lsdsk• cpThe ls command now incorporates the -c and the -g options. The -c option displays informationfrom the V$ASM_DISKGROUP view or from the GV$ASM_DISKGROUP view if the -g flagis also provided. The -g option displays information from the GV$ASM_DISKGROUP_STAT orGV$ASM_DISKGROUP view if the -c flag is also provided. The -g flag queries the GV$ASM_DISKGROUP view and reports the instance ID (INST_ID) in the output. Here’s a sample outputfrom the -gc option:ASMCMD> ls -gcInst_ID Name1 DATA/1 FRA/lsdgThe lsdg command lists all diskgroups and their attributes from V$ASM_DISKGROUP. Thesyntax for the lsdg command is as follows:lsdg [-cgH] [group]In <strong>Oracle</strong> <strong>Database</strong> <strong>11</strong>g, two new options are provided—the -g and -c flags to the lsdgcommand. The -g flag queries the GV$ASM_DISKGROUP view and reports the instance ID

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!