当前位置:网站首页>3.Oracle-控制文件的管理
3.Oracle-控制文件的管理
2022-07-05 06:20:00 【寒叶飘逸_】
- 关闭实例(shutdown immediate),删除全部控制文件,重新创建控制文件(3个)
select member from v$logfile;

select value from v$parameter where name = 'control_files';

首先关闭数据库
执行create control命令(在这里之前曾经报错,原因是日志文件大小没有设置正确,要和创建时的大小一样)
- 完成上述操作后,增加一个控制文件control04.ctl,放在D盘(多路镜像)
ALTER SYSTEM SET CONTROL_FILES =
'D:\APP\SNAKEWOOD\PRODUCT\11.2.0\DBHOME_1\DATABASE\ORA_CONTROL1',
'D:\APP\SNAKEWOOD\PRODUCT\11.2.0\DBHOME_1\DATABASE\ORA_CONTROL2',
'D:\app\Snakewood\oradata\mydba\ORA_CONTROL4'
SCOPE=SPFILE;

- 备份控制文件为文本文件


- 请尝试将control01.ctl文件移动到C:\oracle\product位置,并确保数据库能够重新、正常启动
查询控制文件的位置
修改spfile中控制文件的位置
关闭数据库,并将控制文件移动到修改后的位置

启动数据库,并查询控制文件所在目录
边栏推荐
- 栈 AcWing 3302. 表达式求值
- 1.15 - input and output system
- QQ computer version cancels escape character input expression
- Leetcode-22: bracket generation
- SQLMAP使用教程(二)实战技巧一
- Leetcode array operation
- C job interview - casting and comparing - C job interview - casting and comparing
- 2021apmcm post game Summary - edge detection
- Alibaba's new member "Lingyang" officially appeared, led by Peng Xinyu, Alibaba's vice president, and assembled a number of core department technical teams
- Règlement sur la sécurité des réseaux dans les écoles professionnelles secondaires du concours de compétences des écoles professionnelles de la province de Guizhou en 2022
猜你喜欢

Error ora-28547 or ora-03135 when Navicat connects to Oracle Database

Open source storage is so popular, why do we insist on self-development?

4. 对象映射 - Mapping.Mapster

MIT-6874-Deep Learning in the Life Sciences Week 7

阿里新成员「瓴羊」正式亮相,由阿里副总裁朋新宇带队,集结多个核心部门技术团队

做 SQL 性能优化真是让人干瞪眼

传统数据库逐渐“难适应”,云原生数据库脱颖而出

Doing SQL performance optimization is really eye-catching

MySQL advanced part 2: optimizing SQL steps

Single chip computer engineering experience - layered idea
随机推荐
Series of how MySQL works (VIII) 14 figures explain the atomicity of MySQL transactions and the principle of undo logging
Leetcode array operation
A reason that is easy to be ignored when the printer is offline
Niu Mei's math problems
927. Trisection simulation
Appium foundation - use the first demo of appium
Chapter 6 relational database theory
做 SQL 性能优化真是让人干瞪眼
Leetcode-31: next spread
QQ电脑版取消转义符输入表情
Record the process of configuring nccl and horovod in these two days (original)
MySQL advanced part 1: triggers
Traditional databases are gradually "difficult to adapt", and cloud native databases stand out
Liunx starts redis
1.15 - input and output system
Operator priority, one catch, no doubt
What's wrong with this paragraph that doesn't work? (unresolved)
Shutter web hardware keyboard monitoring
Sum of three terms (construction)
Real time clock (RTC)