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
help "cloning " a database

help "cloning " a database

2004-05-18       - By John P Weatherman
Reply:     1     2     3     4     5     6  

Well, for one thing that 401 arc file has the "end backup " in it. When
working off a hot, always recover through the end backup. That means:

Begin backup
Copy all files
end backup
archive log all
copy log files
apply

You may be able to force an open with the datafiles still in backup mode,
but I 've never done it that way. I have no idea from the SCN standpoint.

FWIW,

John P Weatherman
Oracle DBA
Advance America


> [Original Message]
> From: Rich Holland <holland@(protected) >
> To: <oracle-l@(protected) >
> Date: 5/18/2004 1:40:26 PM
> Subject: help "cloning " a database
>
> For all tablespaces except TEMP, I do:
>    SQL > alter tablespace <TS > begin backup;
>
> Then I copy the file systems from SRC to DST system:
>    $ cd /oracle/SRC
>    $ tar -cf -./sapdata* |   cd (/oracle/DST ; tar -xvpf - )
>
> Then I force log switches (four, just to be safe):
>    SQL > alter system archive log current;
>    SQL > alter system archive log current;
>    SQL > alter system archive log current;
>    SQL > alter system archive log current;
>
> Then I copy the redo & archived redo logs:
>    $ cd /oracle/SRC
>    $ tar -cf - ./mirr* ./orig* ./ora* | (cd /oracle/DST ; tar -xvpf -)
>
> At this point it should be safe to take the source system out of backup
mode,
> so I do that. I also fix the ownership of all the copied files:
>
>    $ cd /oracle/DST
>    $ find . -user orasrc -exec chown oradst {} '; '
>
> So I press <RET > to take it 's suggestion and it goes to the next one; it
does
> this all the way until it rolls through log 400, which was the last of
the 4 I
> created with the 'alter system archive log current ' commands earlier.
When it
> asks for 401, there isn 't anything to give it, so I CANCEL the recovery,
but I
> see this error:
>
>    ORA-01547 (See ORA-01547.ora-code.com): warning: RECOVER succeeded but OPEN RESETLOGS would get
> error
>    below
>    ORA-01195 (See ORA-01195.ora-code.com): online backup of file 1 needs more recovery to be consistent
>    ORA-01110 (See ORA-01110.ora-code.com): data file 1: '/oracle/DST/sapdata1/system_1/system.data1 '


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe send email to: oracle-l-request@(protected)
put 'unsubscribe ' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --