PKEY generation in USER_SECURITY table

How does BEA generate primary keys in the various Portal tables (specificially
I need to know this for the USER_SECURITY table)? We are in the process of migrating
our 7.0 users to 8.1 and I don't want to break this process due to the primary
key generation scheme.
Thanks
Kunal

Kunal
There is a table called SEQUENCER in the Portal schema which holds the last value
of primary keys for all the Portal tables, incl USER_SECURITY. See the row named
IUSER_ID_SEQUENCE in SEQUENCER.
Hope that helps
Regards
Jose
"newsgroups.bea.com" <[email protected]> wrote:
Kunal,
Syntactically primary keys for all the Portal tables are excuted as separate
alter statements from the table creates. For example:
CREATE TABLE USER_SECURITY (
USER_ID NUMBER(15) NOT NULL,
PASSWORD VARCHAR2(50) NULL,
USER_NAME VARCHAR2(200) NOT NULL,
CREATION_DATE DATE DEFAULT SYSDATE NOT NULL,
MODIFIED_DATE DATE DEFAULT SYSDATE NOT NULL)
ALTER TABLE USER_SECURITY
ADD CONSTRAINT PK_USER_SEC
PRIMARY KEY (
USER_ID
If your question is more process oriented(i.e table create process) please
be a little more specific and I'd be happy to help you out.
Thanks.
Jason
"Kunal Mittal" <[email protected]> wrote in message
news:[email protected]..
How does BEA generate primary keys in the various Portal tables(specificially
I need to know this for the USER_SECURITY table)? We are in the processof
migrating
our 7.0 users to 8.1 and I don't want to break this process due tothe
primary
key generation scheme.
Thanks
Kunal

Similar Messages

  • Error in code generation for deleting table BUT000_TD

    Hi,
    Did anyone encounter this error while working on EEWB ?
    I created the project extension via EEWB and completed the wizard setting with the package (dev. class) value as $temp as I wanted to test it locally.
    One of the errors, that I got is:
    Error in code generation for deleting table BUT000_TD
        Message no. DA464
    Diagnosis
        This error message indicates that internal inconsistencies exist.
    Procedure
        Please consult SAP.

    Hi,
    As I mentioned in my previous post kindly check the consistency of the structure BUT000_TD.
    Regards,
    Sudheer.

  • Hi , my sister got really mad and she banged her iPod touch 5th generation on a table and she banged it so hard that the screen didn't crack but inside the the iPod is damage as in like colors are popping out and the screen doesn't work, can i fixed this?

    Hi , my sister got really mad and she banged her iPod touch 5th generation on a table and she banged it so hard that the screen didn't crack but inside the the iPod is damage as in like colors are popping out and the screen doesn't work, can i fixed this?

    Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
    Apple - iPod Repair price      
    A third-party place like the following maybe less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens

  • Report Generation MS Word Table Bug

    Hi everybody,
    I am using Word 2010 and LV2010 and I am unable create a proper table with Word using the Report Generation Toolkit. Excel and HTML work fine, but Word fails. Not even the Examples work as they are supposed to.
    When using the attached VI (see screenshot below)
    the result appears as follows:
    Temperature
    Temperature
    Temperature
    Temperature
    Temperature
    Data 1
    Data 1
    Data 1
    Data 1
    Data 1
    Data 2
    Data 2
    Data 2
    Data 2
    Data 2
    Does anyone have an idea?
    Thanks in advance.
    ben
    Solved!
    Go to Solution.
    Attachments:
    test_table.vi ‏10 KB

    OK, if NI won't provide a workaround, I'll create my own:
    The problem stems from the fact that the NI Report Toolkit populate a Word table by first creating an empty table of the correct size, then placing the table contents into the copy buffer, then selects the whole table and uses Paste to push the data into the table. The problem is actually in Word, because in Word 2010 it interprets the contents of the copy buffer differently.
    The solution is to alter the data that gets pushed into the copy buffer by the NI Report Toolkit. To implement my fix, you will need to alter one VI of the NI Report Toolkit (so you might want to make a backup in case this stops it from working in other previous release of Word).
    Open [LabVIEW installation folder]\vi.lib\addons\_office\_wordsub.llb\Word_In​sert_Table.vi
    There is a nested for loop that interprets the provided string array data and reformats it into a long ASCII string for the copy buffer. It should look like this:
    Change the nested loop to look like this:
    The changes I've made are twofold:
    1. Within the inner loop, replace the "\n" char with a Tab character
    2. Just after the inner loop, add a new "concatenate strings" function that adds "\n".
    This alters the string that the toolkit places into the copy buffer. You should find that report tables now populate correctly in Word 2010!
    This is untested on previous releases of Word, and could possible introduce problems there, so if anyone could test this for me it would be most appreciated
    Best of luck!
    Thoric (CLA, CLED, CTD and LabVIEW Champion)

  • Physical query generation: unneeded dimension tables get joined to the fact

    Hi there!
    The setup is the following:
    There is a logical fact table which is joined to 7 logical dimensions, it has 4 table sources which correspond to different time dimension levels (all other dimensions are mapped to Detail level).
    Time dimension logical table also has 4 different table sources (for days, months, quarters, and years).
    The data source is an Oracle Database 11gR2.
    The problem is:
    No matter what the logical query is, in the physical query all 7 joins are performed, even if the resulting data is then simply discarded. This results in very bad query performance.
    I feel that it is somehow related to the level-based fragmentation (since, for instance, inclusion of time dimension columns in SELECT list (not in WHERE) seems to affect physical queries), but lack sufficient knowledge to solve this problem or put up with it.
    My questions are the following:
    1) Have you ever encountered such a situation?
    2) Can unneeded joins be eliminated?
    2.1) If yes, how?
    2.2) If not, then why are they needed?
    Thanks in advance!

    Physical level:
    D01-D06 - ordinary physical tables.
    D_DATES - all time levels from dates to years, D_MONTHS - time levels from months to years, also D_QUARTERS and D_YEARS.
    F_DAILY - fact table joined to all of the D01-D06 and to D_DATES, F_MONTHLY - joined to D01-D06 and D_MONTHS, also F_QUARTERLY and F_YEARLY. All measure columns are the same.
    Logical level:
    D01-D06 correspond to ordinary logical tables with a single table source. Logical dimensions are created.
    D_TIME is a logical time dimension with four levels (dates, months, quarters, and years) and four table sources ( D_DATES, D_MONTHS, D_QUARTERS, and D_YEARS ).
    F is a fact table with four logical table sources ( F_DAILY, F_MONTHLY, F_QUARTERLY, and F_YEARLY ) with aggregation content levels set correspondingly.
    OBIEE correctly picks physical table sources for different time levels, but generates extremely inefficient SQL (joining all dimension sources in a WITH-subquery, doing ROW_NUMBER over a result set, and then discarding half the columns, which were not needed to start with).

  • Report generation with two tables having no join

    Hi, 
           I would like to know if i can generate a report to view data from purchase and sales tables at one time even if they are not directly linked.
    Regards,
    Bhavna

    hi jain,
    You can use Union All to combine sql queries of sales and
    purchase tables.
    Jeyakanthan.

  • Double Document number Generation from Z-tables -urgent

    I have a Z table with a number range and my user performs some task and when they press save button , a number is selected from the Z table, now problem is that when two users press ave at same instant same number is assigned to both for different entries -- try to sort this urgently

    Hi Joshi,
       Use Locks or Enque and Deque statements. Refer the following link.
    http://help.sap.com/saphelp_47x200/helpdata/en/a3/df5b1ee1bed348b198719e50af835d/frameset.htm
    regards,
    Chandra.
    Note: Please reward if helpful.

  • XML generation from two tables

    Hi,
    I need to write an Oracle SP(Id as input) create an XML strucutre out of the records fetched from two tables. There is no Fk relation between the tables.
    Table A ---> has one record per interface per id
    Table B---> has multiple records per interface per id
    Table A
    1) Id
    2)ErrorCount
    3)SuccessCount
    4)Total
    5)InterfaceName
    Table B
    1)Id
    2)InterfaceName
    3)ErrorDetail
    4)ErrorMessage
    XML Strucutre
    <Report>
    <TableA>
    <Id>
    <InterfaceName>
    <Success/>
    <Total/>
    </InterfaceName>
    </Id>
    </TableA>
    <TableB>
    <Id>
    <InterfaceName>
    <ErrorDetail/>
    <ErrorMesage/>
    </InterfaceName>
    </Id>
    </TableB>
    </Report>
    Thanks,
    Is
    Edited by: Is916 on Sep 16, 2009 2:27 AM

    There are several ways to general XML.
    Here's just one...
    with A as (select 1 as id, 2 as errorcount, 4 as successcount, 6 as total, 'Bob' as interfacename from dual union all
               select 2, 1, 4, 5, 'Fred' from dual)
        ,B as (select 1 as id, 'Bob' as interfacename, 'Error 1' as errordetail, 'Ouch that hurt' as errormessage from dual union all
               select 1 as id, 'Bob', 'Error 2', 'Why did this happen' from dual union all
               select 2, 'Fred', 'Warning', 'Why worry about it' from dual)
    select xmlelement("Report",
                      A.xml, B.xml
                     ) as xml
    from (select xmlelement("TableA",
                   xmlelement("Id",
                     xmlelement("Success", successcount),
                     xmlelement("Total", total)
                           ) as xml
          from A where A.id = 1) A
        ,(select xmlagg(xmlelement("TableB",
                          xmlelement("Id",
                            xmlelement("InterfaceName",
                              xmlelement("ErrorDetail", errordetail),
                              xmlelement("ErrorMessage", errormessage)
                        ) as xml
          from B where B.id = 1) B
    <Report>
      <TableA>
        <Id>
          <Success>4</Success>
          <Total>6</Total>
        </Id>
      </TableA>
      <TableB>
        <Id>
          <InterfaceName>
            <ErrorDetail>Error 1</ErrorDetail>
            <ErrorMessage>Ouch that hurt</ErrorMessage>
          </InterfaceName>
        </Id>
      </TableB>
      <TableB>
        <Id>
          <InterfaceName>
            <ErrorDetail>Error2</ErrorDetail>
            <ErrorMessage>Why did this happen</ErrorMessage>
          </InterfaceName>
        </Id>
      </TableB>
    </Report>

  • Auto number generation in custom table

    Hi,
    Is it possible to auto generate number in custom table. My requirement is to generate the number once anyone makes entry in the table. I guess there is a way to put code in tables but I have no clue how that can be acheived. If anyone has such kind of experince please share with me.
    Regards
    Ria

    Hi Ria Sen,
    Please follow the steps as below,
    1. Use Select single Max Query to select the latest maximum number
    2. Check <variable> is initial or not.
    3.if variable is initial assign the number which will start from your number range.
    4.else increment the variable values by 1 and update the new range values.
    Ex: Select Single Max ( Field for Number) from <table>
               into <variable>.
    if <variable> is initial .
    <variable> = 'Starting number from your range'.
    else.
    <variable> = <variable> + 1.
    Please let me know if you have any issues.
    Regards,
    Gurunath Kumar D

  • Strange behavior with Report Generation Toolkit. Table does not match array.

    We are using a Word 2003 document (.doc) as a template for a report summary.  This works fine on the development PC.  It fills out the appropriate fields in the document and fills out the table correctly, as shown in the image below.
    However, the same cannot be said on another station.  Although the 2D array is identical, and so is the software to investigate the issue, the table does not get populated correctly.  I have investigated using Word 2010 (.docx) as a template, with the same results.
    I have not been able to figure out what is different between the 2 stations and why it does not work on the 2nd station.  I looked for similar issues on the NI website and the only relevant item from Knowledgebase was concerning new lines within the cell, which is not my case.
    This is what I get on the 2nd machine:
    The array that is sent to the table contains the appropriate data&colon;
    Solved!
    Go to Solution.
    Attachments:
    GoodTableWord.png ‏25 KB
    BadTableWord.png ‏18 KB
    BadTableArray.png ‏22 KB

    And, of course the code snippet that was used:
    It is a sample code that was used to investigate the issue.  It works like the original code on the original development PC, but it does not work on the other station...
    Has anyone seen this bizzare behavior?  If so, how does someone solve it?
    Thanks!
    Attachments:
    sampleCode.png ‏60 KB

  • Automatic ID generation in target table

    I have source datastore(textfile.txt containing only one field) with datastructure (lets say: Name varchar(25))
    Data structure of target datastore (id varchar(25), Name varchar(25))
    Now i want to insert this textfile to db. Name is mapped to Name field of target datastore. But ID field should be automatically incremented in target datastore.(1,2,3......).
    How can i achieve this?
    with regards

    Hi ,
    Oracle is you Target DB, If yes you could follow the belosw steps to achive automatic increemeting ....
    CREATE A VARIABLE NUMERIC AND HISTORIZE:
    Then in the Refresh Tab, write this code :
    SELECT NVL (MAX(EMPID),1001) FROM TESTTABLE  CREATE A PROCEDURE :
    1.DROP SEQUENCE SEQUENCENAME ( Dont forget to mention Ignore Errors, the reason when u first run the interface, it will go into Error since no Sequence is been created Before)
    2.
    CREATE SEQUENCE SEQUENCENAME
    MINVALUE #variablename or ( you can also directly have value eg:1001)
    MAXVALUE 2001
    START WITH 1001
    INCREMENT BY 1
    CACHE 20Use this Syntax in the Interface corresponding to the Column:
    SEQUENCENAME.NEXTVALHope this helps...
    Thanks
    Ananda
    Edited by: Ananda on Aug 3, 2009 1:46 PM
    Edited by: Ananda on Aug 3, 2009 1:49 PM

  • Using java to get table rows (jsp and html)?

    I was wondering if there is any way to count rows from a html-table?
    I want to know the number of rows created, just after it has been made. So that I can use this number 'for' creating my next table.
    Have got this to work by using javascript code:
              function test2()
                   if (!document.getElementsByTagName || !document.createTextNode) return;
              rows = document.getElementById('spesifikasjonsTabell').getElementsByTagName('tbody')[0].getElementsByTagName('tr');
              antallRader = rows.length;               
                   document.test.hoyde.value = antallRader;
                   return antallRader;
    , but this only generates on the clientside; which is not what I want.
    I got a webpage, that uses html and jsp. After the generation of a table - which has an unknown numbers of rows, because of several underlying tests - I'd like to retrive how many rows that was generated before I proceed with my next table.
    Is there a good workaround to this problem?
    P�l
    Message was edited by:
    paulOlsen

    Hey there, and thanks for fast response.
    Allready tried that code earlier. Works great on displaying the var 'row'-s inside, for instance, a <input type="text" or as a pup-up on a alert();
    The javascript works on the client-side, so I have no way of using that code for further testing in codes for my viewing; at least I can't think of any.
    The thing is that:
    1) I can't use an 'onClick', since the next table should be generated without any human interference.
    2) I used the same code to get the number of rows when I sat the table inside a form. But then, when calling the javascript function, I have no way to retrieve the linenumbers for use to test ON the next table.
    Since I'd have to use, say a field name <input type hidden="rows".., a method to call this very "rows" in jsp:
    <table>
    <!-- lots of rows -->
    </table>
    <%
    int numberOfRows = request.Parameter("rowcount") or what ever; here is where I need the 'number of rows'
    // let's just say int here though a String
    if(numberOfRows < 35)
    %>
    <table>
    <!-- Im including this table if the test above occurs -->
    </table>
    <%
    else
    %>
    <!-- if this occurs, then I'd like to do something else -->
    <%
    %>
    Any ideas?
    P�l
    Message was edited by:
    paulOlsen
    null

  • In which table the production quantity stored after confirmation

    Dear all,
                   When the production order is confirmed through co11n,then where the
    order quantity get stored in which table so I could suggest my ABAPER to create the report in which these production quantity gets displayed.
    Regards
    deepak sharma

    Dear Mr.Deepak Sharma,
    There's direct T code in SAP COOIS.
    First check with this T code,whether your requirement is getting fulfilled.
    If not go for a report generation using the tables.
    The following are the tables related to your question
    AFKO              Order Header
    AFPO               Order Item Detail
    AFVC               Order Operations Detail
    AFFL                Order Sequence Details
    AFRU               Order Completion Confirmations
    Reward points if useful.
    Regards
    Mangal

  • Need custom column widths in Append Text Table to Report

    I need to print reports with tables of different column widths specified for each column, as the contained fields vary in width from just 3 characters in one column to 40 characters in another.  Also we are trying to match the reports generated by a non-labview routine.  In the past I have been able to achieve this by editing the Append Table to Report vi, working my way through the inner hierarchy to replace the DBL numeric COLUMN WIDTH control with a DBL numeric array.  The innermost vi, Set Table Column Width, assigns the numeric to a property node in a for loop, so the change is simple: replace the scalor with an array and enable indexing on the for loop.  Of course, after each Labview upgrade, I've had to go back in and repeat these edits on the overwritten upgraded vi's.  This time there is a problem.  The new version of this toolkit is object oriented, and disturbing these vi's wrecks the class methods in a way I don't understand (mostly because I've had no dealings with object oriented programming) and which cannot be undone.  I recently tried this and after not being able to fix the problem even with phone support, I had to spend the next two days unistalling and reinstalling Labview!  I desperately need a way to achieve this functionality without killing the toolkit, which is used (in its original functionality) by another absolutely critical program.  PLEASE HELP!
    The hierarchy is as follows:
    NI report.lvclass:Append Table to Report (wrap)
    NI report.lvclass:Append Table to Report 
    NI Standard report.lvclass:Append Text Table to Report
    NI Standard report.lvclass:tables
    NI Report Generation Core.lvlibet Table Column Width

    There is a highly relevant thread under discussion here:
    http://forums.ni.com/ni/board/message?board.id=fea​tures&thread.id=429
    You may wish to read it and chime in as it is a discussion of LabVIEW's policy (and possible change in policy for the future) concerning the handling of non-palette VIs between LV versions.
    Rob Hingle wrote:
    > Is that to say NI will not be helping me with this?  Pretty disappointing lack of support, seems
    > like a terrible idea to go to object oriented if even your own application engineers can't figure
    > out such a simple fix.  Gotta give NI a huge thumbs down on this one, thanks for nothing.
    I doubt that it is a simple fix -- our AEs are generally top notch at figuring out solutions for customers -- if it were simple, my bet is they'd have solved it. Asking an AE to work around a bug is different from asking them to rearchitect the toolkit. You are asking them to add a feature that the new version of the toolkit is not
    designed to support. The difficulty in doing this is completely independent of the decision to use LabVIEW classes to implement the toolkit. If any piece of software is not designed with a particular use case in mind, what may be a simple tweak under one design may become a very hard problem under another design.
    In your case, the solution is very straightforward: Use the older version of the toolkit. Any time you create a custom modification of the VIs that ship with LV or one of its toolkits, you should make your own copy and have your VIs link against the copy. LabVIEW promises to maintain all the public functionality version over version. Usually we succeed at that. What we do not promise is to maintain our private implementation of that functionality. It is impossible for LabVIEW (or any other software library) to maintain all of its private internal operations while still continuing any development. Using a copy of the original VIs shields you from having to recode your changes every version (something you've already mentioned is a chore) and it guarantees that functionality that you relie upon does not disappear.
    I hope you are willing to be understanding of this situation and not hold it against the AEs working on this. They try hard to provide excellent customer service, and spend lots of time inventing custom solutions for our users.  This happens to be a situation where the correct fix is not to modify the new toolkit version to do something it wasn't designed to do but to modify your development process so that the problem is solved now and into the future. 

  • Not able to create a table with more than 64 fields in dictionary

    Hi,
    I have created a java dictionary in Netweaver Developer studio. I have to create a table with more than 64 fields in it. I was able to create the table in dictionary, but when i tried to build it, I am getting an error message as "more than 64 fields are not allowed". If i create the table with 64 fields or below 64 fields, i can build the dictionary and deploy it.
    That is, when i create a table with more than 64 fieds, I am not able to compile the dictionary, But if i reduce the fields to 64 or below, i can compile the dictionary.
    Kindly help me to solve the problem.
    Regards,
    Sudheesh

    Hi,
    Sudheesh,as far as I am aware creating of fields in the table actually depends on the total width of table that can be used for various Vendors.
    So I actually tried out creating a table with too many fields,and I am reproducing the errors which I have obtained -
    <i>Error               Dictionary Generation: <b>DB2:checkWidth TMP_1: total width of table (198198 bytes) greater than allowed maximum (32696 bytes)</b>     TMP_1.dtdbtable     TestDictionary/src/packages     
    Error               Dictionary Generation: <b>DB4:Table TMP_1: fixed length: 198366 (32767).</b>     TMP_1.dtdbtable     TestDictionary/src/packages     
    Error               Dictionary Generation: <b>DB6:checkWidth TMP_1: total width of table (297200) including row overhead is greater than the allowed maximum for 16K tablespaces .</b>     TMP_1.dtdbtable     TestDictionary/src/packages     
    Error               Dictionary Generation: <b>MSSQL:checkWidth TMP_1: total width(198215) greater than allowed maximum (8060)</b>     TMP_1.dtdbtable     TestDictionary/src/packages     
    Error               Dictionary Generation: <b>SAPDB:checkWidth TMP_1: total width(198297) greater than allowed maximum (8088)</b>     TMP_1.dtdbtable     TestDictionary/src/packages     
    Error               Dictionary Generation: Table TMP_1 is not generated     TMP_1.dtdbtable     TestDictionary/src/packages     </i>
    I hope you can understand what the errors state.I am trying to create a table whose total width(sum of width all columns) is greater than the maximum allowed for various Vendors,such as DB2,MSSQL,SAPDB etc.
    I hope this answer helps you create your table suitably
    Regards,
    Harish
    (Please award points if this answer has been usefull)

Maybe you are looking for

  • How can I delete all files not authorized for this computer?

    Hi there, first off, I promise right here and now, that I will never buy a DRMed song or video again... And here is my probelm: I'm using my Mac and iTunes for ages and all things were perfectly fine. I used to have a girlfriend and both of us had ou

  • New audio board (c/o applecare) not recognized

    I just got my computer back from the shop with a new audio board, but the system doesn't seem to be recognizing it. Is there anything I can try to get the system to 'try harder' and maybe pick up the connection before I make the trek back to the appl

  • White Screen of Death-no boot

    My iMac doesn't seem to find the hard drive on boot up, superdrive for that matter, either.  I have a white screen of death.  I can zap the pram, but that's about it.  Won't start up in target mode or safe mode.  After sitting for a while it might sh

  • Best way to mix multiple songs with same template?

    From what I gathered, I know I can save a particualar session as a "user" template, that way I can mix another song retaining all the same EQ, comp... etc, as well as arrange layout. Is this the best way to accomplish what I aim for? I've finished on

  • Moving Library - Permission Error (Windows Vista)

    I'm trying to move my iTunes media to an external hard drive, but I keep getting a Permission error when I try to consolidate my library. I've searched for ways to fix the permissions, but the only answers I've found are for Mac and I have Windows Vi