Chinaunix首页 | 论坛 | 博客
  • 博客访问: 928411
  • 博文数量: 358
  • 博客积分: 8185
  • 博客等级: 中将
  • 技术积分: 3751
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-15 16:27
个人简介

The views and opinions expressed all for my own,only for study and test, not reflect the views of Any Company and its affiliates.

文章分类

全部博文(358)

文章存档

2012年(8)

2011年(18)

2010年(50)

2009年(218)

2008年(64)

我的朋友

分类:

2009-01-16 21:37:22

Explain the use of control file;
List the contents;

■Control File Contents:
 DB name and identifier;
 Time stamp of database creation;
 Tablespace names;
 Names and locations of data files and redo log files; 
 current online redo log sequence number;
 checkpoint information;
 Begin and end of undo segements;
 Redo log archive information;
 Backup information;
$strings controlfile | more

■Multplexing the control file when using spfile
SQL>show parameter control
1,alter the spfile
SQL>alter system set control_files='/u01/oradata/wilson/control01.ctl','/u01/oradata/wilson/control02.ctl','/u01/oradata/wilson/control03.ctl' scope=spfile
2,shutdown the database
SQL>shutdown immediate
3,create additional controlfiles
$cp /u01/oradata/wilson/control02.ctl /u01/oradata/wilson/control04.ctl
4,startup the database
startup

■Multplexing the control file when using pfile
1,shutdown the database
2,create additional controlfiles
3,alter the pfile (vi)
4,startup
SQL>create pfile from spfile;

SQL>conn /as sysdba
SQL>startup pfile =$oracle_home/dbs/initWilson.ora
SQL>show parameters

■Using OMF

■Get control file information
・v$controlfile
SQL>desc v$controlfile
SQL>col name format a50;
SQL>select * from v$controlfile
・v$parameter
・v$controlfile_record_section
SQL>desc v$controlfile_record_section
SQL>select type,records_total,records_used from v$controlfile_record_section
SQL>show parameter control_files

■ Creating New Control files
■ Backing up Control files

阅读(391) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~