11G Pivot query with Oracle EBS

Hi all
We try to use the request function pivot 11G with Oracle E-Business Suite data. We have a database 11G installed with our Oracle APEX. We do not seem to get the pivot function to work. In short, anyone would be able to see the glaring errors in our syntax. I am not sure that it is possible to provide data of test so...

We try to have with the period column headers names SEP-08 OCT-08 NOV-08, with rows of segment2 007751 and accounted_dr as DataSet.
When we run the sql code we get an error ORA-00904: "PERIOD_NAME": invalid identifier.

Any help or idea would be greatly appreciated.

Select * from)
Select segment2, accounted_dr, period_name
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 ("SEP-08', ' 08 OCT ', ' NOV-08'")
)
Segment2 group, period_name

lilhelp wrote:
Hi all
We try to use the request function pivot 11G with Oracle E-Business Suite data. We have a database 11G installed with our Oracle APEX. We do not seem to get the pivot function to work. In short, anyone would be able to see the glaring errors in our syntax. I am not sure that it is possible to provide test data

Why not?
>

We try to have with the period column headers names SEP-08 OCT-08 NOV-08, with rows of segment2 007751 and accounted_dr as DataSet.
When we run the sql code we get an error ORA-00904: "PERIOD_NAME": invalid identifier.

Any help or idea would be greatly appreciated.

Select * from)
Select segment2, accounted_dr, period_name
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 ("SEP-08', ' 08 OCT ', ' NOV-08'")
)
Segment2 group, period_name

Do not use GROUP BY. When you use PIVOT, the group is involved with what is in the PIVOT clause and which 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 query validated without the GROUP BY clause.

Tags: Database

Similar Questions

  • Double authentication with Oracle EBS at the APEX problem

    Hello

    I am currently working on a project to integrate with Oracle EBS 12.1.3 4.2.4 APEX. We have completed the recommended white paper Oracle configuration.  I joined at the request of the APEX of a responsibility of BSE, when I click on the page of the APEX of the EBS, it navigates me to the login page of the APEX, and after I entered my credentials is to show the "No data found" error on the page. Then when I click the OK button again once he navigates me to the login page of the APEX and is validate my login information, allowing me to enter the APEX successfullly.

    It's really us boring for double login controls. Appreciate your help with this problem as soon as possible.

    Deployment environment

    ===============

    Database: Oracle 11g (11.2.0.2)

    Version APEX: APEX 4.2.4

    Oracle EBS Version: R12.1.3

    Application servers: Apache TomCat 7.0.56 (for APEX), Oracle HTTP Server (EBS)

    Web listening port: Oracle REST Data Services (2.0.6)

    Authentication: Custom authentication (login page validates users EBS)

    Thank you

    Sudhakar

    It seems that the constructed URL is not allowed. We EBS do not build a valid string. You can see where he puts "CallFromForm" and then adds "& p =...". "URL.

    The white paper mentions a required patch, you need else to resolve this problem.

    Use the gateway FND. If you do not need to pass parameters through your form to Apex, Oracle now provides a GWY.jsp which allows you to launch the Apex. Install the patches of R12 12316083 and 12726556. Then use the GWY.jsp based on your shape as described in the white paper "Extending Oracle E-Business Suite Release 12 using Oracle Application Express".

    Patch 12316083 is mentioned in the white paper, you are missing the 12726556.

    Description

    This bug solves the problem of pitcher APEX, at the launch of a whole page of APEX

    Oracle E - Business Suite forms according to the user interface. An additional url

    parameter 'CallFromForm' used to be added to the URL of the APEX, which was originally

    APEX page to fail.

  • Tell Oracle webcenter 11.1.1.8 integrate with oracle EBS 12

    Dear friends,

    I use content oracle web center 11.1.1.8.0 and I want to integrate with Oracle EBS R12 1.3. I'm unable to find any step guide / tutorial from any side. Each of you would provide all my prior instructions and step by step to perform this activity successfully.

    Thank you

    Kind regards

    Riaz Ahmed

    Anand, should I have any /patch fixpack to exercise this activity.

    Kind regards

    Riaz Ahmed

  • 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 stated in the white paper Extending Oracle E-Business Suite Release 12 using Oracle Application Express .

    In this white paper are the listed prerequisites:

    The white paper is available from APEX OTN Page > collateral > white papers or My Oracle Support (Note 1306563.1).

  • Internet Explorer (IE) compatible with Oracle EBS 12.1.3 10?

    Hello

    It's IE 10 have already compatible with Oracle EBS 12.1.3?

    Thank you

    Not yet
    Use IE 9.

  • Using Dataguard Oracle 10 g with Oracle EBS

    Hello

    I work on Linux with Oracle Database 10g and Oracle EBS R12 and try to configure Oracle Data Guard with Oracle EBS. I read My Oracle support Document (Business Continuity for Oracle E-Business release 12 using Oracle 11 g Physical Standby Database [1070033.1 ID]).

    Please let me know of any other useful document. It will also help if anyone could share experiences in real time.

    Thank you.

    Hello

    See this one

    Continuity of Oracle Applications Release 12 on exit 10 gr 2 - Single Instance database and RAC [ID 452056.1]

    Concerning
    SANAE

  • WebCenter content can be integrated with Oracle iStore or Oracle EBS?

    Hello

    WebCenter content can be integrated with Oracle iStore (as seeds/integration without many glitches/modification) or Oracle EBS as a whole?

    Thanks in advance.

    Srinivas

    Hi Srinivas,

    Yes, ECM can be integrated with Oracle EBS (suite business enterprise) and thus other Oracle applications such as Peoplesoft, Siebel etc..

    Details can be read from the following link: http://docs.oracle.com/cd/E23943_01/doc.1111/e17953/toc.htm

    Thank you
    Srinath

  • Oracle 11g compatibility with oracle 10g and 9i?


    Hi all



    I have a few questions about the compatibility of 11g.



    Client Oracle 11g is compatible with oracle 10g client that is already installed on the desktop computer?


    If any changes to do so and where?



    Is oracle 11g oracle 10 g/9i on the same server where are installed the 10 g/9i compatible?


    Concerning

    If the question you ask yourself is 'Can I have multiple versions of the Oracle installed on the same client computer' or "Can I have several versions of the database Oracle installed on the same machine", the answer is Yes. As long as you install each version in another House of Oracle, and we are talking about versions 8.1.5 and upward, you can have as many different versions of the client and the database on the same machine as you wish. Of course, you are still subject to the support of operating system compatibility (e.g. Oracle 9.2 did not had been supported on Windows 2008, so do not expect to work).

    The only problem you may have would be with components that are not compatible with several House. This mainly affects third-party Windows drivers (drivers third party ODBC, etc.) who do not know how to work with multiple Oracle homes and end up using which version of the client Oracle happens to appear first in the path.

    Justin

  • Oracle EBS RUPs vs upgrades

    Can Hello Experts - anyone provide your experience with Oracle EBS ORS and upgrades?

    Our current Version of EBS is 12.1.3.

    We are 2.5 YEARS behind all the ORS. We are weather to think of the upgrade or just Rollup... Pls suggest

    Thank you

    Sandy

    Hello

    Applying the RUP is easier than to do an upgrade.

    Oracle EBS 12.1.3 will be supported for a few years (Dec 2016 for assistance first and December 2019 for the support extended).

    If you wish to enjoy some of the new features in 12.2 then you can do the upgrade.

    Kind regards

    Bashar

  • ODI and oracle EBS

    Hi all

    In the future, I have to work on Oracle EBS ODI, I was wondering is it possible to integrate with ODI with Oracle EBS to extract the EBS data to flat file or RDBMS throught ODI.
    I would like to know if it is feasible or not.

    Thanks in advance

    Sandrine Atalkar

    Hello

    You can check the following

    http://redshift-au.blogspot.com/2009/05/Oracle-ODI-for-eBusiness-Suite.html

    Thank you
    Fati

  • How to open LOV with mouse in Forms 11 g (Oracle EBS similar)

    Hello experts,

    I'm starting to test with Oracle Forms 11g outside the Oracle e-Business Suite (EBS) and I'm surprised when I noticed that the typical LOV EBS icon (three points) is not displayed in form 11 g and only the lov key can be used:

    forms_lov.png

    Can you provide me with a link to implement this behavior in a new application forms outside the EBS 11g?


    Best regards

    Jose.

    I remember there is a parameter the the registry.dat file (somewhere at the end, it is commented, you will need to comment out there).

    I have forms at hand, so I can't tell you exactly where the file, nor how the variable is named (but you should recognize the option when you see the name).

  • Absence pending query Oracle EBS 12

    Hello

    I started to retrieve the data waiting for applications for leave from Oracle EBS R12.2.


    I was able to read information such as the absence_type, absence_category, approval_status, start_date, end_date, absence_hours, absence_days, absence_status, with the help of hr_absutil_ss and hr_api_transactions, tables hr_api_transaction_steps.

    But I'm looking for the following data reason start_time, end_time, replaced_by and comments.

    I have not found the data in the table HR_API_TRANSACTION_VALUES .

    Thank you in advance.

    Hello

    Start_time, end_time, reason, replaced_by information and comments. will be available in the hr_api_transactions table in the column transaction_document which is a CLOB field containing data XML.


    You can use the query for this information below.

    SELECT

    hr_absutil_ss.getAbsenceStatus (Hat.transaction_id, null) AbsenceStatus

    hr_absutil_ss.getabsencetype (hat.transaction_id, null) AbsenceType

    hr_absutil_ss.getAbsenceCategory (hat.transaction_id, null) Absencecategory

    flv.description AS AbsenceReason

    , to_char (hr_absutil_ss.getStartDate (hat.transaction_id, null), 'DD-MON-YYYY') StartDate

    , to_char (hr_absutil_ss.getEndDate (hat.transaction_id, null), 'DD-MON-YYYY') Enddate

    hr_absutil_ss.getAbsenceDaysDuration (hat.transaction_id, null) days

    ExtractValue (VALUE (xx_row), ' / PerAbsenceAttendancesEORow/AbsAttendanceReasonId ") ReplacedBy

    ExtractValue (VALUE (xx_row), ' / PerAbsenceAttendancesEORow/comments ") AS comments

    Of

    Hat hr_api_transactions

    hr_api_transaction_steps hats

    ,TABLE (xmlsequence (excerpt (xmlparse (document transaction_document correct), )))

    Xx_row ' / transaction/TransCache/AM/TXN/EO/PerAbsenceAttendancesEORow ")))

    MP

  • install the EBS R12 (12.1.1) with Oracle 10 g on different nodes

    Hello

    What would be the steps for installation of the R12, EBS (12.1.2) of oracle database 10 g on different nodes?
    by default, 12.1.1 comes from oracle database 11g.

    There are basically 2 problems:
    1 instalation for R12 with oracle 10 g
    2 instalation on different nodes

    as I read through the forums, for installation on different nodes, you must first install R12 on the database node, then take the config_SID.txt file to the applications node, and then install r12 with this config file. but there are two other issues:
    1. I do full instalation R12 on the database node, and then install complete on the node applications with the config file?
    2. the instalation is done always with database 11 g... but we want database 10 g.

    Hello

    He said in the newspaper as R12 is it can be downloaded and installed... no matter if it comes with 10 g or 11 g.

    I agree.

    After instalation complete (R12 apps + db) on the node database and complete instalation on the applications node (with the pointing to the created database configuration file)... do have to remove the APPL_TOP, COMM_TOP... of the database layer and leave only the RDBMS House? or what are the exact steps...

    You don't have to remove all files, in fact, when you install the database on the database layer node fast install will not lay any of enforcement on this node (provided that you choose do not have enforcement on this node when you answer the question in fast Windows Installer). So, you should eventually have the database files and the ORACLE_HOME database on the DB layer node, then quick installation will allow to install the application files on the nodes of level APPS and application services.

    Thank you
    Hussein

  • connection to Oracle ebs with 2 different users of the same machine

    Hi all

    I need your help, I want to know if it is possible to connect with two different users of oracle connection and work with forms and reports from MY MACHINE to oracle ebs SERVER connected to a network. your help will be appreciated, thanks in advance.

    my computer is: Windows 7 64

    my browser: internet explore machine

    OS: rhel Server 6.1

    EBS:12.1.3

    Thank you.

    Hello

    If you use IE 8 or later, you can go to file-> new Session, open the application and connect with a different user.

    https://support.Microsoft.com/en-us/KB/968341

    Kind regards

  • Using Oracle Partition Exchange with Oracle Data Integrator (ODI) 11g

    Hello

    I'm trying to follow http://www.ateam-oracle.com/configuring-oracle-data-integrator-odi-with-oracle-partition-exchange/

    But impossible to get the same options in 11g.

    Can I use the Exchange Partition Oracle 11g ODI.

    Thank you.

    Yes, exchange of partition is certainly possible in ODI 11 g

Maybe you are looking for

  • Text appears on sites like Google Spreadsheets, as well as all documents in PDF format is transparent, even in safe mode.

    Recently, I noticed a very strange phenomenon in Firefox. I first noticed in Google Spreadsheets; text does not appear in the cells, but if I bring you a specific cell for editing. I thought that this limitation the new Google Spreadsheets, since the

  • How to move a chart in my email send

    I pasted a chart in my email, but he's stuck at the top of the page. I want to move and then add text. How can I move it? I can resize, but not move. Thunderbird is 31.0 and firefox is 30

  • Broken laptop screen Equium A110-233

    Hi, I have a satellite A110-233, the screen is broken. I have attached an external monitor and it displays when the Starter until he got to the Windows logon screen and then it switches back to the laptop screen.Is there no workaround known solution

  • Microsoft error OUA 325 during the installation of Windows ME

    Original title: suo325 microsoft error I installed an old copy of Windows ME on a laptop older and get this error just can't copy files to the hard drive. SUO325. Anyone has any advice? And no, most old laptop can not be upgraded to a newer version a

  • ToolTip for the button

    Nice day I'm new to the blackberry development. I created a bitmapbuttonfield using the examples of the advanced user interface. There is a button with an image. I want to display a ToolTip for the button when the button receives the focus. Can someo