In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article is about what commands are available in ASMCMD. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Md_backup: back up the metadata in disk group to a file; md_backup / tmp/backupfile-G DATAGP
Md_restore: restore metadata in backup files to disk group; md_restore-full-G data-- silent / tmp/file
Lsattr: lists the attributes of disk group; lsattr-l-G DATAGP
Setattr: sets the properties of disk group; setattr-G DATAGP compataible.asm 11.2.0.0.0
Cd, cp, du, help, ls, makedir, pwd, rm
Find: find; find-- type CONTROLFILE + data/orcl *
Lsct: display v$asm_client information, ASM client information; lsct DATAGP
Lsdg: displays the information of diskgroup, v$asm_diskgroup and vastasmmessages diskgroupstats; lsdg DATAGP
Lsof: open files; lsof-G DATAGP displaying local clients
Mkalias: give the file an alias; mkalias SYSAUX.235.34323 sysaux.f; ls-- absolutepath can view
Rmalias: delete aliases; rmalias sysaux.f
Chdg: modify disk group, add, or drop disk; chdg DATAGP_config.xml
Chkdg: metadata; chkdg of check or repair disk group-- repair DATAGP
Dropdg: drop disk group; dropdg-r-f DATAGP
Iostat: check out the iostat O statics via iostat asmless diskstats-G stats.
Lsdsk: list ASM disks; lsdsk-p-G DATAGP / dev/raw/*; lsdsk-- candidate-p
Lsod: list open ASM disks; lsod-G DATAGP
Mkdg: create disk group based on a xml file; mkdg DATAGP_config.xml
Mount: mount a disk group; mount-f DATAGP; mount-- restrict DATAGP; mount-a
Offline: offline disks or failure groups that belong to disk group. Offline-G DATAGP-F FG1
Online: online disks or a failure group; online-G DATAGP-D data_0001-- power=3
Rebal: rebalance a disk group; rebal-- power 4 DATAGP
Remap: mark blocks as unusable on the disk and relocates data; remap DATAGP data_0001 50000700
Umount: dismount a disk group; unmount-f DATAGP
Pwcopy: copy password file; pwcopy-- asm + DG/mydir/mypwfile + DG1/mypwfile
Pwcreate: create password file for sys; pwcreate-- asm + DG/mdir/mypwfile 'welcome'
Pwdelete: delete password file; pwdelete-- asm + DG/mydir/mypwfile
Pwget: get the location of password file; pwget-- asm
Pwmove: move password file; pwmove-- asm + DG/mydir/mypwfile + DG1/mypwfile
Pwset: set the location of password file; pwset-dbuniquename aime1 + DG/mydir/mypwfile
Dsget: get the discovery disk string; dsget
Dsset: set the discovery disk string; dsset / dev/raw/*
Lsop: list current operations on disk group from vastly operating; lsop
Shutdown: shutdown ASM instance; shut immediate
Spbackup: backup ASM Spfile; spbackup + DATA/asm/asmprameterfile/register.323.234
+ DATA/spf.bak
Spcopy: copy spfile; spcopy + DATA/asm/asmprameterfile/register.323.234 + DATA/spf.ora
Spget: get the spfile location; spget
Spmove: move spfile; spmove + DATA/spf.ora + DATA1/spf.ora
Spset: set the location of spfile; spset + DATA/spf.ora
Startup: startup ASM instance; startup-nomount-pfile asm.ora
Chtmpl: change the properties of template; chtmpl-G DATAGP-- redundancy high-- striping fine mytemplate
Lstmpl: list templates; ls-l-G DATAGP
Mktmpl: add template to disk group; mktmpl-G DATA-- redundancy mirror-- striping coarse
Mytp
Rmtmpl: remove template from disk group; rmtmpl-G DATAGP mytp
Chgrp: change user group of files; chgrp asm-data + data/mydir/a.f
Chmod: change permissions of files; chmod 640a.f; ls-- permission a.f
Chown: change owner of files; chown user:usergroup a.f
Groups: list all user groups of a user; groups DATAGP user
Grpmod: add or remove OS users to ASM user group; grpmod-- add fra asm_fra oracle1 oracle2
Lsgrp: list all ASM user groups; lsgrp-a
Lspwusr: list users from ASM password file; lspwusr
Lsusr: list users in a disk group; lsusr-G DATAGP
Mkgrp: create new ASM user group; mkgrp DATAGP asm_data oracle1 oracle2
Mkusr: add OS user to a disk group; mkusr DATA oracle1
Orapwusr: add, drop, modify ASM password file user; orapwusr-add-privilege sysdba hrusr
Passwd: change password of a user; passwd oracle2
Rmgrp: remove a user group from disk group; rmgrp DATAGP asm_data
Rmusr: remove an OS user from disk group; rmusr DATAGP oracle2
Rpusr: replace OS user1 with OS user2; rpusr DATAGP oracle1 oracle2
Volcreate: create an ADVM volume in disk group; volcreate-G DATA-s 10G-- width 64K-- column 8 volume1
Voldelete: delete an ADVM volume; voldelete-G DATAGP volume1
Voldisable: disable an ADVM volumes in mounted disk groups and remove the volume device on the local node; voldisable-G DATAGP volume1
Volenable: enable ADVM volume in mounted disk groups; volenable-G DATAGP volume1
Volinfo: display information of ADVM volumes; volinfo-G DATAGP volume1
Volresize: resize an ADVM volume; volresize-G DATAGP-s 20G volume1
Volset: set attributes of ADVM volume; volset-G DATA-- usagestring'no file system attached' volume1
Volstat: report statistics of ADVM volume; volstat O statistics of ADVM volume; volstat-G DATAGP
Thank you for reading! This is the end of this article on "what are the orders in ASMCMD"? I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.