.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-27       - By orcl
Reply:     1     2     3     4     5     6     7     8     9     10  

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