一例冷备份恢复引起的ORACLE数据库频繁重启故障
环境:ORACLE11GR2+windows2012描述:客户还原冷备份后启动数据库,启动后大概30秒左右数据库无法操作,提示ORA-03113:通信通道的文件结尾解决,再次启动后经过
环境: ORACLE 11G R2+windows2012
描述: 客户还原冷备份后启动数据库,启动后大概30秒左右数据库无法操作,提示ORA-03113:通信通道的文件结尾解决,再次启动后经过30秒左右会再次无法操作。
处理过程:
1.进入操作系统,查看相关日志。
查看日志报错,发现ORA-00600: internal error code, arguments: [3005]
同时观察到DATA目录的undo表空间物理文件时间未发生变化,其他物理文件更新都已经成为最新时间。
于是对重做表空间物理文件进行重建操作
具体操作步骤如下:
sqlplus /nolog
SQL> conn /as sysdba;
SQL> startup mount;
SQL> --根据目前的动态参数文件创建静态参数文件
SQL> create pfile='D:\20130101.ora' from spfile;
#修改生成的20130101.ora文件
*.undo_management='MANUAL'
*._corrupted_rollback_segments=(_SYSSMU3$)
[oracle@DB ~]$ exit
SQL> --查看原undo表空间名
SQL> show parameter undo;
NAME TYPE VALUE
------------------------------------ --------------------------------- ------------------------------
undo_management string AUTO
undo_retention integer 10800
undo_tablespace string UNDOTBS1
SQL> --关闭数据库
SQL> shutdown immediate;
SQL> --根据修改后的20130101.ora静态参数文件启动数据库
SQL> startup pfile='D:\20120101.ora'
SQL> --创建新的undo表空间
SQL> create undo tablespace UNDOTBS2 datafile '数据文件目录\undotbs01.dbf' size 2g;
SQL> --删除原undo表空间
SQL> drop tablespace UNDOTBS1 including contents and datafiles;
SQL> --修改新的表空间undotbs2名为undotbs1
SQL> alter tablespace UNDOTBS2 rename to UNDOTBS1;
SQL> --关闭数据库
SQL> shutdown immediate;
SQL> --再次启动数据库(问题解决)
SQL> startup;
数据库至此恢复正常,经过24个小时的运行,无任何问题,问题已经解决。
PS:估计客户在冷备份的时候拷贝的UNDO表空间物理文件受损或者在库没有完全停止的情况下拷贝,,造成文件受损,在没有UNDO表空间的情况库可以启动,但如果有数据修改就会发生写入UNDO表空间失败,数据连接断掉。
本文出自 “IT人的网络人生” 博客,请务必保留此出处

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



To query the Oracle tablespace size, follow the following steps: Determine the tablespace name by running the query: SELECT tablespace_name FROM dba_tablespaces; Query the tablespace size by running the query: SELECT sum(bytes) AS total_size, sum(bytes_free) AS available_space, sum(bytes) - sum(bytes_free) AS used_space FROM dba_data_files WHERE tablespace_

There are three ways to view instance names in Oracle: use the "sqlplus" and "select instance_name from v$instance;" commands on the command line. Use the "show instance_name;" command in SQL*Plus. Check environment variables (ORACLE_SID on Linux) through the operating system's Task Manager, Oracle Enterprise Manager, or through the operating system.

Oracle View Encryption allows you to encrypt data in the view, thereby enhancing the security of sensitive information. The steps include: 1) creating the master encryption key (MEk); 2) creating an encrypted view, specifying the view and MEk to be encrypted; 3) authorizing users to access the encrypted view. How encrypted views work: When a user querys for an encrypted view, Oracle uses MEk to decrypt data, ensuring that only authorized users can access readable data.

Uninstall method for Oracle installation failure: Close Oracle service, delete Oracle program files and registry keys, uninstall Oracle environment variables, and restart the computer. If the uninstall fails, you can uninstall manually using the Oracle Universal Uninstall Tool.

The method to solve the Oracle cursor closure problem includes: explicitly closing the cursor using the CLOSE statement. Declare the cursor in the FOR UPDATE clause so that it automatically closes after the scope is ended. Declare the cursor in the USING clause so that it automatically closes when the associated PL/SQL variable is closed. Use exception handling to ensure that the cursor is closed in any exception situation. Use the connection pool to automatically close the cursor. Disable automatic submission and delay cursor closing.

Oracle Invalid numeric errors may be caused by data type mismatch, numeric overflow, data conversion errors, or data corruption. Troubleshooting steps include checking data types, detecting digital overflows, checking data conversions, checking data corruption, and exploring other possible solutions such as configuring the NLS_NUMERIC_CHARACTERS parameter and enabling data verification logging.

Deleting all data in Oracle requires the following steps: 1. Establish a connection; 2. Disable foreign key constraints; 3. Delete table data; 4. Submit transactions; 5. Enable foreign key constraints (optional). Be sure to back up the database before execution to prevent data loss.

To create a user in Oracle, follow these steps: Create a new user using the CREATE USER statement. Grant the necessary permissions using the GRANT statement. Optional: Use the RESOURCE statement to set the quota. Configure other options such as default roles and temporary tablespaces.
