How to detect if Database is down when client application is running?
Hi,
I have a oracle Forms application accessing a remote database. While doing processing, application has to post some data in a remote database.
As of now, when the Forms client is running and remote database is down, the client hangs.
I have tried Creating a timer before remote database procedure call in the FORMS Trigger and checking in the when_timer_expired trigger, if a specific duration has passed or not. This doesn't work as timer fires only after the remote procedure call completes and other SQL statements in the FORMS trigger where i have created the timer completes.
I Know sqlcode -3113 can be of help.
Hope someone can help me with a solution/suggestion.
Thanks
Hari
interesting situation.
what about issuing the select count(*) into cnt from dual, if cnt>0 then do post.
better to setup the remote database has fail-over to another node.
Similar Messages
-
How to decomplie a java class file when java application is running/launch?
I have a simple java application with some components being displayed, now i need to get the components instance names that are been created in that java application. How do i do that?
Eg: Button b1 = new button();
now how to write a java application to decompile this class file & return me the button instance ie "b1".I think you wanna do two different things:
1. find out which objects were created at runtime.
2. decompile class file.
I'm no so sure why.
have you tried insrospecting the class using reflection ?
Here is a code snippet that prints class field names.
try{
Class c = Class.forName("MyClass");
java.lang.reflect.Field[] f= c.getFields();
for (int i = 0;i<f.length; i++)
System.out.println(f.getName());
catch(Exception e){ }
Regards
Joseph. -
If the database is shutdown when the applcation is running what is happened
I am using coneection pool to connect database. If the database is shutdown when the applcation is running what is happened? and how the database will be reconnected.
I am using MySQL 3.23.52, Tomcat 4.1.12Hi,
Performance of any n-tier system which takes the advantage of connection pooling will be much higher compared to its non-pooled counterpart.
You have to be very careful while designing/using a connection pool.if u are using pool obtained from a third party,ur control on this pool will be limited - with a few set/get methods.
A well designed pool wont create much trouble. if u are creating your own pool, basic steps required are
1.create 'n' number of connections
2.whenever user requests for a connection, check the validity of the connection- by sendin a simple select query etc- and if its not stale,give this connection to the caller.
3.if the connection is stale ie it fails the pretest, close all the connections and create the pool afresh.
4.connections obtained from the pool will be automatically returned back to the pool whenever the applciation call conn.close().
from ur application, follow the steps for each connection you use (not necessary for a well designed pool)
1.call ds.getconnection()
2.check validity of this connection by sending a simple select query.if it works,everything is fine. otherwise something is wrong with connection(not always).
3.sql exception may occur during the execution of sql query. this can be due to either
a.database shut down (network related)
b.database specific - like wrong query,invalid objects etc
you have to look at the sql state/vendor code (which can be retrieved from the caught exception). the retrieved code will give you a hint why the error (network or database specific).and you can act accordingly.
Most of the app servers comes with builtin connection pooling module. and handling stale connection is not a difficult task for the programmer. eg: if you are designing applcations for IBM websphere, you can use StaleConnectionException in your code.if this exception is caught,the whole pool is destroyed and created afresh.
HTH,
-asharafkk -
How to deal with the mouse events when the thread is running
Hi everybody,
I have a problem with my program.
Now I want to present a picture for some time in the Canvas,then automatically clear the screen, but when the user press the mousebutton or keybutton, I want to stop the thread and clear the screen.
How can I receive the mouse event when the thread is running?
Thanks,I use my code in a GUI applet.
I try to use the code tag, it's the first time.
Image im=sd.getStimulus(obj);
if(pos==null){
g.drawImage(im, (w-im.getWidth(null))/2,(h-im.getHeight(null))/2,null);
}else{
g.drawImage(im, pos.x,pos.y,pos.w,pos.h,null);
try{
sleep(showtime);
// Thread.sleep(showtime);
}catch(InterruptedException e){}
if(pos==null){
g.clearRect((w-im.getWidth(null))/2,(h-im.getHeight(null))/2,im.getWidth(null),im.getHeight(null));
}else{
g.clearRect(pos.x,pos.y, pos.w, pos.h);
} -
How to make a button stay down when I click on it in CSS nav bar.
So I have created a horizontal navigation bar, I use the CSS
Sprites/Pixy method to get the hover working with the same image as
the link/in active stage of the buttons.
Now how do I make the button stay down when someone click on
them?
These are the codes for the nav bar.
#nav{
width: 780px;
list-style: none;
margin-top: 0;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
padding: 0;
height: 40px;
#nav li{
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold;
float: left;
padding: 0;
#nav a{
width: 125px;
display: block;
color: #000000;
text-decoration: none;
text-align: center;
background-image: url(ZITTO_IMAGES/button_set1a.jpg);
background-repeat: no-repeat;
background-position: center 2px;
padding-top: 14px;
padding-bottom: 10px;
background-color: #000000;
#link2,#link3,#link4,#link5,#link5,#link6 { margin-left:
6px;}
#nav a:hover{
background-image: url(ZITTO_IMAGES/button_set1a.jpg);
background-repeat: no-repeat;
background-position: center -36px;
color: #FFFFFF;
width: 125px;
padding-top: 14px;
padding-bottom: 10px;
background-color: #000000;
Everything works so far, the hover works when you roll the
mouse but when you click the button goes right back.
How can I make it stay down and then go back to normal when
you click on another link/button?
Thanks very much.
PatrickRead my suggestion again. You are missing a critical point. I
show you
exactly where to put the stylesheet. And it doesn't matter
how many
stylesheets you have on a page.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Webethics" <[email protected]> wrote in
message
news:[email protected]...
>
quote:
Originally posted by:
Newsgroup User
> Change this -
>
> #nav a{
> width: 125px;
> display: block;
> color: #000000;
> text-decoration: none;
> text-align: center;
> background-image: url(ZITTO_IMAGES/button_set1a.jpg);
> background-repeat: no-repeat;
> background-position: center 2px;
> padding-top: 14px;
> padding-bottom: 10px;
> background-color: #000000;
> }
>
> #link2,#link3,#link4,#link5,#link5,#link6 { margin-left:
6px;}
>
>
> #nav a:hover{
> background-image: url(ZITTO_IMAGES/button_set1a.jpg);
> background-repeat: no-repeat;
> background-position: center -36px;
> color: #FFFFFF;
> width: 125px;
> padding-top: 14px;
> padding-bottom: 10px;
> background-color: #000000;
> }
>
> to this -
>
> #nav a{
> width: 125px;
> display: block;
> color: #000000;
> text-decoration: none;
> text-align: center;
> background-image: url(ZITTO_IMAGES/button_set1a.jpg);
> background-repeat: no-repeat;
> background-position: center 2px;
> padding-top: 14px;
> padding-bottom: 10px;
> background-color: #000000;
> }
>
> #link2,#link3,#link4,#link5,#link5,#link6 { margin-left:
6px;}
>
>
> #nav a:hover{
> background-position: center -36px;
> color: #FFFFFF;
> }
>
> Then on each individual page, change this -
>
> </head>
>
> to this -
>
> <style type="text/css">
> #nav a#link4 {
> background-position:center - 36px;
> }
> </style>
> </head>
>
> (for link4, for example)
>
>
> --
> Murray --- ICQ 71997575
> Adobe Community Expert
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
> ==================
>
>
> "Webethics" <[email protected]> wrote
in message
> news:[email protected]...
> >
quote:
Originally posted by:
Newsgroup User
> > When they click on a button, do they go to another
page? And is each
> > button
> > uniquely identified?
> >
> > If so, then put a little stylesheet on each such
page that sets the
> > particular button to the down sprite settings,
e.g.,
> >
> > a#link6 { downspritevalues }
> >
> > --
> > Murray --- ICQ 71997575
> > Adobe Community Expert
> >
> >
> > This is the link to the page.
> >
http://www.patrickjudson.com/zitto_web1d.html
> > What state do I use to get this effect? The active
or the visited?
> >
> > I want the buttons to remain down when click or
even better, how do I
> > get
> > the
> > welcome button to appear down when a person visits
the page to show them
> > they
> > are at the home page.
> >
> > Thanks so much. Patrick
> >
> >
> >
>
>
>
> Hey! Murray, thanks very much for the efforts. However
I'm still confused
> as
> to where to insert the individual styles on each page.
>
> The pages already have a style sheet, in fact they all
share the same
> style
> sheet. The following codes below is what you instructed
but I'm confused
> as to
> where to insert them since the page already has a head
opening and closing
> as
> well as a style opening and closing tags. Can you please
add the codes you
> instructed so I can see where they go and how to
implement them?
>
> Thanks - Patrick
>
>
> Then on each individual page, change this -
>
> </head>
>
> to this -
>
> <style type="text/css">
> #nav a#link4 {
> background-position:center - 36px;
> }
> </style>
> </head>
>
> (for link4, for example)
>
>
>
> -
How to specify the database file path when create FDM application
Dear All,
How to specify the database file path (MSSQL) when create FDM application?
Right now, all data file are placed in the D:\ . I want to specify the database files (log and mdf file) in other place. How to do it?
Thanks.Where is the highS2.xml located on the disk? If you add it to your project you should set its Build Action to Content and its Copy To Output Directory to Always in Visual Studio:
Please remember to close your threads by marking helpful posts as answer once your issue has been solved and then start a new thread if you have a new question. -
How come every time my Mac shuts down,when Iturn it back on,Garageband has to Re-Download the program files?
Check this article http://support.apple.com/kb/HT1547 and this one http://support.apple.com/kb/HT2341?viewlocale=en_US
If it sounds like a RAM issue it could be one of the RAM chips has failed. You could try removing the RAM one at a time and see if it starts with one still installed. -
How to detect is response deliverred to the client?
Hello everybody...
I have problem and don't know how to solve.
My server application runs on apache tomcat 5.5, and deals with some important data transactions.
After getting the request, server has 5 sec. to send response, after that clients will close their sockets.
The connection can be very slow, (GPRS), so it is very possible that transaction will not be over in that time.
I need the way to find out, on my server side, when response isn't get to client in 5 sec.
Is there any idea how to do that?
Sorry if my English is not so perfect.
ThanksYes, but that way of write timeout means that write have 5 sec to send buffer to the underlying protocol.
I can't know if TCP succeed or not to deliver data in that short time. I think write is asynchron.
Problem is how to detect when client is disconnect and data are not delivered.
Once again, sorry if my English is not so good. -
I had sound on my computer last night but when turning on this morning there was no sound. It is not muted. Any suggestions. Also, when I try to run an event in IPhoto as a slide show, it shuts down.
Just to clarify, does iPhoto unexpectedly quit or does your computer shut down? For the sound problem, try here:
http://support.apple.com/kb/PH3837 -
How to modify the database by Oracle-ridc-client
How to modify the database by Oracle-ridc-client
First of all, from your question it is not very clear what kind of modifications you intend to do - one correct answer to your question could be "call any non-read-only service", which will result as insert/update/delete to a table somewhere. My guess is that this is not the answer you are looking for.
While working with RIDC (or CIS to answer your other thread at once) you have to understand that you integrate primarily with the application layer of your solution. If you want to modify the database scheme, you might, for instance, add a new metadata field - this is OK, because there is a service that you may call to achieve that. On the other hand you might want to change the db scheme directly (e.g. add a new column to a standard table); here neither RIDC, not CIS will help you unless you create a custom (server-side) service that you will call. Note, however, that you should be doing this only if you are really sure what you are doing. -
How Can I Speed Up My MacBook When Time Machine is running on Time Capsule
My Macbook starts to run really slow and I consistenly get the color wheel when trying to do other tasks when Time Machine is running in the background. I am connected to Time Machine on a Time Capsule. Given this runs every hour its really annoying.
Plus to pondini..
If possible you can use ethernet.. that speeds things up greatly.
If you are close to the TC make sure it is connecting via the 5ghz wireless.. Check the actual wireless link speed. And transfer rates.. if rates are too slow.. then look at relocating the wireless or putting in some sort of wireless extender.
I guess the other question is what is slow.. the disk on the computer, internet, just overall feel of the computer.. perhaps give a specific.. what is slow. -
Strange Random Tiny Non-moveable Window appears when an application is run.
Sorry if I posted this already, I thought I did, and even the subject auto-complete was prompted in my browser, but can't find the posting.
One of my users has a weird tiny, unmoveable, un minimizeable, un closeable box appear every time he opens a CVI program. He is the only one I know that has this issue in my group. Below are his comments, but I went ahead and copied his email in .doc format attached that has screenshots.
Comes up dead center of my “main monitor” – the Application
starts at top edge of main screen, centered left/right
This box comes up first, then the Application comes up over
the top of this. I can move the Application, but cannot move this
box. This box comes to “front”, on top of all other windows when the
Application is “in focus”. When I try to minimize this box, it minimizes
the Application, but this box does not move/minimize. If you close this
box, it closes the Application, then this box.
When the application is minimized, the box changes color
slightly, but stays there
The Application name seems to be in the ‘header bar’ of the
box, but usually only the 1st letter is visible
Thanks
Attachments:
little box issue.doc 29 KBThat does fix the issue as his video settings said to always move windows on screen. Disabling this allows for that sneaky annoying window to be off-screen.
Was this fixed in 2009 and now an issue again with 2010 CVI runtime? Or is this always an issue? i have 2010 and all my users would have installed a program that i have created with cvi 2010.
Thanks -
Advanced queueing: How to detect disconnect/database down if using callback
In my last thread here, I was able to create a callback mechanism for fetching messages posted to the AQ-queue. This means I can get rid of the loop that polls for messages, that we had earlier.
In the loop I could detect network problems, because the Dequeue function would throw an exception. When I have a callback, no exception is thrown, since I do not try to dequeue before I know there is a message there.
How can I handle detection of network problems/database problems when using callback? If not handled, the program thinks no mesages is sent, while actually the network might be down...
I'm not to keen on looping and polling to check for network status, as the whole point of callback was to avoid this :)
Regards,
Sverreupdate: I've tried to use both the OCI and OCCI failover callback, but it is not called when e.g. the network cable is disconnected.
Is there any way to get occi to notify me when there is something wrong with the connection? Right now my callback is never called again, if the network is disconnected and reconnected...
Anyone? -
Automating Database up & down when server start and shutdown in Linux
Hi to all,
Question:How to set in linux, whenever server is on the database up and server off the database down?
Problem: whenever i am issue the command "chkconfig --add dbora"
or "chkconfig --level 345 dbora on"
The message is as follows
service dbora does not support chkconfig.
I use oracle 9i on Redhat linux as 3.
please send reply as soon as possiblehttp://tldp.org/HOWTO/Oracle-9i-RH8-and-RH9-HOWTO-5.html ??
Maybe you can use this. Its probably also hidden somewhere inside manuals for unbreakable/redhat oracle linux on metalink. Dunno why they insist on NOT including this auto start/stop in installation - how hard can it be, if you know linux inside-out.... If they did, It should make them more comfortable competing with other rdbms vendors that dont object to making many such things working "out of the box" :) ..... (no pun intended) -
How can I shut my Mac down when it always reboots?
I am unable to shut down. I use the "Shut Down..." button, of course, but it's as if Im hitting "Restart...".
The Mac just... restarts! I've run Tech Tool 4 on it with no luck. REAL "Restart..." doesn't help. I've never written an Applescript, but I COULD do that, but don't really want to. Wazzup? How do I fix This?
Thanks!
Clif
Quicksilver G4 DP 1.7
1.5G ram
OS 10.4.11Hi, you may have to pull the plug on it then...
Resetting Cuda/PMU on Power Mac G5, Power Mac G4, Power Macintosh G3...
http://support.apple.com/kb/HT1939
Repair the HD after this...
"Try Disk Utility
1. Insert the Tiger Mac OS X Install disc that came with your computer, then restart the computer while holding the C key.
2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.
3. Click the First Aid tab.
4. Click the disclosure triangle to the left of the hard drive icon to display the names of your hard disk volumes and partitions.
5. Select your Mac OS X volume.
6. Click Repair. Disk Utility checks and repairs the disk."
http://docs.info.apple.com/article.html?artnum=106214
Then Safe Boot , (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it finishes.
Maybe you are looking for
-
Default Username and password for CCM DC-Directory Admin
What is the default username and password for accessing dc directory for callmanager ? TIA
-
I have an old application that has a text indicator requiring a non-proportionally spaced font. Years ago, it looked great with 11pt terminal font. I recently tried to update that application and noticed that the text display has became very ugly, bl
-
SD-FI interface table(s)
Dear CRM experts, I seek your kind advise on the following matter: On billing we wish to update the FI with an information from the SD as the 'assignment'. In the ECC we had done through a sort key and neceeeary entering of the "field's" value in the
-
Hey how to fix u apple id when u forgotten u email
hi i dunno how fix this problem i just need find the easyiers way i made a new apple id but it keeps comeing up with my old apple id how do i fix it with my new one only please help message me on [email protected] thankyou
-
My computer is a 64 bit PC and I am using the latest version og PS CC. The short cut key also comes up wkth nothing - CRT+shift+filtersF