Oracle数据库备份恢复,巡检需要关注的对象设置以及相关恢复概述
数据库备份恢复,巡检需要关注的对象设置: 1.数据库名称,以及DBID; --dbid在v$database中 SYS@ORCLselect dbid,name from v$database; DBID NAME ---------- --------- 1385095721 ORCL 2.控制文件的位置; show parameter control_files; select name fr
数据库备份恢复,巡检需要关注的对象设置:
1.数据库名称,以及DBID; --dbid在v$database中
SYS@ORCL>select dbid,name from v$database;
DBID NAME
---------- ---------
1385095721 ORCL
2.控制文件的位置;
show parameter control_files;
select name from v$controlfile;
3.日志文件的位置以及数据库的归档设置;
select log_mode from v$database;
archive log list;
select * from v$log;
select * from v$logfile;
--关注日志组数,大小,状态,位置;
select * from v$archived_log;
4.数据文件位置,大小,状态;
select * from dba_tablespaces;
select * from v$tablespace;
select * from dab_data_files;
select * from v$datafile;
--在11g数据库中,临时表空间只需关注其大小即可;
5.参数文件;
show parameter spfile;
6.告警日志;
select * from v$diag_info;
adrci
7.数据库现有的备份策略,备份集情况;
要打开数据库,必须满足以下条件:
1.所有控制文件都必须存在且已同步
2.所有联机数据文件都必须存在且已同步
3.每个重做日志组必须至少有一个成员存在
打开数据库后,如果丢失以下项时数据库就会失败:
1.任何控制文件
2.属于系统或还原表空间的数据文件
3.整个重做日志组(只要组中至少有一个成员可用,实例就会保持在打开状态)
如果控制文件丢失或损坏,则实例通常会中止。然后,您必须执行以下步骤:
1.关闭实例(如果它仍处于打开状态)。
2.通过复制现有控制文件还原缺失的控制文件。
3.启动实例。
如果丢失了重做日志文件组中的某个成员,并且组中至少还有一个成员,请注意其后果是:
不会影响实例的正常操作。
预警日志中会收到一条消息,通知您无法找到某个成员。
通过从同一组中复制一个剩余文件可还原缺失的日志文件。
NOARCHIVELOG 模式下丢失了数据文件
如果数据库处于 NOARCHIVELOG 模式下,并且丢失了任何数据文件,则需要完全还原数据库,包括控制文件和所
有数据文件。
数据库处于 NOARCHIVELOG 模式时,只能恢复到上一次备份时的状态。因此,用户必须重新输入自
上一次备份以来所做的更改。
请执行以下任务:
1.如果实例尚未关闭,请关闭实例。
2.从备份还原整个数据库,包括所有数据文件和控制文件。
3.打开数据库。
4.让用户重新输入自上次备份以来所做的所有更改。
如果处于 NOARCHIVELOG 模式的数据库具有增量备份策略。则 RMAN 会先还原最近的 0 级,然后 RMAN 恢复进
程再应用增量备份。
ARCHIVELOG 模式下丢失了系统关键数据文件
如果丢失或损坏了某个数据文件,且该文件属于 SYSTEM 或 UNDO 表空间,
请执行以下任务:
1.实例可能会也可能不会自动关闭。如果未自动关闭,请使用 SHUTDOWN ABORT 关闭实例。
2.装载数据库。
3.还原并恢复缺失的数据文件。
4.打开数据库。

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

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

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











MySQL is an open source relational database management system, mainly used to store and retrieve data quickly and reliably. Its working principle includes client requests, query resolution, execution of queries and return results. Examples of usage include creating tables, inserting and querying data, and advanced features such as JOIN operations. Common errors involve SQL syntax, data types, and permissions, and optimization suggestions include the use of indexes, optimized queries, and partitioning of tables.

In Oracle, the FOR LOOP loop can create cursors dynamically. The steps are: 1. Define the cursor type; 2. Create the loop; 3. Create the cursor dynamically; 4. Execute the cursor; 5. Close the cursor. Example: A cursor can be created cycle-by-circuit to display the names and salaries of the top 10 employees.

MySQL is chosen for its performance, reliability, ease of use, and community support. 1.MySQL provides efficient data storage and retrieval functions, supporting multiple data types and advanced query operations. 2. Adopt client-server architecture and multiple storage engines to support transaction and query optimization. 3. Easy to use, supports a variety of operating systems and programming languages. 4. Have strong community support and provide rich resources and solutions.

Oracle views can be exported through the EXP utility: Log in to the Oracle database. Start the EXP utility, specifying the view name and export directory. Enter export parameters, including target mode, file format, and tablespace. Start exporting. Verify the export using the impdp utility.

When Oracle log files are full, the following solutions can be adopted: 1) Clean old log files; 2) Increase the log file size; 3) Increase the log file group; 4) Set up automatic log management; 5) Reinitialize the database. Before implementing any solution, it is recommended to back up the database to prevent data loss.

MySQL is suitable for web applications and content management systems and is popular for its open source, high performance and ease of use. 1) Compared with PostgreSQL, MySQL performs better in simple queries and high concurrent read operations. 2) Compared with Oracle, MySQL is more popular among small and medium-sized enterprises because of its open source and low cost. 3) Compared with Microsoft SQL Server, MySQL is more suitable for cross-platform applications. 4) Unlike MongoDB, MySQL is more suitable for structured data and transaction processing.

Oracle is not only a database company, but also a leader in cloud computing and ERP systems. 1. Oracle provides comprehensive solutions from database to cloud services and ERP systems. 2. OracleCloud challenges AWS and Azure, providing IaaS, PaaS and SaaS services. 3. Oracle's ERP systems such as E-BusinessSuite and FusionApplications help enterprises optimize operations.

Building a Hadoop Distributed File System (HDFS) on a CentOS system requires multiple steps. This article provides a brief configuration guide. 1. Prepare to install JDK in the early stage: Install JavaDevelopmentKit (JDK) on all nodes, and the version must be compatible with Hadoop. The installation package can be downloaded from the Oracle official website. Environment variable configuration: Edit /etc/profile file, set Java and Hadoop environment variables, so that the system can find the installation path of JDK and Hadoop. 2. Security configuration: SSH password-free login to generate SSH key: Use the ssh-keygen command on each node
