DB_UNIQUE_NAME vs DB_NAME in standby databases of ASM file systems
Question : Do we need to have the db_unique_name paramter set differently in standby database compared to db_name in standby .
Problem we are facing :
Here is the little background
Primary Server : SERVER1
db_name : VENKAT
db_unique_name : VENKAT
Standby server : SERVER2
db_name : VENKAT
db_unique_name : VENKAT_stb
Sever : Linux
Database Version: 11.20.3
File system type: ASM ( 11.2.0.3)
stanby type : Physical
Disk group names: Identical on both primary and standby servers
Data : +DATA_OP01027_128
FRA : +FRA_VENKAT_128
How datafiles are layed out on primary server:
sample datafile name location : +DATA_VENKAT_128/VENKAT/datafile/venkat.277.789579565
How standby was build : using Active duplicte command
Once we have the standby database build we have the datafiles created under this location
Sample datafile name location on standby server : +DATA_VENKAT_128/VENKAT_stb/datafile/venkat.280.789579597
with this we have learnt that the directory VENKAT_stb is getting created in standby ASM off the db_unique_name that
was given in the database , we have not seen this issue in the normal file system even we are using db_unique_name different that
the db_name in standby database .
Can you please help us how we can prevent this situation of having datafiles getting created under differnt direction in standby compared to prod.
Can you also let us know what impacts we might be having if we don't specify the db_unique_name different than db_name in standby database.
Hope this explains the problem what we are facing currently .
What steps i follwed to fix this issues :
I have db_unique_name set to the same name as db_name and when i did the restore all datafiles are in the identical location to prod standby server .
Note : We do fully understand the need for having the db_unique_name set different to db_name in standby db in standby and primary db's are residing on the same physical server .
Thanks
Venkat
first of all, this is not an issue or problem
works as intended
Question : Do we need to have the db_unique_name paramter set differently in standby database compared to db_name in standby .yes
Sample datafile name location on standby server : +DATA_VENKAT_128/VENKAT_stb/datafile/venkat.280.789579597
with this we have learnt that the directory VENKAT_stb is getting created in standby ASM off the db_unique_name that
was given in the database , we have not seen this issue in the normal file system even we are using db_unique_name different that
the db_name in standby database .
Can you please help us how we can prevent this situation of having datafiles getting created under differnt direction in standby compared to prod.well, dont use OMF then
OMF format for datafiles in ASM is: +DISKGROUP/DB_UNIQUE_NAME/DATAFILE/TABLESPACE_NAME.FILE.INCARNATION
datafiles will be created this way no matter what you do
the difference is, that if you dont use OMF, there will be an alias created referencing the file, with the path you gave
for example:
OMF:
create tablespace test size 10M;
a datafile is created: +DATA_VENKAT_128/VENKAT/DATAFILE/test.280.789581212 (i wrote some random numbers here)
non-OMF:
create tablespace test datafile '+DATA_VENKAT_128/dummy/test01.dbf' size 10M;
what actually happens:
a datafile is created: +DATA_VENKAT_128/VENKAT/DATAFILE/test.280.789581212 (i wrote some random numbers here)
and an ASM alias is created: +DATA_VENKAT_128/dummy/test01.dbf
and this alias is used by the database
while OMF files have their specified path format, and their path (db_unique_name) and even name (numbers at the end) will change when duplicated, aliases dont necessarily do this
however this is just extra work and administration, OMF is your friend
Similar Messages
-
Standby database with ASM disks?
Has anyone successfully created a standby database when the primary database and the standby database are using ASM disks? If the answer is yes, how did you copy the files(database backup, control files, etc.) from the asm on primary to asm on standby?
Note: I am using 10gR2 on HP-UX but the copy part should be platform independent so however you did it should help me.Hi d_carmichael2001,
I had done database migration from Non-asm to ASM for single instance by RMAN.
and i think mostly steps are same for create standby database on ASM.
Have a Look.......
1.create a ASM instance manually on new server.
2.Take a backup of Prod database and controlfile.
**backup of controlfile for Standby should be taken as
BACKUP CURRENT CONTROLFILE FOR STANDBY;
Backup database cmd will be same as Backup database plus archivelog;
3. create standby database by using following cmd and set necessary parameter before execute it
Diskgroup for standby should be define in standby spfile's.
**Standby database should be in nomount stange
**connect as % rman TARGET / AUXILIARY SYS/sys_pwd@sbdb1
Use
DUPLICATE TARGET DATABASE FOR STANDBY ;
This command will copy the datafiles, archived redo log files and standby control file in the backup set to the standby database's storage area.
Thanks
Kuljeet Pal Singh -
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 -
Moving spfile from non-asm to asm file system
Hi All
We are migrating non-asm file system to asm file system, we are held up in moving the spfile from non-asm file system to asm file system ...
we tried the below method
Recreate SPFILE on ASM diskgroup
SQL> create pfile='c:\initTEST.ora' from spfile;
File created.
SQL> create spfile='+DGRP2/spfileTEST.ora' from pfile='c:\initTEST.ora';
File created.
after this we started both the running instance and asm instance
but after starting the instance TEST we saw the instance still using spfile of non-asm file system
what is the correct way of moving the spfile from non-asm to asm file system..
Regards
Hariharan.TYou need to perform this first:
First rename the $ORACLE_HOME/dbs/spfileTEST.ora to spfileTEST.ora_old
create initTEST.ora in dbs location with below contents:
Also i recommend you to recreate the spfile in ASM as it might not be in good shape.
When ever you start the oracle instance there is a specific order to find the oracle pfile/spfile
1. O_H/dbs/spfile<SID>.ora
2. O_H/dbs/init<SID>.ora
3. O_H/dbs/spfile.ora
4. O_H/dbs/init.ora
in your case instance always finds spfileTEST.ora in dbs location (non -ASM) and will stop looking further. If you remove it our of the way it will find initTEST.ora which will redirect to spfile present in ASM.
NOTE: As per your earlier update you created spfile in ASM after puttin spfile='+DG...' in the initTEST.ora..
If you start the instance with this SPFILE you will be getting "maxmimum cursors limit exceeded" error.
-Ravi.M -
Creating Standby Database from ASM Databse none ASM
I have ASM RAC database running on Solaris 10. I want to take a backup with RMAN and move the Backup to none ASM on other Stand alone server. I want to use this none ASM backup database to create Standby Database for Test purpose. Is it doable? If it is doable can you answer following questions?
What command should I use with RMAN to take a full backup and move it to none ASM platform?
Thank youWell, the answer is most likely yes, but first need to confirm
- Do you want a physical or logical standby?
- Will the standby run on the same platform , i.e. also Solaris 10?
- What version of database ? It is much easier in 11g. -
Creating standby database from ASM production database in standard edition
Hi,
I am using oracle 10g release 2 standard edition. I recently created a database instance and wanted to create a standby database instance. After sorting out how to achieve this without managed standby and data guard I finally got it working and the shipped archive logs are applied and working well on the standby database.
Now I am thinking of re-creating my production database and using ASM for storage managment. By doing this can a standby database still be created from a primary database using ASM? I want to be sure I can before I commit to using ASM for the production instance and manually creating a standby database from that instance.
Note: I am using standard edition not enterprise edition.Hi
For Oracle SE standby, you can visit www.anbultechnologies.co.uk , they have a brilliant product name DRMC which is Automatic disaster recovery solution with automatic failover in case primary goes down due to any reason.
We are using this product for more than 2 years and it works like a dream using Oracle Standard Edition. We have depolyed more databases and Standby solution within the prices of 2 EE edition licenses.
You can give ma try as well.
website address is www.anbultechnologies.co.uk -
Uninstall Oracle Culster (RAC) & Oracle Database with Raw File System (LVM)
Hello,
I have configured "Oracle RAC" with "Database" on Hp Unix 11.23 Platform. The shared storage is based on "raw" file system,which has mounted through "SAN" Storage. We have used total 18 LV (logical volumes) for oracle & clusterware.
By mistaken, I have configured wrong "Public, Private IP Address & Virtual IP Addresses" during RAC installation,thus my oracle "crs" is not working perfectly. So, is it possible to modify the "public,private & Virtual" IP Addresses? If Yes, provide me the step by step modification link.
Moreover, I would like to know certain steps to uninstall entire "Oracle Clusterware & Database." Kindly do the needful the "uninstallation" steps & is it necessary to remove & recreate LVM partitions, on which "oracle crs & database" has installed?
Advanced Thanks,
Nishith VyasHi,
You haven't told anything about version...
By mistaken, I have configured wrong "Public, Private IP Address & Virtual IP Addresses" during RAC installation,thus my oracle "crs" is not working perfectly. So, is it possible to modify the "public,private & Virtual" IP Addresses? If Yes, provide me the step by step modification link.BTW, this thread has information that can drive You to this change:
Re: Is it possible?
Moreover, I would like to know certain steps to uninstall entire "Oracle Clusterware & Database." Kindly do the needful the "uninstallation" steps &Again... No versions, but You this thread can drive You to this
How to cleanup / remove RAC installation (CRS,RDBMS,ASM)
is it necessary to remove & recreate LVM partitions, on which "oracle crs & database" has installed?I don't think so. If all steps on uninstalling procedure don't work, You'll can try "zero" the information on the raw device using dd.
Hope it helps,
Cerreia -
How to converrt files on RAW devices in ASM to non ASM file system.
Hi all,
I have on problem .
Is that possible to migrate ASM raw files system to non ASM file .
If possible plzz describe them.
If not also please tell y not?
Thanks in addvance
Regards
KrishnaHi,
I totally agree with Mahir. And I just want to share one thing:
Use %U to generate guaranteed unique names :
For backupsets, %U means: %u_%p_%c
For an image copy of a datafile, %U means: data-D-%d_id-%I_TS-%N_FNO-%f_%u
For an image copy of an archived redolog, %U means: arch-D_%d-id-%I_S-%e_T-%h_A-%a_%u
For an image copy of a control file, %U means: cf-D_%d-id-%I_%u
Thank you -
Adding datafile to ASM file system tablespace
Hi
Can some one plz help in writing a script to add a datafile to the system tablespace on ASM filesystems.
below is the result of the query ..
select file_name, bytes, autoextensible, maxbytes from dba_data_files where tablespace_name='SYSTEM';
FILE_NAME BYTES AUT MAXBYTES
+DATA1/cir_p/datafile/system.260.6037360 5892997120 NO 0
Thanks790072 wrote:
Hi
Can some one plz help in writing a script to add a datafile to the system tablespace on ASM filesystems.
below is the result of the query ..
select file_name, bytes, autoextensible, maxbytes from dba_data_files where tablespace_name='SYSTEM';
FILE_NAME BYTES AUT MAXBYTES
+DATA1/cir_p/datafile/system.260.6037360 5892997120 NO 0
Thanks
You can use
ALTER TABLESPACE "SYSTEM" ADD DATAFILE '+DATA1' SIZE 1024M
Cheers -
Configuring Standby Database from non ASM to ASM
Hi All,
i am trying to configure a standby database from non ASM file system to ASM file system.
my primary database having datafiles in /u02,/u03,/u04 etc, and my Standby database having filesystem in ASM diskgroup DATA.
can anyone of you help me in setting up of parameters db_file_name_convert and log_file_name_convert etc,;
thanks in Advance,
TEJASHi,
You can check this. May it help you
http://gavinsoorma.com/2010/04/creating-an-asm-duplicate-database-from-a-non-asm-database/ -
How to migrate 11gr2 standby database from file system to ASM
Hi,
I have 11gR2 data guard setup of 2 node RAC primary and stand alone standby database.
Primary RAC uses ASM, and stand alone standby DB uses normal file system for data files and archive logs. I want to migrate the stand alone standby DB from file system to ASM.
If you have any ideas or documents on it, kindly please share with me.
Thanks in advance,
MahipalMahi wrote:
Hi Fran,
Thanks a lot for the quick reply. I have another question, I want to have standby in ASM; but ASM home is grid home(CRS+ASM) in 11gr2.
I don't want to configure CRS now for standby, only want to have ASM storage. s it possible to install the grid home only for ASM and not for CRS?
On a stand-alone system, there are still CRS/Grid components that are a part of the ASM install. You cannot NOT install it.
>
Thanks,
Mahi -
Hi, I have both primary and standby database in ASM and I need to recover the standby database as it's falling behind for too long. The steps I did are:
1. backup full database on primary
2. create a standby controlfile and copy to /tmp on the standby
3. on the standby, RMAN>restore standby controlfile from '/tmp/std.ctl';
4. RMAN>restore database;
5. SQL>recover managed standby database disconnect;
However, the recovery always shuts down and I get the error:
ORA-01110: data file 1: '+W08_DATA_DG/w08p/datafile/system.295.662256331'
What's wrong with my steps?
Your suggestion is greatly appreciated!the directory structures are the same. The standby was working before. It's just falling behind so I want to restore it from the new backup. Here is the init.ora
*.audit_file_dest='/opt/app/oracle/admin/W08P/adump'
*.background_dump_dest='/opt/app/oracle/admin/W08P/bdump'
*.cluster_database_instances=2
*.cluster_database=false
*.compatible='10.2.0.3.0'
*.control_files='+W08_DATA_DG/w08p/control01.ctl','+W08_RECOVERY_DG/w08p/control02.ctl','+W08_DATA_DG/w08p/control03.ctl'
*.core_dump_dest='/opt/app/oracle/admin/W08P/cdump'
*.db_block_size=8192
*.db_create_file_dest='+W08_DATA_DG'
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_name='W08P'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=W08PXDB)'
*.event='10298 trace name context forever, level 32'
*.job_queue_processes=10
*.log_archive_dest_1='LOCATION=+W08_RECOVERY_DG/W08P/'
*.log_archive_format='%t_%s_%r.arc'
*.log_archive_max_processes=6
*.open_cursors=1000
*.optimizer_index_caching=70
*.optimizer_index_cost_adj=30
*.pga_aggregate_target=1459617792
*.processes=300
*.remote_login_passwordfile='exclusive'
*.sessions=1000
*.sga_target=1610612736
*.undo_management='AUTO'
*.undo_retention=26000
W08P.undo_tablespace='UNDOTBS1'
*.user_dump_dest='/opt/app/oracle/admin/W08P/udump'
standby_archive_dest='LOCATION=+W08_RECOVERY_DG/W08P'
CONTROL_FILE_RECORD_KEEP_TIME=0
standby_file_management=auto
fal_server=w08p
fal_client=w08p_stby
control_file_record_keep_time=90
~ -
Standby database failover flashback restart as standby gap 1-100
Hi,
I have setup a physical standby database for a 3 node RAC primary database and configured the database to run in MAXIMUM AVAILABILITY mode. Both the primary and standby databases use ASM for managing the IO. I have enabled FLASHBACK ON on both the databases.
I did failover to standby database with primary db SHUTDOWN for doing some testing. After testing is done, I flashbacked the (standby, currently primary)database to the point when it became primary and start it as standby again and the old primary as primary.
Following are the steps:
Failover steps
.Shutdown the primary database
To finisish the recovery at standby
SQL>alter database recover managed standby database finish;
To start as primary
SQL>alter database commit to switchover to primary;
do some DML on the new primary
SQL>flashback database to scn <standby_became_primary_scn>;
SQL>alter database create standby controlfile as '/backup/standby.ctl';
Changed the spfile to point control_files to '/backup/standby.ctl';
Restarted the standby db in mount mode and
created the required stanbdy logs on it.
Then issued
SQL>alter database recover managed standby database using current logfile disconnect;
I have the following message in v$dataguard_status at standby db;
Fetching gap sequence in thread 1 branch(resetlogs_id) 653234404, gap seq 1-100
DBID 2651011616 branch 653234404
GAP - thread 1 sequence 1-100
FAL[client]: Failed to request gap sequence
FAL[client]: All defined FAL servers have been attempted.
The same error is found in alert log file also.
The status of the varioud managed standby db are as follows.
SQL> select process, status from v$managed_standby;
PROCESS STATUS
ARCH CLOSING
ARCH CLOSING
ARCH CLOSING
MRP0 WAIT_FOR_GAP
RFS IDLE
RFS IDLE
RFS IDLE
RFS IDLE
RFS IDLE
RFS IDLE
RFS IDLE
PROCESS STATUS
RFS IDLE
RFS IDLE
RFS IDLE
RFS IDLE
15 rows selected.
SQL>
Could you please help me how to resolve the above error.
Thanks,
SreekanthSreekanth,
I think your steps are right on for your requirement, except instead of
alter database create standby controlfile as '/backup/standby.ctl';
you can do this:
ALTER DATABASE CONVERT TO PHYSICAL STANDBY;
(although perhaps it achieves the same thing internally but you don't need to repoint to new controlfile).
So far as the GAP - thread 1 sequence 1-100
Let me guess, your current sequences are probably well ahead of this reported gap?
If so, this is a bogus gap in a sense that your standby has long ago applied them, but for some reason standby controlfile gets a little confused and starts asking for them again.
I have had this issue and opened multiple TAR's with Oracle since 10.2.0.1, got a few patches and advises to upgrade, but still occasionally get it now in 10.2.0.3
I strongly believe this is related to combination of RAC (i.e. multiple threads of redo) and dataguard.
It is also pretty hard to reproduce (I have not figured out how to reproduce this reliably, if you have, let me know), so I can understand why Oracle has so far been unable to fix this.
Anyway, the workaround is to re-create standby controlfile with a copy generated on primary, and move it in place of the existing (and confused) controlfiles on standby. -
Hi,
I am planning to create a 2-node RAC physical standby database which uses ASM from 2-node RAC production database. I am familiar with RMAN duplicate (11g) network based backup to create the physical standby database, but not sure how this will work to create 2-node RAC standby with ASM.
Could any help me with the document ID which describes how to create a RAC standby database using ASM as storage.
Source:
OS: Linux 64 bit
Oracle: 11.2.0.1
RAC/ASM: yes/yes
Target:
OS: Linux 64 bit
Oracle: 11.2.0.1
RAC/ASM: yes/yes
Thanks in advance!!
Regards,Hi
You can follow following...
1.Install crs.
2.Create ASM instance at standby site...
3.Prepare parameter file for standby database.
4.start database instance in one node at nomount state..
5.create standby control file at primary database...
6.Copy and paste created control file at primary to standby site..
7.Copy control file at file system and modify location of control file at init<SID>.ora.
8.start standby database mount state..
9.create backup text backup controlfile at primary site...
10.shutdown standby database,change location of controfile inside ASM.. and place nomount state...
11.Create controfile through text backup controfile...
12.backup primary db and paste it in standby site..
13.Use RMAN to place datafile inside ASM..if you not using RMAN for backup and restoration purpose..
14.start standby database in mount state and recover through MRP or foreground process..
15.use SRVCTL to register ASM instances..database and database instances.
For standby database of RAC..there can only be one node up...So..remember you can start instance of one node only...
Hope this will help U.
Tinku -
What are the steps applying incremental backups to standby database 11g
Hi All,
I have built 11g none ASM standby database from ASM RAC Database. Now I want to apply incremental backup to the standby database from primary but not sure how to do it. I tried following and I had an error “ORA-01103: database name 'ins-prim' in control file is not 'ins-sec'”
1- I have configured standby database with RMAN backup.
2- After finishing installation, I took a incremental backup from primary server(ins-prim) and moved incremental backup and control file to the standby (ins-sec) database
3- I stared standby database nomount mode
4- restore controlfile from “incremental backup location in standby database”
5- alter database mount; and got this error
“ORA-01103: database name 'ins-prim' in control file is not 'ins-sec'”
What are the steps applying incremental backups to standby database with 11g?
Thank youI build the database from backup and changed from ASM to none ASM and changed location of data files and logfiles. I think this changes makes the standby database as logical one.
You can a have a physical standby with different locations for everything (redo/controlfiles/datafiles), ASM and no ASM etc. I have a such a configuration in production (10gR2)
I build the database from backup
Are you sure you have a standby ? Ins-sec receives the archivelog files from the primary ? How did you proceed to build this database ? I suspect you don't have a standby at all ! If you have duplicated the database ins-sec and ins-pri are independent databases and you won't be able to apply an incremental backup (your script was not correct but it is another story)
Maybe you are looking for
-
My Grandson has a latest generation touch. Up to this time the only way he downloaded apps was directly to the device via wifi. We just recently installed itunes on their home computer and wanted to be able to sync purchases. When we plugged the i
-
When i attempt to split an event, (split event before selected clip) it seems work and a new event is listed for a moment then disappears, leaving me with an apparently unsplit event where i started
-
HT1689 Your purchase could not be completed, please contact iTunes support.
As title, after I used my itune account to make payments twice, the above message popped up, and I cannot complete the payment. How can I solve this? Is it because of the paying limit or what?
-
How to use a VB dll file in java
hi, i am working on college project,In this output of calculation is not matching with college site .So any one can tell "how to use or combine a VB 'dll' file in java?".so that i can use VB 'dll' file in java to get right Output. If possible write c
-
Canon AVCHD 30p vs. 60i, encoding times?
I just picked up a new Canon HF-M41 video camera and am presented with the dilema of shooting in either 60i or 30p AVCHD. On this camera, the 30p is 'recorded' at 60i but saved as 30p. I am literally stuck on the frame rate selection screen of the ca