学习笔记五(maintaining the control file)

身体有点不舒服,可是还是很想听听课...

maintaining the control file

[@more@]

--6maintaining the control file
control file
the control file is a binary file(二进制文件)that defines the

current state of the physical database
1.loss of the control file requires recovery
2.is read at mount stage
3.is required to operate(在任何情况下control file是可用的)
4.is linked to a single database
5.should be multiplexed
6.maintains integrity of database (维护的是database 的完整性)
7.sized initially by create database
/
control file contents
1.databse name and indentified(database 名称and 标示)
2.time stamp of database creation
3.tablespace names
4.names and locations of data files and redo log files
5.current redolog file sequence number
6.checkpoint information
7.begin and end of undo segments
8.redo log archive information
9.backup information
详细解释
1.sql>set wrap off
sql〉set linesize 200
sql>select * from v$database;
可以看见db name, create time ,db id,resetlogs等等这些信息记录在

control file 里面
2.sql>select * from v$tablespace;
3.sql>select * from v$logfile;(日志文件信息)
5.sql>select * from v$log;(当前日志的顺序号current的号码)
9.sql>select * from v$backup
sql>alter tablespace users bengin backup;
然后sql>select * from v$bakcup ;(那些档案进行了backup)
8.sql>select * from v$archived_log;(当前系统里有哪些已经归档的日

志)
sql>alter tablespace users end bakcup;
/
multiplexing the control file using spfile(做多功的步骤)
sql>select * from v$controlfile;
1.sql>alter system set control_files=

('d:oraclecontrol01.ctl','d:oraclecontrol02.ctl','d:oraclec

ontrol03.ctl','d:oraclecontrol04.ctl') scope=spfile;
2.sql>shutdown immediate
3.copy existing  control file to a new name and location and

rename to control04.ctl
4.startup
sql>select * from v$controlfile;可见新增完成了
/
multiplexing the control file using init.ora
1.sql〉shutdown immediate
2.copy existing  control file to a new name and location and

rename to control04.ctl
3.add the new control file name and to init.ora
4.startup pfile=pathinit.ora
/
managing control files with OMF(条件)
1.Control files are OMF created if the CONTROL_FILES parameter is

not specified(没有指定control_files参数)
2.OMF control files are located at DB_CREATE_ONLINE_LOG_DEST_N(

指定了相关路径DB_CREATE_ONLINE_LOG_DEST_N下)
3.Control file names are uniquely generated and displayed in the

alterSID.log file when the files are created.
这个过程只在生成Oracle Control file的时候有效
control file 的建立一个是在create database 的时候自动建立一个是在

database 启动在nomount 状态然后用create controlfile的脚本建立后一

种方法少用
/
obtaining control file information
1.sql>select * from v$controlfile;
2.sql>select * from v$parameter where name like 'control%';
3.sql>show parameter control;
4.sql>select * from v$controlfile_record_section;(纪录控制文件可

以改变的信息)
/
control file's backup
1.关掉database copy一份
2.sql>alter database backup controlfile to trace;
or sql>alter database backup controlfile to 'c:control.bak' 备份

成一个二进制文件

待续

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

转载于:http://blog.itpub.net/202861/viewspace-796334/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
毕业设计,基于SpringBoot+Vue+MySQL开发的公寓报修管理系统,源码+数据库+毕业论文+视频演示 现代经济快节奏发展以及不断完善升级的信息化技术,让传统数据信息的管理升级为软件存储,归纳,集中处理数据信息的管理方式。本公寓报修管理系统就是在这样的大环境下诞生,其可以帮助管理者在短时间内处理完毕庞大的数据信息,使用这种软件工具可以帮助管理人员提高事务处理效率,达到事半功倍的效果。此公寓报修管理系统利用当下成熟完善的Spring Boot框架,使用跨平台的可开发大型商业网站的Java语言,以及最受欢迎的RDBMS应用软件之一的MySQL数据库进行程序开发。公寓报修管理系统有管理员,住户,维修人员。管理员可以管理住户信息和维修人员信息,可以审核维修人员的请假信息,住户可以申请维修,可以对维修结果评价,维修人员负责住户提交的维修信息,也可以请假。公寓报修管理系统的开发根据操作人员需要设计的界面简洁美观,在功能模块布局上跟同类型网站保持一致,程序在实现基本要求功能时,也为数据信息面临的安全问题提供了一些实用的解决方案。可以说该程序在帮助管理者高效率地处理工作事务的同时,也实现了数据信息的整体化,规范化与自动化。 关键词:公寓报修管理系统;Spring Boot框架;MySQL;自动化;VUE
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值