11G Pivot Query with Oracle EBS

Hello all,
We are trying to use the 11G pivot query function with data from Oracle E-Business Suite. We have an 11G database installed with our Oracle APEX. We cannot seem to get the pivot function to work. At a glance, would anyone be able to see any glaring errors in our syntax. I am not certain it is possible to provide test data so...
We are trying to have column headings with the Period Names SEP-08 OCT-08 NOV-08, with rows of segment2 007751 and accounted_dr as the dataset.
When we run the sql we get an error ORA-00904: "PERIOD_NAME": invalid identifier.
Any help or insight would be greatly appreciated.
select * from (
select segment2, accounted_dr, period_name
from gl_je_lines a, gl_code_combinations b
where b.code_combination_id = a.code_combination_id
and segment2 = '007751')
pivot
sum(accounted_dr)
for period_name in ('SEP-08','OCT-08','NOV-08')
group by segment2, period_name

lilhelp wrote:
Hello all,
We are trying to use the 11G pivot query function with data from Oracle E-Business Suite. We have an 11G database installed with our Oracle APEX. We cannot seem to get the pivot function to work. At a glance, would anyone be able to see any glaring errors in our syntax. I am not certain it is possible to provide test data Why not?
>
We are trying to have column headings with the Period Names SEP-08 OCT-08 NOV-08, with rows of segment2 007751 and accounted_dr as the dataset.
When we run the sql we get an error ORA-00904: "PERIOD_NAME": invalid identifier.
Any help or insight would be greatly appreciated.
select * from (
select segment2, accounted_dr, period_name
from gl_je_lines a, gl_code_combinations b
where b.code_combination_id = a.code_combination_id
and segment2 = '007751')
pivot
sum(accounted_dr)
for period_name in ('SEP-08','OCT-08','NOV-08')
group by segment2, period_nameDon't use GROUP BY. When you use PIVOT, the grouping is implied by what is in the PIVOT clause and what is not.
Try this:
select    *
from        (
       select  segment2
       ,       accounted_dr
       ,       period_name
       from       gl_je_lines          a
       ,       gl_code_combinations     b
       where       b.code_combination_id = a.code_combination_id
       and       segment2 = '007751'
pivot       (
       sum (accounted_dr)
       for period_name in ('SEP-08','OCT-08','NOV-08')
;which is just your posted query without the GROUP BY clause.

Similar Messages

  • 11G Pivot Query with parameters

    Hello all,
    I would like to find some way, any way to pass parameters to a pivot query. The following pivot query works, but I would like segment2 to be a variable as well as the period names so....
    select * from
    select segment2, accounted_dr, period_name
    from gl_je_lines a, gl_code_combinations b
    where b.code_combination_id = a.code_combination_id
    and segment2 >='007611' and segment2 <='007751' AND period_name in ('SEP-08','OCT-08','NOV-08'))
    pivot
    sum(accounted_dr)
    for period_name in ('SEP-08','OCT-08','NOV-08') )
    ....would be something like....
    select * from
    select segment2, accounted_dr, period_name
    from gl_je_lines a, gl_code_combinations b
    where b.code_combination_id = a.code_combination_id
    and segment2 >= :P4_OBJECT_FROM AND and segment2 <=:P4_OBJECT_TO AND period_name in &P4_EPSB_PERIOD_HOLD.)
    pivot
    sum(accounted_dr)
    for period_name in (&P4_EPSB_PERIOD_HOLD.) )
    It is our understanding that we have to hardcode period names and objects, but we would like to get around that. Does anyone have any ideas or tricks?
    Thanks

    lilhelp wrote:
    Hello all,
    We are trying to use the 11G pivot query function with data from Oracle E-Business Suite. We have an 11G database installed with our Oracle APEX. We cannot seem to get the pivot function to work. At a glance, would anyone be able to see any glaring errors in our syntax. I am not certain it is possible to provide test data Why not?
    >
    We are trying to have column headings with the Period Names SEP-08 OCT-08 NOV-08, with rows of segment2 007751 and accounted_dr as the dataset.
    When we run the sql we get an error ORA-00904: "PERIOD_NAME": invalid identifier.
    Any help or insight would be greatly appreciated.
    select * from (
    select segment2, accounted_dr, period_name
    from gl_je_lines a, gl_code_combinations b
    where b.code_combination_id = a.code_combination_id
    and segment2 = '007751')
    pivot
    sum(accounted_dr)
    for period_name in ('SEP-08','OCT-08','NOV-08')
    group by segment2, period_nameDon't use GROUP BY. When you use PIVOT, the grouping is implied by what is in the PIVOT clause and what is not.
    Try this:
    select    *
    from        (
           select  segment2
           ,       accounted_dr
           ,       period_name
           from       gl_je_lines          a
           ,       gl_code_combinations     b
           where       b.code_combination_id = a.code_combination_id
           and       segment2 = '007751'
    pivot       (
           sum (accounted_dr)
           for period_name in ('SEP-08','OCT-08','NOV-08')
    ;which is just your posted query without the GROUP BY clause.

  • Integrating Active directory  with oracle EBS 12.1.3 with 11g R2 database

    Hi,
    can any one let me know Integrating Active directory windows 2009 R2 with oracle EBS 12.1.3 with 11g R2 database software requirements and document ids for integrating.
    Is windows 2008 active directory is cerfied with 10g OID??
    regards,
    chandrasekhar.

    Hi
    I found exact note
    Is OID 10g/11g DIP Compatible / Certified With Microsoft Active Directory 2008 / Windows 2008 R1/R2? [ID 944298.1]
    From note:
    DIP 10g latest version (10.1.4.3) and DIP 11g up to PS4 / 11.1.1.5 Patchset releases integrations are certified with MS AD 2008 R1 only.
    DIP 11g certification with AD 2008 R2 is supported only with DIP 11g PS5 / 11.1.1.6 Patchset or higher.
    Note: Although DIP below 11.1.1.6 integration (synchronization, external authentication, etc.) with MS Windows / AD 2008 R2 may work, it is not officially compatible / certified. See also Note 1076018.1.
    Regard
    Helios

  • OBIEE 11g with Oracle EBS R12 implementation,Need to know Default Roles

    Hi All,
    Can anyone please let me know regarding any documentation or link where i can find all default OBIEE Group names and the relation of each Groups with Oracle EBS R12 roles and responsibility categorized by the Modules.
    We need the Roles information for the following modules:
    1. Supply Chain & Order Management
    2. Procurement & spend
    3. Finance
    Thanks in advance. Please help.
    Regards
    Sudipta

    Please see these docs.
    Integrating Oracle Business Intelligence Applications with Oracle E-Business Suite [ID 555254.1]
    What documentation do I need to review when installing and configuring a OBI Apps 7.9.6.x environment with EBS? [ID 1221764.1]
    Master Note for OBIEE Integration issues with EBS, Siebel, SSO, Portal Server [ID 1248939.1]
    Oracle SSO E-Business Suite Applications Integration with Oracle Business Intelligence [ID 553423.1]
    Oracle EBS integration with OBIEE [ID 733137.1]
    Document for implementing security OBIEE Apps with EBS and Siebel CRM as sources [ID 756851.1]
    What Application must be chosen for Responsibility within EBS when integrating with OBIEE [ID 1246464.1]
    Also, search Steven Chan's Blog and you should get couple of hits -- http://blogs.oracle.com/stevenChan/
    Thanks,
    Hussein

  • Using Oracle Dataguard 10g With Oracle EBS

    Hello,
    I am working on Linux with Oracle Database 10g and Oracle EBS R12 and trying to configure Oracle Data Guard with Oracle EBS. I have been reading Oracle My Support Document (Business Continuity for Oracle E-Business Release 12 Using Oracle 11g Physical Standby Database [ID 1070033.1] ).
    Please let me know of any another useful documents. It will also be helpful if anyone could share real time experiences.
    Thank you.

    Hi,
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/prod/ha/dataguard/physstby/physstdby.htm
    http://www.oracle.com/technetwork/database/features/availability/dataguardoverview-083155.html
    Regards
    Yoonas

  • Regarding OBIEE Integration With Oracle EBS

    Hi All,
    I have installed BIAPPS (7.9.6.1) (components installed are 2 11g DBs (one is OLTP and other is OLAP) on RHEL 4, Oracle Application Server 10g, Informatica Power Center , DAC and OBIEE). After that i need to integrate the OBIEE with Oracle EBS. I have installed 11.5.10.2. I upgraded the database to 10g R2 and applied patch ATG 6 (Pre reqs of Integration).
    Steps Which i have done for integration:-
    I installed Financial module in Biapps. Made changes to that pre built rpd ie:OracleBIAnalyticsApps.rpd using Administrations tool. I have created datasource for EBS and given in connection pool. Similarly in dataware house connection pool also. When i test from Administration tool means Init Block > EBS Security context > Edit datasource. When i click on test the datasource i am getting error NQ_SESSION.ICX_SESSION_COOKIE* has no value definition.*
    I copied that rpd linux box where my OBIEE server resides and changed the rpd name in NQSConfig.INI. I added the oracle_home and tnsadmin etc in user.sh file. I added the dsn names which i created the same in windows in odbc.ini file. But NQServer.log says
    *[nQSError: 43059] Init block 'LAST_SYND_DS_YTD_QTD': Dynamic refresh of repository scope variables has failed.*
    *[nQSError: 17001] Oracle Error code: 12154, message: ORA-12154: TNS:could not resolve the connect identifier specified*
    at OCI call OCIServerAttach.
    *[nQSError: 17014] Could not connect to Oracle database.*
    Please let me know any solution for this.
    Thanks,
    Manikandan

    hi Manikandan,
    Please check the tns entries for the connection pool that u assigned for LAST_SYND_DS_YTD_QTD
    thanks,
    saichand

  • OTM 6.3 Integration with Oracle EBS 12.1.3

    Hi,
    OTM 6.3 Integration with Oracle EBS 12.1.3 .
    Please suggest me with Oracle MOS DOC ID / steps to achieve this.
    Regards,

    Hi,
    This is a new Cloud community and not focused on EBS. We recommend you to place your question on the MOS community as I am sure they will be able to help you: Oracle Transportation Management (MOSC)
    Regards,
    Pablo.

  • Is Oracle Apex 4.2.3 certified with Oracle EBS 12.1.3?

    Is Oracle Apex 4.2.3 certified with Oracle EBS 12.1.3?

    Yes it is certified as outlined in the Extending Oracle E-Business Suite Release 12 Using Oracle Application Express white paper.
    Within this white paper the Prerequisites listed are:
    Oracle E-Business Suite 12.1.3 or above
    Oracle E-Business Suite Patch 12316083
    {Go to My Oracle Support Patches & Updates: https://updates.oracle.com/Orion/PatchSearch/process_form?bug=12316083}
    Fully Licensed Oracle Database1, Release 10.2.0.3 or above
    Oracle Application Express 4.0 or above
    The white paper is available from APEX OTN Page > Collateral > White Papers or from My Oracle Support  (Note 1306563.1).

  • ATG Integration with Oracle EBS

    Anybody worked on ATG integration with Oracle EBS for Pricing, Inventory and Order Management?  I would like get more detail on the approach on the integration.

    Have you looked into the error log to see whats the error message ?
    The sawlog file would be located here - C:\OBIEE\OracleBIData\web\log
    Paste your instanceconfig.xml file here, specifically the Auth section
    Also elaborate on what are the steps you have followed for Integration so we will be able to help !!

  • Third Party Application Integration with Oracle EBS Without any middleware

    Hi,
    Please give suggestions about the Third Party Application Integration with Oracle EBS
    Without any middleware. Can we achieve this?
    Thank you,
    Muhammad Nasir
    Edited by: User129 on Feb 4, 2013 3:45 AM

    Muhammad,
    You may get better response in Oracle EBS forum -
    General EBS Discussion
    Regards,
    Anuj

  • OBIEE 11.1.1.3.0 integrated with Oracle EBS R12

    Hi,
    I have Oracle EBS Vision Instance v R12.1 installed on Redhat 5 and wanted to install OBIEE latest version. Can some please point to system architecture diagram as i am conflicted with installation. I do not have complete idea but writing here what i actually know.
    Oracle EBS R12 on Linux
    OBIEE V 11.X on Linux
    Now install prepackeged analystical function on windows machine and using BI tool deploy/use them with Oracle EBS.
    Please point me to a note which describes the components and what does it take to make up and running in conjuction with Oracle.
    Thanks in advance
    Prashant

    Please see these docs.
    Integrating Oracle Business Intelligence Applications with Oracle E-Business Suite [ID 555254.1]
    What documentation do I need to review when installing and configuring a OBI Apps 7.9.6.x environment with EBS? [ID 1221764.1]
    Master Note for OBIEE Integration issues with EBS, Siebel, SSO, Portal Server [ID 1248939.1]
    Oracle SSO E-Business Suite Applications Integration with Oracle Business Intelligence [ID 553423.1]
    Oracle EBS integration with OBIEE [ID 733137.1]
    Document for implementing security OBIEE Apps with EBS and Siebel CRM as sources [ID 756851.1]
    What Application must be chosen for Responsibility within EBS when integrating with OBIEE [ID 1246464.1]
    Also, search Steven Chan's Blog and you should get couple of hits -- http://blogs.oracle.com/stevenChan/
    Thanks,
    Hussein

  • Possibility & Drawback  Using JDeveloper 11g ADF Faces with Oracle 10g DB

    We are new to ADF Faces, would like to use JDeveloper 11g ADF Faces with Oracle 10g database (Enterprise Edition). As we are new to JDeveloper 11g ADF BC, so we want to know about the Possibility & the Drawback.
    Edited by: eng.shahed on Apr 5, 2010 11:21 AM

    i dont think so any drawbacks using Jdeveloper with any database.....its a open product ... You can use it with Sybase, MySQL, Oracle etc etc..

  • What's wrong with Oracle EBS

    Ladies and Gentlemen:
    It has been a little over a year since I started struggling with EBS. I have tried it on Windows XP and I have tried it with Linux. It is my humble conclusion that Oracle EBS is a sub-standard program that works only half of the time. I do not know how customers tolerate this useless system. The only thing that is good about Oracle is that it has created a lot of employment opportunities for a lot of sub-standard DBAs and developers who would otherwise be unemployable. The only reason Oracle got successful, in my opinion, is due to the fact that it is the only company selling a product to mid-range enterprises.
    Unbreakable linux is another joke oracle plays on its customers. I do not know why people tolerate a program that does not always work unless you keep chasing those rpms all over the web to complete a task. and those rpms (who knows how to install them) are written by aspiring programmers who do not do a good job, some other aspiring programmer has to finish the job for them by writing another God-forsaken RPM. I installed OEL4.7, it does not even recognize my network cards or any of my plug and play devices ( forgive me Microsoft, for give me Windows, I am coming home). I install OEL 5.2, it needs all kinds of RPM it is not funny.
    All in all, Oracle got a lot of people (and companies) by the ball. It keeps churning out those patches and RUPs like crazy and charge clients for service and maintenace agreements. money keeps coming.
    Up until now, I do not have to work with Oracle EBS. But now I have been offered a job with a large employer. If I accept the offer, I would have to work with Oracle and because of that I having a second thought..
    I know I am gonna get a lot of criticism from a lot of people, but it is the honest truth.
    Hello SAP (it is time to try SAP)

    Hello Dear,
    We are sorry that you were not successful in installing / using EBS.
    But, there are a lot of documents over the net , metalink, forums etc....to help you if you have any problem rather than bashing Oracle.
    As you are going to say Hello to SAP, fyi, even people using SAP bashes SAP when they trouble in acheiving some thing.
    So, I suggest first try to resolve the problem by approaching any media and then use it and see the Power of Oracle EBS.
    I hope you understand.
    Thanks for trying Oracle :)

  • Integrating with Oracle EBS using XMLGateway issues

    Hi all,
    I'm trying to integrating with Oracle EBS using XMLGateway, and I meet some issues. Here are the steps I did.
    1) Update DATA_MAP.xgm file and DATA_TEST.dtd file into XMLGateway repository
    2) Define transactions in EBS client:
    Party Type: Supplier
    Transaction Type: Cat
    Transaction Subtype: Dog
    Transaction Description: test for cat and dog
    Standard Code: OAG
    External Transaction Direction: IN
    External Transaction Type: Cat
    External Transaction Subtype: Dog
    Queue: APPLSYS.ECX_IN_OAG_Q
    3) Define trading partners in EBS client
    Operating Unit: Vision Operations
    Trading Partener Type: Supplier
    Trading Partener name: ****
    Trading Partener site: ****
    Company Admin email: [email protected]
    ... other transaction info defined in step 2)
    4) Send inbound message using OTA send Inbound Page. It succeed.
    a. The return page display status code 1000 with status discription OK.
    b. From the transaction monitor, I can see the inbound message was processed successfully.
    c. From the database, I can see that this inbound message first arrived in ecx_inqueue table, and then moved to ecx_in_oag_q_table. And last disappeared from the ecx_in_oag_q_table. That means XMLGateway process the inbound message in transaction queue successfully.
    5) Send inbound message using SOAPUi. It failed.
    a. The return page display status code 200. That means the inbound message has been sent to inbound message queue successfully.
    b. From transaction monitor, I cannot see this request record.
    c. From the database, I can saw that this inbound message first arrived in wf_ws_jms_in table, then disappeared. It didn't moved to transaction queue which I selected when defined transations, so I guess it wasn't processed by XMLGateway. Using the following SQL, but cannot find error reason.
    select * from ecx_inbound_logs where process_id='******************'
    select * from apps.ecx_error_msgs where error_id='*****'
    I guess the reason is something happend to prevent inbound message to move from inbound message queue to transaction queue. So XMLGateway cannot process this inbound message.
    From XMLGateway user guide, I understand that there are three kinds of inbound queues(ECX_INBOUND which OTA uses, WF_WS_JMS_IN which soap over https uses, WF_JMS_IN which JMS uses), does't mention what are the corresponding transaction queues? Can they share the same transaction queue? Also see from this user guide, ecx_in_oag_q (transaction queue) is only for ecx_inbound queue. But when I try to define a transaction in EBS client, it seems that only ecx_in_oag_q can be chosen. I wondered why my second senarios failed when I used the same transation and trading partner. The message already arrived at wf_ws_jms_in and then disappeared. Is that because I selected the wrong transaction queue when defining transactions? But it was really cannot select any other transaction queues there. Or I missed some steps when using SOAP over HTTP/S?
    Appreciate you can give me some suggestions. Hope to hear your voice. Thanks in advance.

    Hi,
    Regarding the integration what type of integration you want.
    Can you please elaborate?There are some integration tools releases by Oracle for the integration.
    Regards
    Pramod

  • PCG works only with Oracle EBS?

    Hi, Does PCG work only with Oracle EBS? Does it not work with other products like Peoplesoft, SAP, Siebel?Thanks, Varsha

    That's correct. PCG is only for Oracle EBS.

Maybe you are looking for

  • My ringtones don't vibrate but all other notifications do?

    Hi All, I have an iPhone 3GS.. my text and email notifications all vibrate with their sounds. But my incoming calls do not vibrate with the ringtone. I can even choose the same tone for each, and just the calls do not vibrate... everything else does.

  • What's the maximum size and length that go onto a DVD

    I'm trying to put a whole load of home videos onto DVDs. What is the maximum size that can be burnt onto a DVD. There are a lot of hours on here, about 15 and I was hoping to try and get about 3 hours per DVD is this possible? Thanks Tom

  • HT2208 what software programs needed

    Just bought Apple TV for my early 2011 MacBook Pro.  When I go on Apple TV there is a column on the right side showing words in black and white;  movies, tv show, pictures, settings, etc.  On settings it reads SW version 2.2.1 (314).  Does that mean

  • Two problems with iWeb welcome page

    After some obvious struggling I was able to create a working welcome page with links to my homepages. I have two questions regarding the page: 1. First, the page does not fit the full screen when seen in Safari. It seats too small in the middle of a

  • Crystal Report Java Reporting Component Query

    Hi, If I am using the Crystal Report Java Reporting Component, do I need any other Crystal Report software to be installed during run time? Thanks.