ITPub博客

首页 > Linux操作系统 > Linux操作系统 > screen命令

screen命令

原创 Linux操作系统 作者:myownstars 时间:2011-03-11 16:03:01 0 删除 编辑

输入screen开启一个会话,进入rman备份数据库
[oracle@testdb2 ~]$ screen
[oracle@testdb2 ~]$ rman target /

Recovery Manager: Release 10.2.0.5.0 - Production on Fri Mar 11 16:10:41 2011

Copyright (c) 1982, 2007, Oracle.  All rights reserved.

connected to target database: justin (DBID=661777781)

RMAN> backup database;

Starting backup at 11-MAR-11
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=6564 devtype=DISK
channel ORA_DISK_1: starting full datafile backupset
假如此时网络断开,则需要重新登录
首先查看当前的screen session信息
[oracle@testdb2 ~]$ screen -ls
There is a screen on:
        28761.pts-1.testdb2     (Detached)
1 Socket in /tmp/uscreens/S-oracle.
然后连接进入,可以看到原来的rman进度
[oracle@testdb2 ~]$ screen -r 28761


Copyright (c) 1982, 2007, Oracle.  All rights reserved.

connected to target database: justin (DBID=661777781)

RMAN> backup database;

Starting backup at 11-MAR-11
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=6564 devtype=DISK
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00002 name=/data/oracle/oradata/justin/undotbs01.dbf
input datafile fno=00014 name=/data/oracle/oradata/justin/user.dbf
input datafile fno=00001 name=/data/oracle/oradata/justin/system.dbf
input datafile fno=00003 name=/data/oracle/oradata/justin/sysaux.dbf
input datafile fno=00015 name=/data/oracle/oradata/justin/test01.dbf
channel ORA_DISK_1: starting piece 1 at 11-MAR-11

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/15480802/viewspace-689172/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2010-03-18

  • 博文量
    375
  • 访问量
    3165463