.ora-code.com

Links
Home
Oracle DBA Forum
Frequent Oracle Errors
TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found'>ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated
Applying redo - recovery fundamentals

Applying redo - recovery fundamentals

2005-11-28       - By Shannon St. Dennis
Reply:     1     2     3     4     5     6     7     8     9     10  


by copying over the redo logs.... you've lost all records of that table being
created,.

you need the current control files, current redo logs, and old data files in
order to recover to a point before the table was created, but after the cold
backup was taken.

by recovering all files,including redo logs, you've essentially put the entire
database back to where it was when the cold backup was taken.

>>> "Ruth Gramolini" <rgramolini@(protected)> 28/11/2005 10:48 am >>>

Is your 'until time' before you dropped the table?  Just a thought.  It has
to be set to  a time when the table existed for it to be recreated from redo
or archivelogs.

HTH,
Ruth

-- --Original Message-- --
From: oracle-l-bounce@(protected)
[mailto:oracle-l-bounce@(protected)]On Behalf Of orcl
Sent: Sunday, November 27, 2005 9:56 AM
To: oracle-l
Subject: Applying redo - recovery fundamentals


All, Im having big  trouble  in a recovery scenario, here is what I have

1, A small shell of a database with  all datafiles copied to a backup
location  (cold backup)
2. Database is in archivelog mode
3. startup up the database and create a table with 6K records.  I can
see all the redo getting generated wait a few min and drop the table .
redo logs are 5mb
4. Shutdown the database, delete all datafiles and copy over all
database files  (from step 1)  including redo logs
5. Startup mount and issue recover database until cancel
6.  I *dont * get prompted for cancel and in 2 seconds i get "media
recovery complete" and my table *is not* restored

Basically the same problem if I use  recover database until time
'2005-11-27:09:25:00';

What the heck am I doing wrong?


> archive log list
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            J:\ARCHIVE_DEST\ORCL
Oldest online log sequence     0
Next log sequence to archive   1
Current log sequence           1
> @(protected)

Table dropped.


Table created.


PL/SQL procedure successfully completed.


Commit complete.


COUNT(*)
-- ---- --
   60000

> archive log list;
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            J:\ARCHIVE_DEST\ORCL
Oldest online log sequence     25
Next log sequence to archive   27
Current log sequence           27

>drop table test_reco
Table dropped

> shutdown immediate; <-- then copy over files from cold backup

C:\>sqlplus /nolog

SQL*Plus: Release 10.2.0.1.0 - Production on Sat Nov 26 08:56:28 2005

> conn sys/***@(protected) as sysdba;
Connected to an idle instance.

> startup mount
ORACLE instance started.

Total System Global Area  289406976 bytes
Fixed Size                  1248576 bytes
Variable Size              83886784 bytes
Database Buffers          197132288 bytes
Redo Buffers                7139328 bytes
Database mounted.

> archive log list;
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            J:\ARCHIVE_DEST\ORCL
Oldest online log sequence     0
Next log sequence to archive   1
Current log sequence           1

> recover database until cancel;  <--- I dont get prompted here at all
and I have aprox 30 *new* redologs of 5mb each
Media recovery complete.

!! This comes back in 2 seconds without my dropped table


> show parameter archive

NAME                                 TYPE        VALUE
-- ---- ---- ---- ---- ---- ---- --- -- ---- ---
-- ---- ---- ---- ---- ---- --
archive_lag_target                   integer     0
log_archive_config                   string
log_archive_dest                     string
log_archive_dest_1                   string
LOCATION=J:\ARCHIVE_DEST\ORCL
log_archive_duplex_dest              string
log_archive_format                   string      ORCL_%t_%s_%r.arc
log_archive_local_first              boolean     TRUE
log_archive_max_processes            integer     2
log_archive_min_succeed_dest         integer     1
log_archive_start                    boolean     FALSE
log_archive_trace                    integer     0
remote_archive_enable                string      true
standby_archive_dest                 string      %ORACLE_HOME%\RDBMS

>

---


--
http://www.freelists.org/webpage/oracle-l


--
http://www.freelists.org/webpage/oracle-l


--
http://www.freelists.org/webpage/oracle-l







DISCLAIMER: The information transmitted is intended only
for the addressee and may contain confidential,
proprietary and/or privileged material. Any
unauthorized review, distribution or other use
of or the taking of any action in reliance upon
this information is prohibited. If you received
this in error, please contact the sender and
delete or destroy this message and any copies.
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.2800.1522" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>by copying over the redo logs.... you've lost all records of that table
being created,.</DIV>
<DIV>&nbsp;</DIV>
<DIV>you need the current control files, current redo logs, and old data files
in order to recover to a point before the table was created, but after the cold
backup was taken.</DIV>
<DIV>&nbsp;</DIV>
<DIV>by recovering all files,including redo logs, you've essentially put the
entire database back to where it was when the cold backup was taken.<BR><BR>&gt
;&gt;&gt; "Ruth Gramolini" &lt;rgramolini@(protected)&gt; 28/11/2005 10:48
am &gt;&gt;&gt;<BR></DIV>
<DIV style="COLOR: #000000">Is your 'until time' before you dropped the table?
&nbsp; Just a thought.&nbsp; It has<BR>to be set to&nbsp; a time when the table
existed for it to be recreated from redo<BR>or archivelogs.<BR><BR>HTH,<BR>Ruth
<BR><BR>-- --Original Message-- --<BR>From: oracle-l-bounce@(protected)<BR>[<A
href="mailto:oracle-l-bounce@(protected)]On">mailto:oracle-l-bounce@(protected)
.org]On</A> Behalf Of orcl<BR>Sent: Sunday, November 27, 2005 9:56 AM<BR>To:
oracle-l<BR>Subject: Applying redo - recovery fundamentals<BR><BR><BR>All, Im
having big&nbsp; trouble&nbsp; in a recovery scenario, here is what I have<BR>
<BR>1, A small shell of a database with&nbsp; all datafiles copied to a backup
<BR>location&nbsp; (cold backup)<BR>2. Database is in archivelog mode<BR>3.
startup up the database and create a table with 6K records.&nbsp; I can<BR>see
all the redo getting generated wait a few min and drop the table .<BR>redo logs
are 5mb<BR>4. Shutdown the database, delete all datafiles and copy over all<BR
>database files&nbsp; (from step 1)&nbsp; including redo logs<BR>5. Startup
mount and issue recover database until cancel<BR>6.&nbsp; I *dont * get
prompted for cancel and in 2 seconds i get "media<BR>recovery complete" and my
table *is not* restored<BR><BR>Basically the same problem if I use&nbsp;
recover database until time<BR>'2005-11-27:09:25:00';<BR><BR>What the heck am I
doing wrong?<BR><BR><BR>&gt; archive log list<BR>Database log mode&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Archive Mode
<BR>Automatic archival&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; Enabled<BR>Archive destination&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; J:\ARCHIVE_DEST\ORCL<BR>Oldest online log
sequence&nbsp;&nbsp;&nbsp;&nbsp; 0<BR>Next log sequence to archive&nbsp;&nbsp;
1<BR>Current log sequence&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp; 1<BR>&gt; @(protected)<BR><BR>Table dropped.<BR><BR><BR>Table created.
<BR><BR><BR>PL/SQL procedure successfully completed.<BR><BR><BR>Commit complete.
<BR><BR><BR>COUNT(*)<BR>-- ---- --<BR>&nbsp;&nbsp;&nbsp; 60000<BR><BR>&gt;
archive log list;<BR>Database log mode&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Archive Mode<BR>Automatic archival&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enabled<BR
>Archive destination&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp; J:\ARCHIVE_DEST\ORCL<BR>Oldest online log sequence&nbsp;&nbsp;&nbsp;&nbsp
; 25<BR>Next log sequence to archive&nbsp;&nbsp; 27<BR>Current log sequence&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 27<BR><BR>&gt;drop table
test_reco<BR>Table dropped<BR><BR>&gt; shutdown immediate; &lt;-- then copy
over files from cold backup<BR><BR>C:\&gt;sqlplus /nolog<BR><BR>SQL*Plus:
Release 10.2.0.1.0 - Production on Sat Nov 26 08:56:28 2005<BR><BR>&gt; conn
sys/***@(protected) as sysdba;<BR>Connected to an idle instance.<BR><BR>&gt; startup
mount<BR>ORACLE instance started.<BR><BR>Total System Global Area&nbsp;
289406976 bytes<BR>Fixed Size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1248576 bytes<BR>Variable
Size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp; 83886784 bytes<BR>Database Buffers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; 197132288 bytes<BR>Redo Buffers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7139328 bytes<BR
>Database mounted.<BR><BR>&gt; archive log list;<BR>Database log mode&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Archive Mode
<BR>Automatic archival&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; Enabled<BR>Archive destination&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; J:\ARCHIVE_DEST\ORCL<BR>Oldest online log
sequence&nbsp;&nbsp;&nbsp;&nbsp; 0<BR>Next log sequence to archive&nbsp;&nbsp;
1<BR>Current log sequence&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp; 1<BR><BR>&gt; recover database until cancel;&nbsp; &lt;--- I dont get
prompted here at all<BR>and I have aprox 30 *new* redologs of 5mb each<BR>Media
recovery complete.<BR><BR>!! This comes back in 2 seconds without my dropped
table<BR><BR><BR>&gt; show parameter archive<BR><BR>NAME&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp; TYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VALUE<BR>-- ---- ---
-- ---- ---- ---- ---- -- -- ---- ---<BR>-- ---- ---- ---- ---- ---- --<BR
>archive_lag_target&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; integer&nbsp;&nbsp;&nbsp;&nbsp;
0<BR>log_archive_config&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string<BR>log_archive
_dest&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string<BR>log_archive_dest_1
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string<BR>LOCATION=J:\ARCHIVE_DEST\ORCL<BR>log
_archive_duplex_dest&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; string<BR>log_archive_format&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ORCL_%t_%s_%r.arc<BR>log_archive_local
_first&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp; boolean&nbsp;&nbsp;&nbsp;&nbsp; TRUE<BR>log_archive_max_processes&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; integer&nbsp;&nbsp;
&nbsp;&nbsp; 2<BR>log_archive_min_succeed_dest&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; integer&nbsp;&nbsp;&nbsp;&nbsp; 1<BR>log_archive_start&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; boolean&nbsp;&nbsp;&nbsp;&nbsp; FALSE<BR>log
_archive_trace&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; integer&nbsp;&nbsp;&nbsp;&nbsp;
0<BR>remote_archive_enable&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; true
<BR>standby_archive_dest&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
%ORACLE_HOME%\RDBMS<BR><BR>&gt;<BR><BR>---<BR><BR><BR>--<BR><A href="http://www
.freelists.org/webpage/oracle-l">http://www.freelists.org/webpage/oracle-l</A>
<BR><BR><BR>--<BR><A href="http://www.freelists.org/webpage/oracle-l">http://www
.freelists.org/webpage/oracle-l</A><BR><BR><BR>--<BR><A href="http://www
.freelists.org/webpage/oracle-l">http://www.freelists.org/webpage/oracle-l</A>
<BR><BR><BR></DIV></BODY></HTML>

<table><tr><td bgcolor=#ffffff><font color=#000000><br>
DISCLAIMER: The information transmitted is intended only<br>
for the addressee and may contain confidential,<br>
proprietary and/or privileged material. Any<br>
unauthorized review, distribution or other use<br>
of or the taking of any action in reliance upon<br>
this information is prohibited. If you received<br>
this in error, please contact the sender and <br>
delete or destroy this message and any copies.  <br>
</font></td></tr></table>