Need Opinions on Connect-time failover for Oracle Parallel Server
Has anyone had any experience using the (failover=on) setting in TNSNAMES.ora file?
Specifically has anyone had any issues using this feature from a JDBC application?
Horror stories? Good news? Anything?
Thanx....
Should I need to put this on Metalink?
Similar Messages
-
Connect time failover in Oracle Net Service
I have a problem. This is my tnsnames.ora file. I have 2 identical databases on 2 different servers
(alpha.it.telekom.yu and alphami.it.telekom.yu) with same service name tis.it.telekom.yu.
ALPHA.IT.TELEKOM.YU =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = alpha.it.telekom.yu)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = alphami.it.telekom.yu)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = tis.it.telekom.yu)
I use this net service name when my host alpha.it.telekom.yu is not in function, to bring me to the other host alphami.it.telekom.yu.
But what is my question. I have tested this net service name, it is in function, but my problem is in time i waiting to connect
to second host (it takes to much time) when first host is not available. Is there any parameter to set, so i can solve this problem?
Thanks.I will try to clarify the problem. The second server (alphami.it.telekom.yu) is on the disaster recovery location and EMC SRDF technology is used to transfer data to this location. Thus, both databases are the same and must have the same service name. Information in tnsnames.ora file, I gave above, is correct by my opinion. I hope you better understand my problem. Thanks.
-
OS dependent layer for Oracle Parallel Server
Hi,
I am trying to configure OPS. But I don't understand the OS
dependent layer for Win2000. What should I configure in OS level
for clustering and OS dependent layer?
Thanks,
TarekShould I need to put this on Metalink?
-
Oracle 10g dataguard Connect-time failover Parameter 15 minutes
Hello,
we running a system with DataGuard in Maximum Availability protection mode and one physical Standby Database. There are two connections between primary and standby. I configured listener and tnsnames to perform a Connect-time failover in case one connection is down. In first place it seemed to work fine but since it has happened that the primary always hangs for exactly 15 minutes until the failover is performed. (ALL redologs need archiving)
I think this must be the default value of a Parameter but reading docs for hours I can't find it.
Can anybody help me?
Best regards
FritzIt's like this. The connection failover I'm talking about is only between the primary database and standby database. I have two connections between them. That makes two addresses for the service (servicetostandby) specified in the log_archive_dest used by dataguard. In my case the log_archive_dest Paramater looks like this:
log_archive_dest_3 = 'SERVICE servicetostandby OPTIONAL LGWR SY
NC AFFIRM VALID_FOR=(ONLINE_LO
GFILES,PRIMARY_ROLE) DB_UNIQUE
NAME=standby REOPEN=10 NETTIME
OUT=9'
The tnsnames.ora entry looks like this:
servicetostandby =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = address1)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = address2)(PORT = 1521))
(FAILOVER=true)
(LOAD_BALANCE=false)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = standby)
So if either address1 or address2 is down dataguard should use the other address to connect to the standby database.
Maybe because of the Maximum Availability protection mode the primary database does not perform if the standby database is not available. I'm not sure about that. But fact is that if I power off the standby database, the primary database hangs only for 9 seconds. That's specified in the net_time_out attribut of the log_archive_dest Parameter. So I'm quite sure that something in the oracle net service causes the problem.
With the "primary hangs" I mean: After the used connection (say address1) went down the redologfiles of the primary database get filled and then it stops for 15 minutes. The messages in the alert.log:
Thread 1 cannot allocate new log, sequence 1304
All online logs needed archiving
After 15 minutes the connection via address2 is established and everything works fine.
I hope I made myself clear this time and didn't confuse you totally.
Edited by: user633694 on Apr 14, 2009 8:13 AM -
CONNECT -TIME FAILOVER ERROR IN ORACLE 10G ENTERPRISE MANAGER
Hi All,
Please can anyone explain why I am getting this error and how to fix it?
I was trying this exercise to create a backup LISTENER to support a connect-time failover in Enterprise manager.The steps were .1)I clicked the Listener's link on Database control page.2)Next I clicked the Net Services Administration link.3)I selected listeners from the Administer drop-down list and clicked Go.
I received the ERROR message that "Listener administration cannot be performed, as this Oracle Home
"/opt/oracle/DB10g" is not a server installation.
Is this normal?
What can I do to fix it?Please help!
Thanksyou are trying to start the listener on the machine that has enterprise manager installed.
Listener executable is available with oracle database software install( enterprise or otherwise).
You will have to pick the listener on a database software install box to configure it -
Connect time failover fails with ORA-01033
Hi,
I have primary and standby databases configured. I want to configured connect time failover such that when there is role transistion. Clients can connect to DB with out changing anything in thier tns files.
Here is my configuration.
hosta primary
hostb standby
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL=TCP)(HOST=hosta)(PORT=1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(ORACLE_HOME = /usr/oracle/product/11.2.0.3)
(SID_NAME = tstxx)
(SID_DESC =
(GLOBAL_DBNAME = test1)
(ORACLE_HOME = /usr/oracle/product/11.2.0.3)
(SID_NAME = tstxx)
listener.ora on standby similar expect changes in hostnames.
Tnsnames.ora client
ctf =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = hostb) (PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = hosta) (PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = test1)
Notice that I have place hostb address intenally first so that if failover/swichover happens. client connection will not error out
sqlplus test@ctfSQL*Plus: Release 9.0.1.0.1 - Production on Fri Jun 22 17:38
(c) Copyright 2001 Oracle Corporation. All rights reserved.
Enter password:
ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
But when I change tnsnames such that hosta comes first then the connection works. as it should
any help is appreciated!!
Edited by: user8927749 on Jun 22, 2012 2:58 PMHello;
I would review this document :
http://uhesse.com/2009/08/19/connect-time-failover-transparent-application-failover-for-data-guard/
The ORA-1033 hints you are trying to connect to the database in the wrong role. There's a trigger and some additional work which can prevent this.
Uwe's document should explain all.
The "SQL*Plus: Release 9.0.1.0.1 - Production on Fri Jun 22 17:38" is very odd. I would expect you would being using the client on the server is this not the case?
DBMS_SERVICE lets you define something like this :
ernie =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = primary.server)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = standby.server)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ernie)
Check out "CREATE_SERVICE Procedure" here :
http://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_serv.htm
Best Regards
mseberg
Edited by: mseberg on Jun 22, 2012 5:42 PM -
Configure connect-time failover using GUI
Any way to configure connect-time failover using GUI
i can do it by editing Listener.ora
i have tried "Net Manager" and it did not work
in ocp studying material , there is an exhibit for that , don't know where is that GUI
Thanks...try this link .
http://www.lc.leidenuniv.nl/awcourse/oracle/network.920/a96580/advcfg.htm -
Question on connect time failover ?
ADDRESSES:
TCP/IP
Host : EDTDR6P1.us.oracle.com
Port : 1521
Connect-Time Failover and Client Load Balancing
Configure whether addresses are tried randomly or sequentially during connections to the service. This setting iis applicable only if there are more than one addresses configured.
-> Try each address, in order, until one succeeds
-> Try each address, randomly, until one succeeds
-> Try one address, seleced at random
-> Use each address, in order, until destination is reached
-> Use only the first address
Which two otpions are used to enable the connect-time failover feature ?
A. Use only the first address.
B. Try one address, selected at random.
C. Try each address, in order, until one succeeds.
C. Try each address, randomly, until one succeeds.
D. Use each address, in order until destination reached.Hi,
Easy C and D.
Cheers,
Francisco Munoz Alvarez
http://www.oraclenz.com -
Can anyone clear me the concept of Connect-time failover and other failover's??
you are trying to start the listener on the machine that has enterprise manager installed.
Listener executable is available with oracle database software install( enterprise or otherwise).
You will have to pick the listener on a database software install box to configure it -
Timeout waiting for Oracle WebLogic Server v10.3 at localhost to start
I am trying to run .portal file using "Run on server" option in Workshop for weblogic.
After doing this, its trying to start the server Oracle weblogic server v10.3 at localhost and then publish my module.
Server view status shows as "State" as "Starting" and "Status" as "Synchronizing". When status reaches 82% it gets stopped there for a long time, and when 83% comes up, I can see the "State" as "Stopped" and "Status" as "Republish". And then an error window with title as "Problem Occured" and contents saying, Starting server- Oracle weblogic server v10.3 at localhost (Time of error: ...) Details >> Timeout waiting for Oracle WebLogic Server v10.3 at localhost to start. Server did not start after 480s.
But the console tab (when I give the startup & Deployment option as "Launch Weblogic server in eclipse console) shows,
<Sep 8, 2011 6:15:03 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server sta
e changed to STARTING> (final step alone I pasted)
Before this I can see, WLS Start mode = Development, setting Classpath ,
<Sep 8, 2011 5:56:36 PM IST> <Notice> <Log Management> <BEA-170019> <The server
log file C:\bea\user_projects\domains\myPortalDomain\servers\AdminServer\logs\Ad
minServer.log is opened. All server side log events will be written to this file
.>
When I checked Adminserver file its having,
<AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1315487671986> <BEA-160151> <Registered library Extension-Name: wlp-groupspace-app-lib, Specification-Version: 10.3, Implementation-Version: 10.3.0.1 (EAR).>
And many more similar entries...
Also there is Adminserver.logxxx file which is having,
####<Sep 8, 2011 5:33:58 PM IST> <Warning> <JDBC> <AdminServer> <[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1315483438048> <BEA-001129> <Received exception while creating connection for pool "portalDataSourceNeverXA": SQL-server rejected establishment of SQL-connection. Pointbase Server may not be running on localhost at port 9093.>
####<Sep 8, 2011 5:33:58 PM IST> <Info> <JDBC> <CINTNCHEOLY0GX7> <AdminServer> <[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1315483438267> <BEA-001156> <Stack trace associated with message 001129 follows:
java.sql.SQLException: SQL-server rejected establishment of SQL-connection. Pointbase Server may not be running on localhost at port 9093.
at com.pointbase.dbexcp.dbexcpException.getSQLException(Unknown Source)
at com.pointbase.net.netJDBCConnection.a(Unknown Source)
at com.pointbase.net.netJDBCConnection.<init>(Unknown Source)
at com.pointbase.net.netJDBCDriver.getConnection(DashoA10*..:170)
at com.pointbase.net.netJDBCDriver.connect(DashoA10*..:94)
at com.pointbase.jdbc.jdbcUniversalDriver.getConnection(Unknown Source)
at com.pointbase.jdbc.jdbcUniversalDriver.connect(Unknown Source)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(ConnectionEnvFactory.java:316)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:217)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1109)
at weblogic.common.resourcepool.ResourcePoolImpl$ResourcePoolMaintanenceTask.timerExpired(ResourcePoolImpl.java:2282)
at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
And many more entries like the above...
I even tried startup & Deployment option as "Start weblogic server in Expressmode" and still same error I am getting and this time instead of in eclipse console, I can see command prompt and here also showing "Server state changed to STARTING"
FYI, I created domain with runtime JRocket 1.6.0_05.
I even tried to clean build the portal project and publish using clean option. Still same problem coming :(
FYI, my system is having 1 GB RAM only and bit slow. Could this be a problem or something else? Please suggest.
Thanks in advance.
Edited by: gopikrish on Sep 8, 2011 6:20 AMHi Gopikrish
The root cause for your error is, it is not able to start the Pointbase database. Looks like you configured a domain with default pointbase database. In the domain\bin\ one of the starup scripts like startWeblogic.cmd, you should see some lines that start the pointbase database.
java.sql.SQLException: SQL-server rejected establishment of SQL-connection. Pointbase Server may not be running on localhost at port 9093
Instead of starting from Workshop, go to the domain root folder and start the weblogic using the command like startWeblogic.cmd (or .sh on unix). This should start the pointbase and then start the portal domain. Portal domain does need this backend pointbase database to store all the portal meta data and has datasources configured for this.
Do you have a Clustered Portal domain, with one of the managed servers located in the remote machine. If yes, and if you use default Pointbase database, you need to change something like pointbase db should not be localhost but the name of the machine where you have the admin server running.
Either way, the issue is not able to stat the pointbase db and thus serve not starting.
Thanks
Ravi Jegga -
How to set -Xss or ulimit for Oracle Http Server
Hi,
We are facing Out of Memory Error in OHS 11g in our cluster environment. Where I can see below statements in http log file:
# There is insufficient memory for the Java Runtime Environment to continue.
# Cannot create GC thread. Out of system resources.
# Possible reasons:
# The system is out of physical RAM or swap space
# In 32 bit mode, the process size limit was hit
# Possible solutions:
# Reduce memory load on the system
# Increase physical memory or swap space
# Check if swap backing store is full
# Use 64 bit Java on a 64 bit OS
# Decrease Java heap size (-Xmx/-Xms)
# Decrease number of Java threads
# Decrease Java thread stack sizes (-Xss)
# Set larger code cache with -XX:ReservedCodeCacheSize=
# This output file may be truncated or incomplete.
# Out of Memory Error (gcTaskThread.cpp:46), pid=17956, tid=140591807985408
When I run the ulimit command on machine, stack size is showing as 10MB:
Result:
[oracle@XXXXXX bin]$ ulimit -a
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 1031958
max locked memory (kbytes, -l) 3500000
max memory size (kbytes, -m) unlimited
open files (-n) 131072
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 131072
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
Setting the stack size to 512KB or 256KB might resolve the problem.
I tried setting ulimit -s 512 in my user bash_profile. and ran ulimit -a , then it is showing as
stack size (kbytes, -s) 512
If I set at user level, does it have any impact? Or we should set at JVM level using -Xss
Can some body tell me where can I set -Xss for Oracle HTTP server 11g?
Regards,
VidyaHi Marco,
I believe you'll need to setup a MX record under 'More Actions' for your domain in Site Settings / Site Domains.
Select the option "Use another external service for email" and enter your primary mail server's hostname at priority 10.
Think you can repeat this step for your secondary mail server (priority 20) if you have one.
Regards
Mike -
Cold-Failover with Oracle Weblogic Server 10 R3
Hi ALL,
It is possible to configure cold-failover using Oracle Weblogic Server?/
- 2 instances with the same ip, if one fails the second will run
- Not comunication between nodes like in normal cluster
ThanksHello All,
Have anybody configured auto server migration for cold failover?
I have a few questions regarding this setup, any help is much appreciated.
1. for the floating ips to work, do I need 2 NICS and two cables on each server?
2. Do I have to configure 2 different ips on one interface, which will be used as node manager listen address's for each of the 2 machines?
3. What will be the listen address of each of these servers(primary server & failover server)? Is it the floating ip address? or empty (all local addresses)?
4. can we start both the primary server & failover server so when primary goes down, the failover will be quick?
Thanks,
Chandra -
How to get account expiry date for Oracle Directory Server?
I need to get the account expiry date for Oracle Directory server. Which attribute stores this value? Please let me also know the attribute type and how to fetch it.
Thanks,
SubratHello,
Yes you can use nsAccountLock directly (When nsAccountLock=true, the object is inactivated and the user cannot log in)
This is documented in Modifying Directory Server’s NsAccountLockAttribute Directly (Sun Java System Directory Server Enterprise Edition 6.2 In… (release number is old but it does not matter, Thats the first one Ive found)
You can also use dsutil account-inactivate as described in dsutil - 11g Release 1 (11.1.1.7.0)
Sylvain
Please mark this response as correct or helpful when appropriate to make it easier for others to find it -
Hardware Sizing for Oracle Application Server and MapViewer
Hi all,
I need to develop an application using Oracle Application Server 10g and MapViewer. The applicaction will, basically, do thematic maps based on a search criteria. The estimative is that we will have 25 users simultaneously using it.
I´d like to have an idea about the hardware to support it.
Do you know where I can get this information?
Any documentation can help.
Regards,
Luis AugustoHi Luis,
It may depend on your database size, but I think at least you need to meet the minimum requirements for the Application Server. You can find additional documentation for the AS at http://www.oracle.com/technology/products/ias/index.html.
However I would suggest some extra memory, and if possible the better CPU that you can get. MapViewer will render the spatial features on the server side, and depending on your database size and number of features returned from the queries, this extra memory will help.
Joao -
CSS keepalives for Oracle forms server
I'm trying to set up load balancing for oracle forms server and having issues with finding working keepalive method.
If I use uri keepalive, Oracle forms server crashes within a couple of minuites. TCP doesn't work either
service Ora-forms:9000
ip address 192.168.0.34
port 9000
keepalive type http
keepalive uri "/alive.gif"
keepalive frequency 30
It works for Oracle web server tho.
What keepalive do you guy use for Forms server?Here is what a script looks like using the "graceful" close approach..Graceful is at the bottom.
Regards
Pete..
!no echo
! Filename: ap-kal-fin
! Parameters: ip address
! Description:
! This script will open and close a socket on port 80.
! The close will be a FIN rather than a RST
! Failure Upon:
! Not establishing a connection with the host.
! Make sure the user has a qualified number of arguments
if ${ARGS}[#] "LT" "1"
echo "Usage: ap-kal-fin ip address.'"
exit script 1
endbranch
! Connect to the remote Host
set EXIT_MSG "Connect: Failed to connect to ${ARGS}[1]"
socket connect host ${ARGS}[1] port 80 tcp 2000
no set EXIT_MSG
socket disconnect ${SOCKET} graceful
exit script 0
Maybe you are looking for
-
HP 8600 Plus - Printer is on wifi but not visible/usable for any computers on the same network
Hello, I am on windows 7 x64 and I have an HP 8600 Plus. This printer has been working fine since we bought it but suddently it does not show up on the network. It started when my wife would try to print and the HP software says it cant connect to t
-
Tips For CS4 Mac Install?
After a decade plus of using Photoshop Elements, I have upgraded to CS4. I presently have Elements 6 for the Mac and Bridge CS3 (which comes with it) installed. Are there tips out there regarding my installation that I should observe to ensure a smo
-
Hi. Is it still so that there is actually no support available for EDI? I would like to have something like JAXB where I could generate classes from the UN EDIFACT text file format.
-
Hi, In my present process.For service (ME21N)PO'S withholdingtax is calculated and for non service PO's there is no withholdingtax calculated. In standard sap PO's.Tax will be calculated for both service POS and non service PO's. Can any guide me wh
-
V$lock, sys.obj$ very slow
Hello, I need to fetch wait time by object and that is why the query below. The problem: it takes forever :( any suggestions? select vlock.ctime, vdb.name,sysdate from v$lock vlock, sys.obj$ vdb where block = 1 and type = 'TM' and id1 = vdb.obj# orde