How to enable multi-statement replication like select into in SAP Replication server

Hi All,
Currently I am worling on replication of non logged operation using SAP Replication Server.My source and target databases both are Sybase ASE 15.7. I created a normal stored procedure having non logged operation like :
create procedure proc1
as
select * into tab2 from tab1
I have created database replication definition using following command :
create database replication definition def1
with primary at dewdfgwp01694.src
replicate DDL
replicate functions
replicate transactions
replicate tables
and created subscription as well
After marking the procedure using sp_setrepproc proc1,'function', I started the repagent (sp_start_rep_agent src)
But after marking the procedure I am unable to execute the procedure and having the error :
SELECT INTO command not allowed within multi statement transactions
Sybase error code=226
Can anyone please guide me in this situation
FYI : I have executed all three commands in primary database :
sp_dboption src,'select into/bulkcopy/pllsort',true;
sp_dboption src,'ddl in tran',true;
sp_dboption src,'full logging for all',true

I am getting the error in primary database(Sybase ASE console) as well as in repserver .
This error is occurring after the marking of the procedure in the primary database for replicating.
And after getting this error i am unable to replicate any other table or procedure(seems the DSI thread is going down in repserver)
the error in repserver is given below :
T. 2014/09/20 16:58:03. (27): Last command(s) to 'server_name.trg':
T. 2014/09/20 16:58:03. (27): 'begin transaction  [0a] exec proc1  '
E. 2014/09/20 16:58:03. ERROR #1028 DSI EXEC(103(1) 'server_name.trg) - dsiqmint.c(4710)
Message from server: Message: 226, State 1, Severity 16 -- 'SELECT INTO command not allowed within multi-statement transaction.
H. 2014/09/20 16:58:03. THREAD FATAL ERROR #5049 DSI EXEC(103(1) server_name.trg) - dsiqmint.c(4723)
The DSI thread for database 'server_name.trg' is being shutdown. DSI received data server error #226 which is mapped to STOP_REPLICATION. See logged data server errors for more information. The data server error was caused by output command #0 mapped from input command #0 of the failed transaction.
I. 2014/09/20 16:58:03. The DSI thread for database 'server_name.trg' is shutdown.
I. 2014/09/20 18:07:48. Replication Agent for server_name.src connected in passthru mode.

Similar Messages

  • How to enable Multi-record select in Oracle Forms

    Hi
    we recently upgraded to R12 -- 12.1.3.
    we have a requirement in which I should let the users select multiple records in a tabular Form (custom form).
    Currently we have a custom form that displays Open sales orders with credit holds. After selecting the record, the user can release the hold on the order by clicking on a button. The requirement is for enabling selection of multiple records and release.
    We have a similary functionality in 'Quick Sales Orders' form. In this form, multiple lines can be selected by pressing 'CTL' and clicking on the records.
    I read about using APP_MULTI for this. But I couldnt figure out how to enable the multiple selection.
    If someone could throw some light on this, it would be greatly helpful

    See http://stackoverflow.com/questions/3291758/how-do-i-use-the-app-multi-package-to-support-multi-selection-in-my-oracle-form for steps/sample code.
    Sandeep Gandhi

  • How to - enable - multi touch - in windows 7 ultimate - for my G560 touchpad

         I and my friend have the lenovo G560 laptops. I am running windows 7 ultimate and my friend is running ubuntu 11.04 OS in our laptops.
    In Ubuntu: The multi touch is enabled by default for the laptop touch-pad. For vertical scrolling, we can use two fingers to navigate.
    In Windows 7 Ultimate: I don't know how to enable this multi-touch feature.
    Your help is very much appreciated.
    Thanks in advance.

    control panel > hardware and sound > mouse > mouse properties > device settings > settings ( if you have synaptic mouse )
    if you don't synaptic, check the mouse properties to enable/disable the features you'd like to.

  • How to enable macro's again (Lock Selected Cells)

    Hi All,
    I am using the EPM addin for excel for demand planning. I would like to lock certain cells in the by clicking the following option on the formatting sheet:
    However, I get the following error:
    I did not disable any macro's manually, so I do not know how this comes. Can anyone tell me how to enable these macro's again?
    KR,
    Kristof

    I tried to do so on another workbook and here another macro seems to fail as well.
    When trying to add a specific member in the formatting sheet, the following error occurs:
    I think that somewhere, all macro's are disabled but I cannot find any way to reverse this...
    Kristof

  • How to enable Active-State Power Management (ASPM)?

    If I'm running the 'powercfg -energy' command in Windows 7 it reports that ASPM has been disabled. It is a long known issue as it has been reported in previous topics around the internet. And it has been reported that enabling it could save 1-2 Watts. The old topics have been reporting how to enable it with the help of a Linux/Win7 dualboot installation.
    I have been trying, but unfortunately most links in those articles are dead (topics are several years old). Is there an update on the issue, or a still functioning guide? I would love to get an hour extra juice.
    old topics:
    PCI Express Active-State Power Management (ASPM) has been disabled ..
    Enable ASPM in T61 running Windows for saving ~2W of power consumption
    X200s 7470CR9

    Actually after a full day on the issue, reading thoroughly Enable ASPM in T61 running Windows for saving ~2W of power consumption and ASPM on Linux  I somewhat succeeded:
    -I could enable ASPM for my Intel AGN 5300
    -But my audio card doesn't support ASPM at all
    So the result is that powercfg -energy is still reporting ASPM error and HWinfo reporting all PCIe devices as ASPM L1 but the sound card as unable to do ASPM. So unless someone has an idea how to put the Conexant 20561 into ASPM, I'm afraid that I am not much further than I started with...
    X200s 7470CR9

  • How to use read statement on a select options

    Hi all,
    I am trying to read the all the values on user selection screen select options.
    I have an internal table loaded with data.
    So while looping this internal table, I need to check the table certain tank field (lgort) against the select options tank values entered by user.
    It is fine when user uses the multiple values on the select options since I use the "READ" statement on the select options and get the matching values.
    Example: when user uses the multiple value selection on a select-options to enter values A554 and A555
    The select-options table will be:
    sign   option    low         high
    I          EQ       A554
    I          EQ       A555
    LOOP AT gt_output_location INTO gw_output.
      READ TABLE s_lgort INTO gw_lgort WITH KEY low = gw_output-lgort.
        IF sy-subrc = 0.
        * append row to another table.
        ENDIF.
    ENDLOOP.
    Problem:
    Example: when user uses range on a select-options to enter values A554 and A555
    sign   option    low         high
    I          BT      A554       A555
    The read statement can only get matching value A554.  
    LOOP AT gt_output_location INTO gw_output.
      READ TABLE s_lgort INTO gw_lgort WITH KEY low = gw_output-lgort.
        IF sy-subrc = 0.
        * append row to another table.
        ENDIF.
    ENDLOOP.
    Anyone have any idea on this?? Thanks!!

    Hi all, I need to consider each and every lines of the gt_output_location as there are other fields need to consider also. Basically I am checking each and every lines of this table to see which lines I need to append to another table.
    That is why I did not use  "LOOP AT gt_output_location INTO gw_output WHERE lgort IN s_lgort"
    The full gt_output_location:
    LOOP AT gt_output_location INTO gw_output.
    *      IF p_lgort = space AND p_umlgo = space.
           IF gv_lines_lgort = 0 AND gv_lines_umlgo = 0.
    *       only append those from tank <> to tank
             IF gw_output-lgort <> gw_output-umlgo.
               APPEND gw_output to gt_output.
               CLEAR gw_output.
             ELSE. "from tank == to tank
    *         append those from plant <> to plant
               IF gw_output-werks <> gw_output-umwrk.
                 APPEND gw_output to gt_output.
                 CLEAR gw_output.
               ENDIF.
             ENDIF.
    *      ELSEIF p_lgort = space AND p_umlgo <> space.
           ELSEIF gv_lines_lgort = 0 AND gv_lines_umlgo > 0.
    *        IF gw_output-umlgo = p_umlgo.
             READ TABLE s_umlgo INTO gw_umlgo WITH KEY low = gw_output-umlgo.
             IF sy-subrc = 0.
    *         only append those from tank <> to tank
               IF gw_output-lgort <> gw_output-umlgo.
                 APPEND gw_output to gt_output.
                 CLEAR gw_output.
               ELSE. "from tank == to tank
    *           append those from plant <> to plant
                 IF gw_output-werks <> gw_output-umwrk.
                   APPEND gw_output to gt_output.
                   CLEAR gw_output.
                 ENDIF.
               ENDIF.
             ENDIF.
    *      ELSEIF p_umlgo = space AND p_lgort <> space.
           ELSEIF gv_lines_umlgo = 0 AND gv_lines_lgort > 0.
    *        IF gw_output-lgort = p_lgort.
             READ TABLE s_lgort INTO gw_lgort WITH KEY low = gw_output-lgort.
             IF sy-subrc = 0.
    *         only append those from tank <> to tank
               IF gw_output-lgort <> gw_output-umlgo.
                 APPEND gw_output to gt_output.
                 CLEAR gw_output.
               ELSE. "from tank == to tank
    *           append those from plant <> to plant
                 IF gw_output-werks <> gw_output-umwrk.
                   APPEND gw_output to gt_output.
                   CLEAR gw_output.
                 ENDIF.
               ENDIF.
             ENDIF.
           ELSE.
    *        IF gw_output-lgort = p_lgort AND gw_output-umlgo = p_umlgo.
             READ TABLE s_lgort INTO gw_lgort WITH KEY low = gw_output-lgort.
             IF sy-subrc = 0.
    *         only append those from tank <> to tank
               IF gw_output-lgort <> gw_output-umlgo.
                 APPEND gw_output to gt_output.
                 CLEAR gw_output.
               ELSE. "from tank == to tank
    *           append those from plant <> to plant
                 IF gw_output-werks <> gw_output-umwrk.
                   APPEND gw_output to gt_output.
                   CLEAR gw_output.
                 ENDIF.
               ENDIF.
             ENDIF.
             READ TABLE s_umlgo INTO gw_umlgo WITH KEY low = gw_output-umlgo.
             IF sy-subrc = 0.
    *         only append those from tank <> to tank
               IF gw_output-lgort <> gw_output-umlgo.
                 APPEND gw_output to gt_output.
                 CLEAR gw_output.
               ELSE. "from tank == to tank
    *           append those from plant <> to plant
                 IF gw_output-werks <> gw_output-umwrk.
                   APPEND gw_output to gt_output.
                   CLEAR gw_output.
                 ENDIF.
               ENDIF.
             ENDIF.
           ENDIF.
           CLEAR gw_lgort.
           CLEAR gw_umlgo.
         ENDLOOP.

  • How can I load a graphic in SOFFCONT1 into an SAP picture control?

    At my customer site, GOS attachments to PM notifications are stored in SOFFCONT1, so I can't use cl_bds_document_set to get a URL that I can pass to the load method of the SAP picture control.
    How can I load the actual graphic in SOFFCONT1 into an SAP picture control?
    Or do I have to configure IW22 so it stores in BDS content servers, not SOFFCONT1?
    If this is the case, how do configure IW22 so GOS knows to store attachments as BDS documents rather than in SOFFCONT1 ???
    Thanks
    djh

    This explains how to make sure your PC and bin documents are saved on your HTTP content server, instead of in the database:
    http://help.sap.com/saphelp_nw04/helpdata/en/c0/1aca5823ee11d3a2db00a0c943858e/content.htm

  • How to enable multi-finger touchpad gestures on 2740p win7 64bit tablet.

    I recently purchased an HP 2740p that works pretty well.  The issue I'm having is related to the multi-finger touchpad gestures.  I'm a huge fan of two-finger scrolling, and the manual for this tablet states that this pc has multi-finger scrolling.  The manual also describes/explains how to use this feature.  However, when I first got this tablet, the "multi-finger gesture" options were grayed out in the synaptic touchpad setttings window.  I then elected to install the latest synaptic touchpad driver in the hopes of enabling this feature, but this only allowed me to check the "MultiFinger Gestures" checkbox, and not actually use mutlFinger gestures.  Is this a known problem with this pc/synaptic driver combo.  If so, is there a fix?  Any help would be appreciated.
    E
    Build: HP 2740p, i5, 4GB DDR3, Win7 64bit, synaptic touhpad driver version 15.2.7.0 (12/22/2010).  Product #: 2CE0330DSH

    If you find that it is greyed out, try right clicking the synaptics tray icon in the taskbar and if the option "disable gestures: is ticked, untick it and the options in the touchpad settings should be accessable.
    Hope this helps

  • [urgent] How to enable session state without modifying web.config ?

    HI ,
    We have customized a new master page to our site. We have a requirement to use session (HTTContext.current.session) , to save data , then we have an error session is null , so we excuted the
    Enable-SPSessionStateService-DefaultProvision
    We have no access to the web.config ! so we cant change the ligne from <pages enablesessionstate="false"  to <pages enablesessionstate="true" , so we wanted to add enablesessionstate="true" in the page wich caused
    the probleme and we had a new error "enablesessionstate is not allowed in this page".
    How can we resolve this problem without modifying the Web.config ?? a have benn blocked since 2 days ! Any help will be great. Thanks in advance :)

    Hi Bouhmind,
    Thanks for posting this issue, you can enable session by setting enablesessionstat="true" in page directive as you try. Also, you need to do some configuration in your IIS. Kindly browse the below mentioned  URL to do that configuration in
    IIS.
    http://ammarfassy.wordpress.com/2012/04/06/session-state-can-only-be-used-when-enablesessionstate-is-set-to-true/
    I hope this is helpful to you. If this works, Please mark it as Answered. 
    Regards, 
    Dharmendra Singh (MCPD-EA | MCTS) 
    Blog :
    http://sharepoint-community.net/profile/DharmendraSingh

  • How to enable multi-language support in JAVA

    i want to make an application whose language will be URDU but how to enablw urdu or any non-english language characters in java.plz help.i am an SCJP.

    The partial answer is that you use fonts that can display those characters. But you may also have to address how to enter them from the keyboard, how to store them in databases, how to transmit them via HTTP... depending on your actual requirements.
    Start with the "Internationalization" tutorial that is referenced here: http://java.sun.com/docs/books/tutorial/

  • How to enable log4j logging on Infoview and CMC on JBoss Appln Server?

    Hi
    I have enabled log4j logging on Web Intelligence (For Analytical Reporting Application). Can anybody help me in enabling logging for CMC and Infoview.
    Please refer to the below link for more details on Logging in JBoss AS.
    http://docs.jboss.org/process-guide/en/html/logging.html#d0e3341
    Regards
    Arun Sasi

    If you have the EM (Enterprise Manager) installed on your stand alone WLS (which you should) you can select the managed server your app is running on, select the 'Log Configuration' menu and you should see almost the same representation an in jdev.
    Timo

  • How to plug a web browser like firefox into a java application

    I am developing a sftware that conect to de internet and get a web page source code.
    Problems i have.
    im using URL clas and the open conect method
    this is the source:
    public String Connect(String pUrl) throws HtmlConnectionException{
            String lTxtHtml = "";
            String lLine = "";
            BufferedReader lInput = null;
            int lTimeout = 15000;
            URL url;
            try {
                if(gProxyIP != ""){              
                    url = new URL("http",gProxyIP,Integer.parseInt(gProxyPort),pUrl);
                }else{
                    url = new URL(pUrl);
                URLConnection urlc = url.openConnection();
                urlc.setDefaultUseCaches(false);
    //            urlcsetReadlTimeout(lTimeout);
                lInput = new BufferedReader(new InputStreamReader(new DataInputStream(url.openStream())));
                while ((lLine = lInput.readLine()) != null) {
                    lTxtHtml += (lLine) + "\n";
                lInput.close();
            } catch (SocketTimeoutException e){
                 gLogger.severe(e.getMessage());
                //e.printStackTrace();
                lTxtHtml = "lTimeout";
                throw new HtmlConnectionException(lTxtHtml);
            } catch (MalformedURLException e) {
                 gLogger.severe(e.getMessage());
                //ex.printStackTrace();
                lTxtHtml = "Bad URL";
                throw new HtmlConnectionException(lTxtHtml);
            } catch (IOException e) {
                 gLogger.severe(e.getMessage());
                //ex.printStackTrace();
                lTxtHtml = "Invalid";
                throw new HtmlConnectionException(lTxtHtml);
            return lTxtHtml;
        }but i dont know how to handle redirection of pages becose some teimes when it redirect me to anoder page an snd me an 30X mensage it crash and throw an IO Exception.
    Probelm 2
    i show the source of the web page but wat i nned is to plug a web wrowser into my application that let me se the web page in one JPanel and its source hig ligted in a JEditPane.
    becose i ned to parse tags to identify string automatically
    or the otehr option is to plug my application into a web wrobser (as a plugin of firefox) an be a ble to run it when i chose it from a contextual menu
    please. can u help me to find the way?

    You can use the Runtime class for this. It can run any command. So, you can run the .exe file of your Web browser.
    The following code will run Internet Explorer (assuming iexplorer.exe is in C:\Program Files\Internet Explorer):
    import java.lang.Runtime;
    public class Explore{
    public static void main(String[] args) {
    try{
    Process p = Runtime.getRuntime().exec("C:\\Program Files\\Internet Explorer\\iexplore");
    }catch (Exception e) {
    System.out.println("Exception: " + e);

  • How to find the list of all the schedules on SAP BW server ?

    Hi.
    I am not familiar with BW  and request some advise.
    We would like to have some information with regard to list of all the jobs / schedules which are running on our BW server.
    With date / time./ daily /weekly/ whatever,
    With start time and end time ... of the schedule.
    Which transaction - will help me to get this information.
    Because we would like to see the entire schedules list and then schedule some jobs on the BW server.
    Can anyone help me on this.
    Thanks in advance.
    Kind regards
    Indu

    Goto t-code SM37
    1)Give job name and user name as *
    2) Select the job status: Scheduled/Released/ready/Active/Finished/Cancelled
    3)Job start condition :Input from Date and To Date (From when you would like to see the jobs)
    4)Now execute, system will display all the jobs accordingly.

  • How to modify a Procedure "select into" statement to use a cursor

    The below code fails with exception too many rows. How do I modify the Procedure's Select Into statement to use a cursor?
    CREATE OR REPLACE PROCEDURE Track_Asset(
       business_date IN NUMBER DEFAULT NULL,
       missing_table_name  OUT VARCHAR2)
    IS
       ln_business_date NUMBER;
        incorrectdateformat EXCEPTION;
    BEGIN
       IF business_date < 0
       THEN
          RAISE incorrectdateformat;
       ELSE
          DECLARE
            ln_business_date NUMBER;
          BEGIN
             SELECT MAX(business_date)
             INTO ln_business_date
             FROM sproof ;
          EXCEPTION
            WHEN NO_DATA_FOUND THEN
             dbms_output.put_line('NO MATCH FOUND');
            WHEN OTHERS THEN
            dbms_output.put_line('ORACLE ERROR :' || SQLERRM);       
          END;
          DECLARE
            missedfeedfnd EXCEPTION;
          BEGIN
             SELECT 'Missing Value : ' || table_name
             INTO missing_table_name
             FROM (
                SELECT UPPER(table_name) table_name
                FROM filespec
                WHERE data_table_name IN ('TABLE1','TABLE2','TABLE3')
                MINUS (
                SELECT DISTINCT UPPER(first_table_name)
                FROM dpca
                WHERE business_date = ln_business_date
                AND first_table_name IN ('TABLE1','TABLE2','TABLE3')
                GROUP BY UPPER(first_table_name) UNION
                SELECT UPPER(first_table_name)
                FROM dpca
                WHERE business_dt_num = TO_NUMBER( SUBSTR('201111', 1, 6) || '01' )
                AND first_table_name = 'TABLE4'
                GROUP BY UPPER(first_table_name) ));
                IF missing_table_name  IS NOT NULL THEN
                   dbms_output.put_line('Missing Value : '|| missing_table_name);
                   RAISE missedfeedfnd;
                ELSE
                  NULL;
                END IF;
          EXCEPTION
             WHEN TOO_MANY_ROWS THEN
       DBMS_OUTPUT.PUT_LINE (' SELECT INTO statement retrieved multiple rows');
              WHEN missedfeedfnd THEN
              raise_application_error ( - 20003, 'Missed Feed');
          END;
        END IF;
          EXCEPTION
       WHEN incorrectdatevalue
       THEN
          raise_application_error ( - 20001, 'Incorrect/Bad Date Entered');
    END;

    ok try this - OUT param will be populated with comma separated list of table names:
    PROCEDURE Track_Asset(
       business_date IN NUMBER DEFAULT NULL,
       missing_table_name  OUT VARCHAR2)
    cursor c_table_names is
    select datatablename
    from   ( select upper(datatablename) datatablename
             from   filespec
             where  data_table_name in ('TABLE1','TABLE2','TABLE3'                                 )
            MINUS
            ( select upper(first_table_name)
              from   dpca
              where  business_dt_num = [-- this date is retrieved by getting the MAX(business_date) from sproof table]
                     and fus_data_table_name in ('TABLE1','TABLE2','TABLE3'
              group  by
                     upper(first_table_name)
             UNION
              select upper(first_table_name)
              from   dpca
              where  business_dt_num = to_number( substr('201111',1,6) || '01' )
                     and first_table_name = 'TABLE4'
              group  by
                     upper(first_table_name)
    begin
       for rec in c_table_names
       loop
           missing_table_name  := missing_table_name  || rec.datatablename ||',';
       end loop;
       missing_table_name  := rtim(missing_table_name , ',');
    end ;HTH
    Edited by: user130038 on Dec 28, 2011 8:46 AM

  • Enabling multi org??

    hai ,
    how u enabling multi org for 11.5.10.2
    current ADI LEVEL WAS2. HOW U UPGRADE TO ADI5??
    REGARDS
    DBA

    how u enabling multi org for 11.5.10.2Check Note: 396351.1 - Switching from Single-Org To Multi-Org
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=396351.1
    To verify if an installation of Oracle Applications has been converted to Multi-Org, please check the following:
    - If 'Convert to MultiOrg' does not appear in adadmin, then your installation is Multi-Org
    - Run the following SQL statement, if it returns 'Y', then your installation is Multi-Org:
    SQL> select multi_org_flag
    from fnd_product_groups;
    ADI LEVEL WAS2. HOW U UPGRADE TO ADI5??Check Note: 233044.1 - About Oracle Applications DBA Minipack 11i.AD.I (AD.I.5)
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=233044.1

Maybe you are looking for

  • All "Site Content and Structure" default views incorrectly showing "There are no items to show in this view"

    Hi All, On my SharePoint Online site (Office 365) all my "Site Content and Structure" default views are showing "There are no items to show in this view". For example the "Checked out To Me" view shows "There are no items to show in this view" (shown

  • Problem regarding scheduling of maintenance plan

    Dear Sap Gurus, I am facing the problem during the scheduling of maintenancepan thruough IP10 follwing error is coming "Planned date for maintenance plan 124 was scheduled for 00.00.0000" Planned date for maintenance plan 124 was scheduled for 00.00.

  • Maintenance Cost Budgeting

    Hello, I have created a maintenance Plan. the strategy is BPMWEK. Total of 52 weeks. I have inserted one operation in the task list which is assigned to the maintenance plan with time line of 2 hours. When i do the maintenance cost planning using tco

  • Business Content Level

    Hello, How do you determine what level of Business content you are at? Currently I know we are running 3.0B, and we are starting an upgrade to 3.5 Thanks, Nick

  • Starting to get nonsensical replies to my texts

    With 1 particular person (a family member), I am starting to get nonsensical replies to my texts to them. When following up with them in person or via phone, they say they never sent a reply at all. I have not had this problem with anyone else so far