Problem in Merging roles

Hi Experts,
We are Merging Roles. We have HR role in which we want ESS, MSS  and HR Admin Role. For these we created HR role and assigned ESS, MSS, HR Admin roles.
Only one role (first role) is displaying in HR role. We tried different options, but it is not worked. 
We are using same merge id for 3 roles (ESS, MSS, and HR Admin). And can merge it True.
Kindly provide your suggestions.
Regards,
Srinivasu.Y

Hi Srinivasu,
What I believe is that u didt give the Merge Priority, which is there under Properties of a Role.
Give Merge Priority for the Roles as follows:
HR Role - 10
ESS Role -20
MSS Role - 30
HR Admin Role -40
The Merge Priority with lease value will be displayed.
Also add all the Roles (HR Role, ESS Role, MSS Role, HR Admin Role) to the particular user. And also enusure that MergeID for all the Roles (HR Role, ESS Role, MSS Role, HR Admin Role) are set to same value.
Hope this will help you.
Reply if you have any queries.
Regards,
Jithin

Similar Messages

  • Merged Roles

    All,
    I want to implement merged roles cocept.
    I have two roles, RA and RB.
    I have two worksets attched(delta linked) to this roles WA & WB.Under worksets there are iview like IA abd IB.
    Now as per my understanding I have made the merge id's of both roles as "Sales" i.e same, set the "merge priority" property of both the roles as "80.0" , set the property "can be merged" to "TRUE" for all the objects (RA,RB,WA,WB,IA,IB),set the property "entry point" of the work sets to "NO",
    set the property of the role "Entry point" as "YES"
    I have assigned these two roles to myself.
    When I try to access the role, I am just able to see WA and WB.
    What could be the problem?
    Thanks and Regards
    Pradeep

    Hi Pradeep
    As an excercise I tried out the same scenario as you did except that I set the Merging Priority of RA, WA and IA as 80.0 and RB, WB and IB as 100.0. After defining the Entry Points for both WA and WB as No, I saw that WA, which has the lesser Merging Priority appeared beneath RA. However even after setting the Entry Point for RB as Yes, I am not able to see RB. And I cannot see WB as well whose Entry Point is of course set to No.
    I couldn't find a reason why it is so. I can only conclude that the role which has the lowest Merging priority will be seen in the Top Level Navigation and irrespective of setting the Entry Points as No for its dependent objects they will be seen under the Roles.
    Anyways follow this link. It could be helpful.
    http://help.sap.com/saphelp_erp2004/helpdata/en/53/89503ede925441e10000000a114084/frameset.htm
    Anyone else got a suggestion?
    Best Regards
    Priya

  • Performance problem with MERGE statement

    Version : 11.1.0.7.0
    I have an insert statement like following which is taking less than 2 secs to complete and inserts around 4000 rows:
    INSERT INTO sch.tab1
              (c1,c2,c3)
    SELECT c1,c2,c3
       FROM sch1.tab1@dblink
      WHERE c1 IN (SELECT c1 FROM sch1.tab2@dblink);I wanted to change it to a MERGE statement just to avoid duplicate data. I changed it to following :
    MERGE INTO sch.tab1 t1
    USING (SELECT c1,c2,c3
       FROM sch1.tab1@dblink
      WHERE c1 IN (SELECT c1 FROM sch1.tab2@dblink) t2
    ON (t1.c1 = t2.c1)
    WHEN NOT MATCHED THEN
    INSERT (t1.c1,t1.c2,t1.c3)
    VALUES (t2.c1,t2.c2,t2.c3);The MERGE statement is taking more than 2 mins (and I stopped the execution after that). I removed the WHERE clause subquery inside the subquery of the USING section and it executed in 1 sec.
    If I execute the same select statement with the WHERE clause outside the MERGE statement, it takes just 1 sec to return the data.
    Is there any known issue with MERGE statement while implementing using above scenario?

    riedelme wrote:
    Are your join columns indexed?
    Yes, the join columns are indexed.
    You are doing a remote query inside the merge; remote queries can slow things down. Do you have to select all thr rows from the remote table? What if you copied them locally using a materialized view?Yes, I agree that remote queries will slow things down. But the same is not happening while select, insert and pl/sql. It happens only when we are using MERGE. I have to test what happens if we use a subquery refering to a local table or materialized view. Even if it works, I think there is still a problem with MERGE in case of remote subqueries (atleast till I test local queries). I wish some one can test similar scenarios so that we can know whether it is a genuine problem or some specific problem from my side.
    >
    BTW, I haven't had great luck with MERGE either :(. Last time I tried to use it I found it faster to use a loop with insert/update logic.
    Edited by: riedelme on Jul 28, 2009 12:12 PM:) I used the same to overcome this situation. I think MERGE needs to be still improved functionally from Oracle side. I personally feel that it is one of the robust features to grace SQL or PL/SQL.

  • Problems with Merging Account

    Hi Experts,
    I have 2 problems with merging accounts:
    1) Opportunity is not moved from source data to master data. I do not know why. Central BP is changable.
    2) Contact Person is only copied, not moved. This causes problems later on when we want to delete the source data.
    Any idea how to solve this?
    Best regards,
    Cristina

    Hi Arno:
    First of all: Thanks for answering my thread!
    The problem with opportunities in my system is, that they are not merged at all, not even with the batch job. I checked trx. BUSWU02. Node CRM370 is assigned to variant CLEAR_REP.
    Also the central Business Partner in opportunity remains changable, once the opportunity was saved.
    Anything else I have to check??
    Best regards,
    Cristina

  • Merged Roles Ordering Problem

    Hello all,
                 We have a role and in that role we want to display other roles. We have set the sub roles properties as follows,
               1) Merge Id
               2) Merge Priority
               3) Sort Priority
    Now the problems is even though we have set those properties the sub roles under the mail roles are not coming in proper order.
    Please suggest some solution.
    Thanks
    Mittal

    Hi Mittal,
    Create the following:
    MainRole: Set the MergeID to "Merge1" (or whatever)
    SubRole1
    |______WS1 (call it SubRole1, or whatever)
    SubRole2
    |______WS2(call it SubRole2, or whatever)
    Set the MergeID for SubRole1 and SubRole2 to "Merge1". Make sure the MainRole has a merge priority lower than the subroles.
    To order the nodes of the SubRole, set the Sort Priority of the WS nodes (not the roles).
    Hope this helps.
    Daniel

  • Problem in merging large collection of PDF  in single pdf at a time-itext

    hi
    i am using itext library for PDF generation.My problem is ,when i merge the large number of PDFs which is already
    generated, in a single PDF ,i got 'Out of Memery' exceptions,but when i doing this with limited number of PDFs
    they are concated as a single PDF .so what shall i do to overcome Out of memory exceptions.because,our client wants to print the mass PDF ,which may have more than 1000 PDFs on a single merged PDF .if any possible,when i merge the single PDF with already merged PDF one by one at a time when it will be generated,how can i handle I/O streams to open one PDF at a time and merge with already generated PDF on the same time,and how can i append the generating PDF directly on already generated PDF using streams
    This is my java code:
    package javaexamples;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    import com.lowagie.text.Document;
    import com.lowagie.text.pdf.BaseFont;
    import com.lowagie.text.pdf.PdfContentByte;
    import com.lowagie.text.pdf.PdfImportedPage;
    import com.lowagie.text.pdf.PdfReader;
    import com.lowagie.text.pdf.PdfWriter;
    public class ConcatPDFs {
              public static void main(String[] args) {
              try {
              List pdfs = new ArrayList();
              Document document     = new Document();
              OutputStream output = new FileOutputStream("E:\\templates\\out\\Merged PDF\\merge.pdf",true);
              PdfWriter writer      = PdfWriter.getInstance(document, output);
              pdfs.add(new FileInputStream("E:\\templates\\out\\07J439HF_FINAL_EVALU.pdf"));
              pdfs.add(new FileInputStream("E:\\templates\\out\\07J440HF_FINAL_EVALU.pdf"))*;*//it may be increased over thousand paths.
              ConcatPDFs.concatPDFs(document,writer,pdfs, true);
              output.flush();
              document.close();
              output.close();
              } catch (Exception e) {
              e.printStackTrace();
              public static void concatPDFs(Document document,PdfWriter writer,List streamOfPDFFiles, boolean paginate) {
              try {
              List pdfs = streamOfPDFFiles;
              List readers = new ArrayList();
              int totalPages = 0;
              java.util.Iterator iteratorPDFs = pdfs.iterator();
              // Create Readers for the pdfs.
              while (iteratorPDFs.hasNext()) {
              InputStream pdf = (FileInputStream)iteratorPDFs.next();
              PdfReader pdfReader = new PdfReader(pdf);
              readers.add(pdfReader);
              totalPages += pdfReader.getNumberOfPages();
              // Create a writer for the outputstream
              document.open();
              BaseFont bf = BaseFont.createFont(BaseFont.HELVETICA, BaseFont.CP1252, BaseFont.NOT_EMBEDDED);
              PdfContentByte cb = writer.getDirectContent(); // Holds the PDF
              // data
              PdfImportedPage page;
              int currentPageNumber = 0;
              int pageOfCurrentReaderPDF = 0;
              Iterator iteratorPDFReader = readers.iterator();
              // Loop through the PDF files and add to the output.
              while (iteratorPDFReader.hasNext()) {
              PdfReader pdfReader = (PdfReader)iteratorPDFReader.next();
              // Create a new page in the target for each source page.
              while (pageOfCurrentReaderPDF < pdfReader.getNumberOfPages()) {
              document.newPage();
              pageOfCurrentReaderPDF++;
              currentPageNumber++;
              page = writer.getImportedPage(pdfReader, pageOfCurrentReaderPDF);
              cb.addTemplate(page, 0, 0);
              // Code for pagination.
              if (paginate) {
              cb.beginText();
              cb.setFontAndSize(bf, 9);
              cb.showTextAligned(PdfContentByte.ALIGN_CENTER, "" + currentPageNumber + " of " + totalPages, 520, 5, 0);
              cb.endText();
              pageOfCurrentReaderPDF = 0;
              } catch (Exception e) {
              e.printStackTrace();
              } finally {
                   System.out.println("SUCCESS");
              /*try {
              if (outputStream != null);
              //outputStream.close();
              } catch (IOException ioe) {
              ioe.printStackTrace();
    thanks in advance
    regards
    Oasisdeserts

    thanks for your reply,
    i already tried open and close the output stream and Input Stream to read and write every PDF,but i conflicted that that last PDF only is written in the final merged PDF.so what can i do to this every time the new PDF is to take to merge with already merged PDF.
    i want know about CODE TAGS
    As per your succession,
    for(int i =0 ;i<200;i++){
                   output = new FileOutputStream("E:\\templates\\out\\Merged PDF\\merge.pdf",true);
                   document.open();
                   String value     = "E:\\templates\\out\\07J439HF_FINAL_EVALU.pdf";
                   ConcatPDFs.concatPDFs(document,writer,value, true);
                   output.flush();
                   document.close();
                   output.close();
    thanks
    regards
    Edited by: oasisdesert on Oct 22, 2008 3:03 AM

  • Problem mapping LoginModule roles to ejb security roles

    I have "successfully" managed to implement the DBSystemLoginModule. When I run my application I successfully authenticate to the database, the login module successfully retrieves the users roles from the database and adds them to the subject:
    PassiveCallbackHandler cbh = new PassiveCallbackHandler(username, password);
    LoginContext lc = new LoginContext("current-workspace-app", cbh);
    lc.login();
    I then perform a lookup on a bean using the same user:
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "oracle.j2ee.rmi.RMIInitialContextFactory");
    env.put("java.naming.security.principal",username);
    env.put("java.naming.security.credentials",password);
    env.put("java.naming.provider.url", "ormi://localhost:23891/current-workspace-app");
    Context ic = new InitialContext(env);
    final SessionEJBHome sessionEJBHome =
    (SessionEJBHome) PortableRemoteObject.narrow( ic.lookup( "SessionEJB" ), SessionEJBHome.class );
    Finally, I create an instance of the bean and call a method of this bean.
    SessionEJB sessionEJB;
    sessionEJB = sessionEJBHome.create( );
    sessionEJB.testMe( );
    I am expecting (hoping) that the roles retrieved from the database by the login module may be used to authenticate the ejb methods. i.e. if (in ejb-jar.xml) the method "testMe" has a method-permission with role-name of "ABC" then this method may only be accessed if the user is a member of the "ABC" role retrieved from the database by the login module. However I get the message:
    "username is not allowed to call this EJB method"
    When I add a security-role-mapping in orion-ejb-jar.xml mapping the role "ABC" to the group "ABC" (and impliesALL="true") then the method is called successfully. However, if I add a security-role-mapping mapping the role "DEF" to the group "DEF" (which the user is not a member of) the ejb method is (wrongly) called successfully (with implies all="false" the method always fails). In other words there seems to be no mapping of the roles retrieved by the login module to the ejb security roles.
    Can anyone please enlighten me on how I can achieve the mapping of the ejb security roles to the roles obtained from the login module.
    Thanks
    PS I have this problem with JDeveloper 10.1.3 (Developer Preview 10.1.3.0.2.223 and Early Access 10.1.3.0.3.3412)

    Hi Sebastian,
    yes, it is possible to do such mapping. And here how it works:
    1. define security roles in the ejb-jar.xml within the <security-role>. For example:
    <security-role>
         <role-name>test</role-name>
    </security-role>
    2. then you map the roles those roles to server security roles using the <security-role-map> tag of the ejb-j2ee-engine.xml descriptor.
    <security-permission>
       <security-role-map>
          <role-name>test</role-name>
          <server-role-name>myUMErole</server-role-name>
       </security-role-map>
    </security-permission>
    the myUMErole must be defined in the UME!
    Does this answer your question?

  • Problem in Merging PDF files

    Need to print batches of PDF.<br />The command copy *.PDF > LPT1: (redirected by NET USE) doesn't work.<br />On the printer I get an error message. All files are sent in one file.<br />.<br />I guess this is related to the PDF header which is not set correctly for the second PDF copied.<br />I mean, according to the PDF Reference guide, the proper syntax for a PDF file header is for the "%PDF-<version>" comment to be the first line of the PDF file. The recommended second line is a comment line with four binary characters to indicate the file contains binary information.<br />.<br />Acrobat requires only that the header appears somewhere within the first 1024 bytes of the file.<br />.<br />I guess the Rip is not able to convert PDF into PS before its interpretation as the second header exceeds 1024. Even the combined file has %%EOF before each PDF Header, this is probably not enough to merge them without problem.<br />.<br />Did you experience the same ?<br />Thanks for your comments.<br />Regards.<br />Franck

    You can build your own PDF merge utility using the PDF Merge and split libraries for .NET from from http://www.dotnet-reporting.com or http://www.winnovative-software.com .
    You can use it to merge PDF files, html files, text files and images,
    set the page orientation, compression level and page size.
    All this can be accomplished with only a few lines of code:
    PdfDocumentOptions pdfDocumentOptions = new PdfDocumentOptions();
    pdfDocumentOptions.PdfCompressionLevel = PDFCompressionLevel.Normal;
    pdfDocumentOptions.PdfPageSize = PdfPageSize.A4; pdfDocumentOptions.PdfPageOrientation = PDFPageOrientation.Portrait;
    PDFMerge pdfMerge = new PDFMerge(pdfDocumentOptions);
    pdfMerge.AppendPDFFile(pdfFilePath);
    pdfMerge.AppendImageFile(imageFilePath);
    pdfMerge.AppendTextFile(textFilePath);
    pdfMerge.AppendEmptyPage();
    pdfMerge.AppendHTMLFile(htmlFilePath);
    pdfMerge.SaveMergedPDFToFile(outFile);

  • Problem in merging two files using BPM

    Hello Frens,
    I am doing a scenario for merging of two files N:1 using BPMu2026
    I have to merge two files into one file. The two input files are as below :
    File1 : Id, Name, Age, Place
    File2 : ID, Street, Adrress
    And output File is : ID, Name, Age,place, street, Address
    For this scenario I have defined three datatypes , message types and  the message interfaces as below :
    For File1:  Mi_file1_ob, Mi_file1_abs
    For File2: Mi_file2_ob, Mi_file2_abs
    For output : mi_output_ib, mi_ouput_abs
    In interface mapping I have selected two source interface and one targetu2026
    For Integration process I have selected two receives as two branches of fork and transformation to collect them and a send..
    In IR part I have defined three communication channels sender1, sender2 and a receiver . I have imported the integration from IP and rest is sameu2026
    I am facing a problem for getting the outputu2026
    When I checked in sxmb_moni  everything is fine  and sxi_cache and the return code is also 0 but I am not getting the outputu2026
    Can anyone help me in finding out the problem..
    Thanks in advance...

    Hi,
    Have a look into these blogs and links
    /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
    http://help.sap.com/saphelp_nw04/helpdata/en/de/766840bf0cbf49e10000000a1550b0/content.htm
    you can design the ccBPM. To know more about Correlation -with e.g
    http://help.sap.com/saphelp_nw2004s/helpdata/en/0e/56373f7853494fe10000000a114084/content.htm
    /people/sravya.talanki2/blog/2005/08/24/do-you-like-to-understand-147correlation148-in-xi
    /people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm
    /people/sriram.vasudevan3/blog/2005/01/11/demonstrating-use-of-synchronous-asynchronous-bridge-to-integrate-synchronous-and-asynchronous-systems-using-ccbpm-in-sap-xi
    Re: Correlation
    http://help.sap.com/saphelp_nw04/helpdata/en/a5/64373f7853494fe10000000a114084/content.htm
    i hope this will help you.
    Regards
    Aashish Sinha
    PS : reward points if helpful

  • BPM giving problem in Merging and Splitting

    Hi Gurus,
    Im trying to BPM scenarios,
    First i tried to Merging Two message and send to one receiver system. In that both Sender and Receiver communication channel are wokring fine.. all are showing green light.. and the files also got processed from sender side but i cant get result  the output side. i checked my abstract interfaces , interfacing mapping and Container variables in IP everthing is right.. Even  this is not 1:N or N:1 mapping , all message types are having occurance of 1:1 only. when i checked using SXMB_moni... there my two sender are succesfully sending the messages and ip getting the message.. after IP should act as a sender right. that msg not there... what would be the problem... even correlation also correct using the common filed's xpath i was combing the msg. In IP im getting the Yellow color warnin like correlating not used in sender step but no error. but i activated the correlation in sender  step and assigned the xpath of the common field.
    After that i tried to do splitting same problem occuring.. no message in receiver side.. i double checked my abstract interfaces, inbound , outbound interfaces, interface mapping and container variable everthing was assigned properly. In IP Only a blue color waring i getting like receiver determination initialized but not used but no error , but when i checked the interface determination it was fine.. i created receiver type local variabled with multiline . this is not 1;N or N;1 mapping... a simple mapping
    Please help me experts,
    Regards,
    Balaji

    Hiii experts ,
    Please help me.. i have tried many times.. still the same problem exits...
    source msg type having 5 elemtn.. first 2 element mapped first target msg type and remaining fields mapped to receiver 2 target msg type.
    IP step are configured as below
    Container Variables: send,recv1, recv2, 2 receiver type msg for receiver determination (Receiver1, Receiver2) both are multilined.
    Receiver step : sender msg type (sender abs interface type)
    Transformation : Has the interface mapping and one source msg and 2 target msg
    In fork
    Branch1:
    receiver determination1 :receiver msgtype (recv1) and  the multiline element (receiver1) type of receiver.
    sender1 step: receiver msg type (recv1) and Receiver from-> Receiver List : Receiver->Receiver1
    Branch2:
    receiver determination2 :receiver msgtype (recv2) and  the multiline element (receiver2) type of receiver.
    sender2: step.. receiver msg type (recv2) and Receiver from-> Receiver List : Receiver->Receiver2.
    But msg going to IP.. after that IP not start to send msg...
    Please tell me.. what im doing wrong here?
    Regards,
    Balaji

  • Problem in provisioning role to a particular system urgen

    Hi all,
    I am getting the following error while provisioning the roles in AE. I checked the configurations and connectors everything is working fine with all other system. Only with this particular system i have the problem in provisioning the things.
    I believe the problem is more pertaining to BAPI and not to do with SAP GRC. Please guide me on this.
    Error: Hi all,
    I am getting the following error while provisioning the roles in AE. I checked the configurations and connectors everything is working fine with all other system. Only with this particular system i have the problem in provisioning the things.
    I believe the problem is more pertaining to BAPI and not to do with SAP GRC. Please guide me on this.
    Error: P20_100-INSPECT_P20_915-USER CREATE - Function template/VIRSA/BAPI_USER_CREATEcould not be retrieved from P20_100
    Regards,
    Suma Devaraj

    Hi Suma,
    Did you check that VIRSANH/VIRSAHR BAPI are correctly installed on relevant back-ends ? Moreover, if using CUA to provision users, BAPI should be installed not only on the system hosting the CUA, but on every client system (eg. ECC, SRM, BI, ...).
    You also may verify in SPAM transaction that you installed correct BAPI depending on your basis install (640, 700, ...) and on your GRC AC version (5.1, 5.2, ...). For example, if you are installing AC 5.2 on a BASIS700 system, corresponding package should be VIRSANH520_700 and/or VIRSAHR520_700. You may find more detailed information in "GRC Access Control ABAP install guide".
    Best regards,
    JC

  • Problem with merge using package (row)variable

    We're doing an ETL project, where we have to validate data coming from staging tables before inserting / updating them in our data tables.
    We use a validate function for this, in which we 'test' our mappings and business logic, and returns 'OK' if no errors were occured.This function is called in the WHERE clause, and populates a package row variable. From this variable, values are read in the insert / update statement, using a get function.
    The problem is that sometimes, with a data set with NO duplicate keys, we get an ORA-00001 error, and sometimes not.
    Does anyone have any idea why this error could occur ? We're on Oracle 9.2.0.5.0.
    For the demo mentioned below, the following statement fails , while it succeeds if we add 'and rownum < 11' to the where clause :
    merge into target_tab t
    using (select st.* from source_tab st where demo_pack.assign_var(st.attrib_1, st.attrib_2, st.attrib_3) = 'OK') s
    on (t.attrib_1 = s.attrib_1 and
    t.attrib_2 = s.attrib_2)
    when matched then update
    set t.attrib_3 = demo_pack.get_attrib('ATTRIB_3')
    when not matched then
    insert(attrib_1, attrib_2, attrib_3)
    values (demo_pack.get_attrib('ATTRIB_1'), demo_pack.get_attrib('ATTRIB_2'), demo_pack.get_attrib('ATTRIB_3'));
    Can anyone explain to me why this statement sometimes fails, and other times not ?
    Thanks in advance .
    demo tables / packages :
    create table source_tab
    attrib_1 varchar2(30),
    attrib_2 varchar2(30),
    attrib_3 varchar2(200)
    create table target_tab
    attrib_1 varchar2(30) not null,
    attrib_2 varchar2(30) not null,
    attrib_3 varchar2(200),
    constraint pk_target_tab primary key(attrib_1, attrib_2)
    insert into source_tab
    select table_name, column_name, data_type
    from user_tab_columns;
    commit;
    create or replace package demo_pack as
    function assign_var(p_attrib_1 in target_tab.attrib_1%type,
    p_attrib_2 in target_tab.attrib_2%type,
    p_attrib_3 in target_tab.attrib_3%type) return varchar2;
    function get_attrib(p_name in varchar2) return varchar2;
    end;
    create or replace package body demo_pack as
    g_rec target_tab%rowtype;
    function assign_var(p_attrib_1 in target_tab.attrib_1%type,
    p_attrib_2 in target_tab.attrib_2%type,
    p_attrib_3 in target_tab.attrib_3%type) return varchar2 is
    begin
    g_rec.attrib_1 := p_attrib_1;
    g_rec.attrib_2 := p_attrib_2;
    g_rec.attrib_3 := p_attrib_3;
    return 'OK';
    end;
    function get_attrib(p_name in varchar2) return varchar2 is
    l_return varchar2(200);
    begin
    if p_name = 'ATTRIB_1' then
    l_return := g_rec.attrib_1;
    elsif p_name = 'ATTRIB_2' then
    l_return := g_rec.attrib_2;
    elsif p_name = 'ATTRIB_3' then
    l_return := g_rec.attrib_3;
    end if;
    return l_return;
    end;
    end;
    /

    It's not necessarily that the problem is within your package code. As long as UNIQUE constraint exists on DEST table, any MERGE statement may fail with ORA-00001 due to concurrent updates and inserts taking place.
    Of course, it's just my guess but consider the following scenario (three sessions modify DEST table in parallel – and to keep this example clear, I put their commands in chronological order):
    S#1>  create table dest(x primary key, y) as
      2   select rownum, rownum
      3     from dual
      4  connect by level <= 5;
    Table created.
    S#1>  create table src(x, y) as
      2   select rownum + 1, rownum + 1
      3     from dual
      4  connect by level <= 5;
    Table created.
    S#1> select * from src;
             X          Y
             2          2
             3          3
             4          4
             5          5
             6          6
    S#1> select * from dest;
             X          Y
             1          1
             2          2
             3          3
             4          4
             5          5
    S#2> -- Now, session #2 will update one row in DEST table
    S#2> update dest
      2     set y = 40
      3   where x = 4;
    1 row updated.
    S#2> select * from dest;
             X          Y
             1          1
             2          2
             3          3
             4         40
             5          5
    S#1> -- Session #1 issues the following MERGE:
    S#1> merge into dest d
      2  using (select * from src) s
      3     on (s.x = d.x)
      4   when matched then update set d.y = s.y
      5   when not matched then insert (d.x, d.y)
      6        values (s.x, s.y);
    -- At this point, session #1 becomes blocked as it can not modify row locked by session #2
    S#3> -- Now, session #3 inserts new row into DEST and commits.
    S#3> -- MERGE in session #1 is still blocked.
    S#3> insert into dest values (6, 6);
    1 row created.
    S#3> select * from dest;
             X          Y
             1          1
             2          2
             3          3
             4          4
             5          5
             6          6
    6 rows selected.
    S#3> commit;
    Commit complete.
    S#2> -- Session #2 rolls back its UPDATE.
    S#2> rollback;
    Rollback complete.
    -- Finally, session #1 is getting unblocked, but...
    merge into dest d
    ERROR at line 1:
    ORA-00001: unique constraint (MAX.SYS_C0032125) violated
    S#1>Hope this helps,
    Andrew.

  • Problem with MERGE statement

    Hi All,
    We are encountering a strange problem with the merge command.
    The following statement works :-
    merge into ATTRIBUTE_GROUP@US_PRODUCT_UAT a
    using
         select
              a1.group_id,
              a1.NAME,
              a1.CREATE_DATE,
              a1.MODIFY_DATE
         from
              ATTRIBUTE_GROUP_LOG a1,
              product_push_wrk a2
         where
              a2.column_id = a1.group_id and
              a2.modify_date = a1.modify_date ) b
    on ( a.group_id = b.group_id)
    when matched then
         update set
              a.NAME = b.NAME,
              a.CREATE_DATE = b.CREATE_DATE,
              a.MODIFY_DATE = b.MODIFY_DATE
    when not matched then
         insert
              a.group_id,
              a.NAME,
              a.CREATE_DATE,
              a.MODIFY_DATE
         values
              b.group_id,
              b.NAME,
              b.CREATE_DATE,
              b.MODIFY_DATE
    However when we change the order of the columns in the select query as follows the an error occurs : -
    merge into ATTRIBUTE_GROUP@US_PRODUCT_UAT a
    using
         select
              a1.NAME,
              a1.group_id,
              a1.CREATE_DATE,
              a1.MODIFY_DATE
         from
              ATTRIBUTE_GROUP_LOG a1,
              product_push_wrk a2
         where
              a2.column_id = a1.group_id and
              a2.modify_date = a1.modify_date ) b
    on ( a.group_id = b.group_id)
    when matched then
         update set
              a.NAME = b.NAME,
              a.CREATE_DATE = b.CREATE_DATE,
              a.MODIFY_DATE = b.MODIFY_DATE
    when not matched then
         insert
              a.group_id,
              a.NAME,
              a.CREATE_DATE,
              a.MODIFY_DATE
         values
              b.group_id,
              b.NAME,
              b.CREATE_DATE,
              b.MODIFY_DATE
    ERROR at line 15:
    ORA-00904: "B"."GROUP_ID": invalid identifier
    SQL> l 15
    15* on ( a.group_id = b.group_id)
    The structure of the attribute_log table is as follows :-
    SQL> desc ATTRIBUTE_GROUP
    Name Null? Type
    GROUP_ID NOT NULL NUMBER
    NAME NOT NULL VARCHAR2(96)
    CREATE_DATE NOT NULL DATE
    MODIFY_DATE NOT NULL DATE
    Any pointers to the cause of this error will be highly appreciated.
    Thanks and Regards,
    Suman

    The table structures are as follows :-
    04:17:17 SQL> desc product_push_wrk
    Name Null? Type
    COLUMN_ID NOT NULL NUMBER
    TYPE NOT NULL VARCHAR2(10)
    PARENT_COLUMN_ID NUMBER
    LEVEL_NO NUMBER
    MODIFY_DATE NOT NULL DATE
    04:17:25 SQL> desc ATTRIBUTE_GROUP_LOG
    Name Null? Type
    GROUP_ID NOT NULL NUMBER
    NAME NOT NULL VARCHAR2(96)
    CREATE_DATE DATE
    MODIFY_DATE DATE
    04:18:02 SQL> desc ATTRIBUTE_GROUP
    Name Null? Type
    GROUP_ID NOT NULL NUMBER
    NAME NOT NULL VARCHAR2(96)
    CREATE_DATE DATE
    MODIFY_DATE DATE

  • ICloud not syncing and Contact problems with merging duplicates

    I was having problems with the syncing of my notes app. When I got the iphone 5 I had since using Mountain Lion I had started to make use of the fact that the notes sync across iCloud. Great. Although not for long. Everything was going fine notes were syncing across devices but then spontaneously they stopped syncing for no apparent reason. I then went to look in settings, looked online and all through discussion forums. Switching notes on and off on icloud both on the macbook and on my iphone. Restarting devices etc etc. iCloud itself online was not able to access the notes app. I kept getting error messages that I would submit to apple. Then I finally relqinquished and unhooked the iCloud accounts from the computer and phone. And at the sacrifice of losing albums in my photostream they sprung back to syncing.
    Then the real problem happened. I had selected to keep a copy of my address book in contacts when I unhooked my computer just in case. When everything linked back up again, I then had duplicates in my address book. Not 1 (this can happen just having icloud active) but 5 sets of duplicates, granted I had kept a version from when I unhooked. So I looked around again for how I could quickly and easily get rid of duplicates. Following suggestions online I go into contacts>cards>look for duplicates. I had 1200 or somthing duplicates, so naturally when given the option "would you like to merge the info in these duplicates I click yes. The MacBook starts to chugg away. Its gonna take a while. So I come back later. And before returning to CONTACTS, go to send a message from MESSAGES and I notice that 80% of the threads have no name. I go back to CONTACTS and WHAM 100s of contacts disappeared in the merge never to be retrieived again. You cant restore CONTACTS from Time Machine as it is just mirrors the contacts that you have in present time. Restoring phone doesn't work becasue it just downloads from iCloud after it has restored. TOTALLY RIDICULOUS. I am livid.

    what I mean is - create a complete new contact on your contacts and select a picture for it from your Mac. Then set it as "make this my card"
    Once you have done that - presumably it will sync with iCloud - have a look and the contact should appear on your iPhone too.
    On your iPhone go on Settings>Mail,Contacts,Calendar> Under "Contacts: in "My Info" select That new contact you created on your Mac.
    Let me know if that works.
    -On another note, so what you are saying is, if I take my 15' Macbook Pro in and they have none of the old ones in stock, they just give you a Retina display one! Did you take it to them for the contact issue you were having or something else?

  • Problem : create new role

    Hi,
    I'm using webservices to create a new role in OCS.
    It' OK to create the but I have a problem when I try to add some capabilities to this role.
    I use this code.
    NamedValuesList nvalues = new NamedValuesList().addValue(Attributes.NAME, "SYSDOC PROJECT MANAGER");
    Item item = getConnection().getDomainManager().getDefaultDomain(null);
    Item role = getConnection().getSecurityManager().createRole(item.getId(), nvalues.toValueArray(), null);
    nvalues = new NamedValuesList().addValue(Attributes.ACCESS_LEVEL, FdkConstants.CAPABILITY_DISCOVER);
    getConnection().getSecurityManager().updateRole(role.getId(), values.toValueArray(), null);
    And the returned exception is :
    oracle.ifs.fdk.FdkException: ErrorCode = ORACLE.FDK.ParameterError;
    DetailedErrorCode = ORACLE.FDK.InvalidAttribute; ServerStackTraceId = ; Info[0]
    = {ACCESS_LEVEL = 1}; Entries = null
    Thanks.
    K. HAMDOUNI

    Hi,
    It is not the problem because NamedValuesList is an utility class :
    ===========================================================
    public class NamedValuesList extends ArrayList
    public NamedValuesList() {
    super();
    public NamedValuesList addValue(String name, Object value){
    add(new NamedValue(name, value));
    return this;
    public NamedValuesList addValue(String name, long value){
    return addValue(name, new Long(value));
    public NamedValuesList addValue(NamedValue namedValue){
    add(namedValue);
    return this;
    public NamedValue[] toValueArray(){
    return (NamedValue[]) toArray(new NamedValue[0]);
    =======================================================
    Then this code :
    addValue(Attributes.ACCESS_LEVEL, FdkConstants.CAPABILITY_DISCOVER);
    do the same thing as
    addValue(Attributes.ACCESS_LEVEL, new Long(FdkConstants.CAPABILITY_DISCOVER));
    Just one question: is this functionality(customize roles) implemented in OCS10g 10.1.2 or not?
    Thanks.

Maybe you are looking for

  • How do I set up a POP mail account

    I am trying to set up a new email account as a POP account but my MacMail defaults to IMAP only Help!!!

  • Wrong aspect ratio on DVD???? Why??

    Hi there friends, ok, I have just spent over an hour waiting for my dvd to encode and burn. I have since found that everything apart from my vision is in 16:9. Why is this?? It is 16:9 vision edited with FCE. I have checked all pref and "switch to 4:

  • QJackCTL, Catia, and Cadence won't connect to jackdbus?

    When I install jack2 and qjackctl, jackd starts and runs nicely; but when I install jack2-dbus, jackdbus runs fine (according to many tests via ps and jack_control), but qjackctl does not show it running and won't show a patchbay, and Catia and Caden

  • Acquire encoder position with Motion and DAQ

    Hi, I am trying to acquire an encoder position with Motion. It seems impossible to set the frequency of the acquisition with Motion and I must poll for the position in a do-while loop. I have read in a lot of threads that one can use RTSI lines to re

  • A quick button question (I think)

    Hi all, I have been asked by a client to create some online ads, and then send them off to the website who will be displaying them. My problem is that they have asked that I do the following... I should use the 'clickTAG' code below to trigger link: