Monday, August 24, 2009

ORA-01157

ORA-01157: cannot identify/lock data file string - see DBWR trace file

Cause: The background process was either unable to find one of the data files or failed to lock it because the file was already in use. The database will prohibit access to this file but other files will be unaffected. However the first instance to open the database will need to access all online data files. Accompanying error from the operating system describes why the file could not be identified.

Action: Have operating system make file available to database. Then either open the database or do
ALTER SYSTEM CHECK DATAFILES.

Note:
The error happened when creating a tablespace:

create tablespace TBS datafile '/u02/oracle/MYDB/tbs01.dbf' size 50M
extent management local autoallocate segment space management auto;


ERROR at line 1:
ORA-01157: cannot identify/lock data file 12 - see DBWR trace file
ORA-01110: data file 12: '/u02/oracle/MYDB/tbs01.dbf'

Last updated: August 24, 2009

All Oracle errors in the blog can be found at: Oracle errors
All ESRI ArcSDE errors in the blog can found at:
ArcSDE Errors

ORA-01033


ORA-01033: ORACLE initialization or shutdown in progress

Cause: An attempt was made to log on while Oracle is being started up or shutdown.

Action: Wait a few minutes. Then retry the operation.
sde.log:
% sdemon -o start
Please enter ArcSDE DBA password:

-------------------------------------------------------
ArcSDE 9.2 for Oracle10g Build 1206 Fri Oct 19 08:31:29 2007
-------------------------------------------------------

Reading /apps/sde/sdedb/etc/dbinit.sde:

set ORACLE_HOME = /oracle/product/10.2.0.3se
set ORACLE_SID = sdedb
unset TWO_TASK

DB_open_instance()::db_connect (OCI8) error: 1033

init_DB DB_instance_open_as_dba: -51

DBMS error code: 1033
ORA-01033: ORACLE initialization or shutdown in progress

Could not start ArcSDE -- Check Network, $SDEHOME disk, DBMS settings and dbinit.sde.
Last updated: August 24, 2009
All Oracle errors in the blog can be found at: Oracle errors
All ESRI ArcSDE errors in the blog can found at: ArcSDE Errors

More Oracle DBA tips, please visit Oracle DBA Tips