Inserting Queries(3.1 version)

Hi,
I want to insert 4 queries into workbook ,
i dont want to insert full query just wanted to insert one value field from all the queries in header .
is that possible , if yes please tell me how to do it in 3.1 version
i would appriciate your help
Thanks,
GAL

Sounds like BI stuff to me, please post in the appropriate forum, not ABAP general.
Thread locked.
Thomas

Similar Messages

  • How to decide inserting Queries into Workbooks

    Hi,
    I have a few doubts..pls clarify my doubts
    1. How to decide inserting Queries into workbooks (How many number of Queries will be inserting into workbooks??)
    2. Shall i use single sheet (or) Multiple sheets
    3. We are using Hierarchy...So, How to insert a Query( How to decide which row/coulmn the Query can be placed??)
    4. How to suppress Zeros and # permanently (For temporarily, i went to cell context menu--All Characteristics-Suppress zero column/Row..)
    But looking for permanent solution..
    Please Suggest me ...
    Thanks..
    Help will be greatly appreciated..
    Thanks.........

    Hi venkat,
    1.how may queries in a workbook will depend on the reporting requirement.
    2. single or multiple sheet - it is advisable to insert one query in each sheet to avoid confusion.
    3. If you are using hierarchies then it is not advisable to use then in worrkbooks, since the values in the cells would keep changing depending on the hierarchy and the level it is expanded etc.
    4. To supress zeros you can also do a setting in spro -- > SAP netweaver --> SAP Business information warehouse --> Report-relevant settings --> presenting the numeric value in the Business explorer
    Standard settings
    Under certain circumstances numeric values and texts for currencies, or units, in the Business Explorer cannot be determined uniquely. In such cases predefined texts are displayed instead of the numeric values, and currencies, or units:
    If a Division by zero arises when calculating a numeric value then this text is output.
    If a numeric value cannot be determined then this text is output (does not exist).
    If a numeric value is not calculated due to numeric overlapping then this text is output.
    If a numeric value is made up of several currencies, or units, then this text is output instead of the currency or unit (mixed currencies).
    If a user does not have authorization to display a particular numeric value for a cell in the executed query, then this text is output in the cell instead (no authorization).
    If a calculated numeric value is made up of different currencies, or units, then the numeric value can or cannot be output. If you choose mixed values then the numeric value is output. If mixed values is not active then the text is output that you entered under "mixed currencies".
    Activities
    1. Determine the texts that are to be output in the Business Explorer instead of numeric values.
    2. Decide whether numeric values, that are made up of different currencies, or units, should be output.
    If the above explanation was helpful, please assign reward points.
    Regards
    Venkata Devaraj

  • Stored procedure for exec. multiple insert queries

    Hello everybody,
    I am running on
    select banner from v$version;
    Output:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    I am a new to oracle and I need some help.
    I have to populate a table on monthly basis, for which I am required to run 20 queries.
    All queries retrieve data from the same table in another schema.
    I need to schedule a SP in order to be able to run all these queries.
    Till now, I have built separate SPs for the queries Proc_1, Proc_2, Proc_3, ..., Proc_20 and a final big SP (*main_sp*) which calls these SPs.
    Being that I have to change the date value for every month (I am doing it manually every single month), for every single query,
    I was wondering if there is a way to include all these queries in a single stored procedure.
    I am reading here execute parallel queries
    but I do not want to create 20 jobs.
    I found this topic, which seems to be interesting too, but I have never done this before:
    Executing multiple SQL scripts in a batch
    Moreover, how can I manage to insert the value of date only once (e.g in the main_sp) and every queries gets this value automatically.
    P.S.
    All queries retrieve data from the same table in another schema and fill in with data the same table in actual schema.
    insert into destin_tbl
    select from source_tbl@dbb_link
    Here is how my actual work looks like:
    First, I have built 20 sp, for each and every query:
    CREATE OR REPLACE PROCEDURE "SP_1" (
    START_DATE out DATE,
    IS
    BEGIN
    START_DATE := SYSDATE;
    insert /*+ append nologging parallel(x,4)*/into destin_tbl x
    select /*+ parallel(a,4)*/ field_1, field_2, field_3
    from source_tbl@dbb_link a
    where a.date_key >= 20101201 and a.date_key < 20100101 -- full month (december 2010) here
    and other conditions
    commit;
    END SP_1;
    = = = = = =
    CREATE OR REPLACE PROCEDURE "SP_2" (
    START_DATE out DATE,
    IS
    BEGIN
    START_DATE := SYSDATE;
    insert /*+ append nologging parallel(x,4)*/into destin_tbl x
    select /*+ parallel(a,4)*/ field_1, field_2, field_3
    from source_tbl@dbb_link a
    where a.date_key >= 20101201 and a.date_key < 20100101 -- full month (december 2010) here
    and other conditions
    commit;
    END SP_2;
    CREATE OR REPLACE PROCEDURE "SP_20" (
    START_DATE out DATE,
    IS
    BEGIN
    START_DATE := SYSDATE;
    insert /*+ append nologging parallel(x,4)*/into destin_tbl x
    select /*+ parallel(a,4)*/ field_1, field_2, field_3
    from source_tbl@dbb_link a
    where a.date_key >= 20101201 and a.date_key < 20100101 -- full month (december 2010) here
    and other conditions
    commit;
    END SP_20;
    I change the values for the date_key field every month I need to insert data, before I run the main_sp:
    CREATE OR REPLACE PROCEDURE "main_sp" (
    START_DATE out DATE
    IS
    BEGIN
    sp_1(START_DATE);
    sp_2(START_DATE);
    sp_3(START_DATE);
    sp_20(START_DATE);
    END main_sp;
    /

    You would need to pass a parameter to the main procedure and to all of the sub procedures. I would do it somethign like this. The main procedure takes a single date parameter the way I have structured it here, any date in the month you are interested in will do
    PROCEDURE main_sp(p_date IN DATE)
       l_st_dt  VARCHAR2(8);
       l_end_dt VARCHAR2(8);
    BEGIN
       l_st_dt := TO_CHAR(TRUNC(p_date, 'Mon'), 'yyyymmdd');
       l_end_dt := TO_CHAR(LAST_DAY(p_date) + 1, 'yyyymmdd');
       sp_1 (l_st_dt, l_end_dt);
       sp_2 (l_st_dt, l_end_dt);
    END;Then your individual procedures would look something like:
    PROCEDURE SP_1 (p_st_dt  IN VARCHAR2,
                    p_end_dt IN VARCHAR2) IS
    BEGIN
       insert /*+ append nologging parallel(x,4)*/into destin_tbl x
       select /*+ parallel(a,4)*/ field_1, field_2, field_3
       from source_tbl@dbb_link a
       where a.date_key >= p_st_dt and a.date_key < p_end_dt -- full month (december 2010) here
         and other conditions
       commit;
    END;
    Regarding the queries...they do not change only in the conditions statement, but also in the retrieve.
    I have 2 constant fields, whose value changes based on conditions (e.g. query_1 retrieves data regarding diesel car >speed => constant_field_1 = 'Diesel|_Car_Speed' ... query_2 retrieves data related to motorbike unleaded speed >=> constant_field_1 = 'MotorB_UL_Speed'.
    These makes the grouping of these queries impossible.Without seeing actual queries, it is impossible to say, but my guess would be that the 20 queries could be reduced to a single query, or at least less than 20. Something like:
    insert into destin_tbl x
    select CASE WHEN condition that indicates car THEN 'Diesel|_Car_Speed'
                WHEN condition that indicates motor bike THEN 'MotorB_UL_Speed'
                WHEN other conditions THEN other field1 values END
           field_2, field_3
    from source_tbl@dbb_link a
    where a.date_key >= p_st_dt and
          a.date_key < p_end_dt
      and other conditionsThe conditions for the CASE statement could be pulled out of the where caluses for the individual queries.
    John
    Edited by: John Spencer on Jan 24, 2011 9:37 AM

  • Insert Object Link to Versioned File in a SharePoint Library

    I apologize in advance that I am not well versed in SharePoint and Objects. 
    I am trying to set up a master PPT file that uses the INSERT/OBJECT/CREATE FROM FILE/LINK function.  This is where an image of the source file is displayed in the master file.  When the master file is opened, the user is presented with the choice
    to update links.  I am not using code.  Just menu options.
    The master file can reside either in SharePoint or outside SharePoint.  The source files will reside in a SharePoint 2010 versioned library.  The most recent version should be linked. 
    When I try to insert the object, I don't know what path to enter.  Is there a way to do this?
    Thanks you.

    Instead of referring from an external location, try embedding the images and keep all resources inside PPT.
    Aravind 

  • Unable to perform update/insert queries on ACCESS db

    Hi,
    I've configured my odbc (Access driver). I'm using user dsn. The dsn created is "Fitnet". Below are the source code.
    I am able to execute SELECT queries by using statment.executequery , but when I try to execute an update or insert query using statment.executeUpdate I get an exeption from the driver "Tow few parameters expected 3 "
    What is wrong , do I nead to configure any thing sprciasl on my ODBC ??
    Please raplay also to [email protected]
    or [email protected]
    Thanks Shahar.
    Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
    String url = "jdbc:odbc:Fitnet";
    Connection con= DriverManager.getConnection(url,"","");

    HI
    I have a class called main maneger that performes the query the code is :
    public void ExecuteUpdateQuery(Query query) {
    try {
    log.writeDebugMessage("Before executing query");
    log.writeDebugMessage("Executing : " + query.getQuery());
    stmt.executeUpdate(query.getQuery());
    log.writeDebugMessage("After executing query");
    } catch(SQLException e) {
    System.out.println(e.getSQLState() +" " + e.getMessage());
    log.writeException(e);
    The querie itself is (this is a constractore that creates the query :
    public AddTraineeQuery(Trainee Trainee) {
    DateFormat dF = DateFormat.getDateInstance();
    query = "INSERT INTO Trainee(Trainee_Id , Trainee_password , Trainee_Address, Trainee_Name , Trainee_Phone , Trainee_Gender , Trainee_SessionTime , Trainee_Purpose , Trainee_HealthStatus , Trainee_StartDate , Trainee_Birthday) VALUES (" +
    Trainee.getUserId() + ',' +
    '"' + Trainee.getUserPassword()+ '"' +',' +
    '"' + Trainee.getUserAddress() + '"' + ',' +
    '"' + Trainee.getUserName() + '"' + ',' +
    Trainee.getUserPhoneNumber() + ',' +
    Trainee.getUserGender() + ',' +
    Trainee.getTraineeSessionTime() + ',' +
    Trainee.getTraineeTrainingPurpose() + ',' +
    Trainee.getTraineeHealthStatus() + ',' + '"' +
    dF.format(Trainee.getUserStartDate()).toString() + '"' + ',' + '"' +
    dF.format(Trainee.getUserBirthDay()) .toString() + '"' + ')';
    When I look at the log output I see :
    INSERT INTO Trainee(Trainee_Id , Trainee_password , Trainee_Address, Trainee_Name , Trainee_Phone , Trainee_Gender , Trainee_SessionTime , Trainee_Purpose , Trainee_HealthStatus , Trainee_StartDate , Trainee_Birthday) VALUES (6,"333","hhhh","rafi",048231821,true,63,4,true,"Feb 22, 2002","Feb 22, 2002")
    and I get the eror
    [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 4.
    P.S when I copy and the query from the log into access db it works
    Thanks

  • Inserting queries in a role

    Hi Gurus,
    i need to assign queries to a role so that users having this role will be able to get the queries in their menu when they log into the system. How can I do it?
    Partha

    Steps 1)PFCG -->create ROLE
    2)SU01 -->assign ROLE to user
    3)RSECADMIN -->create authorization object,assign activities of 0TCT*
    Note - RSECADMIN uses 0TCT* objects
    basis ADMIN should have S_RSEC object to be assigned in order for him to use 0TCT* objects
    Roles - Query
    PFCG - create Role
    Authorization tab -change authorization data
    S_GUI = *
    S_TCODE = RRMX
    S_USER_AGR
    ACTVT = 2,3 and ACT_GROUP = *
    S_USER_TCD = RRMX
    Profiles to be given to developer
    SAP_ALL
    SAP_NEW
    0BI_ALL is the new object which gives all authorizations to users.
    More info-
    Re: How to add a Role?
    Hope it Helps
    Chetan
    @CP..

  • QUERIES ON KERNEL VERSION UPDATES

    can any one comment on this.
    Uprade current kernel from RHAS 2.4.9-e.25enterprise to RHAS 2.4.9-e.49enterprise or 2.4.9-e.49enterprise
    We need answers to the following questions:
    1. What are the requirements/impact in Oracle RAC when RHEL AS 2.1 version 2.4.9-e.25enterprise (current) is upgraded to e.49?
    2. How come a 3 node RAC cannot be composed of machines with different kernel
    versions? (option is to have the 2 node with previous kernel and 1 node with
    the new kernel for testing)
    3. What are some known issues in kernel e.49?
    4. Has there been installation of Oracle for e.49? Is Oracle tested for this
    kernel version?
    5. Is it safe for our current version of Oracle Apps (11.5.8) & Dbase (9.2.0.5)
    & OCFS (1.0.11) to upgrade to the latest kernel which is kernel e.59?
    6. If kernel is upgraded to e.49 or e.59 , is OCFS required to be upgraded also
    from our current version of 1.0.11?
    7. Are there other Oracle modules/components that will be affected if
    enterprise kernel is upgraded from e.25. to e.49 or e.59?
    Any help is greatly appreciated.
    thanks,
    venkat.

    Hi Ram,
    Interestingly I found this link googling your name! Well, I hope you would had already found answers for your posting (They look outdated). I am not oracle geek but I guess
    (In reply to your 7th question: Are there other Oracle modules/components that will be affected if enterprise kernel is upgraded from e.25. to e.49 or e.59?) I don’t think a layered component (like oracle DB) will have any effect because of kernel upgrade [Again, I not a oracle geek so I may be wrong!]
    I wish U good luck!
    Your cousin!
    Vikram Andem

  • Massive insert: problems with indexes (Version 10.2)

    Hi, friends. I am a rookie in Oracle, so I ask us because I have a problem that I can't solve it,
    (in fact it's a inherited problem)
    I want to insert about 4.000.000 records in a table with around 10.000.000 records.
    This table have many foreign keys, a primary key (on an index) and three indexes.
    I try to insert the records with a cursor as this:
    OPEN c_cursor;
    FETCH c_cursor INTO c_record;
    WHILE c_cursor%found LOOP
    INSERT INTO table
    (id,
    VALUES (
    FETCH c_cursorINTO INTO c_record;
    END LOOP;
    commit;
    CLOSE c_cursor;
    The operation takes very long time. So I want to disable/drop indexes at first of cursor and at the end,
    unable-rebuild/create.
    - But when I try disable the indexes with UNUSUABLES (alter index INDEX UNUSABLE), the database
    said me:
    ORA-01502: index 'INDEX' or partition of such index is in unusable state
    It looks that I can't write while the INDEX (also is primary key) is unusable
    - I can't remove the index DROP INDEX 'INDEX':
    ORA-02429: cannot drop index used for enforcement of unique/primary key
    - I can't disable the primary key:
    ORA-02297: cannot disable constraint (INDEX) - dependencies exist
    What would you want in this case?.
    Thanks for all and regards.
    Javi
    Note: I can't do it with sqlldr because the insert requires a treatment (I do it with the cursor).
    Thanks again.
    Edited by: user12249099 on 12-abr-2010 7:04

    Skvaish1, I think that I know less :-( => When I try disable, Oracle says me:
    SQL> alter index PK_ACCACT_ID disable;
    alter index PK_ACCACT_ID disable
    ERROR at line 1:
    ORA-02243: invalid ALTER INDEX or ALTER MATERIALIZED VIEW option
    Why don't i disable the index whith that sentence?. :-O. It's very rare.
    This is the DDL from the table and from the index:
    CREATE TABLE table_name
    (     "ID" NUMBER(10,0) NOT NULL ENABLE,
         CONSTRAINT index_name PRIMARY KEY ("ID")
    USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 16777216 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE tablespace_name ENABLE,
    CREATE UNIQUE INDEX index_name ON table_name ("ID")
    PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 16777216 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE tablespace_name ;

  • How to implement poor-man's version control with TSQL queries

    I have a table called Project. Each row completely describes a project and has a username, project name, project description and other numeric parameters that contain all the data about the project.
    When multiple rows have the same username, this means a user owns multiple projects.
    Now I want to implement a poor-man's version control for my users by adding a new integer column called version. When a user wants to save a new version of his project, the version is incremented and a new row is inserted into the table.
    Some projects will have 1 version, others will have a dozen or more.
    By default, the user should see a data grid of projects where only the latest version of the project is displayed (including the version count) and all the older versions of each project are ignored.
    How do I write a TSQL query to populate this data grid (and ignore every version except the latest versions of each project)?
    Thanks
    Siegfried
    siegfried heintze

    Should this work? It prints all the rows.
    DECLARE @Projects TABLE
    ([id] int IDENTITY(1,1), [Project] varchar(1), [Version] int)
    INSERT INTO @Projects
    ([Project], [Version])
    VALUES
    ('A', 1),
    ('A', 2),
    ('A', 3),
    ('A', 4),
    ('B', 1),
    ('B', 2),
    ('B', 3),
    ('C', 1),
    ('C', 2),
    ('D', 1)
    -- DECLARE @User varchar(100)
    SELECT *
    FROM @Projects p
    WHERE
    -- UserName = @User AND
    NOT EXISTS (SELECT 1
    FROM @Projects q
    WHERE q.id = p.id
    AND q.Version < p.Version)
    siegfried heintze
    Nope you have condition wrong
    In my suggestion i've used > and you replaced it with <
    it should be this
    SELECT *
    FROM @Projects p
    WHERE
    NOT EXISTS (SELECT 1
    FROM @Projects q
    WHERE q.project= p.projects
    AND q.Version > p.Version)
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Error in inserting Japanese charcters into XMLDB -[b]Urgent[/b]

    Hi,
    I have set database charcterset as 'UTF-8' and I saved the xml file in server with 'UTF-8' encoding, the inerstion works for english, but if I inlucde japanese charcters I get the following error (please find below), we use Oracle 9i for developement.Since this is very urgent and critical,kindly help us, we are thankful for the earlier responses got for our diferent queries.
    This is XML Schema we registered.
    XML SCHEMA:
    ==========
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema id="Dp_Pref_mst" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    <xs:element name="PrefMaster">
    <xs:complexType>
    <xs:choice maxOccurs="unbounded">
    <xs:element name="StateDetails">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="Pref_code" type="xs:string" minOccurs="0" />
    <xs:element name="Pref_desc" type="xs:string" minOccurs="0" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:choice>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    Schema registration:
    ===================
    begin
    dbms_xmlschema.registerSchema( 'sample.xsd', getFileContent('sample.xsd','DP','UTF8'));
    end;
    Table creation :
    ===============
    Create table states of XMLType XMLSCHEMA "sample.xsd" ELEMENT "PrefMaster";
    This is XML we try to insert
    XML :
    ====
    <?xml version="1.0" encoding="UTF-8"?>
    <PrefMaster xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="sample.xsd">
    <StateDetails>
    <Pref_code>1</Pref_code>
    <Pref_desc>小川鐵工所</Pref_desc>
    </StateDetails>
    <StateDetails>
    <Pref_code>2</Pref_code>
    <Pref_desc>Honshu</Pref_desc>
    </StateDetails>
    <StateDetails>
    <Pref_code>3</Pref_code>
    <Pref_desc>Nagasaki</Pref_desc>
    </StateDetails>
    <StateDetails>
    <Pref_code>4</Pref_code>
    <Pref_desc>Osaka</Pref_desc>
    </StateDetails>
    </PrefMaster>
    CREATE OR REPLACE FUNCTION getFileContent(filename varchar2,directoryName varchar2 default USER,
    charset varchar2 default 'AL32UTF8')
    return CLOB
    is
    fileContent CLOB := NULL;
    file bfile := bfilename(directoryName,filename);
    dest_offset number := 1;
    src_offset number := 1;
    lang_context number := 0;
    conv_warning number := 0;
    begin
    DBMS_LOB.createTemporary(fileContent,true,DBMS_LOB.SESSION);
    DBMS_LOB.fileopen(file, DBMS_LOB.file_readonly);
    DBMS_LOB.loadClobfromFile
    fileContent,
    file,
    DBMS_LOB.getLength(file),
    dest_offset,
    src_offset,
    nls_charset_id(charset),
    lang_context,
    conv_warning
    DBMS_LOB.fileclose(file);
    return fileContent;
    end;
    our insert statement
    ====================
    Insert into states values (XMLType(getFileContent('sample.xml','DP','UTF8')));
    The error we are getting
    =======================
    Error
    =====
    ERROR at line 1:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00210: expected '<' instead of '¿'
    Error at line 1
    ORA-06512: at "SYS.XMLTYPE", line 0
    ORA-06512: at line 1
    Any help in resolving this would be highly appriciated.
    Thank you
    Kathiresan.

    COMMIT is an SQL command and I don't think it will have any effect on you dataset. I think this should work:
    FORM f_write_aufk.
      CLEAR: gv_error, gv_reccnt, gv_t_amt, gv_t_qty,
      gv_t_docs, gv_previous_rec_id, gv_passcnt.
    *--------Open in compress mode ----------------------------------------*
      DATA: gc_commit dafault '1000'.
      OPEN DATASET lv_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT FILTER
              'compress'.
      IF sy-subrc = 0.
        SELECT aufnr auart autyp ernam aenam aedat ktext
        FROM aufk INTO gs_aufk
        WHERE aufnr IN s_aufnr.
          PERFORM f_transfer_dataset
            USING p_f_aufk gs_aufk CHANGING gv_error.
        ENDSELECT.
        PERFORM f_closedataset USING p_f_aufk CHANGING gv_error.
      ENDIF.
    ENDFORM.                    "F_WRITE_AUFK
    Rob

  • Query caching issue with Toplink version 10.1.3.5.0

    We are in the process of upgrading the toplink version from 9.0.4.7 to 10.1.3.5.0
    We are finding an odd issue with insert statements generated for an aggregate collection mapping with addTargetForeignKeyFieldName.
    We have a Table Ticket and Table Task with Table Activity as a child for both.
    Table Ticket
    Ticket_Key (PK)
    Table B
    Task_Key (PK)
    Table C
    Activity_Key (PK)
    Task_Key (FK)
    Ticket_Key(FK)
    Notes
    Version
    Here are the mappings from
    Ticket Project
    AggregateCollectionMapping activitiesMapping = new AggregateCollectionMapping();
            activitiesMapping.setAttributeName("activities");
            activitiesMapping.setReferenceClass(com.common.Activity.class);
            activitiesMapping.dontUseIndirection();
    activitiesMapping.privateOwnedRelationship();
            activitiesMapping.useCollectionClass(java.util.ArrayList.class);
            activitiesMapping.addTargetForeignKeyFieldName("ACTIVITY.TICKET_KEY", "TICKET.TICKET_KEY");
    activitiesMapping.useBatchReading();
            descriptor.addMapping(activitiesMapping);
    Task Project:
    AggregateCollectionMapping activitiesMapping = new AggregateCollectionMapping();
            activitiesMapping.setAttributeName("activities");
            activitiesMapping.setReferenceClass(com.common.Activity.class);
            activitiesMapping.dontUseIndirection();
    activitiesMapping.privateOwnedRelationship();
            activitiesMapping.useCollectionClass(java.util.ArrayList.class);
            activitiesMapping.addTargetForeignKeyFieldName("ACTIVITY.TASK_KEY", "TASK.TASK_KEY");
    activitiesMapping.useBatchReading();
            descriptor.addMapping(activitiesMapping);
    The tickets and tasks with activities gets inserted in the same transaction.
    Here are the queries that what we get from the toplink version 9.x
    2013-10-29 10:30:50,582  - SELECT SEQ_ACTIVITY.NEXTVAL FROM DUAL
    2013-10-29 10:30:50,582  - INSERT  INTO ACTIVITY (TASK_KEY, VERSION, NOTES, ACTIVITY_KEY) VALUES (?, ?, ?, ?)
    2013-10-29 10:30:50,582  - bind => [2900830, 0, Create Task, 8590870]
    2013-10-29 10:30:50,926  - INSERT  INTO ACTIVITY (TICKET_KEY, VERSION, NOTES, ACTIVITY_KEY) VALUES (?, ?, ?, ?)
    2013-10-29 10:30:50,926  - bind => [326450, 1, Created Ticket, 8590860]
    Here are the queries generated from toplink version 10.x
    2013-10-26 23:31:10,426   SELECT SEQ_ACTIVITY.NEXTVAL FROM DUAL
    2013-10-26 23:31:10,430   INSERT INTO ACTIVITY (TASK_KEY, ACTIVITY_KEY,NOTES, VERSION) VALUES (?, ?, ?, ?)
    2013-10-26 23:31:10,430   bind => [2900690, 8590500, Create Task, 0]
    2013-10-26 23:31:10,509   INSERT INTO ACTIVITY (TASK_KEY, ACTIVITY_KEY, NOTES, VERSION) VALUES (?, ?, ?, ?)
    2013-10-26 23:31:10,510   bind => [null, 8590490, Created Ticket, 1]
    It appears like the new version of the toplink caching the prepared statements and it is not recognizing the targetForeignKeyFieldName mapping of the Ticket Project.
    Any help in resolving this issue is appreciated.
    Thanks

    Hi James,
    1)Yes it supports IE 8 .Please review the below link for certification details on browers :-
        http://www.oracle.com/technetwork/middleware/ias/downloads/as-certification-r2-101202-095871.html#BAJGCBEA
         Note: Oracle Application Server supports only those browsers.
    2)Forms only support Windows 7 32 bit only.
        Please refer to the note:1292919.1 "Certification of Oracle Developer Suite 10g (10.1.2) on Windows 7 (32-bit)"
    3)Could you provide more information of JVM because when you install 10gR2 it has JDK and JRE present in it.
    Regards,
    Prakash.

  • Connect By not working with nested queries in from clause.

    Using Connect By on a query which has a nested from clause(The from clause fetches around 100k records) gives incorrect results but if the same nested queries are used to build a table and the Connect By is used on the table then the output is correct.
    I put the nested queries in a 'WITH' clause and got the correct output also.
    I am not sure how to give the code here as you would need dump to make them work.
    I am giving the a sample code:
    --Non Working Code
    SELECT     con_item, prod_item, compsite, bcsite, ibrsite, res
          FROM (SELECT con_item, prod_item, compsite, bcsite, ibrsite, res
                  FROM (SELECT bd.item AS con_item, bd.fromid AS compsite,
                               bd.toid AS bcsite, bd.toid AS ibrsite,
                               bd.bodname AS ID, bd.item AS prod_item,
                               'BOD' AS res
                          FROM TABLE1 bd
                        UNION
                        SELECT bc.item AS con_item,
                               bc.componentsiteid AS compsite,
                               bc.siteid AS bcsite, ibr.siteid AS ibrsite,
                               ibr.routingid AS ID, ibr.item AS prod_item,
                               op.resourcename AS res
                          FROM TABLE2 ibr,
                               TABLE3 bc,
                               TABLE4 op
                         WHERE ibr.bomid = bc.bomid
                           AND ibr.siteid = bc.siteid
                           AND ibr.routingid = op.routingid(+))
                 WHERE con_item IN ('SCFCD0T9B', 'SWXCD0S9B')
                   AND ibrsite LIKE 'CRCW%HSM')
    START WITH ibrsite = 'CRCW_QA_HSM' AND prod_item = 'SWXCD0S9B'
    CONNECT BY PRIOR con_item = prod_item AND PRIOR compsite = bcsiteWorking Code:
    --The table TEST_V is constructed on the from clause of above query
    SELECT     CON_ITEM, PROD_ITEM, COMPSITE, BCSITE, IBRSITE, RES
          FROM TEST_V
    START WITH IBRSITE = 'CRCW_QA_HSM' AND PROD_ITEM = 'SWXCD0S9B'
    CONNECT BY PRIOR CON_ITEM = PROD_ITEM AND PRIOR COMPSITE = BCSITEAlso another working code:
    WITH SUB AS
         (SELECT BD.ITEM AS CON_ITEM, BD.FROMID AS COMPSITE, BD.TOID AS BCSITE,
                 BD.TOID AS IBRSITE, BD.BODNAME AS ID, BD.ITEM AS PROD_ITEM,
                 'BOD' AS RES
            FROM TABLE1 BD
          UNION
          SELECT BC.ITEM AS CON_ITEM, BC.COMPONENTSITEID AS COMPSITE,
                 BC.SITEID AS BCSITE, IBR.SITEID AS IBRSITE, IBR.ROUTINGID AS ID,
                 IBR.ITEM AS PROD_ITEM, OP.RESOURCENAME AS RES
            FROM TABLE2 IBR, TABLE3 BC, TABLE4 OP
           WHERE IBR.BOMID = BC.BOMID
             AND IBR.SITEID = BC.SITEID
             AND IBR.ROUTINGID = OP.ROUTINGID(+))
    SELECT     CON_ITEM, PROD_ITEM, COMPSITE, BCSITE, IBRSITE, RES, LEVEL
          FROM SUB
    START WITH PROD_ITEM = 'SWXCD0S9B' AND IBRSITE = 'CRCW_QA_HSM'
    CONNECT BY PRIOR COMPSITE = BCSITE AND PRIOR CON_ITEM = PROD_ITEMI am sorry if I am giving incorrect syntax, please let me know if my giving the dump of table be of any help.
    Regards,
    Vikram
    Edited by: BluShadow on 11-Jan-2012 11:05
    fixed {noformat}{noformat} tags.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi, Vikram,
    Welcome to the forum!
    user2765706 wrote:
    Using Connect By on a query which has a nested from clause(The from clause fetches around 100k records) gives incorrect results but if the same nested queries are used to build a table and the Connect By is used on the table then the output is correct.
    I put the nested queries in a 'WITH' clause and got the correct output also.What exactly is the problem? Why not use one of the queries that gives the correct output? I find that WITH clauses are a lot easier to understand and debug than in-ine views, anyway.
    Are you just wondering why one of the queries doesn't work?
    I am not sure how to give the code here as you would need dump to make them work. You're absolutely right! You need to post some sample data and the results you want from that data. Without that, it's much harder for people to understand what the problem is, or how to fix it.
    I am giving the a sample code:
    --Non Working CodeLet's call this Query 1.
    SELECT     con_item, prod_item, compsite, bcsite, ibrsite, res
    FROM (SELECT con_item, prod_item, compsite, bcsite, ibrsite, res
    FROM (SELECT bd.item AS con_item, bd.fromid AS compsite,
    bd.toid AS bcsite, bd.toid AS ibrsite,
    bd.bodname AS ID, bd.item AS prod_item,
    'BOD' AS res
    FROM TABLE1 bd
    UNION
    SELECT bc.item AS con_item,
    bc.componentsiteid AS compsite,
    bc.siteid AS bcsite, ibr.siteid AS ibrsite,
    ibr.routingid AS ID, ibr.item AS prod_item,
    op.resourcename AS res
    FROM TABLE2 ibr,
    TABLE3 bc,
    TABLE4 op
    WHERE ibr.bomid = bc.bomid
    AND ibr.siteid = bc.siteid
    AND ibr.routingid = op.routingid(+))
    WHERE con_item IN ('SCFCD0T9B', 'SWXCD0S9B')
    AND ibrsite LIKE 'CRCW%HSM')
    START WITH ibrsite = 'CRCW_QA_HSM' AND prod_item = 'SWXCD0S9B'
    CONNECT BY PRIOR con_item = prod_item AND PRIOR compsite = bcsite
    [\CODE]
    Working Code:Let's call this Query 2.
    --The table TEST_V is constructed on the from clause of above query
    SELECT     CON_ITEM, PROD_ITEM, COMPSITE, BCSITE, IBRSITE, RES
    FROM TEST_V
    START WITH IBRSITE = 'CRCW_QA_HSM' AND PROD_ITEM = 'SWXCD0S9B'
    CONNECT BY PRIOR CON_ITEM = PROD_ITEM AND PRIOR COMPSITE = BCSITE
    [\CODE]Why does Query 1 not do the same thing as Query 2? That depends on what is in test_v. Only you know what test_v is, so only you can say. If you'd post the code that created test_v, maybe somebody else could help.
    Also another working code:Let's call this Query 3.
    WITH SUB AS
    (SELECT BD.ITEM AS CON_ITEM, BD.FROMID AS COMPSITE, BD.TOID AS BCSITE,
    BD.TOID AS IBRSITE, BD.BODNAME AS ID, BD.ITEM AS PROD_ITEM,
    'BOD' AS RES
    FROM TABLE1 BD
    UNION
    SELECT BC.ITEM AS CON_ITEM, BC.COMPONENTSITEID AS COMPSITE,
    BC.SITEID AS BCSITE, IBR.SITEID AS IBRSITE, IBR.ROUTINGID AS ID,
    IBR.ITEM AS PROD_ITEM, OP.RESOURCENAME AS RES
    FROM TABLE2 IBR, TABLE3 BC, TABLE4 OP
    WHERE IBR.BOMID = BC.BOMID
    AND IBR.SITEID = BC.SITEID
    AND IBR.ROUTINGID = OP.ROUTINGID(+))
    SELECT     CON_ITEM, PROD_ITEM, COMPSITE, BCSITE, IBRSITE, RES, LEVEL
    FROM SUB
    START WITH PROD_ITEM = 'SWXCD0S9B' AND IBRSITE = 'CRCW_QA_HSM'
    CONNECT BY PRIOR COMPSITE = BCSITE AND PRIOR CON_ITEM = PROD_ITEM
    [\CODE]Why does Query 1 not do the same thing as Query 3? Query 1 has these conditions:
    ...           WHERE con_item IN ('SCFCD0T9B', 'SWXCD0S9B')
                    AND ibrsite LIKE 'CRCW%HSM'but Query 3 does not.
    I am sorry if I am giving incorrect syntax, please let me know if my giving the dump of table be of any help.Yes, that always helps. Whenever you have a problem, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data. Simplify the problem as much as possible. For example, if you have the same problem when you leave out one of the tables, then don't include that table in the problem.
    Always say what version of Oracle you're using. This is especially important with CONNECT BY queries, because every version since Oracle 7 has had major improvements in this area.

  • Degrading performance when running consecutive insert operations

    Hi,
    I'm using DB-XML (2.5.16) as a backend storage for a web application that works on top of a TBX (TermBase eXchange) document. The application is using the Python bindings and development is being done on GNU/Linux with Python 2.6.
    The document is stored in a node-storage container, autoindexing is off at the time of container creation and transactions are enabled.
    After a set of indexes are set, queries work quite fast.
    On the other hand, when users input new data (terms) or perform edits on existing data, insert and replace operations have instant effect.
    The application has also a feature to insert lots of new terms in a single click, resulting in a new insert operation for each term. If the amount of terms to be inserted is relatively small (let's say ~10), the operation is quickly performed and the user receives a response almost instantly.
    Anyway, the problem arises when there are lots of new terms to be inserted. It starts working fast but performance quickly starts to degrade badly, needing more long seconds for each insert operation. Python's CPU-usage seems to go up to 100% when doing the actual insert, too.
    I understand this is not the best-working scenario for DB-XML (a single large document), but I don't think this performance is normal or acceptable.
    I have tried increasing Berkeley DB's cache size to 64MB with no success.
    Any hints about what should I be looking at? any more recommendations?
    These are the defined indexes:
    dbxml> listindexes
    Index: node-element-equality-string for node {}:admin
    Index: node-element-equality-string for node {}:descrip
    Index: node-attribute-equality-string edge-attribute-equality-string for node {}:id
    Index: node-attribute-equality-string for node {http://www.w3.org/1999/xhtml}:lang
    Index: unique-node-metadata-equality-string for node {http://www.sleepycat.com/2002/dbxml}:name
    Index: node-element-equality-string for node {}:ref
    Index: node-element-equality-string node-element-substring-string for node {}:term
    Index: node-element-equality-string for node {}:termNote
    Index: node-attribute-equality-string edge-attribute-equality-string for node {}:type
    9 indexes found.Container information:
    dbxml> info
    Version: Oracle: Berkeley DB XML 2.5.16: (December 22, 2009)
             Berkeley DB 4.8.30: (2010-12-09)
    Default container name: cont.dbxml
    Type of default container: NodeContainer
    Index Nodes: on
    Auto-indexing: off
    Shell and XmlManager state:
         Transactional, no active transaction
         Verbose: on
         Query context state: LiveValues,Eager

    As you both have mentioned I have tried increasing the cache size to 512MB or even to 1GB (I have recreated the entire DBs after setting cache sizes), but I don't see any significative improvements.
    I have also tried to tune my insert queries, and now I think they're in better shape than before. I would say the initial inserts feel slightly faster, but this only happens when the DB is empty (just bootstrapped). Then, once the DB has some term entries and grows in size, it starts to degrade and inserting becomes expensive in order of magnitudes.
    Each insert operation is performed in a separate transaction. And yes, I'm using transactions all over the application.
    Vyacheslav, I'll send you a couple of containers along with insert queries created by the application so you can play with.

  • How do I delete multiple stamps or fields done in version 7, but now I have in Acrobat Pro 9

    Most of our files were done printed in PDF with version 7. We have inserted a stamp in version 7. But when I open this file in Version 9, these stamps have become field and the usual action in deleting multiple of these was to just go to navigation tabs/field and highlight them all and click on delete - and it would delete all the stamps or fields in Version 7.
    I have noticed that in Version Pro 9, the navigation tab does not have this. How can I delete multiple stamps/or fields in one PDF file?

    Since you have the Pro. version of Acrobat X, you can create an Action to automate this process for you. When you create a new action, in the Save to: icon you can set the export format as seen here.

  • What object is required to give Admin's access to all Queries/Roles?

    Hello,
    We are creating many roles now in BW.  Our Admin needs access to each of these roles to put in queries/reports.
    I need access to these roles to run the Analysis tool and test.
    Right now I am giving every role/container created.  There must be an easier way.
    Is there an object that I can give to the Admin role and Security role so that I do NOT have to assign each role individually??
    Thanks, in advance, for your help.
    Penny

    Hi there,
    In rsecadmin you could assign to the user the manual authorization object named "0BI_ALL", this would bypass the authorization objects of the query for that user, i.e., he/she could execute every query and would have authorizations to execute any query, but this wouldn't assign none of the roles to the user.
    So if you want a user to have the roles, so that this user can insert queries in those roles, you'll have to assign the roles to him/her. And either you assign those roles one by one, or you could do with the program.
    Maybe there is another way, but I'm not aware of.
    Regards,
    Diogo.

Maybe you are looking for

  • Your email address has changed or is invalid -iTunes won't let me change it

    Help. I've tried everything including logging a request with Apple iTunes support - through the usual means, filling out the online request form. Still to no avail. The story goes like this, I changed my ISP about three weeks ago. I'm pretty sure my

  • View pdf or doc reports in obiee 10g dashboard

    Hi, Is it possible to view reports which are saved in pdf or doc format to view in dashboard. We have some static reports which are in pdf format. How to view those reports in dashboard, like by using link or image etc..? Thanks.

  • "Smart Playlists" not showing up in 2G nano

    Hey guys I've search through everywhere and got no luck on how to solve this problem. I don't sync my iPod to the pc, I just manually updates songs on it and I don't think that's what causing the problem. I can see the "recently added" list under the

  • IT0077 Ovrview

    Hello All We have uploaded all the HRSP's for 2007 US legal change for EEO reporting and mapped Old Ethnic Orgin data with New Ethnicity and Race Code's. I can create new IT0077 records for new and old employee's but when i do overview for IT77, it i

  • Photoshop CS3 brush lag

    I have just reinstalled  Xp home  OS system in addition to reinstalling Photoshop CS3 The brush tool seems to be lagging when doing any kind of work.Especially when I am using masks and painting in with the brush for different levels of exposures on