Standby Database not working
Hi I have created one standby DB for Oracle 10.1.0.2.0 on same server for the primary Db.As per Oracle docs I have configured everything but when I do logswitch on primary DB and then check the standby DB as...
SELECT SEQUENCE#, FIRST_TIME, NEXT_TIME
FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#;
it shows no records, that means it is not working.
I have created standby redolog file in the primary DB , as I am using LGWR ASYN mode of redo transform but when I do..
SQL> SELECT GROUP#,THREAD#,SEQUENCE#,ARCHIVED,STATUS FROM V$STANDBY_LOG;
GROUP# THREAD# SEQUENCE# ARC STATUS
4 2 0 YES UNASSIGNED
it show the status unaccessed.
please help me to sort out this problem....
Regards
Hi
Thanks to all. Yes I checked the alert logs for both DB, there was some problems due to DB_FILE_NAME_CONVERT ini parameter setting. after I fixed that, I am getting this error in lgwr.trc file
Dump file c:\oracle\product\10.1.0\admin\orcl\bdump\orcl_lgwr_1368.trc
Tue Mar 11 15:39:17 2008
ORACLE V10.1.0.2.0 - Production vsnsta=0
vsnsql=13 vsnxtr=3
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
Windows XP Version V5.1 Service Pack 2
CPU : 1 - type 586
Process Affinity: 0x00000000
Memory (A/P) : PH:14M/255M, PG:123M/909M, VA:1749M/2047M
Instance name: orcl
Redo thread mounted by this instance: 1
Oracle process number: 5
Windows thread id: 1368, image: ORACLE.EXE (LGWR)
*** SERVICE NAME:() 2008-03-11 15:39:17.008
*** SESSION ID:(167.1) 2008-03-11 15:39:17.008
LGWR: Archivelog for thread 1 sequence 42 will NOT be compressed
*** 2008-03-11 15:39:17.227 47100 kcrr.c
Making upidhs request to NetServer -1 (ocis 0x05FCE6E0)
ERROR: kcrrnsupidhs nsidx=-1
*** 2008-03-11 15:39:17.258 45203 kcrr.c
Initializing NetServer for dest=stby
Initializing PGA storage for Netserver communication
Allocating a brand new NetServer
Allocated NetServer 0
NetServer 0 has been started.
Subscribing to KSR Channel 0
success!
Indicating recv buffer for KSR Channel 0
success
Waiting for Netserver 0 to initialize itself
*** 2008-03-11 15:39:20.415 45488 kcrr.c
Netserver 0 has been initialized
LGWR performing a channel reset to ignore previous responses
LGWR connecting as publisher to KSR Channel 0
LGWR-NS 0 initialized for destination=stby
*** 2008-03-11 15:39:20.415 45982 kcrr.c
Making upiahm request to NetServer 0
Waiting for NetServer 0 to respond to upiahm
*** 2008-03-11 15:39:24.274 47100 kcrr.c
Making upidhs request to NetServer 0 (ocis 0x05FCE6E0)
NetServer pid:2916
*** 2008-03-11 15:39:24.274 47331 kcrr.c
upidhs done status 1031
*** 2008-03-11 15:39:24.274 46176 kcrr.c
upiahm connect done status is 1031
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'stby'
*** 2008-03-11 15:39:24.274 47100 kcrr.c
Making upidhs request to NetServer -1 (ocis 0x05FCE6E0)
ERROR: kcrrnsupidhs nsidx=-1
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'stby'
ORA-01031: insufficient privileges
*** 2008-03-11 15:39:24.336 52124 kcrr.c
LGWR: Error 1031 creating archivelog file 'stby'
*** 2008-03-11 15:39:24.383 50571 kcrr.c
kcrrfail: dest:2 err:1031 force:0 blast:1
*** 2008-03-11 15:39:37.680
Old character set id was US7ASCII
*** 2008-03-11 15:39:38.055
New character set id is WE8MSWIN1252
now how to give privilege to the service 'stby'.
please give me some guidance.
regards
Similar Messages
-
Standby database not working after reinstallation of oracle in primary DB
Hello All,
Initially I had setup primary database (DB1) and Standby database (DB2), for test environment.
In DB1 I had got ORA-600 error. So, after I researched, I came to know that I need to apply some patches. But I reinstalled oracle in DB1. And the problem was solved in DB1.
After that, I issued the following commands in DB2, but I got error
SQL>SHUTDOWN IMMEDIATE;
ORA-01034: Oracle not available
ORA-27101: shared memory realm does not exist
SQL>STARTUP MOUNT;
ORA-27102: out of memoryNow, I mean to say, both DB1 and DB2 are independent.
Also, DB2 is not active since 2 months
DB1 is working fine.
Please guide me with procedure, how to configure DB2 for the current DB1Hello;
After two months I would rebuild.
If you are on Oracle 11 you can use RMAN to do this quickly.
Here's a few short notes :
http://www.visi.com/~mseberg/duprman2.html
http://www.visi.com/~mseberg/standby_creation_from_active_database_using_rman.html
Can you post your full oracle version and Primary database size?
If you rebuild I would remove all the data files from the Standby, recopy the password file from the Primary to the Standby and double my tnsnames.ora and listener.ora on both servers.
Best Regards
mseberg -
Standby Database not syncronized with primary.
DB: 10.2.0.4.0
OS RedHat Linux
My standby Database not syncronized with primary, because of space issue mrp process was stopped.
During that we added 4 datafile in primary database in that case how we can sync standby database?
There are no unamed files on standby database.
SQL> select name from v$datafile where name like '%UNNAME%';
no rows selectedPrath wrote:
When i trying to recover database getting below error:
Starting recover at 11-DEC-10
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 12/11/2010 12:00:23
RMAN-06094: datafile 73 must be restored
Note: Datafile 73 not available on standby database.Execute select name from v$datafile statement from standby and post there.
(Of course you can rebuild standby database again ,create standby controlfile and copy all datafiles) -
Standby PRI not working with voice Gateway Router & CUCM
Hi ALL ,
GOOD Day all of you .
I am facing a big problem i.e standby PRI not working with VG & CUCM , I have checked all the configuration parameter on VG & CUCM found ok but I am unable to make any call from standby link also incoming not come on the standby link . When I make a call on my Pilot no but getting busy tone .
I observer the some errors on VG like Cause i = 0x8286 - Channel unacceptable on my second PRI channel .
Please help me to reslove this proem .
Following are the PRI configuration Parameter on CUCM .
Product Specific Configuration Layout
Line Coding : HDB3
Framing : NON CRC4
Clock : External
Input Gain (-6..14 db) 0
Output Attenuation (-6..14 db) 0
Echo Cancellation Enable
Echo Cancellation Coverage (ms) 64
PRI configuration on VG
interface Serial0/0/1:15
encapsulation hdlc
isdn switch-type primary-net5
isdn incoming-voice voice
isdn bind-l3 ccm-manager
BR,
SANDIPANHi Craig ,
Thanks for your reply .
We are using the full 30 channel E1 PRI .
following are PRI Channel Statistics:
%Q.931 is backhauled to CCM MANAGER 0x0003 on DSL 1. Layer 3 output may not apply
ISDN Se0/0/0:15, Channel [1-31]
Configured Isdn Interface (dsl) 1
Channel State (0=Idle 1=Proposed 2=Busy 3=Reserved 4=Restart 5=Maint_Pend)
Channel : 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
State : 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Service State (0=Inservice 1=Maint 2=Outofservice 8=MaintPend 9=OOSPend)
Channel : 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
State : 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Please find following debug error
VG_RO_01#isdn test call interface serial 0/0/0:15 09665484798
Mar 7 03:00:54.570: ISDN Se0/0/0:15 Q921: User RX <- RRp sapi=0 tei=0 nr=5
Mar 7 03:00:54.570: ISDN Se0/0/0:15 Q921: User TX -> RRp sapi=0 tei=0 nr=4
Mar 7 03:00:54.570: ISDN Se0/0/0:15 Q921: User TX -> RRf sapi=0 tei=0 nr=4
Mar 7 03:00:54.574: ISDN Se0/0/0:15 Q921: User RX <- RRf sapi=0 tei=0 nr=5
CCIL_PUNE_DR_VG_RO_01#
Mar 7 03:00:55.994: ISDN Se0/0/0:15 Q931: Applying typeplan for sw-type 0x12 is 0x0 0x1, Called num 09665484798
Mar 7 03:00:55.994: ISDN Se0/0/0:15 Q921: User TX -> INFO sapi=0 tei=0, ns=5 nr=4
Mar 7 03:00:55.994: ISDN Se0/0/0:15 Q931: SETUP pd = 8 callref = 0x0084
Bearer Capability i = 0x8890
Standard = CCITT
Transfer Capability = Unrestricted Digital
Transfer Mode = Circuit
Transfer Rate = 64 kbit/s
Channel ID i = 0xA9839F
Exclusive, Channel 31
Called Party Number i = 0x81, '09665484798'
Plan:ISDN, Type:Unknown
Mar 7 03:00:56.006: ISDN Se0/0/0:15 Q921: User RX <- RR sapi=0 tei=0 nr=6
Mar 7 03:00:56.018: ISDN Se0/0/0:15 Q921: User RX <- INFO sapi=0 tei=0, ns=4 nr=6
Mar 7 03:00:56.018: ISDN Se0/0/0:15 Q931: RELEASE_COMP pd = 8 callref = 0x8084
Cause i = 0x8286 - Channel unacceptable
Mar 7 03:00:56.022: ISDN Se0/0/0:15 Q921: User TX -> RR sapi=0 tei=0 nr=5
Mar 7 03:00:59.995: ISDN Se0/0/0:15 Q921: User TX -> INFO sapi=0 tei=0, ns=6 nr=5
Mar 7 03:00:59.995: ISDN Se0/0/0:15 Q931: SETUP pd = 8 callref = 0x0084
Bearer Capability i = 0x8890
Standard = CCITT
Transfer Capability = Unrestricted Digital
Transfer Mode = Circuit
Transfer Rate = 64 kbit/s
Channel ID i = 0xA9839F
Exclusive, Channel 31
Called Party Number i = 0x81, '09665484798'
Plan:ISDN, Type:Unknown
Mar 7 03:01:00.007: ISDN Se0/0/0:15 Q921: User RX <- RR sapi=0 tei=0 nr=7
Mar 7 03:01:00.019: ISDN Se0/0/0:15 Q921: User RX <- INFO sapi=0 tei=0, ns=5 nr=7
Mar 7 03:01:00.019: ISDN Se0/0/0:15 Q931: RELEASE_COMP pd = 8 callref = 0x8084
Cause i = 0x8286 - Channel unacceptable
Mar 7 03:01:00.019: ISDN Se0/0/0:15 Q921: User TX -> RR sapi=0 tei=0 nr=6
Mar 7 03:01:03.995: ISDN Se0/0/0:15 Q921: User TX -> INFO sapi=0 tei=0, ns=7 nr=6
Mar 7 03:01:03.995: ISDN Se0/0/0:15 Q931: RELEASE_COMP pd = 8 callref = 0x0084
Cause i = 0x80E6 - Recovery on timer expiry
Mar 7 03:01:03.995: ISDN Se0/0/0:15 **ERROR**: CCPCC_CallOrigination: SETUP timed-out (2nd T303) to NETWORK. The SETUP failed.
BR ,
SANDIPAN -
Hello,
I am having a 10g release 1 database on my HP UX server.
The problem with this database is it's listener is working emagent is working fine.
But I am trying to login with system password then it shows me error like
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
HP-UX Error: 2: No such file or directoryModerator Comment:
The O.P. had already asked this question in the Solaris 10 forum.
Database not working
I had already moved it to the Database forum.
Then after the comments in this thread, they've re-posted it yet again into the Database forum.
Not able to connect / as sysdba
and spammed it to the Oracle Linux forum:
Not able to connect / as sysdba
Handle: user8856758
Status Level: Newbie
Registered: Jun 22, 2011
Total Posts: 6
Total Questions: 4 (3 unresolved)@ user8856758 ,
You've been here long enough to know better, so we can only assume you are just being inconsiderate or rude with all your crossposts.
They're all locked. -
5.0 database not working in lookout 6.6
5.0 database not working in lookout 6.0. I converted the database using the lks file and then saved it. that all worked fine but my modbus stats are in 100% error connected with direct serial! any known fixes? help please!
Is this MODBUS or the database?
To use the 5.0 Databaes you need to use the NI MAX utility to convert a citadel 4 to Citadel 5 database.
Forshock - Consult.Develop.Solve. -
Logical Standby Database Not Getting Sync With Primary Database
Hi All,
I am using a Primary DB and Logical Standby DB configuration in Oracle 10g:-
Version Name:-
SQL> select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
PL/SQL Release 10.2.0.5.0 - Production
CORE 10.2.0.5.0 Production
TNS for Solaris: Version 10.2.0.5.0 - Production
NLSRTL Version 10.2.0.5.0 - Production
We have build the logical standby last week and till date the Logical DB is not sync. I have checked the init parameters and I wont see any problems with it. Also archive log destinations are also fine enough.
We have a important table named "HPD_HELPDESK" where record count is growing gradually whereas in logical standby it's not growing. There are some 19K record difference in the both the tables.
I have checked the alert log but it is also not giving any error message. Please find the last few lines of the alert log in logical Database:-
RFS LogMiner: Registered logfile [oradata_san1/oradata/remedy/arch/ars1_1703_790996778.arc] to LogMiner session id [1]
Tue Aug 28 14:56:52 GMT 2012
RFS[2853]: Successfully opened standby log 5: '/oracle_data/oradata/remedy/stbyredo01.log'
Tue Aug 28 14:56:58 GMT 2012
RFS LogMiner: Client enabled and ready for notification
Tue Aug 28 14:57:00 GMT 2012
RFS LogMiner: Registered logfile [oradata_san1/oradata/remedy/arch/ars1_1704_790996778.arc] to LogMiner session id [1]
Tue Aug 28 15:06:40 GMT 2012
RFS[2854]: Successfully opened standby log 5: '/oracle_data/oradata/remedy/stbyredo01.log'
Tue Aug 28 15:06:47 GMT 2012
RFS LogMiner: Client enabled and ready for notification
Tue Aug 28 15:06:49 GMT 2012
RFS LogMiner: Registered logfile [oradata_san1/oradata/remedy/arch/ars1_1705_790996778.arc] to LogMiner session id [1]
I am not able to trace the issue that why the records are not growing in logical DB. Please provide your inputs.
Regards,
ArijitHow do you know that there's such a gap between the tables?
If your standby db is a physical standby, then it is not open and you can't query your table without cancelling the recovery of the managed standby database.
What does it say if you execute this sql?
SELECT PROCESS, STATUS, THREAD#, SEQUENCE#, BLOCK#, BLOCKS FROM V$MANAGED_STANDBY;The ARCH processes should be connected and MRP waiting for a file.
If you query for the archive_gaps, do you get any hits?
select * from gv$archive_gapIf you're not working in a RAC environment you need to query v$archive_gap, instead!
Did you check whether the archives generated from the primary instance are transferred and present in the file system of your standby database?
I believe your standby is not in recovery_mode anymore or has an archive_gap, which is the reason why it doesn't catch up anymore.
Hope it helps a little,
Regards,
Sebastian
PS: I'm working on 11g, so unfortunately I'm not quite sure if the views are exist in 10gR2. It's worth a try though!
Edited by: skahlert on 31.08.2012 13:46 -
Hi,
I'm not sure if anyone is using the logical standby database because it appears to me to be complete rubbish. The apply of redo data just does not appear to work. for example I have this table:
create table test29(
BP_ID NUMBER(10) NOT NULL,
BP_K_ID NUMBER(10) NOT NULL,
BP_TYP CHAR(2) NOT NULL,
BP_U_ID NUMBER(10),
BP_ACTIVE DATE NOT NULL,
BP_USED NUMBER(6) NOT NULL,
BP_STATUS CHAR(1) NOT NULL,
BP_LASTUPDATE DATE NOT NULL
and insert this data:
insert into test29
select 10643,291904,'O ',1,TO_DATE('01/05/2003 00:44:18', 'MM/DD/YYYY HH24:MI:SS'),0,'A',TO_DATE('01/06/2004 20:13:08', 'MM/DD/YYYY HH24:MI:SS') from dual
When this information is transfered to the logical standby and it attempts to read it i get a ORA-26689: column datatype mismatch in LCR. But wait! If I change the name of column 6 (BP_PUNKTE) to say (BP_AAAAA) and try again it works!!! The logical standby fails on many tables just because of the name (updates, inserts anything)...did anyone at oracle test this? Is anyone using the logical standby have any ideas how and if I could ever get this working.
Using Oracle 9.2.0.4. on Redhat 2.1.
Thanks!
Steve.unfortunately not. the oracle licence was purchased before i arrived and when I attempted to get a support contact they want the money since we purchased the licence 3 years ago. 3 years of cash for free! why should I pay for their bugs anyway, when we buy this expensive software it should work. when I buy a new car from ford and radio does not work I don't have to pay ford to fix it. rip-off!
-
Logical Stanbdy database not working
Dear Friends,
I configured a logical standby database in oracle 11g. First i configured the physical standby. Its working fine. Data transfered. Then i convert to logical standby. The commands are working correctly. SCN also changed in logical standby. Archives from primary to standby moving correctly. But its not applying.
Please help me to solve this issue.
STANDBY DATABASE
SQL> select type,high_scn,status from v$logstdby;
TYPE HIGH_SCN STATUS
COORDINATOR 1250354 ORA-16116: no work available
ANALYZER 1250258 ORA-16116: no work available
APPLIER 1250258 ORA-16116: no work available
APPLIER 1248628 ORA-16116: no work available
APPLIER 1250251 ORA-16116: no work available
APPLIER ORA-16116: no work available
APPLIER ORA-16116: no work available
READER 1250354 ORA-16116: no work available
BUILDER 1250292 ORA-16116: no work available
PREPARER 1250291 ORA-16116: no work available
10 rows selected.
SQL> select name,value from v$logstdby_stats where name = 'coordinator state';
NAME VALUE
coordinator state IDLE
SQL> select applied_scn,latest_scn from v$logstdby_progress;
APPLIED_SCN LATEST_SCN
1250393 1250396
standby alertlog
Primary database is in MAXIMUM PERFORMANCE mode
kcrrvslf: inactive RFS archival for log 4 thread 1 sequence 96
kcrrvslf: inactive RFS archival for log 5 thread 1 sequence 97
kcrrvslf: inactive RFS archival for log 7 thread 1 sequence 93
kcrrvslf: inactive RFS archival for log 8 thread 1 sequence 94
RFS[3]: Successfully opened standby log 6: 'D:\APP\THI\ORADATA\LOGDB\STDREDO3.LOG'
Sun Sep 11 18:45:32 2011
LOGMINER: End mining logfile for session 1 thread 1 sequence 97, D:\APP\THI\ORADATA\LOGDB\STDREDO2.LOG
LOGMINER: Begin mining logfile for session 1 thread 1 sequence 98, D:\APP\THI\ORADATA\LOGDB\STDREDO3.LOG
LOGMINER: End mining logfile for session 1 thread 1 sequence 98, D:\APP\THI\ORADATA\LOGDB\STDREDO3.LOG
Primary database is in MAXIMUM PERFORMANCE mode
kcrrvslf: inactive RFS archival for log 4 thread 1 sequence 96
kcrrvslf: inactive RFS archival for log 5 thread 1 sequence 97
kcrrvslf: inactive RFS archival for log 6 thread 1 sequence 98
kcrrvslf: inactive RFS archival for log 7 thread 1 sequence 93
kcrrvslf: inactive RFS archival for log 8 thread 1 sequence 94
RFS[3]: No standby redo logfiles of size 102400 blocks available
Sun Sep 11 18:47:35 2011
ARCH: Archival stopped, error occurred. Will continue retrying
Errors in file c:\app\thi\diag\rdbms\logdb\logdb\trace\logdb_arc2_1044.trc:
ORA-16014: log 7 sequence# 93 not archived, no available destinations
ORA-00312: online log 7 thread 1: 'D:\APP\THI\ORADATA\LOGDB\STDREDO4.LOG'
SQL> show parameter log_archive_dest_1
NAME TYPE VALUE
log_archive_dest_1 string LOCATION=D:\APP\THI\arch\ VALID_FOR=(ONLINE_LOGFILES, ALL_ROLES) DB_UNIQUE_NAME=logdb
SQL> show parameter log_archive_dest_2
NAME TYPE VALUE
log_archive_dest_2 string service=proddb LGWR SYNC valid_for=(online_logfiles,primary_role) db_unique_name=proddb
SQL> show parameter log_archive_dest_3
NAME TYPE VALUE
log_archive_dest_3 string service=logdb LGWR SYNC valid_for=(online_logfiles,primary_role) db_unique_name=logdb
PRODUCTION
SQL> select current_scn from v$database;
CURRENT_SCN
1250406
SQL> show parameter log_archive_dest_1
NAME TYPE VALUE
log_archive_dest_1 string LOCATION=c:\app\arch\ VALID_FOR=(ALL_LOGFILES, ALL_ROLES) DB_UNIQUE_NAME=proddb
SQL> show parameter log_archive_dest_3
NAME TYPE VALUE
log_archive_dest_3 string service=logdb LGWR SYNC valid_for=(online_logfiles,primary_role) db_unique_name=logdb
If any doubt, please tell me.
Please help me.I happy to help but you can help too ( Total Questions: 11 (11 unresolved)) Please consider marking some of your old questions answered.
You have a valid_for attribute mismatch issue :
Yours :
log_archive_dest_1 string LOCATION=D:\APP\THI\arch\ VALID_FOR=(ONLINE_LOGFILES, ALL_ROLES) DB_UNIQUE_NAME=logdb
log_archive_dest_1 string LOCATION=c:\app\arch\ VALID_FOR=(ALL_LOGFILES, ALL_ROLES) DB_UNIQUE_NAME=proddbI think the ONLINE_LOGFILES should be replaced with ALL_LOGFILES.
http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/log_arch_dest_param.htm
Great details by the way.
Best Regards
mseberg
I also noticed this Oracle note :
Logical Apply stops with ora-16260 [ID 784743.1]
Edited by: mseberg on Sep 12, 2011 7:58 AM -
Add Standby Database not finding listener
in Enterprise Manager Cloud Control 12c 12.1.0.2
go to the primary database
go to Availability and choose Add Standby Database
create a new physical standby database
online backup - use rman
enter instance name and choose host (agent is on standby host machine and is working)
enter password if prompted
Enter Database Area
Enter Flash Recovery Area
both 'Use Default Grid Infrastructure Listener' and 'use destination database home listener' fail:
The default listener in the grid infrastructure is not running
my listener is in the grid infrastructure, and the enterprise manager sees it as a target that is up.
Status Up
Availability (%) 100
(Last 24 Hours)
Alias LISTENER
Version 11.2.0.3.0
Oracle Home C:\app\product\11.2.0\grid
Net Address (ADDRESS=(PROTOCOL=TCP)(HOST=server_name)(PORT=1521))
LISTENER.ORA Location C:\app\product\11.2.0\grid\network\admin
Start Time Jan 24, 2013 4:34:36 PM
Host server_name
Oracle Restart Enabledstopping the grid listener and creating a listener in the database home worked..
still currious why the grid listener didnt work.. -
Issue with physical standby database not in sync with primary
Hi,
I created an physical standby database couple of Hours back . I am trying to keep the standby database in Managed recovery mode to make the standby in sync with primary but it is throwing the below erros. Please share your suggestion ...
SQL> select thread#,max(sequence#) from v$log_history group by thread#;
THREAD# MAX(SEQUENCE#)
1 7
PROCESS STATUS THREAD# SEQUENCE#
ARCH CONNECTED 0 0
ARCH CONNECTED 0 0
RFS OPENING 1 12
ALERT LOG :
Tue Mar 20 07:31:32 2012
alter database recover managed standby database disconnect from session
Tue Mar 20 07:31:32 2012
Attempt to start background Managed Standby Recovery process (PRIMARY)
MRP0 started with pid=18, OS id=16370
Tue Mar 20 07:31:32 2012
MRP0: Background Managed Standby Recovery process started (PRIMARY)
Managed Standby Recovery not using Real Time Apply
parallel recovery started with 8 processes
Media Recovery Log /oracle/STDBY/arch/1_3_777567883.dbf
Tue Mar 20 07:31:39 2012
Completed: alter database recover managed standby database disconnect from session
Tue Mar 20 07:31:54 2012
Incomplete recovery applied all redo ever generated.
Recovery completed through change 9677325080303
Tue Mar 20 07:31:54 2012
MRP0: Media Recovery Complete (PRIMARY)
Tue Mar 20 07:31:55 2012
MRP0: Background Media Recovery process shutdown (PRIMARY)
Thanks,
RakeshHI CKPT,
Thanks for the reply. All the Archives from primary are transferred to the standby by RFS. Also i tried to register the log files manually even but it says already registered. They are no errors in the primary instance alert log file. Please find the log
SEVERITY ERROR_CODE MESSAGE TO_CHAR(TIMESTAMP,'D
Informational 0 ARC0: Archival started 20-MAR-2012 06:51:36
Informational 0 ARC1: Archival started 20-MAR-2012 06:51:36
Informational 0 ARC0: Becoming the 'no FAL' ARCH 20-MAR-2012 06:51:36
Informational 0 ARC0: Becoming the 'no SRL' ARCH 20-MAR-2012 06:51:36
Informational 0 ARC1: Becoming the heartbeat ARCH 20-MAR-2012 06:51:36
Informational 0 Redo Shipping Client Connected as PUBLIC 20-MAR-2012 06:52:07
Informational 0 -- Connected User is Valid 20-MAR-2012 06:52:07
Informational 0 RFS[1]: Assigned to RFS process 15934 20-MAR-2012 06:52:07
Informational 0 RFS[1]: Identified database type as 'physical standby' 20-MAR-2012 06:52:07
Warning 0 RFS[1]: No standby redo logfiles created 20-MAR-2012 06:52:07
Control 0 Attempt to start background Managed Standby Recovery process 20-MAR-2012 06:52:42
Control 0 MRP0: Background Managed Standby Recovery process started 20-MAR-2012 06:52:42
Informational 0 Managed Standby Recovery not using Real Time Apply 20-MAR-2012 06:52:47
Informational 0 Media Recovery Log /oracle/STDBY/arch/1_3_777567883.d 20-MAR-2012 06:52:49
bf
Control 0 MRP0: Media Recovery Complete 20-MAR-2012 06:53:04
Control 0 MRP0: Background Media Recovery process shutdown 20-MAR-2012 06:53:06
Informational 0 Managed Standby Recovery not using Real Time Apply 20-MAR-2012 06:53:24
Control 0 Media Recovery Complete 20-MAR-2012 06:53:43
Control 0 Attempt to start background Managed Standby Recovery process 20-MAR-2012 06:54:55
Control 0 MRP0: Background Managed Standby Recovery process started 20-MAR-2012 06:54:55
Informational 0 Managed Standby Recovery not using Real Time Apply 20-MAR-2012 06:55:00
Informational 0 Media Recovery Log /oracle/STDBY/arch/1_3_777567883.d 20-MAR-2012 06:55:01
bf
Control 0 MRP0: Media Recovery Complete 20-MAR-2012 06:55:17
Control 0 MRP0: Background Media Recovery process shutdown 20-MAR-2012 06:55:18
Informational 0 Redo Shipping Client Connected as PUBLIC 20-MAR-2012 07:31:03
Informational 0 -- Connected User is Valid 20-MAR-2012 07:31:03
Informational 0 RFS[2]: Assigned to RFS process 16366 20-MAR-2012 07:31:03
Informational 0 RFS[2]: Identified database type as 'physical standby' 20-MAR-2012 07:31:03
Warning 0 RFS[2]: No standby redo logfiles created 20-MAR-2012 07:31:04
Warning 0 RFS[2]: No standby redo logfiles created 20-MAR-2012 07:31:06
Control 0 Attempt to start background Managed Standby Recovery process 20-MAR-2012 07:31:32
Control 0 MRP0: Background Managed Standby Recovery process started 20-MAR-2012 07:31:32
Informational 0 Managed Standby Recovery not using Real Time Apply 20-MAR-2012 07:31:37
Informational 0 Media Recovery Log /oracle/STDBY/arch/1_3_777567883.d 20-MAR-2012 07:31:38
bf
Control 0 MRP0: Media Recovery Complete 20-MAR-2012 07:31:54
Control 0 MRP0: Background Media Recovery process shutdown 20-MAR-2012 07:31:55
36 rows selected.
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /oracle/STDBY/arch/
Oldest online log sequence 13
Next log sequence to archive 0
Current log sequence 14
SQL> ho ls -ltra /oracle/STDBY/arch/
total 3754456
drwxr-xr-x 4 oracle dba 4096 Feb 13 17:38 ..
-rw-r----- 1 oracle dba 908516864 Mar 20 06:37 1_8_777567883.dbf
-rw-r----- 1 oracle dba 770419200 Mar 20 06:40 1_3_777567883.dbf
-rw-r----- 1 oracle dba 757698048 Mar 20 06:41 1_4_777567883.dbf
-rw-r----- 1 oracle dba 5171712 Mar 20 06:41 1_5_777567883.dbf
-rw-r----- 1 oracle dba 1060801024 Mar 20 06:43 1_6_777567883.dbf
-rw-r----- 1 oracle dba 323025920 Mar 20 06:43 1_7_777567883.dbf
-rw-r----- 1 oracle dba 1558016 Mar 20 06:43 1_9_777567883.dbf
-rw-r----- 1 oracle dba 4608 Mar 20 06:43 1_10_777567883.dbf
-rw-r----- 1 oracle dba 1579008 Mar 20 06:52 1_11_777567883.dbf
-rw-r----- 1 oracle dba 11876864 Mar 20 07:31 1_12_777567883.dbf
-rw-r----- 1 oracle dba 2560 Mar 20 07:31 1_13_777567883.dbf
drwxr-xr-x 2 oracle dba 36864 Mar 20 07:31 .
SQL> -
Standby database not configure while keep database files in different place
Dear Friends ,
I have to successfully configured "PHYSICAL STANDBY DATABASE" within the TWO databases ("PRIM" and "STAN" Database) when I kept datafile, controlfile and redolog files in the same location (like, "/u01/app/oracle/oradata/prim" location .
In this successful configuration , I have to add the below two lines into the initprim.ora and initstan.ora both server respectively ...
initprim.ora:
========
DB_FILE_NAME_CONVERT='/u01/app/oracle/oradata/stan','/u01/app/oracle/oradata/prim'
LOG_FILE_NAME_CONVERT='/u01/app/oracle/flash_recovery_area/stan','/u01/app/oracle/flash_recovery_area/prim'
initstan.ora:
========
DB_FILE_NAME_CONVERT='/u01/app/oracle/oradata/prim','/u01/app/oracle/oradata/stan'
LOG_FILE_NAME_CONVERT='/u01/app/oracle/flash_recovery_area/prim','/u01/app/oracle/flash_recovery_area/stan'Now , in second scenario , I have to change Primary database server's datafile, controlfile and redolog file in the below folder :
controlfile --> "/u01/app/oracle/oradata/prim/ctrlfile"
redologfile --> "/u01/app/oracle/oradata/prim/redofile"
datafile --> "/u01/app/oracle/oradata/prim/datafile"
Similarly I have to create same folder in my STAN database server accordingly . and also add the above lines in same way :
initprim.ora:
========
DB_FILE_NAME_CONVERT='/u01/app/oracle/oradata/stan','/u01/app/oracle/oradata/prim'
LOG_FILE_NAME_CONVERT='/u01/app/oracle/flash_recovery_area/stan','/u01/app/oracle/flash_recovery_area/prim'
initstan.ora:
========
DB_FILE_NAME_CONVERT='/u01/app/oracle/oradata/prim','/u01/app/oracle/oradata/stan'
LOG_FILE_NAME_CONVERT='/u01/app/oracle/flash_recovery_area/prim','/u01/app/oracle/flash_recovery_area/stan'Keeping the above situation when I run the below command in STAN database server :
[oracle@test ~]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Nov 15 23:15:43 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> conn / as sysdba
Connected to an idle instance.
SQL> startup mount
ORACLE instance started.
Total System Global Area 599785472 bytes
Fixed Size 1220772 bytes
Variable Size 163581788 bytes
Database Buffers 427819008 bytes
Redo Buffers 7163904 bytes
Database mounted.
SQL> alter database recover managed standby database disconnect from session;
Database altered.
The Command execute successfully but in the alert log of the STAN database server ,I get the below error :
Completed: alter database recover managed standby database disconnect from session
Mon Nov 15 22:46:52 2010
Clearing online redo logfile 1 complete
Mon Nov 15 22:46:52 2010
Errors in file /u01/app/oracle/admin/stan/bdump/stan_mrp0_3695.trc:
ORA-00313: open failed for members of log group 2 of thread 1
ORA-00312: online log 2 thread 1: '/u01/app/oracle/oradata/prim/redofile/redo02.log'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
Mon Nov 15 22:46:52 2010
Errors in file /u01/app/oracle/admin/stan/bdump/stan_mrp0_3695.trc:
ORA-00313: open failed for members of log group 2 of thread 1
ORA-00312: online log 2 thread 1: '/u01/app/oracle/oradata/prim/redofile/redo02.log'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3But I already created the above mention folder "'/u01/app/oracle/oradata/prim/redofile" successfully and the redo log files are also created there successfully , but I cannot understand why this error is showed ? And also no archivelogs are shifted from PRIM database server to STAN database server .
Would u plz suggest me , why I cannot configure Physical Standby Database when I keep my database fles in the separate location ?
help me plz ... ...Hi,
I'm missing the steps you took renaming/moving the files on the primary.
Since the location of datafiles is stored in the control file the controlfile of the standby might not know the new location yet.
I suggest you read this http://www.cs.bris.ac.uk/maintain/OracleDocs/server.816/a76995/standby.htm#23603 and see if that helps
Success,
FJFranken -
Standby Database not succeeded
Hi experts, I need your assistance.
I am configuring physical stby database on the same host on oracle Release 11.1.0.6.0 win xp. But not not succeeded.
These are the steps I followed
Host name = sumanr
Primary database = orcl
Stby database = stby
1. On the same host I created the instance as 'stby' for the standby database using oradim
2. created the password file using orapwd
3. added the entry for stby databse in tnsnames and listener files
4. created the initstby.ora file with the single entry for db_name=orcl
5. started the stby database in nomount mode.
-------On Primary created the stby redologs
alter database add standby logfile group 4
('C:\app\oracle\oradata\orcl\sby_redo01.rdo') size 50M;
alter database add standby logfile group 5
('C:\app\oracle\oradata\orcl\sby_redo02.rdo') size 50M;
alter database add standby logfile group 6
('C:\app\oracle\oradata\orcl\sby_redo03.rdo') size 50M;
alter database add standby logfile group 7
('C:\app\oracle\oradata\orcl\sby_redo04.rdo') size 50M;
--------OnStandby
sqlplus / as sysdba
startup nomount
------On Primary RMAN
connect target sys/oracle@orcl
connect auxiliary sys/oracle@stby
run {
allocate channel c1 type disk;
allocate auxiliary channel s1 type disk;
duplicate target database
for standby
from active database
dorecover
spfile
parameter_value_convert 'orcl','stby'
set db_unique_name='stby'
set db_file_name_convert='orcl','stby'
set log_file_name_convert='orcl','stby'
set control_files='C:\app\oracle\oradata\stby\control01.ctl','C:\app\oracle\oradata\stby\control02.ctl','C:\app\oracle\oradata\stby\control03.ctl'
set fal_client='stby'
set fal_server='orcl'
set standby_file_management='AUTO'
set log_archive_config='dg_config=(orcl,stby)'
set log_archive_dest_2='service=orcl LGWR ASYNC valid_for=(ONLINE_LOGFILES,PRIMARY_ROLE) db_unique_name=stby'
set log_archive_dest_state_2='enable'
set log_archive_format='stby_%t_%s_%r.arc';
sql channel c1 "alter system archive log current";
run {
allocate auxiliary channel s1 type disk;
sql channel s1 "alter database recover managed standby database using current logfile disconnect";
}Now in stby when I check v$log, it gives
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS
FIRST_CHANGE# FIRST_TIM
1 1 0 52428800 1 YES UNUSED
2064244 17-AUG-09
2 1 0 52428800 1 NO CURRENT
2064280 17-AUG-09
3 1 0 52428800 1 YES UNUSED
2063000 17-AUG-09where as in primary it is
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS
FIRST_CHANGE# FIRST_TIM
1 1 67 52428800 1 NO CURRENT
2067534 17-AUG-09
2 1 65 52428800 1 YES INACTIVE
2067226 17-AUG-09
3 1 66 52428800 1 YES INACTIVE
2067532 17-AUG-09dont know what I am missing. Pl. help me.
ThnaksHello SYbrand
Thanks for your resply. I have created the stby redologs in the primary and RMAN is creating them in the standby database.As I checked in the standby
SQL> select type,member
2 from v$logfile;
TYPE
MEMBER
ONLINE
C:\APP\ORACLE\ORADATA\STBY\REDO03.LOG
ONLINE
C:\APP\ORACLE\ORADATA\STBY\REDO02.LOG
ONLINE
C:\APP\ORACLE\ORADATA\STBY\REDO01.LOG
TYPE
MEMBER
STANDBY
C:\APP\ORACLE\ORADATA\STBY\SBY_REDO01.RDO
STANDBY
C:\APP\ORACLE\ORADATA\STBY\SBY_REDO02.RDO
STANDBY
C:\APP\ORACLE\ORADATA\STBY\SBY_REDO03.RDO
TYPE
MEMBER
STANDBY
C:\APP\ORACLE\ORADATA\STBY\SBY_REDO04.RDO
7 rows selected.
SQL>This is my RMAN outcome
Recovery Manager11.1.0.6.0
RMAN> connect auxiliary sys/oracle@stby
connected to auxiliary database: ORCL (not mounted)
RMAN> connect target sys/oracle@orcl
connected to target database: ORCL (DBID=1222322644)
RMAN>
RMAN>
RMAN> 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12> 13> 14> 15> 16> 17> 18> 19> 20> 21> 22> 23> 24>
using target database control file instead of recovery catalog
allocated channel: c1
channel c1: SID=114 device type=DISK
allocated channel: s1
channel s1: SID=97 device type=DISK
Starting Duplicate Db at 17-AUG-09
contents of Memory Script:
backup as copy reuse
file 'C:\app\oracle\product\11.1.0\db_1\DATABASE\PWDorcl.ORA' auxiliary format
'C:\app\oracle\product\11.1.0\db_1\DATABASE\PWDstby.ORA' file
'C:\APP\ORACLE\PRODUCT\11.1.0\DB_1\DATABASE\SPFILEORCL.ORA' auxiliary format
'C:\APP\ORACLE\PRODUCT\11.1.0\DB_1\DATABASE\SPFILESTBY.ORA' ;
sql clone "alter system set spfile= ''C:\APP\ORACLE\PRODUCT\11.1.0\DB_1\DATABASE\SPFILESTBY.ORA''";
executing Memory Script
Starting backup at 17-AUG-09
Finished backup at 17-AUG-09
sql statement: alter system set spfile= ''C:\APP\ORACLE\PRODUCT\11.1.0\DB_1\DATABASE\SPFILESTBY.ORA''
contents of Memory Script:
sql clone "alter system set audit_file_dest =
''C:\app\oracle\admin\stby\adump'' comment=
'''' scope=spfile";
sql clone "alter system set dispatchers =
''(PROTOCOL=TCP) (SERVICE=stbyXDB)'' comment=
'''' scope=spfile";
sql clone "alter system set db_unique_name =
''stby'' comment=
'''' scope=spfile";
sql clone "alter system set db_file_name_convert =
''orcl'', ''stby'' comment=
'''' scope=spfile";
sql clone "alter system set log_file_name_convert =
''orcl'', ''stby'' comment=
'''' scope=spfile";
sql clone "alter system set control_files =
''C:\app\oracle\oradata\stby\control01.ctl'', ''C:\app\oracle\oradata\stby\control02.ctl'', ''C:\app\oracle\oradata\stby\control03.ctl'' comment=
'''' scope=spfile";
sql clone "alter system set fal_client =
''stby'' comment=
'''' scope=spfile";
sql clone "alter system set fal_server =
''orcl'' comment=
'''' scope=spfile";
sql clone "alter system set standby_file_management =
''AUTO'' comment=
'''' scope=spfile";
sql clone "alter system set log_archive_config =
''dg_config=(orcl,stby)'' comment=
'''' scope=spfile";
sql clone "alter system set log_archive_dest_2 =
''service=orcl LGWR ASYNC valid_for=(ONLINE_LOGFILES,PRIMARY_ROLE) db_unique_name=stby'' comment=
'''' scope=spfile";
sql clone "alter system set log_archive_dest_state_2 =
''enable'' comment=
'''' scope=spfile";
sql clone "alter system set log_archive_format =
''stby_%t_%s_%r.arc'' comment=
'''' scope=spfile";
shutdown clone immediate;
startup clone nomount ;
executing Memory Script
sql statement: alter system set audit_file_dest = ''C:\app\oracle\admin\stby\adump'' comment= '''' scope=spfile
sql statement: alter system set dispatchers = ''(PROTOCOL=TCP) (SERVICE=stbyXDB)'' comment= '''' scope=spfile
sql statement: alter system set db_unique_name = ''stby'' comment= '''' scope=spfile
sql statement: alter system set db_file_name_convert = ''orcl'', ''stby'' comment= '''' scope=spfile
sql statement: alter system set log_file_name_convert = ''orcl'', ''stby'' comment= '''' scope=spfile
sql statement: alter system set control_files = ''C:\app\oracle\oradata\stby\control01.ctl'', ''C:\app\oracle\oradata\stby\control02.ctl'', ''C:\app\oracle\oradata\stby\control03.ctl'' comment= '''' scope=spfile
sql statement: alter system set fal_client = ''stby'' comment= '''' scope=spfile
sql statement: alter system set fal_server = ''orcl'' comment= '''' scope=spfile
sql statement: alter system set standby_file_management = ''AUTO'' comment= '''' scope=spfile
sql statement: alter system set log_archive_config = ''dg_config=(orcl,stby)'' comment= '''' scope=spfile
sql statement: alter system set log_archive_dest_2 = ''service=orcl LGWR ASYNC valid_for=(ONLINE_LOGFILES,PRIMARY_ROLE) db_unique_name=stby'' comment= '''' scope=spfile
sql statement: alter system set log_archive_dest_state_2 = ''enable'' comment= '''' scope=spfile
sql statement: alter system set log_archive_format = ''stby_%t_%s_%r.arc'' comment= '''' scope=spfile
Oracle instance shut down
connected to auxiliary database (not started)
Oracle instance started
Total System Global Area 535662592 bytes
Fixed Size 1334380 bytes
Variable Size 171967380 bytes
Database Buffers 356515840 bytes
Redo Buffers 5844992 bytes
contents of Memory Script:
backup as copy current controlfile for standby auxiliary format 'C:\APP\ORACLE\ORADATA\STBY\CONTROL01.CTL';
restore clone controlfile to 'C:\APP\ORACLE\ORADATA\STBY\CONTROL02.CTL' from
'C:\APP\ORACLE\ORADATA\STBY\CONTROL01.CTL';
restore clone controlfile to 'C:\APP\ORACLE\ORADATA\STBY\CONTROL03.CTL' from
'C:\APP\ORACLE\ORADATA\STBY\CONTROL01.CTL';
sql clone 'alter database mount standby database';
executing Memory Script
Starting backup at 17-AUG-09
channel c1: starting datafile copy
copying standby control file
output file name=C:\APP\ORACLE\PRODUCT\11.1.0\DB_1\DATABASE\SNCFORCL.ORA tag=TAG20090817T150925 RECID=19 STAMP=695142585
channel c1: datafile copy complete, elapsed time: 00:00:15
Finished backup at 17-AUG-09
Starting restore at 17-AUG-09
channel clone_default: skipped, AUTOBACKUP already found
channel c1: copied control file copy
Finished restore at 17-AUG-09
Starting restore at 17-AUG-09
channel clone_default: skipped, AUTOBACKUP already found
channel c1: copied control file copy
Finished restore at 17-AUG-09
sql statement: alter database mount standby database
contents of Memory Script:
set newname for tempfile 1 to
"C:\APP\ORACLE\ORADATA\STBY\TEMP01.DBF";
set newname for tempfile 2 to
"C:\APP\ORACLE\ORADATA\STBY\CHECKUP_TEMP_1";
set newname for tempfile 3 to
"C:\APP\ORACLE\ORADATA\STBY\CHECKUP_TEMP_2";
switch clone tempfile all;
set newname for datafile 1 to
"C:\APP\ORACLE\ORADATA\STBY\SYSTEM01.DBF";
set newname for datafile 2 to
"C:\APP\ORACLE\ORADATA\STBY\SYSAUX01.DBF";
set newname for datafile 3 to
"C:\APP\ORACLE\ORADATA\STBY\UNDOTBS01.DBF";
set newname for datafile 4 to
"C:\APP\ORACLE\ORADATA\STBY\USERS01.DBF";
set newname for datafile 5 to
"C:\APP\ORACLE\ORADATA\STBY\EXAMPLE01.DBF";
set newname for datafile 6 to
"C:\APP\ORACLE\ORADATA\STBY\CHECKUP_DFLT.DAT";
backup as copy reuse
datafile 1 auxiliary format
"C:\APP\ORACLE\ORADATA\STBY\SYSTEM01.DBF" datafile
2 auxiliary format
"C:\APP\ORACLE\ORADATA\STBY\SYSAUX01.DBF" datafile
3 auxiliary format
"C:\APP\ORACLE\ORADATA\STBY\UNDOTBS01.DBF" datafile
4 auxiliary format
"C:\APP\ORACLE\ORADATA\STBY\USERS01.DBF" datafile
5 auxiliary format
"C:\APP\ORACLE\ORADATA\STBY\EXAMPLE01.DBF" datafile
6 auxiliary format
"C:\APP\ORACLE\ORADATA\STBY\CHECKUP_DFLT.DAT" ;
sql 'alter system archive log current';
executing Memory Script
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
renamed tempfile 1 to C:\APP\ORACLE\ORADATA\STBY\TEMP01.DBF in control file
renamed tempfile 2 to C:\APP\ORACLE\ORADATA\STBY\CHECKUP_TEMP_1 in control file
renamed tempfile 3 to C:\APP\ORACLE\ORADATA\STBY\CHECKUP_TEMP_2 in control file
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting backup at 17-AUG-09
channel c1: starting datafile copy
input datafile file number=00006 name=C:\APP\ORACLE\ORADATA\ORCL\CHECKUP_DFLT.DAT
output file name=C:\APP\ORACLE\ORADATA\STBY\CHECKUP_DFLT.DAT tag=TAG20090817T151028 RECID=0 STAMP=0
channel c1: datafile copy complete, elapsed time: 00:02:55
channel c1: starting datafile copy
input datafile file number=00001 name=C:\APP\ORACLE\ORADATA\ORCL\SYSTEM01.DBF
output file name=C:\APP\ORACLE\ORADATA\STBY\SYSTEM01.DBF tag=TAG20090817T151028 RECID=0 STAMP=0
channel c1: datafile copy complete, elapsed time: 00:00:35
channel c1: starting datafile copy
input datafile file number=00002 name=C:\APP\ORACLE\ORADATA\ORCL\SYSAUX01.DBF
output file name=C:\APP\ORACLE\ORADATA\STBY\SYSAUX01.DBF tag=TAG20090817T151028 RECID=0 STAMP=0
channel c1: datafile copy complete, elapsed time: 00:00:35
channel c1: starting datafile copy
input datafile file number=00005 name=C:\APP\ORACLE\ORADATA\ORCL\EXAMPLE01.DBF
output file name=C:\APP\ORACLE\ORADATA\STBY\EXAMPLE01.DBF tag=TAG20090817T151028 RECID=0 STAMP=0
channel c1: datafile copy complete, elapsed time: 00:00:07
channel c1: starting datafile copy
input datafile file number=00003 name=C:\APP\ORACLE\ORADATA\ORCL\UNDOTBS01.DBF
output file name=C:\APP\ORACLE\ORADATA\STBY\UNDOTBS01.DBF tag=TAG20090817T151028 RECID=0 STAMP=0
channel c1: datafile copy complete, elapsed time: 00:00:03
channel c1: starting datafile copy
input datafile file number=00004 name=C:\APP\ORACLE\ORADATA\ORCL\USERS01.DBF
output file name=C:\APP\ORACLE\ORADATA\STBY\USERS01.DBF tag=TAG20090817T151028 RECID=0 STAMP=0
channel c1: datafile copy complete, elapsed time: 00:00:03
Finished backup at 17-AUG-09
sql statement: alter system archive log current
contents of Memory Script:
backup as copy reuse
archivelog like "C:\APP\ORACLE\PRODUCT\11.1.0\DB_1\RDBMS\ARC00067_0694541910.001" auxiliary format
"C:\APP\ORACLE\FLASH_RECOVERY_AREA\STBY\ARCHIVELOG\2009_08_17\O1_MF_1_67_%U_.ARC" archivelog like
"C:\APP\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2009_08_17\O1_MF_1_67_58LLGDYR_.ARC" auxiliary format
"C:\APP\ORACLE\FLASH_RECOVERY_AREA\STBY\ARCHIVELOG\2009_08_17\O1_MF_1_67_%U_.ARC" ;
catalog clone recovery area;
switch clone datafile all;
executing Memory Script
Starting backup at 17-AUG-09
channel c1: starting archived log copy
input archived log thread=1 sequence=67 RECID=119 STAMP=695142910
output file name=C:\APP\ORACLE\FLASH_RECOVERY_AREA\STBY\ARCHIVELOG\2009_08_17\O1_MF_1_67_ARCH_D-ORCL_ID-1222322644_S-67_T-1_A-694541910_2IKMU2G0_.ARC RECID=0 STAMP=0
channel c1: archived log copy complete, elapsed time: 00:00:01
channel c1: starting archived log copy
input archived log thread=1 sequence=67 RECID=120 STAMP=695142910
output file name=C:\APP\ORACLE\FLASH_RECOVERY_AREA\STBY\ARCHIVELOG\2009_08_17\O1_MF_1_67_ARCH_D-ORCL_ID-1222322644_S-67_T-1_A-694541910_2JKMU2G4_.ARC RECID=0 STAMP=0
channel c1: archived log copy complete, elapsed time: 00:00:01
Finished backup at 17-AUG-09
searching for all files in the recovery area
List of Files Unknown to the Database
=====================================
File Name: C:\APP\ORACLE\FLASH_RECOVERY_AREA\STBY\ARCHIVELOG\2009_08_17\O1_MF_1_67_ARCH_D-ORCL_ID-1222322644_S-67_T-1_A-694541910_2IKMU2G0_.ARC
File Name: C:\APP\ORACLE\FLASH_RECOVERY_AREA\STBY\ARCHIVELOG\2009_08_17\O1_MF_1_67_ARCH_D-ORCL_ID-1222322644_S-67_T-1_A-694541910_2JKMU2G4_.ARC
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: C:\APP\ORACLE\FLASH_RECOVERY_AREA\STBY\ARCHIVELOG\2009_08_17\O1_MF_1_67_ARCH_D-ORCL_ID-1222322644_S-67_T-1_A-694541910_2IKMU2G0_.ARC
File Name: C:\APP\ORACLE\FLASH_RECOVERY_AREA\STBY\ARCHIVELOG\2009_08_17\O1_MF_1_67_ARCH_D-ORCL_ID-1222322644_S-67_T-1_A-694541910_2JKMU2G4_.ARC
datafile 1 switched to datafile copy
input datafile copy RECID=19 STAMP=695142923 file name=C:\APP\ORACLE\ORADATA\STBY\SYSTEM01.DBF
datafile 2 switched to datafile copy
input datafile copy RECID=20 STAMP=695142923 file name=C:\APP\ORACLE\ORADATA\STBY\SYSAUX01.DBF
datafile 3 switched to datafile copy
input datafile copy RECID=21 STAMP=695142923 file name=C:\APP\ORACLE\ORADATA\STBY\UNDOTBS01.DBF
datafile 4 switched to datafile copy
input datafile copy RECID=22 STAMP=695142924 file name=C:\APP\ORACLE\ORADATA\STBY\USERS01.DBF
datafile 5 switched to datafile copy
input datafile copy RECID=23 STAMP=695142924 file name=C:\APP\ORACLE\ORADATA\STBY\EXAMPLE01.DBF
datafile 6 switched to datafile copy
input datafile copy RECID=24 STAMP=695142924 file name=C:\APP\ORACLE\ORADATA\STBY\CHECKUP_DFLT.DAT
contents of Memory Script:
set until scn 2080890;
recover
standby
clone database
delete archivelog
executing Memory Script
executing command: SET until clause
Starting recover at 17-AUG-09
starting media recovery
archived log for thread 1 with sequence 67 is already on disk as file C:\APP\ORACLE\FLASH_RECOVERY_AREA\STBY\ARCHIVELOG\2009_08_17\O1_MF_1_67_ARCH_D-ORCL_ID-1222322644_S-67_T-1_A-694541910_2IKMU2G0_.ARC
archived log file name=C:\APP\ORACLE\FLASH_RECOVERY_AREA\STBY\ARCHIVELOG\2009_08_17\O1_MF_1_67_ARCH_D-ORCL_ID-1222322644_S-67_T-1_A-694541910_2IKMU2G0_.ARC thread=1 sequence=67
media recovery complete, elapsed time: 00:00:03
Finished recover at 17-AUG-09
Finished Duplicate Db at 17-AUG-09
sql statement: alter system archive log current
released channel: c1 -
Database not working when network is offline
I have installed Oracle 11gExpressEdition in my office laptop. It works fine if my laptop is connected with my office network and its not working outside office network. I am trying for long time to resolve this issue but couldn't able to find success.
I tried with changing Pcname in "C:\oraclexe\app\oracle\product\11.2.0\server\network\ADMIN\listener.ora" AND "tnsnames.ora" TO "localhost" and "127.0.0.1".
Installed Windown loopback adapter and reinstalled application. But nothing works.
Can you please help me
Thanks in Advance..Thanks for your replay,
Add to my question, database instance is running and my application can able to connect to database only issue is the link using for management portal
http://127.0.0.1:8080/apex/f?p=4950
is not working showing "Cannot display the webpage".
Here is my listner.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = XE)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
And tnsnames.ora
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO) -
Manual Standby Database not in sync with missing archivelogs
Hello,
OS: Solaris
DB: Oracle 11.2.0.1 EE
Not Using ASM or RAC
I have a Production database that is in archivelog mode and a Standby DR server.
Both servers (Prod, Standby) have exact same structure and db name/version.
We manually scp archive logs and recover them to a manual standby database via SQL Scripts "cron". (I.E. set autorecovery on; recover standby database;)
We recently got out of sync with our log files and have not been applying them to the standby. As part of Prod Maintenance, these log files were deleted and are not available anymore.
I've tried several ways to "rebuild" our standby database. I have tried to Shutdown prod, backup all the db files and scp them to standby, re-create standby controlfile and startup mount and recover standby.
Every time I try to apply a new archive log via recover standby, these are the errors:
ORA-00279: change 211077622 generated at 1/27/2012 12:18:42 needed for thread 1
ORA-00289: suggestion : /oradump/arch/PROD/PROD_arch_1_69486_736618850.arc
ORA-00280: change 211077622 for thread 1 is in sequence #69486
ORA-00308: cannot open archived log '/oradump/arch/PROD/PROD_arch_1_69486_736618850.arc'
ORA-27037: unable to obtain file status
SVR4 Error: 2: No such file or directory
Additional information: 3
ORA-10879: error signaled in parallel recovery slave
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: '/oradevices/PROD/oraPRODsystem1.dbf'
When I check v$log_history, the new logs have not been applied.
I've also tried the "Restore from incremental backup via SCN" method with same results.
Is there a way to re-create the standby clean and ensure that the log chain that is currently broken gets fixed or reset?
I would eventually like to get DataGuard in here, but that's not the case at the moment.
Thanks for your suggestions.
-Davif you are using the cold backup to create the standby database, Check that have you followed the following steps or not.
1. remove
all the datafiles and controlfiles from the standby database.
2. Create a new standby controlfile of the production for standby using the following cmd
'alter database create standby controlfile as 'Location';'
3. move the new controlfile to standby database server location as specified in initialization parameter file.
4. Restore all the datafiles to its appropriate loaction which was taken through cold backup.
5. startup nomount
6. alter database mount standby database;
7. recover standby database.
scp the archive log sequence that is asked by the database, from production.
You can try this steps.
Maybe you are looking for
-
My ipad won't let me into facebook and when I try to update App, it tells me facebook is not compatible with my ipad. I checked for updates and it says I have the current version (5.1.1). Should I have IOS 7 on this ipad and how to get?
-
Time machine backups and the iTunes library
hello if i download music from iTunes, i get a message always asking if i would like to back my purchases up to cds. shouldn't my time machine backup already be taking care of that? thanks Wade
-
How do I embed MS Word in a browser frame
I am writing an applet from which I want to control MS-Word. I can't quite see how to embed Word into a frame so that my applet is rendered in a left frame while Word is running in a right hand frame. Can anyone help me with this.
-
I hope you understand what I mean because English is not my language but Dutch. Example: 17-11-2014 16-11-2014 15-11-2014 so I recieved my e mails and now 15-11-2014 16-11-2014 17-11-2014 and I want that the newest date become up I hope their is some
-
Copy selection from one pdf to another pdf
Who knows how I can copy a selection from one pdf (including pictures and text) into another pdf?