当前位置:网站首页>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中控制文件的位置
关闭数据库,并将控制文件移动到修改后的位置

启动数据库,并查询控制文件所在目录
边栏推荐
- [2021]GIRAFFE: Representing Scenes as Compositional Generative Neural Feature Fields
- 高斯消元 AcWing 884. 高斯消元解异或线性方程组
- Basic explanation of typescript
- MySQL advanced part 2: optimizing SQL steps
- In depth analysis of for (VaR I = 0; I < 5; i++) {settimeout (() => console.log (I), 1000)}
- Liunx starts redis
- Leetcode-22: bracket generation
- [rust notes] 15 string and text (Part 1)
- Winter messenger 2
- Leetcode-556: the next larger element III
猜你喜欢

Real time clock (RTC)

Alibaba established the enterprise digital intelligence service company "Lingyang" to focus on enterprise digital growth

高斯消元 AcWing 884. 高斯消元解异或線性方程組

MySQL advanced part 2: the use of indexes

博弈论 AcWing 891. Nim游戏

redis发布订阅命令行实现

liunx启动redis

Appium foundation - use the first demo of appium

Simple selection sort of selection sort
![[2020]GRAF: Generative Radiance Fields for 3D-Aware Image Synthesis](/img/20/826cc9d514496955a557439881234d.jpg)
[2020]GRAF: Generative Radiance Fields for 3D-Aware Image Synthesis
随机推荐
Leetcode-6110: number of incremental paths in the grid graph
MIT-6874-Deep Learning in the Life Sciences Week 7
LVS简介【暂未完成(半成品)】
1039 Course List for Student
中国剩余定理 AcWing 204. 表达整数的奇怪方式
开源存储这么香,为何我们还要坚持自研?
Currently clicked button and current mouse coordinates in QT judgment interface
Navicat連接Oracle數據庫報錯ORA-28547或ORA-03135
[rust notes] 14 set (Part 1)
Leetcode-556: the next larger element III
1.15 - input and output system
RGB LED infinite mirror controlled by Arduino
C - XOR to all (binary topic)
[rust notes] 16 input and output (Part 2)
1039 Course List for Student
New title of module a of "PanYun Cup" secondary vocational network security skills competition
Leetcode divide and conquer / dichotomy
[rust notes] 14 set (Part 2)
[rust notes] 13 iterator (Part 2)
liunx启动redis