Chinaunix首页 | 论坛 | 博客
  • 博客访问: 87153
  • 博文数量: 7
  • 博客积分: 2545
  • 博客等级: 少校
  • 技术积分: 375
  • 用 户 组: 普通用户
  • 注册时间: 2006-05-10 11:29
文章分类

全部博文(7)

文章存档

2009年(1)

2008年(6)

我的朋友

分类: Oracle

2009-02-17 21:00:38

Remark set sql*plus variables to manipulate output
set feedback off heading off verify off trimspool off
set pagesize 0 linesize 200
Remark set sql*plus user variables used in this script
define dir = 'D:\Backup\chapt4'
define fil = 'D:\Backup\chapt4\closed_backup_commands.txt'
prompt *** spooling to &fil
Remark Create a command file with file backup commands
spool &fil
select 'host copy ' || name || ' &dir' from v$datafile order by 1;
select 'host copy ' || member || ' &dir' from v$logfile order by 1;
select 'host copy ' || name || ' &dir' from v$controlfile order by 1;
select 'host copy ' || name || ' &dir' from v$tempfile order by 1;
spool off;
Remark shutdown the database cleanly
shutdown immediate;
Remark Run the copy file commands from the operating system
@&fil
Remark Start the database again
startup;
阅读(846) | 评论(0) | 转发(0) |
0

上一篇:ORA-20000的解决方法

下一篇:没有了

给主人留下些什么吧!~~