on 10-19-2010 11:34 AM
I created a datafile in a wrong location. I then remove the filesystem of the OS with the command "rm" but the database is still recall the datafile so I can not delete it and the more I fear that there are already Data in this filesystem. Then I created another datafile in a good location and I put the first to offline, but the problem is that the online did not work because the database still looking the old datafile.
Could you please help me.
Thx in advance.
HOW TO MOVE A DATA FILE FROM ONE FILE SYSTEM TO ANOTHER FILE SYSTEM.
You can do it via brtools or try below method
If you have created data file called "ODSD.DATA54" wrongly under ":\oracle\test\saparch\data4"
you can move it to the required location ie. to the new location '\oracle\PROD\sapdata3\data4\ODSD.DATA54'
1) Before taking the database to shutdown state:
alter database backup controlfile to '\oracle\PROD\sapreorg\cntrlPROD.old';
2)Shoutdown normal
3)Move the dtatafile ODSD.DATA54 from \oracle\test\saparch\data to the new location \oracle\PROD\sapdata3\data4
4)Make a new path like \oracle\PROD\sapdata3\data4 , if data4 folder is not there under sapdate3 create
folder data4
5)alter database mount;
6)alter database rename file '\oracle\test\saparch\data4\ODSD.DATA54' to
'\oracle\PROD\sapdata3\data4\ODSD.DATA54';
7)Alter database open;
😎 alter database backup controlfile to '\oracle\PROD\sapreorg\cntrlPROD.new';
9)After the database is up you can check the status of the database by
select status from v$instance;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sunil is right... you can't delete a datafile without expecting this to happen.
If the datafile is gone/deleted you are going to have to restore from backup
Regards
Juan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you should go though the Database administration documentation.
Which OS and DB you are using?
You can't simply delete the datafile while database is online or offline. You can move the datafiles from one location to another using brtools if you are on oracle.
Do you have the backup of your system before you deleted the datafile? If yes then please restore and then move the datafiles using database commands or brtools.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.