Change server time in Standby Database or primary database in Dataguard
Hi all,
I configuration dataguard for 2 site. But after finishing, I saw the time not synchronize. I want to change time setting in standby server but I don't sure Dataguard configuration will still running normally.
Please explain for me about synchronizing time in Dataguard. And if you know the way to change time setting server, please tell me that way.
THanks so much!
Hello;
It should be at the OS level. On Linux I use cron to sync time with a central server. Once the time changes at the OS level and the database stops and starts it will use that time.
Will post an example here in a moment
So I use "ntpdate" on Linux to do this. Some similar exists for Windows.
00 8,16,23 * * * /usr/sbin/ntpdate nss.server > /tmp/nts.outWindows example :
Configuring NTP Server
http://social.technet.microsoft.com/Forums/en-US/winserverNIS/thread/7dc5e8f4-824a-432c-a2da-ac0e3fdf76fd/
Best Regards
mseberg
Edited by: mseberg on Apr 16, 2012 6:11 AM
Edited by: mseberg on Apr 16, 2012 6:16 AM
Similar Messages
-
Hi to all,
I have 10.2g database on a Windows Server 2003 in production.
What would be the impact on the database if I change server time i.e. if I roll the clock backwards?
My database server takes time from my DC server and I wont to roll the clock backwards on DC server.
Thanks!871486 wrote:
Hi to all,
I have 10.2g database on a Windows Server 2003 in production.
What would be the impact on the database if I change server time i.e. if I roll the clock backwards?
My database server takes time from my DC server and I wont to roll the clock backwards on DC server.
Thanks!The schedulers will be affected. I mean by the schedulers; Oracle defined schedulers (maintenance window, etc...) and user defined schedulers. -
How to create physical standby database without dataguard
Hi,
Can anyone please help me how to create Physical Standby Database without dataguard. As i am using Oracle 10.2.0.1 Standard Edition for production databases.
Please find the specifications of my server :
Database : Oracle 10.2.0.1(Standard Edition)
Server : Linux 4.0(32 bit machine)
As we know that Dataguard cannot be created in Standard Edition as we dont have that option in this edition. So please help me how to create the physical standby database.
Thanks in advance.
Regards,
FarooqHello,
I hope this link helps you out...
http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/rcmbackp.htm
http://www.dbasupport.com/oracle/ora10g/manual_standby.shtml
Thanks & Regards
Pratik Lakhpatwala
Jr Oracle DBA
Edited by: Pratik.L on Dec 31, 2009 12:03 PM -
Standby server time zone - sync-up with primary
As we are running our database with physical standby database - Oracle 10.2.0.3, O/S RHEL4 ES
now the primary database server time zone is set to EST Time Zone and Standby database server is set to PST time Zone
We would need to Sync-up standby time zone with Primary database server (EST)
and also the standby server is having 2 instances,
1. standby instance
2. independent instance
We are running rman for both the instances in standby server
as part of this time sync, we need to bring down both the instances then reset the time zone in standby server as primary and bring both the instances up and run the rman backup.
is this fine.
Please let us know if this is fine or do we need to perform anything more.
Thanks,
AJPlease see the attached screenshot, which is of the last page of the Sync Setup process. It says to backup your Sync Key, and it offers a Print ... button and a Save... button. The correct Sync Key is necessary to recover your data, it is the encryption / decryption key. Sorry, without it your data is useless.
-
Change server time will change database time?
If a change my unix hour (because summer hour) the database will change without any commands or i need to do something?
Tks,
Elber.Yes, SYSDATE will pick up the underlying operating system's date and time.
If you are changing the time zone in which the server resides, though, make sure that the operating system time zone and the database time zone are in sync if you are using any TIMESTAMP columns.
Justin -
Check actual apply log time on standby database after synchronization
Hi All,
I want to check the date and time stamp of applied archived logs on stanby database. How should I check that??
My dataguard link was broken for sometime and meanwhile lot of transactions happened on primary database. Now When the link came up the synchronisation happened within few hours and ultimatly transport and appliy lag became 0. But now I want to check actual time taken for tranporting the logs and applying them on standby database. Is there any way I could do that easily..
ThanksThis script written by Yousef Rifai I found here http://www.dba-village.com/village/dvp_forum.OpenThread?ThreadIdA=34772&DestinationA=RSS might be just what you need (run on standby database):
set ver off
alter session set nls_date_format='dd-mon-yy hh24:mi:ss'
select app_thread, seq_app, tm_applied,
nvl(seq_rcvd,seq_app) seq_rcvd, nvl(tm_rcvd,tm_applied) tm_rcvd
from
(select sequence# seq_app, FIRST_TIME tm_applied, thread# app_thread
from v$archived_log where applied = 'YES'
and (first_time, thread#) in (
select max(FIRST_TIME ), thread#
from v$archived_log where applied = 'YES'
group by thread# )
(select sequence# seq_rcvd, FIRST_TIME tm_rcvd, thread# rcvd_thread
from v$archived_log where applied = 'NO'
and (first_time, thread#) in (
select max(FIRST_TIME ), thread#
from v$archived_log where applied = 'NO'
group by thread# )
where rcvd_thread(+)= app_thread
Best regards,
Robert
http://robertvsoracle.blogspot.com -
Hi
We are planning to change server timezone,now itz running US-Time zone,and we are going to change it to IST( indian time zone ).
is there any effect on database,.
As ....instance is in archive log mode, after changing time zone need to take cold backup and archivelogs generated after that only can be used for recovery,...any other.....things we need to take kare of......
any suggestion will be helpful.
RegardsHi
You can use Transaction STZAC to change the time zones in ABAP ..
Thanks
Prince Jose
PS: Points appreciated -
DB name Change --- Required to reconfigure standby database
Dear All,
Is it necessary to reconfigure standby database after changing database name.
DB Version :--- 10.2.0.1.0
OS :--- Windows
Waiting for reply.
Regards,
Praful KawajiDear praful kawaji,
Your primary and standby databases should have the same DB_NAME however they have to have seperate DB_UNIQUE_NAME values. alter the parameter on both sites and you will be fine i guess.
Hope That Helps.
Ogan -
Change parameter instance_name after standby database has been activated
Hello ,
our primary database is configured as follows:
SQL> show parameter db_name;
NAME TYPE VALUE
db_name string prod01
SQL> show parameter instance_name
NAME TYPE VALUE
instance_name string prod01
the corresponding standby database is configured as:
SQL> show parameter db_name;
NAME TYPE VALUE
db_name string prod01
SQL> show parameter instance_name
NAME TYPE VALUE
instance_name string stbyprod01
Now the standby database shall be activated. Afterwards I want to change the parameter INSTANCE_NAME from stbyprod01 to prod01.
The question now is: what needs to be done to change the parameter INSTANCE_NAME? As a matter of fact the standby database will
already be activated and be treated and handled as a standalone database. The former primary database will not be used anymore.
I would proceed as follows:
SQL> create pfile='initprod01.ora' from spfile;
SQL> shutdown immediate;
oracle #> edit the pfile and change the parameter INSTANCE_NAME from stbyprod01 to prod01
SQL> startup;
SQL> create spfile='spfileprod01.ora' from pfile;
SQL> shutdown immediate;
SQL> startup;
That should be all - from my point of view (I know that LISTENER.ORA and TNSNAMES.ORA should be modified, too).
If anybody has already experiences with changing the INSTANCE_NAME parameter but sees some further configurations: please just let me know!
Rgds
JanHi ,
only "alter system set instance_name='TEST' scope=spfile" will work since the parameter INSTANCE_NAME is static. After restarting the database/instance the statement "show parameter instance_name" will show the new instance name.
But when selecting the view V$INSTANCE the value of the column INSTANCE_NAME has still the old value. Any idea why this value remains unchanged in the view V$INSTANCE?
Rgds
Jan -
Not able to get data of primary in standby database (configured dataguard)
Hi all, I configured dataguard in my local system, i ve a few qsns (as i am new, ve patience)
1) scn differs wrt primary in standby (i checked, 1day difference), how to make scn same?
2)i created a table in primary, its not refelecting in standby, (below i ve pasted alertlog entries)
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
Errors in file d:\oracle11g\app\administrator\diag\rdbms\stand\stand\trace\stand_dbw0_6916.trc:
ORA-01157: cannot identify/lock data file 2 - see DBWR trace file
ORA-01110: data file 2: 'D:\ORACLE11G\APP\ADMINISTRATOR\ORADATA\STAND\SYSAUX01.DBF'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
Errors in file d:\oracle11g\app\administrator\diag\rdbms\stand\stand\trace\stand_dbw0_6916.trc:
ORA-01157: cannot identify/lock data file 3 - see DBWR trace file
ORA-01110: data file 3: 'D:\ORACLE11G\APP\ADMINISTRATOR\ORADATA\STAND\UNDOTBS01.DBF'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
Errors in file d:\oracle11g\app\administrator\diag\rdbms\stand\stand\trace\stand_dbw0_6916.trc:
ORA-01157: cannot identify/lock data file 4 - see DBWR trace file
ORA-01110: data file 4: 'D:\ORACLE11G\APP\ADMINISTRATOR\ORADATA\STAND\USERS01.DBF'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
Errors in file d:\oracle11g\app\administrator\diag\rdbms\stand\stand\trace\stand_dbw0_6916.trc:
ORA-01157: cannot identify/lock data file 5 - see DBWR trace file
ORA-01110: data file 5: 'D:\ORACLE11G\APP\ADMINISTRATOR\ORADATA\STAND\EXAMPLE01.DBF'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
Errors in file d:\oracle11g\app\administrator\diag\rdbms\stand\stand\trace\stand_dbw0_6916.trc:
ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
ORA-01110: data file 6: 'D:\ORACLE11G\APP\ADMINISTRATOR\ORADATA\STAND\STREAM_TBS.DBF'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
Errors in file d:\oracle11g\app\administrator\diag\rdbms\stand\stand\trace\stand_dbw0_6916.trc:
ORA-01157: cannot identify/lock data file 7 - see DBWR trace file
ORA-01110: data file 7: 'D:\ORACLE11G\APP\ADMINISTRATOR\ORADATA\STAND\DATA01.DBF'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
ORA-16004 signalled during: alter database open read only...
3)wen i try to open standby database in read only mode gives below error..how do i solve it?
ERROR at line 1:
ORA-16004: backup database requires recovery
ORA-01157: cannot identify/lock data file 1 - see DBWR trace file
ORA-01110: data file 1:
'D:\ORACLE11G\APP\ADMINISTRATOR\ORADATA\STAND\SYSTEM01.DBF'971424 wrote:
Hi all, I configured dataguard in my local system, i ve a few qsns (as i am new, ve patience)
1) scn differs wrt primary in standby (i checked, 1day difference), how to make scn same?Please do not use IM language here, instead of "qsns" use questions.
SCN can be differ in standby and it can be behind to primary based on the backup you have restored. Of course by performing recovery you can synchronize standby with primary database. You can use incremental backups for standby using link http://www.oracle-ckpt.com/rman-incremental-backups-to-roll-forward-a-physical-standby-database-2/
2)i created a table in primary, its not refelecting in standby, (below i ve pasted alertlog entries)
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
Errors in file d:\oracle11g\app\administrator\diag\rdbms\stand\stand\trace\stand_dbw0_6916.trc:
ORA-01157: cannot identify/lock data file 2 - see DBWR trace file
ORA-01110: data file 2: 'D:\ORACLE11G\APP\ADMINISTRATOR\ORADATA\STAND\SYSAUX01.DBF'
ORA-27041: unable to open fileFirst check whether those files are exist in that location or not and if file names are different other than primary then rename file locations. Also check the permissions on the folder/files. -
How to change server time?
Can some one guide me how to change the server time in Solaris 10.
Actually i need to advance the server time to 15 mins.
thanks!Take a glance through the man pages for date.
It's been a couple of years since I last used it,
but when I did, it was for the express purposes
of changing the system date to a specific time.
It was on an old SB100 with an unpatched OBP.
Their system clocks would wander all over the place
until the problem got fixed with an OBP update.
If I recall, the command syntax I used was something like ...
# date HHmm.ss <enter>
For example -- "date 1832.50" would be for 18:32:50 o'clock of the system's current day and timezone.
... then I used the simpler date command syntax to check up on the results.
# date <enter>
Other forum contributors may have their favorite suggestions, as well. -
Next log sequence to archive in Standby Database (RAC Dataguard Issue)
Hi All,
I just had implemented Data Guard in our server. My primary Database is RAC configured, but it is only single node. The other Instance was removed and converted it to Developement Instance. For the reason I kept the primary as RAC is when I will implement dataguard, my Primary Database is RAC with 7 nodes.
The first test is successful, and I was able to "switchover" from my primary to standby. I failed in the 'FAILOVER" test.
I restore my primary server and redo the setup.
BTW, my standby DB is physical standby.
When I try to switchover again and issue archive log list, below is my output.
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 38
*Next log sequence to archive 0*
Current log sequence 38
SQL> select open_mode, database_role from v$database;
OPEN_MODE DATABASE_ROLE
MOUNTED PHYSICAL STANDBY
===============================================
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 38
*Next log sequence to archive 38*
Current log sequence 38
SQL> select open_mode, database_role from v$database;
OPEN_MODE DATABASE_ROLE
READ WRITE PRIMARY
In my first attempt to switchover before I failed in "FAILOVER" test, I also issue +archive log list+ in both primary and standby database, and if I remember it right, next log sequence on both should be identical. Am I right on this?
Thanks in Advance.
Jay AOr Am i just overthinking on this?
Is dataguard only looking for the current and oldest log sequence? -
Creaton of Standby database and dataguard broker
Hi Experts,
I am using Linux with Oracle version 11gR2. We have planned to create a physical standby database and also configure dataguard broker for the standby database.
Also, I've read the documents that active dataguard is a feature on 11g. Is it not possible on 10g ?
Can someone please provide me the steps to create the standby database and configure the dataguard broker.Hello;
A simple Data Broker setup would be :
On both Primary and Standby sites, change the initialization parameter in the spfile to enable the Data guard broker.
SQL> Alter system set dg_broker_start=True scope=both;
On the PRIMARY site, open the ‘cmd’ and start Command Line Interface (CLI) of the Dataguard Broker (DGMGRL).
/home/oracle:PRIMARY >dgmgrl
DGMGRL for Linux: Version 11.2.0.1.0 - 64bit Production
DGMGRL> connect sys/password@PRIMARY
Create broker configuration.
DGMGRL> create configuration ‘broker1’ as
primary database is 'PRIMARY'
connect identifier is primary;Configuration "?broker1?" created with primary database "PRIMARY"
DGMGRL>
(‘primary’ in Connect identifier is the service name through which the broker is connected to the PRIMARY database)
Add Standby Database to the above configuration.
DGMGRL> add database 'standby' as
connect identifier is 'STANDBY'
maintained as physical;
Database "standby" added
(‘to_standby’ in Connect identifier is the service name through which the broker is connected to the STANDBY database)
Now the configuration has been set up but it is still disabled. You can view the configuration by executing:
DGMGRL> show configuration
The next step is to ENABLE the configuration ‘broker1’.
DGMGRL> enable configuration;
Enabled.
Again view the configuration.
DGMGRL> show configuration
Configuration - ?broker1?
Protection Mode: MaxPerformance
Databases:
PRIMARY - Primary database
standby - Physical standby database
Fast-Start Failover: DISABLED
Configuration Status:
SUCCESSIn my humble opinion its a good idea to setup Data Guard without Broker and get the "feel" of it first.
Remember, once you setup Broker, you cannot use SQL to change your Data Guard setup.
Best Regards
mseberg -
Test physical standby database in dataguard
Hi all,
I had a successfull dataguard implementation for oracle 9r2.
Primary and standby databases are on different nodes, logs from primay are shipping and applying to physical standby database successfully.
As these database are for oracle 11i ebs, so for testing dataguard status i had created a table manually having columns date and remarks. Periodically i insert few records in this table in primary database and then chek this tabel in standby database (by opening in read only mode).
Now i want to test physical standby database with applications tier but don't want to disturb origional primary database.
as these are the normal switchover steps
1) at primary db
ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY WITH SESSION SHUTDOWN;
2) at standby
ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY;
3) at primary, now this will be the stand by database
SHUTDOWN IMMEDIATE;
STARTUP MOUNT;
4) at standby, now this will be the primary database
SHUTDOWN IMMEDIATE;
STARTUP
My concern is if i skip step 1 and 3 and only execute step 2 and 4, will that be applicable for my requirement, or there is some other way to achieve this goal.
Regards,
KenTo avoid touching the primary production DB, you may try to use the following command on your standby database side:
alter database activate standby database;
This will turn your standby database to primary database, however the log will be reset and this means you will need to rebuild your DR.
Another way is to use flash back feature on your standby database, activate it and revert back to the flashback point when the DR testing is done. -
Change database time without changing server time.
hello expert,
i want to change sysdate for testing purpose. want to set the date to 2010
i try by changing alter system set fixed_date but it freeze the date to the set time.
Accourding to our requirement the time should also proceed ahead. any way of doing that.
thanks in advance
Ankituser12973298 wrote:
hello expert,
i want to change sysdate for testing purpose. want to set the date to 2010
i try by changing alter system set fixed_date but it freeze the date to the set time.
Accourding to our requirement the time should also proceed ahead. any way of doing that.
thanks in advance
AnkitSomething like this (running in a session and using dbms_lock.sleep)
http://www.orafaq.com/maillist/oracle-l/2003/03/14/1227.htm
Maybe you are looking for
-
Can someone explain why my old Samsung Convoy got better service then my NEW HTC Rhyme?
According to the service map I have digital voice/text coverage. My new smartphone(?) service doesn't seem to be as good as my old phone. Is there something I can do to with setting to make it better? I would also like to know when in the world am
-
Safari Reopening After Quitting
I've been having this problem ever since I installed Mac OS X 10.6 Snow Leopard on my 13" MacBook: Whenever I quit Safari, it automatically reopens and hides itself for no apparent reason. I thought this was just an issue with an add-on I had on Safa
-
Why do you clowns not optimize this for windows 7? Are you that far behind the times?
The question is above. I am going to delete Firefox is this is not fixed. I have a Samsung Galaxy S II Fix the damn thing
-
TS4036 how torestore contacts that have been deleted
I lost my phone so i ent an added another line to my account.i switched my number to the new phone.I found my phone a week later and told the verizon sales man to turn my old phone on and activate the new number on the new phone.he did but he didnt c
-
I recently updated to Adobe Premiere Elements 13 and the program is crashing when I attempt to import video files from my Canon VIXIA 400 camera. I am using a Windows 7 Home Premium computer.