SQL generated with column__1 alias

hi..
i running a report in webi.
SELECT
  PUB.unidonem.yil AS Column__1,
  SUM(PUB.unibutcealim.adet),
  Sum(PUB.unibutcealim.tutar)
GROUP BY
  Column__1
but i dont want column__1...and i dont know why şs generated??
any suggestions?
thanks.
( i know the custum sql and its ok.. but not enough for me)

Hi,
Ok, so now i understand you are creating a new Measure in the universe, and testing it in webi,
Here's some background info on your error: http://databases.aspfaq.com/database/what-does-ambiguous-column-name-mean.html
This typically happens when the Select statement has the same name for more than 1 column. So Alias Names need to be setup to ensure unique column names.
There are so many factors that could be at play here..  Your investigation is a a good condidate for a Support Message. Please log an OSS via SMP.
1. Given that this is a Progress DB (generic odbc), you may need some SQL Parameters, or .sbo / .prm file modifications in the DataAccess layer, or some ANSI indetifiers need to be set ..  (Relevant guide is here: http://help.sap.com/businessobject/product_guides/boexir31SP3/en/xi31_sp3_data_acs_en.pdf )
2. You might also be interested in Note 1265192 - Web Intelligence Objects Causing Split Queries (missing context)
3. You might also want to check that there aren't Row Level restrictions ontop of your user groups, which may affect SQL generation.
Apologies I cannot do more at this stage.
Regards,
H

Similar Messages

  • Radio button on a from generated with PL/SQL procedure

    Hi,
    I have a form generated with PL/SQL procedure. This procedure calls another procedure on 'Submit'. If I select value for the radio button, it works fine. But if no value is given to the radio button on the form, it gives error. Is the radio button mandatory field by nature? or do I need to give default value some how? How do I make the radio button optional? so that I can call the next procedure without passing the param.
    Create or Replace PROCEDURE OBM_PROCEDURE
    htp.formOpen(OWA_UTIL.GET_OWA_SERVICE_PATH || 'process_obm');
    htp.Print('Admin ');
    htp.FormRadio('p_access_level','A');
    htp.Print('Doc ');
    htp.FormRadio('p_access_level','D');
    htp.formSubmit(cname=>'p_button', cvalue=> 'Submit');
    =================================================================
    Create or Replace PROCEDURE PROCESS_OBM
    (p_access_level VARCHAR2,
    p_button VARCHAR2)
    htp.Print('p_access_level ');
    Thanks!

    Hi
    The parameters of the called procedure should have defualt values like this
    create or Replace PROCEDURE PROCESS_OBM
    (p_access_level VARCHAR2 default 1,
    p_button VARCHAR2 default null
    htp.Print('p_access_level ');
    Thanks,
    sharmila

  • 7000 : null : java.sql.SQLException: Invalid COL ALIAS

    I added few fields to the target datastore (File datastore) and mapped these fields to the already existing source datastore in the interface diagram. Creating a flat file from the source tables(oracle). After Re-generated the package and ran the package, getting the error '7000 : null : java.sql.SQLException: Invalid COL ALIAS'. I checked the alias and mapping and they look fine. Am I missing something here. Appreciate a quick response.
    Thanks in advance,
    RP

    Thanks Phani for the response. The problem is solved when I changed target field names. I had some fields with '-' and when I replaced them by '_' (underscore) it ran successfully.
    Thanks again.
    RP

  • SQL query with JSP and WML-parameters

    Hey,
    Could you help me?
    I'm trying to do the following. WML deck card 1 send parameter to same WML deck's card help. I try to read the parameter with JSP in card help by putting the parameter to SQL query, but it doesn't work. I can read the parameter with WML in card help. I can also print the value of the parameter with JSP if I generate WML with JSP.
    /*parameter sending from card 1 to card help*/
    out.println("<go href='#helpcard'>");
    out.println("<setvar name='valittukurssi' value='$(valittukurssi)'/>");
    /*parameter read with WML in card help */
    <p>Valitse kurssi.
    $valittukurssi</p>
    /'parameter read with JSP by generating WML with JSP*/
    out.println("<p>$valittukurssi</p>");
    /* SQL query with JSP */
    ResultSet uudettulokset = uusilause.executeQuery("select * from kurssi where lyhenne='$valittukurssi'");
    Thanks,
    Rampe

    You're problem is easy to fix. You're confusing WML variables with JSP variables. See below:
    >
    /*parameter sending from card 1 to card help*/
    out.println("<go href='#helpcard'>");
    out.println("<setvar name='valittukurssi'
    value='$(valittukurssi)'/>");
    Above you set a var that will work on the phone, not in JSP.
    /*parameter read with WML in card help */
    <p>Valitse kurssi.
    $valittukurssi</p>
    Yes the above does display the parameter, because it is a client side WML var, but you cannot use this variable in the JSP code (that's why your SWL fails).
    /'parameter read with JSP by generating WML with
    JSP*/
    out.println("<p>$valittukurssi</p>");Here's you're problem, the above line is EXACTLY the same as the one before it. When the container parses through this JSP code it translates the above line to:
    <p>$valittukurssi</p> on the WML page and the CLIENT uses it's local variable to display it.
    What you need and want is to have a variable that can be used in JSP code and output to your WML page. Here's how it's done:
    out.println("<go href='#helpcard'>");
    String some_name = "valittukurssi";
    out.println("<setvar name='"+some_name+"'
    value='$("+some_name+")'/>");
    //note that you may have to escape the ( and ) with a \
    //so we displayed the variable above into the WML page, now we can use it in the SQL query:
    /* SQL query with JSP */
    ResultSet uudettulokset =
    uusilause.executeQuery("select * from kurssi where
    lyhenne='"+some_name+"'");//the end of the command is: " ' " ) ;
    Frank Krul
    Got Node?

  • Problems in SQL transform with variable in statement

    Hi,
    I have an sql transform with a variable in the statement. It looks like this:
    SELECT * FROM I.X where I.X.CUSTOMERNUMBER IN ([$variable])
    I have a script running prior which sets the $variable = '\'366800\',\'000933\'';
    (the CUSTOMERNUMBER field is a string)
    The problem is when DI compiles the SQL with the variable value, it is replacing each single quote with two single quotes, and thus turning my list of values into a single string (as recognised by DB2).
    How can I work around this? The CUSTOMERNUMBER field is indexed and the table is very large, so I want to use a very efficient statement to retrieve the data. I'm inserting this data into a different database, so I can't use the sql() function to execute the query and insert the rows into a new table in the same database (don't have authority to do that).
    I also need the sql to be dynamic because the customer numbers required will change from time to time. They're listed in another database and I plan on writing a loop to set the $variable value to contain all values in the lookup table, but I can't use that in a join because its in a different database and would not be efficient.
    Does anyone have any ideas? I'm literally all out, have tried a wide range of things to no avail, and none of my colleagues can work it out either.
    Thanks very much,
    -Steve

    I assume the SQL Transform is used only because of that in-list, not for other reasons....
    In this book page here: https://boc.sdn.sap.com/node/20046 at the very bottom it isdescribed on how to use the pushdown_sql() function in a where clause to add *any* text of your choice into the select statement DI generates. In this example I used a "where exists" but you can easily change the text to
    where key=5 and       pushdown_sql('my_datastore', 'CUSTOMERNUMBER IN ([$variable])')    and gender='M'
    I used the key=5 and gender=M just to clarify the syntax (I hope).
    For the SQL Transform, I wonder if you need the [$variable] syntax as well....

  • Invalid SQL generated for count query.

    A SQL statement was generated with the table name information missing when
    a count SQL query was issued (e.g. SELECT COUNT(*) FROM WHERE <SOME
    EXPRESSION>). The same query worked fine before switching to vertical
    class mapping.
    Basically no queries work with the result set to "count(this)". The
    temporary work-around was to retrieve the collection and get the size. I
    would rather not have to do this.
    Any ideas?

    Brendan,
    What version of Kodo is this happening with? Can you send a test case
    demonstrating this to [email protected]?
    -Patrick
    Brendan Brothers wrote:
    A SQL statement was generated with the table name information missing when
    a count SQL query was issued (e.g. SELECT COUNT(*) FROM WHERE <SOME
    EXPRESSION>). The same query worked fine before switching to vertical
    class mapping.
    Basically no queries work with the result set to "count(this)". The
    temporary work-around was to retrieve the collection and get the size. I
    would rather not have to do this.
    Any ideas?

  • How can I install WEB PL/SQL Generator?

    When I running "Install Web PL-SQL Generator",I got the following errors:
    Someone help me, please!
    No errors.
    No errors.
    Package wsglm...
    Input truncated to 11 characters
    No errors.
    Package wsgjsl...
    No errors.
    Package wsgfl...
    No errors.
    Package wsgl...
    Warning: Package created with compilation errors.
    Errors for PACKAGE WSGL:
    LINE/COL ERROR
    62/22 PLS-00201: identifier 'OWA.VC_ARR' must be declared
    62/22 PL/SQL: Declaration ignored
    63/22 PLS-00201: identifier 'OWA_TEXT.VC_ARR' must be declared
    63/22 PL/SQL: Declaration ignored
    Package body wsgjsl...
    Warning: Package Body created with compilation errors.
    Errors for PACKAGE BODY WSGJSL:
    LINE/COL ERROR
    280/7 PL/SQL: Statement ignored
    311/53 PLS-00905: object OWNER.WSGL is invalid
    334/7 PL/SQL: Statement ignored
    344/17 PLS-00905: object OWNER.WSGL is invalid
    472/7 PL/SQL: Statement ignored
    493/31 PLS-00905: object OWNER.WSGL is invalid
    813/10 PL/SQL: Statement ignored
    813/22 PLS-00905: object OWNER.WSGL is invalid
    828/10 PL/SQL: Statement ignored
    828/22 PLS-00905: object OWNER.WSGL is invalid
    843/10 PL/SQL: Statement ignored
    843/22 PLS-00905: object OWNER.WSGL is invalid
    852/10 PL/SQL: Statement ignored
    852/22 PLS-00905: object OWNER.WSGL is invalid
    861/10 PL/SQL: Statement ignored
    861/22 PLS-00905: object OWNER.WSGL is invalid
    884/10 PL/SQL: Statement ignored
    884/22 PLS-00905: object OWNER.WSGL is invalid
    960/3 PL/SQL: Statement ignored
    960/15 PLS-00201: identifier 'HTF.ESCAPE_SC' must be declared
    Package body wsgl...
    Warning: Package Body created with compilation errors.
    Errors for PACKAGE BODY WSGL:
    LINE/COL ERROR
    0/0 PL/SQL: Compilation unit analysis terminated
    1/14 PLS-00905: object OWNER.WSGL is invalid
    1/14 PLS-00304: cannot compile body of 'WSGL' without its
    specification
    Package body wsgfl...
    No errors.
    No errors.
    No errors.
    No errors.
    Warning: Package Body created with compilation errors.
    Errors for PACKAGE BODY WSGMC_OUTPUT1:
    LINE/COL ERROR
    49/4 PLS-00201: identifier 'HTP.P' must be declared
    49/4 PL/SQL: Statement ignored
    51/7 PLS-00201: identifier 'HTP.P' must be declared
    51/7 PL/SQL: Statement ignored
    53/10 PLS-00201: identifier 'HTP.P' must be declared
    53/10 PL/SQL: Statement ignored
    60/4 PLS-00201: identifier 'HTP.P' must be declared
    60/4 PL/SQL: Statement ignored
    Warning: Package Body created with compilation errors.
    Errors for PACKAGE BODY WSGMC_OUTPUT2:
    LINE/COL ERROR
    36/13 PLS-00201: identifier 'HTP.P' must be declared
    36/13 PL/SQL: Statement ignored
    42/10 PLS-00201: identifier 'HTP.P' must be declared
    42/10 PL/SQL: Statement ignored
    48/13 PLS-00201: identifier 'HTP.P' must be declared
    48/13 PL/SQL: Statement ignored
    53/16 PLS-00201: identifier 'HTP.P' must be declared
    53/16 PL/SQL: Statement ignored
    59/13 PLS-00201: identifier 'HTP.P' must be declared
    59/13 PL/SQL: Statement ignored
    64/10 PLS-00201: identifier 'HTP.P' must be declared
    64/10 PL/SQL: Statement ignored
    70/13 PLS-00201: identifier 'HTP.P' must be declared
    70/13 PL/SQL: Statement ignored
    87/28 PLS-00201: identifier 'HTP.BR' must be declared
    87/28 PL/SQL: Statement ignored
    92/25 PLS-00201: identifier 'HTP.P' must be declared
    92/25 PL/SQL: Statement ignored
    99/13 PLS-00201: identifier 'HTP.P' must be declared
    99/13 PL/SQL: Statement ignored
    The following synonyms already exist. Please check that they are valid:
    OWA
    OWA_UTIL
    OWA_COOKIE
    OWA_IMAGE
    OWA_INIT
    OWA_OPT_LOCK
    OWA_PATTERN
    OWA_SEC
    OWA_TEXT
    HTP
    HTF
    CG$ERRORS
    WSGL
    WSGJSL
    WSGLM
    WSGFL
    Webserver Generator Compilation Report
    NAME TY LINE COL TEXT
    WSGJSL PB 311 53 PLS-00905: object OWNER.WSGL is invalid
    280 7 PL/SQL: Statement ignored
    344 17 PLS-00905: object OWNER.WSGL is invalid
    334 7 PL/SQL: Statement ignored
    493 31 PLS-00905: object OWNER.WSGL is invalid
    472 7 PL/SQL: Statement ignored
    813 22 PLS-00905: object OWNER.WSGL is invalid
    813 10 PL/SQL: Statement ignored
    828 22 PLS-00905: object OWNER.WSGL is invalid
    828 10 PL/SQL: Statement ignored
    843 22 PLS-00905: object OWNER.WSGL is invalid
    843 10 PL/SQL: Statement ignored
    852 22 PLS-00905: object OWNER.WSGL is invalid
    852 10 PL/SQL: Statement ignored
    861 22 PLS-00905: object OWNER.WSGL is invalid
    861 10 PL/SQL: Statement ignored
    884 22 PLS-00905: object OWNER.WSGL is invalid
    884 10 PL/SQL: Statement ignored
    960 15 PLS-00201: identifier 'HTF.ESCAPE_SC' must be
    declared
    NAME TY LINE COL TEXT
    WSGJSL PB 960 3 PL/SQL: Statement ignored
    WSGL PA 62 22 PLS-00201: identifier 'OWA.VC_ARR' must be
    CK declared
    AG
    E
    62 22 PL/SQL: Declaration ignored
    63 22 PLS-00201: identifier 'OWA_TEXT.VC_ARR' must be
    declared
    63 22 PL/SQL: Declaration ignored
    PB 1 14 PLS-00905: object OWNER.WSGL is invalid
    1 14 PLS-00304: cannot compile body of 'WSGL' without
    its specification
    0 0 PL/SQL: Compilation unit analysis terminated
    null

    Hi,
    Is necesary install XDB?
    Because i have executed;
    select * from dba_registry
    where COMP_ID = 'XDB'
    Oracle XML Database
    Regards

  • SEQUENCE Select within an SQL Query with an ORDER BY statement

    Does anyone know why you cannot use an ORDER BY statement within an SQL query when also selecting from a SEQUENCE? My query was selecting production data as a result of a filtered search. I want to take the results of the filtered search and create a transaction. I have a sequence for generating transaction numbers where I select NEXTVAL. Since I could possibly obtain multiple, yet distinct, rows based upon my search criteria, I wanted to use an ORDER BY statement to simplify and order the resulting row(s).
    I was able to get the SQL select with SEQUENCE.NEXTVAL to work without the ORDER BY, so I know that my SQL is correct. Thanks in-advance.

    Okay,
    I understand. You want the sequence assigned first and the you want to ORDER BY. You
    can do this using pipelined functions. See here:
    CREATE OR REPLACE TYPE emp_rec_seq AS OBJECT (
       seq     NUMBER,
       ename   VARCHAR2 (20),
       job     VARCHAR2 (20),
       sal     NUMBER
    CREATE OR REPLACE TYPE emp_tab_seq AS TABLE OF emp_rec_seq;
    CREATE OR REPLACE FUNCTION get_emp_with_sequence
       RETURN emp_tab_seq PIPELINED
    IS
       my_record   emp_rec_seq := emp_rec_seq (NULL, NULL, NULL, NULL);
    BEGIN
       FOR c IN (SELECT dummy.NEXTVAL seq, ename, job, sal
                   FROM emp)
       LOOP
          my_record.seq := c.seq;
          my_record.ename := c.ename;
          my_record.job := c.job;
          my_record.sal := c.sal;
          PIPE ROW (my_record);
       END LOOP;
       RETURN;
    END get_emp_with_sequence;after that, you can do a select like this:
    SELECT seq, ename, job, sal
      FROM TABLE (get_emp_with_sequence)
      order by enamewhich will get you this:
           SEQ ENAME                JOB                         SAL
          1053 BLAKE                MANAGER                    2850
          1054 CLARK                MANAGER                    2450
          1057 FORD                 ANALYST                    3000
          1062 JAMES                CLERK                       950
          1055 JONES                MANAGER                    2975
          1052 KING                 MANAGER                   20000
          1060 MARTIN               SALESMAN                   1250
          1063 MILLER               CLERK                      1300
          1064 DKUBICEK             MANAGER                   12000
          1056 SCOTT                ANALYST                    3000
          1058 SMITH                CLERK                       800
          1061 TURNER               SALESMAN                   1500
          1059 WARD                 SALESMAN                   1250Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • SQL statement with union clause

    Hi,
    I have a scenario where i need to generate a sql statement with UNION .
    Eg:
    SELECT B.YY_ID,
    FROM XXXX.YY B
    WHERE (B.YY_TY= 'as')
    UNION
    SELECT B.YY_ID
    FROM XXXX.YY_ALT_NAME A, XXXX.YY B
    WHERE (A.YY_TY= 'zx'
    AND (B.YY_ID=A.YY_ID)"
    I tried ns1:table1() union ns3:table2() in XQuery.
    But it is pushdown as 2 seperate sqls.
    Is it possible to create XQuery that pushdown as SINGLE SQL statement with union clause ?
    Thanks

    No. See 3.1.1.5 in the document I referenced in your previous post.

  • SQL Report with Scroll - javascript

    This is an example of Apex SQL Report with Scroll - made with javascript: http://tryapexnow.com/apex/f?p=12090:9
    Waiting for comments here.

    Yes, because of the page generated by APEX, if you use the Report Template APEX 4.0 Standard, the div created for the report table has the ID "with_scroll" but there is another div which actually contains the table, and it's ID is "report_with_scroll", they just add a "report_" in front of it.
    I find the table by searching through the childs of that div: var table = document.getElementById(myRegion).rows[1].cells[0].firstChild;
    You can use the first one, with the ID "with_scroll", but this code line will be longer.
    Also to addapt the script for other report templates, you just need to see the code generated by every template, and correct this line, to get the real table containing your report.

  • [NQQuery log]: Physical SQL generated agaisnt 2 Database in OBIEE 11g

    Hi Experts,
    I have a problem regarding the physical SQL generated by Query log.
    So this is the setup.
    SCENARIO 1:
    Oracle Data Warehouse DB
    - col1
    - col2
    - col3
    OLAP_OBIEE
    - col4
    When I run these columns together in Analysis. It seems like the physical SQL generated in the Query log is partitioned with each other and I cant get the exact SQL so I can make comparison with the total record count in Analysis UI and the SQL developer.
    select col1, col2, col3 from Oracle Data Warehouse tables
    select col4 from OLAP_OBIEE tables
    ================================================================
    SCENARIO 2:
    Oracle Data Warehouse DB
    - col1
    - col2
    - col3
    - col4
    Running these columns together in Analysis. I am wondering why the physical SQL is somewhat also partitioned just like in SCENARIO 1.
    select col1, col2, col3 from Oracle Data Warehouse tables
    select col4 from Oracle Data Warehouse tables
    Hope that you get what am I trying to say. :(
    Thanks,
    Edited by: OBIEE/BIP Forumer on Oct 29, 2012 1:27 AM
    Edited by: OBIEE/BIP Forumer on Oct 29, 2012 1:27 AM

    Hi Maqsoon,
    Sorry for the confusion, in my Analysis report, I have a report where it generates 2 physical SQL in one Database, also I have a report where it uses 2 Database which also generates 2 physical SQL.
    Below is the SQl generated in my Analysis report using 1 Database
    select count(distinct case when T68197.OPTY_WID > 0 then concat(T67058.INTEGRATION_ID, cast(T67058.DATASOURCE_NUM_ID as CHARACTER ( 30 ) )) end ) as c1,
    T67058.OPTY_O_REVN as c2,
    T67365.CUST_VALUE_NAME as c3,
    T157680.NAME as c4,
    T157680.INTEGRATION_ID as c5
    from
    W_OPTY_D T67058 /* Dim_W_OPTY_D */ ,
    W_REVN_F T68197 /* Fact_W_REVN_F */ ,
    W_PARTY_D T157680,
    W_PARTY_ORG_D T67365
    where ( T67058.ROW_WID = T68197.OPTY_WID and T67365.ROW_WID = T157680.PARTY_ORG_WID and T68197.PR_CUSTOMER_WID = T157680.ROW_WID )
    group by T67058.OPTY_O_REVN, T67365.CUST_VALUE_NAME, T157680.NAME, T157680.INTEGRATION_ID
    order by c5, c2
    [2012-10-30T11:44:39.000+00:00] [OracleBIServerComponent] [TRACE:2] [USER-18] [] [ecid: 352c537d7893ee94:-5718ddd6:13aaccb7670:-8000-0000000000005c50] [tid: f650d700] [requestid: 45ca0005] [sessionid: 45ca0000] [username: joshua.l.manego.iii] -------------------- Sending query to database named Oracle Data Warehouse (id: <<1201371>>), connection pool named Oracle Data Warehouse Connection Pool, logical request hash edb0c7c0, physical request hash 87553d2a: [[
    select sum(D1.c1) over (partition by D1.c4, D1.c2) as c1,
    D1.c2 as c2,
    D1.c3 as c3,
    D1.c4 as c4,
    sum(D1.c5) over (partition by D1.c6, D1.c4, D1.c2) as c5,
    D1.c6 as c6
    from
    (select count(T84444.ORDER_WID) as c1,
    T67365.CUST_VALUE_NAME as c2,
    T157680.NAME as c3,
    T157680.INTEGRATION_ID as c4,
    sum(T84444.ORDER_NRC) as c5,
    T67058.OPTY_O_REVN as c6
    from
    W_OPTY_D T67058 /* Dim_W_OPTY_D */ ,
    W_PARTY_ORG_D T67365,
    W_ORDER_F T84444 /* Fact_W_ORDER_F */ ,
    W_PARTY_D T157680
    where ( T67058.ROW_WID = T84444.OPTY_WID and T67365.ROW_WID = T157680.PARTY_ORG_WID and T84444.CUSTOMER_WID = T157680.ROW_WID )
    group by T67058.OPTY_O_REVN, T67365.CUST_VALUE_NAME, T157680.NAME, T157680.INTEGRATION_ID
    ) D1
    order by c4, c6
    Below is the physical SQL that uses 2 Database
    select T68071.QUOTE_NUM as c1,
    T116081.CURRENT_BASE_POSTN as c2,
    T66755.PER_NAME_MONTH as c3,
    T68071.STATUS_I as c4,
    T68071.QUOTE_TYPE_I as c5,
    T68071.SUB_TYPE_I as c6,
    T84523.ROW_WID as c7
    from
    W_POSITION_D T74722 /* Dim_W_POSITION_D */ ,
    W_QUOTE_D T68071 /* Dim_W_QUOTE_D */ ,
    W_QUOTE_F T84523 /* Fact_W_QUOTE_F */ ,
    W_DAY_D T66755 /* Dim_W_DAY_D_Common */ ,
    W_POSITION_DH T116081 /* Dim_W_POSITION_DH_Position_Hierarchy */
    where ( T66755.ROW_WID = T84523.OPEN_DT_WID and T68071.ROW_WID = T84523.QUOTE_WID and T74722.ROW_WID = T84523.PR_EMP_POS_WID and T74722.ROW_WID = T116081.POSITION_WID and T84523.PR_EMP_POSTN_DH_WID = T116081.ROW_WID )
    order by c7
    [2012-10-30T11:51:42.000+00:00] [OracleBIServerComponent] [TRACE:2] [USER-18] [] [ecid: 352c537d7893ee94:-5718ddd6:13aaccb7670:-8000-0000000000005cb8] [tid: f61fc700] [requestid: 45ca0007] [sessionid: 45ca0000] [username: joshua.l.manego.iii] -------------------- Sending query to database named OLAP_OBIEE (id: <<1204144>>), connection pool named Connection Pool, logical request hash c180fd3b, physical request hash a2e8b0d6: [[
    select T315910.NIVEL_APPROVACAO as c1,
    T315910.ALCADA_DESCONTO as c2,
    T315910.ROW_WID as c3
    from
    W_QUOTEITEM_F T315910
    order by c3
    Based on what you said, so it is impossible to merge the physical SQL if we use 2 Database right?
    Your effort in answering to my question is much appreciated, Thank you.

  • How to migrate an existing Microsoft SSIS deployment if it is decided to replace SQL Server with an Oracle database?

    Hi Oracle Gurus!
    Currently, I am designing an ETL solution that transforms and loads a lot of data from flat files and sends it to an SQL Server 2008 R2 database for storage. However, at a future point of time, it may be decided to add or even replace SQL Server with an Oracle 11g database.
    Currently, I am writing script transforms in C# to dynamically generate SSIS packages to tansform and load the data into SQL Server. But considering that in future, an Oracle 11g or 12c database might be added to, or replace the SQL Server database, how do I make my script transforms (or whatever else I am developing currently for SQL Server) reusable to the extent possible?
    Or more precisely, what steps do I take, from an Oracle point of view, to ensure that any future migration of data to an Oracle database would be smooth to the extent possible?
    Looking up to my Oracle Gurus for enlightenment in this matter!
    Novice Kid

    When you're writing your on C# code to load data into the SQL Server you have to modify the routines so that they will work with Oracle.
    One approach is to use the extproc agent which would allow you to directly call external programs with all the logic in it to perform the load of your files and to put the data into the Oracle database. Another option would be to use utl_file package (or equivalents) which will allow you to open external files from your Oracle database and to directly read its content and then to pass it to the related tables.

  • JDEV 10.1.3 EJB 3.0 Is it a way in JDev to monitor the sql generated

    Is it a easy way to monitor/log the sql generated by top link (ejb 3.0 with top link as cmp) directly in JDeveloper (embededd oc4j)

    Deleting the bean class sources from JDev don't delete the compiled class and the wizard will add a sequential number to the entity bean name and source file. This is not very convenient. As workaround you will have to delete the class file.

  • Planning 11.1.2 with Chinese alias

    We would like to create a planning application (non unicode mode) with some Chinese alias. All the Chinese alias are display correctly in workspace, but all the Chinese alias become to "?" in EAS after we have refreshed the application to Essbase.
    The planning config is as follows:
    Server OS: Windows Server 2008 x64
    RDBMS: MS SQL Server 2008 x64
    SQL Database collation: Chinese_PRC_CI_AI
    Planning & Essbase version: 11.1.2
    esslang: SimplifiedChinese_China.MS936@Binary
    Does anyone know how to fix this issue?
    Please let me know the proper steps to create a planning application with Chinese alias
    How can we change the Planning locale, current setting is "en_US"
    Thanks

    Hi,
    The solution to your problem might be as simple as changing font used in AAS console. Simply go to options and select a Chinese compliant font instead of default Arial.
    However, I'm not sure Chinese is supported in non-unicode mode.
    Cheers,
    Alp

  • PL/SQL Cartridge with Union Query

    I have a pl/sql cartridge, with 3 select queries connected to each other by a "union". These queries basically generate a report from two tables. One of those queries is based on Table 1, and the other two are based on Table 2. What I need to accomplish is that I want to add a condition that restricts the outcome of the query (all three unions as a whole) based on a condition. Say, the condition is table1.param1 = '1'. Now, I'm getting confused with incorporating this condition in query 2 and query 3 which are based on table 2, and don't have the param1. However, both table1 and table 2 have param2 in common. I tried writing something like: (this is just a skeleton of my code)
    SELECT param1, PARAM2, OTHER_PARAM
    FROM table1
    where param1 = '1'
    union
    select param2, param3, 0 other_param
    from table2
    where param2 in
    (select param2
    from table1
    where param1 = '1')
    union
    select param2, param4, param5 other_param
    from table2
    where param2 in
    (select param2
    from table1
    where param1 = '1');but this doesn't work. Can anyone help me with this query? any help is appreciated.

    I think it will help you guys better if I illustrate in more detail. Posting my code below. p1,p2,p3..etc are parameter names. Hope someone will be able to help now.
    The original code, before adding the new condition is:
    select p1_num,
              p2_date,
              sum(decode(p3,'50',p4,0)) b_amt,
              sum(decode(p3,'10',p4,0)) r_amt,
              sum(decode(p3,'20',p4,0)) d_amt,
              sum(decode(p3,'40',p4,0)) l_amt,
              0 pay_amt,
              0 o_amt,
              0 g_amt,
              0 ot_amt
       FROM table1 t1
       where p1_num = passed_parameter  -- Parameter passed to the cursor
             AND to_char(p2_date, 'mmyyyy')  =  V_pdate  -- V_pdate is a parameter passed to the procedure
             group by p1_num, p2_date
       UNION
       select p1_num,
              p6_date,
              0,
              0,
              0,
              0,
              sum(decode(p7,'2', p8,0)) pay_amt,
              0 o_amt,
              0 g_amt,
              0 ot_amt
       from table2 t2
       where  p1_num = passed_parameter  -- Parameter passed to the cursor
              AND to_char(p6_date, 'mmyyyy')  =  V_pdate  -- V_pdate is a parameter passed to the procedure
              group by p1_num, p6_date
       UNION
       select p1_num,
              p6_date,
              0,
              0,
              0,
              0,
              0 pay_amt,
              sum(decode(substr(p9,1,1),'1',p8,0)) oil_amt,
              sum(decode(substr(p9,1,1),'2',p8,0)) gas_amt,
              sum(decode(substr(p9,1,1),'5',p8,'3',p8,'4',p8,0)) ot_amt
       from table2 t2
       where ((p7 IS NULL) OR (p7 IN ('0','1','3','4')))
             and p1_num = passed_parameter  -- Parameter passed to the cursor
             AND to_char(p6_date, 'mmyyyy')  =  V_pdate  -- V_pdate is a parameter passed to the procedure
             group by p1_num, p6_date;
             I need to add a condition <b>p5 = '1'</b> to filter the results of this query. p5 is a from table1. I tried using inner join, as per Jane's suggestion, something like this:
      select t1.p1_num,
              t1.p2_date,
               sum(decode(p3,'50',p4,0)) b_amt,
              sum(decode(p3,'10',p4,0)) r_amt,
              sum(decode(p3,'20',p4,0)) d_amt,
              sum(decode(p3,'40',p4,0)) l_amt,
               sum(decode(p7,'2', p8,0)) pay_amt,
              sum(decode(substr(p9,1,1),'1',p8,0)) oil_amt,
              sum(decode(substr(p9,1,1),'2',p8,0)) gas_amt,
              sum(decode(substr(p9,1,1),'5',p8,'3',p8,'4',p8,0)) ot_amt
       FROM  table2 t2 inner join table1 t1
       on t2.p1_num = t1.p1_num
       WHERE
       to_char(t1.p6_date,'mmyyyy') = V_pdate
       and   t1.p5 = '1'
       and  ((t2.p7 IS NULL) OR (t2.p7 IN ('0','1','3','4')))
       group by t1.p1_num, t1.p2_date
       order by t1.p1_num
       Firstly, I get duplicates for some of the records, which I need to eliminate. Once I eliminate those, i'll know if my retrieved records are right (since right now its retrieving more than 1000 records!)

Maybe you are looking for

  • ITunes importing

    I'm new user for iTunes and I have my song files into folders structure, how can I add/import them? It works as in iPhoto which create its own database so I can delete original file from folder or itunes creates link to song?!? How can I import songs

  • How can I recover my icloud address?

    It's been over a year since I last used my icloud address.  I cannot recall it and I don't know where to get the help to recover it.  I need my icloud address to be able to activate my iPhone 5, I've tried everything, I've tried to get help with an A

  • How do I get Firefox to open my home page whenever I open a new tab?

    I have Google as my home page. Rather than opening a new tab and getting a blank page, I'd like to open a new tab and get Google coming up. I'm fairly certain that this was possible in old Firefox, and would like to know if it is still possible and i

  • I have Flock and need to save favorites to Firefox, can it be done?

    I have Flock and love it, but it needs to be updated. The browser isn't working with Meetup, and its not updating Facebook. I would like to keep Flock, but if I have to change to Firefox, id like to keep my favorites. Please tell me how.

  • BPC 10.1 Unified Environment

    Hello Experts, My client has some questions around unified environment.Please help me understand it better 1) If we have a bpc model exactly same in classic environment and an unified environment,Will the model in unified environment be faster in per