Doubt in using DBMS_AW.Execute

Hi,
Can some tell me how I can get the results back from the OLAP engine to the pl/sql engine after executing a particular command using "DBMS_AW.Execute"
I have a variable in one AW. I just want to fetch the value of that variable and use it in pl/sql code.
In the documentation "http://download.oracle.com/docs/cd/B12037_01/olap.101/b10334/dbms_aw.htm#i83227" they have mentioned an OUT parameter. But i dont know how to use it.
Help is appreciated!!!
Thanks!!
Regards
Prabhu
Edited by: Manikanda Prabhu on Sep 26, 2011 2:47 AM

Hello Anwar,
The following is the error message:
ERROR at line 1:
ORA-01403: no data found
ORA-06512: at "OLAP_USER.META_OLAP_UTIL", line 503
ORA-06512: at "OLAP_USER.META_OLAP_UTIL", line 351
ORA-06512: at "OLAP_USER.META_OLAP_UPDATE", line 69
ORA-06512: at "OLAP_USER.META_OLAP_MAINTAIN", line 61
ORA-06512: at line 1OLAP_USER is the schema that owns the package (META_OLAP_UTIL) that contains the procedures to maintain the AW objects and access the XML_LOAD_LOG table.
When I go to line 503, which is specified in the error message, it is where the script that queries from the XML_LOAD_LOG is found, and the way that the PACKAGE/PROCEDURE is programmed to query from XML_LOAD_LOG is by passing the XML_LOADID of the current maintenance as a parameter, and since the XML_LOAD_LOG didn't update, the execution of the PACKAGE/PROCEDURE halts with the error above.

Similar Messages

  • XML_LOAD_LOG Not Updating When Using DBMS_AW.EXECUTE

    I have created a procedure that maintains cubes and dimensions, so that I don't have to use AWM. This procedure that I have created logs important details of the maintenance, and my method of executing the OLAP DML command that maintains the OLAP objects is by using DBMS_AW.EXECUTE.
    The problem is that the OLAPSYS.XML_LOAD_LOG table is not being updated when I execute this procedure, and since it relies on the data of the XML_LOAD_LOG table, I am getting errors not related to OLAP.
    Whats frustrating me is that it has not always been like this, I have always been using DBMS_AW.EXECUTE and suddenly, it bombs out on me.
    Please help.

    Hello Anwar,
    The following is the error message:
    ERROR at line 1:
    ORA-01403: no data found
    ORA-06512: at "OLAP_USER.META_OLAP_UTIL", line 503
    ORA-06512: at "OLAP_USER.META_OLAP_UTIL", line 351
    ORA-06512: at "OLAP_USER.META_OLAP_UPDATE", line 69
    ORA-06512: at "OLAP_USER.META_OLAP_MAINTAIN", line 61
    ORA-06512: at line 1OLAP_USER is the schema that owns the package (META_OLAP_UTIL) that contains the procedures to maintain the AW objects and access the XML_LOAD_LOG table.
    When I go to line 503, which is specified in the error message, it is where the script that queries from the XML_LOAD_LOG is found, and the way that the PACKAGE/PROCEDURE is programmed to query from XML_LOAD_LOG is by passing the XML_LOADID of the current maintenance as a parameter, and since the XML_LOAD_LOG didn't update, the execution of the PACKAGE/PROCEDURE halts with the error above.

  • Opening files thru ALV using CL_GUI_FRONTEND_SERVICES-EXECUTE

    Hi Friends,
    I have a report where i will display, invoices and its respective documents in form of alv, so i have a column which will tell the user to click(as a hyper link), and upon clicking that i want to use CL_GUI_FRONTEND_SERVICES=>EXECUTE
    but my doubt is can i open files which are stored in some share drive.
    can i achieve this using CL_GUI_FRONTEND_SERVICES=>EXECUTE???
    does this GUI frontend services execute method be able to open a file which is in a shared folder.
    Pls let me know.
    Thanks,
    Simha
    Edited by: Simha on Jun 16, 2008 11:50 AM
    Edited by: Simha on Jun 16, 2008 11:51 AM
    Edited by: Simha on Jun 23, 2008 9:43 AM

    Hi ,
    Hope this will be helpful.
    CALL METHOD cl_gui_frontend_services=>execute
          EXPORTING
       document               =
            application            = l_app            " path of the file
            parameter              = l_param        " Path file name.
       default_directory      =
       maximized              =
       minimized              =
       synchronous            =
       operation              = 'OPEN'  " mode
    EXCEPTIONS
       cntl_error             = 1
       error_no_gui           = 2
       bad_parameter          = 3
       file_not_found         = 4
       path_not_found         = 5
       file_extension_unknown = 6
       error_execute_failed   = 7
       synchronous_failed     = 8
       not_supported_by_gui   = 9
       others                 = 10
    Thanks & regards,
    Ravi Sankar.Z

  • The transaction associated with the current connection has completed but has not been disposed. The transaction must be disposed before the connection can be used to execute SQL statements.

    Hello All,
    I am getting below error can you please help me
    Error:-
    The transaction associated with the current connection has completed but has not been disposed. The transaction must be disposed before the connection can be used to execute SQL statements.

    Perhaps this thread will help you out
    http://stackoverflow.com/questions/11453066/error-the-transaction-associated-with-the-current-connection-has-completed-but
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Disable Parent Form while invoking Child Form using FND_FUNCTION.EXECUTE

    Hi,
    Any inputs in getting this issue resolved would be really helpful? I have a parent form wherein I am calling Child form (Line Details Form) by passing the masterid it works fine. Here How do we refrain the user control to access master form when child form is opened? Here when child form is invoked by click of a button and try to close the master, still I could see the child form opened. Any help will he highly appreciated. Many Thanks.
    Please find the details of the db version and function being used to invoke the form. I tried with all parameter options, when we give Open_flag as 'N', the master form gets closed after opening the child form. Perhaps given the open_flag as 'Y'. Kindly let me know your inputs in case of any missout from my end.
    Forms Version: Oracle Forms 10g
    Version: Oracle Applications : 12.1.3
    Database Version: 11.1.0.7.0
    fnd_function.execute(
    FUNCTION_NAME=> 'CHILD_FORM_LINE_DETAIL'                                                   ,OPEN_FLAG=>'Y'
         ,SESSION_FLAG=>'Y'
         ,other_params=>:Global.master_table_ID
    Thanks,
    Ahmed

    Hi,
    Please review the following documents and see if it helps.
    Note: 93784.1 - Custom Form is Not Executed When Called Using FND_FUNCTION.EXECUTE
    Note: 1031970.6 - Where is FND_FUNCTIONS.EXECUTE defined?
    Note: 744065.1 - Sample CUSTOM Library Code To Customize Applications
    Regards,
    Hussein

  • Problem in using JDBC Execute commands(Update & Delete Only) with af:Table

    HI Everyone,
    I have one issue with Updating and Deleting Row Data using JDBC Execute commands.
    Suppose In My Application i have two pages, in Page 1 I have Two Command Buttons(Delete and Save) and One Input TextBox to write the String to be stored in the Database. and Page 2 where the result Table is shown and table is binded with a ViewObject, Now When User Types some String in InTB and click Save then By Programmatically I'm searching, that string is already present in database or not, if it is already exist then Save button converts in Update button and instead of inserting it allows user to Update the String already exist in database.
    Everything is working fine but the problem comes when i put those all buttons on the same page where result table is present.After putting all things on the same page and When i click save button to insert new String it is Successfully inserting but when any of other action is performed like updating or Deleting the existing one.. then my application just hanged and then nothing I able to do.
    Please Help me to understand this problem and give me the solution for this..
    Thanks
    Fizzz...

    Hi frank,
    Thanks to reply me...
    I'm refreshing table's iterator on each command button's action to reflect the changed result... and i'm sorry i mentioned two pages in my project.. actually these are two forms in the same page..which conditionally changed its renderer properties.. its working fine when only one form is renderred and the otherside when both are rendered then it is not working.
    Hope this change will help you to understand the problem.. if something else you are looking for then please tell me..
    Thanks
    Fizzz...

  • Which user is used to execute command defined in File Adapter?

    Hello,
    in my receiver file adapter I specified a OS command to be executed after message processing. However this command doesn't get executed. After investigation I figure out that it's because the user that is used to executed the command does not have enough authorization to run the program (It's a unix system).
    So anyone knows which user is used to execute the command? Or anyone know how to go around this security issue with OS command in Unix system?
    Thanks
    Eric

    Hi,
    As Bhavesh replied you earlier the OS command is executed by the user <sid>adm in Unix or SAPService<SID> in windows.
    Do check the note 841704 - XI File & JDBC Adapter: Operating system command.
    From Note 841704
    Also note that the command is run as user "<sid>adm" (Unix) / "SAPService<SID>" (Windows).
    Thanks
    SaNv...

  • Flash Player use to execute the main class entry point before rendering. Now it does not

    Adobe Flash Player use to execute the main class entry point before rendering the first frame. Now using the latest browsers and Flash Player 11.8 (11.8.800.94, or 11.8.800.97 for Chrome).
    With one of our swf apps, there are visual display objects on the first frame of the timeline. When the main class constructor is executed, those display objects are set to visible = false. So previously those display objects were never displayed because the first frame did not render until after the main class code was ran.
    Now when we browse to the our website, we find that those display objects are visible for a split moment of time (such as a quarter of a second).
    It appears that this may be a bug. We are wondering this could be new behavior based on loading/unloading the swf to optimize CPU usage and that Flash Player is taking a snapshot of the internal state of the first frame and displaying the cached snapshot before it actually loads.
    So...Chris (or other Adobe representative), is Flash Player supposed to be rendering the display before any code executes it runs the main class?

    Not that I'm aware of.  If this is something that just started with 11.8, then we could be running into some sort of bug injection.  Could you please open a new bug report on this over at bugbase.adobe.com?  When adding the bug, please include sample code, application or URL so we can quickly test this out internally.  If you'd like to keep this private, feel free to email the attachment to me directly ([email protected]). 
    Once added, please post back with the bug number and we'll investigate from there.

  • How can i know which index will be used when executing the query ?

    1 ) I have query in which i have 3-4 tables but there multiple index on one column .
    so how can i know which index will be used when executing the query ?
    2) I have a query which ia taking too much time . how can i know which table is taking too much time ?
    3) Please Provide me some document of EXplain plan ?

    Hi Jimmy,
    Consider the below example
    /* Formatted on 2011/02/04 21:59 (Formatter Plus v4.8.8) */
    CREATE TABLE FIRST AS
    SELECT * FROM all_objects;
    UPDATE FIRST
    SET object_name = 'TEST'
    WHERE owner != 'SCOTT';
    CREATE INDEX idx_first ON FIRST(object_name);
    SELECT *
    FROM FIRST
    WHERE object_name = 'TEST';
    It has not used index
    Execution Plan
    Plan hash value: 2265626682
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 58678 | 7334K| 163 (4)| 00:00:02 |
    |* 1 | TABLE ACCESS FULL| FIRST | 58678 | 7334K| 163 (4)| 00:00:02 |
    /* Formatted on 2011/02/04 21:59 (Formatter Plus v4.8.8) */
    SELECT *
    FROM FIRST
    WHERE object_name = 'emp';
    This has used the index
    Execution Plan
    Plan hash value: 1184810458
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 1 | 128 | 1 (0)| 00:00:01 |
    | 1 | TABLE ACCESS BY INDEX ROWID| FIRST | 1 | 128 | 1 (0)| 00:00:01 |
    |* 2 | INDEX RANGE SCAN | IDX_FIRST | 1 | | 1 (0)| 00:00:01 |
    From this we can come to the conclusion that, whether to use one index or not by oracle
    would also depend on the data which is present in the table. This has to be this way as
    we see in the bind peeking, if oracle sticks to only one plan, say only use the full table
    scan, it would be a performance hit when it searches for the second query ie where object_name
    ='emp';
    2.
    If we have a query like below.
    select * from emp
    where upper(ename) = upper(:p_ename);
    Evenif we have the index on ename column, oracle wouldn't be able to use the index, as there is a function in the predicate column. If you need oracle to use the index, we need to create a function based index as below.
    Create index idx_ename on emp(upper(ename));
    Regards,
    Cool

  • Can getGeneratedKeys() be used when executing batches of statements?

    Hi all,
    this question was posted in this thread:
    Can getGeneratedKeys() be used when executing batches of statements?
    but unfortunately I didn't find the answered appropriate.
    That thread is now locked, so I would like to start it again here.
    This is a summary of the other thread:
    Can you retrieve keys generated by a batch of insert statements? The following code produces an ArrayIndexOutOfBoundsException from the Oracle T4CNumberAccessor.unmarshalOneRow() method (see stack trace at the bottom of this message).
    The code is:
    String sql = "INSERT INTO FOO (ID, NAME) VALUES (FOO_SEQ.NEXTVAL, ?)";
    String generatedColumns[] = {"ID"};
    PreparedStatement pstmt = connection.prepareStatement(sql, generatedColumns);
    pstmt.setString(1, "A");
    pstmt.addBatch();
    pstmt.setString(1, "B");
    pstmt.addBatch();
    pstmt.setString(1, "C");
    pstmt.addBatch();
    //EXCEPTION OCCURS HERE
    pstmt.executeBatch();
    The exception is:
    java.lang.ArrayIndexOutOfBoundsException: 22
    at oracle.jdbc.driver.T4CNumberAccessor.unmarshalOneRow(T4CNumberAccessor.java:190)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:610)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:216)
    at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:955)
    at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:10580)
    The only answer given was:
    "You should directly specify how big your batching is. For that reason you may use ExecutionContext where you can set setBatchingLimit(int) and setBatching(bool). This operation will tell execution context the size of supposed batching and also should be batching performed at all or not. You can add batching jobs but you can not execute the jobs without proper initialization of batching job size - it will fail with out of bounds."
    ExecutionContext is not something I found in jdbc drivers, so I'm a bit confused about this answer.
    Did anyone solve the problem?
    Thanks,
    Michele

    >
    We have the same problem. No solution so far.
    >
    I never found a definitive solution but testing seems to show that this is not possible.
    There is no code that can be written to get the generated keys if batching is used.
    This is because the 'getGeneratedKeys' method must be called on the prepared statement and would return the generated keys as a ResultSet object. But when batching there is only one prepared statement but multple sets of parameters, one for each batch entry.
    Thus there could only be one call to 'getGeneratedKeys' since there is only one prepared statement. This strongly implies that it is not possible to use 'getGeneratedKeys' when batching.
    See Retrieval of Auto-Generated Keys in the JDBC Dev guide
    http://docs.oracle.com/cd/B19306_01/java.102/b14355/jdbcvers.htm#CHDEGDHJ

  • Cannot connect to com1 in PXI2530 using Switch Executive

    I have a PXI2530 configured using Switch Executive 2.10.  The first 60 Channels are setup with my signal names on ch0 - ch59.  Com0, 1, 2 and 3 are my Instrument connections.  The IVI Driver Sessions has Driver Setup set to Topology:2530/1-Wire Octal 16x1 Mux. 
    When I try to configure either a Channel, Route or a Group, there is only a com0 pin and no com1, 2, 3, 4, 5, 6 or 7.  There is no way to connect to any pin beyond ch15.
    The configuration looks like it is setup for a 128:1 mux, but when I try to connect ch16 to com0, it cannot complete the route.  Ch16 cannot be connected to com0 or any channel in the list.  Any idea what I am doing wrong?
    Michael Munroe, ABCDEF
    Certified LabVIEW Developer, MCP
    Find and fix bad VI Properties with Property Inspector

    http://forums.ni.com/ni/board/message?board.id=320​&message.id=633
    Duplicate threadMessage Edited by Berto on 02-28-2006 12:15 PM

  • Scan list using Switch Executive

    I have a number of signal routes using multiple switch cards that I have set up using switch executive. I want to create a scan list that will switch each of my routes in turn each time I see a hardware trigger on the trigger inputs of my switches.
    I have looked at some examples in TestStand and can see that if I use the IVI Switch Step using the IVI Switching setting that I can set up a scan list but that seems to be only for one switch card, I have two that I need to route signals to a Digitizer. I can not see a way of using my routes set up using Switch Executive. 
    I can either use LabView2013 or TestStand 2013 to do this.
    Some help would be most appreciated?
    Wayne 

    Hi Wayne, 
    If I have understood your problem correctly, this VI in LabVIEW sound like it does what you are after. 
    NI Switch Route Trigger Input
    Also at the bottom of this LINK are some examples of scan lists, perhaps you will be able to adapt this to your needs
    Please let me know how you get on
    Kevin R
    Applications Engineer
    National Instruments UK&Ireland

  • We would like to use Calibration Executive to calibrate NI 5673, but do not have an R&S FSU.

    We would like to use Calibration Executive to calibrate NI 5673, but do not have an R&S FSU.  The "note" in the required equipment table mentions: National Instruments strongly recommends using the instruments specified above when calibrating the NI 5673/5673E module. Substitution of instruments is permitted by Calibration Executive software, but National Instruments cannot guarantee. . .  Does that mean there is still a way to automate measurements using a different Spec An, or does it mean we'll simply be able to designate a different Spec An, but have to make the measurements manually at each point?  We're interested in using the Agilent E4440A we have.

    Greetings,
    You will be able to designate a different Spectrum Analyzer, but because the Agilent Spectrum Analyzer is not on the list of supported hardware you'll have to take the measurements manually.
    Thanks,
    James Duvall
    Product Support Engineer
    National Instruments

  • Which user/credentials does APEX use to execute packages

    Which user does APEX use to execute a function or procedure in the parsing scheme of an application. I am trying to debug an custom authentication scheme which calls a package procedure.

    Mathias Oracle wrote:
    Which user does APEX use to execute a function or procedure in the parsing scheme of an application. I am trying to debug an custom authentication scheme which calls a package procedure.APEX connects to the database using connection pooling as the APEX_PUBLIC_USER or ANONYMOUS schemas, depending on the webserver configuration (except where a DAD has no username/password defined). Code is executed via the <tt>dbms_sys_sql</tt> package using the privileges of the application parsing schema. See:
    {message:id=926724}
    {message:id=1224601}
    Application Express and parsing of SQL

  • Unplanned Use Of EXECUTE IMMEDIATE

    Hi Gurus,
    I have joined a new project in my company. I have seen that there are lot of use of EXECUTE IMMEDIATE in the coding. But these use of EXECUTE IMMEDIATE is totally unnecessary. For Example
    INSERT INTO table_name SELECT column1,column2  FROM table_name2is written as
    EXECUTE IMMEDIATE 'INSERT INTO table_name SELECT column1,column2  FROM table_name2'May be
    SELECT 'X' INTO myvar FROM DUALis written as
    EXECUTE IMMEDIATE 'SELECT 'X' FROM DUAL' INTO myvarI have a serious allergy with this type of coding. But I need some good points and reference from authenticate source (Oracle Documentation/Articles/White paper etc) to convince others.
    So please post your valuable comments!.

    You can also argument that the dynamic version is a little slower. In fact this does not make any real difference performancewise. But still each little be may count. ;)
    Here is a test case:
    09:28:54 SQL> set time on
    09:28:55 SQL> set timing on
    09:28:57 SQL> declare
    09:28:58   2    myVar pls_integer;
    09:28:58   3  begin
    09:28:58   4     for i in 1..1000000 loop
    09:28:58   5        execute immediate('select count(*) from dual') into myVar;
    09:28:58   6     end loop;
    09:28:58   7  end;
    09:28:58   8  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:27.02
    09:29:25 SQL>
    09:29:25 SQL> declare
    09:29:25   2    myVar pls_integer;
    09:29:25   3  begin
    09:29:25   4     for i in 1..1000000 loop
    09:29:25   5        select count(*) into myVar from dual;
    09:29:25   6     end loop;
    09:29:25   7  end;
    09:29:25   8  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:26.24
    09:29:51 SQL> As you can see the difference is marginal (3% faster). But still there is a slight difference.

Maybe you are looking for

  • In need of Openoffice-base 2.3

    anyone has a link where Openoffice-base.2.3 can be downloaded, or maybe has it in the cache of pacman. Have a new installation and there Openoffice-2.4 is buggy with the wizard of additonal dictonary installation. On the las 2.3 Openoffice Version it

  • SQL 2000 to Oracle 8i Migration

    Does anyone have any idea about migrating MS SQL 2000 stored procedures to Oracle8i? What kind of conversion does it do? What are the restrictions? Can anyone throw some light as to where I can get the documentation etc? Alternatively, MS SQL 7.0 to

  • Why can't I open my ibooks on my macbook?

    I bougt a bunch of books on the app store on my macbook. I can't open them, no matter how many times i click on them! I don't have any Apple handheld products like the ipod or ipad. how can i open the books?

  • What can I do if iTunes did not download the song completely but thinks it did?

    I have no clue what happened, but I bought an album off iTunes and it said the download was complete, but when I try to play the songs, they cut off midstream and it won't let me re-download them. Not every song cuts off, only a select few do, but it

  • How can we automate compass rotation using UIAutomation

    Hello, I have to automate compass application using Instruments. How can this be possible?