oracleasm command
[root@oracle12cdb1 /]# oracleasm -V
oracleasm version 2.1.8
------------------------------------------
[root@oracle12cdb1 /]# oracleasm -h
Usage: oracleasm [--exec-path=<exec_path>] <command> [ <args> ]
oracleasm --exec-path
oracleasm -h
oracleasm -V
The basic oracleasm commands are:
configure Configure the Oracle Linux ASMLib driver
init Load and initialize the ASMLib driver
exit Stop the ASMLib driver
scandisks Scan the system for Oracle ASMLib disks
status Display the status of the Oracle ASMLib driver
listdisks List known Oracle ASMLib disks
querydisk Determine if a disk belongs to Oracle ASMlib
createdisk Allocate a device for Oracle ASMLib use
deletedisk Return a device to the operating system
renamedisk Change the label of an Oracle ASMlib disk
update-driver Download the latest ASMLib driver
-------------------------------------------------------------
[root@oracle12cdb1 /]# oracleasm status
Checking if ASM is loaded: yes
Checking if /dev/oracleasm is mounted: yes
----------------------------------------------------------
[root@oracle12cdb1 /]# oracleasm listdisks
CRS1
DATA1
FRA1
---------------------------------
[root@oracle12cdb1 /]# oracle querydisk CRS1
bash: oracle: command not found...
[root@oracle12cdb1 /]# oracleasm querydisk CRS1
Disk "CRS1" is a valid ASM disk
[root@oracle12cdb1 /]# oracleasm querydisk CRS2
Disk "CRS2" does not exist or is not instantiated
[root@oracle12cdb1 /]# oracleasm querydisk DATA1
Disk "DATA1" is a valid ASM disk
[root@oracle12cdb1 /]# oracleasm querydisk FRA1
Disk "FRA1" is a valid ASM disk
No comments:
Post a Comment