ASMCMD中有什么命令

這篇文章給大家分享的是有關(guān)ASMCMD中有什么命令的內(nèi)容。小編覺(jué)得挺實(shí)用的,因此分享給大家做個(gè)參考,一起跟隨小編過(guò)來(lái)看看吧。

讓客戶滿意是我們工作的目標(biāo),不斷超越客戶的期望值來(lái)自于我們對(duì)這個(gè)行業(yè)的熱愛。我們立志把好的技術(shù)通過(guò)有效、簡(jiǎn)單的方式提供給客戶,將通過(guò)不懈努力成為客戶在信息化領(lǐng)域值得信任、有價(jià)值的長(zhǎng)期合作伙伴,公司提供的服務(wù)項(xiàng)目有:域名與空間、虛擬空間、營(yíng)銷軟件、網(wǎng)站建設(shè)、五通橋網(wǎng)站維護(hù)、網(wǎng)站推廣。

md_backup: 將disk group中的metadata備份到文件; md_backup /tmp/backupfile -G DATAGP

md_restore: 將備份文件中的metadata恢復(fù)到disk group;  md_restore -full -G data --silent /tmp/file

lsattr: 列出disk group的屬性; lsattr -l -G DATAGP

setattr: 設(shè)置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: 給文件取個(gè)別名; 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通過(guò)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

感謝各位的閱讀!關(guān)于“ASMCMD中有什么命令”這篇文章就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,讓大家可以學(xué)到更多知識(shí),如果覺(jué)得文章不錯(cuò),可以把它分享出去讓更多的人看到吧!

本文標(biāo)題:ASMCMD中有什么命令
網(wǎng)站路徑:http://bm7419.com/article44/iicdee.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站建設(shè)、品牌網(wǎng)站建設(shè)動(dòng)態(tài)網(wǎng)站、品牌網(wǎng)站設(shè)計(jì)、微信公眾號(hào)手機(jī)網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

成都seo排名網(wǎng)站優(yōu)化