Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3214948
  • 博文数量: 710
  • 博客积分: 14546
  • 博客等级: 上将
  • 技术积分: 6738
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-30 10:20
文章分类

全部博文(710)

文章存档

2016年(1)

2014年(7)

2013年(22)

2012年(227)

2011年(322)

2009年(119)

2008年(12)

分类: Oracle

2012-02-28 21:47:24

ASMCMD工具的简单使用,功能有限.
[oracle@node1 ~]$ tail /etc/oratab
+ASM1:/u01/app/oracle/product/10.2.0/db_1:N
versid:/u01/app/oracle/product/10.2.0/db_1:N
[oracle@node1 ~]$ export ORACLE_SID=+ASM1
[oracle@node1 ~]$ asmcmd
ASMCMD>
        asmcmd [-p] [command]
        The environment variables ORACLE_HOME and ORACLE_SID determine the
        instance to which the program connects, and ASMCMD establishes a
        bequeath connection to it, in the same manner as a SQLPLUS / AS
        SYSDBA.  The user must be a member of the SYSDBA group.
        Specifying the -p option allows the current directory to be displayed
        in the command prompt, like so:
        ASMCMD [+DATAFILE/ORCL/CONTROLFILE] >
        [command] specifies one of the following commands, along with its
        parameters.
        Type "help [command]" to get help on a specific ASMCMD command.
        commands:
        --------
        cd
        du
        find
        help
        ls
        lsct
        lsdg
        mkalias
        mkdir
        pwd
        rm
        rmalias
ASMCMD> lsct       
#List all clients and their attributes from V$ASM_CLIENT
#lsct查看当前asm客户端
DB_Name   Status        Software_Version  Compatible_version  Instance_Name
versid    CONNECTED           10.2.0.5.0          10.2.0.5.0  versid1
ASMCMD> lsdg
#List all diskgroups and their attributes from V$ASM_DISKGROUP
#lsdg查看当前磁盘组的状态
  1. State Type Rebal Unbal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Name
  2. MOUNTED EXTERN N N 512 4096 1048576 15259 13714 0 13714 0 DATA/
ASMCMD> du
#查看总容量多大
Used_MB      Mirror_used_MB
   1451                1451
 
 
阅读(2817) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~