ASMCMD中的各個命令
md_backup: 將disk group中的metadata備份到檔案; md_backup /tmp/backupfile -G DATAGP
md_restore: 將備份檔案中的metadata恢復到disk group; md_restore -full -G data --silent /tmp/file
lsattr: 列出disk group的屬性; lsattr -l -G DATAGP
setattr: 設定disk group的屬性; setattr -G DATAGP compataible.asm 11.2.0.0.0
cd, cp, du, help, ls, makedir, pwd, rm
find: 查詢; find --type CONTROLFILE +data/orcl *
lsct: 顯示v$asm_client的資訊, ASM client的資訊; lsct DATAGP
lsdg: 顯示disk group的資訊,v$asm_diskgroup and v$asm_diskgroup_stat; lsdg DATAGP
lsof: 顯示local clients的open files; lsof -G DATAGP
mkalias: 給檔案取個別名; mkalias SYSAUX.235.34323 sysaux.f; ls --absolutepath可以檢視
rmalias: 刪除別名; rmalias sysaux.f
chdg: 修改disk group, add或drop disk; chdg DATAGP_config.xml
chkdg: check 或 repair disk group 的metadata; chkdg --repair DATAGP
dropdg: drop disk group; dropdg -r -f DATAGP
iostat: 檢視I/O statics透過v$asm_disk_iostat; iostat -G DATAGP
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 500-700
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 v$asm_operation; 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: start up ASM instance; startup --nomount --pfile asm.ora
chtmpl:改變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 640 a.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 a 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 I/O statistics of ADVM volume; volstat -G DATAGP
md_restore: 將備份檔案中的metadata恢復到disk group; md_restore -full -G data --silent /tmp/file
lsattr: 列出disk group的屬性; lsattr -l -G DATAGP
setattr: 設定disk group的屬性; setattr -G DATAGP compataible.asm 11.2.0.0.0
cd, cp, du, help, ls, makedir, pwd, rm
find: 查詢; find --type CONTROLFILE +data/orcl *
lsct: 顯示v$asm_client的資訊, ASM client的資訊; lsct DATAGP
lsdg: 顯示disk group的資訊,v$asm_diskgroup and v$asm_diskgroup_stat; lsdg DATAGP
lsof: 顯示local clients的open files; lsof -G DATAGP
mkalias: 給檔案取個別名; mkalias SYSAUX.235.34323 sysaux.f; ls --absolutepath可以檢視
rmalias: 刪除別名; rmalias sysaux.f
chdg: 修改disk group, add或drop disk; chdg DATAGP_config.xml
chkdg: check 或 repair disk group 的metadata; chkdg --repair DATAGP
dropdg: drop disk group; dropdg -r -f DATAGP
iostat: 檢視I/O statics透過v$asm_disk_iostat; iostat -G DATAGP
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 500-700
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 v$asm_operation; 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: start up ASM instance; startup --nomount --pfile asm.ora
chtmpl:改變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 640 a.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 a 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 I/O statistics of ADVM volume; volstat -G DATAGP
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29209863/viewspace-2126224/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ASMCMD命令ASM
- asmcmd的cp命令小bugASM
- asmcmd命令學習ASM
- 【ASM】ASMCMD cp 命令ASM
- asmcmd命令用法教程ASM
- Oracle ASMCMD命令參考OracleASM
- asmcmd的一個問題ASM
- Oracle ASM使用asmcmd中的cp命令來執行遠端複製OracleASM
- oracle 11g rac asmcmd du 命令不顯示的一個情況OracleASM
- ASM命令列管理工具asmcmdASM命令列
- Activiti中的各個service的作用
- grid使用者asmcmd命令相關ASM
- 學習ASM技術(六)-- ASMCMD命令列ASM命令列
- spring中各個類的作用Spring
- 【asmcmd】使用asmcmd工具管理ASMASM
- oracle 11gR2 asmcmd工具增加 cp命令OracleASM
- asmcmdASM
- ELF檔案中的各個節區
- 深度解析原型中的各個難點原型
- ASMCMD - cpASM
- 使用asmcmdASM
- JS 中 this 在各個場景下的指向JS
- SQL Server中各個系統表的作用SQLServer
- ASMCMD命令複製檔案報錯ORA-15046ASM
- oracle 11.2 版本 asmcmd 針對 spfile 引數檔案增加的命令OracleASM
- RAC常用管理命令--查詢RAC叢集各種資訊命令-更新中
- mysql中的編碼各個變數的含義MySql變數
- js中各個型別之間的比較JS型別
- C#各個版本中的新增特性詳解C#
- asmcmd詳解ASM
- oracle asm asmcmdOracleASM
- ASM工具asmcmdASM
- Linux中10個有用的命令列補齊命令Linux命令列
- Linux各種命令Linux
- 統計一個字串中的單詞的個數,並列印各個單詞字串
- 如何遍歷物件直接量中的各個屬性物件
- Android中RelativeLayout各個屬性的含義Android
- NUnit 的各個版本