![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
The goal would be to undo the effects of a faulty script which generates an error midway, but has made several alter tables and such. If I want to run the full, corrected script again, it would be nice not to spend a day performing a restore. Regards, |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
On Sat, 26 Mar 2011 12:25:44 -0700, prunoki wrote: The goal would be to undo the effects of a faulty script which generates an error midway, but has made several alter tables and such. If I want to run the full, corrected script again, it would be nice not to spend a day performing a restore. Regards, That's what an export is for. Before changes on a schema, always export the schema. The people turned into enemies by the "web 2.0" would know that. The dreaded "DBA" was expected to know how to manage software installation, but the "DBA 2.0" is expected only to know which button on the OEM to click. You, apparently, have the DBA 2.0 who didn't read the installation plan and screamed when seeing that the plan doesn't include the prior export. Alternative is the "flashback database" command, which might work if your undo tablespace is large enough. That, however, will not roll back only one schema. If there is a physical standby, you can try it there, too. -- http://mgogala.byethost5.com |
#5
| |||
| |||
|
|
Hello, Is there a way to rollback schema changes, other than restoring from backup until a specific time or SCN? The database in question is 10g. I mean without writing a complete script to undo the changes of course. The goal would be to undo the effects of a faulty script which generates an error midway, but has made several alter tables and such. If I want to run the full, corrected script again, it would be nice not to spend a day performing a restore. |
#6
| |||
| |||
|
|
Mladen: # That's what an export is for. Before changes on a schema, always export the schema. Nobody really exports schema's before making database changes do they? ( Done in sarcastic voice ... ). Nobody really exports schemas and/or the whole database on a daily and/ or weekly basis just in case do they? |
#7
| |||
| |||
|
|
Is there a way to rollback schema changes, other than restoring from backup until a specific time or SCN? The database in question is 10g. I mean without writing a complete script to undo the changes of course. The goal would be to undo the effects of a faulty script which generates an error midway, but has made several alter tables and such. If I want to run the full, corrected script again, it would be nice not to spend a day performing a restore. |
#8
| |||
| |||
|
|
Nobody really exports schemas and/or the whole database on a daily and/ or weekly basis just in case do they? You mean there is a button in OEM to do that? |
#9
| |||
| |||
|
#10
| |||
| |||
|
|
Mladen: # That's what an export is for. Before changes on a schema, always export the schema. Nobody really exports schema's before making database changes do they? *( Done in sarcastic voice ... ). Nobody really exports schemas and/or the whole database on a daily and/ or weekly basis just in case do they? |
![]() |
| Thread Tools | |
| Display Modes | |
| |