Auto switchover dataguard 10g
I want to automate the switchover between the pimary and the physical standby database. can somebody help me ???? thank you
You can check the section " Switchover vs Failover" in the following asktom page.... http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:1354203041395
-CD
Similar Messages
-
Hi All,
I am working on XSLT in 10g(10.1.3.4), Also I would like to use auto-map option available in Jdev.
currently mapping is done as below,
<ProductName>
<xsl:value-of select="ProductName"/>
</ProductName>
But I would need each node encapsulated with xsl:if, so that epmty node will not present in output doc.
ExampleWith xsl:If
<xsl:if test="ProductName">
<ProductName>
<xsl:value-of select="ProductName"/>
</ProductName>
</xsl:if>
is this auto option is available in 10g?
Please help me to achieve this in 10 g XSLT.
thanks,
SantoshI think there is a misunderstanding as to what a persistence layer is and does... To update your application with new state, you need to first update your object model (has nothing to do with TopLink), then your application (again, nothing to do with TopLink), and then your mappings and persistence layer code (has to do with TopLink). There is no magic here.
Auto-mapping is a feature in the Mapping Workbench to do much of the tedious O-R mapping automatically. It does not automatically keep your application up to date with schema chages.
- Don -
Using Oracle Dataguard 10g With Oracle EBS
Hello,
I am working on Linux with Oracle Database 10g and Oracle EBS R12 and trying to configure Oracle Data Guard with Oracle EBS. I have been reading Oracle My Support Document (Business Continuity for Oracle E-Business Release 12 Using Oracle 11g Physical Standby Database [ID 1070033.1] ).
Please let me know of any another useful documents. It will also be helpful if anyone could share real time experiences.
Thank you.Hi,
http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/prod/ha/dataguard/physstby/physstdby.htm
http://www.oracle.com/technetwork/database/features/availability/dataguardoverview-083155.html
Regards
Yoonas -
Broker (dataguard 10g)
I try to work with the broker (datagurad 10g) but when I do a switchover, the system do his job but return an error before starting the database, and I have to start it manually.
I found this error in the sqlnet.log
Thanks for your help
Fabrice
Fatal NI connect error 12514, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mymachine)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=test_DGMGRL)(INSTANCE_NAME=test)(SERVER=dedicated)(CID=(PROGRAM=dgmgrl)(HOST=mymachine)(USER=oracle))))
VERSION INFORMATION:
TNS for Solaris: Version 10.2.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter for Solaris: Version 10.2.0.1.0 - Production
TCP/IP NT Protocol Adapter for Solaris: Version 10.2.0.1.0 - Production
Time: 30-MAY-2006 16:01:55
Tracing not turned on.
Tns error struct:
ns main err code: 12564
TNS-12564: TNS:connection refused
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0Check out what you have the parameter service_names set to. If it is currently set to test then set it instead to test,test_DGMGRL.
If you the examine the output of
lsnrctl service
you should see that both test and test_DGMGRL services are running.
Oops. I think I got a little bit too clever. If you want Data Guard Broker to start your instance, then that probably means that the instance isn't running so the broker will not be able to find the service. :)
Instead, what you need to do is define the service the old fashioned way in listener.ora.
After you reconfigure the listener, you will find the new service supported by the listener whether it is running or not.
Chris -
RMAN and Dataguard (10g)
Hi all,
I know this topic has been discussed several times over on this forum, but I have a peculiar situation.
I have just inherited a client system with 10g and DataGuard with RMAN. The standby is Physical and both nodes are on HP-UX version and patchsets.
The standby is persistently idle. The client insists on backing up the physical standby only.
My question is this, is there any danger in backing up on the physical standby?. I've argued the case that we should backup the Primary and Standby to no joy. I am a little worried that we may experience a failure on the primary and start a recovery with backup taken from the Standby node. Is this feasible at all?
Please confirm that I am right.
Regards,
Timothy.Having a recovery catalog, there's a resync with the standby controlfile after the backup, the backup informations are now in the catalog. Now when you need to restore/recover the primary database you connect to this and to the catalog. Primary and standby are clones , so you access the same record in the catalog regardless whether you are connected to the primary or to the standby. Because of this a resync will refresh the primary controlfile with the backup records which were taken while connected to th standby. A simple backup/recovery example looks like this:
1) connect target sys/pwd@stdby catalog rman/pwd@rmancat
2) backup database; (resync happens automatically after this)
4) connect target sys/pwd@prim catalog rman/pwd@rmancat
5) resync catalog;
6) restore database;
7) recoverer database:
It's not mandatory, but recommended to backup the archivelogs on the primary side. Here you are sure to have all archivelogs (at least under regular circumstances). For many reasons it could happen, you miss some archives on the standby side.
It's possible to run a standby in read-only mode for reporting purposes. In this case archivelog applying is suspended. If you have such a situation it's not recommended to backup the standby database, possibly it does not change for a long time and in case of recovery you have to apply a large number of archivelogs.
Werner -
Attempting to perform a switchover (DataGuard)- adautocfg.sh not completing
Hi,
We are currently running EBS 11.5.10.2 on DB 10.2.0.4 and have a dataguard setup. This morning we were attempting a switchover (on a test dataguard system) using documentation from Metalink Note 216212.1. Upon reaching step 9 (Finish applications configuration on the middle tiers), adautocfg.sh is not completing successfully on the Admin node. Checks in the error log indicate that there's a connection problem with the database. We had a similar problem a couple months ago and logged a Metalink case, to which the solution was to run the following SQL command as the apps user:
exec fnd_net_services.remove_system ('');
commit;
We tried running this again followed by adautocfg.sh on both Admin and DB node but still end up with the same problem.
Does anyone have any ideas as to what we can try to fix this problem? Thanks.
Lia.
Edited by: Lia on Jan 22, 2009 9:43 AMhsawwan- Yes we did use that command. Actually in the Metalink note step 8 the instructions are to execute that command using the SID. We did that and then when we ran adautocfg.sh it was unsuccessful.
Here's the error log- I didn't post the whole thing due to its length.
SQL*Plus: Release 8.0.6.0.0 - Production on Thu Jan 22 09:31:02 2009
+(c) Copyright 1999 Oracle Corporation. All rights reserved.+
Enter value for 1: Enter value for 2: Enter value for 3: ERROR:
ORA-12537: TNS:connection closed
jtfictx.sh exiting with status 1
ERRORCODE = 1 ERRORCODE_END
+.end std out.+
+.end err out.+
AutoConfig Services Phase
Running Service Process 1 of 1 for JTF_TOP
Executing script in InstantiateFile:
+/u0/miatest/miatestcomn/admin/install/miatest_tclg-dgstdby/jtfsvfm.sh+
script returned:
jtfsvfm.sh started at Thu Jan 22 09:31:02 AST 2009
jtfsvfm.sh exiting with status 0
+.end std out.+
+.end err out.+
Processing DriverFile = /u0/miatest/miatestappl/mwa/11.5.0/admin/driver/mwatmpl.drv
AutoConfig Profile Phase
Running Instantiation Drivers for MWA_TOP
instantiate file:
source : /u0/miatest/miatestappl/mwa/11.5.0/admin/template/mwa.cfg
dest : /u0/miatest/miatestappl/mwa/11.5.0/secure/mwa.cfg
backup : /u0/miatest/miatestappl/mwa/11.5.0/secure/mwa.cfg to /u0/miatest/miatestappl/admin/miatest_tclg-dgstdby/out/01220929/mwa.cfg
setting permissions: 644
setting ownership: applmgr:dba
instantiate file:
source : /u0/miatest/miatestappl/mwa/11.5.0/admin/template/mwa.cfg
dest : /u0/miatest/miatestappl/mwa/11.5.0/secure/miatest_tclg-dgstdby/mwa.cfg
backup : /u0/miatest/miatestappl/mwa/11.5.0/secure/miatest_tclg-dgstdby/mwa.cfg to /u0/miatest/miatestappl/admin/miatest_tclg-dgstdby/out/01220929/mwa0.cfg
setting permissions: 644
setting ownership: applmgr:dba
instantiate file:
source : /u0/miatest/miatestappl/mwa/11.5.0/admin/template/deviceIP.ini
dest : /u0/miatest/miatestappl/mwa/11.5.0/secure/deviceIP.ini
backup : /u0/miatest/miatestappl/mwa/11.5.0/secure/deviceIP.ini to /u0/miatest/miatestappl/admin/miatest_tclg-dgstdby/out/01220929/deviceIP.ini
setting permissions: 644
setting ownership: applmgr:dba
instantiate file:
source : /u0/miatest/miatestappl/mwa/11.5.0/admin/template/deviceIP.ini
dest : /u0/miatest/miatestappl/mwa/11.5.0/secure/miatest_tclg-dgstdby/deviceIP.ini
backup : /u0/miatest/miatestappl/mwa/11.5.0/secure/miatest_tclg-dgstdby/deviceIP.ini to /u0/miatest/miatestappl/admin/miatest_tclg-dgstdby/out/01220929/deviceIP0.ini
setting permissions: 644
setting ownership: applmgr:dba
instantiate file:
source : /u0/miatest/miatestappl/mwa/11.5.0/admin/template/device.cfg
dest : /u0/miatest/miatestappl/mwa/11.5.0/secure/device.cfg
backup : /u0/miatest/miatestappl/mwa/11.5.0/secure/device.cfg to /u0/miatest/miatestappl/admin/miatest_tclg-dgstdby/out/01220929/device.cfg
setting permissions: 644
setting ownership: applmgr:dba
instantiate file:
source : /u0/miatest/miatestappl/mwa/11.5.0/admin/template/device.cfg
dest : /u0/miatest/miatestappl/mwa/11.5.0/secure/miatest_tclg-dgstdby/device.cfg
backup : /u0/miatest/miatestappl/mwa/11.5.0/secure/miatest_tclg-dgstdby/device.cfg to /u0/miatest/miatestappl/admin/miatest_tclg-dgstdby/out/01220929/device0.cfg
setting permissions: 644
setting ownership: applmgr:dba
instantiate file:
source : /u0/miatest/miatestappl/mwa/11.5.0/admin/template/mwamscasvc.sql
dest : /u0/miatest/miatestcomn/admin/install/miatest_tclg-dgstdby/mwamscasvc.sql
backup : /u0/miatest/miatestcomn/admin/install/miatest_tclg-dgstdby/mwamscasvc.sql to /u0/miatest/miatestappl/admin/miatest_tclg-dgstdby/out/01220929/mwamscasvc.sql
setting permissions: 600
setting ownership: applmgr:dba
instantiate file:
source : /u0/miatest/miatestappl/mwa/11.5.0/admin/template/mwamscasvc.sh
dest : /u0/miatest/miatestcomn/admin/install/miatest_tclg-dgstdby/mwamscasvc.sh
backup : /u0/miatest/miatestcomn/admin/install/miatest_tclg-dgstdby/mwamscasvc.sh to /u0/miatest/miatestappl/admin/miatest_tclg-dgstdby/out/01220929/mwamscasvc.sh
setting permissions: 700
setting ownership: applmgr:dba
instantiate file:
source : /u0/miatest/miatestappl/mwa/11.5.0/admin/template/mwactl.sh
dest : /u0/miatest/miatestappl/mwa/11.5.0/bin/mwactl.sh
backup : /u0/miatest/miatestappl/mwa/11.5.0/bin/mwactl.sh to /u0/miatest/miatestappl/admin/miatest_tclg-dgstdby/out/01220929/mwactl.sh
setting permissions: 774
setting ownership: applmgr:dba
AutoConfig Profile Phase
Running Profile Process 1 of 1 for MWA_TOP
Executing script in InstantiateFile:
+/u0/miatest/miatestcomn/admin/install/miatest_tclg-dgstdby/mwamscasvc.sh+
script returned:
mwamscasvc.sh started at Thu Jan 22 09:31:07 AST 2009
SQL*Plus: Release 8.0.6.0.0 - Production on Thu Jan 22 09:31:07 2009
+(c) Copyright 1999 Oracle Corporation. All rights reserved.+
Enter value for 1: Enter value for 2: Enter value for 3: Enter value for 4: ERROR:
ORA-12537: TNS:connection closed
mwamscasvc.sh exiting with status 1
+.end std out.+
+.end err out.+
Processing DriverFile = /u0/miatest/miatestappl/cn/11.5.0/admin/driver/cntmpl.drv
AutoConfig Profile Phase
Running Instantiation Drivers for CN_TOP
Processing DriverFile = /u0/miatest/miatestappl/csi/11.5.0/admin/driver/csitmpl.drv
AutoConfig Profile Phase
Running Instantiation Drivers for CSI_TOP
Processing DriverFile = /u0/miatest/miatestappl/wip/11.5.0/admin/driver/wiptmpl.drv
AutoConfig Profile Phase
Running Instantiation Drivers for WIP_TOP
Processing DriverFile = /u0/miatest/miatestappl/cse/11.5.0/admin/driver/csetmpl.drv
AutoConfig Profile Phase
Running Instantiation Drivers for CSE_TOP
Processing DriverFile = /u0/miatest/miatestappl/eam/11.5.0/admin/driver/eamtmpl.drv
AutoConfig Profile Phase
Running Instantiation Drivers for EAM_TOP
Processing DriverFile = /u0/miatest/miatestappl/imt/11.5.0/admin/driver/imttmpl.drv
AutoConfig Profile Phase
Running Instantiation Drivers for IMT_TOP
Processing DriverFile = /u0/miatest/miatestappl/fte/11.5.0/admin/driver/ftetmpl.drv
AutoConfig Profile Phase
Running Instantiation Drivers for FTE_TOP
Processing DriverFile = /u0/miatest/miatestappl/ont/11.5.0/admin/driver/onttmpl.drv
AutoConfig Profile Phase
Running Instantiation Drivers for ONT_TOP
Processing DriverFile = /u0/miatest/miatestappl/ar/11.5.0/admin/driver/artmpl.drv
AutoConfig Profile Phase
Running Instantiation Drivers for AR_TOP
Processing DriverFile = /u0/miatest/miatestappl/ahl/11.5.0/admin/driver/ahltmpl.drv
AutoConfig Profile Phase
Running Instantiation Drivers for AHL_TOP
Processing DriverFile = /u0/miatest/miatestappl/ozf/11.5.0/admin/driver/ozftmpl.drv
AutoConfig Profile Phase
Running Instantiation Drivers for OZF_TOP
Processing DriverFile = /u0/miatest/miatestappl/ies/11.5.0/admin/driver/iestmpl.drv
AutoConfig Profile Phase
Running Instantiation Drivers for IES_TOP
instantiate file:
source : /u0/miatest/miatestappl/ies/11.5.0/admin/template/cooper.sh
dest : /u0/miatest/miatestappl/ies/11.5.0/admin/install/miatest_tclg-dgstdby/cooper.sh
backup : /u0/miatest/miatestappl/ies/11.5.0/admin/install/miatest_tclg-dgstdby/cooper.sh to /u0/miatest/miatestappl/admin/miatest_tclg-dgstdby/out/01220929/cooper.sh
setting permissions: 755
setting ownership: applmgr:dba
Processing DriverFile = /u0/miatest/miatestappl/csd/11.5.0/admin/driver/csdtmpl.drv
AutoConfig Profile Phase
Running Instantiation Drivers for CSD_TOP
Processing DriverFile = /u0/miatest/miatestappl/igc/11.5.0/admin/driver/igctmpl.drv
AutoConfig Profile Phase
Running Instantiation Drivers for IGC_TOP
Product Top Drivers executed : AD_TOP FND_TOP ICX_TOP IEO_TOP ABM_TOP ECX_TOP BIS_TOP GL_TOP AMS_TOP CCT_TOP WSH_TOP CLN_TOP OKE_TOP OKL_TOP OKS_TOP CSF_TOP XNC_TOP IGS_TOP IBY_TOP PA_TOP JTF_TOP MWA_TOP CN_TOP CSI_TOP WIP_TOP CSE_TOP EAM_TOP IMT_TOP FTE_TOP ONT_TOP AR_TOP AHL_TOP OZF_TOP IES_TOP CSD_TOP IGC_TOP
+===========================================================================+
Starting Restore Profile utility at Thu Jan 22 09:31:08 AST 2009
Using version 115.6
ADX Database Utility
getConnection() -->
sDbHost : tclg-dgprime
sDbDomain : tclgroup.com
sDbPort : 1563
sDbSid : miatest
sDbUser : APPS
Trying to connect using SID...
getConnectionUsingSID() -->
JDBC URL: jdbc:oracle:thin:@tclg-dgprime.tclgroup.com:1563:miatest
Exception occurred: java.sql.SQLException: Io exception: Got minus one from a read call
Trying to connect using SID as ServiceName
getConnectionUsingServiceName() -->
JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=tclg-dgprime.tclgroup.com)(PORT=1563))(CONNECT_DATA=(SERVICE_NAME=miatest)))
Exception occurred: java.sql.SQLException: Io exception: Got minus one from a read call
Trying to connect using SID as ServiceName.DomainName
getConnectionUsingServiceName() -->
JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=tclg-dgprime.tclgroup.com)(PORT=1563))(CONNECT_DATA=(SERVICE_NAME=miatest.tclgroup.com)))
Exception occurred: java.sql.SQLException: Io exception: Got minus one from a read call
Connection could not be obtained; returning null
-------------------ADX Database Utility Finished---------------
+ Verifying connection to the Database : Could not be stablished+
+ No Restore Profile file created.+
Restore Profile utility ran successfully
+===========================================================================+
+[AutoConfig Error Report]+
The following report lists errors AutoConfig encountered during each
phase of its execution. Errors are grouped by directory and phase.
The report format is:
+<filename> <phase> <return code where appropriate>+
+[SETUP PHASE]+
AutoConfig could not successfully execute the following scripts:
Directory: /u0/miatest/miatestcomn/admin/install/miatest_tclg-dgstdby
adgendbc.sh INSTE8_SETUP 1
afcpnode.sh INSTE8_SETUP 1
afgcsreg.sh INSTE8_SETUP 1
txkMultinode.sh INSTE8_SETUP 1
Directory: /u0/miatest/miatestora/iAS/Apache/perl/bin/perl -I /u0/miatest/miatestora/iAS/Apache/perl/lib/5.00503 -I /u0/miatest/miatestora/iAS/Apache/perl/lib/site_perl/5.005 -I /u0/miatest/miatestappl/au/11.5.0/perl /u0/miatest/miatestcomn/admin/install/miatest_tclg-dgstdby
txkFrmUTF8.pl INSTE8_SETUP 1
+[PROFILE PHASE]+
AutoConfig could not successfully execute the following scripts:
Directory: /u0/miatest/miatestcomn/admin/install/miatest_tclg-dgstdby
abmwebprf.sh INSTE8_PRF 1
afadmprf.sh INSTE8_PRF 1
afcpctx.sh INSTE8_PRF 1
afcpgsm.sh INSTE8_PRF 1
affrmprf.sh INSTE8_PRF 1
afwebprf.sh INSTE8_PRF 1
amswebprf.sh INSTE8_PRF 1
csfwebprf.sh INSTE8_PRF 1
ibywebprf.sh INSTE8_PRF 1
icxwebprf.sh INSTE8_PRF 1
jtfictx.sh INSTE8_PRF 1
+[APPLY PHASE]+
AutoConfig could not successfully execute the following scripts:
Directory: /u0/miatest/miatestora/iAS/Apache/perl/bin/perl -I /u0/miatest/miatestora/iAS/Apache/perl/lib/5.00503 -I /u0/miatest/miatestora/iAS/Apache/perl/lib/site_perl/5.005 -I /u0/miatest/miatestappl/au/11.5.0/perl /u0/miatest/miatestcomn/admin/install/miatest_tclg-dgstdby
adadmat.pl INSTE8_APPLY 256
txkGenExtSecConf.pl INSTE8_APPLY 1
AutoConfig is exiting with status 18
Thanks, Lia. -
hello
i am setting up dataguard on 10g winxp,
i want that the standby database have the same name like the primary , but wouldnt that create a conflict in this parameter
LOG_ARCHIVE_CONFIG='DG_CONFIG=(chicago,boston)'
LOG_ARCHIVE_CONFIG='DG_CONFIG=(chicago,chicago)'
thanks?hello
i was reading the documentation its says that this parameter specifies the
DB_UNIQUE_NAME of the primary and standby databases
is that the same as their services names ?
thanks again -
Hi:
I am working on DataGuard on 10g database. I have a question about the db_file_name_convert parameter in init.ora file on Primary database. I set db_file_name_convert='d:\oracle\product\10.2.0\oradata\standby', 'd:\oracle\product\10.2.0\oradata\orcl'. BUT now I found I have 6 files on 'd:\oracle\product\10.2.0\oradata\orcl', and one on D:\ORACLE\PRODUCT\10.2.0\DB_2\PERFSTAT.DBF. Would you please tell me how to set the db_file_name_convert for my case?
Thank you very much!
UserYou can try:
db_file_name_convert=('d:\oracle\product\10.2.0\oradata\orcl', 'd:\oracle\product\10.2.0\oradata\standby', 'D:\ORACLE\PRODUCT\10.2.0\DB_2','d:\oracle\product\10.2.0\oradata\standby')Note that odd parameters (1st, 3rd, etc) specify primary database datafile file name and that even parameters (2nd, 4th, etc.) specify
standby database datafile file name.
See Reference Guide http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams112.htm#CHDGDFFD
Edited by: P. Forstmann on 23 déc. 2009 14:13
Edited by: P. Forstmann on 23 déc. 2009 14:16
Edited by: P. Forstmann on 23 déc. 2009 15:00: added missing quote -
This is from the doco:
A physical standby database can be opened temporarily in read/write mode for development, reporting, or testing purposes, and then flashed back to a point in the past to be reverted back to a physical standby database. When the database is flashed back, Data Guard automatically synchronizes the standby database with the primary database, without the need to re-create the physical standby database from a backup copy of the primary database.
This doesn't affect the primary database at all, right? I just want to confirm. I recall having some issues trying to open the standby database in read/write. Can anyone confirm if they've been able to open the standby database read/write while leaving the primary up and running.
Thanks.
P.S. This is on Oracle 10g R2This is a new and wonderful feature from 10g version.
-
PoE auto switchover with Cisco 1252 Access Point.
Dear All
I have a network for Managed Wireless using Cisco. This is a new network for me.
I am in problem with Cisco Access Point 1252. My AP's are connected to a PoE Switch. And Cisco AP's are also connected Powered with also Power Adapter with UPS backup.
But problem is if I disconnect power source of AP Power Adapter , AP is not getting up with PoE. PoE is up only when POWER PLUG of AP ADAPTER is physically pulled out from Socket.
Question is if it is possible to make automatic Failover by PoE when Power source of AP ADAPTER is down ?? I mean no need to PULL OUT POWER PLUG of AP ADAPTER.
Waiting for your rely.
It is very urgent .
Thanking You
Subrun.Hi Suburn,
1- yes it is possible to do failover without unlupping the cable of AC adapter. When power on ACS adapter is off, then the faiolver happens.
2- with regards to POE, if your switch supporting enhanced POE?
Powering the Aironet 1250 Series Access Point with Cisco Enhanced PoE
Cisco Enhanced PoE was designed for customers who want to install new PoE-enabled technologies that require greater than 15.4W per port to function at full capability, such as wireless technology based on the IEEE 802.11n standard. Cisco Enhanced PoE provides the full power requirements for dual-radio modules and eliminates the need to run an additional cabling drop or insert a separate power injector. Support for Enhanced PoE is currently available on a variety of Cisco Catalyst® switching platforms. For more information on Enhanced PoE, visit http://www.cisco.com/en/US/prod/switches/epoe.html.
Serge -
I am trying to setup oracle dataguard(10g) in logical standby mode and i'm getting this error.
Could anyone please help me with this
SQL> alter database create logical standby controlfile
2 AS 'D:\oradata\PRIMARYDB\STANDYCTL.ctl';
alter database create logical standby controlfile
ERROR at line 1:
ORA-06550: line 1, column 36:
PLS-00201: identifier 'DBMS_LOGMNR_D.STORE_IN_REDO_LOGS' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignoredwhen i am trying at the standby server to get into managed recovery mode i am getting this error. Any ideas why??
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE;
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE
ERROR at line 1:
ORA-00283: recovery session canceled due to errors
ORA-01110: data file 1: 'D:\ORADATA\STANDBY\SYSTEM01.DBF'
ORA-01157: cannot identify/lock data file 1 - see DBWR trace file
ORA-01110: data file 1: 'D:\ORADATA\STANDBY\SYSTEM01.DBF'
The trace file doesn't mention much about the error except:
The process cannot access the file because it is being used by another process.
Message was edited by:
user636794 -
Performance Problem After upgrade to oracle 10g
Hi
I have upgrade one of my datawarehouse database from oracle 9.2.0.8 to oracle 10.2.0.4 running on solaris 9
After the upgrade jobs which were running in the database is taking hell lot of time.
The jobs are accessing the views which is used to get the monthly report data from the database.
what could be the solution and where to start from to get the RCA to resolve this performance issue
Please let me know if you require any other information
database is currently running in the automatic shared memory management mode ie SGA_MAX and SGA_TARGET parameters are defined for thatThere are a lot of differences between 10g and 9i in this regard, among these are:
- There is a default job that gathers statistics every night which is not there in 9i. You might have totally different statistics as in 9i due to that job, depending on how and if at all you used to collect statistics in 9i
- The 10g DBMS_STATS package collects histograms on some columns by default (parameter METHOD_OPT=>'FOR ALL COLUMNS SIZE AUTO' default in 10g whereas 'FOR ALL COLUMNS SIZE 1' in 9i) which can have a significant effect on the execution plans
- The 10g optimizer has CPU costing enabled by default which can make significant changes to your execution plans due to different costing of table scans and order of predicate evaluation. In addition it uses NOWORKLOAD system statistics if system statistics have not been gathered explicitly
- 10g checks the min and max values stored for columns in the data dictionary. If your predicates are way off compared to these values then 10g begins to adjust the calculated selectivity of the predicate which can again significantly affect your execution plans
- 10g introduces the "Cost Based Query Transformation (CBQT)" feature which means that rather than applying heuristic transformation rules transformations are costed and potentially discarded whereas 9i applies transformations unconditionally whenever possible
Check also the following note resp. white paper:
http://optimizermagic.blogspot.com/2008/02/upgrading-from-oracle-database-9i-to.html
Regards,
Randolf
Oracle related stuff blog:
http://oracle-randolf.blogspot.com/
SQLTools++ for Oracle (Open source Oracle GUI for Windows):
http://www.sqltools-plusplus.org:7676/
http://sourceforge.net/projects/sqlt-pp/ -
Hi Group,
I have a doubt.
When configure dataguard (10g, 11g), while archive received from the primary are applied the standby database also generates archives?No it just applies the archive from the primary. The only time it would generate is when you switch it to primary.
Remember the standby is in Read-only mode. (I assume from how the question was asked).
Does this answer your question? -
Dataguard ,redo log not applied
hi
i am using oracle dataguard 10g .
everything was quit fine . but some days later a problem occured . after sequence 128 log is not applied .
i am using realtime log appled.
can anybody help me .
Thanks in advance
munir .Hi,
Is your standby database a physical or a logical standby ???
Is the standby database in recover mode?
What is the current log sequence number on your primary database?
Place your standby database in recovery mode (if it is not) and restore arhcive logs on the standby database generated after log seq. 128
Regards
Asif Momen
http://momendba.blogspot.com -
ORA-01033: ORACLE initialization or shutdown in progress / TAF
Hi experts,
I have the following environment:
+ 2 Linux Redhat 5.7 0n X86/64 named dwh and stb and Oracle 11.2.0.2,
+ Database on dwh is primary and on stb is standby
the listener on dwh:
ADR_BASE_LISTENER=/u00/app/oracle
LISTENER =
(ADDRESS_LIST =
# for external procedure calls, create a separate listener
# See basenv_user_guide.pdf for details (chapter of listener.ksh)
(ADDRESS =
(PROTOCOL = TCP)
(Host = dwh )
(Port = 1521)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
# Next line is necessary for dataguard >= 10g
(GLOBAL_DBNAME = strm_site1_DGMGRL)
(SID_NAME = STRM )
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1 )
)the service_names parameter on dwh:
SQL> show parameter service
NAME TYPE VALUE
service_names string STRM
[oracle@dwh admin]$ lsnrctl status
[oracle@dwh admin]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 14-SEP-2011 17:32:43
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=TCP)(Host=dwh)(Port=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 14-SEP-2011 12:11:15
Uptime 0 days 5 hr. 21 min. 28 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/11.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dwh)(PORT=1521)))
Services Summary...
Service "STRMXDB" has 1 instance(s).
Instance "STRM", status READY, has 1 handler(s) for this service...
Service "strm" has 1 instance(s).
Instance "STRM", status READY, has 1 handler(s) for this service...
Service "strm_site1" has 1 instance(s).
Instance "STRM", status READY, has 1 handler(s) for this service...
Service "strm_site1_DGB" has 1 instance(s).
Instance "STRM", status READY, has 1 handler(s) for this service...
Service "strm_site1_DGMGRL" has 1 instance(s).
Instance "STRM", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
the listener on stb:
[oracle@stb admin]$ cat listener.ora
ADR_BASE_LISTENER=/u00/app/oracle
LISTENER =
(ADDRESS_LIST =
# for external procedure calls, create a separate listener
# See basenv_user_guide.pdf for details (chapter of listener.ksh)
(ADDRESS = (PROTOCOL = TCP) (Host = stb ) (Port = 1521)
SID_LIST_LISTENER =
(SID_DESC =
# Next line is necessary for dataguard >= 10g
(GLOBAL_DBNAME = strm_site2_DGMGRL)
(SID_NAME = STRM )
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1 )
)the service_names parameter on stb:
SQL> show parameter service
NAME TYPE VALUE
service_names string STRM
[oracle@stb admin]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 14-SEP-2011 17:37:23
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=TCP)(Host=stb)(Port=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 14-SEP-2011 12:12:39
Uptime 0 days 5 hr. 24 min. 44 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/11.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=stb)(PORT=1521)))
Services Summary...
Service "strm" has 1 instance(s).
Instance "STRM", status READY, has 1 handler(s) for this service...
Service "strm_site2" has 1 instance(s).
Instance "STRM", status READY, has 1 handler(s) for this service...
Service "strm_site2_DGB" has 1 instance(s).
Instance "STRM", status READY, has 1 handler(s) for this service...
Service "strm_site2_DGMGRL" has 1 instance(s).
Instance "STRM", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfullyMy tnsnames.ora
# tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0.2/db_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
STRM=
(DESCRIPTION=
(LOAD_BALANCE=on)
(FAILOVER=on)
(ADDRESS=(PROTOCOL=tcp)(HOST=dwh)(PORT=1521))
(ADDRESS=(PROTOCOL=tcp)(HOST=stb)(PORT=1521))
(CONNECT_DATA=
(SERVICE_NAME=strm)
(FAILOVER_MODE=(TYPE=select)(METHOD=basic))
STRM_SITE1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = dwh)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = STRM_SITE1)
STRM_SITE2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = stb)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = STRM_SITE2)
)My Problem:
C:\Documents and Settings\thai>sqlplus scott/scott@STRM
SQL*Plus: Release 11.2.0.1.0 Production on Wed Sep 14 17:49:51 2011
Copyright (c) 1982, 2010, Oracle. All rights reserved.
ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
Process ID: 0
Session ID: 0 Serial number: 0Login with
sqlplus sys/****@STRM as sysdbaraises no problem!
What I have done wrong? Please, help!
regards
hqt200475
Edited by: hqt200475 on Sep 14, 2011 9:04 AMIf I understand the second part of the question correctly you can use DBMS_SERVICE to create an alias on both servers.
Then depending upon the ROLE they are in you can just connect.
First an entry need to be added to the client tnsnames.ora that uses a SERVICE_NAME instead of a SID.
ernie =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = primary.host)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = standby.host)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ernie)
)Next the service 'ernie' needs to be created manually on the primary database.
BEGIN
DBMS_SERVICE.CREATE_SERVICE('ernie','ernie');
END;
/After creating the service needs to be manually started.
BEGIN
DBMS_SERVICE.START_SERVICE('ernie');
END;Several of the default parameters can now be set for 'ernie'.
BEGIN
DBMS_SERVICE.MODIFY_SERVICE
('ernie',
FAILOVER_METHOD => 'BASIC',
FAILOVER_TYPE => 'SELECT',
FAILOVER_RETRIES => 200,
FAILOVER_DELAY => 1);
END;
/Finally a database STARTUP trigger should be created to ensures that this service is only offered if the database is primary.
CREATE TRIGGER CHECK_ERNIE_START AFTER STARTUP ON DATABASE
DECLARE
V_ROLE VARCHAR(30);
BEGIN
SELECT DATABASE_ROLE INTO V_ROLE FROM V$DATABASE;
IF V_ROLE = 'PRIMARY' THEN
DBMS_SERVICE.START_SERVICE('ernie');
ELSE
DBMS_SERVICE.STOP_SERVICE('ernie');
END IF;
END;
/Check the status using lsnrctl status
/home/oracle: >lsnrctl status
Service "ernie" has 1 instance(s).
erine is from the Oracle example, you can add whatever you want and then if you do a switchover or failover it is transparent to your users.
See this for more details
http://download.oracle.com/docs/cd/E11882_01/appdev.112/e16760/d_serv.htm
Best Regards
mseberg
Maybe you are looking for
-
I cannot open a document in Pages 5.1?
I have been trying to open a pages document and it's simply juts confusing to know what's wrong with the documents.
-
Max # of Objects in a universe
Is there a max # of objects in a cube that can be consumed by a universe (BI 4.0)? I am trying to place a universe on top of a large BW (7.3 SPS 5) cube. I am able to create the universe just fine, but when I try to refresh the structure the design
-
ITunes and App Store not connecting with Apple id after iOS 8
After updating to iOS 8.0.2, I have tried updating apps and buying music but nothing happens on my iPhone 5 or my iPad. Can someone help with this? All it shows it the rotating circle saying it's looking or working or whatever but even after loggin
-
Cannot connect to USB shared disk
The other day got my new Airport Extreme-n and up unitl now it has worked solidly. The most annoying problem is accessing shared USB disks. I have attached a USB disk to the ABE and it is recognized. Then, enabled disk sharing with a simple disk pass
-
The send and spell check options are next to each other. I can not tell you how many times I hit the send button be accident. When sending, and question of 'Are you sure you want to send now?', should be asked. Thanks