当前位置:网站首页>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中控制文件的位置
关闭数据库,并将控制文件移动到修改后的位置
启动数据库,并查询控制文件所在目录
边栏推荐
- LeetCode 0107. Sequence traversal of binary tree II - another method
- Shutter web hardware keyboard monitoring
- QQ电脑版取消转义符输入表情
- LeetCode 1200. Minimum absolute difference
- [leetcode] day95 effective Sudoku & matrix zeroing
- Traversal of leetcode tree
- Record the process of configuring nccl and horovod in these two days (original)
- Multi screen computer screenshots will cut off multiple screens, not only the current screen
- MySQL advanced part 1: index
- Presentation of attribute value of an item
猜你喜欢
背包问题 AcWing 9. 分组背包问题
Alibaba's new member "Lingyang" officially appeared, led by Peng Xinyu, Alibaba's vice president, and assembled a number of core department technical teams
传统数据库逐渐“难适应”,云原生数据库脱颖而出
Traditional databases are gradually "difficult to adapt", and cloud native databases stand out
Bash exercise 17 writing scripts to install the server side of FRP reverse proxy software
求组合数 AcWing 888. 求组合数 IV
Appium automation test foundation - Summary of appium test environment construction
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
高斯消元 AcWing 884. 高斯消元解异或线性方程组
高斯消元 AcWing 884. 高斯消元解异或線性方程組
随机推荐
Day 2 document
Winter messenger 2
[rust notes] 14 set (Part 1)
Leetcode array operation
Data visualization chart summary (I)
博弈论 AcWing 894. 拆分-Nim游戏
[rust notes] 16 input and output (Part 1)
1040 Longest Symmetric String
MIT-6874-Deep Learning in the Life Sciences Week 7
WordPress switches the page, and the domain name changes back to the IP address
SQL三种连接:内连接、外连接、交叉连接
The difference between CPU core and logical processor
可变电阻器概述——结构、工作和不同应用
Leetcode-3: Longest substring without repeated characters
[rust notes] 17 concurrent (Part 1)
Leetcode-22: bracket generation
MySQL advanced part 2: the use of indexes
LeetCode 0107. Sequence traversal of binary tree II - another method
[leetcode] day95 effective Sudoku & matrix zeroing
Series of how MySQL works (VIII) 14 figures explain the atomicity of MySQL transactions and the principle of undo logging