GG only works on first replication

Hi, I'm pretty new to GoldenGate, so I must be making some silly mistake; though, I can't seem to figure out what I'm doing wrong.
I followed a tutorial to make GG replicate data from a MySQL database to an Oracle database.
Everything went fine on the first load, and while it was running, I could perform changes on the MySQL DB and see them reflected on Oracle.
Anyway, whenever I turn off/reboot my computer, I restart the services and replication doesn't seem to work anymore: I insert data on MySQL and Oracle isn't updated as it should.
I start the managers, then EMASTR and PMASTR on source (which correspond to data change capture and data pump, I think) and finally start RMASTR on target (which is responsible for replication).
Any help would be highly appreciated.
The parameter files are below:
MANAGER (SOURCE):
PORT 7809
DYNAMICPORTLIST 8001, 8002, 9500-9502
PURGEOLDEXTRACTS ./dirdat/*, USECHECKPOINTS
CHECKMINUTES 5
MANAGER (TARGET):
PORT 15000
DYNAMICPORTLIST 15010-15020
PURGEOLDEXTRACTS /u01/oraclegg/dirdat/*, USECHECKPOINTS
CHECKMINUTES 5
RLOAD (TARGET):
REPLICAT RLOAD
USERID orgg, PASSWORD orgg
ASSUMETARGETDEFS
MAP MYBANK.*, TARGET ORGG.*;
ELOAD (SOURCE):
EXTRACT ELOAD
RMTHOST 127.0.0.1, MGRPORT 15000
RMTTASK REPLICAT, GROUP RLOAD
SOURCEDB MYBANK USERID mygg, PASSWORD mygg
TABLE MYBANK.*;
EMASTR (SOURCE):
EXTRACT EMASTR
EXTTRAIL ./dirdat/em
SOURCEDB MYBANK, USERID mygg, PASSWORD mygg
STATOPTIONS RESETREPORTSTATS
REPORT AT 00:01
REPORTROLLOVER AT 00:01
REPORTCOUNT EVERY 60 SECONDS, RATE
TABLE MYBANK.*;
PMASTR (SOURCE):
EXTRACT PMASTR
RMTHOST 127.0.0.1, MGRPORT 15000
RMTTRAIL ./dirdat/pm
PASSTHRU
TABLE MYBANK.*;
RMASTR (TARGET):
REPLICAT RMASTR
HANDLECOLLISIONS
END RUNTIME
USERID orgg, PASSWORD orgg
ASSUMETARGETDEFS
DISCARDFILE ./dirrpt/rmastr.dsc, purge
STATOPTIONS RESETREPORTSTATS
REPORT AT 00:01
REPORTROLLOVER AT 00:01
REPORTCOUNT EVERY 60 SECONDS, RATE
MAP MYBANK.*, TARGET ORGG.*;

The ggserr.log file on source is as follows:
+2012-05-02 02:34:36 INFO OGG-00987 Oracle GoldenGate Command Interpreter for MySQL: GGSCI command (mygg): start mgr.+
+2012-05-02 02:34:37 INFO OGG-00983 Oracle GoldenGate Manager for MySQL, mgr.prm: Manager started (port 7809).+
+2012-05-02 02:34:37 INFO OGG-01338 Oracle GoldenGate Manager for MySQL, mgr.prm: mgr: The Network Server service was started successfully.+
+2012-05-02 02:34:37 INFO OGG-01227 Oracle GoldenGate Manager for MySQL, mgr.prm: Waiting for connection on port 7809 ..+
+2012-05-02 02:34:37 INFO OGG-01338 Oracle GoldenGate Manager for MySQL, mgr.prm: mgr: The ProcessManager service was started successfully.+
+2012-05-02 02:34:37 INFO OGG-01338 Oracle GoldenGate Manager for MySQL, mgr.prm: mgr: The Watchdog service was started successfully.+
+2012-05-02 02:34:37 INFO OGG-00975 Oracle GoldenGate Manager for MySQL, mgr.prm: Manager service started successfully.+
+2012-05-02 02:34:38 INFO OGG-00957 Oracle GoldenGate Manager for MySQL, mgr.prm: Purged old extract file /u01/mysqlgg/dirdat/em000021, applying UseCheckPoints purge rule: Oldest Chkpt Seqno 22 > 21.+
+2012-05-02 02:34:49 INFO OGG-00987 Oracle GoldenGate Command Interpreter for MySQL: GGSCI command (mygg): start *.+
+2012-05-02 02:34:49 INFO OGG-01229 Oracle GoldenGate Manager for MySQL, mgr.prm: Connected to [::ffff:127.0.0.1]:7809.+
+2012-05-02 02:34:49 INFO OGG-00963 Oracle GoldenGate Manager for MySQL, mgr.prm: Command received from GGSCI on host [::ffff:127.0.0.1] (START EXTRACT EMASTR ).+
+2012-05-02 02:34:49 INFO OGG-01229 Oracle GoldenGate Manager for MySQL, mgr.prm: Connected to [::ffff:127.0.0.1]:7809.+
+2012-05-02 02:34:49 INFO OGG-00963 Oracle GoldenGate Manager for MySQL, mgr.prm: Command received from GGSCI on host [::ffff:127.0.0.1] (START EXTRACT PMASTR ).+
+2012-05-02 02:34:51 INFO OGG-00992 Oracle GoldenGate Capture for MySQL, pmastr.prm: EXTRACT PMASTR starting.+
+2012-05-02 02:34:51 INFO OGG-00992 Oracle GoldenGate Capture for MySQL, emastr.prm: EXTRACT EMASTR starting.+
+2012-05-02 02:34:51 INFO OGG-00993 Oracle GoldenGate Capture for MySQL, pmastr.prm: EXTRACT PMASTR started.+
+2012-05-02 02:34:52 INFO OGG-00506 Oracle GoldenGate Capture for MySQL, emastr.prm: Both GETTRUNCATES and DDL replication are enabled.+
+2012-05-02 02:34:52 INFO OGG-00993 Oracle GoldenGate Capture for MySQL, emastr.prm: EXTRACT EMASTR started.+
+2012-05-02 02:34:52 INFO OGG-01055 Oracle GoldenGate Capture for MySQL, emastr.prm: Recovery initialization completed for target file ./dirdat/em000022, at RBA 950.+
+2012-05-02 02:34:52 INFO OGG-01478 Oracle GoldenGate Capture for MySQL, emastr.prm: Output file ./dirdat/em is using format RELEASE 10.4.+
+2012-05-02 02:34:52 INFO OGG-01026 Oracle GoldenGate Capture for MySQL, emastr.prm: Rolling over remote file ./dirdat/em000022.+
+2012-05-02 02:34:52 INFO OGG-01053 Oracle GoldenGate Capture for MySQL, emastr.prm: Recovery completed for target file ./dirdat/em000023, at RBA 950.+
+2012-05-02 02:34:52 INFO OGG-01057 Oracle GoldenGate Capture for MySQL, emastr.prm: Recovery completed for all targets.+
+2012-05-02 02:34:52 INFO OGG-00182 Oracle GoldenGate Capture for MySQL, emastr.prm: VAM API running in single-threaded mode.+
+2012-05-02 02:34:52 INFO OGG-01513 Oracle GoldenGate Capture for MySQL, emastr.prm: Positioning to LogNum - 7608 Record Offset - 1370.+
+2012-05-02 02:34:54 INFO OGG-01516 Oracle GoldenGate Capture for MySQL, emastr.prm: Positioned to LogNum - 7608 Record Offset - 1370, Apr 13, 2012 11:52:16 AM.+
+2012-05-02 02:34:56 INFO OGG-01226 Oracle GoldenGate Capture for MySQL, pmastr.prm: Socket buffer size set to 27985 (flush size 27985).+
+2012-05-02 02:34:57 INFO OGG-01055 Oracle GoldenGate Capture for MySQL, pmastr.prm: Recovery initialization completed for target file ./dirdat/pm000021, at RBA 578.+
+2012-05-02 02:34:57 INFO OGG-01478 Oracle GoldenGate Capture for MySQL, pmastr.prm: Output file ./dirdat/pm is using format RELEASE 10.4.+
+2012-05-02 02:34:57 INFO OGG-01026 Oracle GoldenGate Capture for MySQL, pmastr.prm: Rolling over remote file ./dirdat/pm000022.+
+2012-05-02 02:34:57 INFO OGG-01053 Oracle GoldenGate Capture for MySQL, pmastr.prm: Recovery completed for target file ./dirdat/pm000022, at RBA 456.+
+2012-05-02 02:34:57 INFO OGG-01057 Oracle GoldenGate Capture for MySQL, pmastr.prm: Recovery completed for all targets.+
+2012-05-02 02:36:05 INFO OGG-01021 Oracle GoldenGate Capture for MySQL, emastr.prm: Command received from GGSCI: STATS.+
+2012-05-02 02:36:09 INFO OGG-01021 Oracle GoldenGate Capture for MySQL, pmastr.prm: Command received from GGSCI: STATS.+
+2012-05-02 02:39:39 INFO OGG-00957 Oracle GoldenGate Manager for MySQL, mgr.prm: Purged old extract file /u01/mysqlgg/dirdat/em000022, applying UseCheckPoints purge rule: Oldest Chkpt Seqno 23 > 22.+
On target it's:
+2012-05-02 02:34:34 INFO OGG-00987 Oracle GoldenGate Command Interpreter for Oracle: GGSCI command (orgg): start mgr.+
+2012-05-02 02:34:35 INFO OGG-00983 Oracle GoldenGate Manager for Oracle, mgr.prm: Manager started (port 15000).+
+2012-05-02 02:34:35 INFO OGG-00957 Oracle GoldenGate Manager for Oracle, mgr.prm: Purged old extract file /u01/oraclegg/dirdat/pm000020, applying UseCheckPoints purge rule: Oldest Chkpt Seqno 21 > 20.+
+2012-05-02 02:34:51 INFO OGG-00963 Oracle GoldenGate Manager for Oracle, mgr.prm: Command received from EXTRACT on host 127.0.0.1 (START SERVER CPU -1 PRI -1 PARAMS ).+
+2012-05-02 02:34:51 INFO OGG-00974 Oracle GoldenGate Manager for Oracle, mgr.prm: Manager started collector process (Port 15010).+
+2012-05-02 02:34:51 INFO OGG-00987 Oracle GoldenGate Command Interpreter for Oracle: GGSCI command (orgg): start *.+
+2012-05-02 02:34:51 INFO OGG-00963 Oracle GoldenGate Manager for Oracle, mgr.prm: Command received from GGSCI on host 127.0.0.1 (START REPLICAT RMASTR ).+
+2012-05-02 02:34:51 INFO OGG-00975 Oracle GoldenGate Manager for Oracle, mgr.prm: REPLICAT RMASTR starting.+
+2012-05-02 02:34:53 INFO OGG-01677 Oracle GoldenGate Collector: Waiting for connection (started dynamically).+
+2012-05-02 02:34:54 INFO OGG-00995 Oracle GoldenGate Delivery for Oracle, rmastr.prm: REPLICAT RMASTR starting.+
+2012-05-02 02:34:56 INFO OGG-01229 Oracle GoldenGate Collector: Connected to 127.0.0.1:59675.+
+2012-05-02 02:34:56 INFO OGG-01669 Oracle GoldenGate Collector: Opening ./dirdat/pm000021 (byte -1, current EOF 578).+
+2012-05-02 02:34:57 INFO OGG-01670 Oracle GoldenGate Collector: Closing ./dirdat/pm000021.+
+2012-05-02 02:34:57 INFO OGG-01669 Oracle GoldenGate Collector: Opening ./dirdat/pm000021 (byte 578, current EOF 578).+
+2012-05-02 02:34:57 INFO OGG-01670 Oracle GoldenGate Collector: Closing ./dirdat/pm000021.+
+2012-05-02 02:34:57 INFO OGG-01669 Oracle GoldenGate Collector: Opening ./dirdat/pm000022 (byte -1, current EOF 0).+
+2012-05-02 02:34:59 INFO OGG-00506 Oracle GoldenGate Delivery for Oracle, rmastr.prm: Both GETTRUNCATES and DDL replication are enabled.+
+2012-05-02 02:35:00 INFO OGG-00996 Oracle GoldenGate Delivery for Oracle, rmastr.prm: REPLICAT RMASTR started.+
+2012-05-02 02:35:00 INFO OGG-01020 Oracle GoldenGate Delivery for Oracle, rmastr.prm: Processed extract process RESTART_ABEND record at seq 22, rba 456 (aborted 0 records).+
+2012-05-02 02:35:00 INFO OGG-01020 Oracle GoldenGate Delivery for Oracle, rmastr.prm: Processed extract process RESTART_ABEND record at seq 22, rba 517 (aborted 0 records).+
+2012-05-02 02:35:52 INFO OGG-01021 Oracle GoldenGate Delivery for Oracle, rmastr.prm: Command received from GGSCI: STATS.+
+2012-05-02 02:39:35 INFO OGG-00957 Oracle GoldenGate Delivery for ORacle, mgr.prm: Purged old extract file /u01/oraclegg/dirdat/pm000021, applying UseCheckPoints purge rule: Oldest Chekpt Seqno 22 > 21.+
I don't really understand what could be wrong, can you spot anything?
Thanks.

Similar Messages

  • Hide "more" button in a list view, only works for first item in the list

    I have the following code in a list view that outputs several dozen items in a web app.  The code only works for the first item, how can I make it loop through and execute the test for each item in the list view?  The {tag_hide more button} is a checkmark field that yields a numeric 1" if checked otherwise yields a numeric "0".
    <div id="more-option">
            <p class="right"><a href="{tag_itemurl_nolink}" class="btn btn-small btn-very-subtle">More &rarr;</a></p>
          </div>
          <div class="more-selection" style="display: none;">{tag_hide more button}</div>
          <script>
    if ($(".more-selection").text() == "1") {
        $("#more-option").hide();
    </script>

    What's the URL for the site where you are using this?  Offhand, it looks like it should work with your first example so you are either placing the script before those elements are loaded or you might try wrapping your current javascript inside the:
    $(document).ready(function() {
    --- your existing javascript here
    This make sure the code runs once all the html is loaded on the page.  Without seeing a URL and debugging with the js console in Chrome I can't give you a solid answer.
    But, I do know that you can probably do this with a lot less markup.  Once we figure out what the actual problem is I have a better solution mocked up for you on jsfiddle.
    When looking at my HTML code on jsfiddle, please realize I setup some dummy HTML and removed your tags and added actual values which would be output by your tags.  The main thing I did was remove the whole div.more-selection and instead, added a "data-is-selected" attribute on your div.more-option element.  Then, in my javascript for each div.my-option element on the page, we loop through them, find the value of that data attribute and hide that div if it's less than 1 (or 0).
    Here's the fiddle for you to look at:  http://jsfiddle.net/thetrickster/Mfmdu/
    You'll see in the end result that only two divs show up, both of those divs have data-is-selected="1".
    You can try pasting the javascript code near the closing </body> tag on your page and make sure to wrap my js inside a <script> tag, obviously.  My way is neater on the markup side.  If you can't get it to work it's likely a jquery conflict issue.  My version is using the $(document).ready() method to make sure all the code is loaded before it runs.
    Best,
    Chris

  • InDesign CS5.5 Exporting PDF master page hyperlinks only work on first 2 pages

    We recently upgraded from CS5 to CS5.5 and now our hyperlinks that go to different pages in the PDF only are working on the first 2 pages of each document in the book.  We have about 30 documents wrapped up in a indesign book.  On the master page we have hyperlinks that allow users to quickly go to the index in the back of the book.  After the CS5.5 upgrade the hyperlinks only work the the first 2 pages of each document.  We export to PDF(print) with hyperlinks enabled.
    I have tried the below:
    - I have tried 2 different computers
    - Deleted and re-created the indesign preference file
    - deleted and re-created the hyperlinks

    Can you recommendd the best way to manage the following:
    I'm on a Mac. Created an enewsletter for a client in Indesign CS5 with 7 "click here"s throughout the document. The hyperlinks are to connect w other PDF documents not URLs.
    Where will I have the best luck creating the hyperlinks - Indesign or in the PDF I export? I have Acrobat Pro if I need to create the hyperlinks in the PDF.
    Except I can't figure out how to create the links in either program as far as what name to designate and where do the PDFs reside so people can link to  them? And do I enter the file name of the PDF connected to the particular "click here."

  • My AS3 buttons only work the first time

    I have set up my buttons so that are each a movieclip with 'over' and 'out' states/frame labels. They exist on the main timeline. The actionscript controlling them is situated in a frame on the main timeline and the frame holding that actionscript is on the same point within the main timeline where the buttons are introduced. I am using actionscript 3.
    The buttons have been set up so that they navigate to another frame on the same main timeline and on that frame is a movie. The movie dimensions are smaller than the main stage so the buttons are still accessible when each movie is played.
    The problem is my buttons are only working once - by that I mean they go to the correct place when clicked the first time, but when they are clicked again they navigate elsewhere.
    Totally doing my head in trying find a solution and if anyone can help and show me what I'm doing wrong that would be really really helpful. Here's the code I used for the buttons...
    stop();
    function mainBtnOver(event:MouseEvent):void {
    event.target.gotoAndPlay("over");
    function mainBtnOut(event:MouseEvent):void {
    event.target.gotoAndPlay("out");
    ///////// INDIVIDUAL BUTTON CLICK FUNCTIONS
    function mainBtn1Down(event:MouseEvent):void {
    gotoAndPlay("01Movie");
    function mainBtn2Down(event:MouseEvent):void {
    gotoAndPlay("02Movie");
    function mainBtn3Down(event:MouseEvent):void {
    gotoAndPlay("03Movie");
    function mainBtn4Down(event:MouseEvent):void {
    gotoAndPlay("04Movie");
    function mainBtn5Down(event:MouseEvent):void {
    gotoAndPlay("05Movie");
    ////////// Button 1 Listeners
    mainBtn1.addEventListener(MouseEvent.ROLL_OVER, mainBtnOver);
    mainBtn1.addEventListener(MouseEvent.ROLL_OUT, mainBtnOut);
    mainBtn1.addEventListener(MouseEvent.CLICK, mainBtn1Down);
    ////////// Button 2 Listeners
    mainBtn2.addEventListener(MouseEvent.ROLL_OVER, mainBtnOver);
    mainBtn2.addEventListener(MouseEvent.ROLL_OUT, mainBtnOut);
    mainBtn2.addEventListener(MouseEvent.CLICK, mainBtn2Down);
    ////////// Button 3 Listeners
    mainBtn3.addEventListener(MouseEvent.ROLL_OVER, mainBtnOver);
    mainBtn3.addEventListener(MouseEvent.ROLL_OUT, mainBtnOut);
    mainBtn3.addEventListener(MouseEvent.CLICK, mainBtn3Down);
    ////////// Button 4 Listeners
    mainBtn4.addEventListener(MouseEvent.ROLL_OVER, mainBtnOver);
    mainBtn4.addEventListener(MouseEvent.ROLL_OUT, mainBtnOut);
    mainBtn4.addEventListener(MouseEvent.CLICK, mainBtn4Down);
    ////////// Button 5 Listeners
    mainBtn5.addEventListener(MouseEvent.ROLL_OVER, mainBtnOver);
    mainBtn5.addEventListener(MouseEvent.ROLL_OUT, mainBtnOut);
    mainBtn5.addEventListener(MouseEvent.CLICK, mainBtn5Down);
    I'm sure it's me doing something very stupid - I'm very new to AS3. Any help much appreciated.
    Thanks :-)

    If the frame labels you are going to have movie clips that have your presentation content, you should use gotoAndStop("frameLabel") instead of gotoAndPlay("frameLabel"). There's no need to play the main timeline when you go to and show any of these movie clips. I'm not sure if this is your issue, though... Using your code, I had no problems.
    Also, you can set up your animated buttons in a way that eliminates the need to have your ROLL_OVER and ROLL_OUT events. This isn't necessarily better, but just another method. Although I might use other ways to animate a button, I do like to reduce the code it takes to use the buttons in an interface, and only use CLICK in most cases.

  • Exporting PDF files on CS5 - hyperlinks to URLs only work for first page

    I'm new to InDesign and am working through the "Classroom in a Book" training workbook for CS5, I 've got to lesson 14 and have found that when exporting to PDF (interactive) format, the hyperlink to a URL only work for the first page of the document.
    I made my own document with links on multiple pages, and the same thing happened. I followed the lesson to the letter (3 times!)
    I also tried setting up individual links for individual pages and that did work, so how do I get one piece of text to link to one URL on multiple pages of a document (ie on a Master page) ???

    Thanks Peter,  I've actually got CS5.5, so I presume this patch is already updated on this version, because when I tried the 7_0_4 patch it wouldn't run; giving the message: "Some updates failed to install, and "update is not applicable". So I tried the latest update: 7_5_2 patch, but I'm still experiencing the same problems with hyperlinks not working from the Master pages.

  • System only works on first power up after plugging in graphics card

    I have a MSI Lightning R7970 that I purchased new however there's an odd problem with it that the internet does not seem to have answers to. Basically my computer only works for the first time after I plug in my graphics card into my motherboard and it works pretty flawlessly (including gaming for hours) until I shut it down or it goes into sleep mode. After that, the computer cannot power up fully but instead only keeps cycling with the fans turning on 1 second and turning off again. This happens all the time and definitely isn't a seating issue because I've gone through this a lot of times already.
    If I take the graphics card out and instead rely on the motherboard onboard graphics, this issue doesn't occur at all. I've pulled out every other component in the system and spent multiple afternoons trying to find another cause but I can't find anything wrong. Everything in the system is new.
    So should I RMA the graphics card? Or are there other settings I should check?
    My config includes i5-4670k, Asus Z87I-Pro, Silverstone ST70F-ES, Crucial Ballistix DDR3 4GBx2.

    Quote
    first time after I plug in my graphics card into my motherboard and it works pretty flawlessly (including gaming for hours)
    So should I RMA the graphics card?
    no
    Quote
    Or are there other settings I should check?
    My config includes i5-4670k, Asus Z87I-Pro, Silverstone ST70F-ES, Crucial Ballistix DDR3 4GBx2.
    could be anything, BIOS/mainboard issue, PSU issue, ram issue
    some kind of mainboard shorting issue
    to check the video card: test it in another PC

  • Computation only works for FIRST record in detail table

    Hi,
    I am having a weird problem. I have a master/detail form with page computations that work only for the very first record inserted into the detail table. If i try to enter a second or a third record the fields DO NOT get updated with the return values.
    This is driving me nuts and i am on a deadline with this project. HELP!!!!!
    Here is the code for all the computations below. Interestingly enough, only the name computation works for every new detail record. The others work only for the first.
    -- Calulate Social Security PL/SQL Function
    DECLARE
    p_is16to62ssrate NUMBER(6,2);
    p_u16o62ssrate NUMBER(6,2);
    p_dob DATE;
    p_base_date DATE := SYSDATE;
    p_age NUMBER(3);
    p_totalss NUMBER(9,2);
    BEGIN
    SELECT is16to62ssrate, u16o62ssrate
    INTO p_is16to62ssrate, p_u16o62ssrate
    FROM SSC3_RATES
    WHERE ratescheduleid = 1;
    SELECT dob
    INTO p_dob
    FROM SSC3_EMPLOYEES
    WHERE ssno = :P25_SSNO;
    p_age := TRUNC(MONTHS_BETWEEN(p_base_date,p_dob)/12);
    IF (p_age >= 16) OR (p_age <=62) THEN
    p_totalss := (:P25_TOTALWAGES * (p_is16to62ssrate/100));
    ELSIF (p_age < 16) OR (p_age > 62) THEN
    p_totalss := (:P25_TOTALWAGES * (p_u16o62ssrate/100));
    ELSE
    p_totalss := 0.00;
    END IF;
    RETURN p_totalss;
    END;
    -- Calculate Levy PL/SQL Function
    DECLARE
    -- declare local variables to hold rates from rates table
    p_hsdlarate NUMBER(6,2);
    p_hsdlbrate NUMBER(6,2);
    p_hsdlcrate NUMBER(6,2);
    p_hsdldrate NUMBER(6,2);
    p_hsdlaminearnings NUMBER(8,2);
    p_hsdlamaxearnings NUMBER(8,2);
    p_hsdlbminearnings NUMBER(8,2);
    p_hsdlbmaxearnings NUMBER(8,2);
    p_hsdlcminearnings NUMBER(8,2);
    p_hsdlcmaxearnings NUMBER(8,2);
    p_hsdldminearnings NUMBER(8,2);
    p_hsdldmaxearnings NUMBER(8,2);
    p_totalwages NUMBER(8,2);
    p_totallevy NUMBER(8,2);
    BEGIN
    -- Load rate info from table into variables
    SELECT hsdlarate, hsdlbrate, hsdlcrate, hsdldrate, hsdlaminearnings,
    hsdlamaxearnings, hsdlbminearnings, hsdlbmaxearnings,
    hsdlcminearnings, hsdlcmaxearnings, hsdldminearnings,
    hsdldmaxearnings
    INTO p_hsdlarate, p_hsdlbrate, p_hsdlcrate, p_hsdldrate,
    p_hsdlaminearnings, p_hsdlamaxearnings, p_hsdlbminearnings,
    p_hsdlbmaxearnings, p_hsdlcminearnings, p_hsdlcmaxearnings,
    p_hsdldminearnings, p_hsdldmaxearnings
    FROM SSC3_RATES
    WHERE ratescheduleid = 1;
    -- Assign total wages to variable
    p_totalwages := :P25_TOTALWAGES;
    -- Determine applicable levy payment and rate
    IF (p_totalwages < p_hsdlamaxearnings) THEN
    p_totallevy := (p_totalwages * (p_hsdlarate/100));
    ELSIF (p_totalwages >= p_hsdlbminearnings) AND (p_totalwages <= p_hsdlbmaxearnings) THEN
    p_totallevy := (p_totalwages * (p_hsdlbrate/100));
    ELSIF (p_totalwages >= p_hsdlcminearnings) AND (p_totalwages <= p_hsdlcmaxearnings) THEN
    p_totallevy := (p_totalwages * (p_hsdlcrate/100));
    ELSIF (p_totalwages >= p_hsdldminearnings) THEN
    p_totallevy := (p_totalwages * (p_hsdldrate/100));
    END IF;
    RETURN p_totallevy;
    END;
    -- Calculate Total Wages PL/SQL Function
    DECLARE
    t_wages NUMBER(8,2);
    BEGIN
    t_wages := (:P25_WEEK1_WAGE + :P25_WEEK2_WAGE + :P25_WEEK3_WAGE + :P25_WEEK4_WAGE + :P25_WEEK5_WAGE + :P25_BONUS + :P25_OTHER);
    RETURN t_wages;
    END;
    -- Calculate Employee Name PL/SQL Function
    DECLARE
    p_firstname VARCHAR2(20);
    p_lastname VARCHAR2(20);
    p_name VARCHAR2(40);
    p_join VARCHAR2(2) := ', ';
    BEGIN
    SELECT firstname, lastname
    INTO p_firstname, p_lastname
    FROM SSC3_EMPLOYEES
    WHERE ssno = :P25_SSNO;
    p_name := Initcap(p_lastname||p_join||p_firstname);
    RETURN p_name;
    END;
    Regards
    Glenroy Skelton

    Hi,
    The first thing that strikes me is the following IF test:
    IF (p_age >= 16) OR (p_age <=62) THEN
    p_totalss := (:P25_TOTALWAGES * (p_is16to62ssrate/100));
    ELSIF (p_age < 16) OR (p_age > 62) THEN
    p_totalss := (:P25_TOTALWAGES * (p_u16o62ssrate/100));
    ELSE
    p_totalss := 0.00;
    END IF;The first test will be true for every number as all numbers are greater than 16 or less than 62. I'd suggest changing the OR to an AND or use BETWEEN
    Andy

  • Code only works in first frame

    Hello,
    I have several buttons, and when each one is mouse clicked by
    the user, text appears in a dynamic text box. I want to have the
    text appear in a different color for each of the buttons. However,
    it is only working in the first frame, and not in subsequent
    frames. All of the buttons have instance names in every frame (in
    fact, they are named the same in frame 1, frame 2, etc. . .--but
    that doesn't seem to be the problem??) Below is my code. Any
    suggestions? Thanks!

    Found the answer. The code defining the variable:
    var my_color:Color = new Color(textBox);
    must only be on the first frame. The rest of the code must be
    on all the frames.

  • XFCE Volume Management Only Works Upon First Mount

    I want my removable drives to mount automatically.   I have the box check marked to do so.   It works the first time upon boot but if i eject the drive and then plug it back in i have to mount it manually.   Obviously I'm missing something.   Anyone know what it is?  Maybe I have to find a way to enable "unmount" instead of "eject"?

    https://wiki.archlinux.org/index.php/US … ge_Devices <--- This has all the info you need to mount and unmount usb drives.
    Last edited by Nanashi (2012-09-11 12:04:41)

  • [Solved] DVDs and CDs only work the first time I put them in

    First lets get this straight before it is asked later on down the line. I am a 6 year Linux user and 2 year Arch user. I am currently using xfce4 and thunar as my file manager with thunar-volman installed. This has been a problem for the past year or so. I use my laptop most of the time (also Arch 64 and working like a dream) so I only try fixing it every so often to no avail.
    I can put in a CD or a DVD and play them with VLC. Here's the catch: after I eject the CD/DVD and put in another one I can't play it or find it. The first time I put one in I even get an icon on the desktop. I don't think it's reasonable to have to reboot everytime I want to play another DVD (time wasted by constant rebooting is one of the very long list of reasons I don't use Microshaft products). I'm stumped, I can't be the only one, but my forum searches yield no treasures.
    Last edited by astrozombie (2010-02-03 01:00:15)

    Thanks for trying, however, I posted what I use for a reason. I am using VLC, and I am a minimalist so I don't want a bunch of programs for doing the exact same thing. VLC is the only player for Linux that plays MTS files out of the box, so I'm not interested in switching or adding another.
    Anyways, it's irrelevant because as I said before, thunar mounts it correctly the first time I put in a DVD or CD and displays an icon on the desktop for the disk. Therefore the problem is most likely hal related, since this began about the time we switched to hotplugging, and besides this I love hotplugging so I am also not interested in disabling that (who know what problems I'll introduce for my MAC keyboard and webcam if I do that). Yes I've read the hal and dbus wikis.
    I can even get a USB CD writer to work with xfburn, however it's a relic and I think that's a sorry work around when I have internal drives that, in theory, work just fine. I wonder if it has anything to do with the drives being IDE when I used the SATA install option on the install disk (I did a fresh install last week) since my hard drives are SATA.

  • Preloader only works on first swf

    Can anyone help. I have added a preloader in the first frame
    of my movies. But only the first one works. The other movies are
    loaded into an invisable movie in the home screen. They work OK
    went I test the movie in simulated download. I am guessing it it
    something to do with importing swf into the invisable mc on my home
    screen. They are all visable on the web site, but the animated load
    bar and % just says 100%.
    Please can anyone help.

    i don't see a problem (with ff).

  • Effects only works on first page when viewed in IE 8

    I use the drop shadow and bevel effects on all of my sites, and I've found that when I view my site pages in Internet Explorer 8, the effects only shows up on the first page. I set up all effects on the MASTER page, so they should appear on all of my site pages.  Now, when I view the site pages in FireFox or Chrome, ALL pages look great!  The drop shadow and bevel effects appear on all site pages as expected.
    Also, because MUSE doesn't allow me to upload to SFTP, I have to export everything to HTML, then I use Adobe Dreamweaver to upload to SFTP server.  When I export a page, the preview that pops up in Internet Explorer actually looks perfect.  Is this a MUSE bug?  The first page looks fine in IE8, but all of the additional site pages have NO effects at all.  Again - all effects are created on the MASTER page which is applied to all site pages, and ALL pages look perfect in other browsers.  I only have this problem in IE8 - with compatibility mode on and off - doesn't seem to matter.
    Can't send a link because of the site being on our Intranet, but I can send you the MUSE file if you want to check it out.  Just let me know.
    Any questions, please let me know.
    Thanks.
    Kris B.

    UPDATE!  I discovered that the problem with the shadow effect not working on every page of a multi page site when viewed in Internet Explorer 8 has something to do with the layers tool.  I was able to correct the problem, but it took a lot of time.  Here are the steps I performed:
    Created a duplicate of the existing MASTER PAGE, opened the duplicate master page, then pressed Ctrl-A to select all and assigned to LEVEL 4 (selected highest level).
    Changed the master page of each site page to the duplicate page
    Opened up each site page, pressed Ctrl-A to select everything on the page and assigned to LEVEL 1.  One field was hidden below a field on the master page, so I selected that field and assigned it to LEVEL 4.
    At this point, I saved and exported the site to HTML and pushed to my SFTP server - there was no change - the error still existed.
    Went back to Muse and opened each of the site pages, selected all of the LEVEL 1 fields and reassigned to LEVEL 2.
    Made sure all of the LEVEL 2 fields were still selected and then REASSIGNED them back to LEVEL 1 and saved the site.
    Exported the site to HTML and the pushed to my SFTP server using Adobe Dreamweaver, and this time the shading worked perfectly!
    I opened the site up again in Chrome and FireFox - no change.  The shading appeared just fine when using Chrome or Firefox.  I only experienced this problem with Internet Explorer 8.  Seems to me that there is a bug in the system involving the levels tool and Internet Explorer 8.  I can send you the before and after files if you would like to check out the differences.  Just let me know.  The site I uploaded to the temporary business catalyst site is not the site I corrected, so I will have to send you the .muse file I worked with.  Just let me know.
    Thanks,
    Kris Bancroft

  • Changing datasource of reports in a loop only works for first report.

    Hi,
    I have code that loops through a list of reports to change the datasource and save the change in the report. The idea is that this can be done at build time so time taken at runtime is only for opening the report and running it.
    The problem is that the first iteration of the loop works, and any further ones don't. Apart from closing the client document is there anything else that should be explicitly closed? I don't retrieve any ReportSource from the Client Document so I shouldn't need to dispose of that...I don't think. In particular is there something that should be done to the databaseController retrieved from the clientDoc after each loop?
    The code goes like the below:
    for(File report : reports){
         System.out.println("Preparing report: " + report.getAbsolutePath());
         ReportClientDocument clientDoc = CRJavaHelper.getReportClientDocument(
                   report.getAbsolutePath());
         CRJavaHelper.replaceDBConnection(clientDoc, props);
         clientDoc.close();
         System.out.println("Report " + report.getAbsolutePath() + " prepared.");
    getReportClientDocument does this:
    ReportClientDocument clientDoc = new ReportClientDocument();
    clientDoc.setReportAppServer("inproc:jrc");
    clientDoc.open(fullPath,
              OpenReportOptions.openAsReadOnly.value());
    return clientDoc;
    replaceDBConnection does the following:
    DatabaseController dc = clientDoc.getDatabaseController();
    logonDataSource(dc, username, password);
    prepareReport(dc, schema);
    ConnectionInfos cis = dc.getConnectionInfos(null);
    for (IConnectionInfo oldci : cis) {
         IConnectionInfo newci = new ConnectionInfo();
         newci.setKind(ConnectionInfoKind.SQL);
         newci.setAttributes(propBag);
         newci.setUserName(username);
         newci.setPassword(password);
         dc.replaceConnection(oldci, newci, null, DBOptions._useDefault
                   + DBOptions._doNotVerifyDB);
    SubreportController src = clientDoc.getSubreportController();
    IStrings strs = src.getSubreportNames();
    Iterator<?> it = strs.iterator();
    while (it.hasNext()) {
            String name = (String) it.next();
         ISubreportClientDocument subreport = src.getSubreport(name);
         DatabaseController sdc = subreport.getDatabaseController();
         cis = sdc.getConnectionInfos(null);
         for (IConnectionInfo oldci : cis) {
              IConnectionInfo newci = new ConnectionInfo();
              newci.setAttributes(new PropertyBag(propBag));
              newci.setUserName(username);
              newci.setPassword(password);
              sdc.replaceConnection(oldci, newci, null, DBOptions._useDefault
                        + DBOptions._doNotVerifyDB);
    clientDoc.save();

    What's the URL for the site where you are using this?  Offhand, it looks like it should work with your first example so you are either placing the script before those elements are loaded or you might try wrapping your current javascript inside the:
    $(document).ready(function() {
    --- your existing javascript here
    This make sure the code runs once all the html is loaded on the page.  Without seeing a URL and debugging with the js console in Chrome I can't give you a solid answer.
    But, I do know that you can probably do this with a lot less markup.  Once we figure out what the actual problem is I have a better solution mocked up for you on jsfiddle.
    When looking at my HTML code on jsfiddle, please realize I setup some dummy HTML and removed your tags and added actual values which would be output by your tags.  The main thing I did was remove the whole div.more-selection and instead, added a "data-is-selected" attribute on your div.more-option element.  Then, in my javascript for each div.my-option element on the page, we loop through them, find the value of that data attribute and hide that div if it's less than 1 (or 0).
    Here's the fiddle for you to look at:  http://jsfiddle.net/thetrickster/Mfmdu/
    You'll see in the end result that only two divs show up, both of those divs have data-is-selected="1".
    You can try pasting the javascript code near the closing </body> tag on your page and make sure to wrap my js inside a <script> tag, obviously.  My way is neater on the markup side.  If you can't get it to work it's likely a jquery conflict issue.  My version is using the $(document).ready() method to make sure all the code is loaded before it runs.
    Best,
    Chris

  • Table of Contents only working on first chapter

    Working with InDesign CS3 Mac.  We have a booklet with several chapters.  The table of contents is in its own chapter.  For some reason it is only creating a table of contents for what would be the following first chapter.  The rest of the following chapters are not showing up. I believe we have all the styles correct and the page numbering implemented correctly for those chapters.  Does anyone have any ideas on what we could be missing or doing wrong.  Thanks in advance for any help.

    I am assuming you are using InDesign's Book feature and have each chapter added as a document in the Book?
    Open the document that is going to have the Table of Contents in it from the Book panel.
    Then edit the Table of Contents Style and enable the Include Book Documents option.
    If you don't see this option, then click  More Options first.
    Now try updating the Table of Contents.
    Cari

  • Suspend only works for first suspend; later attempts fail (Catalyst)

    Currently I am attempting to get suspend working on my desktop. I had managed to get it working, and right after cracking a bottle of Martenellis in celebration, I come to find out the if I enter suspend again, my screen stays black. Sigh.
    Now, I am nearly 100% positive this has to do with the Cataylst I am using for my Radeon 6850. I have enabled set the kernel flag
    vga=0
    properly. In fact, this was what originally allowed me to have the first sucessful suspend.
    What could cause the suspend to work once, then fail if attempted again? I am fairly good at problem-solving, so even if you do not know the exact answer your thoughts would be appreciated here. Thanks!!
    $ fglrxinfo
    display: :0 screen: 0
    OpenGL vendor string: Advanced Micro Devices, Inc.
    OpenGL renderer string: AMD Radeon HD 6800 Series
    OpenGL version string: 4.4.13374 Compatibility Profile Context 15.20.1013

    I'm having a very similar issue, but someone else said that they had also had it happen twice to them and they're using an Intel graphics card. Currently I've disabled C6/C7 power states for my CPU to see if that will help. It really shouldn't have any effect, but I've already tried so much.
    My issue is that if I leave my machine alone and it goes idle and puts the screen to sleep, often the screen won't come back up, it just remains black. I've tried disabling ACPI and that didn't seem to help.

Maybe you are looking for