How to alert user the Db is shutting down

Hi all:
Is there a way through forms such as using 'DBMS Alert' that will warn the users when the DB is being shut down. I need a proc or something that will warn the users on the system when the DB is being shut down. Does anyone have any suggestions on how to do this? whether it be a on the forms side, database side, or combination of both.

Russ Ferriday <[email protected]> writes:
We're using idb for prototyping. It's very convenient.
We get lots of these messages
Database idb is shutting down...
Database idb shutdown complete.
and performance is dismal. Does anyone have any tips to speed things up?Russ,
If you set your db/pool/max to a value greater than 0, IDB will keep
connections open, and performance should dramatically increase. However,
when your main thread completes, the JVM may not exit, as IDB's
connection cache may not be empty. We have played with various fixes to
this problem, but are reluctant to make significant code changes for it,
as we do not expect people to use a single-JVM IDB configuration in a
production environment.
To make your application behave nicely, you must explicitly invoke
System.exit() at the end of your main routine. Note that you should do
this in the finally clause of a try...finally block so that if an
exception is thrown in your code, the JVM will still exit. Additionally,
it would be a good idea to catch Throwables and print out the stack
trace, so that if an exception makes its way up to your main method, you
will see some indication of the failure:
public static void main (String [] args)
try
// your code here
catch (Throwable t)
t.printStackTrace ();
finally
System.exit (0);
I hope that this helps.
-Patrick
Patrick Linskey [email protected]
SolarMetric Inc. http://www.solarmetric.com

Similar Messages

  • How do I change the default on shutting down Lion to NOT relaunch open windows?

    How do I change the default on shutting down Lion to NOT relaunch open windows? And how can I have Safari always open in full screen mode? I have to set it every time I open Safari.

    The feature you are talking about in System Preferences does work and is not related in any way to the one at startup.
    One restores the windows of an application you've quit, the other reopens all windows you had open at shutdown or restart.
    Why should "I" have to constantly turn off a checkbox when I shutdown the system?
    You don' t have to.  Did you have a look at my post just above yours?  With a double click you can have your restart without opening the last open windows.  That's less than clicking the apple icon and selecting "restart" or "shut down" and then clicking "Restart" or "Shutdown" again.

  • How do you prevent the computer from shutting down when in sleep mode?

    How do you prevent the computer from shutting down when in sleep mode and plugged in?

    Thanks tjk.
    Those are great suggestions and got me looking in places I had not considered before. Unfortunately, the problem remains. The System Preferences did not have the shut down option activated and there are no parental controls active on the computer.
    Any other suggestions are welcome.
    Brian

  • How do I stop the pc from shutting down

    Hi, I'm getting very frustrated with my mac and very close to binning it and returning to a windows based pc.
    The mac closes down after 5 minutes, I've changed the energy saver settings to varying times and even leaving it on never shut down it still closes after 5 minutes. I recently installed the caffeine ap and that disappeared after using once.
    Can someone please help before I take the most drastic action and through this piece of **** in th bin?

    Thanks Mike, I didn't know of the etrecheck, report attached fyi and I appreciate any assistance with this problem.
    I will try resetting the SMC.
    Thanks,
    Kyle
    Problem description:
    the computer automatically sleeps after 5 minutes, even when energy saver set to never close down
    EtreCheck version: 2.1.8 (121)
    Report generated 12 February 2015 11:36:46 GMT
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        iMac (21.5-inch, Mid 2011) (Technical Specifications)
        iMac - model: iMac12,1
        1 2.5 GHz Intel Core i5 CPU: 4-core
        4 GB RAM Upgradeable
            BANK 0/DIMM0
                2 GB DDR3 1333 MHz ok
            BANK 1/DIMM0
                2 GB DDR3 1333 MHz ok
            BANK 0/DIMM1
                Empty  
            BANK 1/DIMM1
                Empty  
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
        AMD Radeon HD 6750M - VRAM: 512 MB
            iMac 1920 x 1080
    System Software: ℹ️
        OS X 10.10.1 (14B25) - Time since boot: 4:22:48
    Disk Information: ℹ️
        ST3500418AS disk0 : (500.11 GB)
            EFI (disk0s1) <not mounted> : 210 MB
            Macintosh HD (disk0s2) / : 499.25 GB (404.57 GB free)
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
        HL-DT-STDVDRW  GA32N 
    USB Information: ℹ️
        Seagate Slim  SL 500.11 GB
            Seagate Slim Drive (disk2s1) /Volumes/Seagate Slim Drive : 500.10 GB (422.31 GB free)
        Apple Internal Memory Card Reader
        Apple Computer, Inc. IR Receiver
        Apple Inc. FaceTime HD Camera (Built-in)
        Prolific Technology Inc. Mass Storage Device 80.03 GB
            New Volume (disk1s1) /Volumes/New Volume : 40.01 GB (6.28 GB free)
            New Volume (disk1s2) /Volumes/New Volume 1 : 40.02 GB (37.16 GB free)
        Apple Inc. BRCM2046 Hub
            Apple Inc. Bluetooth USB Host Controller
    Thunderbolt Information: ℹ️
        Apple Inc. thunderbolt_bus
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Startup Items: ℹ️
        TuxeraNTFSUnmountHelper: Path: /Library/StartupItems/TuxeraNTFSUnmountHelper
        Startup items are obsolete in OS X Yosemite
    Launch Agents: ℹ️
        [running]    com.trusteer.rapport.rapportd.plist [Click for support]
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [loaded]    com.microsoft.office.licensing.helper.plist [Click for support]
        [running]    com.trusteer.rooks.rooksd.plist [Click for support]
    User Launch Agents: ℹ️
        [failed]    com.apple.CSConfigDotMacCert-[...]@me.com-SharedServices.Agent.plist [Click for details]
    User Login Items: ℹ️
        iTunesHelper    Application  (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
    Internet Plug-ins: ℹ️
        FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        QuickTime Plugin: Version: 7.7.3
        Flash Player: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        NP_2020Player_WEB: Version: 5.0.94.0 - SDK 10.6 [Click for support]
        Default Browser: Version: 600 - SDK 10.10
        SharePointBrowserPlugin: Version: 14.4.7 - SDK 10.6 [Click for support]
        JavaAppletPlugin: Version: 15.0.0 - SDK 10.10 Check version
    3rd Party Preference Panes: ℹ️
        Flash Player  [Click for support]
        Trusteer Endpoint Protection  [Click for support]
        Tuxera NTFS  [Click for support]
    Time Machine: ℹ️
        Time Machine not configured!
    Top Processes by CPU: ℹ️
             2%    WindowServer
             0%    Safari
             0%    fontd
             0%    AppleSpell
             0%    askpermissiond
    Top Processes by Memory: ℹ️
        271 MB    com.apple.WebKit.WebContent
        193 MB    Safari
        52 MB    WindowServer
        47 MB    com.apple.WebKit.Networking
        47 MB    Dock
    Virtual Memory Information: ℹ️
        38 MB    Free RAM
        1.67 GB    Active RAM
        1.65 GB    Inactive RAM
        867 MB    Wired RAM
        4.19 GB    Page-ins
        46 MB    Page-outs
    Diagnostics Information: ℹ️
        Feb 12, 2015, 07:13:11 AM    Self test - passed
        Feb 11, 2015, 12:54:25 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.Plugin.64_201 5-02-11-125425_[redacted].crash

  • How to tell when the system was shut down?

    I'm curious to know what time my system lost power, whats a good way to tell? I have been checking the logs to get the last entry times but was curioius if there were other methods of telling when the box's power was interrupted?

    jo3 wrote:I'm curious to know what time my system lost power, whats a good way to tell? I have been checking the logs to get the last entry times but was curioius if there were other methods of telling when the box's power was interrupted?
    A rather ghetto way of doing it:
    #!/bin/bash
    log="/var/log/uptime-poll"
    pollsecs=10
    echo $$ > /var/run/uptime-poll.pid
    if [[ -f "$log.tmp" ]]; then
    echo "Lost power at: `cut -d';' -f2 "$log.tmp"`" >> "$log.log"
    fi
    while :; do
    date +'%s;%D %T' > "$log.tmp"
    sleep $pollsecs
    done
    ...and in /etc/rc.local.shutdown...
    killall $(cat /var/run/uptime-poll.pid)
    rm /var/run/uptime-poll.pid
    rm /var/log/uptime-poll.tmp
    Last edited by Wintervenom (2009-08-29 06:37:29)

  • How to alert user using BizTalk if a file is not dropped in a folder during a specified time using file adapter (or any other)

    Hi,
    I have a requirement wher the client wants BizTalk to alert users somehow when a file is not received at specific time. I am using a FILE receive adapter, the requirement is, if the FILE adapter does not receive a file on time then BizTalk should alert the
    users somehow. The client wants to use ESB toolkit to do this job.
    does anybody have any idea ?
    PLEASE HELP
    Thanks & Regards
    Vikram

    Duplicate Thread.
    Follow here:
    https://social.msdn.microsoft.com/Forums/en-US/3e314d17-8b0c-451c-921a-65dbab0612a8/how-to-alert-user-using-biztalk-if-a-file-is-not-dropped-in-a-folder-during-a-specified-time-using?forum=biztalkgeneral

  • How do I log in after a shut down when I forgot the password

    How do I log in after a shut down when I forgot the password

    Forgot Mac Password? How to Reset Your Mac Password (with or without CD)
    Change the Admin Password with Mac OS X Single User Mode

  • I have forgotten my appleID password and the email it is linked to is deactivated, security questions aren't working. This is on my iPhone and iTunes acs so I can't sync with my new computer. How do I merge AppleID accounts and shut down the old one?

    I have forgotten my appleID password and the email it is linked to is deactivated, security questions aren't working. This is on my iPhone and iTunes acs so I can't sync with my new computer. How do I merge AppleID accounts and shut down the old one (when I have no password and the security questions aren't working?)

    You cannot merge Apple ID accounts, that has never been supported.
    You can contact the Apple ID Security folks per the listing in http://support.apple.com/kb/HT5699 and they can help reset security questions and get the account working.

  • Hey, constantly since I installed the iOS 7.1 upgrade, my iPhone has been constantly shutting down and I think it's really frustrating and I whant to know how I can stop my iPhone from shutting down so I can downgrade to iOS 7.0.4?

    Hey, constantly since I installed the iOS 7.1 upgrade, my iPhone has been constantly shutting down and I think it's really frustrating and I whant to know how I can stop my iPhone from shutting down so I can downgrade to iOS 7.0.4?

    7.1.1 is certainly compatible with the iPhone 4. Just try a reset first.
    Close all open apps by double-tapping the home button, then swiping up and off the screen with the app window (not the smaller icon).
    Reset your device: hold down the home button along with the sleep/wake button until the screen goes black and you see the Apple, then let go. (No data loss)

  • What's the difference between shut down and log out?

    Hi,
    I have a MacBook Air and will sell it.
    I like to take out my name but don't know how.
    What will happen if I Log Out (my name comes after that)?
    What's the difference between Shut down and Log out?
    Help please,
    Thanks

    Welcome to the Apple Support Communities
    The shut down turns off the Mac and a log out closes your user and take your computer to the log in screen. To sell the Mac, you have to reinstall Mac OS X erasing the disk. Open  > About this Mac and copy Version

  • Bug Report iOS 7 iTunes. Since it is repeatable on 3 iPhones and 4 iPads here, I'm sure others are experiencing the same thing. Apple, might want to take a peek at this. When a tv show or movie is deleted from Videos, the Videos app shuts down.

    Bug Report iOS 7 iTunes. Since it is repeatable on 3 iPhones and 4 iPads here, I'm sure others are experiencing the same thing. Apple, might want to take a peek at this. When a tv show or movie is deleted from Videos, the Videos app shuts down instead of returning to video playlist.
    Restarting videos works and looks like video is getting deleted.
    Just a bug report

    You might want to report that to Apple instead of to the other users in this forum.
    http://www.apple.com/feedback/iphone.html

  • When i try to open dmg file for newest version of itunes, my mac pro does not open to install and freezes my main desktop toolbar so i can't select the apple to shut down, it also enables me to open any other programs?HELP PLEASE

    i've been forced by my comp to shut down several times by holding the power button because of the inability to select the apple and shut down correctly..idk if i got a rare mac virus or bug.. and some programs simply won't open when clicked on.. i don't know how this is possible after years of great performance..

    Where did you get this "dmg file"? To install the newest version of any Apple software, including iTunes, all you have to do is use Software Update from the Apple menu. This doesn't download any dmg, it automatically installs the software for you.
    Maybe try repairing your permissions from Disk Utility (in your Utilities folder).
    Also - What version of OS X do you have? Please update your forum profile so we can help you better.
    Matt

  • Windows message on PSE 7 says the prgm is shutting down.  I have XP sp 3.

    When I open PSE 7 and go to Organizer I get a Windows message saying an error reguires the program to shut down.  I have XP sp 3.  Elements was working ok until about a week ago.  I have been adding scanned images and some are indicated as too large and won't display.  They are jpegs.  I can continue to work in Organizer and ignore the message.  I have tried debugging and sending messages to Microsoft.  How can I resolve the message conflict with Windows?

    See HT203206: iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues.
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    The further information area has direct links to the current and recent builds in case you have problems downloading, need to revert to an older version or want to try the iTunes for Windows (64-bit - for older video cards) release as a workaround for installation or performance issues, or compatibility with QuickTime or third party software.
    Your library should be unaffected by these steps but there are also links to backup and recovery advice should it be needed.
    tt2

  • How can i get my mac to shut down correctly?

    This problem started a couple of days ago. I'm speaking of my iMac which is running Mac os Mavericks 10.9.4, it uses an Intel Core 2 Duo cpu as well. Recently when I shut down through the Apple button --> Shut down it simply goes to the white screen with the spinning gear at the bottom and it keeps spinning and does not shut down. The only way I can get my computer to shut down now is to force a shut down with the power button during an attempted shut down or just forcing it to shut down before trying to correctly shut it down through the Apple button --> Shut down. Please help, I've tried resetting the SMC as I've seen in other posts about this topic and any of the other issues that fixed it aren't my issue, I've checked. I'd appreciate any help given to try to fix my computer. Thank you in advance.

    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    For this step, the title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    In the top right corner of the Console window, there's a search box labeled Filter. Initially the words "String Matching" are shown in that box. Enter "BOOT_TIME" (without the quotes.)
    Each message in the log begins with the date and time when it was entered. Note the timestamps of the BOOT_TIME log messages, which refer to the times when the system was started. Now clear the search box and scroll back in the log to the last boot time when you had the problem. Select the messages logged before the boot, during the time something abnormal was happening. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    For example, if the system was unresponsive or was failing to shut down for three minutes before you forced a restart, post the messages timestamped within three minutes before the boot time, not after. Please include the BOOT_TIME message at the end of the log extract—not at the beginning.
    If there are long runs of repeated messages, please post only one example of each. Don’t post many repetitions of the same message.
    ☞ When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    ☞ Some private information, such as your name, may appear in the log. Anonymize before posting.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Step 2
    In the Console window, select
              DIAGNOSTIC AND USAGE INFORMATION ▹ System Diagnostic Reports
    (not Diagnostic and Usage Messages) from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar.
    There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points down. You'll see a list of reports. A crash report has a name that begins with the name of the crashed process and ends in ".crash". A panic report has a name that begins with "Kernel" and ends in ".panic". Select the most recent of each. The contents of the report will appear on the right. Use copy and paste to post the entire contents—the text, not a screenshot.
    I know the report is long, maybe several hundred lines. Please post all of it anyway.
    ☞ If you don't see any reports listed, but you know there was a crash or panic, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    ☞ Please don’t post other kinds of diagnostic report—they're very long and rarely helpful.

  • Hi, 3 weeks ago i just got my iphone4 for and then i upgraded it to iOS5..am just wondrin', does changing of the iOS causes the phone to shuts down automatically and turn on again? thanks.. =)

    hi, 3 weeks ago i just got my iphone4 for and then i upgraded it to iOS5..am just wondrin', does changing or upgrading the OS causes the phone to shuts down automatically and turn on again? thanks.. =)

    How long are you leaving it on the charger?
    Are you connecting it directly to an electrical outlet or trying to charge via USB?  USB may not provide enough power to adequately charge the device if the battery is that low.
    If none of that helps, then the only option would be a warranty replacement as either the battery or system board is bad.

Maybe you are looking for