Re: Run packages of DB oracle OBIEE

Hello

Hope everything goes well. I was just wondering how do you run Oracle DB OBIEE packages? How can I say package.procedure or package.function EXEC?

Thanks in advance,
Sam

Hello..

Hope that you said... use package.procedure or package.function to evaluate function...

OR
If you go physical layer... and try to create the new table physical...
Select the type of Table as Select and try to call your function package here...
Sorry to say, I didn't work on this... but try and report...
See my post Re: calling stored procedure for the Conversion of Date ... to... understand what some what.

Thank you & best regards
Kishore Guggilla

Published by: Kishore Guggilla, December 17, 2008 12:07

Tags: Business Intelligence

Similar Questions

  • How to use Text Mining (tm) package Distribution R Oracle?

    Hello

    I'm using Oracle R distribution 3.0.1 and try to build a wordcloud from data stored in the Oracle database table column. I searched the web and found install and charge the package tm for this purpose. When I'm trying to run the command to install the package of tm , it generates the following error

    > install.packages("tm")
    Installing package into ‘/home/oracle/R/x86_64-unknown-linux-gnu-library/3.0’
    (as ‘lib’ is unspecified)
    Warning message:
    package ‘tm’ is not available (for Oracle Distribution of R version 3.0.1) 
    

    How this problem could be solved.

    Any help will be much appreciated.

    Thank you

    Kind regards

    New versions of the package tm have been published since R - 3.0.1, so you will need to install the dependencies tm & manually.  This blog contains instructions to help guide the process:

    https://blogs.Oracle.com/R/entry/r_package_installation_with_oracle

    See section 6: Installation of older versions of R packages.

    Sherry

  • Impossible to run Packages using Agent

    Hello

    When I try to run packages using Agent that is located on another machine it gives the following error.

    ' * ' unable to selected executethe logical agent is not assosciated to a physical agent in the desired context. » *

    java.util.NoSuchElementException
    in java.util.AbstractList$ Itr.next (AbstractList.java:350)
    at com.sunopsis.graphical.dialog.SnpsDialogExecution.getAgent(SnpsDialogExecution.java:1436)
    at com.sunopsis.graphical.dialog.SnpsDialogExecution.doScenarioExecuter(SnpsDialogExecution.java:1104)
    at oracle.odi.ui.action.SnpsPopupActionExecuteHandler.actionPerformed(SnpsPopupActionExecuteHandler.java:64)
    at oracle.odi.ui.SnpsActionControler.handleEvent(SnpsActionControler.java:75)
    at oracle.ide.controller.IdeAction.performAction(IdeAction.java:529)
    at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:884)
    at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:501)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)
    in javax.swing.plaf.basic.BasicMenuItemUI$ Handler.mouseReleased (BasicMenuItemUI.java:850)
    at java.awt.Component.processMouseEvent(Component.java:6267)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6032)
    at java.awt.Container.processEvent(Container.java:2041)
    at java.awt.Component.dispatchEventImpl(Component.java:4630)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
    at java.awt.Container.dispatchEventImpl(Container.java:2085)
    at java.awt.Window.dispatchEventImpl(Window.java:2478)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    Hello Manu,

    Check your agent with test connection and take a look at your context when executing time he asks the context and the agent.

    If you have agents and contexts various choice name please correct logical agent linked to the context...

    in this case also you not able to find the solution, and then got to the topology manager---> go to the logical architecture and open your agent, see your logical name of the agent in different contexts, please check like that under the physical schema window in contexts also.

    Kind regards
    Surya.

  • Packages provided by Oracle

    Hi all

    Quick question - where can I find packages provided by Oracle in TOAD for Oracle (12.7.1.11)?

    So far I can't see my own packages in my schema in the schema browser, but I'd like to browse the pre installed, for example, DBMS_UTILITY, DBMS_RANDOM package, etc.

    Thank you.

    In the dropdown above schema object, select sys and the package should appear under object type of packets, hope this helps.

  • List of web services Oracle Obiee

    Hello

    in a dashboard Oracle, I would like to know how to upgrade an existing Oracle Obiee web services list?

    Let's say I have a new webService and I want to add to the list of Web services when the user tries to call a webService for action.

    I tried to change the ActionFrameWorkConfig.xml file but it seems that I am not correct location.

    middleware_home/user_projects/domains/bifoundation_domain/config/fmwconfig/biinstances/coreapplications

    Did you reboot after the ActionFrameWorkConfig.xml?

    It's the only place you should update.

    Thank you

    Vincent

  • How to create packages DBMS_XPLAN in oracle 9i?

    Dear

    How to create packages DBMS_XPLAN in oracle 9i? I Googled it already but I could not the solution.

    DBMS_XPLAN is part of the database. The only way to get it in 9i, AFAIK, is upgraded to a later version

  • Want to know about Oracle Obiee (New to SQL and OBIEE)

    Hello
    I am currently working on software testing. And I want to change my domain obiee.but Oracle name I know only moderate on SQL.
    It will be difficult for me to learn oracle obiee pl/sql knowledge?
    What the Oracle obiee tool market British?
    Can install the oracle obiee and can practice at home for more experience?

    Please delete all these doubts

    Thank you

    Yes, you can learn at the same time.

    Use this link for all
    http://docs.Oracle.com/

    for BI
    http://www.Oracle.com/technetwork/middleware/bi-Foundation/documentation/bi-doc-085721.html

    Just to start

    Hope this helps, if indeed correct brand

    Published by: Srini VIEREN on January 3, 2013 05:55

  • Run ODI Interfaces of Oracle database

    Hi all

    Can we run the ODI interfaces of Oracle database even we execute mappings OWB database by creating a Proc Storeed and passing the name of mapping for execution.

    Thank you and best regards,
    Ankit

    Can we run the ODI interfaces of Oracle database even we execute mappings OWB database by creating a Proc Storeed and passing the name of mapping for execution.

    There is a fundamental difference between generated code OWB and ODI code generated.
    OWB especially generates control loaded package files or sql oracle wchich can easily be called from a Proc Storeed.

    But in the case of ODI, the final product is XML scenario file IE. All information related to the interface/procedure/package etc are scattered through various repository table and it is very difficult to write a Proc Storeed and connect inter between these tables.

    ODI scenario can be called from the rinse command prompt supplied ODI startscen.bat/sh utility
    http://gerardnico.com/doc/ODI/Webhelp/en/UserManual/agent/scenario_os.htm

    Now, you can also run a script shell to a PL/SQL procedure
    http://www.DBA-Oracle.com/t_execute_shell_script_plsql_procedure.htm

    So considering the above 2 pints, you can run the ODI iscenario of Oracle database, but it will be different from the way in which you are mapping OWB execution.

    Thank you
    Fati

  • Execution of a stored procedure in a Package in an Oracle schema?

    I found solutions to guidance how to run stored procedures to an Oracle DB, for example http://blogs.oracle.com/adf/entry/call_db_stored_procedure_using.

    However, I have a database where procedures are in the packages and I want to know if there a way, that they can be run using enterprise Java Bean.


    See you soon.

    Published by: 893478 on October 27, 2011 05:46

    Calling stored procedures has nothing to do with the Enterprise Javabeans directly. What you want to do, is to use JDBC to create a callable statement and follow these steps:

         Connection conn = ...; // fetch from a datasource for example
         CallableStatement ps = conn.prepareCall("call PACKAGENAME.PROCEDURENAME(?,?,?)");
    
          ps.setString(1, "InputParam1");
          ps.setString(2, "InputParam2");
          ps.registerOutParameter(3, java.sql.Types.VARCHAR);
    
          ps.execute();
          String res = ps.getString(3);
    

    This example accepts two input parameters and an output parameter. Adapt to your own needs. And don't forget to add exceptions and a finally clause in which you close the statement and connection.

  • Unable to start process manager Oracle OBIEE windows services

    Hello

    I have OBIEE 11 g installed on a 32-bit windows machine. The two windows services installed, I am unable to start the Oracle process manager. When I try to launch it I get the following error:
    Error 1053: The service did not demand launch or timely control.

    In the end, this service call the file opmn.exe which is located at MIDDLEWAREHOME\Oracle_BI1\opmn\bin. Trying to run this file is the error we get:
    The procedure entry point longjmp could not be located in the dynamic link library orauts.dll

    I tried to replace the orauts.dll file, but in vain.

    Please let me know if you have any idea about what needs to be done.

    Thank you
    Naman

    Hi Naman,

    Please delete. It is the cause of this problem. Make sure that you have only one way at Oracle.

    Rgds,
    DpKa

  • Integrate with eBusiness Suite Oracle OBIEE

    Hello

    I have OBIEE running on a data warehouse that contains an Oracle 11 g server. I would like to integrate with Oracle Financials OBIEE, how can this be achieved. Is the source of data must be defined somewhere?

    Thank you

    If you have money then Oracle have "Analytical" - a product licensed for this purpose.

    If you want to do it yourself, then it's just a matter of pointing OBIEE Financials via ODBC or other appropriate (sic) adapter...

    However, you will find that as the structure of data in Navision financials is not best suited to your needs because it is a database of transactions with standardization of data...

    So before your task in the repository, you can go through a process ETL to turn the tables in the star structure which is the most suitable for OBIEE fast and flexible reports.

    A small job, it is not function of how you are trying to reach.

    Good luck!

    R.

  • Procedure runs package Help

    Hello

    I need to get familiar with the procedures and packages if I put in place the code below in a procedure to run a package, when to use the DBMS_OUTPUT procedure. Put_line to display that returns the package.

    Finally the package returns lines of our ColdFusion Oracle database.

    Could someone please help me get it going, and maybe I'll see where I am in foul territory? I think I'm close or across the universe.

    Thanks in advance for your help,

    Lou

    PROCEDURE
    create or replace
    PROCEDURE test2
    is
    TYPE my_cursor is REF CURSOR;


    BEGIN
    test1_pack.test1_proc(:my_cursor);
    LOOP
    NULL;
    -DBMS_OUTPUT. Put_line(my_c.col1 || my_c.col2);
    END LOOP;

    END test2;

    PACKAGE
    create or replace
    package test1_pack as

    TYPE test1_cursor IS REF CURSOR;

    PROCEDURE test1_proc)
    p_cursor in THE test1_cursor);

    end test1_pack;


    PACKAGE BODY
    create or replace
    package body test1_pack as

    PROCEDURE test1_proc)
    p_cursor in THE test1_cursor) as
    Start
    OPEN FOR P_cursor
    SELECT * FROM
    (SELECT 'Is' today AS "COL1", TO_CHAR (SYSDATE) AS 'COL2' FROM DUAL
    UNION ALL
    SELECT 'April', ' crazy! OF THE DOUBLE
    );
    end test1_proc;

    end test1_pack;

    Hello

    Try this:

    CREATE OR REPLACE PROCEDURE test2 IS
       TYPE my_cursor IS REF CURSOR;
       v_cursor my_cursor;
       v_col1   VARCHAR2(100);
       v_col2   VARCHAR2(100);
    BEGIN
       test1_pack.test1_proc(v_cursor);
    
       LOOP
          FETCH v_cursor
             INTO v_col1, v_col2;
          EXIT WHEN v_cursor%NOTFOUND;
          DBMS_OUTPUT.PUT_LINE(v_col1 || v_col2);
       END LOOP;
    
       CLOSE v_cursor;
    END test2;
    /
    

    Kind regards

  • If I run my query in Oracle, it runs without error, but when I run inside c# gives ORA-00911: invalid character

    I like to run below myQuery in c#, but saw the error. No idea what is the problem? If I'm running myQuery in Oracle, it runs without error. "I put all the +" before starting the myQuery line and "end of the line. but nothing changes.

    myQuery =

    with the CBC as

    (

    Select src.table_name src_table_name, src.column_name src_col_name, src.data_type src_data_type, src.data_length src_data_len, src.data_precision src_data_precision, src.data_scale src_data_scale,

    CBC. Nullable src_nullable, decode (T.Constraint_Type, 'P', 'Primary Key', 'U', 'Unique', ") as src_cons

    all_tab_columns CBC

    left join (select Cc.Column_Name, Uc.Constraint_Type

    of user_cons_columns cc, uc user_constraints

    where Cc.Constraint_Name = Uc.Constraint_Name

    and Cc.Table_Name = Uc.Table_Name) t

    on T.Column_Name = Src.Column_Name

    where table_name = 'INSTRUCTOR' and owner = "ERHAN"

    ),

    As TGT

    (

    Select tgt.table_name tgt_table_name, tgt.column_name tgt_col_name, tgt.data_type tgt_data_type, tgt.data_length tgt_data_len,

    TGT.data_precision tgt_data_precision, tgt.data_scale tgt_data_scale, tgt.nullable tgt_nullable,

    Decode (T.Constraint_Type, 'P', 'Primary Key', 'U', 'Unique', ") as tgt_cons

    from all_tab_columns tgt

    left join (select Cc.Column_Name, Uc.Constraint_Type

    of user_cons_columns cc, uc user_constraints

    where Cc.Constraint_Name = Uc.Constraint_Name

    and Cc.Table_Name = Uc.Table_Name) t

    on T.Column_Name = TGT. Column_Name

    where table_name = 'INSTRUCTOR' and owner = "SARIGUL"

    ),

    col_details as

    (

    Select src.src_table_name, nvl (tgt.tgt_table_name, first_value (tgt_table_name) more (order of nulls last tgt_table_name)) tgt_table_name;

    SRC.src_col_name, src.src_data_type, src.src_data_len, src.src_data_precision, src.src_data_scale, src.src_nullable, src_cons,

    TGT.tgt_col_name, tgt.tgt_data_type, tgt.tgt_data_len, tgt.tgt_data_precision, tgt.tgt_data_scale, tgt.tgt_nullable, tgt_cons

    the CBC

    outer join full tgt

    on)

    SRC.src_col_name = tgt.tgt_col_name

    )

    )

    Select *.

    de)

    Select the case sensitive option

    When tgt_data_type! = src_data_type or tgt_data_len! = src_data_len or tgt_data_precision! = src_data_precision or tgt_data_scale! = src_data_scale or tgt_nullable! = src_nullable

    then 'alter table ' | tgt_table_name | 'Edit ' | tgt_col_name | ' ' || src_data_type | ' ' ||

    -case when src_data_type null ('DATE') then

    on the other

    case

    When src_data_type in ('VARCHAR', 'VARCHAR2')

    then ' (' |) NVL (to_char (src_data_len), ' ') | ') '

    otherwise decode (nvl (src_data_precision-1),-1, null, nvl (to_char (src_data_precision), ' ') |) ', ' || NVL (to_char (src_data_scale), ' ') | ')')

    end

    end

    ||

    cases where tgt_nullable = 'Y' then 'null '.

    of another end 'not null '.

    || tgt_cons

    When tgt_col_name is null

    then 'alter table ' | tgt_table_name | 'Add ' | src_col_name | ' ' ||  ' ' || ' ' || src_data_type | ' ' ||

    -case when src_data_type null ('DATE') then

    on the other

    case

    When src_data_type in ('VARCHAR', 'VARCHAR2')

    then ' ('| nvl (to_char (src_data_len), ' ') |) ') '

    otherwise decode (nvl (src_data_precision-1),-1, null, nvl (to_char (src_data_precision), ' ') |) ', ' || NVL (to_char (src_data_scale), ' ') | ')')

    end

    end

    || tgt_cons

    When src_col_name is null

    then 'alter table' | tgt_table_name: ' drop '. tgt_col_name

    end alter_statement

    of col_details

    )

    where alter_statement is not null;

    using (OracleConnection conn1 = new OracleConnection (connectionString))

    {

    conn1. Open();

    Dim myQuery = "";

    using (OracleCommand = new OracleCommand (myQuery, conn1) crtCommand)

    {

    richTextBox1.AppendText (output);

    richTextBox1.AppendText (crtCommand.ExecuteNonQuery (). (ToString());

    richTextBox1.AppendText (output);

    }

    }

    VR;

    myQuery=
    @"with src as
    (
    ...
    ";
    

    That means a @ before the beginning of a string literal mean? -C# Foire - Site Home - MSDN Articles

    as an example

    OracleCommand cmd = con.CreateCommand();
    cmd.CommandText = @"begin apps.mo_global.init('SQLAP'); begin apps.fnd_global.apps_initialize(5710, 20639, 200); end; end;";
    cmd.ExecuteNonQuery();
    

    richTextBox1.AppendText (crtCommand.ExecuteNonQuery (). (ToString());                            

    is this correct? Not sure

    as example try

     using (OracleConnection conn1 = new OracleConnection(connectionString))
    {
        conn1.Open();
    
        string myQuery = "......";                  
    
        using (OracleCommand crtCommand = new OracleCommand(myQuery, conn1))
            {
                richTextBox1.AppendText(Environment.NewLine);
                // richTextBox1.AppendText(crtCommand.ExecuteNonQuery().ToString());
    
    OracleDataReader reader = crtCommand.ExecuteReader();
    while (reader.Read())
      {
        richTextBox1.AppendText(reader.GetString(0));
        // may be also
        // richTextBox1.AppendText(Environment.NewLine);
      }
    
                richTextBox1.AppendText(Environment.NewLine);
    
            reader.Dispose();
            cmd.Dispose();
            }
    
        con.Dispose();
    }
    
  • Error ORA-00979 when you run the SQL in Oracle 11.2.0.3

    Hi Oracle Experts,


    I am trying to execute a SQL statement which consist of 2-3 levels of inline queries. Part of this SQL statement is as below:
    SELECT
          "SAMPLE_RESULT"."PROPERTYID",
          "SAMPLE_RESULT"."QUALIFIER",
          ROUND(AVG(SAMPLE_RESULT.RESULT),2) avg_result,
          AVG(DECODE(SAMPLE.QUALITYSTATUS, 'P', 1,'F', 5)) qltystatus,
          TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy') sampledt,
          TO_CHAR("SAMPLE"."SAMPLEDT",'rrrr-mm-dd') sortdate
          STD.stdev,
          getCL.cl
        FROM
          (
            SELECT
              ROUND(stddev(INS.avg_result),2) stdev
            FROM
              (
                SELECT
                  "SAMPLE_RESULT"."PROPERTYID",
                  "SAMPLE_RESULT"."QUALIFIER",
                  ROUND(AVG(SAMPLE_RESULT.RESULT),2) avg_result,
                  AVG(DECODE(SAMPLE.QUALITYSTATUS, 'P', 1,'F', 5)) qltystatus,
                  TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy') sampledt
                FROM
                  "SAMPLE",
                  "SAMPLE_RESULT",
                  "ACTIVITY"
                WHERE
                  (
                    "SAMPLE"."SAMPLEID" = "SAMPLE_RESULT"."SAMPLEID"
                  )
                AND
                  (
                    "SAMPLE_RESULT"."TESTINSTANCE" = fn_max_instance (
                    sample.sampleid, sample_result.testid, sample_result.propertyid
                    )
                  )
                AND
                  (
                    "SAMPLE"."ACTIVITYID" = "ACTIVITY"."ACTIVITYID"
                  )
                AND
                  (
                    ACTIVITY.VARIANTID IN ('Sales Gas','Contaminants End')
                  )
                AND
                  (
                    ACTIVITY.LOCATIONID = 'S-5003C'
                  )
                AND
                  (
                    SAMPLE.EVENTID <> 'AD-HOC'
                  )
                AND
                  (
                    "SAMPLE"."SAMPLESTATUS" = 'L'
                  )
                AND
                  (
                    TO_DATE(TO_CHAR(SAMPLE.SAMPLEDT,'dd-mon-yyyy')) BETWEEN TO_DATE
                    (TO_CHAR(:StartDate,'dd-Mon-RRRR')) AND TO_DATE(TO_CHAR(
                    :StartDate,'dd-Mon-RRRR')) + 6
                  )
                AND
                  (
                    SAMPLE_RESULT.PROPERTYID = 'GCV'
                  )
                GROUP BY
                  SAMPLE_RESULT.PROPERTYID,
                  SAMPLE_RESULT.QUALIFIER,
                  TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy')
              )
              INS
          )
          STD,
          (
            SELECT
              ROUND(AVG(INS.avg_result),2) cl
            FROM
              (
               SELECT
                  "SAMPLE_RESULT"."PROPERTYID",
                  "SAMPLE_RESULT"."QUALIFIER",
                  ROUND(AVG(SAMPLE_RESULT.RESULT),2) avg_result,
                  AVG(DECODE(SAMPLE.QUALITYSTATUS, 'P', 1,'F', 5)) qltystatus,
                  TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy') sampledt
                FROM
                 "SAMPLE",
                  "SAMPLE_RESULT",
                  "ACTIVITY"
                WHERE
                  (
                    "SAMPLE"."SAMPLEID" = "SAMPLE_RESULT"."SAMPLEID"
                  )
                AND
                  (
                    "SAMPLE_RESULT"."TESTINSTANCE" = fn_max_instance (
                    sample.sampleid, sample_result.testid, sample_result.propertyid
                    )
                  )
                AND
                  (
                    "SAMPLE"."ACTIVITYID" = "ACTIVITY"."ACTIVITYID"
                  )
                AND
                  (
                    ACTIVITY.VARIANTID IN ('Sales Gas','Contaminants End')
                  )
                AND
                  (
                    ACTIVITY.LOCATIONID = 'S-5003C'
                  )
                AND
                  (
                    SAMPLE.EVENTID <> 'AD-HOC'
                  )
                AND
                  (
                    "SAMPLE"."SAMPLESTATUS" = 'L'
                  )
                AND
                  (
                    TO_DATE(TO_CHAR(SAMPLE.SAMPLEDT,'dd-mon-yyyy')) BETWEEN TO_DATE
                    (TO_CHAR(:StartDate,'dd-Mon-RRRR')) AND TO_DATE(TO_CHAR(
                    :StartDate,'dd-Mon-RRRR')) + 6
                  )
                AND
                  (
                    SAMPLE_RESULT.PROPERTYID = 'GCV'
                  )
                GROUP BY
                  SAMPLE_RESULT.PROPERTYID,
                  SAMPLE_RESULT.QUALIFIER,
                  TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy')
              )
              INS
    
          )
          getCL,
          "SAMPLE",
          "SAMPLE_RESULT",
          "ACTIVITY"
        WHERE
          (
            "SAMPLE"."SAMPLEID" = "SAMPLE_RESULT"."SAMPLEID"
          )
        AND
          (
            "SAMPLE_RESULT"."TESTINSTANCE" = fn_max_instance (sample.sampleid,
            sample_result.testid, sample_result.propertyid)
          )
        AND
          (
            "SAMPLE"."ACTIVITYID" = "ACTIVITY"."ACTIVITYID"
          )
        AND
          (
            ACTIVITY.VARIANTID IN ('Sales Gas','Contaminants End')
          )
        AND
          (
            ACTIVITY.LOCATIONID = 'S-5003C'
          )
        AND
          (
            SAMPLE_RESULT.PROPERTYID IN ('GCV','SG','T. Sulphur','Dew Point',
            'HC Dew Pts')
          )    
        AND
          (
           TO_DATE(TO_CHAR(SAMPLE.SAMPLEDT,'dd-mon-yyyy')) BETWEEN TO_DATE(TO_CHAR
            (:StartDate,'dd-Mon-RRRR')) AND TO_DATE(TO_CHAR(:StartDate,
            'dd-Mon-RRRR')) + 6
          )
        GROUP BY "SAMPLE_RESULT"."PROPERTYID", "SAMPLE_RESULT"."QUALIFIER", TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy'), TO_CHAR("SAMPLE"."SAMPLEDT",'rrrr-mm-dd'),
        
          STD.stdev,
          getCL.cl
      )
    When I run the level the lowest and second lowest level inline queries statements, which consists of a select field of data and functions, there is no error and capable of generating the result.

    But when I run the statement which refer to the alias of queries inline (STD, getCL), it prompted an error ORA-00979 not a group by expression. This happened only Oracle 11.2.0.3. If I run the statement in another version of Oracle (11 GR 1 material and below), I am able to generate the result.

    Please advice how can I fix this problem.

    Published by: xysOra on 29 April 2013 19:37

    It seems that this should be the "SAMPLE" TO_CHAR conversions "" SAMPLEDT ".

    You seem to be willing to cut the time part of SAMPLEDT. The best way to do so is TRUNC (SAMPLEDT).

    In each of the groups of clauses, replace TO_CHAR ('SAMPLE'. ("' SAMPLEDT ', 'dd-Mon-yyyy') with TRUNC ('SAMPLE'. (' "SAMPLEDT") and completely remove the TO_CHAR ('SAMPLE'. ("' SAMPLEDT ',"dd-mm-rrrr") in the last group of.

    Replace in selection lists, TO_CHAR ('SAMPLE'. ("' SAMPLEDT ', 'dd-Mon-yyyy') with TO_CHAR (TRUNC ('SAMPLE'. ((' ' SAMPLEDT '), 'dd-Mon-yyyy') and replace TO_CHAR ("SAMPLE". "SAMPLEDT", "dd-mm-rrrr") with TO_CHAR (TRUNC ("SAMPLE" ".")) " "" "SAMPLEDT"), "dd-mm-rrrr").

    These changes can take you the ORA-00979 not one group by expression.

    Also the date manipulation is wrong — you do implicit conversions to date using default formats, when what you seem to want is to truncate the time part. Instead of

     TO_DATE(TO_CHAR(SAMPLE.SAMPLEDT,'dd-mon-yyyy')) BETWEEN TO_DATE(TO_CHAR
            (:StartDate,'dd-Mon-RRRR')) AND TO_DATE(TO_CHAR(:StartDate,
            'dd-Mon-RRRR')) + 6
    

    use

     TRUNC(SAMPLE.SAMPLEDT) BETWEEN TRUNC(:StartDate) AND TRUNC(:StartDate) + 6
    

    I hope this helps.
    David

  • Oracle + OBIEE card generator

    Hello

    "I created a theme geometry in MapBuilder one tile of Google Maps and I can't use OBIEE because I get the following error when I try to import the layer: + ' drop-down key to layer a empty columns. Please check the theme definition in Oracle Mapbuilder. "+ - What can anyone help me with a solution or suggestion about this?

    Thanks in advance.

    William

    Published by: Joseph on 10/05/2012 19:24

    It's a cache problem and I do not remember where is the cache.

    What you can try is:
    -Remove your layer
    -Restart OBI
    -Import your layer

    See you soon
    Nico

Maybe you are looking for

  • time to download app

    HHello here. I downloaded the clash of clans a few days ag. Now I have a problem with the same and contacted develop. They asked as to when downloaded the application. How can I find when done, I downloaded the application?

  • Why can I not see my files or files on my flash drive?

    I bought a 64 GB USB flash drive to make a copy of some files (mainly of the wavs and mp3s into folders and subfolders several).  I drag some of them in the flash player and wait until the bar fills and the 'task' was over.  At this point, I can see

  • DesignJet 2500cp main engine belt

    Any solution to replace the small belt, since HP offers no support more and makes this unusable printer

  • Send list drop-down page or a link in the page not activated

    By clicking on the Page button and access the drop-down list the link send the list and send the page options are not enabled. I can add to the toolbar, but why they are not activated as they once used to be?

  • force the close application

    How can I force close an appliction of blackberry? Basically when I run my application it runs but to hngs after awhile and it makes the crash of Simulator I can't stop crashing Simulator? and the Simulator just don't close immediately takes too long