Home » RDBMS Server » Server Administration » Flashback SYS table (WINDOWS 2007)
Flashback SYS table [message #506481] Mon, 09 May 2011 07:23 Go to next message
x-oracle
Messages: 380
Registered: April 2011
Location: gujarat
Senior Member
HI

I JUST WANT TO KNOW
IF I HAVE CREATE A TABLE IN SYS SCHEMA AND IF I HAVE DROP THIS TABLE SO CAN I FLASHBACK THIS SYS SCHEMA TABLE



[Edit MC: modified title]

[Updated on: Mon, 09 May 2011 07:28] by Moderator

Report message to a moderator

Re: FLASHBACK TABLE [message #506483 is a reply to message #506481] Mon, 09 May 2011 07:26 Go to previous messageGo to next message
Michel Cadot
Messages: 68718
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
Do not post your title in UPPER case.
Do not post your message in UPPER case.
Provide complete Oracle version number (like 10.2.0.4).

The answer is no.

Regards
Michel
Re: Flashback SYS table [message #506484 is a reply to message #506481] Mon, 09 May 2011 07:41 Go to previous messageGo to next message
Roachcoach
Messages: 1576
Registered: May 2010
Location: UK
Senior Member
shaan121 wrote on Mon, 09 May 2011 13:23

IF I HAVE CREATE A TABLE IN SYS SCHEMA


If you have, you're doing it wrong Smile
Re: Flashback SYS table [message #506508 is a reply to message #506484] Mon, 09 May 2011 09:25 Go to previous messageGo to next message
cookiemonster
Messages: 13959
Registered: September 2008
Location: Rainy Manchester
Senior Member
Think of this as a valuble lesson as to why you should never create objects in sys or system.
The table is gone and you aren't getting it back.
Re: Flashback SYS table [message #506515 is a reply to message #506508] Mon, 09 May 2011 10:15 Go to previous messageGo to next message
ramoradba
Messages: 2457
Registered: January 2009
Location: AndhraPradesh,Hyderabad,I...
Senior Member
SQL> select banner from v$version;

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE    11.2.0.1.0      Production
TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production

SQL>
SQL> sho user
USER is "SYS"
SQL> create table syst_michel(d2 number) tablespace users;

Table created.

SQL> drop table syst_michel;

Table dropped.

SQL> flashback table syst_michel to before drop;

Flashback complete.

SQL> desc syst_michel
 Name                                      Null?    Type
 ----------------------------------------- -------- ----------------------------
 D2                                                 NUMBER

SQL> select owner,object_name
  2  from dba_objects
  3  where object_name='SYST_MICHEL';

OWNER
------------------------------
OBJECT_NAME
--------------------------------------------------------------------------------
SYS
SYST_MICHEL




SQL> create table dawn (d1 number);

Table created.

SQL> sho user
USER is "SYS"
SQL> desc dawn
 Name                                      Null?    Type
 ----------------------------------------- -------- ----------------------------
 D1                                                 NUMBER

SQL> drop table dawn;

Table dropped.

SQL> flashback table dawn to before drop;
flashback table dawn to before drop
*
ERROR at line 1:
ORA-38305: object not in RECYCLE BIN


SQL>


But its not advisable to create objects in sys schema.
SYS is special.And it should be used for specific operations Only.If you create objects in SYS oracle will internally unlock some objects and lock somr other.

You can perform flash back on Non system (LMT ) tablespace Only.

IF you can perform such things You may lost your Oracle support.
You are On your OWN.


Sriram

Re: Flashback SYS table [message #506519 is a reply to message #506515] Mon, 09 May 2011 10:23 Go to previous messageGo to next message
ramoradba
Messages: 2457
Registered: January 2009
Location: AndhraPradesh,Hyderabad,I...
Senior Member
The above is not like "I CAN do that" But this is for which we should not perform.

Sriram
Re: Flashback SYS table [message #506587 is a reply to message #506519] Tue, 10 May 2011 02:06 Go to previous message
x-oracle
Messages: 380
Registered: April 2011
Location: gujarat
Senior Member
thanks sriram..nice example you provide thanks..its realy helpful.
Previous Topic: ORA-01103: database name 'TOM' in control file is not 'TAB'
Next Topic: ORA-01078 While creating database using dbca
Goto Forum:
  


Current Time: Fri Nov 29 06:43:36 CST 2024