Unix Technical Forum

Oracle rman SCN

This is a discussion on Oracle rman SCN within the Oracle Database forums, part of the Database Server Software category; --> Hi everybody, I have a question connected with recovering data from oracle 9/10. elow is description and question. Please ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 05:05 AM
Daniel
 
Posts: n/a
Default Oracle rman SCN

Hi everybody,
I have a question connected with recovering data from oracle 9/10.
elow is description and question. Please HELP. The question is a
little teoretical but very important ;-) Please be patient for my
mistake ;-) I am new to Oracle ;-|

Shortly my question is: It is possible recover only some part of the
data from (archive log + redo)?
Exactly, I'd like to recover only some transactions without some
others.

Full description below:

DB: oracle 10i and Oracle 9 (with ArchiveLog)
Database has 3 tables: PERSON, SALES, ORDERS
Below there are rows with all transactions (DATA/TIME OF TRANS/ SCN/
AND DESCRIPTION):

TIME SCN DESCRIPTION
11:00 1 User adam did: INSERT INTO PERSON SOMEDATA
11:05 2 User robert did: INSERT INTO PERSON SOMEDATA
11:05 3 User anna did: Insert into ORDERS SOMEDATA

11:10 4 DBA (or user) did: DROP TABLE ORDERS

11:11 5 User adam did: INSERT INTO PERSON SOMEDATA
11:11 6 User adam did: UPDATE PERSON SOMEDATA
11:11 7 User roger did: INSERT INTO PERSON SOMEDATA
11:13 8 User roger did: INSERT INTO SALES SOMEDATA

My question is: It is possible to recover ALL DATA without SCN number
4?

I think about syntax:

RECOVER UNTIL SCN=3;
RECOVER FROM SCN=5 TO SCN=8;
Is it possible?? How?

Please help,
Daniel

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 05:05 AM
fitzjarrell@cox.net
 
Posts: n/a
Default Re: Oracle rman SCN

On Apr 9, 2:49 pm, "Daniel" <Daniel.Chmielew...@gmail.com> wrote:
> Hi everybody,
> I have a question connected with recovering data from oracle 9/10.
> elow is description and question. Please HELP. The question is a
> little teoretical but very important ;-) Please be patient for my
> mistake ;-) I am new to Oracle ;-|
>
> Shortly my question is: It is possible recover only some part of the
> data from (archive log + redo)?
> Exactly, I'd like to recover only some transactions without some
> others.
>
> Full description below:
>
> DB: oracle 10i and Oracle 9 (with ArchiveLog)
> Database has 3 tables: PERSON, SALES, ORDERS
> Below there are rows with all transactions (DATA/TIME OF TRANS/ SCN/
> AND DESCRIPTION):
>
> TIME SCN DESCRIPTION
> 11:00 1 User adam did: INSERT INTO PERSON SOMEDATA
> 11:05 2 User robert did: INSERT INTO PERSON SOMEDATA
> 11:05 3 User anna did: Insert into ORDERS SOMEDATA
>
> 11:10 4 DBA (or user) did: DROP TABLE ORDERS
>
> 11:11 5 User adam did: INSERT INTO PERSON SOMEDATA
> 11:11 6 User adam did: UPDATE PERSON SOMEDATA
> 11:11 7 User roger did: INSERT INTO PERSON SOMEDATA
> 11:13 8 User roger did: INSERT INTO SALES SOMEDATA
>
> My question is: It is possible to recover ALL DATA without SCN number
> 4?
>
> I think about syntax:
>
> RECOVER UNTIL SCN=3;
> RECOVER FROM SCN=5 TO SCN=8;
> Is it possible?? How?
>
> Please help,
> Daniel


No, it is not possible. You can recover UNTIL a specified SCN but you
cannot specify a starting SCN.


David Fitzjarrell

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-26-2008, 05:05 AM
DA Morgan
 
Posts: n/a
Default Re: Oracle rman SCN

Daniel wrote:

> I think about syntax:
>
> RECOVER UNTIL SCN=3;
> RECOVER FROM SCN=5 TO SCN=8;
> Is it possible?? How?
>
> Please help,
> Daniel


3? 5? 8?

Run this query:

SELECT current_scn
FROM gv$database;
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-26-2008, 05:05 AM
klimenkor@gmail.com
 
Posts: n/a
Default Re: Oracle rman SCN

On Apr 9, 12:49 pm, "Daniel" <Daniel.Chmielew...@gmail.com> wrote:
> Hi everybody,
> I have a question connected with recovering data from oracle 9/10.
> elow is description and question. Please HELP. The question is a
> little teoretical but very important ;-) Please be patient for my
> mistake ;-) I am new to Oracle ;-|
>
> Shortly my question is: It is possible recover only some part of the
> data from (archive log + redo)?
> Exactly, I'd like to recover only some transactions without some
> others.
>
> Full description below:
>
> DB: oracle 10i and Oracle 9 (with ArchiveLog)
> Database has 3 tables: PERSON, SALES, ORDERS
> Below there are rows with all transactions (DATA/TIME OF TRANS/ SCN/
> AND DESCRIPTION):
>
> TIME SCN DESCRIPTION
> 11:00 1 User adam did: INSERT INTO PERSON SOMEDATA
> 11:05 2 User robert did: INSERT INTO PERSON SOMEDATA
> 11:05 3 User anna did: Insert into ORDERS SOMEDATA
>
> 11:10 4 DBA (or user) did: DROP TABLE ORDERS
>
> 11:11 5 User adam did: INSERT INTO PERSON SOMEDATA
> 11:11 6 User adam did: UPDATE PERSON SOMEDATA
> 11:11 7 User roger did: INSERT INTO PERSON SOMEDATA
> 11:13 8 User roger did: INSERT INTO SALES SOMEDATA
>
> My question is: It is possible to recover ALL DATA without SCN number
> 4?
>
> I think about syntax:
>
> RECOVER UNTIL SCN=3;
> RECOVER FROM SCN=5 TO SCN=8;
> Is it possible?? How?
>
> Please help,
> Daniel



No. You can not "skip" during point-in-time recovery. But if you need
restore deleted table then just create a database clone restored up to
SN=3. Copy droped table into live database. Is this what your goal is?

- Roman


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-26-2008, 05:05 AM
joel garry
 
Posts: n/a
Default Re: Oracle rman SCN

On Apr 9, 12:49 pm, "Daniel" <Daniel.Chmielew...@gmail.com> wrote:
> Hi everybody,
> I have a question connected with recovering data from oracle 9/10.
> elow is description and question. Please HELP. The question is a
> little teoretical but very important ;-) Please be patient for my
> mistake ;-) I am new to Oracle ;-|
>
> Shortly my question is: It is possible recover only some part of the
> data from (archive log + redo)?
> Exactly, I'd like to recover only some transactions without some
> others.


http://download-west.oracle.com/docs...iner.htm#24656

jg
--
@home.com is bogus.
Master Cylinder! http://www.nydailynews.com/news/2007...elix_flap.html

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-26-2008, 05:06 AM
Scott
 
Posts: n/a
Default Re: Oracle rman SCN



"Daniel" <Daniel.Chmielewski@gmail.com> wrote in message
news:1176148144.749130.3370@q75g2000hsh.googlegrou ps.com...
> Hi everybody,
> I have a question connected with recovering data from oracle 9/10.
> elow is description and question. Please HELP. The question is a
> little teoretical but very important ;-) Please be patient for my
> mistake ;-) I am new to Oracle ;-|
>
> Shortly my question is: It is possible recover only some part of the
> data from (archive log + redo)?
> Exactly, I'd like to recover only some transactions without some
> others.
>
> Full description below:
>
> DB: oracle 10i and Oracle 9 (with ArchiveLog)
> Database has 3 tables: PERSON, SALES, ORDERS
> Below there are rows with all transactions (DATA/TIME OF TRANS/ SCN/
> AND DESCRIPTION):
>
> TIME SCN DESCRIPTION
> 11:00 1 User adam did: INSERT INTO PERSON SOMEDATA
> 11:05 2 User robert did: INSERT INTO PERSON SOMEDATA
> 11:05 3 User anna did: Insert into ORDERS SOMEDATA
>
> 11:10 4 DBA (or user) did: DROP TABLE ORDERS
>
> 11:11 5 User adam did: INSERT INTO PERSON SOMEDATA
> 11:11 6 User adam did: UPDATE PERSON SOMEDATA
> 11:11 7 User roger did: INSERT INTO PERSON SOMEDATA
> 11:13 8 User roger did: INSERT INTO SALES SOMEDATA
>
> My question is: It is possible to recover ALL DATA without SCN number
> 4?
>
> I think about syntax:
>
> RECOVER UNTIL SCN=3;
> RECOVER FROM SCN=5 TO SCN=8;
> Is it possible?? How?
>
> Please help,
> Daniel
>



Also if you are on 10G and your goal is to restore the table
before the drop you can always use the command

flashback table orders to before drop;

instead of going will a full rman restore.

HTH
Scott





Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-26-2008, 05:06 AM
Matthias Hoys
 
Posts: n/a
Default Re: Oracle rman SCN


> Also if you are on 10G and your goal is to restore the table
> before the drop you can always use the command
>
> flashback table orders to before drop;
>
> instead of going will a full rman restore.
>
> HTH
> Scott
>


Or maybe the table is still in the recycle bin : SELECT * FROM
DBA_RECYCLE_BIN;


Matthias


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-26-2008, 05:06 AM
Daniel
 
Posts: n/a
Default Re: Oracle rman SCN

On 10 Kwi, 17:16, "Matthias Hoys" <a...@spam.com> wrote:
> > Also if you are on 10G and your goal is to restore the table
> > before the drop you can always use the command

>
> > flashback table orders to before drop;

>
> > instead of going will a full rman restore.

>
> > HTH
> > Scott

>
> Or maybe the table is still in the recycle bin : SELECT * FROM
> DBA_RECYCLE_BIN;
>
> Matthias


THANKS VERY VERY MUCH FOR YOUR HELP. THANKS TO EVERYBODY.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:00 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com