817 simple standby database questions
i read the standby concept and tried to look for an answer on the web but couldn't get it.
1. if i will use manage recovery enviroment can i lose transaction when the primary server is down?
i read that it transfers the archive logs to the standby database but if the primary server "exploded" then i will lose all the transaction that in the online redo log and didn't archived yet.
is it true ? am i missing something here ?
2. if i will use a standby database is it important to have a regular hot backup of the primary/standby databases ?
3. i still don't know if my net8 connection is down and my standby enviroment is manage recovery , what is the efect on the primary server ?
thanks
Hi zvika,
I have make a standby 8i the last week, and I will try to answer your questions :
1. Yes, you lose the all transaction from the last redolog which is not archived. When you have a standby database, you accept a minimum data lose.
2. It's not necessary, if the standby is ok, you don't need a cold backup. You can save all archive files since the last cold backup.
3. In this case, you have a warning (or error message) into the alert.log from primary database. And error message into v$archived_log view at standby line into your primary database. After what, it's depend if the init.ora parameter "log_archive_dest_n" for the standby dest is optional (recommanded) or mandatory.
If optional, there is nothing to make, Oracle make itself.
If mandatory (not recommanded), primary database stop all new entries (you need to change log_archive_dest_n to optional) and you need to copy manually all archive files which are created since the network problem and reapply manually it into the standby database.
Hope this will help,
Nicolas.
Similar Messages
-
Hi,
I have added a datafile in primary database . In my standby database server i don't have space in that filesystem to create a datafile.In previously we create the standby database by using standby_file_management=auto.
How to troubleshoot that problem to create a datafile in standby database server.
Please suggest me .user8443904 wrote:
Hi,
I have added a datafile in primary database . In my standby database server i don't have space in that filesystem to create a datafile.In previously we create the standby database by using standby_file_management=auto.
How to troubleshoot that problem to create a datafile in standby database server.The simpliest way is to increase disk space. -
Logical standby database questions
Hi,
1.Is it possible to encrypt just the logicals standby database? ie primary is not encrypted but when the data comes to logical standby it gets encrypted?
2. Is it possible to replicate only certain schemas to logcial standby?
Please let me know,
Thanks a lot
SumathyHi Sumathy,
1.) Yes this is possible
2.) Yes also possible. However Logical Standby will always gather all information from the primary, and only skip in the apply process.
If you want to lessen your transfer, then you should use other replication mechanism like
- Golden Gate (preferred but does cost money)
- Streams (free, but depricated)
Regards
Sebastian -
Is it possible to have a real-time synchronized copy of the production database in Oracle 9.2 and 10.1.2?
actually i am reading through http://download.oracle.com/docs/cd/B19306_01/server.102/b14230/concepts.htm#i1019612
and http://download.oracle.com/docs/cd/B10501_01/server.920/a96653/concepts.htm#1033733
but im a bit lost..
i want to have an exact real time copy of my primary databases. if primary db s fail i'll switch to standby database. is this possible for 9.2 and 10.1.2 without any data loss.paragraph 1.4 in the 2nd document. 'Maximum protection mode'
Sybrand Bakker
Senior Oracle DBA
Experts: those who do read documentation -
Simple recover database question...
Hello,
I have Oracle 10.2.0.4 running on AIX.
I have used RMAN to make a copy of our production database and have transferred it to a second server (that is firewalled).
I am used RMAN to restore the database files, and now I am trying to alter the database open without recoverying any of the files.
Now that I've restored the database, I simply want to open it and don't care about applying the archive logs.
Shouldn't I be able to simply "alter database open resetlogs"?
If I attempt to do this, it tells me that the database files are out of sync and need recovery (which I can't do because I did not copy over the archive logs). But actually I don't care about recovering to a point in time, or to current. I just want to open the database and reset the SCN back to zero and start over.
Do I have to recreate the controlfiles? If so, can I simply create a controlfile from the output of "alter database backup controlfile to trace"?
Thanks again...So you took hot backup of your env?? It true then you need archivelogs to recover and open it. If you don't want all the transactions then you can just copy one with next sequence archivelog and recover upto that. There is no way you can restore it to SCN 0 and start over, oracle can't go backward. If you can copy next archivelog then you can recover your database upto that sequence. In mount stage check V$LOG to find out the last sequece oracle has applied on your database and then find the archivelog with next sequence in your prod database copy it over and the recover it upto that.
Thanks
Daljit Singh -
Question regarding removal of physical standby database?
We are running a 2 node rac cluster on linux itanium and we have setup one physical standby server. We did not use the data guard broker to setup the standby database we simply set 2 parameters log_archive_config and log_archive_dest_2.
We now are looking to remove the physical standby server and I see that the 2 parameters are dynamic so I was trying to find out if it is as simple as running the alter system comands to reove the 2 parameters?
I gues my real question is more about the syntax of removing the parameters?
Would this syntax be correct?
alter system set log_archive_config='' scope=both sid='*';
alter system set log_archive_dest_2='' scope=both sid='*';
and does it make a difference which parameter is removed first?
Thanks I appreciate any help.the standby system is also a 2 node cluster but only one of the nodes has the instance up in a mount state running in recover mode and the other instance is simply shutdown.
Thanks. -
A new question on how to Enable Flashback Database on the standby database?
Best Practice document said:
Enable Flashback Database on the standby database to minimize downtime for logical corruptions.
I would like to know where to find document or anybody already had experience for this topic?
Also I would like to know what is the best practice for backup/recovery of the Physcial standby database?
Thanks in advance.Hello;
Just an opinion but I like the book "Oracle Data Guard 11g Handbook" as both the document and the answers to the second question.
Chapter 12 covers the A to Z of RMAN with Data Guard.
This book sold me on Flashback since Flashback allows a former Primary database to be reinstated after a failover operation with being restored ( provided sufficient flashback logs are available)
My own experience is I tried a failover test without it and trash my test Primary.
I did a simple failover test a few weeks ago, here are my notes.
http://www.visi.com/~mseberg/Data_Guard_Failover_Test_using_SQL.pdf
Best Regards
mseberg -
Conceptual Question-Standby Database
Hi all,
I was just going through this documentation
http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/log_apply.htm
In the beginning it says
"Log apply services automatically apply redo to standby databases to maintain synchronization with the primary database and allow transactionally consistent access to the data"
I want to know How does process takes redo log and apply to datafile?What is basically happening inside?
Cheers,
NeeravDear Neerav999,
If i would know your Oracle database version, i could give you a more detailed explanation but i will give it anyway;
There are options that you can use for the Oracle Data Guard. Data Guard is used for replicating the primary database to the standby database via the archivelogs and/or with the redologs. You may not have a standby redolog for maximized performance protection level and it is not mandatory however you need to have standby redos for maximized availiability and protection, protection levels of the Oracle database.
Starting from 11g, you can able to cancel the recovery process on standby site and open the standby database read only than (magic goes here) you can start the media recovery! The command list as follow for 11g;
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL --> This command will cancel the MRP0 process and will stop the continuous media recovery
ALTER DATABASE OPEN READ ONLY
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE [USING CURRENT LOG FILE] DISCONNECT FROM SESSION;
--> Above command will start the media recovery process ON THE READ ONLY DATABASE!You can give it a try that one by creating a dummy table on primary and wait for one or two log switches and check back the standby database. You are going to see the table has been also created there.
So answer to your eternal question! :)
MRP process is there to fetch and request the archivelogs from the primary site. This process can be started with the below command;
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;You may have a simple test of cource. Cancel the MRP process and switch some logfiles on primary site. Than rerun above command to restart the MRP process and check v$dataguard_status fixed view. You will see that MRP is going to try to fetch the missing archivelog files and will try to close down the gap between the primary and the standby database. Here let me show you another 11g feature of Data Guard.
On 11g you can compress the redologs! What do you need to compress it? There is maybe the most threatning problem of the Data Guard is the connection itself. It should be fast and reliable. Otherwise the MRP process will fall behind and if you are running on maximum performance mode, it will also decrease the performance of the primary database and will hardly close the gap. You 11g Data Guard does is it compresses the log files in the fetching period. If its done with fetching and closed the gap than the normal transmission without the compression will continue to operate. Here is an example of redo compression parameter;
alter system set log_archive_dest_n = 'service= ORCLSTBY
LGWR ASYNC valid_for=(ONLINE_LOGFILES,PRIMARY_ROLE)
db_unique_name=ORCLSTBY compression=enable'I have checked the link that you have given and its Oracle 10g but i have just written it to understand some real factors between the 10g Data Guard and the 11g Data Guard. There are also other changes but if you can go to the 11g New Features site you will see Arup Nanda's posts about it.
If you are to use the standby redologs and it is called "Real Time Apply" and you can see it on v$dataguard_status fixed view. Here is the information from the online documentation;
6.2.1 Using Real-Time Apply to Apply Redo Data Immediately
If the real-time apply feature is enabled, log apply services can apply redo data as it is received, without waiting for the current standby redo log file to be archived. This results in faster switchover and failover times because the standby redo log files have been applied already to the standby database by the time the failover or switchover begins.
Use the ALTER DATABASE statement to enable the real-time apply feature, as follows:
*For physical standby databases, issue the ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE statement.
*For logical standby databases, issue the ALTER DATABASE START LOGICAL STANDBY APPLY IMMEDIATE statement.
Standby redo log files are required to use real-time apply.Here is a fixed view that you may see the processes;
http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_1169.htm#REFRN30144
PROCESS VARCHAR2(9) Type of process whose information is being reported:
*RFS - Remote file server
*MRP0 - Detached recovery server process
*MR(fg) - Foreground recovery session
*ARCH - Archiver process
*FGRD
*LGWR
*RFS(FAL)
*RFS(NEXP)
*LNS network server processAll above indications are most verbose and your answer to your question resides here but you need to read it carefully to understand how Oracle applies log files.
http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/manage_ps.htm#i1009613
Regards.
Ogan -
Questions regarding creating a physical standby database in 10gR2
I'm setting up a physical standby database in a test environment using two windows 2003 servers. I was wondering if someone could answer a few questions I'm not too clear on. I've been thru the data guard manual and as much online information as i can find. I may have it working but wanted to post some things I'm not sure I did quite right.
My tnsnames.ora files.
On my primary database server:
# tnsnames.ora Network Configuration File: F:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.
PRIMARY =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = SERVER1)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = PRIMARY.MYDOMAIN.com)
STANDBY =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = SERVER2)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = STANDBY.MYDOMAIN.com)
On my physical standby database server:
# tnsnames.ora Network Configuration File: f:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.
STANDBY =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = SERVER2)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = STANDBY.MYDOMAIN.com)
PRIMARY =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = SERVER1)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = PRIMARY.MYDOMAIN.com)
My Listener.ora files:
On my primary database server:
# listener.ora Network Configuration File: F:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = PRIMARY.MYDOMAIN.com)
(ORACLE_HOME = f:\oracle\product\10.2.0\db_1)
(SID_NAME = primary)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = server1.mydomain.com)(PORT = 1521))
On my physical standby database server:
# listener.ora Network Configuration File: f:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = standby.mydomain.com)
(ORACLE_HOME = f:\oracle\product\10.2.0\db_1)
(SID_NAME = standby)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = sever2.mydomain.com)(PORT = 1521))
The next item I'm not sure about is after creating the control file for standby use.
One the primary server I created it using:
alter database create standby controlfile as 'sbcontrol01.ctl';
I copied the primary database pfile I had created earlier to the standby server, renamed it and edited it.
Initially I left the CONTROL_FILES= parameter pointing to the control01.ctl, control02.ctl and control03.ctl that I restored. But I was getting the error ORA-01665: control file is not a standby control file
So I copied the sbcontrol01.ctl to sbcontrol02 and sbcontrol03.ctl and pointed the CONTROL_FILES= parameter at them.
The error went away and the database came up. I still need to test it some more but wanted to see if what i did was correct or a fluke.
Edited by: tjohnson on Mar 23, 2009 2:26 PMIf in the primary I had control files named control01, control02 and control03 would I have been able to create a standby controlfile called control01.ctl or would I have had to name it something else like I did (sbcontrol01.ctl) and rename it to control01.ctl once I got it over to the standby database server?Suppose you have the primary database control file in C:\oracle\primary\control location with names control01.ctl and control02.ctl. Then also you can create a standby controlfile with control01.ctl and control02.ctl , but then the location to be created must be different.You can create it in C:\oracle\primary location and then transfer to the specified location mentioed in the pfile of the standby database and mount the standby database.
But saying this i would suggested to keep the name different from control01.ctl as far as naming conventions are followed.It might confuse someoe whether its a primary database controlfe or a standby database controlfile.Usally primary database controlfile are named control01.ctl , coltrol02.ctl etc and for standby many do prefer keeping standby01.ctl, standby02.ctl.Thats just for for understanding.
HTH
Anand -
Oracle Dataguard Question on Physical Standby Database with a Time Lag
I have a Standby database (PROD_LAG) that has a delay of 24hrs. How do I check to see what Archive have applied, what is current, and what is left to do.
There is a script but its for a Logical Standby database...
Thanks you in advance...hi,
ok a little bit more explanation.
The GUI does work but seems to report incorrect data.
I have carried out a switchover so the primary database is now 'offsite_emrep' and the standby database is 'office_emrep'
The GUI how ever still reports that office_emrep is the primary database.
I cannot add the offsite_emrep database as the host is unknown. I am however running the GUI from the Host.
I have the following from the agent status
[oracle@griddg bin]$ ./emctl status agent
#Oracle Enterprise Manager 10g Release 3 Grid Control 10.2.0.3.0.
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
Agent Version : 10.2.0.3.0
OMS Version : 10.2.0.3.0
Protocol Version : 10.2.0.2.0
Agent Home : /u01/app/oracle/product/10.2.0/agent10g
Agent binaries : /u01/app/oracle/product/10.2.0/agent10g
Agent Process ID : 19797
Parent Process ID : 19780
Agent URL : https://griddg.domain.net:3872/emd/main/
Repository URL : https://griddg.domain.net:1159/em/upload
Started at : 2007-10-01 12:35:02
Started by user : oracle
Last Reload : 2007-10-01 12:35:02
Last successful upload : (none)
Last attempted upload : (none)
Total Megabytes of XML files uploaded so far : 0.00
Number of XML files pending upload : 116
Size of XML files pending upload(MB) : 27.67
Available disk space on upload filesystem : 83.08%
Last attempted heartbeat to OMS : 2007-10-01 12:38:08
Last successful heartbeat to OMS : unknown
Agent is Running and Ready
any help is appreciated.
rgds
alan -
Standby Database Switchover Question
I have a Primary and a physical standby database. I have tested switchover and failover to a point. I can't get my client applications to navigate to the "new" primary DB after switchover or failover. I assume it may be something to do with my tnsnames.ora and listener.ora files in my configuration. I will place the contents of the files below.
I was expecting to be able to add the failover syntax to my client tnsnames file and things would be fine. Unfortunately, clinet apps don't failover to "new" Primary ("old" standby DB) when testing failovers; Additionally, when testing switchovers, the client apps try to connect to the "new" standby DB ("old" Primary) instead of the "new" Primary DB.
I was hoping someone might see a syntactical error that is preventing a transparent application failover.
Thanks.
Jim
tnsnames.ora on client:
TESTDB =
(DESCRIPTION=(SOURCE_ROUTE=yes)
(ADDRESS=(PROTOCOL=tcp)(HOST = oracle1.datacenter.staging)(PORT = 1521))
(ADDRESS_LIST=(FAILOVER=on)(LOAD_BALANCE=off)
(ADDRESS=(PROTOCOL=tcp)(HOST = oracle2.datacenter.staging)(PORT = 1521))(CONNECT_DATA=(SERVICE_NAME=orcl10STANDBY)))
(CONNECT_DATA=(SERVICE_NAME=orcl10)))
tnsnames.ora (on both Primary and Standby DB's)
ORCL10 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle1.datacenter.staging)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl10)
ORCL10STANDBY =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle2.datacenter.staging)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl10STANDBY)
listener.ora - Primary
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_10)
(PROGRAM = extproc)
(SID_DESC =
(ORACLE_HOME = D:\oracle\product\10.2.0\db_10)
(SID_NAME = ORCL10)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle1.datacenter.staging)(PORT = 1521))
listener.ora - Standby
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
(SID_DESC =
(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
(SID_NAME = ORCL10STANDBY)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle2.datacenter.staging)(PORT = 1521))
)Hi another way can be configuring client tnsname files to support failover:
EXAMPLE=
(description=
(address_list=
(load_balance=off)
(failover=on)
(address=(protocol=tcp)(host=X)(port=1521))
(address=(protocol=tcp)(host=Y)(port=1521)))
(connect_data=(service_name=XXX)))
if the listener on host X (primary db) fails, client tries to connect the standby database on host Y. -
Standby Database (QUICK QUESTION!!!)
Hi folks,
May I set more than one path to the standby_archive_dest parameter in my Standby Database?
My current value is: /backup/SPCAP/arch/
I want to change it to: 'arch1/SPCAP,arch2/SPCAP,arch3/SPCAP'
Reason: I have 3 primary instances in a RAC.
Their archives are always stored in first destination ('arch1/SPCAP','arch2/SPCAP' OR 'arch3/SPCAP') depending on the instance (1,2or3).
The archiving never fails in first destination.
The archiving sometimes fail to send the archives to the second destination (/backup/SPCAP/arch) wich is general and must have all the archives generated by the 3 instances... This is the destination wich my standby database uses to copy the production archives....
So, does someone know how I can set 3 paths to standby_archive_dest? So I would solve the problems I'm having to recover standby database...
Thank you in advance.....It will always be fetching the gap, but you can still have real time apply on and it will continue to apply trying to resolve all gaps. You may want to look into the recv/send_buf_size parameters and sdu_size. Take a look at the following white paper to help give you ideas to assist in your redo transfer speed.
http://www.oracle.com/technology/deploy/availability/pdf/MAA_WP_10gR2_DataGuardNetworkBestPractices.pdf
As well:
http://www.oracle.com/technology/deploy/availability/pdf/MAA_WP_10gR2_RecoveryBestPractices.pdf -
9i Standby Database - Failover Question - REF 227196.1
Hi ,
Im researching the use of a Standby DB for out Production DB....
The Metalink DOC 227196.1 mentions that in failover , the Production going down , Standby becomes Primary and cannot be come Standby again , whereas with Switchover , they can be swapped as many times as you need for upgrades etc...
"The Difference between a Switchover and a Failover is, that after a Failover, the Standby Database becoming a Primary now, cannot switchback to become a Standby Database again. In Opposition a Switchover exchanges the Database Roles (The Primary becomes a Standby and the Standby becomes a Primary). Switchovers can be performed arbitrarily, a Failover only once."
If failover happens can someone tell me or point me in the right direction:
a) Can you config Failover to happen automatically?
b) If failover occurs , do you need to reconfig all the Primary/Standby DB again in the event that failover happens again?
c) Any clear step by step guide to config of standby... The Oracle docs whilst very good are robust and some "summary" steps would be great
thanks in advance
StephenHI,
Please check this link:
Physical Standby Database SWITCHOVER & FAILOVER Operations | Talip Hakan Ozturk's ORACLE BLOG
Thank you -
Hi Guys..
I am using oracle 10.2.0.4.0 on windows 2003 server. I created a physical standby database successfully.
On standby database, I fired the following query
SELECT SEQUENCE#, FIRST_TIME, NEXT_TIME FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#
SEQUENCE# FIRST_TIM NEXT_TIME
10715 02-AUG-10 02-AUG-10
10716 02-AUG-10 02-AUG-10
10717 02-AUG-10 03-AUG-10
10718 03-AUG-10 03-AUG-10
10719 03-AUG-10 03-AUG-10
10720 03-AUG-10 03-AUG-10
10721 03-AUG-10 03-AUG-10
10722 03-AUG-10 03-AUG-10
10723 03-AUG-10 03-AUG-10
10724 03-AUG-10 03-AUG-10
10725 03-AUG-10 03-AUG-10
SEQUENCE# FIRST_TIM NEXT_TIME
10726 03-AUG-10 03-AUG-10
10727 03-AUG-10 03-AUG-10
10728 03-AUG-10 03-AUG-10
10729 03-AUG-10 03-AUG-10
I then did alter system switch logfile on primary database
Then on standby I fired the above query
SELECT SEQUENCE#, FIRST_TIME, NEXT_TIME FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#
SEQUENCE# FIRST_TIM NEXT_TIME
10715 02-AUG-10 02-AUG-10
10716 02-AUG-10 02-AUG-10
10717 02-AUG-10 03-AUG-10
10718 03-AUG-10 03-AUG-10
10719 03-AUG-10 03-AUG-10
10720 03-AUG-10 03-AUG-10
10721 03-AUG-10 03-AUG-10
10722 03-AUG-10 03-AUG-10
10723 03-AUG-10 03-AUG-10
10724 03-AUG-10 03-AUG-10
10725 03-AUG-10 03-AUG-10
SEQUENCE# FIRST_TIM NEXT_TIME
10726 03-AUG-10 03-AUG-10
10727 03-AUG-10 03-AUG-10
10728 03-AUG-10 03-AUG-10
10729 03-AUG-10 03-AUG-10
*10730 03-AUG-10 03-AUG-10*
My question is everytime I do alter systyem switch logfile on primary , two trace files are generated on primary database which are:
stutest_lns1_5764.trc
Dump file c:\oracle\admin\stutest\bdump\stutest_lns1_5764.trc
Tue Aug 03 15:50:35 2010
ORACLE V10.2.0.4.0 - 64bit Production vsnsta=0
vsnsql=14 vsnxtr=3
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Windows Server 2003 Version V5.2 Service Pack 2
CPU : 8 - type 8664, 2 Physical Cores
Process Affinity : 0x0000000000000000
Memory (Avail/Total): Ph:8414M/16378M, Ph+PgF:10750M/17814M
Instance name: stutest
Redo thread mounted by this instance: 1
Oracle process number: 43
Windows thread id: 5764, image: ORACLE.EXE (LNS1)
*** SERVICE NAME:(SYS$BACKGROUND) 2010-08-03 15:50:35.996
*** SESSION ID:(213.29604) 2010-08-03 15:50:35.996
*** 2010-08-03 15:50:35.996 60512 kcrr.c
LNS1: initializing for LGWR communication
LNS1: connecting to KSR channel
Success
LNS1: subscribing to KSR channel
Success
*** 2010-08-03 15:50:35.996 60565 kcrr.c
LNS1: initialized successfully ASYNC=1
Destination is specified with ASYNC=61440
Redo shipping client performing standby login
*** 2010-08-03 15:50:36.043 68145 kcrr.c
Logged on to standby successfully
Client logon and security negotiation successful!
Archiving to destination STUSTDBY ASYNC blocks=20480
Allocate ASYNC blocks: Previous blocks=0 New blocks=20480
Log file opened [logno 2]
*** 2010-08-03 16:00:58.344
Archiving to destination STUSTDBY ASYNC blocks=20480
Log file opened [logno 1]
*** 2010-08-03 16:04:44.383
Archiving to destination STUSTDBY ASYNC blocks=20480
Log file opened [logno 3]
*** 2010-08-03 16:07:36.794
Archiving to destination STUSTDBY ASYNC blocks=20480
Log file opened [logno 2]
stutest_lgwr_4092.trc
Dump file c:\oracle\admin\stutest\bdump\stutest_lgwr_4092.trc
Fri Jul 30 17:01:59 2010
ORACLE V10.2.0.4.0 - 64bit Production vsnsta=0
vsnsql=14 vsnxtr=3
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Windows Server 2003 Version V5.2 Service Pack 2
CPU : 8 - type 8664, 2 Physical Cores
Process Affinity : 0x0000000000000000
Memory (Avail/Total): Ph:13601M/16378M, Ph+PgF:10927M/17814M
Instance name: stutest
Redo thread mounted by this instance: 1
Oracle process number: 6
Windows thread id: 4092, image: ORACLE.EXE (LGWR)
*** 2010-07-30 17:01:59.622
*** SERVICE NAME:() 2010-07-30 17:01:59.606
*** SESSION ID:(221.1) 2010-07-30 17:01:59.606
Maximum redo generation record size = 156160 bytes
Maximum redo generation change vector size = 150676 bytes
*** 2010-07-30 22:01:00.446
Warning: log write time 770ms, size 2KB
*** 2010-07-30 22:08:37.586
Warning: log write time 1120ms, size 9KB
*** 2010-07-30 22:08:41.258
Warning: log write time 680ms, size 7KB
*** 2010-07-30 22:09:58.244
Warning: log write time 660ms, size 1KB
*** 2010-07-30 22:11:21.388
Warning: log write time 860ms, size 6KB
*** 2010-07-30 23:42:11.203
Warning: log write time 580ms, size 1KB
*** 2010-07-31 00:04:13.917
Warning: log write time 980ms, size 8KB
*** 2010-07-31 00:06:40.422
Warning: log write time 930ms, size 22KB
*** 2010-07-31 00:08:11.940
Warning: log write time 1800ms, size 23KB
*** 2010-07-31 21:13:33.694
Warning: log write time 1460ms, size 40KB
*** 2010-07-31 21:13:39.522
Warning: log write time 2790ms, size 87KB
*** 2010-07-31 21:13:46.054
Warning: log write time 4940ms, size 69KB
*** 2010-07-31 21:13:50.038
Warning: log write time 3980ms, size 81KB
*** 2010-07-31 21:13:55.616
Warning: log write time 5580ms, size 61KB
*** 2010-07-31 21:14:01.726
Warning: log write time 6110ms, size 77KB
*** 2010-07-31 21:14:08.258
Warning: log write time 3530ms, size 140KB
*** 2010-07-31 21:14:19.508
Warning: log write time 1500ms, size 3KB
*** 2010-07-31 22:07:49.954
Warning: log write time 930ms, size 1KB
*** 2010-07-31 23:16:01.054
Warning: log write time 1080ms, size 103KB
*** 2010-07-31 23:17:52.854
Warning: log write time 1360ms, size 3KB
*** 2010-07-31 23:23:26.631
Warning: log write time 710ms, size 2KB
*** 2010-08-01 00:04:58.476
Warning: log write time 690ms, size 13KB
*** 2010-08-01 00:06:51.980
Warning: log write time 590ms, size 20KB
*** 2010-08-01 00:07:38.153
Warning: log write time 1540ms, size 28KB
*** 2010-08-01 00:08:02.748
Warning: log write time 770ms, size 64KB
*** 2010-08-01 00:11:04.628
Warning: log write time 1140ms, size 43KB
*** 2010-08-01 17:05:49.886
Warning: log write time 780ms, size 3KB
*** 2010-08-01 21:00:46.571
Warning: log write time 910ms, size 365KB
*** 2010-08-01 21:09:22.447
Warning: log write time 2910ms, size 22KB
*** 2010-08-01 21:09:27.932
Warning: log write time 4430ms, size 62KB
*** 2010-08-01 21:09:34.010
Warning: log write time 6060ms, size 74KB
*** 2010-08-01 21:09:40.088
Warning: log write time 3080ms, size 150KB
*** 2010-08-01 21:09:45.495
Warning: log write time 2410ms, size 99KB
*** 2010-08-01 21:09:50.370
Warning: log write time 4870ms, size 40KB
*** 2010-08-01 21:09:55.401
Warning: log write time 5030ms, size 82KB
*** 2010-08-01 21:09:59.151
Warning: log write time 3610ms, size 65KB
*** 2010-08-01 23:05:40.560
Warning: log write time 720ms, size 4KB
*** 2010-08-01 23:06:05.030
Warning: log write time 1670ms, size 21KB
*** 2010-08-01 23:17:55.537
Warning: log write time 1540ms, size 116KB
*** 2010-08-01 23:23:35.891
Warning: log write time 600ms, size 1KB
*** 2010-08-02 00:05:52.363
Warning: log write time 1340ms, size 48KB
*** 2010-08-02 00:06:43.427
Warning: log write time 1060ms, size 24KB
*** 2010-08-02 00:06:50.177
Warning: log write time 1730ms, size 209KB
*** 2010-08-02 00:07:08.256
Warning: log write time 950ms, size 17KB
*** 2010-08-02 00:11:25.436
Warning: log write time 1690ms, size 8KB
*** 2010-08-02 00:12:11.313
Warning: log write time 850ms, size 45KB
*** 2010-08-02 00:13:55.754
Warning: log write time 560ms, size 3KB
*** 2010-08-02 11:27:52.686
Warning: log write time 1440ms, size 46KB
*** 2010-08-02 11:27:58.780
Warning: log write time 3790ms, size 54KB
*** 2010-08-02 11:28:02.546
Warning: log write time 3760ms, size 70KB
*** 2010-08-02 11:28:08.483
Warning: log write time 5940ms, size 74KB
*** 2010-08-02 11:28:13.812
Warning: log write time 2330ms, size 139KB
*** 2010-08-02 11:28:18.796
Warning: log write time 1980ms, size 79KB
*** 2010-08-02 11:28:25.093
Warning: log write time 3360ms, size 88KB
*** 2010-08-02 11:28:29.421
Warning: log write time 4330ms, size 38KB
*** 2010-08-02 16:10:45.927
Warning: log write time 590ms, size 3KB
*** 2010-08-02 22:08:57.806
Warning: log write time 700ms, size 37KB
*** 2010-08-02 23:07:22.262
Warning: log write time 1750ms, size 234KB
*** 2010-08-02 23:13:44.993
Warning: log write time 1410ms, size 17KB
*** 2010-08-03 00:04:08.387
Warning: log write time 670ms, size 6KB
*** 2010-08-03 00:07:44.347
Warning: log write time 1890ms, size 1024KB
*** 2010-08-03 00:08:14.395
Warning: log write time 1680ms, size 1024KB
*** 2010-08-03 00:08:26.817
Warning: log write time 570ms, size 36KB
*** 2010-08-03 00:08:39.427
Warning: log write time 1540ms, size 1024KB
*** 2010-08-03 00:08:50.818
Warning: log write time 1810ms, size 1025KB
*** 2010-08-03 00:08:58.990
Warning: log write time 1640ms, size 942KB
*** 2010-08-03 00:09:21.303
Warning: log write time 1580ms, size 1024KB
*** 2010-08-03 00:09:33.710
Warning: log write time 1790ms, size 1025KB
*** 2010-08-03 00:09:42.382
Warning: log write time 1860ms, size 1024KB
*** 2010-08-03 00:09:50.945
Warning: log write time 1590ms, size 1024KB
*** 2010-08-03 10:28:34.753
Warning: log write time 2330ms, size 47KB
*** 2010-08-03 10:29:44.440
Warning: log write time 810ms, size 1KB
*** 2010-08-03 10:32:27.392
Warning: log write time 890ms, size 1KB
*** 2010-08-03 10:36:02.536
Warning: log write time 2070ms, size 8KB
*** 2010-08-03 10:44:34.174
Warning: log write time 740ms, size 7KB
*** 2010-08-03 12:04:46.687
Warning: log write time 2850ms, size 86KB
*** 2010-08-03 12:04:52.656
Warning: log write time 2970ms, size 85KB
*** 2010-08-03 12:04:54.547
Warning: log write time 1810ms, size 45KB
*** 2010-08-03 14:06:20.827
Warning: log write time 500ms, size 0KB
*** 2010-08-03 14:13:46.404
Warning: log write time 820ms, size 0KB
*** 2010-08-03 15:50:32.996
*** 2010-08-03 15:50:32.996 57052 kcrr.c
Initializing NetServer[LNS1] for dest=STUSTDBY mode ASYNC
Initializing PGA storage for Netserver communication
LNSb is not running anymore.
Check if new Async LNS1 needs to be started..
.. yes it needs to be started
Starting LNS1 ...
Subscribing to KSR Channel [id=1]
success!
Indicating recv buffer for KSR Channel [id=1]
success
Waiting for LNS1 to initialize itself
*** 2010-08-03 15:50:36.012 57343 kcrr.c
Netserver LNS1 [pid 5764] for mode ASYNC has been initialized
Performing a channel reset to ignore previous responses
Connecting as publisher to KSR Channel [id=1]
Successfully started LNS1 [pid 5764] for dest STUSTDBY mode ASYNC ocis=0x00000000144AE5B0
*** 2010-08-03 15:50:36.012 57846 kcrr.c
Making upiahm request to LNS1 [pid 5764]: Begin Time is <08/03/2010 15:50:32>. NET_TIMEOUT = <10> seconds
*** 2010-08-03 16:00:58.266
*** 2010-08-03 16:00:58.266 57052 kcrr.c
Initializing NetServer[LNS1] for dest=STUSTDBY mode ASYNC
LNSb is not running anymore.
Check if new Async LNS1 needs to be started..
Previous Async LNS1 [pid 5764] is running .. no need to start another one
LGWR detected that Async LNS1 [pid 5764] is already running
*** 2010-08-03 16:04:44.289
*** 2010-08-03 16:04:44.289 57052 kcrr.c
Initializing NetServer[LNS1] for dest=STUSTDBY mode ASYNC
LNSb is not running anymore.
Check if new Async LNS1 needs to be started..
Previous Async LNS1 [pid 5764] is running .. no need to start another one
LGWR detected that Async LNS1 [pid 5764] is already running
*** 2010-08-03 16:07:36.747
*** 2010-08-03 16:07:36.747 57052 kcrr.c
Initializing NetServer[LNS1] for dest=STUSTDBY mode ASYNC
LNSb is not running anymore.
Check if new Async LNS1 needs to be started..
Previous Async LNS1 [pid 5764] is running .. no need to start another one
LGWR detected that Async LNS1 [pid 5764] is already running
*** 2010-08-03 16:13:06.633
Warning: log write time 570ms, size 0KB
Did I miss something while creating standby.???
Thanks for the helpare these databases on same server.
BTW These are not errors, they are warning ... I have also seen these kind of warning many times. they can be ignored if ur shipping and recovery on standby is Preperly happening.
Regards
jasbir -
Creating standby or logical standby database manually?
Hi,
I have to create 4 logical standby databases on a Linux Red Hat 64-bits server.
The primary databases reside on another Linux Red Hat 64-bits server.
The oracle database version is 10.2.0.3.
The question is as follows:
Should I create the logical standby databases manually or should I do it with the Oracle EM Grid Control?
I have read that the creation of standby databases with the Grid Control is very straightforward, but I really want to read of some of your experiences.
I have read that there are some problems in Grid Control with the test of Failover and Switchover.
Please advice.Hi,
It all depends.
I assume you don't backup your database to tape using RMAN.
Do you backup your database to disk using RMAN?
You would need to set up NFS links from your standby server to the primary server.
For this purpose, in 9i, I made sure my disk backup ended up in <directory>/backup/<nodename>, so I could easily set up a NFS link.
If you do it manually, you need to have made a full database RMAN backup first.
Probably Grid Control is taking care of this for you.
I have done it once using database control in 10g. It is really simple, and you just have to click a few buttons and sit back.
Doing it manually is slightly more work: you need to make sure parameters are correct and you need to write a (generic) script of less than 10 lines.
You probably do have more control over it, though RMAN's duplicate database command is robust and can be restarted easily.
I can't answer your last remark.
Hth
Sybrand Bakker
Senior Oracle DBA
Maybe you are looking for
-
Unable to Connect Using New AirPort Express 802.11n
My mom purchased an AirPort Express 802.11n wireless router (AX) and I, as the designated "technology guru", was tasked with setting it up. Unfortunately, I am having problems out of the box. When I connect it to the wall, it is found by AirPort Util
-
This is written for the Playbook blog writer in the hope that he will see it here and post a blog answer. However, a reply from anyone would be appreciated. Thanks. [2 questions about PPBB OS 2.0+] Hi. Thanks for your very informative blog. I would a
-
FIOS TV/internet/phone installed yesterday and I already have a problem with TV displays. Two HD sets display all HD channels smaller than screen size - black bars on all four sides. Aspect ratio is displayed correctly. STB is CHS 335HDC. The STB i
-
File permission​s issues
Hi Guys, So I've noticed that at times on the flash and the SD cards, file permissions are getting changed somehow (inappropriately, i believe). Example, I download an MP3 file from the net. file has read/write permissions. a few days later the fil
-
Application that receives algorithms as input
I'm developing a trading platform for a cryptocurrency. I'm building several algorithms, based on personal experience, college eduction or reading in books and on the Internet. I can test these algorithms on real money, with a real account. But there