Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Oracle ASMCMD Command referenc

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

1. Instance management commands:

Dsget returns discovery diskstring

Dsset sets discovery diskstring

Lsct displays the client of the current oracle ASM, which generally refers to the database instance and ASM instance. The data comes from the V$ASM_CLIENT view.

Lsop displays the operations of the current disk group or ASM instance, with data from the V$ASM_OPERATION view

Lspwusr displays users in ASM password files

Orapwusr add, delete, modify ASM password file users

Shutdown shuts down ASM instance

Startup starts the ASM instance

Spbackup backup ASM SPFILE, does not affect GPnP profile; backup files are not recognized as SPFILE, cannot be copied with spcopy. To recognize the backup file as SPFILE, you must use the cp command

Spcopy copies ASM SPFILE. You cannot copy more than one copy on the same disk group. To update GPnP profile, use the-u option or the spset command

Spget returns the location of ASM SPFILE from GPnP profile

Spmove Mobile ASM SPFILE, automatically update GPnP profile. Cannot be moved when SPFILE is opened by an ASM instance

Spset sets the location of the ASM SPFILE

two。 File management commands:

Cd changes directories, using wildcards

Cp copies files between disk groups and between disk groups and the operating system. Cannot copy between two remote instances. Files of OCR and OCR backup types cannot use cp, but spbackup,spcopy,spmove

If it is a remote copy, the connection string style is: user@host [.port _ number] .Sid. Port_ number defaults to 1521

Du shows that the disk space used is in the specified directory (including subdirectories)

Find search, pay attention to case-sensitive

Ls displays the contents of the ASM directory

Lsof displays files that have been opened by the local client

Mkalias creates an alias for a system-generated file. Aliases and corresponding files must be on the same disk group and each ASM file can have only one alias

Mkdir creates an ASM directory

Pwd displays the path to the current directory

Rm deletes the specified file or directory. If it is an alias, it deletes the file corresponding to the alias and alias.

Rmalias deletes the specified alias

3. Disk group management command

Chdg modifies disk groups (add disks, delete disks, resize disks, rebalance disk groups, based on XML profiles)

Chkdg checks or repairs disk groups

Dropdg delete disk group

Iostat displays disk IO statistics, information from the V$ASM_DISK_IOSTAT view

Lsattr displays disk group properties, with information from the V$ASM_ATTRIBUTE view

Lsdg displays mounted disk groups and their information. Like the output of ls-ls, the information comes from the V$ASM_DISKGROUP_STAT view. If-- discovery is specified, query V$ASM_DISKGROUP.

Lsdsk displays ASM disks with information from the V$ASM_DISK_STAT view; connection mode query V$ASM_DISK_STAT and V$ASM_DISK returns information; non-connection mode returns information by scanning disk heads

Lsod displays devices that have been turned on

Md_backup creates a mounted disk group metadata backup

Md_restore recovery disk group metadata backup

Mkdg creates disk groups based on the XML profile. Note: disk groups created by mkdg are mounted only on local nodes

Mount mount disk group

Offline takes a disk or failed disk group offline

Online brings a disk or failed disk group online

Rebal rebalances the disk group

Remap relocates the range of physical blocks of data on disk

Setattr sets disk group properties

Umount unmount disk group

4. Template management commands:

Chtmpl modifies template properties

Lstmpl display template Properties

Mktmpl adds template to disk group

Rmtmpl removes a template from a disk group

5. File access management commands:

Chgrp modifies the user group of a file or file list

Permission for chmod to modify files or file lists

Chown modifies the owner of a file or file list

Groups displays the user group to which the user belongs

Grpmod adds or removes operating system users to / from existing user groups

Lsgrp displays user groups

Lsusr displays users in disk groups

Mkgrp creates a user group

Mkusr add operating system user to disk group

Passwd modifies a user's password

Rmgrp deletes a user group

Rmusr deletes a user

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.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report