Create Standby DB with diff Dbname
Hi all,
10g
I want to create a standby db "PROD" to another server. But the problem is that there is also and exising "PROD" instance in that server :(
Can I create it using different name like "PROD2"?
Thanks a lot,
zxy
DB_NAME should be same with primary DB but you can change DB_UNIQE_NAME as compared to primary DB
The DB_NAME parameter should be identical on both primary and standby databases. However, you need to change the db_unique_name parameter for primary and the standby database. DB_UNIQUE_NAME parameter should not be identical and you may set it like;
Primary:
DB_NAME=ORCL
DB_UNIQUE_NAME=ORCL
Standby:
DB_NAME=ORCL
DB_UNIQUE_NAME=ORCLSTB
dbname in standby database
Similar Messages
-
On the AGO Function need to Create TODATE function with Diff levels - MTD,Q
Hi All,
My Basic Requirement is to Create Time Series Function on AAA ie ( Month To Date , Quarter To Date and Year To Date )
The Logic for the AAA = XXX / Previous 3 Months Revenue.
we know that we can use the AGO Function to create Previous 3 months Revenue with Month is Level . But the issue is .... i cant use AGO function since i need to perform Year to Date, QTD and MTD upon 'AAA' this OBIEE doesn't permit to use nested time series functions upon varying levels .
So How can i Resolve the issue ie creation of TODATE function on the AGO Function with Diff levels
Thanks,
Swapna Shi,
for your requirement create three repository variables like
for previous 3 months create repository variable like
select to_char(sysdate,'yyyymm') -3 from dual;
for month to date first calculate first day of the month
select To_Char(Add_Months(Last_Day(Sysdate),-1) + 1,'MM/DD/YYYY') from dual;
after put a filter in answers date between first date of the present month and current date
create the same thing for year to date
calculate first date in the year like following query
select To_Char(Trunc(Sysdate,'YEAR'),'MM/DD/YYYY') from dual;
after that apply filter date b/w first date in the year and current date
i hope it works for your scenario
Regards
Naresh
Edited by: Naresh Meda on Nov 10, 2008 2:08 AM
Edited by: Naresh Meda on Nov 10, 2008 2:12 AM -
Creating Standby database with Oracle 10gR2 SE (no dataguard). Procedure
Hello,
I have problems in creating a standby database without Dataguard (Oracle Standard Edition)
-Oracle 10gR2 SE (No DataGuard !!!!)
- SUSE Enterprise 10.
Both primary and standby databases are running in Virtual machines (lab).
I will describe the exact steps I followed :
1.---------------------------------------------------
Both primary and standby databases have exactly the same file / folder structure
2.---------------------------------------------------
I enabled archive log mode with a new destination : /opt/oracle/oradata/orcl/archive_logs.
Also : SQL> alter database force logging;
3.---------------------------------------------------
I shut down the primary database (shutdown immediate)
4.---------------------------------------------------
I created a standby controlfile on the primary database:
SQL> startup mount
SQL> alter database create standby controlfile as '/tmp/standby.ctl'
SQL> shutdown immediate
5.---------------------------------------------------
I did a cold backup from the primary db to the standby db
(I copied all the db files, control files, redo log)
6.---------------------------------------------------
I copied from the primary db to the standby db the standby control file
(from primary /tmp/standby.ctl)
7.---------------------------------------------------
I copied from the primary db to the standby db the standby control file
(from primary /tmp/standby.ctl)
8.---------------------------------------------------
I created on the standby database a pfile from the spfile :
SQL> create pfile from spfile;
9.---------------------------------------------------
I edited the pfile and changed the controlfile location (with the standby controlfile created in step 4)
>>>>> *.control_files='/opt/oracle/oradata/orcl/standby.ctl'
10.--------------------------------------------------
I started the standby db
SQL> startup mount pfile='/opt/oracle/product/10.2/db_1/dbs/initorcl.ora'
SQL> alter database recover managed standby database disconnect from session;
SQL> quit
11.--------------------------------------------------
I made some changes on the primary db on user scott
SQL> update table set .......
12.--------------------------------------------------
I switched logfile on the primary db
SQL> alter system switch logfile;
13.--------------------------------------------------
I manually copied the new archivelog to the standby db
And then nothing !!!
The db changes are not applied.
Please help me fix the procedure !!!
ThanksHi
Ref to your Oracle SE Standby issue, we were in similar situation couple of years ago to build an Automated Standby for our disaster recovery on Oracle SE. We finally got a solution provider Anbul Technologies , they have a one of their solutions based on Oracle SE which provided fully automated Standby in Oracle SE.
We are successfully running that solution in our prod env for many years. You can visit their site www.anbultechnologies.co.uk or contact them for further details. They are Uk based but provides support and services all over Europe.
Cheers -
Create standby DB with RMAN backup in Oracle 9.2.0.6
I am tring to create a standby DB in different host with different directory using RMAN. The commandv with which I tried to create the standby database is the follow:
(in the primary server side)
RUN
ALLOCATE AUXILIARY CHANNEL DUP1 TYPE DISK;
DUPLICATE TARGET DATABASE FOR STANDBY
NOFILENAMECHECK
DORECOVER;
but RMAN give me this error:
Starting restore at 18-FEB-08
channel DUP1: starting datafile backupset restore
channel DUP1: restoring controlfile
output filename=/opferi/oradata/oradata01/data01/cntrl01.dbf
released channel: DUP1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 02/18/2008 17:57:20
RMAN-03015: error occurred in stored script Memory Script
ORA-19505: failed to identify file "/opferi/oracle/product/9.2.0/dbs/l4j9127p_1_1"
ORA-27037: unable to obtain file status
SVR4 Error: 2: No such file or directory
Additional information: 3
The standby database is in a different host with the same directory structure. I started (with nomount option) with the same init file that the primary database.
I read solution like the backupset must be copied manually to the standby host, but for me is not a solution.
The RMAN backup script is the follow (like
RUN {
CROSSCHECK BACKUPSET;
DELETE NOPROMPT OBSOLETE;
DELETE NOPROMPT EXPIRED BACKUPSET;
crosscheck archivelog all;
ALLOCATE CHANNEL ch00 TYPE disk;
BACKUP
$BACKUP_TYPE
FORMAT '/rman/opferi2/df_sipd_%d_%u_%s_%p'
DATABASE INCLUDE CURRENT CONTROLFILE FOR STANDBY;
sql 'alter system archive log current';
backup format '/rman/opferi2/archive_log_%d_t%t_s%s_p%p' (archivelog all);
RELEASE CHANNEL ch00;
when $BACKUP_TYPE=0
Can anyone help my with this problem?? Thaks
Cristian.
PS. Sorry my bad english because I am from Latin AmericaRequirements are:
1 the backup should be accessible to both target and auxiliary database in the same location.
2 On Unix this can be arranged through NFS, provided you set the read and write buffer to 32k.
Obviously the backup can not be located in $ORACLE_HOME/dbs, as you can not mount a NFS directory over $ORACLE_HOME/dbs without loosing functionality.
Hth
Sybrand Bakker
Senior Oracle DBA -
Problem creating physical Standby database with RMAN
Hi All
I am trying to learn oracle dataguard and as part of the process learning creating standby database.
Platform : Sun-Fire-V250 Sparc, Solaris 10
Database Version - Oracle 11R2
I am creating standby database on same server, so directory structure is different.
Following the instructions on Oracle site I managed to create a functional physical standby database. But I am not able to create standby database using RMAN. These are the steps that I followed-
1.Set up all necessary parameters on primary database as done while creating physical standby database manually, eg setting force logging, creating standby logs etc.
2.Edited parameter file on primary database as done while creating manual pysical standby database creation. Some of the changes done are-
On Primary Database:
*.FAL_CLIENT='orcl11020' #Primary database unique name
*.FAL_SERVER='stdby_11' #Standby database unique name
db_file_name_convert='/<dir>/oradata/stdby_11','/<dir>/oradata/orcl11020'
log_file_name_convert='/<dir>/oradata/stdby_11','/<dir>/oradata/orcl11020','/<dir>/oradata/stdby_11/redo_mem','/<dir>/oradata/orcl11020/redo_mem'
standby_file_management=auto
*.log_archive_config='DG_CONFIG=(orcl11020,stdby_11)'
*.log_archive_dest_1='LOCATION=/<dir>/flash_recovery_area/ORCL11020/archivelog
VALID_FOR=(ALL_LOGFILES,ALL_ROLES) db_unique_name=orcl11020'
*.log_archive_dest_2='SERVICE=stdby_11 LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) db_unique_name=stdby_11'
*.LOG_ARCHIVE_DEST_STATE_1='ENABLE'
*.LOG_ARCHIVE_DEST_STATE_2='ENABLE'
*.LOG_ARCHIVE_FORMAT='%t_%s_%r.arc'
*.LOG_ARCHIVE_MAX_PROCESSES=30
Copied same pfile for standby database and modified following-
*.control_files='/<dir>/oradata/stdby_11/stdby_11.ctl','/<dir>/fra_stdby/stdby_11/stdby_11.ctl'
*.db_name='orcl1102'
*.db_unique_name='stdby_11'
*.FAL_CLIENT='stdby_11'
*.FAL_SERVER='orcl11020'
db_file_name_convert='/<dir>/oradata/orcl11020','/<dir>/oradata/stdby_11'
log_file_name_convert='/<dir>/oradata/orcl11020','/<dir>/oradata/stdby_11','/<dir>/oradata/orcl11020/redo_mem','/<dir>/oradata/stdby_11/redo_mem'
standby_file_management=auto
*.log_archive_dest_1='LOCATION=/<dir>/fra_stdby/STDBY_11/archivelog
VALID_FOR=(ALL_LOGFILES,ALL_ROLES) db_unique_name=stdby_11'
*.log_archive_dest_2='SERVICE=orcl11020 LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
db_unique_name=orcl11020'
3. Add relevant information in tnsnames.ora and listener.ora files and then restart listener.
3. Created password file with same credential as primary database.
4.Up-to-date RMAN backup of primary database available.
5.Create standby controlfile with rman
While primary database s open (I tried with primary database in mount mode as well)-
$>rman catalog rman/paswd@rman target /
RMAN> BACKUP CURRENT CONTROLFILE FOR STANDBY;
6. Open a new terminal and startup standby database in nomount mode using parameter file created -
$>ORACLE_SID=stdby_11
$>export ORACLE_SID
$>sqlplus / as sysdba
SQL>STARTUP NOMOUNT pfile='<location/initfilename.ora'
SQL>quit
$> rman AUXILIARY / target sys/passwd@orcl11020 catalog rman/passwd@rman
RMAN>DUPLICATE TARGET DATABASE FOR STANDBY DORECOVER;
RMAN finishes without error but archive logs are not being tranported. Looking at the log, following caught my eye-
Error 1017 received logging on to the standby
Check that the primary and standby are using a password file
and remote_login_passwordfile is set to SHARED or EXCLUSIVE,
and that the SYS password is same in the password files.
returning error ORA-16191
FAL[client, ARC2]: Error 16191 connecting to orcl11020 for fetching gap sequence
Errors in file /<>dir>/diag/rdbms/stdby_11/stdby_11/trace/stdby_11_arc2_24321.trc:
ORA-16191: Primary log shipping client not logged on standby
Errors in file /<dir>/diag/rdbms/stdby_11/stdby_11/trace/stdby_11_arc2_24321.trc:
ORA-16191: Primary log shipping client not logged on standby
So on both primary and standby I confirmed
SQL> show parameter remote_login_passwordfile
NAME TYPE VALUE
remote_login_passwordfile string EXCLUSIVE
To make double sure that password files are same, I shutdown both databases, delete password files and recreated with same credentials.
Password files are called - orapworcl11020 and orapwstdby_11
Can someone guide me where thisngs are going wrong here please.Not sure if I understood it clearly.
SELECT * FROM V$ARCHIVE_GAP;
returns no rows so there is no gap.
But could you please explain me the result of the previous query. To catch up again, on standby when I check
SELECT SEQUENCE#,APPLIED FROM V$ARCHIVED_LOG
SEQUENCE# APPLIED
75 NO
74 NO
76 NO
77 NO
I understand that though archive files have been copied across but they are not applied yet.
On primary when I give your query -
SELECT name as STANDBY,SEQUENCE#,applied, completion_time
2 FROM v$archived_log
3 where dest_id=2
4 and sequence# BETWEEN 74 and 80;
I get -
STANDBY SEQUENCE# APPLIED COMPLETIO
stdby_11 74 YES 28-JUN-11
stdby_11 75 YES 28-JUN-11
stdby_11 76 YES 29-JUN-11
stdby_11 77 YES 29-JUN-11
stdby_11 78 YES 29-JUN-11
stdby_11 79 YES 29-JUN-11
stdby_11 80 YES 29-JUN-11
stdby_11 75 NO 07-JUL-11
stdby_11 74 NO 07-JUL-11
stdby_11 76 NO 07-JUL-11
stdby_11 77 NO 07-JUL-11
stdby_11 78 NO 07-JUL-11
I have intentionally given
sequence# BETWEEN 74 and 80
because I know in the current incarnaion of the database, max sequence is 78.
So my understanding is, the rows between 28-29 June are from previous incarnation, correct me if I am wrong
Archive files of the current incarnation, since I successfully created standby database are shipped but yet to be applied - am I right?
Then my final question is, when will these archives be applied to standby database?
I am sorry to ask too many questions but I am just trying to understand how it all works.
Thanks for your help again -
Standby database with different directory structure
Hi,
sorry to say that we are in desupported version due to some constraint.
oracle version : 8.1.7.0.0.
os:sun 5.9
I need to create physical standby database with different directory structure:
i have created standby database with same directory structure of primary, now i have requirement to create with different directory structure.
in oracle 8i we can not give multiple parameter for db_file_name_convert(ORA-01678: parameter db_file_name_convert must be two strings, a pattern and a replacement) and i do have partitions in primary as follows:
bash-2.05$ df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c1t0d0s0 20G 14G 5.6G 72% /
/proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
fd 0K 0K 0K 0% /dev/fd
swap 11G 40K 11G 1% /var/run
dmpfs 11G 0K 11G 0% /dev/vx/dmp
dmpfs 11G 0K 11G 0% /dev/vx/rdmp
swap 11G 656K 11G 1% /tmp
/dev/dsk/c1t0d0s3 25G 18G 6.8G 72% /oracle
/dev/vx/dsk/suportaldg/oracle1
12G 11G 1.1G 91% /oracle1
/dev/vx/dsk/suportaldg/oracle2
12G 8.1G 3.7G 69% /oracle2
/dev/vx/dsk/suportaldg/orapurge
200G 182G 17G 92% /orapurge
/dev/vx/dsk/suportaldg/oracle3
12G 10G 1.9G 85% /oracle3
/dev/vx/dsk/suportaldg/oracle4
12G 12G 58M 100% /oracle4
/dev/vx/dsk/suportaldg/oracle5
7.0G 5.9G 1.0G 86% /oracle5
/dev/vx/dsk/suportaldg/oracle6
7.0G 6.4G 564M 93% /oracle6
/dev/vx/dsk/suportaldg/oracle7
23G 23G 358M 99% /oracle7
/dev/vx/dsk/suportaldg/oracle8
13G 13G 165M 99% /oracle8
/dev/vx/dsk/suportaldg/oracle9
23G 22G 1.4G 94% /oracle9
/dev/vx/dsk/suportaldg/oracle10
12G 10.0G 1.9G 85% /oracle10
/dev/vx/dsk/suportaldg/oracle11
39G 36G 2.1G 95% /oracle11
/dev/vx/dsk/suportaldg/oracle12
39G 38G 1.1G 98% /oracle12
/dev/vx/dsk/suportaldg/oracle13
68G 65G 2.6G 97% /oracle13
/dev/vx/dsk/suportaldg/oracle14
200G 199G 1.3G 100% /oracle14
/dev/vx/dsk/suportaldg/oracle15
200G 196G 3.6G 99% /oracle15
/dev/vx/dsk/suportaldg/oracle16
70G 64G 5.5G 93% /oracle16
/dev/vx/dsk/suportaldg/oracle20
7.0G 6.4G 609M 92% /oracle20
/dev/vx/dsk/suportaldg/oracle50
28G 26G 2.0G 93% /oracle50
/dev/vx/dsk/suportaldg/oratranslog
185G 165G 19G 90% /oratranslogso how i can create standby database with different directory structure, help is appreciated.
Thanks
Edited by: prakashdba on Mar 5, 2009 11:04 PMLooks like very difficult and inform you mgmt about the drawbacks of running olderv ersions
may be you can try something like this but i dont know whether it is supported or not
db_file_name_convert=['/dev/vx/dsk/suportaldg/oracle3','/dev/vx/dsk/suportaldg/STDBY/oracle3']
db_file_name_convert=['/dev/vx/dsk/suportaldg/oracle4','/dev/vx/dsk/suportaldg/STDBY/oracle4']
db_file_name_convert=['/dev/vx/dsk/suportaldg/oracle5','/dev/vx/dsk/suportaldg/STDBY/oracle5'] -
Creating standby database using RMAN
When I'm creating standby database with RMAN command
'duplicate for standby' backups for creating standby database
have to be accessible from host where standby database
is created. I can copy the backups to standby host, or use
NFS to share the disk with backups to standby host.
But when I have backups in ASM diskgroup how can
I achieve it would be accessible from standby host?
Thanks a lot for advice,
M.OK, thanks,
I will create standby using Grid, but I have the following problem:
database instance is running on the host where I want
to create standby database. The running instance is for
testing purposes and has the same db_name, db_unique_name, db_domain
parameters as in primary database.
I will change db_unique_name to be distinct from primary database one,
should I also change instance SID not to be the same in
testing database and standby on the same host, or when creating standby
database I can specify distinct one for standby database? -
Creating a Standby Database with the Same Directory Structure
Hello gurus,
I am self-learning the feature Oracle Data Guard, so I am testing it on Oracle 10g R2.
At Oracle documentation there is a section F.4.: Creating a Standby Database with the Same Directory Structure*, that explains how to create a standby database with RMAN but there is something that I don´t understand:
In the standby server, I created a database with the SID equal to production database* with the objetive to have the same directory structure, but when I try to startup nomount the standby database with pfile appear this expected error:
ORA-16187: LOG_ARCHIVE_CONFIG contains duplicate, conflicting or invalid attributes
So my question is: Is possible have the Same Directory Structure on both: Production and StandBy server?
Thanks in advanced.Uwe and mseberg: thanks for your quick answers
I have a doubt: How can you have the same directory structure if you have differents SIDs?, for example if you follow the OFA suggestions you would must have:
On Production server: */u01/app/oracle/oradata/PRIMARY/system.dbf*
On StandBy server: */u01/app/oracle/oradata/STANDBY/system.dbf*
Or you created the directory structure manually on StandBy server? For example replacing the string STANDBY* to PRIMARY* before create the database using dbca.
Do you understand my doubt? Excuse me for my english.
Thanks. -
Error - when creating a standby database with EM 10g Grid Control
Hi,
I am experiencing some problems when I want to create through the EM 10g Grid Control a standby database from a allready existing db. At step 2 when the files should be generated and copied to the other system, I am always getting the error that there isn't enough disk space on the other system. This can't be because there is at least 30GB free and the installer is asking for less than 1GB. I was searching the whole internet for a solution to this issue, but there was just nothing that could help me out with that point...
Has someone an idea at this point? Thanks for helping...
I am working on a Windows 2003 Server - Enterprise Edition for every system (Grid Control, Primary DB and Standby DB).
Best regards,
Patrick.Check that filesystem space using GC under targets>hosts on which you are trying to create standby. Do you have any specific error message from GC ? If GC shows proper size under host filesystem section then there shuld be no such problem. Double chk ur locations too.
Regards,
http://askyogesh.com -
What are the differences of creating a physical standby database with ASM?
I want to create a physical standby database for my 10g(10.2.0.1) database. But it is using ASM. Is it possible to create a standby database for a database using ASM?
What are the differences of creating a physical standby database with ASM?tell us what your research shows and we'll try to
validate it. I am simulating Oracle ASM on a PC and I want to try
DataGuard on it now. So I am trying to create DataGuard
on an ASM system. The purpose is only learning and test.That's telling us how you are researching, not what you have observed.
Your research could have included looking at the documetation, and you might have found http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/scenarios.htm#sthref1642
which discusses exactly what you are looking for.
Message was edited by:
Hans Forbrich -
RMAN Connections To Primary DB While Creating Standby With Active Database
OS Version : AIX 6.1
DB Version : 11.2.0.1
I am creating a standby database with active database option (without any backups). When i am checking number of connections in my primary database, i can see 3 rman connections
from the standby machine. How oracle reaches to a conclusion of 3 sessions ? Is this number fix or this number can be manipulated with requirment ?
SQL> select sid,serial#,program from v$session;
SID SERIAL# PROGRAM
1 1 oracle@cph-core-db01-s (DIA0)
2 1 oracle@cph-core-db01-s (MMNL)
3 1 oracle@cph-core-db01-s (QMNC)
32 1 oracle@cph-core-db01-s (MMAN)
33 1 oracle@cph-core-db01-s (DMON)
34 3 oracle@cph-core-db01-s (Q000)
63 1 oracle@cph-core-db01-s (PMON)
64 1 oracle@cph-core-db01-s (DBW0)
65 3 sqlplus@cph-core-db01-s (TNS V1-V3)
66 10 oracle@cph-core-db01-s (Q001)
94 1 oracle@cph-core-db01-s (VKTM)
SID SERIAL# PROGRAM
95 1 oracle@cph-core-db01-s (LGWR)
96 3 oracle@cph-core-db01-s (INSV)
*97 27 rman@cph-core-db02-s (TNS V1-V3)*
125 1 oracle@cph-core-db01-s (GEN0)
126 1 oracle@cph-core-db01-s (CKPT)
127 3 oracle@cph-core-db01-s (ARC0)
*129 18 rman@cph-core-db02-s (TNS V1-V3)*
156 3 oracle@cph-core-db01-s (ARC1)
157 1 oracle@cph-core-db01-s (DIAG)
158 1 oracle@cph-core-db01-s (SMON)
159 12 oracle@cph-core-db01-s (SMCO)
SID SERIAL# PROGRAM
187 1 oracle@cph-core-db01-s (DBRM)
188 1 oracle@cph-core-db01-s (RECO)
189 1 oracle@cph-core-db01-s (ARC2)
192 2 oracle@cph-core-db01-s (W000)
218 1 oracle@cph-core-db01-s (PSP0)
219 1 oracle@cph-core-db01-s (MMON)
221 1 oracle@cph-core-db01-s (ARC3)
*222 3 rman@cph-core-db02-s (TNS V1-V3)*Check for the RMAN parallelism in standby database it might be set to 3.
RMAN> show all;
or
Might be you had allocated 3 channels while executing active standby database query. -
How to manually create a standby db with SAN for hardware cluster failover
Hi all,
The primary db(oracle 9i r2, Sun Solaris) puts its datafile, redo logs, control files in SAN while the pfile, listener and tnsnames files are in its local hardisk. I need to create a standby db(not for dataguard) for hardware cluster failover, where if the primary db fails the hardware cluster will failover to standby db(mounting the datafile, redologs, control files in
SAN to a mount point automatically and start the db services). But I don't know how to create the standby db, I would install the db software first then should I copy the pfile(created from primary db), listener and tnsnames files to standby db? What are the correct steps to do it? Any advice is greatly appreciated.Thanks ackermsb for the reponse. I think I have confused of setting standby db and creating a HA. What I trying to achieve is creating a HA with vendor clusterware and oracle e.g. Sun Cluster HA for Oracle.
The steps involved in preparing the primary and standby oracle are:
Oracle application files – These files include Oracle binaries, configuration files, and parameter files. Need to installed separately in two servers locally.
The Database-related files – These files include the control file, redo logs, and data files are placed in a Cluster File System.
What I don't how to do it is, after installing the oracle binary in standby server, should I create the listener, tnsnames and pfile or copy them from the primary db?
Thanks in advance. -
I created Apple ID with my email add. There was a typo. Apple would not let me correct. I was told to use a diff email add. I did. Now I cannot access my itunes or icloud account on my mobile device. How do I fix this?
Are you trying to change the iCloud ID on your phone?
Also, you can change your iTunes ID by going to Settings>iTunes & App Store, tap the ID, sign out, then sign back in with the ID you want to use. -
Problem with create standby by rman oracle9.2
I have a problem: until create standby database by rman i have error:
RMAN-03015: error occurred in stored script opomc_clone
RMAN-03002: failure of Duplicate Db command at 02/18/2010 12:26:34
RMAN-03015: error occurred in stored script Memory Script
ORA-19587:
ORA-27091: skgfqio:
ORA-27072: skgfdisp:
SVR4 Error: 5: I/O error
Additional information: 349248
The scripts are ok becouse they work earlier.
The main database was a standby but now is primary.
I create new standby base on remote server
I have in bdump strange error for me until create rman copy for standby:
Clearing standby activation ID 1004670785 (0x3be20f41)
The primary database controlfile was created using the
'MAXLOGFILES 5' clause.
The resulting standby controlfile will not have enough
available logfile entries to support an adequate number
of standby redo logfiles. Consider re-creating the
primary controlfile using 'MAXLOGFILES 8' (or larger).
Use the following SQL commands on the standby database to create
standby redo logfiles that match the primary database:
ALTER DATABASE ADD STANDBY LOGFILE 'srl1.f' SIZE 409600000;
ALTER DATABASE ADD STANDBY LOGFILE 'srl2.f' SIZE 409600000;
ALTER DATABASE ADD STANDBY LOGFILE 'srl3.f' SIZE 409600000;
ALTER DATABASE ADD STANDBY LOGFILE 'srl4.f' SIZE 409600000;
Any suggestions?
Sorry for my english :)
Edited by: user12044451 on 2010-02-18 03:56can you use like this
BACKUP DATABASE INCLUDE CURRENT CONTROLFILE FOR STANDBY PLUS ARCHIVELOG;startup nomount;
duplicate target database for standby nofilenamecheck;
in detail check
http://download.oracle.com/docs/cd/B10501_01/server.920/a96566/rcmstand.htm#1000921 -
Create standby having offline dropped datafile .
Hi,
How to deal with offline dropped datafiles on source when creating standby .
I've 4 node rac, and one tablespace offline and related bigdatafile droped offline (because of corruption).
SQL> select tablespace_name , status from dba_tablespaces order by status ;
TABLESPACE_NAME STATUS
OLD_TBS OFFLINE
SQL> select TS#,STATUS,ENABLED from v$datafile order by status;
TS# STATUS ENABLED
16 OFFLINE DISABLED
Its 4 node RAC 10.2.0.3 and ASM .
select name,TS#,STATUS,ENABLED from v$datafile order by status
+DBG1/dbname/datafile/bigfile.279.615031073
Currently I'm doing something like that
rman target /
catalog backuppiece '/oarch/backup/bigfile.279.615031073';
run{
allocate channel ch1 type disk;
SET NEWNAME FOR DATAFILE 16 TO '+DBG1';
restore datafile 16 from tag='TAG20100209T124507';
SWITCH DATAFILE 16;
release channel ch1;
and then after duplicate is end
SQL> alter database datafile 16 offline drop;
SQL> recover automatic standby database;Please advice.
Regards
GregGHi GregG,
I think there is no requirement to file the request with Oracle. :-) Please check the below testcase where I tried to simulate the scenario this time by using RMAN.
Primary Database: oraprd
Physical Standby database: oraphy
SYS @ oraprd>select tablespace_name,file_id from dba_data_files;
TABLESPACE_NAME FILE_ID
SYSTEM 1
SYSAUX 2
UNDOTBS1 3
USERS 4
TEST 5
SYS @ oraprd>select TS#,file#,STATUS,ENABLED from v$datafile order by status;
TS# FILE# STATUS ENABLED
6 5 OFFLINE DISABLED
1 2 ONLINE READ WRITE
2 3 ONLINE READ WRITE
4 4 ONLINE READ WRITE
0 1 SYSTEM READ WRITEConfigure catalog (controlfile) to exclude an offline tablespace TEST and perform the full database backup with standby control file
C:\>rman target sys/abc123@oraprd
connected to target database: ORAPRD (DBID=2633932676)
RMAN> configure exclude for tablespace 'TEST';
using target database control file instead of recovery catalog
Tablespace TEST will be excluded from future whole database backups
new RMAN configuration parameters are successfully storedprimary database backup with standby control file
RMAN> run{
2> allocate channel d1 type disk;
3> allocate channel d2 type disk;
4> backup database format 'c:\temp\rman_oraprd_%U.bkp';
5> backup archivelog all format 'c:\temp\rman_arch_%U.bkp';
6> backup current controlfile for standby format 'c:\temp\rman_standby_%U.bkp';
7> }
released channel: ORA_DISK_1
allocated channel: d1
channel d1: SID=9 device type=DISK
allocated channel: d2
channel d2: SID=143 device type=DISK
Starting backup at 15-JUN-12
file 5 is excluded from whole database backup <===
channel d1: starting full datafile backup set
channel d1: specifying datafile(s) in backup set
input datafile file number=00001 name=C:\APP\XYZ\ORADATA\ORAPRD\ORAPRD\DATAFILE\O1_MF_SYSTEM_DATA_D-ORA11PRD_I-2924940358_TS-SYSTEM_FNO-1_07NDBK6A_.DBF
input datafile file number=00003 name=C:\APP\XYZ\ORADATA\ORAPRD\ORAPRD\DATAFILE\O1_MF_UNDOTBS1_DATA_D-ORA11PRD_I-2924940358_TS-UNDOTBS1_FNO-3_0ANDBK7H_.DBF
channel d1: starting piece 1 at 15-JUN-12
channel d2: starting full datafile backup set
channel d2: specifying datafile(s) in backup set
input datafile file number=00002 name=C:\APP\XYZ\ORADATA\ORAPRD\ORAPRD\DATAFILE\O1_MF_SYSAUX_DATA_D-ORA11PRD_I-2924940358_TS-SYSAUX_FNO-2_08NDBK6A_.DBF
input datafile file number=00004 name=C:\APP\XYZ\ORADATA\ORAPRD\ORAPRD\DATAFILE\O1_MF_USERS_DATA_D-ORA11PRD_I-2924940358_TS-USERS_FNO-4_09NDBK6B_.DBF
channel d1: specifying datafile(s) in backup set
including standby control file in backup set
channel d1: starting piece 1 at 15-JUN-12
channel d1: finished piece 1 at 15-JUN-12
piece handle=C:\TEMP\RMAN_STANDBY_0VNDJJR2_1_1.BKP tag=TAG20120615T123858 commen
t=NONE
channel d1: backup set complete, elapsed time: 00:00:03
Finished backup at 15-JUN-12
released channel: d1
released channel: d2
RMAN> exitBuild the physical standby database using RMAN
C:\>rman target sys/abc123@oraprd auxiliary sys/abc123@oraphy
connected to target database: ORAPRD (DBID=2633932676)
connected to auxiliary database: ORAPRD (not mounted)
RMAN>
RMAN> run{
2> allocate auxiliary channel a1 type disk;
3> allocate auxiliary channel a2 type disk;
4> duplicate target database for standby nofilenamecheck;
5> }
using target database control file instead of recovery catalog
allocated channel: a1
channel a1: SID=134 device type=DISK
allocated channel: a2
channel a2: SID=10 device type=DISK
Starting Duplicate Db at 15-JUN-12
contents of Memory Script:
restore clone standby controlfile;
executing command: SET NEWNAME
Starting restore at 15-JUN-12
file 5 is excluded from whole database backup <==
channel a1: starting datafile backup set restore
channel a1: specifying datafile(s) to restore from backup set
channel a1: restoring datafile 00002 to C:\APP\XYZ\ORADATA\ORAPRD\ORAPHY\DATAFILE\O1_MF_SYSAUX_DATA_D-ORA11PRD_I-2924940358_TS-SYSAUX_FNO-2_08NDBK6A_.DBF
channel a1: restoring datafile 00004 to C:\APP\XYZ\ORADATA\ORAPRD\ORAPHY\DATAFILE\O1_MF_USERS_DATA_D-ORA11PRD_I-2924940358_TS-USERS_FNO-4_09NDBK6B_.DBF
channel a1: reading from backup piece C:\TEMP\RMAN_ORAPRD_0PNDJJN7_1_1.BKP
datafile 3 switched to datafile copy
input datafile copy RECID=10 STAMP=786026596 file name=C:\APP\XYZ\ORADATA\ORAPHY\ORAPHY\DATAFILE\O1_MF_UNDOTBS1_7XPWYO19_.DBF
datafile 4 switched to datafile copy
input datafile copy RECID=11 STAMP=786026596 file name=C:\APP\XYZ\ORADATA\ORAPHY\ORAPHY\DATAFILE\O1_MF_USERS_7XPWYN8N_.DBF
Finished Duplicate Db at 15-JUN-12
released channel: a1
released channel: a2
RMAN>start the managed recovery
SYS @ oraphy>recover managed standby database disconnect;
Media recovery complete.
SYS @ oraphy>select TS#,file#,STATUS,ENABLED from v$datafile order by status;
TS# FILE# STATUS ENABLED
6 5 OFFLINE DISABLED
1 2 ONLINE READ WRITE
2 3 ONLINE READ WRITE
4 4 ONLINE READ WRITE
0 1 SYSTEM READ WRITE
SYS @ oraphy>select thread#,sequence#,process,status from v$managed_standby;
THREAD# SEQUENCE# PROCESS STATUS
1 24 RFS IDLE
1 22 MRP0 WAIT_FOR_GAP <---------------
....archive the current log on the primary database
SYS @ oraprd>select thread#,sequence#,status from v$log;
THREAD# SEQUENCE# STATUS
1 22 INACTIVE
1 23 ACTIVE
1 24 CURRENT
SYS @ oraprd>alter system archive log current;
System altered.
SYS @ oraphy>select thread#,sequence#,process,status from v$managed_standby;
THREAD# SEQUENCE# PROCESS STATUS
1 25 RFS IDLE
1 25 MRP0 WAIT_FOR_LOG <-------- the recovery is in progress on the standby database.
....Regards,
Vaibhav
Maybe you are looking for
-
Has anyone reserved a Genius Bar "Personal Shopping" spot for iPhone?
Anticipating long waits, I reserved an appointment via the Genius Bar for personal shopping assistance on the 19th. Have others done the same?
-
User exits/ BADI for batch determination
Hi, I need any user exits or BADI's which are triggered even before the batch determination is done. In One of my requirement ,during TO creation i need to pass, ship to KOMPH table( since SHIP TO is not available during a TO) to make it available fo
-
Playing Video files taking too much CPU processing(50 % )
Hello everyone, My macbook taking too much CPU processing power for playing Video file.Below shared the statistics..Is it a issue..? can you please help me here..I can't play simultaneously 2-3 MKV videos..distorted picture Quality. Macbook: mkv
-
A movie file with Alpha channel works in Color??
I have files exported from Motion which contain Alpha channel. What I like to do is to correct color of the files in Color 1.5. When I import them into a sequence with two tracks in FCP, it appears correctly with the alpha channel. But once I send it
-
Java Applet Disappears From Website
When I add a java applet to my web site on .Mac (inside the proper folder on my iDisk), it will run for awhile, but then will disappear. What is happening?