[SOLVED] Trigger action once port is up

Hi,
On my computer I have two programs installed that start as systemctl services after the other. The first program is oracle-xe, a non free DBMS which I have installed from AUR. The second program is TOPdesk, a professional service management tool which is not publicly available. TOPdesk depends on oracle-xe; it connects to the oracle-database via port 1521. The problem is that TOPdesk often fails to start because the "systemctl start oracle-xe" commands ends before the functionality of oracle-xe is available. In particular port 1521 is not up yet when the TOPdesk service is started.
I want to solve this problem with a recursive bash script, which basically stops TOPdesk from starting until port 1521 is up. I then call this script from within the systemctl service, either in the oracle-xe.service after the oracle command, or in the TOPdesk service before the TOPdesk command.
/usr/bin/port1521check.sh file
#!/bin/sh
# this is a recursive bash script
if [ CHECK-IF-PORT-1521-IS-UP ]; then
echo oracle-xe is up
else
sleep 1
echo waiting for oracle-xe
/usr/bin/port1521check.sh
fi
The exact issue here is the CHECK-IF-PORT-1521-IS-UP in the script above. How should this be solved?
These are the two systemctl files that are called. Note the commented line that refers to the script /usr/bin/port1521check.sh
oracle-xe.service file
[Unit]
Description=Oracle XE
[Service]
Type=oneshot
ExecStart=/etc/rc.d/oracle-xe start
#ExecStart=/usr/bin/port1521check.sh
ExecStop=/etc/rc.d/oracle-xe stop
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
topdesk54.service file
[Unit]
Description=TOPdesk 5.4SP1
Requires=oracle-xe.service
After=oracle-xe.service
[Service]
Type=forking
PIDFile=/opt/topdesk54/TOPdesk.pid
ExecStart=
#ExecStart=/usr/bin/port1521check.sh
ExecStart=/opt/topdesk54/topdesk start defaults
ExecStop=/opt/topdesk54/topdesk stop
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
Firstly, do you think I am I on the right track with this approach? Secondly, what command or script can I use to actually make this script see that port 1521 is up? Is it possible to use nmap output of a scan of localhost? Google has not been very helpful with this issue.
Many thanks in advance!
Last edited by anadyr (2015-05-14 07:14:27)

Only type=oneshot can have multiple ExecStart= lines, so you cannot call port1521check.sh from topdesk54.service in this manner. I would probably write a wrapper script for topdesk54 that waits for the port then exec's it. You can use nc -z to test a port. Also the env has been sanitized so you may not have a PATH. Also, tail recursion is wierd. So, something like:
#!/usr/bin/bash
until /usr/bin/nc -z -w1 localhost 1521 ; do
echo waiting for oracle-xe
/usr/bin/sleep 1
done
echo oracle-xe is up
exec /opt/topdesk54/topdesk "$@"

Similar Messages

  • Code to trigger action once progress bar finishes or window disappears

    Hi all,
    I'm somewhat new to Xcode and I was wondering if anyone knew if it was possible to create an application that interacts with another running application in the form of performing a task once a progress bar completes in the second app. or a window disappears.
    thank you,
    Kyle

    Your code snippet doesn't show any progress bar.
    Anyway, if the one works in the one browser and not in the other browser, then this is definitely a problem with a client side language and NOT with a server side language such as Java/JSP.
    Doublecheck the cross browser compatibility of your HTML, CSS and Javascript code.

  • Trigger actions through a program

    Hi experts,
      Here is my business functionality.
      I have to implement a badi for a customer request in crm. this would check the product against the reason code entered. If both match then i need to trigger action (actions are already defined) otherwise i have to collect error message in application log. I am through with the later half but dont know how to proceeed to action triggering.
      Can somebody pls help me out. Thanks in advance

    Hi Manuel,
    I have already seen that blog but when i copied the program , it gave me the error when the method for triggering the action is called. it gave me a short dump sayin
    Access via 'NULL' object reference not possible.
    The reason for the exception is:
    You attempted to use a 'NULL' object reference (points to 'nothing')
    access a component (variable: "LV_ACTION").
    An object reference must point to an object (an instance of a class)
    before it can be used to access components.
    Either the reference was never set or it was set to 'NULL' using the
    CLEAR statement.
    at line CALL METHOD lv_action->set_is_inactiv( space )..  "
    and since i have never used this method, i dont know how to solve this error. so can you please help me out with this

  • Is it possible to trigger action in backing bean on page unload event?

    Hi,
    There is a RichPopup in my page which has a Listener to save data or not by user choice "Data change detected, do you want to save those changes?"
    I've tried with the javascript event 'window.onbeforeunload', but this way must be fit with a Servlet function which I am not allowed to use.
    The attibute 'onunload' in the tag '<af:document>' seems useless. Even there is few description or example in the 'Tag Reference'.
    So, is it possible to trigger action in backing bean on page unload event? Thanks in advance for helping.
    Viva

    Hi Frank
    Thanks for helping, I've tried in your way. My codes are like below:
    Page codes:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1" clientComponent="true" title="viva test">
          <af:resource type="javascript">
            if (!window.addEventListener) {
                // alert('window.addEventListener is not supported in IE8. Override it!');
                window.addEventListener = function (type, listener, useCapture) {
                    window.attachEvent('on' + type, function() {listener(event)});
            window.addEventListener('beforeunload', function (){performUnloadEvent()}, false);
            function performUnloadEvent() {
              var eventSource = AdfPage.PAGE.findComponentByAbsoluteId('d1');
              //var x and y are dummy variables obviously neeed to keep the page
              //alive for as long it takes to send the custom event to the server
              var x = AdfCustomEvent.queue(eventSource, 'handleOnUnload', {args:'noargs'}, false);
              var y = 0;
          </af:resource>
          <af:serverListener type="handleOnUnload" method="#{vivaTestBean.testOnUnload}"/>
          <!--
          <af:form id="f1">
            <af:commandButton text="Unload" id="cb1" action="unload"/>
          </af:form>
          -->
        </af:document>
      </f:view>
    </jsp:root>The backing bean codes:
    public class VivaTestBean {
        public VivaTestBean() {
        public void testOnUnload(ClientEvent clientEvent) {
            System.out.println("Thanks God");
    }The first way which triggers a 'unload' event by clicking a button DO WORKS. :)
    But when I changed the triggered way by changing the <af:document> to clientComponent as what you did, the 'onbeforeunload' event won't come out when I refreshed or closed the page.
    That doesn't make sence, since I think the two ways to trigger a 'unload' event are the same.
    Edited by: 841766 on 2011-3-7 上午1:13

  • On Mac created swf file looses actions once opened on PC

    The following issue is occuring:
    We create an ebook with Indesign CS5. Then create an FLA file from it or export from pdf to swf straight via InDesign. We create swf in HTML and an Exe file. The following happens:
    The Exe file is totally corrupted. Once opened on the PC either in Explorer or FireFox The file just goes wild no actions work at all. The HTML with the swf file works partly. The sound buttons don't work nor the external links in the files. This is a major isuue and we must find a solution for this.
    Best Regrads!
    Itale

    So far I made a bit of progress and the following happens:
    The original file is created in InDesign CS5 for Mac with animations, sounds and internal and external (Go To URL) links.
    Once exported to SWF from Indesign and opened either with Flash player or Firefox on the Mac everything seems to be in order. Once I open the file on a browser on the PC s.a. Explorere or Firefox the external links won't work. All the rest works but the GoTo URL won't open the url's
    I can't seem to find a reason for this. Are you familiar witrh this issue and if so do you have any suggestions that may solve this issue?
    Kind Regards

  • Submit button from Adobe form doesn't trigger action???

    Hi all,
    the submit button within Adobe form doesn't trigger any action that i wrote. it happens to my machine, but it doesn't happen on some of my colleague's machines.
    i am using Adobe reader 8, when the first time i use IE to display the app, it prompts me to install some kind of activeX plug in, and after it installed, it told me that some setting is not correct, and it mentioned about adobe reader 6 or 7.
    will downgrade to 6 or 7 solve this problem? is there any other walkaround for it?
    thank you!

    If you are on Netweaver 2004s SP9 or higher, you could change the displayType property of InteractiveForm UI element to "Web Dynpro Native" and use the submit button from "Native" tab.
    If you are any other lower version, you dont have a choice but to use "activeX" which requires Active Component Framework (ACF) to communicate with server. You need to use button from "Web Dynpro ActiveX" tab. You need to install the right version of ACF (SAP Note 766191). Better if you use Adobe Reader 8.1.2.
    Thanks
    Ram

  • Sending trigger through parallel port, C++, Visual Studio 2010, Windows 7

    Hi, I have a problem that I am really stuck with, and I am novice to the task so any help would be extremely helpful.
    I an trying to write to parallel port on my PC in order to send a trigger to EEG recording machine every time the new goal appears in a Virtual Reality game that I wrote in C++ (I want to record EEG brain signals while subjects are playing the game).
    I tried to follow the instructions from here: http://msdn.microsoft.com/en-us/library/ff802693.aspx
    I wrote the following code:
    BOOL FileExists(LPCTSTR szPath)
    DWORD dwAttrib = GetFileAttributes(szPath);
    return (dwAttrib != INVALID_FILE_ATTRIBUTES && 
    !(dwAttrib & FILE_ATTRIBUTE_DIRECTORY));
    BOOL WriteABuffer(char * lpBuf, DWORD dwToWrite)
    OVERLAPPED osWrite = {0};
    DWORD dwWritten;
    DWORD dwRes;
    BOOL fRes;
    // Create this write operation's OVERLAPPED structure's hEvent.
    osWrite.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
    if (osWrite.hEvent == NULL)
    // error creating overlapped event handle
    return FALSE;
    // Issue write.
    if (!WriteFile(ghComm, lpBuf, dwToWrite, &dwWritten, &osWrite)) {
    if (GetLastError() != ERROR_IO_PENDING) {
    // WriteFile failed, but isn't delayed. Report error and abort.
    fRes = FALSE;
    else
    // Write is pending.
    dwRes = WaitForSingleObject(osWrite.hEvent, INFINITE);
    switch(dwRes)
    // OVERLAPPED structure's event has been signaled.
    case WAIT_OBJECT_0:
    if (!GetOverlappedResult(ghComm, &osWrite, &dwWritten, FALSE))
    fRes = FALSE;
    else
    // Write operation completed successfully.
    fRes = TRUE;
    break;
    default:
    // An error has occurred in WaitForSingleObject.
    // This usually indicates a problem with the
    // OVERLAPPED structure's event handle.
    fRes = FALSE;
    break;
    else
    // WriteFile completed immediately.
    fRes = TRUE;
    CloseHandle(osWrite.hEvent);
    return fRes;
    I get none of the specified errors, but game fails to start and it seems nothing gets written to parallel port. Any suggestions on how to proceed from here would be more than appreciated.
    Thank you, Joanna

    Hi, I have a problem that I am really stuck with, and I am novice to the task so any help would be extremely helpful.
    I an trying to write to parallel port on my PC in order to send a trigger to EEG recording machine every time the new goal appears in a Virtual Reality game that I wrote in C++ (I want to record EEG brain signals while subjects are playing the game).
    I tried to follow the instructions from here: http://msdn.microsoft.com/en-us/library/ff802693.aspx
    I wrote the following code:
    BOOL FileExists(LPCTSTR szPath)
    DWORD dwAttrib = GetFileAttributes(szPath);
    return (dwAttrib != INVALID_FILE_ATTRIBUTES && 
    !(dwAttrib & FILE_ATTRIBUTE_DIRECTORY));
    BOOL WriteABuffer(char * lpBuf, DWORD dwToWrite)
    OVERLAPPED osWrite = {0};
    DWORD dwWritten;
    DWORD dwRes;
    BOOL fRes;
    // Create this write operation's OVERLAPPED structure's hEvent.
    osWrite.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
    if (osWrite.hEvent == NULL)
    // error creating overlapped event handle
    return FALSE;
    // Issue write.
    if (!WriteFile(ghComm, lpBuf, dwToWrite, &dwWritten, &osWrite)) {
    if (GetLastError() != ERROR_IO_PENDING) {
    // WriteFile failed, but isn't delayed. Report error and abort.
    fRes = FALSE;
    else
    // Write is pending.
    dwRes = WaitForSingleObject(osWrite.hEvent, INFINITE);
    switch(dwRes)
    // OVERLAPPED structure's event has been signaled.
    case WAIT_OBJECT_0:
    if (!GetOverlappedResult(ghComm, &osWrite, &dwWritten, FALSE))
    fRes = FALSE;
    else
    // Write operation completed successfully.
    fRes = TRUE;
    break;
    default:
    // An error has occurred in WaitForSingleObject.
    // This usually indicates a problem with the
    // OVERLAPPED structure's event handle.
    fRes = FALSE;
    break;
    else
    // WriteFile completed immediately.
    fRes = TRUE;
    CloseHandle(osWrite.hEvent);
    return fRes;
    I get none of the specified errors, but game fails to start and it seems nothing gets written to parallel port. Any suggestions on how to proceed from here would be more than appreciated.
    Thank you, Joanna

  • Using cue points in Flash CS5 to trigger actions

    Hi there,
    I'm looking to use a cue point in a video to trigger an action, in this case go to and play at a movie clip on the stage. Is this possible. My setup is as follows:
    I've a video on stage with the instance name 'vid', with a cue point 'lap1' (an actionscript cue point created directly in Flash using the properties panel). When the video reaches cue point 'lap1', I want it to go to and play frame 2 of a movie clip I've got on stage with the instance name 'cueMovie'.
    Any help would be great; I've looked online for tutorials but no joy.
    Cheers,
    Conor

    1  stop();
    2  varListenerObject:Object = new Object();
    3  listenerObject.cuePoint = function(eventObject:Object):Void{
    4  trace(Cue Point:"+ eventObject.info.name);
    5  trace("event:"+eventObject.info.type);
    6  if(eventObject.info.name=="cue Point 1"){
    7  gotoAndStop(2);
    8  }
    9
    10 }
    if your cue point is named cue point 1 then you can leave script as it is if not you have to insert your cue point name> Also it has to be an event type of cue point to work.

  • How to trigger action dynamically in Web Dynpro ABAP?

    Hi,
    I need to trigger an action dynamically. How do I do that?
    Eg. I have Search Tab where I input Purchase Order Number and press Find button to get the PO details.
    Now I have an Overview Tab where I have listed all the Purchase Orders, after selecting a purchase order I click the Transfer button on the Overview Tab, on clicking on transfer button I navigate to the Search Tab and the PO number selected in Overview Tab is binded and appears in the Search Tab.
    In the same flow I also want to trigger the action without clicking on Find button of Search Tab so that I get the search results.
    Please let me know how to go about doing this.
    Thanks
    Samekshaa

    fire plugs in Search Tab as it has multiple UI view containers which displays different views in the Search tab.
    can you elaborate on that ...  a clear explaination of what u intend to do will be of great help.
    Outbound Plugs can have Parameters. so you can still decide what plug to fire , further when in the details view.
    i dont think there is option of raising ONACTION automatically because framework create an EVENT object for each action, at the most you can transfer this EVENT as Parameter to other methods.
    Greetings
    Prashant

  • Trigger action when file opens via bridge

    Can something be done to trigger a photoshop action when a photoshop files are opened using the Load Files as Photoshop Layer command or using DR.Browns Services Place-A-Matic 8bit?
    The Scripts Events Manager is unable to run an action or script when the photoshop file is opened through Bridge using the Load Files as Photoshop Layers or Dr. Brown's Place-A-Matic script.

    Control will return to your function only after the copy is done so technically any code you place after the copy command will execute after the copy. But you should at least test to make sure the copy worked before you run off and start doing things about it.
    BOOL worked;
    worked = [[NSFileManager defaultManager] copyItemAtPath:[fromPathDirectory stringByExpandingTildeInPath] toPath:[toPathDirectory stringByExpandingTildeInPath] error:nil];
    if (worked) { //copy worked, execute code here}
    else { //copy failed - deal with error return code here.}
    HTH,
    =Tod

  • Invoke Edit action once I click on Command Link,,,,,, Help me out in

    Hi
    I am having a datatable , which consists of of ROWS, & Columns
    when I click on that command link, it shoud open a property page with all the bean data populated,,,, "I am using the same Add property page for edit also", Now I am modifying the data and click on "Add", Now It should call[b] UpdateQuery ie, ModifyServiceDomain instead of Insert Query "Add ServiceDomain".., Tell me how to do that...
    How to solve the above problem..
    Java Class:
    public class ServiceDomainEventHandler {
        * This method is used to modify a service domain from the Web UI.
        * @return "succuess", if a service domain can be modified successfully,
        *         "failure", if a service domain can not be modified
       public String modifyServiceDomain()
          log.debug( "Into modifyServiceDomain method" );
          String returnStr = "edit_SD";
          FacesContext facesContext = FacesContext.getCurrentInstance();
          ExternalContext externalContext = facesContext.getExternalContext();
          HttpServletRequest request = (HttpServletRequest) externalContext
                .getRequest();
          String serviceDomainName = (String) request
                .getParameter( "serviceDomainName" );
          ServiceDomain servicedomain = null;
          try
             servicedomain = new ServiceDomainDbAccess()
                   .getServiceDomainByName( UIConstants.WHICH_DB,
                         serviceDomainName );
          catch (SQLException pe)
             pe.printStackTrace();
          try
             servicedomain = new ServiceDomainMgerImpl().getServiceDomainById(
                   UIConstants.WHICH_DB, Integer.parseInt( servicedomain
                         .getId() ) );
             if (servicedomain != null)
                facesContext.getExternalContext().getRequestMap().put(
                      "ServiceDomain", servicedomain );
             else
                log.debug( "Unable to obtain the ServiceDomain!" );
          catch (NrsProvisionException pe)
             returnStr = "failure";
             handleUIErrors( facesContext, pe );
          log.debug( "modifyServiceDomain method return value: " + returnStr );
          return returnStr;
        * This method is used to add a service domain from the Web UI.
        * @return "succuess", if a service domain can be added successfully,
        *         "failure", if a service domain can not be added
       public String addServiceDomain()
          log.debug( "Into addServiceDomain method" );
          String returnStr = "success";
          FacesContext facesContext = FacesContext.getCurrentInstance();
          ExternalContext externalContext = facesContext.getExternalContext();
          Map requestMap = externalContext.getRequestMap();
          ServiceDomain curServiceDomain = (ServiceDomain) requestMap
                .get( "ServiceDomain" );
          try
             new ServiceDomainMgerImpl().addServiceDomain( curServiceDomain );
          catch (NrsProvisionException pe)
             returnStr = "failure";
             handleUIErrors( facesContext, pe );
          log.debug( "addServiceDomain method return value: " + returnStr );
          return returnStr;
    Jsp Page:
    <%@ page language="java" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <f:view>
         <f:loadBundle basename="com.nortel.ems.mgmt.nrsm.messages.ServiceDomainMessageBundle" var="bundle"/>
         <%
              String path = request.getContextPath();
              String basePath =
              request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
         %>
         <html>
              <head>
                   <base href="<%=basePath%>">
                   <link REL="stylesheet" TYPE="text/css" HREF="<%= request.getContextPath()%>/css/nrsStyle.css">
                   <title>Service Domain add page</title>
              </head>      
              <body>
              <f:verbatim>
              <div
                   style="height:500px;overflow: scroll; margin-top: -2px;margin-bottom: -2px;border: 1px solid #CCCCCC; border-top:none;width:100%">
         </f:verbatim>
                   <h:panelGroup id="SDPanel" styleClass="panelGroup">
                        <h:form id="SDForm" >                    
                             <h:panelGroup id="SDSubPanel" >
                               <h:panelGrid id="SDPanelGrid" styleClass="panelGrid"
                                              columnClasses="panelGridCol1,panelGridCol2,panelGridCol3,panelGridCol4"
                                            headerClass="tableHeaders" columns="4">   
                                    <f:facet name="header">     
                                         <h:outputText id="SDHead" value="#{bundle.serviceDomainAdd}"/>   
                                    </f:facet>                                                
                                  <h:message for="SDForm" styleClass="fieldErrors" />
                                  <h:outputText id="BlankCol1" value=""/>                                 
                                  <h:outputText id="BlankCol2" value=""/>                                 
                                  <h:outputText id="BlankCol3" value=""/>                                                               
                                    <h:outputText id="SDName" value="#{bundle.serviceDomainName}"/>
                                    <h:inputText id="name" value="#{ServiceDomain.name}" />
                                  <h:outputText id="Mandatory" value="*"/>                                 
                                    <h:message for="name" styleClass="fieldErrors" />
                                    <h:outputText id="SDDesc" value="#{bundle.serviceDomainDesc}"/>
                                    <h:inputTextarea id="description" value="#{ServiceDomain.description}" />   
                                  <h:outputText id="BlankCol4" value=""/>                                 
                                    <h:message for="description" styleClass="fieldErrors" />
                               </h:panelGrid>            
                             </h:panelGroup>
                   <h:panelGroup styleClass="buttonpanelright">
                        <h:commandButton id="AddSD" action="#{ServiceDomainEventHandler.addServiceDomain}" value="#{bundle.serviceDomainSave}"/>
                             <h:commandButton id="CancelSD" action="#{ServiceDomainEventHandler.cancel}" value="#{bundle.serviceDomainCancel}" />
                   </h:panelGroup>
              </h:form>
         </h:panelGroup>
         <h:outputText id="SDMandatoryIndicator" styleClass="mandatory" value="#{bundle.mandatory}"/>
         <f:verbatim>
              </div>
         </f:verbatim>
         </body>
         </html>
    </f:view>[code[/code]]

    update your adobe reader here, http://get.adobe.com/reader/
    untick unwanted tag-along ware.

  • Agentry: Trigger action when changing main screen tab

    Hi,
    I'm adapting Work Manager for iPad and in my main screen I have 4 tab screens: Work Orders, Notifications, Time Sheets and Crew Manager.
    I would like to trigger a List Selection action step when the user navigates to the Time Sheets tab in order to select the current day of the week automatically. I already created and tested the action with a button and it's working fine but I don't find a way to trigger an action when changing main screen tabs.
    Here my main screen:
    In the screen definition there is not much I can define... just the icon, size and styling...

    Ok, thank you both, the question has been answered
    Regarding Bill suggestions I think there are too many possible actions in the main screen where to apply the selection step.
    And to apply Jason's workaround I need to do a major UI change and user's are too familiar now with the solution that has been in production for a while...
    I think I will set the date after transmit. It won't work on the initial load and when user manually selects a different day and comes back to the tab, but I think it will cover more than 90% of application uses since they are supposed to synchronise every morning and register time for the current date usually.
    @Jason: I hope you can tell the idea to the engineering team

  • Trigger event once user is viewing article

    Hi Guys,
    Does anyone know what type of Javascript event handlers are supported on the DPS Single Edition?
    For example, $(window).focus() or window.focus(), doesnt seem to be working in the DPS app even though it works in the web browser.
    Basically, I want to trigger an event once the user is viewing an article. At the moment, events from the following article are being triggered in advance due to preloading of pages. Is there a way to do this, while keeping the Web Content overlay -Auto Play function enabled?
    Many thanks!
    Juan

    See http://helpx.adobe.com/digital-publishing-suite/kb/create-html-articles-android-viewers.ht ml for a brief mention of this as well.
    Neil

  • Trigger - Execute once database started.-

    Hi, It's possible to start trigger once database started even before any DML activity take place.
    Basically I need to check & update existing record for with certain condition then update the data.
    I should not do this manually using a procedure,... but instead a trigger have to do it automatically.
    Is this possible,... does Oracle update any table when it starts up.? Maybe I can use that.
    Please help..
    Thanks in advance.
    E.G
    CREATE OR REPLACE TRIGGER check_warehouse
    AFTER UPDATE
    FOR EACH ROW
    DECLARE
    BEGIN
    IF :new.employee > '4000' THEN
    .. ...update... ok='false'
    else
    ... set ok='True'
    END IF;
    END;

    I don't think you need this at the database level. You may want to do this check in BEFORE UPDATE or BEFORE INSERT Table level trigger

  • I will give $100 to the person who can solve this problem once and for all.

    I'm not even kidding, dude. We can do PayPay, I'll mail you a check, whatever you want. That is how frustrating this is, that is how badly I want it fixed, and that is how much overtime I've worked lately thanks to being shorthanded at my place of biz-nass. I'm an hombre of my word, so if you actually come up with a solution that works, the cheddar will be yours. Okay let's hit it.
    It's the skipping thing. First 10-12 seconds of a song - every song - will play fine, then iTunes skips, stutters, and basically does the god **** hokey pokey and shakes it all about. It happens most notably with songs that I double-click to play, but I'm pretty much noticing it on any song now after a transition is made. I've been using iTunes for ages and this didn't happen until the upgrade to 7.3. I have poured over these forums for nearly a week, tried every solution offered (even offered one of my own that actually worked for maybe four days before the whole thing started up again) and NOTHING. To save us all some time, here's what I've tried:
    - Downgrading. I'll admit I didn't do this correctly at first. I didn't remove everything according to the support guidelines, but I went down to version 6.05 and that did nothing to quell the skipping. I upgraded back up to 7.3 because hey, why not, and attempted the remaining trial fixes. I have since removed both iTunes and Quicktime, step my step according the the guidelines, and not only have I downgraded to my current running version of 7.2, I put both of the programs on my F drive (as opposed to the default C drive), my gigantic bonus internal drive where I typically keep nothing but my giganto music library. I thought putting the app on the same drive as the music might fix things. I thought wrong. Dead wrong. Dead diddly dum iddly wrong.
    - Quicktime settings. My settings for Quicktime have always been in safe mode with the output size at 16 bits. So when I saw this "fix" I just rolled my eyes. I used to have that dealio back in the dizzle when iTunes would just get all static-y and skip when I'd open other programs or even just minimize it, so that fix worked for that, but it's nothing compared to this. In simpler terms, that fix is like Superman, and this skipping? The kryptonite. Actually that's probably not a great metaphor, but we've got a ways to go and this is going to get mucho boring if I don't throw some chuckles out there. Ready for fix three? Giddy up!
    - Turn off cross-fade? It's never been on. I never really got the appeal of that, and also I think it resulted in some minor skipping back in the d. I also attempted similar fixes like turning off the equalizer, messing with the volume, closing last.fm, REMOVING an old album art retrieval program from back before iTunes got its **** together with album art, ANYTHING that might interfere with playback was turned off, removed, b-slapped, and sent crying home to its moms. Nada.
    - Recreating my library. This was the fix I offered someone else, because it actually did the trick for a few days. After an entire night spent reimporting 73 gigs worth of music, it played fine, but I did lose a ton of album art, playcounts, etc, so you can imagine how ****** I was when this wound up not being a permanent fix. I was beyond ******. I was livid. But I was taught in the dojos of my youth to channel my anger into productivity, and instead of sculpting a lovely bonsai tree, I set out to fix this pup once and for all.
    - That darn anti-virus! This was the final fix I tried, even though I wasn't using any of the culprit programs listed in the forums as causes of the skipping, and even those offering this as a solution confessed it was pretty hit or miss. But having tried everything else, having resorted to playing my music on MediaMonkey of all things, I figured I'd give it a shot. I used (reason for the past-tense forthcoming) AVG Anti-Virus, Lavasoft AdAware and something called Spyware Doctor that I think just came bundled with XP. I removed all of them. I had just done a virus scan recently to see if that's what was causing this, so I figured I'd be okay until I could redownload them after this fix wound up not working. And it didn't work, so there's that.
    There may be a couple of fixes I've tried that I'm forgetting now, since I'm delirious after spending practically every night for the past week trying to fix this problem, while my girlf, Heather, sits and laughs at me while watching Clark and Michael on her MacBook. In fact, she's laughing at the $100 offer as I type this, but I assure you, if you offer a solution that works, the money is as good as yours. If you come up with a workable solution, I'll have to test and make sure it isn't temporary like the recreating my library thing, but I won't leave you hanging once I'm satisfied that it's fixed for good. I know it's unorthodox, perhaps illegal in some states, but I'm desperate here, peeps. The ball is in your court, and I beg you not to give up the rock.
    Gateway E-2000 Windows XP

    I think the problem lays with Last.fm. I had the same exact problem as you. In your processes screen, end the task "lastfmhelper.exe" Last.fm still scrobbles. The tracks don't skip, although I notice there is still a bit of a lag in the first part of the song - but if you can deal with that, no skipping. I think you will have to end that task everytime you boot up your computer, or uninstall last.fm completely until they fix it; it is a bug in their software, as opposed to iTunes.

Maybe you are looking for