IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    ORA-00230: operation disallowed: snapshot control file enqueue unavailable

    惜分飞发表于 2015-06-10 08:28:40
    love 0

    联系:手机(13429648788) QQ(107644445)

    链接:http://www.xifenfei.com/5931.html

    标题:ORA-00230: operation disallowed: snapshot control file enqueue unavailable

    作者:惜分飞©版权所有[文章允许转载,但必须以链接方式注明源地址,否则追究法律责任.]

    rman 备份控制文件报ORA-00230: operation disallowed: snapshot control file enqueue unavailable错误

    db1:/home/oracle>$rman target /
    
    Recovery Manager: Release 10.2.0.3.0 - Production on Wed Jun 10 16:00:08 2015
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    connected to target database: ORCL (DBID=1150889877)
    
    RMAN> backup current controlfile format '/tmp/xifenfei.ctl';
    
    Starting backup at 10-JUN-15
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=628 instance=orcl1 devtype=DISK
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    waiting for snapshot control file enqueue
    waiting for snapshot control file enqueue
    waiting for snapshot control file enqueue
    waiting for snapshot control file enqueue
    waiting for snapshot control file enqueue
    cannot make a snapshot control file
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 06/10/2015 16:03:10
    ORA-00230: operation disallowed: snapshot control file enqueue unavailable
    

    查看持有CF enqueue会话

    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, Real Application Clusters, OLAP and Data Mining options
    
    SQL> SELECT s.SID, USERNAME AS "User", PROGRAM, MODULE,
      2  ACTION, LOGON_TIME "Logon"
      3  FROM V$SESSION s, V$ENQUEUE_LOCK l
      4  WHERE l.SID = s.SID
      5  AND l.TYPE = 'CF'
      6  AND l.ID1 = 0
      7  AND l.ID2 = 2;
    
           SID User
    ---------- ------------------------------
    PROGRAM
    ------------------------------------------------
    MODULE
    ------------------------------------------------
    ACTION                           Logon
    -------------------------------- ------------
           648 SYS
    rman@db1 (TNS V1-V3)
    backup full datafile
    0000152 STARTED111               03-JUN-15
    

    kill相关session

    SQL> select spid from v$process where addr in(select paddr from v$session where sid=648);
    
    SPID
    ------------
    40108238
    
    SQL> !ps -ef|grep 40108238
      oracle 39125244 65011720   0 15:59:27  pts/0  0:00 grep 40108238
      oracle 40108238        1   0   Jun 03      -  1:18 oracleorcl1 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
    
    
    db1:/home/oracle>$kill -9 40108238
    

    再次测试备份控制文件–OK

    db1:/home/oracle>$rman target /
    
    Recovery Manager: Release 10.2.0.3.0 - Production on Wed Jun 10 16:05:06 2015
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    connected to target database: ORCL (DBID=1150889877)
    
    RMAN> backup current controlfile format '/tmp/xifenfei.ctl';
    
    Starting backup at 10-JUN-15
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=632 instance=orcl1 devtype=DISK
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    including current control file in backupset
    channel ORA_DISK_1: starting piece 1 at 10-JUN-15
    channel ORA_DISK_1: finished piece 1 at 10-JUN-15
    piece handle=/tmp/xifenfei.ctl tag=TAG20150610T160516 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
    Finished backup at 10-JUN-15
    
    • rman通过nfs备份
    • rman 备份出现ORA-00245/RMAN-08132
    • asm数据文件迁移(asm–>asm)
    • 给你的rman备份集加上密码锁
    • 议rman的crosscheck和obsolete
    • ORACLE 12C RMAN 功能增强
    • 非归档异常数据库rman备份
    • ORA-01578坏块解决(2)


沪ICP备19023445号-2号
友情链接