Setting a System wide lock timeout (clx)

I'd like to know how it is possible to set a system wide lock timeout!
For example, I need that a transaction waiting for a row more than 10 seconds, was automatically rolled back!
I tried to use a trigger found in the documentation:
CREATE OR REPLACE TRIGGER resumable_default_timeout AFTER SUSPEND ON DATABASE BEGIN DBMS_RESUMABLE.SET_TIMEOUT(10); END;
but seems not to work.
Can someone help me?
G.

Steve,
your answer is complete, the problem I am facing is that:
1 - I should instruct my programmers of the usabily of this tecnique the SELECT ... FOR UPDATE WAIT n, so the timeout is faced from application perspective, and it isn't so bad, in fact every single query could be customized regarding the WAIT time!
The drawback is that if the programmer doesn't use this technique, the application waits for the eternity.
2 - A system wide lock timeout, in any case could force, in any case, a default behaviour, ...
3 - If you are doing a porting from a different RDBMS see DB2, that implements a db lock timeout, you should recode all the SQL, and the porting needs more review and testing of the application!
Thank you
very much
G.

Similar Messages

  • System wide Lock timeout

    Hi,
    I'd like to set a system wide lock timeout to 10 secs, i est I want that if a transaction waits for a row more than 10 seconds, the Oracle forces a ROLLBACK!
    Looking in the documentation I found the trigger:
    CREATE OR REPLACE TRIGGER resumable_default_timeout AFTER SUSPEND ON DATABASE BEGIN DBMS_RESUMABLE.SET_TIMEOUT(10); END;
    ... but it seems not to work.
    Is there any system wide parameter, or another trigger, or I missed something with the above trigger (I shutdown any session to test)!
    thank you
    G.

    Steve,
    your answer is complete, the problem I am facing is that:
    1 - I should instruct my programmers of the usabily of this tecnique the SELECT ... FOR UPDATE WAIT n, so the timeout is faced from application perspective, and it isn't so bad, in fact every single query could be customized regarding the WAIT time!
    The drawback is that if the programmer doesn't use this technique, the application waits for the eternity.
    2 - A system wide lock timeout, in any case could force, in any case, a default behaviour, ...
    3 - If you are doing a porting from a different RDBMS see DB2, that implements a db lock timeout, you should recode all the SQL, and the porting needs more review and testing of the application!
    Thank you
    very much
    G.

  • Change the file set icons system wide

    Hello,
    I am trying to change all my .html, .js, .css file sets, system wide. Right now they are all the plain boring white with text. If I go into a folder they quickly appear with their more colorful Dreamweaver, photoshop, etc icon, but quickly jump back to the plain white, boring icon. I know how to change the files icons one by one, but obviously that could take a while.
    Looking for an easy way to change my files system wide wothout screwing anything up. Recently came from a PC and loving my mac (never going back).
    Thanks in advance!

    Hi
    Still no :o)
    The only way around it, is to wrap your conc process that generates the etext output either with another program or if its an Oracle Report based program, in the after report trigger. That will get a handle on the generated file, easy enough cos you'll know the requestid, and then copy and rename it to the same or another location. We used to do this for a payments process in the Netherlands localization we ship.
    Tim

  • Setting up system wide EQ via Automator workflow

    hello,
    many people might have tried to set up a system wide eq, which is not as easy on mac as maybe windows. now i figured it out by using soundflower and AU lab - i'm sure there are threads about this already.
    so when i'm say watching a movie late at night and dont want to disturb the neighbours i plug in the hdmi cable of the telly. then i need to go through the rigmarole of changing the sound preferences, starting soundflower and AU lab and load an AU lab preset that i made including the EQ settings, that cancel out the annoingly loud bass frequencies. how do i automate this workflow with automator? better yet could it be triggered by hooking up the hdmi cable? in reverse i need a workflow that changes the settings back for when the laptop stands alone.
    obviously i've tried recording what i do, but automator somehow cant handle the part of getting into system preferences. and i also dont find options in automator for various system preferences menu items.
    can someone please please give me a tip how to make it work. id be really happy!
    thank  you!!

    "does anyone have any idea how to get into the system preferences in automator? "
    Yes:
    Launch Application > System Preferences
    But realize that getting into a particular preference pane and clicking buttons via Automator will likely require an AppleScript solution. Watch Me Do does work, but the action is quite finicky and often misunderstood. WMD doesn't track and target buttons or icons. It targets screen location. If items on your screen move--sometimes by as little as a pixel--WMD will fail. No fault of WMD; it's just the way the action functions.
    You may want to repost your question in the AppleScript subforum: https://discussions.apple.com/community/mac_os/mac_os_x_technologies

  • Set system-wide Finder view preferences

    I know that .DS_Store files are created in every directory I enter with the finder in Mac OS X, and that keeps track of the folder's metadata (including how is it being displayed). I also know that this command:
    sudo find /Users/[USERNAME]/ -name ".DS_Store" -depth -exec rm -f {} \;
    ... will recursively delete all .DS_Store files insite the /Users/[USERNAME]/ folder.
    Also, I know that when pressing CMD+J inside a finder window, selecting the configuration I want (40x40 icons, small-medium grid space, arrange by kind, text size 10px, show item info, show icon preview, background white) and selecting "use as defaults" will.. well, make it the default, and holding OPT will restore it to THAT default.
    The thing is that, when I create a new folder, it doesn't take those parameters. And the folders that HAD .DS_Store files deleted keep that previous configuration, not the "default" one.
    What can I do to set a system-wide, consistent finder look?
    I'm on Mac OS X 10.6.6.

    Hi,
    I think I remember a similar problem in Tiger yonks ago. I recall the solution was to make all the changes to the Finder whilst in an Admin account - this way the choices stick for all windows?
    Worth a shot.
    S.

  • System-wide alarm in iPhone SDK

    Is there an equivalent of CalAlarm class in the iPhone SDK? Does anyone know how else we can set a system-wide alarm?

    Until push notification is added to the SDK, you cannot set a system-wide alarm.

  • Save as system wide default

    Hi,
    I did some changes to some column and set as system wide default for that column in dev.
    1. for example there are 20 existing reports using this column. does this format applicable to existing reports?
    2. How can I migrate this system wide default change to set of column from dev to test?
    Thanks
    Jay.

    1. Yes
    2. http://gerardnico.com/wiki/dat/obiee/promotion

  • Setting ALSA sound card system wide (rather than just in KDE)

    Hi,
    I've got an HTPC with an ATI Radeon HD 4350 graphics card running Arch x86. It has its own integrated sound card for outputting audio via HDMI, which is detected by ALSA as a separate device. I've managed to set it as the default audio device in KDE 4 (via System Settings). This allows applications such as Amarok and SMPlayer to properly output audio to the HD 4350's integrated sound card, but software such as Flash and MPlayer (from the command line) are still outputting audio to the motherboard's built-in sound card. How can I change this setting on a system-wide level? I've tried running alsaconf as root and adding
    pcm.!default {
    type hw
    card 2
    device 3
    to ~/.asoundrc; I got the card and device numbers from aplay:
    [htpc@exia ~]$ aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: Intel [HDA Intel], device 0: HDA Generic [HDA Generic]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: HDMI [HDA ATI HDMI], device 3: ATI HDMI [ATI HDMI]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    Here is the output from MPlayer when I try to play a video, complete with errors regarding audio:
    MPlayer UNKNOWN-4.4.0 (C) 2000-2009 MPlayer Team
    137 audio & 296 video codecs
    mplayer: could not connect to socket
    mplayer: No such file or directory
    Failed to open LIRC support. You will not be able to use your remote control.
    Playing /tmp/FlashmvWXPy.
    libavformat file format detected.
    [flv @ 0xac7d250]skipping flv packet: type 18, size 294, flags 0
    [lavf] Video stream found, -vid 0
    [lavf] Audio stream found, -aid 1
    VIDEO: [H264] 854x480 0bpp 29.970 fps 0.0 kbps ( 0.0 kbyte/s)
    ==========================================================================
    Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
    Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
    ==========================================================================
    ==========================================================================
    Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
    FAAD: compressed input bitrate missing, assuming 128kbit/s!
    AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
    Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
    ==========================================================================
    [AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
    [AO_ALSA] alsa-lib: confmisc.c:768:(parse_card) cannot find card '2'
    [AO_ALSA] alsa-lib: conf.c:3513:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
    [AO_ALSA] alsa-lib: confmisc.c:392:(snd_func_concat) error evaluating strings
    [AO_ALSA] alsa-lib: conf.c:3513:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
    [AO_ALSA] alsa-lib: confmisc.c:1251:(snd_func_refer) error evaluating name
    [AO_ALSA] alsa-lib: conf.c:3513:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
    [AO_ALSA] alsa-lib: conf.c:3985:(snd_config_expand) Evaluate error: No such file or directory
    [AO_ALSA] alsa-lib: pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM default
    [AO_ALSA] Playback open error: No such file or directory
    [JACK] cannot open server
    [AO SDL] Samplerate: 44100Hz Channels: Stereo Format s16le
    [AO_ALSA] alsa-lib: confmisc.c:768:(parse_card) cannot find card '2'
    [AO_ALSA] alsa-lib: conf.c:3513:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
    [AO_ALSA] alsa-lib: confmisc.c:392:(snd_func_concat) error evaluating strings
    [AO_ALSA] alsa-lib: conf.c:3513:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
    [AO_ALSA] alsa-lib: confmisc.c:1251:(snd_func_refer) error evaluating name
    [AO_ALSA] alsa-lib: conf.c:3513:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
    [AO_ALSA] alsa-lib: conf.c:3985:(snd_config_expand) Evaluate error: No such file or directory
    [AO_ALSA] alsa-lib: pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM default
    [AO SDL] Unable to open audio: No available audio device
    DVB card number must be between 1 and 4
    AO: [null] 44100Hz 2ch s16le (2 bytes per sample)
    Starting playback...
    VDec: vo config request - 854 x 480 (preferred colorspace: Planar YV12)
    VDec: using Planar YV12 as output csp (no 0)
    Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
    VO: [xv] 854x480 => 854x480 Planar YV12
    Thanks!
    Last edited by w1ntermute (2009-06-28 18:40:03)

    whoops wrote:Do you use the motherboard sound-card?
    No.
    whoops wrote:If not - did you try just turning it off in bios (or blacklisting the driver)?
    No, I haven't tried that. I'll give it a shot. Thanks for the tip!
    Last edited by w1ntermute (2009-07-02 18:11:53)

  • W2K8 & Win7 - Setting system-wide Trusted file locations not working

    Win 2008 Network, Win 7 workstations.
    RE: Setting system-wide trusted file locations
    I have an application using Flash stored on a network location that accesses other files in the same location.  This causes the security warning "The following local application... is trying to communicate with this internet-enabled..."  I can add the location to the trusted sites in the Setting Manager and the warning goes away.  It is not practical however to do this on every machine on the network.  I have tried the FlashPlayerTrust directory and mms.cfg file and neither of these seem to work.  Is there a trick to getting the FlashPlayerTrust directory to work properly.  If I could get this working, I could create a script that copies this file to all machines on the network. 
    Any help you be greatly appreciated. 

    Hi Todd,
    Can you please provide just a little more detail?
    * When you say "accessess", what API is being used?  Are the paths to the other files relative, file: URI http: URI, other?
    * In the FlashPlayerTrust directory, are you using the same path notation as appears in the Settings Manager?  What's a sample {filename}.{ext} being used?
    Thanks!
    -Erica

  • Using /etc/bash.bashrc to set system-wide alias

    Hi,
    I would like to set some system-side aliases and from what I read /etc/bash.bashrc is the correct place to put them.
    However, it seems that the root account doesn't load this file. 
    What is the correct way to define system-wide aliases?
    Thanks.

    To be more specific, the aliases are not visible when I use a login shell i.e. 'su -'.
    According this explanation http://stefaanlippens.net/bashrc_and_others this is correct. 
    So, do I need to duplicate the aliases in /etc/profile so they are visible from login shells?  Or there is a way to define system-wide aliases for
    login and non-login shells?
    Thx.

  • System-wide MTU 1400 setting?

    How do I setup the interfaces to use MTU of 1400?
    I have been able to add "mtu 1400" to /etc/hostname.XXX and got those NICs to set mtu to 1400.
    However when I bring up the zones, the virtual NICs that get created in the process, sets the MTU to 1500.
    Similarly in Veritas Cluster environment, when I bring up the service group, the virtual NIC that gets plumbed, also sets MTU to 1500.
    Other than running a script to scan each NIC and executing - ifconfig <NIC> mtu 1400 - is there a way I can set the MTU to 1400 system-wide?
    I need this setting for both Solaris 10 and Solaris 9 boxes.
    If anybody has any input/suggestion on how to do this, please reply.
    Thanks.
    - SG

    Unfortunately I am unable to debate why MTU is set to 1400. I have been requested to do that by the Architect/Network/Firewall engineers. Even the Windows guys have to do this on this boxes as well. Please if anybody knows how I can make this a system-wide setting without having to write a script, I would deeply appreciate it. Any engineers working at Sun who monitor these forums care to reply, please?
    - SG

  • System wide default setting of column properties

    Hi
    How could I get rid of 'system-wide default' properties which got set to the column properties? (BISE1 10.1.3.2.1 Answers....criteria)
    Thanks and Regards,
    Charudatta

    ASCII and thou shall be ANSI ;-)
    http://siebel-essentials.blogspot.com/2008/08/remove-system-wide-default-settings-in.html
    Ok, that was a lame joke , I admit.
    Cheers,
    C.

  • Set system wide default mailto url

    I'm trying to configure system wide settings in linux so any new user will apply for this settings.
    I want register my zimbra server with mailto links.
    I've found some information here:
    http://www.zimbra.com/forums/general-questions/48547-how-control-mailto-selection-firefox.html
    but this must be performed by the user and I want to be preconfigured.
    I also tried to play with mimeTypes.rdf, but it seems that there's no system wide mimetypes file. is just created when users changes something.
    how can I setup that setting system wide?

    I've found a partial solution.
    create an application file, for example '''/usr/share/applications/zimbra.desktop''' with this content:
    [Desktop Entry]
    Icon=mail-message-new
    MimeType=x-scheme-handler/mailto;
    Name=Zimbra
    Comment=Zimbra
    Exec=xdg-open https://my.zimbraserver.com/zimbra/?view=compose&to=%u
    Type=Application
    X-XFCE-MimeType=x-scheme-handler/mailto;
    then modify file '''/etc/gnome/defaults.list''', find and substitute '''x-scheme-handler/mailto''' with filename you just created:
    ''x-scheme-handler/mailto=zimbra.desktop''
    the caveat is only works with unity, if you use another wm probably won't work

  • Urgent Assistance Needed:  All Documents deleted after setting system-wide viewing preferences for Finder

    I got myself into some trouble...
    Following the guide here to force a default Folder view to sub folders:  http://apple.stackexchange.com/questions/10488/system-wide-finder-view-preferenc es
    Which is:
    There is a simpler way.
    In the Terminal, navigate to your $HOME directory: cd ~
    Remove all the .DS_Store files:find ~ -name ".DS_Store" -depth -exec rm -f {} \;
    Relaunch finder going to: Force Quit → Finder
    Set your global preferences using ⌘J and press the Use as default button.
    Now, every folder you open or create will have the new settings.
    I now have the existing Folder structure in tact for Documents, but every single file is gone (in my entire Documents directory).
    Naturally I'm thinking two things:
    1)  Oh no.  I knew better than to go down this path without knowing exactly what I was doing.
    2)  How do I "get my files back..."
    I'm not sure if they're just not viewable or if they were deleted.  Essentially everything I've configured on the machine (From Apple login to mouse scroll reversal) has been undone.  I don't have TimeMachine set up yet - I brought two remote hard drives to work today to get it done but they're both NTFS so I couldn't progress. 
    I'm reasonably technical but new to Mac. 
    Advice is greatly appreciated... I'm GREATLY distressed at the moment...
    <Edited by Host>

    Ok so "DS_Store files are used by Mac OS X to store folder specific metadata information."  Supposedly they get recreated... except I didn't get a nice smooth transition of newly created invisible, instead every file on my machine is "gone."

  • Is it possible to set the heap size limits in system-wide config?

    Hi,
    I am trying to set the JRE heap size limits (-Xms and -Xmx) by using the system-level deployment.properties file. The JRE version is 1.6 update 6.
    Normally, I would have something like this in the user-level deployment.properties file:
    deployment.javapi.jre.1.6.0_06.args=-Xms64M -Xmx192MHowever, when the same line is put in the system-level properties, it does not seem to have any effect. I have tried different options, also unsuccessfully:
    javaplugin.vm.options=-Xms64M -Xmx192M
    or
    javaplugin.minHeapSize=64m
    javaplugin.maxHeapSize=192mIs it not possible to address this setting via system-level properties at all? I am hoping that I will not have to resort to per-user config files.
    Best regards,
    Martin

    Hi Michael,
    thank you for your answer. I am sorry, I was unable to find the link to the message 10144001.
    My ultimate goal would be setting the system level settings as opposed to settings per applet. I was unable to find any mentioning of "deployment.javapi.jre.X.X.X_XX.args" in the official documentation here: http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/properties.html
    Best regards,
    Martin

Maybe you are looking for

  • How much is an ipad 3 screen replacement uk

    My son got new ipad for Christmas, only present from whole family I may add, he fell and cracked the screen any idea how much a replacement screen would be ?

  • Document Numbering Problem

    Hi Created one user define table of  Document Type... this table used to store some parameters..(Addon) i uploaded nearly 200 parameters to that table  using SQL bulk upload concept succesfully.. But as per sap the next document numbering will ( in N

  • The Pictures on my blog are getting over the text...

    Sorry if this has been asked before but I did a search and could not find any answers. The Pictures on my blog are getting over the text even though, in my original they are not...! I don't know what to do, can anyone help...? Rogerzb.-

  • MySQL question regarding default values

    For the contacts management tutorial the contacts table ('contact_con') lists data for names as: `name_con` varchar(50) NOT NULL default '' However, in the PHPAdmin panel the "default" field is referenced by a footnote which reads: "For default value

  • Widgets won't function

    when i open dashboard, none of my widgets show up. when i press the "+", all my widgets show up on the bottom, but when i drag a widget from the menu along the bottom to the upper area on which it's supposed to function, the widget shows up for a sec