Chinaunix首页 | 论坛 | 博客
  • 博客访问: 241670
  • 博文数量: 51
  • 博客积分: 1507
  • 博客等级: 上尉
  • 技术积分: 630
  • 用 户 组: 普通用户
  • 注册时间: 2005-06-10 17:40
文章分类

全部博文(51)

文章存档

2012年(1)

2011年(3)

2010年(9)

2009年(20)

2008年(18)

我的朋友

分类: Oracle

2008-03-11 16:50:18

1.kill  oracle  连接进程
kill  -9  `ps  -ef|grep  LOCAL=NO|grep  -v  grep|awk  '{print  $2}'`
2.修改参数  
alter  system  set  log_archive_dest='/arch'  scope=both;
alter  system  set  log_archive_start=TRUE  scope=spfile;
3.停止oracle  
shutdown  immediate
4.启动oracle  
startup  mount
alter  database  archivelog
alter  database  open
5.测试归档切换
alter  system  switch  logfile
/
/
 
6.注:oracle10不用加log_archive_start参数
阅读(1358) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~