Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1278487
  • 博文数量: 1211
  • 博客积分: 10010
  • 博客等级: 上将
  • 技术积分: 14340
  • 用 户 组: 普通用户
  • 注册时间: 2008-06-09 11:20
文章分类

全部博文(1211)

文章存档

2011年(1)

2008年(1210)

我的朋友

分类: 服务器与存储

2008-06-16 19:24:09

Oracle10g新增命令用以简化用户管理的备份,可以通过
  
  alter database begin/end backup来进行数据库备份模式的切换。
  $ sqlplus "/ as sysdba"
  
  SQL*Plus: Release 10.1.0.2.0 - Production on Wed Apr 6 22:31:33 2005
  
  Copyright (c) 1982, 2004, Oracle. All rights reserved.
  
  Connected to:
  Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit Production
  With the Partitioning, OLAP and Data Mining options
  
  SYS AS SYSDBA on 06-APR-05 >alter database begin backup;
  
  Database altered.
  
  SYS AS SYSDBA on 06-APR-05 >desc v$backup
   Name                   Null?  Type
   ----------------------------------------- -------- ----------------------------
   FILE#                       NUMBER
   STATUS                       VARCHAR2(18)
   CHANGE#                      NUMBER
   TIME                        DATE
  
  SYS AS SYSDBA on 06-APR-05 >select * from v$backup;
  
     FILE# STATUS        CHANGE# TIME
  ---------- ------------------ ---------- ------------
       1 ACTIVE        11000149 06-APR-05
       2 ACTIVE        11000149 06-APR-05
       3 ACTIVE        11000149 06-APR-05
       4 ACTIVE        11000149 06-APR-05
       5 ACTIVE        11000149 06-APR-05
       6 ACTIVE        11000149 06-APR-05
       7 ACTIVE        11000149 06-APR-05
       9 ACTIVE        11000149 06-APR-05
      10 ACTIVE        11000149 06-APR-05
      11 ACTIVE        11000149 06-APR-05
  
  10 rows selected.
  
  SYS AS SYSDBA on 06-APR-05 >alter database end backup;
  Database altered.
  
  SYS AS SYSDBA on 06-APR-05 >select * from v$backup;
  
     FILE# STATUS        CHANGE# TIME
  ---------- ------------------ ---------- ------------
       1 NOT ACTIVE      11000149 06-APR-05
       2 NOT ACTIVE      11000149 06-APR-05
       3 NOT ACTIVE      11000149 06-APR-05
       4 NOT ACTIVE      11000149 06-APR-05
       5 NOT ACTIVE      11000149 06-APR-05
       6 NOT ACTIVE      11000149 06-APR-05
       7 NOT ACTIVE      11000149 06-APR-05
       9 NOT ACTIVE      11000149 06-APR-05
      10 NOT ACTIVE      11000149 06-APR-05
      11 NOT ACTIVE      11000149 06-APR-05
  
  10 rows selected.
  
  SYS AS SYSDBA on 06-APR-05 >
阅读(525) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~