Ora 00205 как исправить

5 Methods To Fix ORA-00205: Error In Identifying Control File

Overview:

Facing error messages meanwhile working with the Oracle database is very disturbing as it breaks the flow of your work. Isn’t it…?

Our today’s article is also about one such annoying Oracle ORA-00205: error in identifying control file and it’s possible fixes.

Oracle is free, open business management software available for both personal and commercial use. The RDMS equipped system helps users to process credit card payments, handles customer, support, and manages customer orders.

Oracle, networking software does the task of data exchange between machines using underlying services to establish communication between the components. During data exchange there may be few errors in Oracle due to which database errors could evolve and connection may not be well established.

What Causes ORA-00205 Error?

ORA-00205 is one such error which arises due to dislocation of a control file or might have allocated in some wrong location.

Oracle database contains control file; it’s a small binary file that keeps record of the database physical structure. The control file includes:

  • The database name
  • Names and locations of associated data files and redo log files
  • The timestamp of the database creation
  • The current log sequence number
  • Checkpoint information

Whenever the database is open, the control file must be available for writing by the Oracle database. If the control file cannot be accessed or it is missing, the database cannot be mounted and the recovery of the database becomes very difficult. The creation of the control file is at the same time when the database is created.

On some Operating systems, at least one copy of the control file is created during the creation of the database and on some OS multiple files are created. You should always create two or more copies of the control file during database creation or later also you could change particular setting in the control files.

The system is not able to find a control file of the specified name and size that is required to execute the same. This may be due to data corruption or some hardware/software issue that makes the access of the file impossible.

How To Fix ORA-00205: Error In Identifying Control File, Check Alert Log For More Info?

Fix 1# Check For All Your Control Files

Check all control files whether they are available online or not. Also ensure that these are the same files that the system created at cold start time.

Close your database if it is already opened.

Create pfile from spfile by using command:

SQL> create pfile from spfile;

In directory $ORACLE_HOMEdatabase a newly created pfile is present. (Its name is init<SID>.ora)

Edit this pfile to correct control file locations. Then follow this command:

SQL> create spfile from pfile;

After that, you will be able to see control files. Also if you have changed data file locations; you can rename data files in mount mode.

However if you have lost only one of many control files, then the repair procedure is different.  Having at least two control file (normally three) is recommended.

So, that if you need to identify the surviving control files in that case just replaces the missing one with one of the others.

Fix 2# Provide Filenames For The Control Files

Specify control file name using CONTROL_FILES initialization parameter in the database initialization parameter file.

If you do not specify files for CONTROL_FILES before database creation, then following things will happen:

  • operating system specific default name is taken
  • Using Oracle-managed files, then the initialization parameters you set is to enable name and location of the control files
  • Using Automatic Storage Management, incomplete ASM filenames could be placed in the DB_CREATE_FILE_DESTand DB_RECOVERY_FILE_DEST initialization parameters.

Fix 3# Multiplex Control Files On Different Disks

Two control files should be taken for every Oracle Database and should be stored on a different physical disk. If anyhow a control file is damaged (say due to a disk failure) the associated instance must be shut down possibly soon. When the drive has been repaired the damaged control file can be restored using the copy made on the other disk and can be restarted. Thus, no media recovery is required in this case.

Fix 4# Manage The Size Of Control Files

A control file size is the value set for the MAXDATAFILESMAXLOGFILESMAXLOGMEMBERSMAXLOGHISTORY, and MAXINSTANCES parameters in the CREATE DATABASE statement that created the associated database. If values of these parameters is increased the size of control file increases

If your control files are missing from your database then you will not be able to start your database. At last you will start getting ORA-00205: error in identifying control file, check alert log for more info.

[Automated Solution] To Fix ORA-00205: Error In Identifying Control File, Check Alert Log For More Info

If the above manual fixes won’t help you to fix ORA-00205: error in identifying control file then immediately go with the experts recommended option i .e Oracle File Repair Tool. As this tool efficiently fixes all kinds of Oracle database errors  and issues.

  • This tool successfully repairs and recover damaged/corrupted/lost database DBF file.
  • You can also recovers your lost clusters, views, table space, tables, triggers, roles, index, schema, synonyms, and sequence and cluster tables etc.
  • It shows preview of all recoverable Oracle database objects before making the recovery.
  • It recover all the queries of the procedures, triggers, views, package body, package, functions, and database links within the text files.
  • The software is well compatible with  almost every versions of Windows OS like Windows 10/ 8.1/ 8/ 7.

Steps To Use  Oracle File Repair tool

Step 1: Open Oracle data recovery tool. You’ll see a pop-up window showing options to select or search corrupt Oracle databases in your computer.1

Step 2: Hit Scan File to initiate the scan process after selecting the oracle database. The recoverable database objects get listed in left-side pane.

2

Step 3: Click an object to see its preview.

3

Step 4:  Click Start Repair in the icon bar to start the repair process. A pop-up window is displayed which show the steps needed to perform further. Click next and continue.

4

Step 5: Give the user name, password and path of the blank database where you want to save the repaired database objects.

5

Step 6: Repairing and restoring various database objects after establishing a connection with blank oracle database.

6

Wrap Up:

At last I want to conclude that always keep backup of your control files even if you have successfully overcome this Oracle error ORA00205.

As, it is very important whenever the physical structure of the database is changed. Structural changes could be adding, dropping, or renaming datafiles/tablespace/groups/redo files as applicable to each.

Don’t forget to share your opinion regarding this post in the comment section…..!

Jacob Martin is a technology enthusiast having experience of more than 4 years with great interest in database administration. He is expertise in related subjects like SQL database, Access, Oracle & others. Jacob has Master of Science (M.S) degree from the University of Dallas. He loves to write and provide solutions to people on database repair. Apart from this, he also loves to visit different countries in free time.

I am newly installing Oracle XE database on Ubuntu by following these steps:

Downloaded latest rpm file for Oracle XE and ran below commands to install the database:

sudo apt-get install alien
alien oracle-xe-11.2.0-1.0.x86_64.rpm
dpkg -i oracle-xe_11.2.0-2_amd64.deb

Then I made sure that I have permissions to /u01/ and also it is under dba group.

Now when I am trying to start the database then I am getting issues:

$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.2.0 Production on Wed Aug 13 15:33:51 2014
Copyright (c) 1982, 2011, Oracle.  All rights reserved.
Connected to an idle instance.

SQL> start
SP2-1506: START, @ or @@ command has no arguments

SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/u01/app/oracle/product/11.2.0/xe/dbs/initXE.ora'

I see that I don’t have the file initXE.ora and I have only init.ora as show here:

$ ls /u01/app/oracle/product/11.2.0/xe/dbs/
init.ora

Update:

I copied init.ora file and renamed it to initXE.ora file and updated the parameters in it so they point to valid directories, now when I start my database then I am getting error as:

SQL> startup
ORACLE instance started.

Total System Global Area 1068937216 bytes
Fixed Size          2233344 bytes
Variable Size         616565760 bytes
Database Buffers      444596224 bytes
Redo Buffers            5541888 bytes
ORA-00205: error in identifying control file, check alert log for more info

Содержание

  1. Ora 00205 error in identifying control file check alert log
  2. DBAtricksWorld.com
  3. Sharing Knowledge is ultimate key to Gaining knowledge…
  4. ORA-00205: error in identifying control file, check alert log for more info
  5. ORA-00205: error in identifying controlfile
  6. Comments

Ora 00205 error in identifying control file check alert log

Потеря или повреждение контрольного файла- это первая неприятность, которая вас может ожидать при попытке стартовать экземпляр СУБД Oracle. Обнаруживается она сразу при попытке монтировать систему: в ответ на startup mount в svrmgrl или в sqlplus вы получите сообщение типа

ORA-00205: error in identifying controlfile, check alert log for more info

Для того, чтобы понять, почему так происходит и немножко сориентироваться в дальнейших действиях, достаточно вспомнить о его роли. Контрольный файл (control file, можно еще сказать ‘файл контроля корректности состояния СУБД’, это более правильно, но несколько длиннее) — это файл со специальной ‘базой данных’, с информацией о текущем состоянии таких объектов СУБД, как табличных пространств, файлов — с данными и журнальных. Один из важнейших отслеживаемых контрольным файлом параметров является ‘последовательный номер изменений в системе’ (system change number, SCN). Номер SCN выдается системой каждой начинаемой транзакции, и когда изменения попадают в файл данных, этот номер заносится в заголовок файла и в контрольный файл одновременно (естественно, что кроме этого SCN попадает и в журнальные файлы). При запуске СУБД система сравнивает SCN из заголовка файла с SCN, записанным для этого файла у себя. Если номер в файле оказывается старше положенного, требуется восстановление файла с данными. Если в этой ситуации подменить контрольный файл старой версией, можно получить сообщение об ошибке ‘контрольный файл устарел’. Это то, что касается синхронизации файлов системы. Но в контрольном файле хранится еще и другая информация о СУБД — например, максимальное число файлов в группе журнала и прочее.

Неприятность с контрольным файлом может возникнуть при сбоях или неосторожном использовании файловой системы, или же при неаккуратном восстановлении резервной копии БД. Но поскольку для работы Oracle контрольный файл жизненно важен, порча его или исчезновение делают работу с БД невозможной. Для того, чтобы обезопасить пользователя от таких ситуаций, в Oracle имеется механизм зеркалирования контрольных файлов, позволяющий заводить несколько копий файла, за содержательной идентичностью которых система следит сама. Но все же, если несмотря на ‘неоднократные предупреждения Минздрава’ контрольный файл у администратора ‘подзалетел’, что же делать ? Многое зависит от конкретных обстоятельств неприятности. Ниже приводится возможная последовательность действий.

Итак, что же делать, если неприятность с контрольным файлом не дает возможности монтировать систему (вспомним, что именно актом чтения контрольного файла отличается обработка startup mount от startup nomount) ?

Действие 1. Для начала нужно определиться с наличием контрольных файлов и с тем, какой именно файл вызвал неприятность. Так как система неработоспособна, придется обратиться к файлу INIT.ORA или CONFIG.ORA и найти там предложение control_files = ( : ) с перечнем зеркальных копий файла, или с указанием одного, когда зеркальных копий нет.

Затем нужно обратиться в ‘журнал для регистрации поступающих сигналов с мест’ (alert log). Обычно он расположен в каталоге ORACLE_BASE/ORACLE_SID/admin/bdumb , но может быть и в другом месте, например, указанным в параметре background_dump_dest в INIT.ORA или CONFIG.ORA (в версиях 8.0 и раньше в Windows NT он может быть ни там, ни там, но его легко найти) — в файле alert_ORACLE_SID.log. Там обнаружится сообщение типа такого:

ORA-00202: controlfile: ‘E:Oracleoradatadb1control01.ctl’

ORA-27041: unable to open file

OSD-04002: unable to open file

O/S-Error: (OS 2) The system cannot find the file specified.

Теперь нужно присмотреться к реальным файлам, сравнить их размеры и даты изменений и определиться с ситуацией и дальнейшими действиями.

Файл, на который грешит Oracle, отсутствует, но имеется хотя бы одна его копия.

Перейти к действию 2.

Файл, на который ругается Oracle, в наличии, но поврежден.

Если повреждение файла неочевидно, заключение об этом становится субъективным, то есть делом выбора (интуиции, опыта) АБД. Убедиться в правильности выбора тогда поможет ‘игра в подстановки’ копий контрольного файла, описанная в действии 2. С этого момента прежде чем двигаться дальше настоятельно рекомендуется снять копии всех имеющихся контрольных файлов .

Если все оперативные (online) журнальные файлы на месте, то, возможно, наиболее простой сценарий дальнейших действий — убедиться в наличии всех файлов с данными и журнальных файлов (действия 3 и 4) и пересоздать контрольный файл командой create controlfile (действия 5 и 6).

Контрольные файлы либо полностью отсутствую, либо все имеют разные размеры и даты изменений.

Можно принять заключение, что все контрольные файлы повреждены, и что их всех нужно восстановить, либо же восстановить всю БД по резервной копии. Последнее возможно, если (надо надеяться) при резервном копировании вы не забывали выполнять backup control file to trace (по этой команде создается SQL-последовательность для регенерации контрольного файла). Если этого не делалось, приходится переходить к действию 7, а если да (вы делали backup) — то к действиям с 3-го по 6-е).

Действие 2. Пытаемся подставить годный контрольный файл. Итак, Oracle жалуется либо на отсутствующий, либо на плохой контрольный файл. Еще раз проверяем, что файловой системой сняли копии всех наличных контрольных файлов.

Поначалу смотрим в журнале alert log, какой файл негоден (см. выше). Пробуем подставить на его место годный (по нашему мнению) файл и ‘выливаем воду из кастрюльки’ — делаем startup mount. Если зеркальных копий несколько (или негодный файл точно неизвестен), подставлять ‘годный’ файл придется по очереди несколько раз и на место всех копий сразу (команда copy файловой системы).

Если стартовать Oracle получились — прекрасно; если нет — переходим на действия 3 — 6 по созданию контрольного файла заново.

Действие 3. Пытаемся определить, в порядке ли все файлы с данными и оперативные файлы журнала. Это нужно знать, потому что без этого нельзя запускать сценарий создания контрольного файла (действие 6). Если авария с контрольным файлом произошла после неудачного восстановления резервной копии, и выясняется, что файлы с данными — более древние, чем надо, это может оказаться не страшно и поправимо с помощью восстановления media recovery. Однако, для возможности отработки действия 6 необходимо, чтобы оперативные файлы журнала были в целости и соответствовали текущему состоянию системы.

Это связано с тем, что при создании контрольного файла система будет заглядывать в каждый файл данных и проверять его SCN. Если будет обнаружено, что SCN из файла — более поздний, чем все номера SCN, фигурирующие в файлах оперативного журнала, процесс создания будет оборван.

Если вы пришли к твердому мнению, что какой-то из файлов данных или оперативного журнала негоден к использованию, нужно переходить к следующему действию. В противном случае можно перейти к действию 5.

Действие 4. Восстанавливаем файлы данных или журнала, оказавшиеся негодными. Еще раз: если вы не уверены, что какие-то из файлов негодны, и что весьма вероятно, что с файлами все нормально, то можете, при желании, перейти сразу к действию 5, и при неудаче вернуться снова сюда. Беды от этого не будет.

Для начала определимся с наличием файлов. Перечень файлов, которые должны иметься, можно получить, войдя в svrmgrl или в sqlplus (в последнем случае рекомендуется выдать sqlplus /nolog), выдав connect internal, а затем последовательно

select name from v$datafile;

select group#, member from v$logfile;

(Вспомним, что v$-‘таблицы’ физически хранятся не в файлах, а в SGA, и доступны поэтому и при неоткрытой БД).

Сначала следует присмотреться к файлам данных. Если какие-то из них в файловой системе отсутствуют, или имеют нулевую длину, или имеют более позднюю дату изменения, чем самый последний оперативный журнальный файл, — их придется восстанавливать по резервной копии.

С журнальными файлами ситуация немножко иная. Нужно проверить на одинаковость длины и даты изменения всех файлов внутри одной группы. Естественно, что длины должны быть ненулевыми, а даты осмысленными. Неприятность может иметь две разных окраски:

В каждой группе найдется хотя бы один нормальный журнал.

Это хорошая ситуация. Если в группе имеются и ненормальные журналы, обычной командой ОС copy на их место копируются нормальные. Зеркалирование пригодилось !

Хотя бы одна группа повреждена целиком.

Это плохая ситуация, так как создание контрольного файла (действие 5) требует наличия всех оперативных журналов. Придется полностью восстанавливать БД и выполнять alter database open resetlogs, о чем как-нибудь будет отдельный разговор.

Действие 5. Ищем сценарий создания контрольного файла — хорошо бы он нашелся уже готовый ! Он может иметься, если вы выдавали команду alter database backup control file to trace, когда еще все работало. Поэтому неплохо такую команду выполнять регулярно и автоматически, например, с помощью cron в Unix.

Сценарий, созданный этой командой, попадает в файл трассировки. В NT (версия 8.1 Oracle) этот файл хранится по умолчанию в ORACLE_BASEAdminORACLE_SIDudump, а другое место хранения может быть задано параметром user_dump_dest в файле инициализации СУБД. Файлов трассировки (обычно они носят расширение trc) может быть несколько, и тогда среди них нужно найти тот с наиболее поздней командой create controlfile (в разных ОС для этого есть разные возможности; в NT, например, много придется поработать глазами, а в Unix — руками и головой) и перейти к действию 6. Если трассировочных файлов с командой создания контрольного файла не окажется в наличии, переходим к действию 7.

Действие 6. Запускаем сценарий создания контрольного файла. Для этого копируем файл трассировки (см. предыдущее действие) в файл, например, rebuild.sql. Удаляем в текстовом редакторе все, что стоит до фразы ‘# The following commands will create :’ и после последнего предложения SQL, идущего по тексту. В самое начало добавляем connect internal — и файл можно подавать на вход srvmgrl (напомним, что СУБД не запущена).

Если все сработало, считайте, что вы отделались легким испугом и отдохните. Иначе (например, выяснилось, что оперативные файлы журнала повреждены) — переходим к следующему действию.

Действие 7. Пробуем восстановить контрольный файл по резервной копии, готовимся к восстановлению БД и пытаемся ее восстановить. То, что мы дошли до этого шага, есть, определенно, следствие катаклизма. Судите: мы утеряли все работоспособные копии контрольного файла, сценарий его восстановления (если его когда-нибудь формировали !) и все целые копии в по меньшей мере в одной из групп оперативных журналов.

Выбор невелик. Теперь можно либо откатиться на n часов, суток, недель назад по холодной копии, либо-таки попытаться восстановить последний годный контрольный файл по одной из резервных копий и, пользуясь им, восстановить БД. Но это требует отдельного разговора.

Источник

DBAtricksWorld.com

Sharing Knowledge is ultimate key to Gaining knowledge…

ORA-00205: error in identifying control file, check alert log for more info

To demonstrate this error, I have intentionally deleted control file (i.e.control02.ctl)

And try to startup database to stimulate exact error:

database throws ORA-00205 error as expected due to one of the control file not in place.

Solution:

Ensure existing control file locations with following:

There are 2 control files mentioned in CONTROL_FILES parameter, Ensure which control file is not available.

So, control02.ctl is not available, issue following alter command in order to edit only one control file location in CONTROL_FILES parameter.

Shutdown the database and start it up:

The database is opened with one control file:

It is highly recommended to run your Oracle database with multiple control files(called control file multiplexing) in order to reduce the risk of losing control file due to corruption, accidental removal or any possible worst. How to multiplex Oracle control file?

Источник

ORA-00205: error in identifying controlfile

I am having problem with control file, what is solution? all the 4 control file are present on OS

SQL> ALTER SYSTEM SET CONTROL_FILES=»C:oracleoradataInfCONTROL01.CTL»,»C:oracleoradataInfCON
TROL02.CTL»,»C:oracleoradataInfCONTROL03.CTL»,»C:oracleoradataInfCONTROL04.CTL» SCOPE=SPFILE
;

SQL> STARTUP FORCE;
ORACLE instance started.

Total System Global Area 135338868 bytes
Fixed Size 453492 bytes
Variable Size 109051904 bytes
Database Buffers 25165824 bytes
Redo Buffers 667648 bytes
ORA-00205: error in identifying controlfile, check alert log for more info

SQL> SHOW PARAMETER CONTROL_FILES;

NAME TYPE VALUE
———————————— ———— ——————————
control_files string C:oracleoradataInfCONTROL0
1.CTL, C:oracleoradataInfC
ONTROL02.CTL, C:oracleoradat
aInfCONTROL03.CTL, C:oracle
oradataInfCONTROL04.CTL

Can you post last few lines in Alertsid.log

Message was edited by:
user526020

starting up 1 shared server(s) .
starting up 1 dispatcher(s) for network address ‘(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))’.
ARCH: STARTING ARCH PROCESSES
ARC0 started with pid=12
ARC0: Archival started
ARC1 started with pid=13
ARC1: Archival started
Thu Aug 24 10:36:38 2006
ARCH: STARTING ARCH PROCESSES COMPLETE
Thu Aug 24 10:36:38 2006
ARC0: Thread not mounted
Thu Aug 24 10:36:38 2006
ARC1: Thread not mounted
Thu Aug 24 10:36:38 2006
ALTER DATABASE MOUNT
Thu Aug 24 10:36:38 2006
ORA-00202: controlfile: ‘C:oracleoradataInfCONTROL01.CTL’
ORA-27086: skgfglk: unable to lock file — already in use
OSD-04002: unable to open file
O/S-Error: (OS 5) Access is denied.

Thu Aug 24 10:36:41 2006
ORA-205 signalled during: ALTER DATABASE MOUNT.

ORA-00202: control file: ‘string’
Cause: This message reports the name file involved in other messages.
Action: See associated error messages for a description of the problem.

ORA-27086: unable to lock file — already in use
Cause: the file is locked by another process, indicating that it is currently in use by a database instance.
Action: determine which database instance legitimately owns this file.

May be the problem bcoz of startup force

Listen to all other members.

Message was edited by:
user526020

C:>set oracle_sid=fgc

SQL*Plus: Release 10.1.0.2.0 — Production on Thu Aug 24 19:13:19 2006

Copyright (c) 1982, 2004, Oracle. All rights reserved.

SQL> conn / as sysdba
Connected.
SQL> show parameter control_files

NAME TYPE VALUE
———————————— ———— ——————————
control_files string ORACLEPRODUCT10.1.0ORADA
TAFGCCONTROL01.CTL, ORACL
EPRODUCT10.1.0ORADATAFGCC
ONTROL02.CTL, ORACLEPRODUC
T10.1.0ORADATAFGCCONTROL03
.CTL

SQL> alter system set control_files=’d:oraclecontrol.ctl’ scope=spfile;

SQL> startup force
ORACLE instance started.

Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 145488364 bytes
Database Buffers 25165824 bytes
Redo Buffers 524288 bytes
ORA-00205: error in identifying controlfile, check alert log for more info

SQL> shutdown;
ORA-01507: database not mounted

ORACLE instance shut down.
SQL> conn / as sysdba
Connected to an idle instance.
SQL> startup nomount;
ORACLE instance started.

Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 145488364 bytes
Database Buffers 25165824 bytes
Redo Buffers 524288 bytes
SQL> show parameter control_files

NAME TYPE VALUE
———————————— ———— ——————————
control_files string ORACLECONTROL.CTL

The problem is this. bcoz we change path of control file but physical there no copy of control file.

Note: Create New INIT.ORA file with old control file location.

SQL> conn / as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.

Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 145488364 bytes
Database Buffers 25165824 bytes
Redo Buffers 524288 bytes
Database mounted.
Database opened.
SQL> show parameter control_files

NAME TYPE VALUE
———————————— ———— ——————————
control_files string ORACLEPRODUCT10.1.0ORADA
TAFGCCONTROL01.CTL, ORACL
EPRODUCT10.1.0ORADATAFGCC
ONTROL02.CTL, ORACLEPRODUC
T10.1.0ORADATAFGCCONTROL03
.CTL
SQL>

I have the same problem. i tired to solve the same steps as instructed by user526020

what happened to my database ..y is it not connecting
i didnt do any changed..control files are missing , flash recovery file is missing , i dont find c:oracleproductflash_recovery_files and oradata floders

and as far as i remember i didnt find those files when i installed oracle 10g freshly then my database was working
but when i got this error and when i searched for forums i did lot many changes but no use

i am worried , i am new to oracle , i was doing my soaorderbooking tutorial and suddenly i got this problem

these steps i followed but no use.

SQL> startup
ORACLE instance started.

Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 145488364 bytes
Database Buffers 25165824 bytes
Redo Buffers 524288 bytes
ORA-00205: error in identifying controlfile, check alert log for more info

SQL> show parameter control_files;

NAME TYPE VALUE
———————————— ———— ——————————
control_files string C:ORACLEPRODUCT10.1.0ORADA
TAORCLCONTROL01.CTL, C:ORAC
LEPRODUCT10.1.0ORADATAORCL
CONTROL02.CTL, C:ORACLEPROD
UCT10.1.0ORADATAORCLCONTRO
L03.CTL
SQL> sqlplus sys/bhargavi as sysdba
SP2-0734: unknown command beginning «sqlplus sy. » — rest of line ignored.
SQL> conn sys/bhargavi as sysdba
Connected.
SQL> shutdown immediate;
ORA-01507: database not mounted

ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 — Pr
oduction
With the Partitioning, OLAP and Data Mining options

C:oracleproduct10.1.0db_1BIN>export oracle_sid=+asm
‘export’ is not recognized as an internal or external command,
operable program or batch file.

SQL*Plus: Release 10.1.0.2.0 — Production on Fri Apr 24 04:13:45 2009

Copyright (c) 1982, 2004, Oracle. All rights reserved.

SQL> export oracle_sid=+asm
SP2-0734: unknown command beginning «export ora. » — rest of line ignored.
SQL> exit

SQL*Plus: Release 10.1.0.2.0 — Production on Fri Apr 24 04:15:46 2009

Copyright (c) 1982, 2004, Oracle. All rights reserved.

SQL> conn sys/bhargavi as sysdba
ERROR:
ORA-12560: TNS:protocol adapter error

SQL*Plus: Release 10.1.0.2.0 — Production on Fri Apr 24 04:16:34 2009

Copyright (c) 1982, 2004, Oracle. All rights reserved.

SQL> conn sys/bhargavi as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.

Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 145488364 bytes
Database Buffers 25165824 bytes
Redo Buffers 524288 bytes
ORA-00205: error in identifying controlfile, check alert log for more info

SQL> show parameter control_files

NAME TYPE VALUE
———————————— ———— ——————————
control_files string C:ORACLEPRODUCT10.1.0ORADA
TAORCLCONTROL01.CTL, C:ORAC
LEPRODUCT10.1.0ORADATAORCL
CONTROL02.CTL, C:ORACLEPROD
UCT10.1.0ORADATAORCLCONTRO
L03.CTL
SQL> alter system set control_files=’c:oraclecontrol.ctl’ scope=spfile;

SQL> startup force
ORACLE instance started.

Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 145488364 bytes
Database Buffers 25165824 bytes
Redo Buffers 524288 bytes
ORA-00205: error in identifying controlfile, check alert log for more info

SQL> shutdown
ORA-01507: database not mounted

ORACLE instance shut down.
SQL> conn sys/bhargavi as sysdba
Connected to an idle instance.
SQL> startup nomount;
ORACLE instance started.

Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 145488364 bytes
Database Buffers 25165824 bytes
Redo Buffers 524288 bytes
SQL> show parameter control_files

NAME TYPE VALUE
———————————— ———— ——————————
control_files string C:ORACLECONTROL.CTL
SQL> create pfile=’c:oracleinit.ora’ from spfile;

SQL> conn sys/bhargavi as sysdba
Connected.
SQL> startup
ORA-01081: cannot start already-running ORACLE — shut it down first
SQL> shutdown
ORA-01507: database not mounted

ORACLE instance shut down.
SQL> startup
ORACLE instance started.

Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 145488364 bytes
Database Buffers 25165824 bytes
Redo Buffers 524288 bytes
ORA-00205: error in identifying controlfile, check alert log for more info

SQL> show parameter control_files;

NAME TYPE VALUE
———————————— ———— ——————————
control_files string C:ORACLECONTROL.CTL
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 — Pr
oduction
With the Partitioning, OLAP and Data Mining options

SQL*Plus: Release 10.1.0.2.0 — Production on Fri Apr 24 04:30:11 2009

Copyright (c) 1982, 2004, Oracle. All rights reserved.

SQL> show parameter control_files
SP2-0640: Not connected
SQL> conn sys/bhargavi as sysdba
Connected.
SQL> startup
ORA-01081: cannot start already-running ORACLE — shut it down first
SQL> shutdown abort
ORACLE instance shut down.
SQL> startup
ORACLE instance started.

Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 145488364 bytes
Database Buffers 25165824 bytes
Redo Buffers 524288 bytes
ORA-00205: error in identifying controlfile, check alert log for more info

SQL> show parameter control_files

NAME TYPE VALUE
———————————— ———— ——————————
control_files string C:ORACLECONTROL.CTL
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 — Pr
oduction
With the Partitioning, OLAP and Data Mining options

SQL*Plus: Release 10.1.0.2.0 — Production on Fri Apr 24 04:35:18 2009

Copyright (c) 1982, 2004, Oracle. All rights reserved.

SQL> conn sys/bhargavi as sysdba
Connected.
SQL> show parameter control_files

NAME TYPE VALUE
———————————— ———— ——————————
control_files string C:ORACLECONTROL.CTL
SQL> startup force
ORACLE instance started.

Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 145488364 bytes
Database Buffers 25165824 bytes
Redo Buffers 524288 bytes
ORA-00205: error in identifying controlfile, check alert log for more info

SQL> shutdown
ORA-01507: database not mounted

ORACLE instance shut down.
SQL> conn sys/bhargavi as sysdba
Connected to an idle instance.
SQL> startup nomount;
ORACLE instance started.

Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 145488364 bytes
Database Buffers 25165824 bytes
Redo Buffers 524288 bytes
SQL> show parameter control_files

NAME TYPE VALUE
———————————— ———— ——————————
control_files string C:ORACLECONTROL.CTL
SQL> create pfile=’C:oracleproduct10.1.0oradataorclinit.ora’ from spfile;
create pfile=’C:oracleproduct10.1.0oradataorclinit.ora’ from spfile
*
ERROR at line 1:
ORA-09210: sftopn: error opening file
OSD-04002: unable to open file
O/S-Error: (OS 3) The system cannot find the path specified.

SQL> create pfile=’C:oracleproduct10.1.0oradataorclinit.ora’ from spfile;
create pfile=’C:oracleproduct10.1.0oradataorclinit.ora’ from spfile
*
ERROR at line 1:
ORA-09210: sftopn: error opening file
OSD-04002: unable to open file
O/S-Error: (OS 3) The system cannot find the path specified.

SQL> create pfile=’C:oracleproduct10.1.0oradataorclinit.ora’ from spfile;

SQL> conn sys/bhargavi as sysdba
Connected.
SQL> startup
ORA-01081: cannot start already-running ORACLE — shut it down first
SQL> shutdown
ORA-01507: database not mounted

ORACLE instance shut down.
SQL> conn sys/bhargavi as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.

Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 145488364 bytes
Database Buffers 25165824 bytes
Redo Buffers 524288 bytes
ORA-00205: error in identifying controlfile, check alert log for more info

Источник

Cause :- This error can occur for lost/corrupted any control file.
In my situation I have unfortunately lost one of control file from two files.

Solution :- Create pfile from spfile > Edit pfile > Change “*.control_files=” parameter. Open database using pfile.

SQL> select status from v$instance;

STATUS
————
STARTED

SQL> alter database mount;
alter database mount
*
ERROR at line 1:
ORA-00205: error in identifying control file, check alert log for more info

SQL> show parameter contr

NAME                                 TYPE        VALUE
———————————— ———– ——————————
control_file_record_keep_time        integer     7
control_files                        string      D:APPORADATADBRMANCONTROL0
                                                 1.CTL, D:APPFLASH_RECOVERY_A
                                                 READBRMANCONTROL02.CTL
control_management_pack_access       string      DIAGNOSTIC+TUNING
SQL> create pfile=’D:pfile.ora’ from spfile;

File created.

Now edit pfile

=================================== Old Pfile ===================================================
dbrman.__db_cache_size=218103808
dbrman.__java_pool_size=4194304
dbrman.__large_pool_size=4194304
dbrman.__oracle_base=’D:app’#ORACLE_BASE set from environment
dbrman.__pga_aggregate_target=255852544
dbrman.__sga_target=381681664
dbrman.__shared_io_pool_size=0
dbrman.__shared_pool_size=146800640
dbrman.__streams_pool_size=0
*.audit_file_dest=’D:appadminDBRMANadump’
*.audit_trail=’db’
*.compatible=’11.2.0.0.0′
*.control_files=’D:apporadataDBRMANcontrol01.ctl’,’D:apporadataDBRMANcontrol02.ctl’
*.db_block_size=8192
*.db_domain=”
*.db_name=’DBRMAN’
*.db_recovery_file_dest=’D:appflash_recovery_area’
*.db_recovery_file_dest_size=4039114752
*.diagnostic_dest=’D:app’
*.dispatchers='(PROTOCOL=TCP) (SERVICE=DBRMANXDB)’
*.memory_target=634388480
*.open_cursors=300
*.processes=150
*.remote_login_passwordfile=’EXCLUSIVE’
*.undo_tablespace=’UNDOTBS1′
==================================== After Editing New Pfile ==========================================
dbrman.__db_cache_size=218103808
dbrman.__java_pool_size=4194304
dbrman.__large_pool_size=4194304
dbrman.__oracle_base=’D:app’#ORACLE_BASE set from environment
dbrman.__pga_aggregate_target=255852544
dbrman.__sga_target=381681664
dbrman.__shared_io_pool_size=0
dbrman.__shared_pool_size=146800640
dbrman.__streams_pool_size=0
*.audit_file_dest=’D:appadminDBRMANadump’
*.audit_trail=’db’
*.compatible=’11.2.0.0.0′
*.control_files=’D:apporadataDBRMANcontrol01.ctl’
*.db_block_size=8192
*.db_domain=”
*.db_name=’DBRMAN’
*.db_recovery_file_dest=’D:appflash_recovery_area’
*.db_recovery_file_dest_size=4039114752
*.diagnostic_dest=’D:app’
*.dispatchers='(PROTOCOL=TCP) (SERVICE=DBRMANXDB)’
*.memory_target=634388480
*.open_cursors=300
*.processes=150
*.remote_login_passwordfile=’EXCLUSIVE’
*.undo_tablespace=’UNDOTBS1′
============================================================================================================

SQL> ALTER DATABASE MOUNT;
ALTER DATABASE MOUNT
*
ERROR at line 1:
ORA-00205: error in identifying control file, check alert log for more info

SQL> SHUTDOWN IMMEDIATE;
ORA-01507: database not mounted

ORACLE instance shut down.
SQL> CONN /AS SYSDBA
Connected to an idle instance.
SQL> STARTUP PFILE=D:pfile.ora;
ORACLE instance started.

Total System Global Area  535662592 bytes
Fixed Size                  1375792 bytes
Variable Size             310378960 bytes
Database Buffers          218103808 bytes
Redo Buffers                5804032 bytes
Database mounted.
Database opened.
SQL>

SQL> create spfile from pfile=’D:pfile.ora’;

File created.

Hi all ,

I have installed Oracle database 10g on Solaris 10 ,and the created the listener and service name using the netmgr utility and then added the init<sid>.ora manually by just coping the existing init.ora file (I have just copied and rename it to sute my Oracle SID). and then set ORACLE_HOME and ORACLE SID then started the database ./dbstart and the listener ./lsnstart .folowing are the output if the console :

bash-3.00$ ./dbstart
bash-3.00$ ./lsnrctl start

LSNRCTL for Solaris: Version 10.2.0.2.0 – Production on 10-FEB-2010 10:58:46

Copyright (c) 1991, 2005, Oracle. All rights reserved.

TNS-01106: Listener using listener name LISTENER has already been started
bash-3.00$ ./sqlplus / as sysdba

SQL*Plus: Release 10.2.0.2.0 – Production on Wed Feb 10 10:58:58 2010

Copyright (c) 1982, 2005, Oracle. All Rights Reserved.

Connected to an idle instance.

SQL> startup
ORACLE instance started.

Total System Global Area 96468992 bytes
Fixed Size 1278688 bytes
Variable Size 88083744 bytes
Database Buffers 4194304 bytes
Redo Buffers 2912256 bytes
ORA-00205: error in identifying control file, check alert log for more info
But the last line point to a problem in the controle file and here is the output of the alert log file :

ALTER DATABASE MOUNT
Wed Feb 10 11:02:45 2010
ORA-00202: control file: ‘/export/home/oracle/oracle/product/10.2.0/db_1/dbs/ora_control1’
ORA-27037: unable to obtain file status
Intel SVR4 UNIX Error: 2: No such file or directory
Additional information: 3

i check the file ora_control1 but doesn’t exit in the dbs directory .How Should I generte .Is there any problem in my installtion procedure

Thanks in advance.

Добавить комментарий