ITPub博客

首页 > 数据库 > Oracle > Oracle control files

Oracle control files

原创 Oracle 作者:mfm088 时间:2006-10-10 14:17:20 0 删除 编辑
oracle control files[@more@]

Oracle Control Files

Version 10.2
General Information
Current Control FilesSELECT value
FROM gv$parameter
WHERE name = 'control_files';

SELECT RPAD(SUBSTR(name,1,50),51,' ') "CONTROL FILE NAME"
FROM gv$controlfile;
Dependent Objects
V_$CONTROLFILEV_$CONTROLFILE_RECORD_SECTION
Create Control File
Reuse previously existing control file(s) if they existCREATE CONTROLFILE [REUSE]
DATABASE
;
STARTUP NOMOUNT;

CREATE CONTROFILE REUSE
SET DATABASE orabase
RESETLOGS;

ALTER DATABASE OPEN RESETLOGS;
Reuse previously existing control file(s) if they existCREATE CONTROLFILE [REUSE]
DATABASE
;
STARTUP NOMOUNT;

CREATE CONTROFILE REUSE
SET DATABASE orabase
NORESETLOGS;
Move Control Files
Relocate Control Filesconn / as sysdba

show parameter control_files

shutdown immediate

host

$ cp /control files

$ vi /

$ exit

create spfile from pfile='/oracle/product/ora102/dbs/init.ora';

startup

show parameter control_files

host

$ rm /control files
Backup Control Files
To TraceALTER DATABASE BACKUP CONTROLFILE TO TRACE;
To Binary FileALTER DATABASE BACKUP CONTROLFILE TO 'c:tempcontrol.bkp';

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

下一篇: Oracle DBMS_LOGMNR
请登录后发表评论 登录
全部评论

注册时间:2012-01-14

  • 博文量
    98
  • 访问量
    1025053