Understanding ASM (5) ASM tool: asmcmd

Source: Internet
Author: User
[oracle@localhost ~]$ asmcmd help=y        commands:         --------          cd        du        find        help        ls        lsct        lsdg        mkalias        mkdir        pwd        rm        rmalias

① List Directory Information

ASMCMD> lsDATA/ASMCMD> ls -alState    Type    Rebal  Unbal  NameMOUNTED  NORMAL  N      N      DATA/ 

 

② Alias

ASMCMD> ls -alType       Redund  Striped  Time             Sys  NameONLINELOG  MIRROR  FINE     NOV 04 19:00:00  Y    none => group_4.256.798491239ASMCMD> mkalias group_4.256.798491239 redo_log_group_3.logASMCMD> ls -alType       Redund  Striped  Time             Sys  NameONLINELOG  MIRROR  FINE     NOV 04 19:00:00  Y    +DATA/ORCL/ONLINELOG/redo_log_group_3.log => group_4.256.798491239                                             N    redo_log_group_3.log => +DATA/ORCL/ONLINELOG/group_4.256.798491239

 

③ View space

ASMCMD> duUsed_MB      Mirror_used_MB     89                 179ASMCMD> lsdgState    Type    Rebal  Unbal  Sector  Block       AU  Total_MB  Free_MB  Req_mir_free_MB  Usable_file_MB  Offline_disks  NameMOUNTED  NORMAL  N      N         512   4096  1048576       701      358              101             128              0  DATA/

 

④ Search for files

ASMCMD> find +DATA redo*+DATA/ORCL/ONLINELOG/redo_log_group_3.log

 

⑤ Display the connection between ASM and database instances

ASMCMD> lsct

 

⑥ Delete an object

ASMCMD> rm  +DATA/ORCL/ONLINELOG/redo_log_group_3.log

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.