creating tables using datafiles [message #657638] |
Wed, 16 November 2016 23:13  |
 |
albayenes
Messages: 4 Registered: November 2016
|
Junior Member |
|
|
Hi everyone,
After recover database using backup controlfile, database gives me error that some datafiles are missing. I could not dropped these datafiles because they were non-empty. So, I decided to drop tablespace and recreate tablespace again and add datafiles to the new tablespace.
I dropped tablespace keeping datafiles. I create new tablespace using same name. I added datafiles to tablespace. But there is no table that I am looking for. My datafiles size is approximately 150 GB. I can not find my tables. Where have my tables gone affter adding datafile to tablespace? How can I bring tables back? Do you have any idea?
Thanks in advance.
|
|
|
Re: creating tables using datafiles [message #657643 is a reply to message #657638] |
Thu, 17 November 2016 00:39   |
John Watson
Messages: 8965 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
If there were objects in the tabespace, you must have dropped it with DROP TABLESPACE...INCLUDING CONTENTS. SO the the tables are gone. There is nothing you can do. Unless you have a full backup somewhere.
|
|
|
Re: creating tables using datafiles [message #657645 is a reply to message #657643] |
Thu, 17 November 2016 01:55   |
 |
albayenes
Messages: 4 Registered: November 2016
|
Junior Member |
|
|
John Watson wrote on Thu, 17 November 2016 08:39If there were objects in the tabespace, you must have dropped it with DROP TABLESPACE...INCLUDING CONTENTS. SO the the tables are gone. There is nothing you can do. Unless you have a full backup somewhere.
Thanks for reply. I recover my database but this time there is missing file which belongs to other incarnations (they have diffirent resetlog times). How can I change these missing files with my original but belongs to previous incarnation datafiles? Is there any alternation command like "change this missing files with this datafiles"?
Is Instead of drop tablespace....includeing contents, only drop tablespace better or not for my scenerio?
[Updated on: Thu, 17 November 2016 01:57] Report message to a moderator
|
|
|
Re: creating tables using datafiles [message #657646 is a reply to message #657645] |
Thu, 17 November 2016 02:33   |
John Watson
Messages: 8965 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
If there is a table in the tablespace, a simple DROP TABLESPACE cannot succeed. The only way is with the INCLUDING CONTENTS clause. SO if you have indeed dropped the tablespace, you already know what commands work and what commands do not.
Do you understand what a relational database is? The abstraction of logical storage (tables) from physical storage (datafiles)? You can't expect your database to understand the contents of datafiles when you have the removed the object definitions from the data dictioranry.
|
|
|
|
Re: creating tables using datafiles [message #657651 is a reply to message #657649] |
Thu, 17 November 2016 02:51  |
John Watson
Messages: 8965 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
You need to do some studying. I have already told you why what you suggest is impossible. Think about it: how can your current data dictionary understand the contents of datafiles from some indeterminant time in the past?
|
|
|