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

启动数据库,并查询控制文件所在目录
边栏推荐
- [learning] database: several cases of index failure
- 做 SQL 性能优化真是让人干瞪眼
- Winter messenger 2
- 求组合数 AcWing 889. 满足条件的01序列
- Niu Mei's math problems
- MySQL advanced part 2: SQL optimization
- [2020]GRAF: Generative Radiance Fields for 3D-Aware Image Synthesis
- 4. Object mapping Mapster
- Leetcode array operation
- our solution
猜你喜欢

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

MySQL advanced part 1: index

Quickly use Amazon memorydb and build your own redis memory database

redis发布订阅命令行实现

LeetCode 0108. Convert an ordered array into a binary search tree - the median of the array is the root, and the left and right of the median are the left and right subtrees respectively

Liunx starts redis
![[2020]GRAF: Generative Radiance Fields for 3D-Aware Image Synthesis](/img/20/826cc9d514496955a557439881234d.jpg)
[2020]GRAF: Generative Radiance Fields for 3D-Aware Image Synthesis

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

SQLMAP使用教程(一)

Gauss Cancellation acwing 884. Solution d'un système d'équations Xor linéaires par élimination gaussienne
随机推荐
How to set the drop-down arrow in the spinner- How to set dropdown arrow in spinner?
__ builtin_ Popcount() counts the number of 1s, which are commonly used in bit operations
Leetcode-556: the next larger element III
Sqlmap tutorial (1)
Leetcode-6109: number of people who know secrets
SPI 详解
容斥原理 AcWing 890. 能被整除的数
New title of module a of "PanYun Cup" secondary vocational network security skills competition
Is it impossible for lamda to wake up?
[rust notes] 16 input and output (Part 1)
Leetcode divide and conquer / dichotomy
Leetcode recursion
[rust notes] 14 set (Part 2)
SPI details
[BMZCTF-pwn] ectf-2014 seddit
Network security skills competition in Secondary Vocational Schools -- a tutorial article on middleware penetration testing in Guangxi regional competition
Leetcode-3: Longest substring without repeated characters
11-gorm-v2-03-basic query
Regulations for network security events of vocational group in 2022 Guizhou Vocational College skill competition
TypeScript 基础讲解