Script execution in replication after initialization

Hi, 
is there anyway to execute script automatically on publisher after initialization. does sp_addscriptexec execute script on subscriber only??

After defining the publication, right click on the newly created publication, go to properties, Click on Snapshot option, you will see options for "Run Additional Scripts", here you can browse and supply the script that you want to run
Refer the screen below:
Good Luck! Please Mark This As Answer if it solved your issue. Please Vote This As Helpful if it helps to solve your issue

Similar Messages

  • Help 'Exiting' after Automator Shell Script Execution

    Hello,
    I've recently installed and got running GCalDaemon (http://gcaldaemon.sourceforge.net/) which allows me to Synch Rainlendar <-> Google Calendar through iCal (You can also synch iCal <-> Google Calendar). I needed to start up a shell script/applescript after each startup/login in order for GCalDaemon to start the synching process each time and continue to do so at the timed intervals. I would do so by the following terminal code:
    cd /usr/local/sbin/GCALDaemon/bin
    ./standalone-start.sh
    I then tried automating this process and came across shell script execution through Automator. I did so and created a .app with the above mentioned code. This works and it starts up the necessary .sh file I need and the snyching works under StartUp. My concern is however, how do I exit terminal once the code has executed the necessary file? All I have in my .app is the above mentioned code for now. I just need it to exit terminal because on startup or after starting the program, I get this issue (See Attachment)
    This continues to run, so my guess is that I need to add code to exit terminal and allow the .app to close itself properly after doing so.
    Please guide me in the right direction.
    Picture Belows shows what happens when I run the Automator App. It continues to run until I quit out of the app manually (TheGCal programs works fine though). I feel I need to have app quit Terminal or fully end the process and quit out on it's own.
    Thanks
    <table style="width:auto;"><tr><td></td></tr><tr><td style="font-family:arial,sans-serif; font-size:11px; text-align:right">From GCalDaemon</td></tr></table>

    i redirected the command output to /dev/null which is unix equivalent of a black hole and I also redirected error output to standard output in case the script produces any errors.
    also & at the end tells it to continue without waiting for the script to finish.
    Message was edited by: V.K.

  • In trying to install a Flash update on my Mac (version 10.7.5), I'm getting an "unable to install metafile" message after initialization starts (at the 25% point)-regardless of the site from which I download the installation folder.

    In trying to install a Flash update on my Mac (version 10.7.5), I'm getting an "unable to install metafile" message after initialization starts (at the 25% point)—regardless of the site from which I download the installation folder.

    Hello everybody, good news: after upgrading to Mountain Lion 10.8.5 I've been able to run the installer and all went fine.
    Mountain Lion allows user to force execution through the context-menu (CTRL-click) Open command and it does work, just that simple.
    So my advice is: if you want to install or re-install Flash Builder 4.6 on a Mac with Lion installed, upgrade to Mountain Lion or better to avoid problems.
    Apple introduced some (not all) Gatekeeper functionalities in 10.7.3 and following, but apparently you need a full-fledged 10.8 to have also what you need to circumvent a Revoked Certificate error.
    Since usually OS X has auto updating active, if you are running Lion you end up with 10.7.5 and won't install FB46. If you manage somehow to hold 10.7.2 I suppose you should be able to install FB46, sincerely I didn't check it out. Anyway it's simpler and safer to move on to 10.8.x.
    Bye

  • Error with dbms_scheduler and shell script execution

    Hi,guys.
    I have an issue with a dbms_scheduler and a shell script execution. So, the shell script as it self works fine, when i'm executing ./test.sh all process is running, but when i'm executing the script from dbms_scheduler it just simply doesn't work. Actually it works, but some of executable information in sh doesn't work, seems it just jump over of the part of the script. Sendmail part is running, maybe there is problem with rman script as it self?
    DB version: 10g
    And my scripts:
    Shell scripts (permisons 755):
    #!/bin/ksh
    export PATH=/home/oracle/product/asm_home/bin:/home/oracle/product/db_home/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/oracle/bin:/usr/bin/X11:/sbin:.
    export ORACLE_BASE=/home/oracle/product
    export ORACLE_SID=zabbix
    export ORACLE_HOME=/home/oracle/product/db_home
    ${ORACLE_HOME}/bin/rman<<EOF
    connect target /
    run {backup recovery area delete all input;}
    EOF
    {       echo "From:[email protected]"
            echo "To: [email protected]"
            echo "Subject: Recovery area"
            echo 'Content-Type: text/html'
            echo
            echo '<html><body><table border="1" cellspacing="1">'
            echo '<tr><td><b>Process</b></td><td><b>Statuss</b></td></tr>'
            echo "<tr><td>RMAN</td><td><b>Works</b></td></tr>"
            echo "</table></body></html>"
    } | sendmail -tIn the first part i'm exporting all of the important stuff for oracle, then I call RMAN with specific atributes. And then there is just simply sendmail functionality inside script to represent if script works (for now).
    And below pl/sql script:
    begin
      DBMS_SCHEDULER.CREATE_JOB
      job_name => 'FLASH_RECOVERY',
      job_type => 'EXECUTABLE',
      job_action => '/home/oracle/backup/test.sh',
      start_date => sysdate,
      job_class => 'DEFAULT_JOB_CLASS',
      enabled => TRUE,
      auto_drop => FALSE,
      comments => 'FLASH RECOVERY USAGE AREA backup and delete'
      END;
      /And this job execution:
           begin
               DBMS_SCHEDULER.run_job (job_name =>'FLASH_RECOVERY',use_current_session => TRUE);
           end;What can be wrong? For me, I think it's something with permisions.
    I hope you got my idea and could help me.
    Tom
    Edited by: safazaurs on 2013.18.2 22:16

    There is no error, i just receive all the time e-mail, seems it jumps over rman. I tried almost everything and still couldn't get result as i want. And, if i'm running script from command line - it works. Rman calls, and starts to recover archivelogs.

  • Error when using FTP in iWeb 09! "Error 500: Script Execution Failure"

    I have my domain through 123-reg and I have free hosting with host-ed.net when I add a simple index.html file my website works fine displaying the 1 line of text that I asked for, so it is all configured correctly.
    How ever when I use the FTP upload thought iWeb '09 I always get "Error 500: Script Execution Failure"
    www.breslan.co.uk
    Anyone know why?

    I have logged into my hosting and changed the permissions to '755' and move the files from the folder iweb used to the root of the site i know get "Parse error: syntax error, unexpected T_STRING in /~/www/breslan.co.uk/index.html on line 1" there is only 1 line of code in index.html and that is
    <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title></title><meta http-equiv="refresh" content="0;url= Welcome.html" /></head><body></body></html>
    please help!

  • Script execution problem

    dear sir
    i got a problem with script execution. i have successfully  activate the form painter in ABAP editor. but i am getting the error like "Form  ZLASRISUD language EN is not active and has no errors". please give me the solution for above as soon as possible.

    dear sir
    i got a problem with script execution. i have successfully  activate the form painter in ABAP editor. but i am getting the error like "Form  ZLASRISUD language EN is not active and has no errors". please give me the solution for above as soon as possible.

  • Automation Script execution

    Hello All,
    How i will do Automation script execution in Production
    We have a bunch of scripts (Packages , DDL & DML ) everyday. What is the better aproach to do automatic script execution without any issues ?

    Hi,
    You have two options.
    1) Oracle job scheduler
    2) Windows Tasks
    Oracle job scheduler you can run it by your requirement. you can create it like below:-
    begin
    DBMS_SCHEDULER.CREATE_JOB(
    JOB_NAME           =>      'JOB_FOR_TEST',
    JOB_TYPE           =>      'PLSQL_BLOCK',
    JOB_ACTION         =>      'begin YOUR_PROCEDURE_NAME; end;',
    START_DATE         =>      SYSTIMESTAMP,
    END_DATE           =>      NULL,
    COMMENTS           =>      'JOB IS CREATED FOR TEST ONLY.',
    ENABLED            =>      TRUE,
    REPEAT_INTERVAL    =>      'freq=daily; byhour=20; byminute=0; bysecond=0;');
    end;
    /Above job will run on 8pm daily.
    likewise since i dont know whether you are on windows or linus or unix etc... you can scheduler windows level tasts...

  • Report script execution is getting failed

    Hi ,
    We are facing one strange issue while executing the Essbase report script. I am new to the report script and I am not getting how to resolve the issue.
    When we are changing the year in code from FY13 to FY14 the script is getting failed however the same script is successfully generating the report if we keep year as FY13 in code.
    Could you please let me know where would be the problem , below is the part of the code form Report script.
    {MISSINGTEXT "0"}  // replace #Missing with 0
    <Link ((<LEV("Customer", "Lev0,Customer")) AND ( <IDESC("All Customers")))
    <Link ((<LEV("Product", "Lev0,Product")) AND ( <IDESC("All Products")))
    <Link ((<LEV("Period", "Lev0,Period")) AND ( <IDESC("YearTotal")))
    FY14

    Hi ,
    I am getting below error message.
    "Report Script execution Failed. Please see message panel for details " and in message panel It is not showing any details , just displaying Execute Report script Failed with date and time details.
    I also checked that FY14 do exist in the application and no duplicate FY14 member exist in the outline.
    Could you please suggest where would be the problem.

  • Get Agent IP Address During Script Execution

    Good Evening,
    I'm looking for a little advice...  I'm trying to develop a method of alerting agents to the fact they are not ready.  I have a script that can dynamically change the wallpaper on an IP phone.  My aim is to add a step to the "Select Resource" portion of a script that will execute if an agent doesn't answer a call presented to them.  However in order for this script to work it requires the IP address of the phone the agent is logged on to.  Can anybody recommend a method of getting this IP dynamically during script execution?  We use EM so statically defining IPs in an XML document wouldn't be appropriate.
    On a similar note I'd also need a method of executing the same script when an agent manually alters their state to ready.  i.e. When they change to ready on the IP Phone Agent I'd like to be able to intercept that process as it takes place and automatically trigger this same script.
    I'm using UCCX 8.5(3).
    Hope that makes sense.  Any suggestions regarding how to achieve this would be much appreciated.
    Much appreciated,
    Ryan

    I don't write enough scripting to know for sure if the agent's phone's IP address would be available anywhere in the UCCX enviornment by default but I'm going to go with 'probably not'. You'd need to obtain this information from CUCM, the most straightforward method would likely be to use CUCM's AXL interface to pull this information. The HTTP Document Step may be able to produce the necessary AXL requests I guess, but I've never tried.
    Cheers,
    Kris

  • Test Script execution failed.

    I'm getting the Test Script Execution Error - "Test Script execution failed. Reason: The system cannot find the file specifiied"
    This is happening to all my test script files. I can load the test script files, edit the test cases, etc, but cannot execute the test scripts
    If I click on View Test Script Specification, they all come up, and the report shows all the cases in the test script.
    If I look into the directory, they are all there, with the .tsc extension and a file type of TSC
    I created a new TSC this morning, but with the same results
    They were working yesterday. Since then, I did rename one of the test scripts, and changed my build platform from .NET to Java.
    Any thoughts?
    Thanks,
    Allan Gibson
    P.S. I also now note the my what-if analysis files do not run, and are getting a message: run time error '-2146233088 (80131500)': Batch process has failed. Reason: the system cannot find the file specified (OPA-E00241). When I press the debug button, I'm taken to a screen where the line "Call GetExcelCompilerProxy() .Analyze(ActiveWorkbood)" is highlighted in yellow.
    Edited by: A Gibson on 11-Sep-2012 9:02 AM
    Edited by: A Gibson on 11-Sep-2012 9:09 AM

    Hey Allan,
    It looks like it either can't find the Java component it needs to run or the test script for some reason. If you look in the bin directory of the OPM install (which is normally something like c:\program files\Oracle\Policy Modeling\bin) do you see a file called determinations-remote-clr.jar? If not it sounds like something's gone wrong with your install.
    If so, can you run the test script in the standalone debugger? Also, if you look at the absolute path of your test script file, does it contain any non-ascii characters? If so, try removing those characters and see if it works.
    Thanks,
    Kristy

  • Execution of programs after import (XPRA) error during transports

    Hi Experts
    I am applying the support stack level from 18 to 19. On applying the ABAP support pack i am getting the error.  (Ehp1- support pack)
       Execution of programs after import (XPRA)
       Transport request   : SAPKNA7013
       System              : RIS
       tp path             : tp
       Version and release: 372.04.40 701
       Post-import methods for change/transport request: SAPKNA7013
          on the application server: mel-srv-sap1
       Post-import method ENHS_AFTER_IMPORT started for ENHS L, date and time: 20090820182438
       Post-processing for ENHS /SAPCND/CONFIGURATION was already performed successfully earlier
       Post-processing for ENHS /SAPCND/GEN_AFTER_IMPORT was already performed successfully earlier
       Post-import method ENHS_AFTER_IMPORT completed for ENHS L, date and time: 20090820182438
       Post-import method ENHO_AFTER_IMPORT started for ENHO L, date and time: 20090820182438
       Post-processing for ENHO PRT_CONFIGURATION_EXIT was already performed successfully earlier
       Post-processing for ENHO REF_AFTER_IMPORT_EXT was already performed successfully earlier
       Post-processing for ENHO REF_CONFIGURATION_EXIT was already performed successfully earlier
       Post-processing for ENHO TTE_CONFIGURATION_EXIT was already performed successfully earlier
       Post-import method ENHO_AFTER_IMPORT completed for ENHO L, date and time: 20090820182438
       Post-import method /SAPCND/TRN_AFTER_IMPORT_OW started for CTAP L, date and time: 20090820182438
       Transport: Execution of method /SAPCND/TRN_AFTER_IMPORT_OW
       Mass activation off
       Transport: Execution of method /SAPCND/TRN_AFTER_IMPORT_O_OW
       End of processing of condition tables for order SAPKNA7013, time 18:24:38
    Program terminated (job: RDDEXECL, no.: 18243800)
       See job log
    Execution of programs after import (XPRA)
    End date and time : 20090820182453
    Ended with return code:  ===> 12 <===
    When i click on the job log i get the following details:
    Job log overview for job:    RDDEXECL / 18245300
    Date       Time     Message text
    20.08.2009 18:24:53 Job started
    20.08.2009 18:24:53 Step 001 started (program RDDEXECL, variant , user ID DDIC)
    20.08.2009 18:24:53 All DB buffers of application server mel-srv-sap1 were synchronized
    20.08.2009 18:24:53 ABAP/4 processor: SYNTAX_ERROR
    20.08.2009 18:24:53 Job cancelled
    Please help me to resolve the issue. Thanks in advance.
    Thanks & Regards

    Hello Folks,
                       Thank you all for your help. I apologize for the delay. Apparently SAP had a few SAP notes to suggest for my issue and once the notes were implemented, the problem got resolved. Here are the notes for your reference:
    1114409
    1113718
    1059837
    1055217
    Regards,
    Prashant

  • Linking axis to saved buffer in ROM after initialization with 7356

    Can you please help?
    I can't seem to re-connect an axis to a saved position buffer in ROM after initialization/reset of board.
    Details:
    When I make a position buffer and save to ROM and then repeatedly run motion command  (after using the conifgure buffer.flx with buffer size 0) the motion works just fine.  If however, after saving this buffer to ROM, I do some setting changes/initialization ect, then I can't seem to reconnect to this existing buffer in the ROM (I checked and it is there via measurement and automation explorer).    So, how do I re-connect to this buffer?
    My system specs: Using windows XP sp2 with Labview 8, and the motion card is the PCI-7356.
    Thanks very much.
    Richard Cisek
    [email protected]
    Attachments:
    Richard's question.vi ‏37 KB

    Hi Richard,
    I have attached my working VI to this reply.  I tested it, and it
    works after a reset and reinitialization of the motion controller board.
    In the Connect to Buffer and Move portion of your VI, you must
    reconfigure the Operation Mode for Absolute Contouring.  After a
    reset, the motion controller board will have a default Operation Mode
    of Absolute Position, so you must change it back to Absolute
    Contouring.  You must also input the correct number of Total
    Points to the Configure Buffer function.  The correct number of
    Total Points is the size of the array in the selected buffer.
    Make sure that the Measurement & Automation Explorer is CLOSED when
    you run this program.  If MAX is open, its Object Memory Manager
    will be making calls to Check Buffer which will conflict with this VI
    and cause errors.
    I also added Motion Error Handler VIs, so you can monitor any motion errors that might occur.
    Sorry for the delay.  Hope this helps!
    Allen H.
    Attachments:
    SaveAndLoadBufferFromROM.vi ‏101 KB

  • Execution thread hang after OCIBreak

    Hie,
    We have a oci-based interface program for execution stored procedures; each procedure have a maximum execution time. After that amount of time we use OCIBreak to stop execution. Program have number of ordinary execution threads and a separate thread (watcher) for execution monitoring and issuing OCIBreak if required.
    Everything goes well, but sometimes watcher calls OCIBreak and execution thread instead of termination of a database call with error falls into sleeping state until the kill of the whole process.
    Platform solaris 10, sparc, Oracle 10gR2
    truss reports
    read(11, 0x001C1E56, 2064) (sleeping...)
    gdb points somewhere in OCIStmtExecute

    No, I was not able to find a clear description on how to run queries in parallel for nonblocking mode and decided not to use it.

  • Exchange 2010 SP2 to SP3 Powershell script execution policies

    Hi,
    I have broken Labs when installing service packs on exchange 2010 servers because the powershell execution policies have been incorrectly configured. Once the WMI service has been stopped, the scripts within the SP haven't been able to start it up again. 
    I can't find any info on Powershell script execution policies in relation to the SP3 for 2010 prerequisites. Does anyone know what they should be set at? And why haven't these been at the top of the list of prerequisites for installations of service packs
    for exchange? 

    Hello,
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    I'm marking the reply as answer as there has been no update for a couple of days.
    If you come back to find it doesn't work for you, please reply to us and unmark the answer.
    Cara Chen
    TechNet Community Support

  • How quit script execution?

    Hi.
    I don't know how quit my script execution from a pls block.
    I have a .sql script like this:
    DECLARE
    myvar NUMBER(10);
    BEGIN
    SELECT ... INTO myvar FROM ...;
    IF myvar > ... THEN
    /* here sqlplus should stop the script execution. How? */
    END IF;
    END;
    QUIT;
    The pls block doesn't recognize the sqlplus QUIT command. Is it possible quit a sqlplus session from a pls/sql block?
    Thank you in advance
    Stefano Babayantz
    null

    A simple way would be to define a user exception and then raise it explicitly
    DECLARE
    myvar NUMBER(10);
    uexcept EXCEPTION;
    BEGIN
    SELECT ... INTO myvar FROM ...;
    IF myvar > ... THEN
    raise uexcept;
    /* here sqlplus should stop the script execution. How? */
    END IF;
    EXCEPTION
    WHEN uexcept THEN
    dbms_output.put_line('Exception raised...');
    END;
    You may wish to associate the exception to an Oracle internal exception (using PRAGMA EXCEPTION_INIT) and handle it accordingly

Maybe you are looking for

  • Income Tax Calculation problem: Urgent Help Needed

    Dear Gurus, I am facing a unique problem. Our client has two incentives – 1) Product Incentive 2) Sales Incentive Every month incentive figures get changed. These two are Monthly Regular Income (Cumulations Class 24) i.e. included in annual tax calcu

  • Can a nook be used with os7

    Can a Nook be used with Apple products?  I don't want network or virus problems.

  • Travel Expense Settlement thru Payroll

    Hi All, How to integrate Travel Management with Payroll for posting travel settlement amount to Payroll. Post trip, payment to employee / Recovery from Employee. i.e. settlement needs to be done thru Payroll. SAP Table V_PTRV_HEAD provides the struct

  • My magic mouse won't connect to Yosemite 10.10.2 I've tried 2 different mice with the same outcome.

    I have an early 2013 MBP with Yosemite 10.10.2. Connectivity with the magic mouse has steadily gotten worse, now it won't connect at all. I've tried connecting with two different mice, one about 5 years old and one about 2 years old, both with the sa

  • Jre-1_5_0_04-windows-amd64 - INSTALLATION TROUBLES.

    Dear Sir / Madam I'm using AMD64 (Athlon 64 - Skt.939) based PC runnig Windows XP Professional x64 Edition (Build 3790 - SP1 v.1433). I'm trying to install "jre-1_5_0_04-windows-amd64.exe" on my PC but wahterver I try to install either 64 or 32bit ve