Pivot invalid in oracle 11.2

Hi expert,
I want to run following sql in oracle11.2, but get error because "pivot" is invalid , this function should be native in oracle11, how come for this error?
select *
from table( pivot (' select deptno
, job
, avg(sal) sal_avg
from emp
group
by deptno
, job
)

expecting a mod, dressed in Blu to show up soon and lock this one
Nah, I don't think it quite warrants that.... yet.  The answer is given so there's no further discussion necessary really.  This questioner just hasn't read the article properly.
As for the OP's question from last year, which still appears unresolved, my guess would be to check the client being used e.g. is it a 10g client connecting to an 11g database... in which case the 10g client will likely complain about the pivot syntax. e.t.a. ... just re-read the original question and it would actually appear to be similar in that it's treating the pivot statement as a function, so likely they're also trying to use some dynamic pivoting function that is user-defined rather than built-in.
Message was edited by: BluShadow

Similar Messages

  • ADF error at 10.1.3.1 Invalid class: oracle.jbo.ApplicationModule

    Hi,
    I need some help. I'm a novice jdeveloper user, but I have managed to build a small appilcation for a client, with use of ADF. When I try to run it at the applications server, it can't find the page, and have this error in the application.log:
    07/01/23 09:15:58.698 rtvview: Servlet error
    oracle.classloader.util.AnnotatedLinkageError: Class oracle/jbo/ApplicationModule violates loader constraints
    Invalid class: oracle.jbo.ApplicationModule
    Loader: adf.oracle.domain:10.1.3.1
    Code-Source: /t02dat/iast_r3/midtier/BC4J/lib/adfm.jar
    Configuration: <code-source> in /t02dat/iast_r3/midtier/j2ee/home/config/server.xml
    Dependent class: oracle.jbo.uicli.mom.JUApplicationDefImpl
    Loader: adf.oracle.domain:10.1.3.1
    Code-Source: /t02dat/iast_r3/midtier/BC4J/lib/adfm.jar
    Configuration: <code-source> in /t02dat/iast_r3/midtier/j2ee/home/config/server.xml
    Does anyone have an idea?
    Versions:
    Jdeveloper 10.1.3.1
    Application Server 10.1.3.1.0
    Thanks
    Jorn
    It worked when I tried to deploy the application thru jdeveloper server connection. Does anyone know why it's working now?
    Message was edited by:
    user527535

    I've managed to eliminate the JBO-35007 errors through the use of the Refresh and RefreshCondition tags. The problem I have now is that I do most of my testing in Firefox (latest release) and it seems to be caching pages even though I have caching turned off. For instance we have different menu options based on a user's privileges. If I log out and log in as someone else who has different privileges the previous user's options are still displayed. If I click on them it then refreshes the page and the new user's options are displayed. This is also fixed by manually refreshing the page. I do not encounter this problem at all with IE, only firefox. Any thoughts here?

  • Deploying agent 12c - Invalid switch - "oracle"

    Hello,
    My OMS is OEM 12c BP1, host OMS is AIX5.3.
    Deploying OEM Agent 12c on several Windows 2003SP2 remote servers, most of them successfully.
    But on one of them, it returns an error that puzzle me.
    In D:\oracle\product\agent12c\ADATMP_2012-08-30_08-19-52-AM\logs\install.err, I can read :
    Invalid switch - "oracle".The log In D:\oracle\product\agent12c\ADATMP_2012-08-30_08-19-52-AM\logs\install.log is
    D:\oracle\product\agent12c\ADATMP_2012-08-30_08-19-52-AM
    Present working directory:D:\oracle\product\agent12c\ADATMP_2012-08-30_08-19-52-AM
    Archive location:D:\oracle\product\agent12c\ADATMP_2012-08-30_08-19-52-AM  directory
    -ignorePrereqs
    ORACLE_HOSTNAME
    ORACLE_HOSTNAME
    myagenthost.mydomain.com
    AGENT_BASE_DIR
    AGENT_BASE_DIR
    D:/oracle/product/agent12c
    Agent base directory:D:/oracle/product/agent12c
    D:/oracle/product/agent12c
    OMS_HOST
    OMS_HOST
    myomshost.mydomain.com
    OMS Host:myomshost.mydomain.com
    myomshost.mydomain.com
    EM_UPLOAD_PORT
    1159
    AGENT_INSTANCE_HOME
    D:/oracle/product/agent12c/agent_inst
    b_doDiscovery
    false
    b_startAgent
    false
    b_forceInstCheck
    true
    AGENT_PORT
    3872
    Agent base directory:D:/oracle/product/agent12c
    OMS Host:myomshost.mydomain.com
    Agent image loc : "D:\oracle\product\agent12c\ADATMP_2012-08-30_08-19-52-AM"
    D:/oracle/product/agent12c configonlyfalse
    Reading the properties file: "D:\oracle\product\agent12c\ADATMP_2012-08-30_08-19-52-AM"\agentimage.properties
            1 file(s) copied.
    This is the version 12.1.0.1.0
    This is the type core
    This is the aru id 912And the log on the OMS host for this Agent deployment is
    2012-08-30_08-31-21:INFO:=========STACKTRACEPrinting Exception :oracle.sysman.prov.remoteinterfaces.exception.ClusterException: Error while running cmd D:/oracle/product/agent12c
    /ADATMP_2012-08-30_08-19-52-AM/agentDeploy.bat, on nodes myagenthost.mydomain.com.
            at oracle.sysman.prov.remoteinterfaces.nativesystem.NativeSystem.runCmdOnNodes(NativeSystem.java:1260)
            at oracle.sysman.prov.remoteinterfaces.clusterops.ClusterBaseOps.runCmdOnNode(ClusterBaseOps.java:263)
            at oracle.sysman.core.agentpush.ui.deployer.DeployerOps.executeCmdOnNode(DeployerOps.java:510)
            at oracle.sysman.core.agentpush.ui.deployer.DeployerOps.executeCmdOnNode(DeployerOps.java:496)
            at oracle.sysman.core.agentpush.ui.deployer.BaseDeployerOps.doInstall(BaseDeployerOps.java:330)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
            at java.lang.reflect.Method.invoke(Method.java:611)
            at oracle.sysman.core.agentpush.ui.deployer.BaseDeployerOps.executeActions(BaseDeployerOps.java:1732)
            at oracle.sysman.core.agentpush.ui.deployer.NewAgentDeployer.deploy(NewAgentDeployer.java:58)
            at oracle.sysman.core.agentpush.ui.deployfwk.DeploymentWorker.run(DeploymentWorker.java:26)
            at oracle.sysman.util.threadPoolManager.WorkerThread.run(Worker.java:264)
    oracle.sysman.prov.remoteinterfaces.exception.CommandException: The command "'D:/oracle/product/agent12c/ADATMP_2012-08-30_08-19-52-AM/agentDeploy.bat' -ignorePrereqs  ORACLE_HOS
    TNAME=myagenthost.mydomain.com  AGENT_BASE_DIR=D:/oracle/product/agent12c  OMS_HOST=myomshost.mydomain.com  EM_UPLOAD_PORT=1159  AGENT_INSTANCE_HOME=D:/oracle/product/agen
    t12c/agent_inst  b_doDiscovery=false  b_startAgent=false  b_forceInstCheck=true  AGENT_PORT=3872  2>D:/oracle/product/agent12c/ADATMP_2012-08-30_08-19-52-AM/logs/install.err  1>D
    :/oracle/product/agent12c/ADATMP_2012-08-30_08-19-52-AM/logs/install.log" was not run.
            at oracle.sysman.prov.remoteinterfaces.plugins.RemoteCommandJSCH.runcmd(RemoteCommandJSCH.java:213)
            at oracle.sysman.prov.remoteinterfaces.nativesystem.RemoteExecutionEngine.runcmd(RemoteExecutionEngine.java:417)
            at oracle.sysman.prov.remoteinterfaces.nativesystem.NativeSystem.runcmd(NativeSystem.java:5463)
            at oracle.sysman.prov.remoteinterfaces.nativesystem.WindowsSystem.runCmd(WindowsSystem.java:1662)
            at oracle.sysman.prov.remoteinterfaces.nativesystem.NativeSystem.runCmd(NativeSystem.java:4455)
            at oracle.sysman.prov.remoteinterfaces.nativesystem.NativeSystem.runCmdOnNodes(NativeSystem.java:1234)
            at oracle.sysman.prov.remoteinterfaces.clusterops.ClusterBaseOps.runCmdOnNode(ClusterBaseOps.java:263)
            at oracle.sysman.core.agentpush.ui.deployer.DeployerOps.executeCmdOnNode(DeployerOps.java:510)
            at oracle.sysman.core.agentpush.ui.deployer.DeployerOps.executeCmdOnNode(DeployerOps.java:496)
            at oracle.sysman.core.agentpush.ui.deployer.BaseDeployerOps.doInstall(BaseDeployerOps.java:330)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
            at java.lang.reflect.Method.invoke(Method.java:611)
            at oracle.sysman.core.agentpush.ui.deployer.BaseDeployerOps.executeActions(BaseDeployerOps.java:1732)
            at oracle.sysman.core.agentpush.ui.deployer.NewAgentDeployer.deploy(NewAgentDeployer.java:58)
            at oracle.sysman.core.agentpush.ui.deployfwk.DeploymentWorker.run(DeploymentWorker.java:26)
            at oracle.sysman.util.threadPoolManager.WorkerThread.run(Worker.java:264)
    ============It's also complaining that the error message cannot be found.
    I think I followed the same way to deploy Agent on this server than I did on other where it was successfully done. So, probably some configuration is different somewhere on the server itself which has to be checked and changed. Any idea ?
    Nicolas.

    Thank you for stopping by.
    Akanksha wrote:
    Is this locked avvount usecases that you are trying ?For example, you can create a named credential titled User_A, and set it to run as User_X that has the root privileges. In this case, the wizard logs in to the hosts as User_A, but installs as User_X.I really do not understand what you mean here. I have maybe 20 remote Windows server (all Windows 2003 SP2) which I deployed the Agent on, and 3 are failing even though I did exactly the same over all the servers.
    2 are returning the error below :
    Parameter format not correct - "ppl".
    The syntax of the command is incorrect.1 is returning the error I described in my first post. I sent you the files for that last one by email since this is the one I started to talk about in that thread.
    And yes, I agree, probably something specific on those 3 servers which I have to figure out.
    Thanks,
    Nicolas.

  • 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.

  • Java.lang.Exception: Invalid AD_TOP Oracle Applications 11i

    Hi,
    I have tried to complete Oracle Application 11i installation, but I have one problem.
    I have multi node installation with 2 nodes(Virtual nodes with OEL 4).
    First for database software and database and second for everything else.
    I have successfully finished installation on database node and everything passed fine,
    but when I have started installation with same configuration file (I have created it on the database node)
    on the second node
    I get the message in the log:
    Starting CVM on Middle Tier.....
    java.lang.Exception: Invalid AD_TOP
    and my installation process wafting along time.
    Can anybody help me with this problem.
    Thanks,
    Dragan.

    I have found on this location /baza/Stage11i/oraiAS/Disk1/ias/stage
    problematic archive Archive: 806_d2pm.zip
    I have tried to unzip problematic archive and I get:
    [root@maximus stage]# unzip 806_d2pm.zip
    Archive: 806_d2pm.zip
    replace d2pm/install/relnotes/relnotes.map? [y]es, [n]o, [A]ll, [N]one, [r]ename: n
    replace d2pm/install/relnotes/relnotes.vrf? [y]es, [n]o, [A]ll, [N]one, [r]ename: n
    replace d2pm/install/relnotes/relnotes.ins? [y]es, [n]o, [A]ll, [N]one, [r]ename: n
    replace d2pm/install/relnotes/partial.prd? [y]es, [n]o, [A]ll, [N]one, [r]ename: n
    replace d2pm/install/relnotes/partial.prd.PRE_P15? [y]es, [n]o, [A]ll, [N]one, [r]ename: n
    replace d2pm/install/relnotes/partial.prd.PRE_P16? [y]es, [n]o, [A]ll, [N]one, [r]ename: n
    [root@maximus stage]#
    What can I do now?
    Best regards,
    Dragan

  • Pivot function in Oracle 10g???

    Hello everybody,
    at the beginning of the week I had a simple problem (I thought that...), but now after trying and trying, I can't find a solution for it. First of all I'm working on Oracle 10g with the version 10.2.0.4.0. I can't change the version, it's standard in the whole company...
    At the beginning I have a table like the following one, but please note, that the compartment, the type and the amount are flexible and can change at any time:
    comp type amount
    a1 6280 10
    a2 6280 20
    a2 4810 15
    a2 1147 12
    a3 6280 33
    Now I want the table to look like this:
    a1 a2 a3
    1147 0 12 0
    4810 0 15 0
    6280 10 20 33
    A simple question in Excel for example, I just use the pivot function and have it fixed within 10seconds. But how can I do sth. like this in Oracle with simple SQL? Or it can be PL/SQL too, cause I will use this in an APEX application.
    Can you please give me a hint or a solution? But as stated before a1, a2, a3 are just examples it is possible that tomorrow a4, a5 and so on are coming. If it is necessary I can also create additional tables and views of course!
    Thanks for your help!
    Regards
    hoge

    Hi Hoge!
    Here is your solution:
    SELECT TYPE,
           sum(a1) AS a1,
           sum(a2) AS a2,
           sum(a3) AS a3
      FROM (SELECT TYPE,
                   decode(comp, 'a1', amount, 0) AS a1,
                   decode(comp, 'a2', amount, 0) AS a2,
                   decode(comp, 'a3', amount, 0) AS a3
              FROM test)
      GROUP BY TYPE
      ORDER BY TYPE; And here is my test case setup:
    CREATE TABLE test
        (comp VARCHAR2(255),
         TYPE NUMBER,
         amount NUMBER);
    INSERT INTO test(comp, TYPE, amount) VALUES('a1', 6280, 10);
    INSERT INTO test(comp, TYPE, amount) VALUES('a2', 6280, 20);
    INSERT INTO test(comp, TYPE, amount) VALUES('a2', 4810, 15);
    INSERT INTO test(comp, TYPE, amount) VALUES('a2', 1147, 12);
    INSERT INTO test(comp, TYPE, amount) VALUES('a3', 6280, 33);
    commit;Best regards,
    Matt

  • Login user id is invalid in oracle 11i apps 11.5.8 on windows 2003 server

    Dear All,
    I Installed oracle 11i apps 11.5.8 on windows server, when I try to start ie browser
    with user administrator and password, it is showing me, user id is invalid, try to login in again.
    and on the status bar down it is showing loginscript_logonsubmit().
    I can login with sql+ as apps/apps.
    Anybody can help me out.
    Thanks in advance,
    best regards,
    Ather Hussain
    [email protected]

    your problem is not very unusual... I also faced the similar situation cpl of times when Oracle was not able to continue the installation coz the Immediate Shutdown was failed. Actually During the installation, Oracle mounts/opens the database and shuts it down many times and few times, Oracle is unable to shutdown cleanly as some process is hanging or not responding.
    Piece of advise is that always use staging area to install Apps as it takes long time on Win2K (anything between 4-12 hrs) to install it and CDROM Access is lot slower than HDD. Also, it will prompt u every time to insert tbe CD. All this hassle can be bypassed by using the staging area. Read the Installation help document on how to create it.
    For failure reasons, look in ur installation log file which is created in the default Temp folder usually C:\documents and settings\USERNAME\local settings\temp for WinXP or C:\winnt\documents and settings\USERNAME\local settings\temp for Win2K.
    post or email me at [email protected] or [email protected] for further help/details.

  • Object Invalidation in Oracle 11g R2

    Hi All,
    I found a distinct behaviour in oracle 11gR2 which is not even available in previous releases . Let me explain with an example.
    --creating a small table
    create table TEMPSAMPLE (COL1 VARCHAR2(10),COL2 VARCHAR2(10),COL3 VARCHAR2(15),COL4 VARCHAR2(15));
    -- Now Creating an Primary key index for table TEMPSAMPLE
    ALTER TABLE TEMPSAMPLE ADD CONSTRAINT PKTEMPSAMPLE PRIMARY KEY (COL1,COL2);
    ---CREATING A VIEW ON THE ABOVE TABLE
    CREATE OR REPLACE VIEW VWTEMPSAMPLE AS
    SELECT * FROM TEMPSAMPLE;
    -- CREATING A PACKAGE WHICH USES TEMPSAMPLE AND VWTEMPSAMPLE OBJECTS.
    CREATE OR REPLACE PACKAGE PKGSAMP AS
    VAL1 TEMPSAMPLE.COL1%TYPE;
    VAL2 CONSTANT TEMPSAMPLE.COL1%TYPE:='11';
    PROCEDURE VERIFYSAMP(INVAL IN NUMBER);
    END PKGSAMP;
    CREATE OR REPLACE PACKAGE BODY PKGSAMP IS
    PROCEDURE VERIFYSAMP(INVAL IN NUMBER)
    AS
    VAL1 TEMPSAMPLE.COL1%TYPE;
    VAL2 CONSTANT TEMPSAMPLE.COL1%TYPE:='11';
    BEGIN
    VAL1:='RAVI';
    FOR RC IN (SELECT * FROM VWTEMPSAMPLE)
    LOOP
    DBMS_OUTPUT.PUT_LINE('COL1 '||RC.COL1);
    DBMS_OUTPUT.PUT_LINE('COL2 '||RC.COL2);
    DBMS_OUTPUT.PUT_LINE('COL3 '||RC.COL3);
    END LOOP;
    INSERT INTO TEMPSAMPLE VALUES('REC05','RAVI','EEE','CK');
    DELETE FROM TEMPSAMPLE WHERE COL1='RECO1';
    UPDATE TEMPSAMPLE SET COL4='CKR' WHERE COL1='RECO2';
    DBMS_OUTPUT.PUT_LINE('VALUE IS '||INVAL);
    DBMS_OUTPUT.PUT_LINE('VALUE IS '||VAL1);
    END VERIFYSAMP;
    END PKGSAMP;
    --CREATING A PACKAGE PKGSAMP2 WHICH USES TEMPSAMPLE TABLE ITSELF
    CREATE OR REPLACE PACKAGE PKGSAMP2 AS
    VAL1 TEMPSAMPLE.COL1%TYPE;
    VAL2 CONSTANT TEMPSAMPLE.COL1%TYPE:='11';
    PROCEDURE VERIFYSAMP(INVAL IN NUMBER);
    END PKGSAMP2;
    CREATE OR REPLACE PACKAGE BODY PKGSAMP2 IS
    PROCEDURE VERIFYSAMP(INVAL IN NUMBER)
    AS
    VAL1 TEMPSAMPLE.COL1%TYPE;
    VAL2 CONSTANT TEMPSAMPLE.COL1%TYPE:='11';
    BEGIN
    VAL1:='RAVI';
    FOR RC IN (SELECT * FROM TEMPSAMPLE)
    LOOP
    DBMS_OUTPUT.PUT_LINE('COL1 '||RC.COL1);
    DBMS_OUTPUT.PUT_LINE('COL2 '||RC.COL2);
    DBMS_OUTPUT.PUT_LINE('COL3 '||RC.COL3);
    END LOOP;
    INSERT INTO TEMPSAMPLE VALUES('REC05','RAVI','EEE','CK');
    DELETE FROM TEMPSAMPLE WHERE COL1='RECO1';
    UPDATE TEMPSAMPLE SET COL4='CKR' WHERE COL1='RECO2';
    DBMS_OUTPUT.PUT_LINE('VALUE IS '||INVAL);
    DBMS_OUTPUT.PUT_LINE('VALUE IS '||VAL1);
    END VERIFYSAMP;
    END PKGSAMP2;
    -- OBJECT STATUS OF PACKAGES
    SELECT OBJECT_NAME,OBJECT_TYPE,STATUS FROM USER_OBJECTS WHERE OBJECT_NAME IN ('PKGSAMP','PKGSAMP2','VWTEMPSAMPLE');
    OBJECT_NAME   OBJECT_TYPE  STATUS*
    VWTEMPSAMPLE     VIEW     VALID
    PKGSAMP2     PACKAGE BODY     VALID
    PKGSAMP2     PACKAGE     VALID
    PKGSAMP     PACKAGE BODY     VALID
    PKGSAMP     PACKAGE     VALID
    Alter table TEMPSAMPLE DISABLE constraint PKTEMPSAMPLE KEEP INDEX;
    DROP INDEX PKTEMPSAMPLE;
    --OBJECT STATUS OF PACKAGES AFTER DROPPING INDEX
    SELECT OBJECT_NAME,OBJECT_TYPE,STATUS FROM USER_OBJECTS WHERE OBJECT_NAME IN ('PKGSAMP','PKGSAMP2','VWTEMPSAMPLE');
    OBJECT_NAME   OBJECT_TYPE  STATUS*
    VWTEMPSAMPLE     VIEW     INVALID
    PKGSAMP2     PACKAGE BODY     VALID
    PKGSAMP2     PACKAGE     VALID
    PKGSAMP      PACKAGE BODY     INVALID
    PKGSAMP     PACKAGE     VALID
    Alter table TEMPSAMPLE ENABLE constraint PKTEMPSAMPLE;
    As per the above process, if we observe that drop of index on a table arel lead to invalidation of view which* depends on that table  and all the objects which uses this view will also get invalidated.*
    The above invalidation is being occurred only in Oracle 11g R2, due to which we are facing the issue in our application.
    We got a procedure where we disable a constraint , drop a index and process the insertion/updation into the tables. After successfull insertion/updation, at finally we are enabling the constraint.
    This worked fine with previous releases of oracle 11g R2 , where as we recently migrated to 10g R2 which was leading to invalidation of all packages which uses the view , and in the application which uses previous db sessions are unable to access the invalidated package and raising an exception.
    Please provide the solution if any possible

    I tested the behavior in 10.2.0.4 and 11.2.0.3
    In 10.2.0.4, The view was valid if we disabled the constraint using the keep index option but it became invalid after dropping the index. SO i guess you are making them as unusable and rebuilding them after data load.
    in 11.2.0.3, The view became invalid as soon as we disabled the constraint using the keep index option.

  • Pivot Tables in Oracle BI Answers Dashboard

    Hi All ,
    I have just moved from MSBI Reports developer role to Oracle BI Answer Dashboard Reports . I have a requirment where i need to update the report like this :
    A1     B1     C1     D1
    D2D     D2     AC     1
    D2D     D3     AC     3
    D2D     D4     AC     4
    D2D     D5     AC     12
    D2D     D2     BC     2
    D2D     D3     BC     1
    D2D     D4     BC     1
    D2D     D5     BC     1
    D2D     D2     BC     3
    D2D     D3     AC     4
    D2D     D4     AC     12
    A2C     D5     AC     2
    A2C     D2     AC     1
    A2C     D3     BC     1
    A2C     D4     BC     1
    A2C     D5     BC     3
    C2W     D2     BC     4
    C2W     D3     BC     12
    C2W     D4     AC     2
    C2W     D5     AC     1
    But I need the report in the below format , I can see something Pivoting , in MSBI i can use Matrix and convert it :
    Sum of D1          
    A1     B1     Total
    A2C     D2     1
         D3     1
         D4     1
         D5     5
    A2C Total          8
    C2W     D2     4
         D3     12
         D4     2
         D5     1
    C2W Total          19
    D2D     D2     6
         D3     8
         D4     17
         D5     13
    D2D Total          44
    Grand Total          71
    Please help me create the same . I will be very thankfull to you all .
    Regards ,
    Nidhi Bhardwaj

    you can go for Individula column level summation in Pivot view ,try to edit the pivot view there you can find options..

  • Creating a Crosstab/Pivot report in Oracle Apex

    Hello,
    I want to create a matrix view of a report in the following format. tried a lot of ways llike data pivoting, etc. but most of the ways use aggregate functions.
    format in which i require data is:
    ID NAME LEVEL PROJECT LOCATION ORACLE FORMS ORACLE REPORTS JAVA C++
    AAA123 ABC 2 AB AC Expert Aware Expert
    AAA124 DEF 3 BC AD Expert Proficient Aware
    The data in the table/view is in the format:
    ID NAME LEVEL PROJECT LOCATION Description Proficiency_ID
    AAA123 ABC 2 AB AC ORACLE FORMS Expert
    AAA123 ABC 2 AB AC ORACLE REPORTS Aware
    AAA123 ABC 2 AB AC JAVA Expert
    and similarly for other ID's.
    Since i need character values, aggregate functions would not be of much use.
    Thanks
    Varun
    Can anyone help me with this????

    Hi Arnaud,
    Saw the documentation that you had added and thanks for that..........but it is using sum(decode(...................
    which is an aggregate function but when i want to print character values for a certain distinct column value, that is where i am facing a problem..
    Hope you understood what i am saying:
    the id, name, level, prject, location will remain uniques and then i want proficiency to be put against each technology in a single row with al the technologies being disitnct columns..
    Thanks
    Varun

  • SYS packages are invalid in oracle 10g (10.2.0.4)

    I am using Oracle 10g (10.2.0.4) in AIX 6.1 server . According to OEM advice I remove the 'utl_file' privelege
    from PUBLIC user . In that moment I get some packages of the 'SYS' schema invalid . I again give the
    grant permission of the 'UTL_FILE' to PUBLIC user but packages of the SYS schema are remain invalid .
    I compile the packages several times but the problem in not solved . If one package make valid
    then other package goes to INVALID during compiling . In this moment, How can I Enable the
    SYS user's package .The problem is related only with the packages & views now ...
    Would anybody plz help me now ...

    shipon_97 wrote:
    I am using Oracle 10g (10.2.0.4) in AIX 6.1 server . According to OEM advice I remove the 'utl_file' privelege
    from PUBLIC user . In that moment I get some packages of the 'SYS' schema invalid . I again give the
    grant permission of the 'UTL_FILE' to PUBLIC user but packages of the SYS schema are remain invalid .
    I compile the packages several times but the problem in not solved . If one package make valid
    then other package goes to INVALID during compiling . In this moment, How can I Enable the
    SYS user's package .The problem is related only with the packages & views now ...
    Would anybody plz help me now ...Try compiling all the objects with "UTLRP.sql" on the server, then check invalid objects.
    conn / as sysdba
    @?/rdbms/admin/utlrp.sql Regards
    Z.K.
    http://oracleendeavor.blogspot.com/

  • Equivalent to the Pivot command on Oracle 10g

    Hi,
    I have a requirement where i want change the below statement so it pivots on the day of the week
    select periodid, entrydate, duration
    from period
    where period_id = xxxx
    The above statement will return 7 records for each of the days of the week.
    I want these 7 days to become columns.
    Is there a way I can change this so is it
    select period_id_monday, monday_duration, period_id_tuesday, tuesday_duration,
    period_id_wednesday, wednesday_duration, period_id_thursdayday, thursday_duration,
    period_id_friday, friday_duration
    without having 7 separate sub queries.
    Pivot command in SQL server is only for group functions from what I remember
    Regards
    Stephen

    You could have googled or searched the forums! The method is
    select max(decode(to_char(entrydate, 'fmDAY', 'nls_date_language=english'), 'MONDAY', periodid)) monday_perodid,
           max(decode(to_char(entrydate, 'fmDAY', 'nls_date_language=english'), 'MONDAY', duration)) monday_duration,
    from   perod
    where  period_id = xxxxleaving you to fill in the blanks...
    Edited by: Boneist on 01-Jul-2009 12:01

  • Crosstabs or Pivot table using oracle 11g

    Hi All,
    I want to pivot my table and create something like below:
    I have table in this format
    Output     Detail     Objective     Measure
    NVM     CSV     Some text     some text
    VS     F&M     Some text     somet text
    I want it to display like on page
    Output: NVM
    Detail: CSV
    Objective: Some text
    Measure: some text
    Output: Vs
    Detail:CSV
    Objective: Some text
    Measure: Some text
    Any idea how to do it?
    Thanks in advance

    Pivot does not appear to be necessary. Create a standard report using one of the default: vertical report... built-in report templates, or the Value Attribute Pairs template from the current theme.
    (Please update your forum profile with a real handle instead of "858002".)

  • Pivot Query on Oracle 10g

    Table Structure
    GRP_NR Values
    1 A
    1 B
    2 A
    2 B
    2 C
    3 A
    3 B
    3 C
    N A
    N B
    N C
    I would like to convert the above structure into the following. I prefer to have it as sql query, but open to plsql solution too.
    1 2 3 ..................... N
    A A A ..................... A
    B B B ..................... B
    . C C ..................... C
    I am finding it quite a challenge to do it. especially to make it dynamic.
    I will appreciate your help.

    With model clause.
    Regards salim.
    select GRP_NR, substr( string, 2 ) as string
    from t
    model
    return updated rows
    partition by ( GRP_NR )
    dimension by ( row_number() over (partition by GRP_NR ORDER BY val asc) as position )
    measures ( cast( val as varchar2(1000) ) as string )
    rules
    upsert
    iterate(1000 )
    until ( presentv(string[iteration_number+2],1,0) = 0 )
    ( string[0] = string[0] || ',' || string[iteration_number+1] )
    order by GRP_NR ;
    SQL> with t as (
      2  select 1 GRP_NR, 'A' val from dual union all
      3  select 1 ,'B' val from dual union all
      4  select 2 ,'A' val from dual union all
      5  select 2 ,'B' val from dual union all
      6  select 2 ,'C' val from dual union all
      7  select 3 ,'A' val from dual union all
      8  select 3 ,'B' val from dual union all
      9  select 3 ,'C' val from dual )
    10  select GRP_NR, substr( string, 2 ) as string
    11  from t
    12  model
    13  return updated rows
    14  partition by ( GRP_NR )
    15  dimension by ( row_number() over (partition by GRP_NR ORDER BY val asc) as position )
    16  measures ( cast( val as varchar2(1000) ) as string )
    17  rules
    18  upsert
    19  iterate(1000 )
    20  until ( presentv(string[iteration_number+2],1,0) = 0 )
    21  ( string[0] = string[0] || ',' || string[iteration_number+1] )
    22  order by GRP_NR ;
        GRP_NR STRING
             1 A,B
             2 A,B,C
             3 A,B,C
    SQL>

  • APEX 3.2 -ORACLE 10G - PIVOT QUERY

    Hello, i searched around the forum and i cound't find an answer to this specific matter, although i saw some replies that were close...
    i need to creat a form based on a pivot query. but oracle 10g doesn't support that feature so i hope someone can help me.
    my problem is that the number of columns will be variable. here's an example:
    ORIGINAL TABLE
    NAME     KMS     VEHICLE
    Joe     100     AUDI
    Tom     300     VW
    Mark     150     FORD
    Ann     250     FORD
    Joe     200     VW
    Tom     123     AUDI
    Mark     345     AUDI
    Ann     45     VW
    Joe     6     FORD
    Tom     67     FORD
    Mark     46     VW
    Ann     99     AUDI
    DESIRED RESULT
    Joe     Tom     Mark     Ann     Vehicle
    100     123     345     99     AUDI
    6     67     150     250     FORD
    200     300     46     45     VW
    the new columns will be the values in the old NAME column. BUT these values are variable. today its joe,tom,mark and ann tomorrow it could be silvia, tony,richard,harry , william and jane. this means the usuall replies i saw, using MAX and DECODE will not apply because i never know what values or how many values are in this column. with pivot i can get this done.... how can i do this in oracle 10g? is there a way to creat a ser function Pivot somehow? ideas?
    thanks!
    Mark Pereira
    Edited by: 899716 on Jul 18, 2012 12:02 PM

    This is the Oracle Forms forum. Post your question in the SQL forum.
    Tip: check the latest Oracle Magazine (July/August 2012). There is an article by Tom Kyte about the same question.
    http://www.oracle.com/technetwork/oramag/magazine/home/index.html

Maybe you are looking for

  • Custom Resource Renderer not coming on Implementing Flexible UI Components

    HI, I am using the Sneak Preview NW2004s SP9 with TREX . I have to modify the search result list as returned by the TREX using the default search, basically have to include a custom Link based on the resource name. I am trying to run the examples fro

  • Variable url in external library linkage?

    I'm setting up a template that needs to import artwork for buttons. There are three different button sets to choose from. Each button set has 12 different movie clips in it, but not all of them are used in the same place at the same time. A shared li

  • Where is thet *.dll (TV Anywhere Master)

    I look... but didnt find any message about anyone having problem with Windows ME and driver for TV Anywhere Master. I cant stand that Im the only one who have problem with drivers on Win ME, simply reports that cant find tsbyds.dll or  tsbyd somethin

  • ORBO - Daily sales report includes Order Init Transaction?

    Hi All, Can you please any one guide me in ORBO application,the daily sales report includes the Order init transaction details? Appreciate your help. Hari.

  • Inter company stock transfer(billing)

    hi wht is th procedure for inter company stock transfer(billing) hw it is done and whr it is dne i am able to transfer th material but invoice is not genetrated whr it shud get generate Regards Vinit