472,353 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

ORA-01219: database not open

I am working on Oracle database 10G. My database was working fine till last night but today when i tryed to connect, it was showing me following error:
ORA-01219: database not open: queries allowed on fixed tables/views only

So I did the following steps from command prompt:

Expand|Select|Wrap|Line Numbers
  1. C:\>sqlplus
  2.  
  3. SQL*Plus: Release 10.2.0.3.0 - Production on Thu Jul 7 10:49:58 2011
  4.  
  5. Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.
  6.  
  7. Enter user-name: / as sysdba
  8.  
  9. Connected to:
  10. Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
  11. With the Partitioning, OLAP and Data Mining options
  12.  
  13. SQL> shutdown abort
  14. ORACLE instance shut down.
  15. SQL> startup
  16. ORACLE instance started.
  17.  
  18. Total System Global Area  251658240 bytes
  19. Fixed Size                  1289964 bytes
  20. Variable Size             163578132 bytes
  21. Database Buffers           79691776 bytes
  22. Redo Buffers                7098368 bytes
  23. Database mounted.
  24. ORA-01157: cannot identify/lock data file 7 - see DBWR trace file
  25. ORA-01110: data file 7: 'C:\ORACLE\TABLE_SPACES\SWT_TBLSPC'
  26.  
  27.  
  28.  
  29. SQL> select * from dba_users;
  30. select * from dba_users
  31.               *
  32. ERROR at line 1:
  33. ORA-01219: database not open: queries allowed on fixed tables/views only
  34.  
  35.  
  36. SQL> select open_mode from v$database;
  37.  
  38. OPEN_MODE
  39. ----------
  40. MOUNTED
  41.  
  42.  
Then I tried to open the database but I got errors:

Expand|Select|Wrap|Line Numbers
  1. SQL> alter database open;
  2. alter database open
  3. *
  4. ERROR at line 1:
  5. ORA-01157: cannot identify/lock data file 7 - see DBWR trace file
  6. ORA-01110: data file 7: 'C:\ORACLE\TABLE_SPACES\SWT_TBLSPC'
  7.  
  8.  
  9.  
I checked this path but it is not available physically

Expand|Select|Wrap|Line Numbers
  1. SQL> recover database until cancel;
  2. ORA-00283: recovery session canceled due to errors
  3. ORA-01110: data file 7: 'C:\ORACLE\TABLE_SPACES\SWT_TBLSPC'
  4. ORA-01157: cannot identify/lock data file 7 - see DBWR trace file
  5. ORA-01110: data file 7: 'C:\ORACLE\TABLE_SPACES\SWT_TBLSPC'
  6.  
So, what is the problem?
may someone explaine and fix this problem?

regards
Osman
Jul 7 '11 #1
4 29231
rski
700 Expert 512MB
What changed since the last time oracle started successfuly?
Did you remove manually or rename any oracle files?
Does the file C:\ORACLE\TABLE_SPACES\SWT_TBLSPC exist?


If you or somebody removed that file a dn you are sure it is not needed you can try below
Expand|Select|Wrap|Line Numbers
  1. alter database datafile 7 offline drop;
  2. alter database open;
  3.  
Jul 11 '11 #2
I'm not sure if there is any changes for oracle files.
The file C:\ORACLE\TABLE_SPACES\SWT_TBLSPC does not exist.

this file was not important
So I executed the statements above, and the problem has been solved.

But I have a question, what is the solution for this problem if I need the deleted file?

THANKS.
Jul 11 '11 #3
rski
700 Expert 512MB
If you need the deleted file you will have to recover data backup.
Jul 11 '11 #4
Thanks alot rski for your help.

osman.
Jul 13 '11 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Galina | last post by:
Hello I have created a trigger not to let records with certain fields null to be inserted into the table: BEGIN IF :new.RUL_CODE is null or...
6
by: John | last post by:
Hi Right password -> ORA-12154: TNS:Could not resolve service name wrong password => ORA-01017: invalid username/password; logon denied ...
1
by: Adam Ruth | last post by:
I'm using OCI on Mac OS X and I've run into a strange problem with my TNSNAMES.ORA file. My TNSNAMES.ORA file has one entry INV4II and it works...
6
by: bdj | last post by:
Hello! I have at set of tnsnames.ora. I wich to make an union, e.g. a single file of it. How can I do that easy? Greetings Bjørn
2
by: mpatel6 | last post by:
I had this error in alert log and my instance was down, anybody can help me? Errors in file...
0
by: kalpanaanand | last post by:
I am new to Oracle 9i client. i tried to log in but i am getting this error. this is my listenerfile # LISTENER.ORA Network Configuration File:...
2
by: Dwie | last post by:
Dear All, I'm a new in Oracle DB. I'm using Windows 2000 as server and Windows XP as client. I installed Oracle Enterprise on server and Oracle...
5
by: Nitvar | last post by:
When i am trying to connect to oracle it is giving me these two errors ORA-12224: TNS:no listener ORA-01034: ORACLE not available I am new...
3
nabh4u
by: nabh4u | last post by:
HI everyone, I an getting the following errors when i execute my procedure. SQL> exec PROCEDURE_NAME BEGIN PROCEDURE_NAME; END; * ERROR at...
1
by: hoonig | last post by:
I have this traditional error "ORA-12560:TNS:Protocol Adapter Error" when trying to connect to my Oracle 8i databases on Netware (i.e when i load...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.