Showing posts with label Database. Show all posts
Showing posts with label Database. Show all posts

Friday, March 14, 2014

ORA-01110: data file 6: Database not open and can't find the path of data file ""

Reason: Sometimes by mistake you have deleted the DBF files and while accessing the database you get the following exception:

ORA-01110: data file 6: Database not open. Can't find the path of data file "C:\oraclexe\xe\oradata\weblogic_Data01.DBF"

Solution:

offline drop of datafile:
In Oracle if you wish to delete DBF file and tablespace or schema you run the drop command to delete tablespace and physically remove the DBF file from the disk.
But sometimes you don't need to physically remove the file and just delete the tablespace offline i.e. Oracle will not access the tablespace or DBF file anymore but the file is still on the disk.

In the above problem, you have deleted the physical DBF file from the disk but oracle is still accessing that DBF file. In that case delete the DBF file offline by running the following command:

alter database datafile 'C:\oraclexe\xe\oradata\weblogic_Data01.DBF' offline drop;

then restart the database.

Note: Offlining of datafile is used when you have to delete the tablespace and also you can recover the data file on later date.

Thursday, March 13, 2014

ORA-00838: Specified value of MEMORY_TARGET is too small, needs to be at least 180 M

Reason: This exception occurs when the user is trying to allocate an SGA or PGA size more than what is allocate to the database. This may also occur when the user is trying to allocate the database less memory than the minimum requirement.

Solution:

1)      First create a temporary pfile from current spfile:
2)      Sql command : Create  pfile=<filepath>/filename from spfile;
3)      Open the pfile and edit value of MEMORY_TARGET and set to required value, then create spfile from this modified pfile:
4)      Sql command: create spfile from pfile=<filepath>/filename
5)      Restart the database using SQL command: Startup

Monday, November 18, 2013

ORA-00904: "ORA_ROWSCN": invalid identifier

Sometimes when you look the database tables in SQL Developer or in Jdeveloper Database Navigator you are facing the following issue:
ORA-00904: "ORA_ROWSCN": invalid identifier
and you are not able to see the data in the table.

In that case you can do following step
Go to  preference -> database -> object viewer and uncheck the check-box  "Use ORA_ROWSCN for DataEditor insert and update statements." and then data is visible.