ORA-01180: can not create SYSTEM datafile [message #263561] |
Thu, 30 August 2007 06:32 |
naveenkumar001
Messages: 62 Registered: July 2007 Location: Bangalore
|
Member |
|
|
Hi,
I am studying Backup and Recovery I am doing user-managed Backup and Recovery since i have not yet learnt RMAN.
My database is running in Archive Log mode and i have all the archives.
I came across a scenario of "Recreating DATAFILE" and deleted one non-system datafile and i tried this command:-
Alter database create datafile 'C:\ORACLE\ORADATA\VENKAT\Nav01.DBF';
It worked, but i deleted SYSTEM datafile purposely and when i tried to recreate it gave error:-
SQL> Alter database create datafile 'C:\ORACLE\ORADATA\VENKAT\SYSTEM01.DBF';
alter database create datafile 'C:\ORACLE\ORADATA\VENKAT\SYSTEM01.DBF'
*
ERROR at line 1:
ORA-01180: can not create datafile 1
ORA-01110: data file 1: 'C:\ORACLE\ORADATA\VENKAT\SYSTEM01.DBF'
Question:-
1) I searched on net and i came to know we cannot recreate SYSTEM datafile but i was not able to get information why we cannot recreate SYSTEM datafile but only we can recreate Non-SYSTEM datafile.
2) What should be my next step to solve this problem.
Please guide me.
Regards,
Naveen
|
|
|
|
|
|
|
|
|
|
Re: ORA-01180: can not create SYSTEM datafile [message #263637 is a reply to message #263606] |
Thu, 30 August 2007 10:04 |
lecorr
Messages: 17 Registered: October 2006 Location: Courbevoie, France
|
Junior Member |
|
|
Hi,
system tablespace is your head
control files is your heart.
other files hands and feet.
You can cut anything BUT your head or your are dead (medecine can now replace the heart, you can rebuild control files).
Oracle's the same.
So you're dead.
BUT computers are not people, so if you have a backup of your system tablespace, you may be able to restore it then rebuild the complete database.
Other thing, if you deleted your system tablespace (or any other tablespace) while the database was running; in fact most of OS's will keep the file alive until you release the locks by stopping the database. So, if this happens, you can export the complete database then stop it (and it'll be dead), then recreate it.
Regards.
PS: I think I'm right, tell me if not.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|