Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: More Rman q's
Jack,
TEST3 instance should be exactly as you stated, an Oracle instance with no datafiles as yet. What I think I was meaning regarding the names of the objects is that the format is
Rman catalogue = catalogue
Source database = target
new database = auxilliary.
To my mind that is wrong and the new database should be target. It is of no importance but I do think it can be confusing.
What is even odder is requirement to connect to the target database in the first place. A live database has been copied to disk/tape. We want to make a new copy on a development server. But we still have to connect to the original live database. I once had a reason from Oracle for this in a tar dialogue however it did not sound very convincing to me at the time.
John
-----Original Message-----
From: nlzanen1_at_EY.NL [mailto:nlzanen1_at_EY.NL]
Sent: 25 January 2002 10:10
To: Multiple recipients of list ORACLE-L
Subject: RE: More Rman q's
Hi,
Am I misreading all this, but should the auxiliary database be in existence before I can Clone to it?
I created the init.ora and all directories and started TEST3 in nomount. I created the password file and can connect to it with a connect string no problem.
Another point is. Did you mean that the auxilliary database is the database that needs to be cloned (source)?
Jack
"Jay Hostetter" <jhostetter_at_decommunications.com> on 23-01-2002 15:41:35
To: <John.Hallas_at_btcellnet.net>, <nlzanen1_at_EY.NL>, <ORACLE-L_at_fatcity.com> cc:
John and Jack,
I guess I didn't read Jack's info closely enough, since he states that his auxiliary database is already started nomount. I wonder if the three separate connect statements are the issue? When I duplicate a database, I use the following commands from the OS:
>rman target internal/xxx_at_original catalog rman/xxx_at_rman1 auxiliary /
rman>@prod_to_test
rman>exit
My ORACLE_HOME and SID are set for the auxiliary database. I have started the auxiliary database NOMOUNT, which basically just starts the background processes. Password files are required for the remote login (this is on a different server). I don't use db_file_name_convert or log_file_name_convert, because I group the data files differently on this server (I don't have the exact same number of file systems as production). After I have RMAN started, I do the following:
run {
#set until time "to_date('01082002200000','mmddyyyyhh24miss')";
set until scn 316498395;
#set until logseq 1389 thread 1;
allocate auxiliary channel ch1 type disk;
set newname for datafile 1 to '/u03/oradata/BSCST/system01.dbf';
set newname for datafile 2 to '/u03/oradata/BSCST/rbs01.dbf';
... ...yadda yadda yadda... ...
Jay Hostetter
Oracle DBA
D. & E. Communications
Ephrata, PA USA
>>> John.Hallas_at_btcellnet.net 01/23/02 03:20AM >>>
Jay,Jack
I don't understand here how RMAN connects to auxilliary when Jack seems to
be saying that the database does not exist it all.
When I tested a duplicate database session I made the following notes which
indicated I need a remote_login_password file setting up. I assume you
didn't do this then Jack as the database was not created at this point in
time
Please correct me if I have misunderstood
John
My notes follow
+++++++++++++++++++
To allow this connection a remote_login_password file needs to be in place. This can be created running the orapwd command
$ORACLE_HOME/bin/orapwd file$ORACLE_HOME/dbs/ orapwSID password = xxxxxx entries=10
Then add the line remote_login_passwordfile=exclusive to the init.ora and
start the database in exclusive mode (using the initSID_excl.ora file in
the
pfile directory).
Ensure that this works by performing a sqlplus internal @tnsnames_alias
with
the correct password and ensuring that a connection has been made.
This needs to be set up on the target environment as well as on the auxillary server. Ensure that a connection can be made both locally and remotely
sqlplus internal/password_at_tnsnames_alias
Indien bovenstaand e-mailbericht niet aan u is gericht, verzoeken wij u vriendelijk doch dringend het e-mailbericht te retourneren aan de verzender en het origineel en eventuele kopieën te verwijderen en te vernietigen.
Ernst & Young hanteert bij de uitoefening van haar werkzaamheden algemene voorwaarden, waarin een beperking van aansprakelijkheid is opgenomen. De algemene voorwaarden worden u op verzoek kosteloos toegezonden.
If you are not the intended recipient of this communication please return the communication to the sender and delete and destroy all copies.
In carrying out its engagements, Ernst & Young applies general terms and conditions, which contain a clause that limits its liability. A copy of these terms and conditions is available on request free of charge.
Indien bovenstaand e-mailbericht niet aan u is gericht, verzoeken wij u vriendelijk doch dringend het e-mailbericht te retourneren aan de verzender en het origineel en eventuele kopieën te verwijderen en te vernietigen.
In de Nederlandse vestigingen wordt de praktijk uitgeoefend en worden opdrachten slechts aanvaard en uitgevoerd door Holland Van Gijzen advocaten en notarissen, een maatschap van besloten vennootschappen. Een lijst van partners wordt op verzoek beschikbaar gesteld. Holland Van Gijzen advocaten en notarissen hanteert bij de uitoefening van haar werkzaamheden algemene voorwaarden, waarin een beperking van aansprakelijkheid is opgenomen. Deze voorwaarden zijn op 19 januari 2000 gedeponeerd ter griffie van de arrondissementsrechtbank te Rotterdam onder nummer 18/00 en te vinden op http://www.hollandlaw.nl/
If you are not the intended recipient of this communication please return the communication to the sender and delete and destroy all copies.
In the Netherlands offices the practice is conducted and instructions are
solely accepted and carried out by Holland Van Gijzen advocaten en
notarissen, a professional partnership consisting of private limited
liability companies. A list of partners is available on request. In
carrying out its engagements, Holland Van Gijzen advocaten en notarissen
applies general terms and conditions, which contain a clause that limits
its liability. These terms and conditions have been deposited with the
Registrar of the Rotterdam District Court under number 18/00 on 19 January
2000 and can be found at http://www.hollandlaw.nl/
> ===================================================================
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: nlzanen1_at_EY.NL Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). ========================================================= This electronic message contains information from the mmO2 plc Group which may be privileged or confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone or email (to the numbers or address above) immediately. =========================================================Received on Fri Jan 25 2002 - 08:21:26 CST