ASM Command-Line Utility(ASMCMD)


ASMCMD is a command-line utility that you can use to easily view and manipulate files and directories within Automatic Storage Management (ASM) disk groups. It can list the contents of disk groups, perform searches, create and remove directories and aliases, display space utilization, and more.


Table 20-1 Summary of ASM Commands

CommandDescription
cdChanges the current directory to the specified directory.
duDisplays the total disk space occupied by ASM files in the specified ASM directory and all its subdirectories, recursively.
exitExits ASMCMD.
findLists the paths of all occurrences of the specified name (with wildcards) under the specified directory.
helpDisplays the syntax and description of ASMCMD commands.
lsLists the contents of an ASM directory, the attributes of the specified file, or the names and attributes of all disk groups.
lsctLists information about current ASM clients.
lsdgLists all disk groups and their attributes.
mkaliasCreates an alias for a system-generated filename.
mkdirCreates ASM directories.
pwdDisplays the path of the current ASM directory.
rmDeletes the specified ASM files or directories.
rmaliasDeletes the specified alias, retaining the file that the alias points to.

he asmcmd utility supports all common Linux commands:

    ASMCMD> ls -alt -- list directory contents

    ASMCMD> cd -- change directory

    ASMCMD> mkdir -- create (make)directory

    ASMCMD> du -- display directory space

    ASMCMD> find -- standard UNIX find command

    ASMCMD> rm -- remove file/directory

    ASMCMD> lsdg -- list diskgroups

    ASMCMD> pwd -- display current directory

Plus, we see some Oracle-only asmcmd commands:

    ASMCMD> lsct -- list all connected Oracle instances




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值