Home Database Mysql Tutorial Oracle 缺失INITORCL及Oracle启动过程

Oracle 缺失INITORCL及Oracle启动过程

Jun 07, 2016 pm 05:22 PM

该文件在数据库启动时创建,用于操作系统对数据库的锁定。当数据库启动时获得锁定,数 据库关闭时释放。在系统出现异常时,可能数

现象
 
C:\Users\陈>sqlplus "/as sysdba"
 
SQL*Plus: Release 11.2.0.1.0 Production on Wed Oct 10 13:31:28 2012
 
Copyright (c) 1982, 2010, Oracle. All rights reserved.
 
Connected to:
 
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 -Production
 
With the Partitioning, OLAP, Data Mining and Real Application Testing options
 
SQL> shutdown immediate
 
Database closed.
 
Database dismounted.
 
ORACLE instance shut down.
 
SQL> startup nomount
 
ORA-01078: failure in processing system parameters
 
LRM-00109: could not open parameter file 'E:\APP\CSWGGOD\PRODUCT\11.2.0\DBHOME_1
 
\DATABASE\INITORCL.ORA'
 
原因:缺失INITORCL.ORA
 
解决方法:
 
1.复制INITORCL.ORA文件
 
C:\Users\陈>E:
 
--------复制INITORCL.ORA备份文件
 
E:\app\cswggod\product\11.2.0\dbhome_1\database>copy E:\app\cswggod\admin\orcl\p
 
file\init.ora.7182012101127 INITORCL.ORA
 
已复制1 个文件。
 
E:\app\cswggod\product\11.2.0\dbhome_1\database>dir
 
驱动器E 中的卷是Workware
 
卷的序列号是027B-A992
 
E:\app\cswggod\product\11.2.0\dbhome_1\database 的目录
 
2012/10/10 13:34

.
 
2012/10/10 13:34 ..
 
2012/08/18 10:02 archive
 
2012/08/18 10:04 2,048 hc_orcl.dat
 
2012/10/08 15:51 1,973 INITORCL.ORA
 
2.启动数据库
 
C: \Users\陈>sqlplus "/as sysdba"
 
SQL*Plus: Release 11.2.0.1.0 Production on Wed Oct 10 13:31:28 2012
 
Copyright (c) 1982, 2010, Oracle. All rights reserved.
 
Connected to:
 
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
 
With the Partitioning, OLAP, Data Mining and Real Application Testing options
 
SQL> startup nomount
 
ORACLE instance started.
 
Total System Global Area 1071333376 bytes Fixed Size 1375792 bytes Variable Size 528482768 bytes Database Buffers 536870912 bytes Redo Buffers 4603904 bytes SQL> shutdown immediate
 
ORA-01507: database not mounted
 
ORACLE instance shut down. SQL>
 
SQL> startup
 
ORACLE instance started.
 
Total System Global Area 1071333376 bytes Fixed Size 1375792 bytes Variable Size 528482768 bytes Database Buffers 536870912 bytes Redo Buffers 4603904 bytes Database mounted.
 
Database opened.
 
 
 
3.附录-数据库启动过程
 
1)NOMOUNT
 
这一步只和参数文件有关,如果在这一步就出现问题,那么通常可能是系统配置(如内核参 数等)存在问题,需要检查是否分配了足够的系统资源。
 
2)MOUNT
 
这一步需要从参数文件中获得控制文件位置,读取其中内容,校验数据文件的存在性。除此之外还会去校验口令文件。Oracle 缺省查找 orapw文件,如果该文件找不 到,则继续查找 orapw 文件,如果两者都不存在,数据库将出现错误。但数据为仍可以打 开。从 Oracle10g 开始,,当口令文件丢失后,Oracle 将不再提示错误,只是和口令文件相关 的部分功能将无法使用。
 
--------------------------------------------文件及作用---------------------------------------
 
该文件在数据库启动时创建,用于操作系统对数据库的锁定。当数据库启动时获得锁定,数 据库关闭时释放。在系统出现异常时,可能数据库已经关闭,但锁定并未释放,或者因为后 台进程未正常停止等原因,会导致下次数据库无法启动。解决办法就是重启服务器,或者手工释放共享内存段。
 
3)OPEN
 
这一步将进行检查点和完整性的检查。如果检查全部通过,则打开数据库,否则给出错误警 告,停止打开数据库。
 
-------------------------------------------------------数据库的启动验证--------------------------------------
 
○1 . 第一次检查数据文件头中的 Checkpoint CNT 是否与对应控制文件中的 Checkpoint CNT
 
一致。此步骤检查用以确认数据文件是否来自同一版本,而不是从备份中恢复而来
 
(在热备份模式下,数据文件检查点被冻结,但检查点计数不会被冻结,会一直修改) 在 Oracle10g 中用 8 级转储获得控制文件信息。
 
SQL> alter session set events 'immediate trace name controlf level 8';
 
在 Oracle9i 中用 10 级转储。
 
----------------------------------------------------------------------------------------------------------------------------
 
○2 . 第二次检查数据文件头的开始 SCN 和控制文件中记录的该文件的的结束 SCN 是否一致。如果一致,则不需要对那个文件进行恢复。
 
部分控制文件转储内容:
 
222 DATA FILE RECORDS
 
223 ***************************************************************************
 
224 (size = 428, compat size = 428, section max = 100, section in-use = 5,
 
225 last-recid= 8, old-recno = 0, last-recno = 0)
 
226 (extent = 1, blkno = 11, numrecs = 100)
 
227 DATA FILE #1:
 
228 (name #7) /u01/app/oracle/oradata/orcl/system01.dbf
 
229 creation size=0 block size=8192 status=0xe head=7 tail=7 dup=1
 
230 tablespace 0, index=1 krfil=1 prev_file=0
 
231 unrecoverable scn: 0x0000.00000000 01/01/1988 00:00:00
 
232 Checkpoint cnt:52 scn: 0x0000.0007ba16 02/18/2011 16:30:22
 
233 Stop scn: 0xffff.ffffffff 02/16/2011 11:07:26
 
234 Creation Checkpointed at scn: 0x0000.00000009 06/30/2005 19:10:11
 
235 thread:0 rba:(0x0.0.0)
 
236 enabled threads: 00000000 00000000 00000000 00000000 00000000 00000000
 
----------------------------------------------------------------------------------------------------------------------------
 
在数据库出现问题时,提示中给出的可能是不完整的信息,而告警日志中则记录了完整的错 误过程和错误号。
 
说明:
 
控制文件中记录的 SCN 指最后一次成功完成的检查点 SCN; 数据文件头中的记录的 SCN 指数据文件最后一次成功完成的检查点 SCN;
 
此外,在控制文件和数据文件头都记录一个检查点计数(chkpt cnt),而且数据文件头还记录了一个 控制文件检查点计数(ctl cnt)。但这个 ctl cnt 要比控制文件中的 ctl cnt 小 1。这是因为,当检查
 
点更新控制文件和数据文件头上的 chkpt cnt 信息时,在更新控制文件之前,可以
 
获得当前的 ctl cnt
 
,这个信息被记入了数据文件。之所以这么做,是因为不能保证更新控制文件上的 chkpt cnt 一定 会成功,记录之前的 ctl cnt 可以确保上一次的 chkpt cnt 是成功 完成的。

linux

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Explain InnoDB Full-Text Search capabilities. Explain InnoDB Full-Text Search capabilities. Apr 02, 2025 pm 06:09 PM

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.

How do you alter a table in MySQL using the ALTER TABLE statement? How do you alter a table in MySQL using the ALTER TABLE statement? Mar 19, 2025 pm 03:51 PM

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

When might a full table scan be faster than using an index in MySQL? When might a full table scan be faster than using an index in MySQL? Apr 09, 2025 am 12:05 AM

Full table scanning may be faster in MySQL than using indexes. Specific cases include: 1) the data volume is small; 2) when the query returns a large amount of data; 3) when the index column is not highly selective; 4) when the complex query. By analyzing query plans, optimizing indexes, avoiding over-index and regularly maintaining tables, you can make the best choices in practical applications.

Can I install mysql on Windows 7 Can I install mysql on Windows 7 Apr 08, 2025 pm 03:21 PM

Yes, MySQL can be installed on Windows 7, and although Microsoft has stopped supporting Windows 7, MySQL is still compatible with it. However, the following points should be noted during the installation process: Download the MySQL installer for Windows. Select the appropriate version of MySQL (community or enterprise). Select the appropriate installation directory and character set during the installation process. Set the root user password and keep it properly. Connect to the database for testing. Note the compatibility and security issues on Windows 7, and it is recommended to upgrade to a supported operating system.

Difference between clustered index and non-clustered index (secondary index) in InnoDB. Difference between clustered index and non-clustered index (secondary index) in InnoDB. Apr 02, 2025 pm 06:25 PM

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.

What are some popular MySQL GUI tools (e.g., MySQL Workbench, phpMyAdmin)? What are some popular MySQL GUI tools (e.g., MySQL Workbench, phpMyAdmin)? Mar 21, 2025 pm 06:28 PM

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

How do you handle large datasets in MySQL? How do you handle large datasets in MySQL? Mar 21, 2025 pm 12:15 PM

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

How do you drop a table in MySQL using the DROP TABLE statement? How do you drop a table in MySQL using the DROP TABLE statement? Mar 19, 2025 pm 03:52 PM

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.

See all articles