对Oracle日常管理的几点建议
对Oracle日常管理的几点建议,基于时间点的不完全恢复,需要对控制文件洗脑,撕掉账本(重做日志),重新印刷账本,这是条没有回
Oracle这碗饭不好吃,几多风险,几多建议。
1 基于时间点的不完全恢复,需要对控制文件洗脑,撕掉账本(重做日志),重新印刷账本,这是条没有回头的路,需要保护现场,为自己留条后路。切记将整个数据库先进行备份,即便是几个T。过程如下:
1)shutdown immediate
2)startup mount
3)对整个数据库进行cp。
4)。。。。。。。。(接下来的步骤大家都懂的,就不唠叨了)
2 整理rman较合理的初始备份方案
1)delete backup
2)backup archivelog all delete all input
3)backup tag ‘begin_full_0_backup' incremental level 0 database plus archivelog;
通过以上的整理,在闪回区里就剩五个rman备份,简单和清晰,,记得将以前的给拷走。
3 要记得维护/home/oracle这个家目录,因为它也会影响性能。
4 flash_recovery_area:oracle默认这里是存放一些备份有关的文件,如rman备份,控制文件和日志文件,还有归档日志的备份等,所以,这个区域会满,要记得清理,否则,备份时会报错。但清理时要留下控制文件和日志文件的镜像。
5 基于业务的需要,突然要把大型数据库给关了,等了很久,也关不掉,可又急着关掉,怎么办?
1)先把连接的所有会话杀死;
2)alter system checkpoint;
3)shutdown abort;
尽量把影响最小化,让下次能够正常开库。
6 重做日志组一定要避免有多个active。因为,坏在active上,没有RBA,没有前滚的起点。
7 system表空间一定不能存放业务表;不建议一个表空间只对应一个数据文件;不建议一个重做日志组成员太大。
更多Oracle相关信息见Oracle 专题页面 ?tid=12

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



The article discusses using MySQL's ALTER TABLE statement to modify tables, including adding/dropping columns, renaming tables/columns, and changing column data types.

InnoDB's full-text search capabilities are very powerful, which can significantly improve database query efficiency and ability to process large amounts of text data. 1) InnoDB implements full-text search through inverted indexing, supporting basic and advanced search queries. 2) Use MATCH and AGAINST keywords to search, support Boolean mode and phrase search. 3) Optimization methods include using word segmentation technology, periodic rebuilding of indexes and adjusting cache size to improve performance and accuracy.

Article discusses configuring SSL/TLS encryption for MySQL, including certificate generation and verification. Main issue is using self-signed certificates' security implications.[Character count: 159]

Article discusses popular MySQL GUI tools like MySQL Workbench and phpMyAdmin, comparing their features and suitability for beginners and advanced users.[159 characters]

Article discusses strategies for handling large datasets in MySQL, including partitioning, sharding, indexing, and query optimization.

The difference between clustered index and non-clustered index is: 1. Clustered index stores data rows in the index structure, which is suitable for querying by primary key and range. 2. The non-clustered index stores index key values and pointers to data rows, and is suitable for non-primary key column queries.

The article discusses dropping tables in MySQL using the DROP TABLE statement, emphasizing precautions and risks. It highlights that the action is irreversible without backups, detailing recovery methods and potential production environment hazards.

The article discusses creating indexes on JSON columns in various databases like PostgreSQL, MySQL, and MongoDB to enhance query performance. It explains the syntax and benefits of indexing specific JSON paths, and lists supported database systems.
