Duplicate Oracle Database 9i
Dear all,
can please someone instruct me how can I duplicate(migrate) database from one database server to another?
I have a test environment under Linux (Red Hat release 4) and Oracle 9i Relese 2 database.
I have to transfer all datafiles, control files, etc to another Database server, also under Linux (Red Hat release 4). Everything must be the same(SID, location of the datafiles ...).
Thanks in advance
If you are using RMAN, check out the duplicate database command.
Similar Messages
-
Duplicate Oracle Database 8.1.7.0 using RMAN
An old database needs to be duplicated... :(
We have an old database named TAPES running on Windows 2003 (32bit) and Oracle 8.1.7.0
The team wants to duplicate / clone this database to another location. We have setup another server, with Windows 2003 and installed Oracle Software 8.1.7.0 with
starter database. The two machines A and B has no network connection (they are on different sites). Also the structure of the machines are different (the location of the database files are different)
How can I duplicate this using RMAN. We cannot afford any downtime on TAPES prod. The idea is:
-backup TAPES prod using RMAN (hot backup)
-copy and tranport the backup files to the remote machine B
-restore (and recover) the RMAN backup to Machine B
-the duplicate database has the same name
In oracle 9i, 10g and 11g, this is easy...and i must admit...i dont know how to do it in Oracle 8.1.7.0...
I need help... :(
thanks a lot!thanks...i saw one article with this approach..but the document did not present the detailed process...do you have one? i am still searching for a good procedure to follow...since it is an old database and focusing/studying old versions like this is a pain in the a**... :(
-
Oracle Database Client -- Oracle Database in SSL mode.
Experts,
I am trying to connect to a remote oracle database which in SSL mode. I installed "Oracle database client" on other server and trying to connect to remote database in SSL mode.
Can you please provide brief steps ?
Do I need configure any wallets on client side too ?. If yes, copying wallets from database server to client is enough ?
Please help me.
ThanksPl do not post duplicates - Oracle Database Client --> Oracle Database in SSL mode.
-
Oracle Database upgrade to 11G (Host_Command Issues)
Sorry I'm posting this again. Original post in Database - Upgrade. I'm not getting a lot of clicks in that category
We recently upgraded to Oracle 11g (Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production). Our PL/SQL release: (PL/SQL Release 11.2.0.2.0 - Production). We use a lot of host commands inside our PL/SQL stored procedures. One of these included fetching data from an external server and pushing the data into Oracle Tables.
Most of this process is running fine, except the execution never completes. There is no issue data wise. It's just that the Host_command doesn't receive the completion status and seems to be running even though there's nothing going on in the background.
The Oracle e-business suite's concurrent program based on this stored proc also never completes, though it doesn't do anything in the background. For testing purpose, our DBA used 2 insert statements one before and one after the host_command. The insert before the host_command worked but not the one after. Please help! This is happening after we upgraded to 11g 3 weeks ago!
Thanks, Naveen Gagadam.Pl do not post duplicates - Upgrade to 11g, Host Command Inside Stored Proc doesn't end.
I have moved your duplicate post to the EBS forums
Srini -
Duplicate target database not working
Hi All,
I want to clone my exisitng DB to other.
I was refering the below link to do the same.
[http://web.njit.edu/info/limpid/DOC/backup.102/b14191/rcmdupdb006.htm|http://web.njit.edu/info/limpid/DOC/backup.102/b14191/rcmdupdb006.htm]
OS:Solaris 10
Oracle version:10.2.0.4.0
What I did tilll now:-
1) Created a database MYDB1 in archive mode
2) Created one tablespace, user and 1 table in DB
3) Registered the MYDB1 in RMAN Db.
4)Created a Pfile from MYDB1 database and changed db value and other values of MYDB1 to MYDB2(Database name to be duplicate)
5)Created a password file
6)Startup MYDB2 in NOMOUNT stage.
7) At RMAN prompt I have done below things to but i have getting the error
rman:rman:>rman target sys/mydb1@mydb1 catalog rman/rman auxiliary sys/mydb2@mydb2
Recovery Manager: Release 10.2.0.4.0 - Production on Fri Sep 7 12:20:22 2012
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database: MYDB1 (DBID=3867673817)
connected to recovery catalog database
connected to auxiliary database: MYDB2 (not mounted)
RMAN> DUPLICATE TARGET DATABASE TO mydb2;
Starting Duplicate Db at 07-SEP-12
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: sid=162 devtype=DISK
WARNING: DB_FILE_NAME_CONVERT resulted in invalid ASM names; names changed to diskgroup only.
contents of Memory Script:
set until scn 911233;
set newname for datafile 1 to
"+disk2";
set newname for datafile 2 to
"+disk2";
set newname for datafile 3 to
"+disk2";
set newname for datafile 4 to
"+disk2";
set newname for datafile 5 to
"+disk2";
restore
check readonly
clone database
executing Memory Script
executing command: SET until clause
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 07-SEP-12
using channel ORA_AUX_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 09/07/2012 12:21:01
RMAN-03015: error occurred in stored script Memory Script
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 5 found to restore
RMAN-06023: no backup or copy of datafile 4 found to restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restore
List of Backups
===============
Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
745933 B F A DISK 07-SEP-12 1 1 NO FULL_BACKUP
745934 B F A DISK 07-SEP-12 1 1 NO FULL_BACKUP
RMAN> list backup of database;
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
745933 Full 549.12M DISK 00:01:19 07-SEP-12
BP Key: 745935 Status: AVAILABLE Compressed: NO Tag: FULL_BACKUP
Piece Name: /backup/oracle_backup/test_dir/rman_bkp/mydb1_0gnkjokf_1_1
List of Datafiles in backup set 745933
File LV Type Ckp SCN Ckp Time Name
1 Full 980599 07-SEP-12 +DISK1/mydb1/datafile/system.256.793120373
2 Full 980599 07-SEP-12 +DISK1/mydb1/datafile/undotbs1.258.793120373
3 Full 980599 07-SEP-12 +DISK1/mydb1/datafile/sysaux.257.793120373
4 Full 980599 07-SEP-12 +DISK1/mydb1/datafile/users.259.793120373
5 Full 980599 07-SEP-12 +DISK1/mydb1/datafile/tbs_umesh.266.793207735
RMAN> show all;
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/backup/oracle_backup/test_dir/rman_bkp/mydb1_%U';
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/software/oracle/product/10.2.0/database/dbs/snapcf_mydb1.f'; # default
RMAN> exit
Recovery Manager complete.
@rman:rman:>Please Suggest where i am going wrong..
Regards
Umesh GuptaWARNING: DB_FILE_NAME_CONVERT resulted in invalid ASM names; names changed to diskgroup only.
You must check DB_FILE_NAME_CONVERT parameter on MYDB2 database
or I think you must add DB_FILE_NAME_CONVERT, LOG_FILE_NAME_CONVERT to DUPLICATE Command.
DUPLICATE TARGET DATABASE TO MYDB2
SPFILE
SET
"DB_FILE_NAME_CONVERT"="+DATA/MYDB1/","+DATA/MYDB2"
... Regards
Mahir M. Quluzade
www.mahir-quluzade.com -
Can i use Oracle Database Audit Vault and Oracle Database Firewall on Solaris?
Can i use Oracle Database Audit Vault and Oracle Database Firewall on Solaris?
4195bee8-4db0-4799-a674-18f89aa500cb wrote:
i dont have access to My Oracle Support can u send text or html of document please?
Moderator Action:
No they cannot send you a document that is available only to those with access to MOS.
That would violate the conditions of having such service contract credentials.
Asking someone to violate such privileges is a serious offense and could get that other person's organization banned from all support and all their support contracts cancelled.
Your post is locked.
Your duplicate post that you placed into the Audit Vault forum space has been removed (it had no responses).
This thread which you had placed in the Solaris 10 forum space is moved to the Audit Vault forum space.
That's the proper location for Audit Vault questions. -
How can we clone the Oracle database in new Oracle Home
Hi,
I would like to clone oracle database into new oracle home. How can we set it using OEM.
I am using 10g grid control. Target db is on solaris
Thanks
Naveenafter logging into target database, under maintenance tab, data movement header; ther is "clone database" option. When you click on it; you'll see :
Clone Database uses RMAN to duplicate a database from:
-- An open database in ARCHIVELOG mode, or
-- An open database in NOARCHIVELOG mode (restart required), or
-- A saved working directory from previous cloning
Clone Database performs the following operations:
-- Backup each database file and store it in a working directory
-- Transfer each backup file from source to destination host
-- Restore each backup file to existing destination Oracle Home
-- Recover the cloned database with saved archived log files
-- Open the cloned database with resetlogs
It seems to be for cloning to a different host, but i guess you can chose the same host for source and destination. (I've never used cloning on em by the way :))
But firstly, you should create a new oracle home, you can simply copy your oracle home with a new name (cp -R /oracle/app/oracle/product/10.2.0 /oracle/app/oracle/product/10.2.0.new) or make a new installation.
I suggest you to do this cloning with CLI. You should take a full backup with RMAN, copy the oracle home, create a new initNEWSID.ora file and nomount the database, restore (or simply copy) controlfiles, restore database (with set newname commands), recover database, open resetlogs. -
Oracle SQL template to create re-usable DDL/DML Scripts for Oracle database
Hi,
I have a requirement to put together a Oracle SQL template to create re-usable DDL/DML Scripts for Oracle databases.
Only the Oracle DBA will be running the scripts so permissions is not an issue.
The workflow for any DDL is as follows:-
1) New Table
a. Check if the table exists from the system/admin views.
b. If table exists then give message "Table Exists"
c. If table does not exist then execute DDL code
2) Add Column
a. Check if Column exists for a given table from system/admin views
b. If column exists in the specified table,
b1. backup table.
b2. alter table to make changes to the column
b3. verify data or execute dml script convert from backup to the new change.
c. If Column does not exist
c1. backup table
c2. alter table to add column
c3. execute dml to populate column with default value.
The DML scripts are for populating base tables with data required for business operations.
3) Add new row
a. check if row exists by comparing old values of each column with new values to be added for the new record.
b. If exists, give message row exists
c. If not exists, add new record.
4) Update existing record (We have createtime columns in these tables so changes can be tracked)
a. check if row exists using primary key.
b. If exists,
b1. deactivate the record using the "active" column of the table
b2. Add new record with the changes required.
c. If does not exist, add new record with the changes required.
Could you please help with some ideas which can get this done accurately?
I have tried several ways, but I am not able to put together something that fulfills all requirements.
Thank you,First let me address your question. (This is the easy part.)
1. The existence of tables can be found in DBA_TABLES. Query it and and then use conditional logic and execute immediate to process the DDL.
2. The existence of table columns is found in DBA_TAB_COLUMNS. Query it and then conditionally execute your DDL. You can copy the "before picture" of the table using that same dba view, or even better, use DBMS_METADATA.
As for your DML scripts, they should be restartable, reversible, and re-run-able. They should "fail gracefully" on error, be written in such a way that they can run twice in a row without creating duplicate changes.
3. Adding appropriate constraints can prevent invalid duplicate rows. Also, you can usually add to the where clause so that the DML does only what it needs to do without even relying on the constraint (but the constraint is there as a safeguard). Look up the MERGE statement to learn how to do an UPSERT (update/insert), which will let you conditionally "deactivate" (update) or insert a record. Anything that you cannot do in SQL can be done with simple procedural code.
Now, to the heart of the matter...
You think I did not understand your requirements?
Please be respectful of people's comments. Many of us are professionals with decades of experience working with databases and Oracle technology. We volunteer our valuable time and knowledge here for free. It is extremely common for someone to post what they feel is an easy SQL or PL/SQL question without stating the real goal--the business objective. Experienced people will spot that the "wrong question" has been asked, and then cut to the chase.
We have some good questions for you. Not questions we need answers from, but questions you need to ask yourself and your team. You need to reexamine this post and deduce what those questions are. But I'll give you some hints: Why do you need to do what you are asking? And will this construct you are asking for even solve the root cause of your problems?
Then ponder the following quotations about asking the right question:
Good questions outrank easy answers.
— Paul Samuelson
The only interesting answers are those which destroy the questions.
— Susan Sontag
The scientific mind does not so much provide the right answers as ask the right questions.
— Claude Levi-Strauss
You can tell whether a man is clever by his answers. You can tell whether a man is wise by his questions.
— Mahfouz Naguib
One hears only those questions for which one is able to find answers.
— Friedrich Nietzsche
Be patient towards all that is unresolved in your heart and try to love the questions themselves.
— Rainer Maria Rilke
What people think of as the moment of discovery is really the discovery of the question.
— Jonas Salk
Judge a man by his questions rather than his answers.
— Voltaire
The ability to ask the right question is more than half the battle of finding the answer.
— Thomas J. Watson -
Duplicate target database for standby backup location.... errors out
Hi ,
i am getting below error while executing
RMAN> duplicate target database for standby backup location '/rman1/perf/brmbkpdg' nofilenamecheck dorecover ;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "backup": expecting one of: "dorecover, db_file_name_convert, from, nofilenamecheck, ;, spfile"
RMAN-01007: at line 1 column 39 file: standard input
Can you please suggest a fix or what should be the syntax
Thanks
NaveenIf it helps here are my tested commands: (Oracle 11)
PRIMARY
RMAN RUN {
allocate channel d1 type disk;
backup format '/u01/backups/PRIMARY/df_t%t_s%s_p%p' database;
sql 'alter system archive log current';
backup format '/u01/backups/PRIMARY/al_t%t_s%s_p%p' archivelog all;
backup current controlfile for standby format '/u01/backups/PRIMARY/sb_t%t_s%s_p%p';
release channel d1;
STANDBY
RMAN> run {
allocate channel C1 device type disk;
allocate auxiliary channel C2 device type disk;
duplicate target database for standby nofilenamecheck;
My how to notes are here :
http://www.visi.com/~mseberg/duprman.html
Please note these were written not to create but to recover a standby, you still have to set up forced logging and the net80 in advance.
Best Regards
mseberg -
Consolidation of Oracle Database 10g Express Edition "Bugs"
I'll take a stab at cleaning this up. This is a collection of postings, reported as bugs, but not really bugs or difficult to understand/reproduce. These were filed in the Database General forum and they should have been filed in the XE forum.
Firstly, thank you for taking the time to report these issues and suspected issues. In the future, it would be quite helpful to everyone if you reported these in the XE forum.
1. Oracle Database 10g Express Edition Bugs
This is not a bug. The developer toolbar will show when you are authenticated to the development environment. You do not have to be authenticated to your application for the developer toolbar to appear.
2. Oracle Database 10g Express Edition Bugs
If data is present in the cache, this is up to the application developer (you) to implement the proper security which prevents this behavior.
3. Oracle Database 10g Express Edition Bugs
This is a minor issue, at best. For this type of search interface, it is desirable to perform a case-insensitive query. Wouldn't it be a shame if you searched for "item" and it did not return results that contained "Item".
4. Oracle Database 10g Express Edition Bugs
This is not a bug. Different authentication schemes have different data restrictions. It is up to you, the application developer, to easily implement the data validations appropriate for your application.
5. Oracle Database 10g Express Edition Bugs
Insufficient information provided. You will have to specify what exact error message is arising and what data you changed which resulted in this error. A complete step-by-step test case is desirable, please.
6. Oracle Database 10g Express Edition Bugs
Duplicate of #5 above. And still insufficient information.
7. Oracle Database 10g Express Edition Bugs
Not a bug. This is intentional behavior. If I know I want to enter table name EMP, it would be bad from a usability standpoint to always force the user to employ their mouse.
8. Oracle Database 10g Express Edition Bugs
This could not be reproduced.
9. Oracle Database 10g Express Edition Bugs
Almost identical to #8. Please clarify what the expected behavior should be.
JoelThis discussion has been continued in the XE forum at:
Consolidation of Oracle Database 10g Express Edition "Bugs"
In the future, please attempt to post all XE-related issues in the XE forum.
Joel -
Error while trying to duplicate a database
I've got the following problem with rman-duplicate (oracle 10gR2) (see also: [this thread|http://forums.oracle.com/forums/thread.jspa?messageID=4446855#4446855])
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 07/22/2010 10:49:05
RMAN-03015: error occurred in stored script Memory Script
RMAN-06026: some targets not found - aborting restore
- followed by the list of all datafiles
I've made a full backup of the target database right before the duplicate. Rman reports (list backup; crosscheck backup) the availability of all database backups with all its datafiles.
Unfortunately in my case the reported very strange "shutdown abort"-"startup" - workaround doesn't work.
Has anyone any other hints - or is it just a serious bug (which would prevent me from further time-wasting trials ...).
friedhelmHashmi wrote:
Post your duplicate database command with error.Here is teh whole procedure (script):
RUN
SET until time "to_date('22/07/2010 10:10:00','DD/MM/YYYY HH24:MI:SS')";
ALLOCATE AUXILIARY CHANNEL aux1 DEVICE TYPE DISK;
SET NEWNAME FOR DATAFILE 1 TO '/oracle/oradata/VG41VWT/system01.dbf';
SET NEWNAME FOR DATAFILE 34 TO '/oracle/oradata/VG41VWT/domea_ftr_imt_10.dbf';
SET NEWNAME FOR TEMPFILE 1 TO '/oracle/oradata/VG41VWT/temp01.dbf';
DUPLICATE TARGET DATABASE TO VG41VWT
LOGFILE
GROUP 1
'/oralogs/redolog/VG41VWT/logVG41VWT1.log',
'/oralogs/redolog/VG41VWT/logVG41VWT2.log',
'/oralogs/redolog/VG41VWT/logVG41VWT3.log'
) SIZE 10000K,
GROUP 2
'/oramirr/redolog/VG41VWT/logVG41VWT1.log',
'/oramirr/redolog/VG41VWT/logVG41VWT2.log',
'/oramirr/redolog/VG41VWT/logVG41VWT3.log'
) SIZE 10000K;
exit
The Error-Message is:
executing command: SET NEWNAME
Starting restore at 22-jul-10 14:24
released channel: aux1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 07/22/2010 14:24:04
RMAN-03015: error occurred in stored script Memory Script
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 34 found to restore
etc.
EDIT:
Now I realize that there is a "released channel" - message just before the Error message. But I don't think this is the reason for the trouble, but part of the ERROR-treatment.
Thanks
f.
Edited by: user8964905 on 22.07.2010 05:55
Edited by: user8964905 on 23.07.2010 01:43 -
RMAN duplicate target database error
Hello,
I’m trying to use RMAN ‘duplicate target from active database’ to a remote host however I’m getting a confusing error:
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 11/19/2009 13:47:23
RMAN-03015: error occurred in stored script Memory Script
RMAN-03009: failure of backup command on aux13 channel at 11/19/2009 13:47:23
ORA-19504: failed to create file "+DATA2"
RMAN-03009: failure of backup command on aux14 channel at 11/19/2009 13:47:23
ORA-19504: failed to create file "+DATA2"
Here’s my script:
connect target sys/<password>@node1;
connect auxiliary sys/<password>@node2;
spool log to '/u01/app/oracle/dba/duplicate111909.log'
run
allocate auxiliary channel aux11 device type disk;
allocate auxiliary channel aux12 device type disk;
allocate channel aux13 device type disk;
allocate channel aux14 device type disk;
duplicate target database to node2 from active database DB_FILE_NAME_CONVERT='+DATA1','+DATA2';
release channel aux14;
release channel aux13;
release channel aux12;
release channel aux11;
spool log off;
exit;
Node1 uses ASM disk group DATA1 and I intend to use ASM disk group DATA2 on node2. Has anyone seen this error before? I have tried various permutations of DB_FILE_NAME_CONVERT clauses but all error with ORA-19504. On a side note I was able to use ASMCMD cp command to copy a datafile from node1 DATA1 to node 2 DATA2. Also, if I use disk group DATA1 on node 2 then the RMAN duplicate command runs successfully, it only errors when using DATA2. And yes +DATA2 is mounted on node2:
SQL> select name, state from v$asm_diskgroup;
NAME STATE
DATA1 MOUNTED
DATA2 MOUNTED
Any and all ideas are welcome. I’m running out of things to check.
Thanks,
RJLFor a duplicate you don't need to give the DB_FILE_NAME_CONVERT especially if you go from a asm to asm diskgroup.
The place where it'll put all the files will be automatically done taking care of the init.ora file parameter db_create_file_dest, (db_create_online_log_dest_1) -
hello
my pc has following configurtion
256mb ram
60gb hdd
p4 2.4 ghz
win xp pro sp2
I want to know if my pc will be able to run " Oracle Database 10g Release 2 (10.2.0.1.0) " standard edition on it.
<<http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10201winsoft.html>>
I thought of increasing RAM, but it is not feasible.
I know i could run oracle XE, but can my pc also run the standard edition.
I could not find minimum hardware requirements for standard edition on this site.
anyway, i will use it for sql and and other advanced concepts in RDBMS which i may learn during my course in database. so i prefer standard edition instead of XE
any help greatly appreciated
thanks in advanceI suggest you not to doubt regarding Oracle Database 10g Release 2 (10.2.0.1.0) installation.
It is not necessary. If you don't receive an answer within a reasonable amount of time you could edit your thread with whatever ( a period is enough) to raise it to the top once again.
It becomes difficult for us to track duplicated threads and unnecessarily duplicates efforts.
~ Madrid. -
Hello,
There was OS upgrade from RHEL5 to RHEL6 and Oracle 11gR2 ( 11.2.0.3) is running on rhel5, we need to upgrade to 11.2.0.4 on RHEL6.
Do anyone know what are the exact steps to perform this task?
ThanksHi Srini,
Thanks for the reply. while i am performing RMAN duplicate target database using active database. I am getting the below errors.
==========================================================================================================
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00601: fatal error in recovery manager
RMAN-03004: fatal error during execution of command
RMAN-10041: Could not re-create polling channel context following failure.
RMAN-10024: error setting up for rpc polling
RMAN-10005: error opening cursor
RMAN-10002: ORACLE error: ORA-03114: not connected to ORACLE
RMAN-03002: failure of Duplicate Db command at 08/06/2014 11:48:22
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-06136: ORACLE error from auxiliary database: ORA-01092: ORACLE instance terminated. Disconnection forced
ORA-00704: bootstrap process failure
ORA-39700: database must be opened with UPGRADE option
Process ID: 20877
Session ID: 1 Serial number: 5
==============================================================================================================
Source database is on RHEL5 and Oracle 11.2.0.3
Target database is on RHEL6 and Oracle 11.2.0.4.
I tried to start the startup the database with upgrade option but i am getting media recovery error.
SQL> startup upgrade;
ORACLE instance started.
Total System Global Area 1603411968 bytes
Fixed Size 2253664 bytes
Variable Size 603983008 bytes
Database Buffers 989855744 bytes
Redo Buffers 7319552 bytes
Database mounted.
ORA-01113: file 1 needs media recovery
ORA-01110: data file 1: '/u02/oradata/NBFDEV1/system01.dbf'
It would be great if you can help me to fix the issue.
Thanks -
ORA-00119,ORA-00132 during duplicate target database for standby in 11gR2
I am running
duplicate target database for standby from active database
command from RMAN.
I went thru step-by-step on how to create a standby database from the textbook i got from my Oracle Univ. 11g Data Guard course. I set up all the listener.ora and tnsnames.ora files using netmgr, but I'm getting local_listener error.
Here's what I am running in rman:
run {
allocate channel prmy1 type disk;
allocate channel prmy2 type disk;
allocate channel prmy3 type disk;
allocate channel prmy4 type disk;
allocate auxiliary channel stby type disk;
duplicate target database for standby from active database
spfile
parameter_value_convert 'kyledb','kylerep'
set db_unique_name='kylerep'
set db_file_name_convert='/kyledb/','/kylerep/'
set log_file_name_convert='/kyledb/','/kylerep/'
set control_files='/oradata/kylerep/control01.ctl'
set log_archive_max_processes='4'
set fal_client='kylerep'
set fal_server='kyledb'
set standby_file_management='AUTO'
set log_archive_config='dg_config=(kyledb,kylerep)'
set log_archive_dest_1='service=kyledb ASYNC valid_for=(ONLINE_LOGFILE,PRIMARY_ROLE) db_unique_name=kyledb'
And here's the error i get:
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 07/12/2010 17:33:28
RMAN-03015: error occurred in stored script Memory Script
RMAN-04014: startup failed: ORA-00119: invalid specification for system parameter LOCAL_LISTENER
ORA-00132: syntax error or unresolved network name 'LISTENER_KYLEDB'
result of
SQL>show parameter local_listener;
is
NAME TYPE VALUE
local_listener string LISTENER_KYLEDB
entry in my listener.ora is
SID_LIST_KYLEDB_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = kyledb.kyledev.usms.doj.gov)
(ORACLE_HOME = /app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = kyledb)
ADR_BASE_KYLEDB_LISTENER = /app/oracle
KYLEDB_LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = kyledev.usms.doj.gov)(PORT = 7898))
and entry in tnsnames.ora file is
KYLEREP =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = kyledbdev.usms.doj.gov)(PORT = 7898))
(CONNECT_DATA =
(SERVICE_NAME = kylerep.kyledbdev.usms.doj.gov)
KYLEDB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = kyledev.usms.doj.gov)(PORT = 7898))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = kyledb.kyledev.usms.doj.gov)
LISTENER_KYLEDB =
(ADDRESS = (PROTOCOL = TCP)(HOST = kyledev.usms.doj.gov)(PORT = 7898))
Can anyone help me figure out what went wrong?
Thanks in advance....I had the same problem,
I Define TNS_ADMIN environment on script an resolve my problem.
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of startup command at 10/08/2010 17:21:15
RMAN-04014: startup failed: ORA-00119: invalid specification for system parameter LOCAL_LISTENER
ORA-00132: syntax error or unresolved network name 'LISTENER_DESENV2'
In my shell increase the Environment:
## VARIAVEIS
export NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db1
export PATH=$ORACLE_HOME/bin:$PATH
export TNS_ADMIN=/u01/app/oracle/product/10.2.0/asm1/network/admin
export ORACLE_SID=$1
## CHAMADA RMAN
rman target / log=/u02/backup/db$1/bkp_cold-$1.log cmdfile=/home/oracle/script/rman/cold_backup/cold_backup.rcv
After this:
RMAN> run{
2> shutdown immediate;
3> startup force mount;
4> backup database include current controlfile tag 'BKP_COLD_FULL';
5> alter database open;
6> delete obsolete;
7> }
8>
9>
using target database control file instead of recovery catalog
database closed
database dismounted
Oracle instance shut down
Oracle instance started
database mounted
Total System Global Area 1073741824 bytes
Fixed Size 2089400 bytes
Variable Size 264244808 bytes
Database Buffers 801112064 bytes
Redo Buffers 6295552 bytes
Hope this helps and sorry for my terrible English! =)
Maybe you are looking for
-
How to Read from multiple channels
Dear Sir I am acquiring data using FP-RTD-122 using OPC Client software. I ahve made one socket for that and i am using command CWDataSocket1.AccessMode = cwdsReadAutoUpdate CWDataSocket1.URL = "opc://localhost/National Instruments.OPCFieldPoint/FP R
-
Copy BPM to new SC and transport
Hi Experts, I have a requirement to copy existing NW-BPM process to new software component version and have to transport to higher environments. And also suggest me to create directly on NWDI or create locally and deploy. Could you please guide me on
-
Hi MM Gurus, I'm using 4.6C, there is 3 GR value in transaction code MCE3. What is the different between this 3 GR value? 1) GR value as at pstg. date 2) GR value on order date 3) Value of goods recvd Thanks in Advance! Regards, Anson
-
Has anyone been able to import certificates into the phone. I am attempting to install a user certificate that was generated using a CSR from the phone. We are using an ACS 4.0 which passes the cert off to a MS AD server for validation. Any guidance
-
Trouble to remote access Hyper-V
Hi there. I have a Windows Server Core 2012 R2 running the Hyper-V role, on which I have some VMs. I connect to the server by the Hyper-V Manager from my desktop with success. But, it has a little time that I've lost the connection, and the Hyper-V M