related query pivot

Hi guru,.

I am currently using the version below:
BANNER                                                                         
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production           
PL/SQL Release 11.2.0.1.0 - Production                                           
CORE     11.2.0.1.0     Production                                                         
TNS for 32-bit Windows: Version 11.2.0.1.0 - Production                          
NLSRTL Version 11.2.0.1.0 - Production
I need help on sub condition.

The structure of the Table is
CREATE TABLE sales_detail_tab (
Geography VARCHAR2(30),
product       VARCHAR2(30),
currency      VARCHAR2(30),
"01-Jan-2013"  NUMBER(5),
"01-Feb-2013" NUMBER(5),
"01-Mar-2013" NUMBER(5));
Records in a table:
INSERT INTO sales_detail_tab  VALUES('india','dell','rupee',20,30,40);
INSERT INTO sales_detail_tab  VALUES('japan','lenova','pound',30,60,70);
In the sales_detail_tab "1 January 2013" is the name of the column, about this value is the NUMBER OF SALES during the month.

I need the output as:
india|dell|rupee|01-Jan-2013|20
india|dell|rupee|01-Feb-2013|30
india|dell|rupee|01-Mar-2013|40
japan|lenova|pound|01-Jan-2013|30
japan|lenova|pound|01-Feb-2013|60
japan|lenova|pound|01-Mar-2013|70
Please help me on this requirement.



Thanks and greetings
select * from sales_detail_tab

        UNPIVOT (quantity FOR cnt IN 

                 ("01-Jan-2013","01-Feb-2013","01-Mar-2013")

                )

Tags: Database

Similar Questions

  • Pls tell me the difference between the 2 queries which is related with PIVOT

    Hi all

    While I was looking for the use of the PIVOT operator, in one of the sites I've found the following query is requested to run
    SELECT  *
      FROM  (SELECT job,
                    sum(decode(deptno,10,sal)) DEPT10,
                    sum(decode(deptno,20,sal)) DEPT20,
                    sum(decode(deptno,30,sal)) DEPT30,
                    sum(decode(deptno,40,sal)) DEPT40
               FROM scott.emp
           GROUP BY job)
    ORDER BY 1;
    so I ran the following query (IE, without first part ' SELECT * FROM ')
    SELECT job,
                    sum(decode(deptno,10,sal)) DEPT10,
                    sum(decode(deptno,20,sal)) DEPT20,
                    sum(decode(deptno,30,sal)) DEPT30,
                    sum(decode(deptno,40,sal)) DEPT40
               FROM scott.emp
           GROUP BY job
    We see that for the two motions, I get the same output as follows:
    JOB     DEPT10     DEPT20     DEPT30     DEPT40
    ANALYST          6000          
    CLERK     1300     1900     950     
    MANAGER     2450     2975     2850     
    PRESIDENT     5000               
    SALESMAN               5600     
    could you pls tell me what is the exact difference between 2 requests above and in which respective cases, those that should be used?

    Kind regards

    Yamen

    Published by: Francis 22 Sep, 2009 11:07

    Hello

    SELECT  *
      FROM  (SELECT .........................)
    

    I would quote the internal sql as subquery for my reference in this post.
    That is to say.

    Select * from (subquery)

    You'd be using the way above for many reasons, some grounds are
    (1) you want to display only some columns of all the columns in the subquery (less required by anyone)
    for example

    select first_name, last_name, salary from
          (select first_name, last_name, salary, dept_id, manager from ......)
    

    (2) you want to view / use a few lines on all the rows in the subquery (filtering of lines)

    for example

    select * from
        (select first_name, last_name, salary, dept_id, manager from .....)
       where salary > 5000
    

    (3) you want to reach the exit of with another table subquery

    for example

    select * from
        (select first_name, last_name, salary, dept_id, manager from ......) e,
        department d
        where d.dept_id = e.dept_id
    

    (4) you wish to the output to the format/total of subquery as the use of group by or order by

    for example

    select max(salary), dept_id
        from (select first_name, last_name, salary, dept_id, manager from .....)
        group by dept_id
         order by dept_id
    

    Concerning
    Anurag

  • Problem with REGEXP_SUBSTR related query.

    I'm having a problem with this query:

    SELECT *.

    FROM (SELECT REGEXP_SUBSTR ('{SUMMER} |)) {} POINT OF SALE}',

    '({)([A-Z]+ *[A-Z]*)(})',

    1,

    LEVEL,

    'I,

    2)

    Val

    OF THE DOUBLE

    CONNECT BY LEVEL < =.

    REGEXP_COUNT ('{SUMMER} |) {} POINT OF SALE} ',' |') + 1)

    WHERE val IS NOT NULL

    I need the output in 2 rows in this format:

    VAL

    ====

    SUMMER

    POINT OF SALE

    But I'm not able to get the "POINT OF SALE" in the output due to space, or perhaps another reason. Anyone can correct my query?

    So, you want something like that?

    SQL > ed
    A written file afiedt.buf

    1. SELECT *.
    2 (SELECT REGEXP_SUBSTR ('{SUMMER} |)) {} POS} ',' [^ {|}] + ", LEVEL, 1, 'i') val"
    3 FROM TWO
    4. CONNECT BY LEVEL<>
    5 REGEXP_COUNT ('{SUMMER} |) {} POINT OF SALE} ',' [^ |] +'))
    6 * val WHERE IS NOT NULL
    SQL > /.

    VAL
    ------------------------
    SUMMER
    POINT OF SALE

    SQL >

  • Help on query Pivot - 11g

    I'm working on the database in Oracle 11 g.

    I'm trying to join two tables with the following data
    tab1
    ----------
    contact_id
    full_name
    email_id
    tel_no
    tab2
    ----------
    scr_id
    org_id (foreign key to org table)
    contact_id (foreign key to contact_id in tab1)
    contact_type (will take values 'ID','IDE','DC')
    If an organization can have multiple types of contacts as "ID", "IDE", "DC".

    I want that they should appear
    org_id
    id_full_name
    id_email_id
    id_tel_no
    ide_full_name
    ide_email_id
    ide_tel_no
    dc_full_name
    dc_email_id
    dc_tel_no
    I am using code similar to the following (this product full name for 3 values contact types while I needed to produce identification of email and such no columns too)
            SELECT * 
         FROM
         (
              SELECT  org_id,
                            full_name,
                   contact_type
                    FROM
                   tab1,
                   tab2
                    WHERE
                   tab1.contact_id = tab2.contact_id 
         )
         PIVOT
         (
              MAX(full_name)
              FOR contact_type
              IN ('ID','IDE','DC')
         )
    Any suggestions?

    Hello

    Instead of a single aggregate early in the PIVOT clause function, use a list separated by commas of the aggregate functions.
    Since you post CREATE TABLE and INSERT the data from the sample statements, I will use scott.emp to illustrate.
    Say we want to see the ename, sal and hiredate for the first 3 employees (in alphabetical order) for each job:

    WITH     got_r_num     AS
    (
         SELECT     ename, job, sal, hiredate
         ,     ROW_NUMBER () OVER ( PARTITION BY  job
                                   ORDER BY          ename
                           )         AS r_num
         FROM    scott.emp
    )
    SELECT       *
    FROM       got_r_num
    PIVOT       (     MAX (ename)     AS ename
           ,     MAX (sal)     AS sal
           ,     MAX (hiredate)     AS hiredate
           FOR      r_num IN (1, 2, 3)
           )
    ORDER BY  job
    ;
    

    Output:

    JOB       1_ENAM 1_SAL 1_HIREDAT 2_ENAM 2_SAL 2_HIREDAT 3_ENAM 3_SAL 3_HIREDAT
    --------- ------ ----- --------- ------ ----- --------- ------ ----- ---------
    ANALYST   FORD    3000 03-DEC-81 SCOTT   3000 19-APR-87
    CLERK     ADAMS   1100 23-MAY-87 JAMES    950 03-DEC-81 MILLER  1300 23-JAN-82
    MANAGER   BLAKE   2850 01-MAY-81 CLARK   2450 09-JUN-81 JONES   2975 02-APR-81
    PRESIDENT KING    5000 17-NOV-81
    SALESMAN  ALLEN   1600 20-FEB-81 MARTIN  1250 28-SEP-81 TURNER  1500 08-SEP-81
    

    I hope that answers your question.
    If not, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all tables and also post the results desired from these data.
    Explain, using specific examples, how you get these results from these data.

  • TPC-2106 t related query

    I want to connect TPC-2106 t with the CompactRIO-9014 cable RS-232 (serial). Could I connect to end of data i.e. communication to send orders in real time PTC VI, who will present the CompactRIO and receive data from the PTC something generating VI real time indicator. If yes then please suggest me how do I do programming?

    You will not be able to do this with series. Is there a reason that you can't do it via ethernet?

    If you are using ethernet, you need to use shared variables or TCP/IP to publish the cRIO data and then program the TPC to read that data and display them on the screen. If you plan to use shared variables, you can deploy the variables shared on the cRIO himself. If you need to see some examples, open finder example (help-> find examples) and access Toolkit and Modules-> Touch Panel-> Networking. If you have any other questions, after return.

  • Related query date

    create or replace procedure (v_txndatetime as)
    is
    v_ename varchar2 (10);
    Start
    Select ename from v_ename from emp where txn_datetime between v_txndatetime and v_txndatetime;
    end;
    /

    To this date, I want to add these two lines dynamically how can I add can you show me by example:


    (1) 12: 00

    (2) 23:59:59

    Test_Table desc:


    Ename varchar2 (10)
    date of txndatetime

    Let's see if we can do with what I'm bored and waiting for a trial to test at the end BTW: This gives you and your instructor will probably be omitted for cheating.

    CREATE OR REPLACE PROCEDURE test(txnDateTime IN emp.hiredate%TYPE) AUTHID DEFINER IS
     empName  emp.ename%TYPE;
     EIString VARCHAR2(256);
     BegDate  DATE := TRUNC(txnDateTime);
     EndDate  DATE := TRUNC(txnDateTime)+(1-(1/86400)); -- fixed from earlier typo
    BEGIN
      dbms_output.put_line(TO_CHAR(BegDate));
      dbms_output.put_line(TO_CHAR(EndDate));
    
      EIString := 'SELECT ename FROM emp WHERE hiredate BETWEEN :B1 AND :B2';
      EXECUTE IMMEDIATE EIstring INTO empName USING BegDate, EndDate;
    
      dbms_output.put_line(empName);
    EXCEPTION
      WHEN NO_DATA_FOUND THEN
        dbms_output.put_line('Too Many Rows because the design is flawed and can not handle more than one return value');
    END test;
    /
    
    set serveroutput on
    
    exec test(TO_DATE('17-NOV-1981'));
    

    of course, now that you have the name of the employee in empName you need to do something with it, because now what is happening is absolutely nothing.

    For all those who want to improve it and it can be done, read Bryn Llewellyn on SQL and PL/SQL white paper available on my site.
    www.morganslibrary.org
    You will find a link to it on the homepage.

    Published by: damorgan on August 21, 2012 20:45

  • Oracle Listner and tnsnames related query

    Hello

    Version 10.2.0.1.0 DB.

    I have 3 databases running on my computer.


    (Entry Listner)
    listener.ora # Network Configuration file: D:\oracle_2\network\admin\listener.ora
    # Generated by Oracle configuration tools.

    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\oracle_2)
    (= Extproc PROGRAM)
    )
    )

    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.180.1)(PORT = 1521))
    )
    )



    (Tnsnames entry)
    tnsnames.ora # Network Configuration file: D:\oracle_2\NETWORK\ADMIN\tnsnames.ora
    # Generated by Oracle configuration tools.

    DEV =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.180.1)(PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVER = SHARED)
    (SERVICE_NAME = DEV)
    )
    )

    CPDB =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.180.1)(PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = cpdb)
    )
    )

    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.180.1)(PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    )
    )

    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1))
    )
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    )
    )



    My request is as follows.
    I DEV, ORCL, names of CPDB db on my local name machine.service is the same as db_name.

    for DEV tnsnames entry is
    DEV =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.180.1)(PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVER = SHARED)
    (SERVICE_NAME = DEV)
    )
    )

    When a client wants to connect to the database DEV, above the entrance will be configured in tnsnames.ora and name WHAT DEV services can be used on the client side.

    Now, when implement us actully connection first TCP protocol is used for communication, then 192.168.180.1 is port 1521 is used.

    Now my question is how this respect establishing knows to connect to the database if there is more data on the same host? who is new tnsnames.ora SERVICE_NAME = DEV parameter indicate as db_name to connect to db Server?

    See my TNS explanations at edstevensdba.wordpress.com

  • Outsource related query EAS users

    Hello

    In the new facility, where should we go outsource users (with EE click right 'Security' click Externalize users). I want to say should I go for the user externalse:

    (1) after installation/configuration of shared services, essbase client, administrative services and Essbase server).

    (2) after the installation of the Shared services, essbase, Essbase server, administration services and planning client.

    (3) any other suggestion please.

    Version 9.3.1 windows 2003

    Hello

    Installation and configuration of shared services - check that you can connect to shared services
    Installation and configuration of essbase - check that you can connect to essbase maxl VHF, esscmd
    Install/configure EAS - Connect to EAS Add Server essbase, NEA shared services mode.
    Delete essbase EAS server, add server essbase EE but using external authentication is TICKING...
    Go to the other products...

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Related query FORALL

    Hello
    I am trying to run the following procedure:

    CREATE or REPLACE PROCEDURE SP_TA_TRADE

    IS
    constant ci_limit: = 10000;
    CURSOR tbl_cur
    IS
    SELECT rowid FROM CFDG_OWNER.TA_TRADE_TEST WHERE TRADEID IN(SELECT TRADEID)
    OF TEMP_TRADEID_TEST);

    TYPE typetemp_tbl IS TABLE OF tbl_cur % ROWTYPE
    INDEX BY PLS_INTEGER;

    temp_tbl typetemp_tbl;

    BEGIN
    OPEN tbl_cur.
    LOOP
    EXTRACTION tbl_cur
    LOOSE COLLECTION temp_tbl LIMITED ci_limit;

    FORALL indx IN temp_tbl. FIRST... temp_tbl. LAST
    delete from TA_TRADE_TEST where rowid = temp_tbl (indx);
    COMMIT;

    WHEN temp_tbl EXIT. COUNTY < ci_limit;.

    END LOOP;

    CLOSE Tbl_cur;
    END SP_TA_TRADE;

    The foregoing is gving me the error: PL-00382: expression is of type wong.
    in the line:
    delete from TA_TRADE_TEST where rowid = temp_tbl (indx);

    Could you please correct what I'm doing wrong?

    Change this

    TYPE typetemp_tbl IS TABLE OF tbl_cur % ROWTYPE INDEX BY PLS_INTEGER;

    TO

    Typetemp_tbl TYPE TABLE IS TO ROWID

    And try your old code.

  • Update query help

    Hello


    Hello
    Can be simple, but I'm still learning...
    I want to update the value column for table1 based on the table2 by using the SQL query.
    TABLE1               TABLE2     
    Name        Value     Name       Value
    A                 A       10
    B                 B       20
    C                 C       30
    B                        
    B                        
    C                             
    A                             
    B     
    Thank you
    Killian

    Hey Killian,

    You can use the joint related query to update the value of table1 based on the table2

    # If several passenger/PNR are in table2 then update table1 will fail because of multiple returned records
    # When no record is found in table2, then will have the value NULL

    UPDATE TABLE1 t1
    SET t1.value = ( SELECT t2.value
                     FROM TABLE2 t2
                     WHERE t1.name = t2.name
                     ) 
    
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
    
  • How to display year values in a wise query

    Hi all

    My requirement is that I have 3 years of data. I need to display these year-wise data in different tables at the same time of for example, suppose if I have data 2010,2011,2012 then I need to view 2010 data in a table, 2011 data in the following table and 2012 in a different table in the same request. At one point, I should get every three years of data, but in different tables.

    Here the sense-data table should be separated year_wise.

    How can I achieve this?

    Thanks in advance,
    Kind regards
    Sindhu

    Hello

    Create the query 'Pivot Table View' and add the year column in the view and then drag this year column in the tab 'Section' in pivot view tab. So it's going to separate the data resulted in the three section per year wise in a single query saved.

    I hope that helps!

  • Conversion of the relational DB queries in XML

    Hello

    I'm trying to convert a relational query in XML usign xmlelement, xmlforest etc.. I need an output similar to the following.
     <ContactNumber CommunicationMediaType="Telephone" ContactHours="9:00AM - 5:00PM">
      <ContactNumberElement ElementType="CountryCode">61</ContactNumberElement> 
      <ContactNumberElement ElementType="AreaCode">2</ContactNumberElement> 
      <ContactNumberElement ElementType="LocalNumber">94338765</ContactNumberElement> 
      </ContactNumber>
    I know that I can do the xmlelement name of ContactNumberElement and set its attribute CountryCode then codeZone and format but how can I make 61, 2 and 9433875 (their values respectively) appear without any tag because it is in the output above.

    Version 10.2.0.1.0 Oracle
    Thank you

    Hello

    It is explained in the doc:

    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14259/xdb13gen.htm#sthref1500

    For example,.

    with sample_data as (
      select '9:00AM - 5:00PM' as contact_hours
           , 61 as country_code
           , 2 as area_code
           , 94338765 as local_number
      from dual
    )
    select xmlelement("ContactNumber"
           , xmlattributes( 'Telephone' as "CommunicationMediaType"
                          , contact_hours as "ContactHours" )
           , xmlelement("ContactNumberElement", xmlattributes('CountryCode' as "ElementType"), country_code)
           , xmlelement("ContactNumberElement", xmlattributes('AreaCode' as "ElementType"), area_code)
           , xmlelement("ContactNumberElement", xmlattributes('LocalNumber' as "ElementType"), local_number)
           )
    from sample_data
    ;
    
  • Creating a line chart PDF-report generator model with APEX

    Hi all

    I would like to create a PDF report with a chart using Apex and the generator plugin model for Word.

    My Select statement, which I use as the report (shared components) query returns the data in the following way:

    Date Description amount

    ----                 -----                -----

    01.01.2014 has 1.2

    02.01.2014 has 1.3

    03.01.2014 has 0.5

    01.01.2014 B 0.3

    02.01.2014 B 4.5

    03.01.2014 B 4.8

    The XML document obtained, which creates the APEX, is:

    <? XML version = "1.0" encoding = "UTF-8"? >

    < DOCUMENT >

    < DATE > 08/10/2014 < / DATE >

    ADMIN < user_name > < / username >

    < > 102 APP_ID < / APP_ID >

    < APP_NAME > Oracle APEX AppBuilder < / APP_NAME >

    < /Title > < TITLE > graph

    < REGION ID = "0" >

    rowset <>

    < ROW >

    < date > < / Date >

    < DESCRIPTION > < / DESCRIPTION >

    < value > < / value >

    < / ROW >

    < / LINES >

    < / REGION >

    < / DOCUMENT >

    What I would like to have is a line graph with:

    • Date on the x-axis
    • Length of value on axis y
    • for each Description of Type single line

    The names and numbers of the discription varies a lot (as well as the values that they are related to the Description and date).

    What I tried:

    A lot, trying to make this work for 4 weeks, on and outside.

    Tried to edit the chart XML in Word, edit the SQL query, pivot the result SQL to get the Descriptions as columns and of course a lot of Googling.

    Please let me know if you have any advice.

    Thanks in advance,

    Thomas

    Oracle DB: 11g

    ApEx Version: 4.2.5.00.08

    Last Oracle BI Builder Plugin for Word template

    Finally found my Solution. What I was looking for is:

  • DataFile resizing is not that simple. Is it?

    Version: 11.2.0.2
    OS: RHEL 5.4

    We have a tablespace with a data file. It's 32 GB in size (BYTES and MAXBYTES)
    The main schema using this scheme was abandoned. A value of only 56MB segments remain in this table space.

    To save space in the file system (it's a diskgroup in fact), I wanted to resize this data file.
    So in principle I could resize this datfile for as low as 57 mb. When I tried to resize it to 1 GB, it did not. When I tried to reduce it to 2 GB, that didn't work either!


    select tablespace_name, file_name, 
    bytes/1024/1024/1024 BYTESGB, 
    maxbytes/1024/1024/1024 MAXBYTESGB from dba_data_files 
    where tablespace_name = 'BRMCT_HSP_TBSP';
    
    TABLESPACE_NAME                FILE_NAME                                                  BYTESGB MAXBYTESGB
    ------------------------------ ------------------------------------------------------- ---------- ----------
    BRMCT_HSP_TBSP                 +DATA/apptcukh/datafile/brmct_hsp_tbsp.1927.796296219   31.9999847 31.9999847
    
    
    -- this 32gb datafile is almost empty
    
    SQL > select SUM(bytes/1024/1024/1024) sizeMB from dba_free_space where tablespace_name = 'BRMCT_HSP_TBSP';
    
        SIZEMB
    ----------
    31.9439087
    
    
    
    SQL > alter database datafile '+DATA/apptcukh/datafile/brmct_hsp_tbsp.1927.796296219' resize 1g;
    alter database datafile '+DATA/apptcukh/datafile/brmct_hsp_tbsp.1927.796296219' resize 1g
    *
    ERROR at line 1:
    ORA-03297: file contains used data beyond requested RESIZE value
    I had a related query HWM below post OTN. If I understand correctly I could resize my tablespace to only 27.4 GB!

    ORA-03297: file contains data beyond the requested value of RESIZING
    SQL > select max((block_id+blocks)*(bytes/blocks)/1024/1024) HWM from dba_extents where file_id = 43;
    
           HWM
    ----------
         28057
    
    SQL > select max((block_id+blocks)*(bytes/blocks)/1024/1024/1024) HWM from dba_extents where file_id = 43;
    
           HWM
    ----------
    27.3994141
    -I found the same query to
    http://www.Oracle-CKPT.com/how-to-shrink-datafiles-adjusting-HWM/

    This confirms this finding
    select file_name,
           ceil( (nvl(hwm,1)*&&blksize)/1024/1024 ) smallest,
           ceil( blocks*&&blksize/1024/1024) currsize,
           ceil( blocks*&&blksize/1024/1024) -
           ceil( (nvl(hwm,1)*&&blksize)/1024/1024 ) savings
    from dba_data_files a,
         ( select file_id, max(block_id+blocks-1) hwm
             from dba_extents
            where tablespace_name = 'BRMCT_HSP_TBSP'
            group by file_id ) b
    where a.file_id = b.file_id(+) 
    and a.tablespace_name = 'BRMCT_HSP_TBSP'
    order by savings desc
    
                                                            Smallest
                                                                Size  Current    Poss.
    FILE_NAME                                                  Poss.     Size  Savings
    ------------------------------------------------------- -------- -------- --------
    +DATA/apptcukh/datafile/brmct_hsp_tbsp.1927.796296219     28,057   32,768    4,711
                                                                              --------
    sum                                                                          4,711
    Let me recap: in my 32 GB datafile that was almost complete once has only 56 MB of a data value now. But I can resize my file of data only up to 28 GB! It is a waste of space in our disk group. Is there a solution?

    You can't free up space from a data file before the last object allocated in the file. So if you deleted the user whose objects Indians ate most all extensions allocated in the tablespace you need to do before you try to shring file is to move all remaining allocated objects for the data file. Alter table move and orders to alter index rebuild can be used for most tables/indexes to perform this task. For changing tables on which table move is not legal, i.e., tables with columns long or long raw, you can export, drop and import tables to reallocate them forward logic of the file.

    HTH - Mark D Powell.

  • HRMS security configration with EBS

    Hi all

    I'm trying to implement HRMS to OLIVIER 7.9.6.3 security. I activated the SSO, and users can connect thorugh EBS to OBIEE. According to the documentation, application role name should be identical to the name of responsibility in the EBS R12. Please can someone let me know how to see standard resposnblities HRMS in EBS. I asked fnd_RESPONSIBILITY_vl table but failed to find the bottom of application roles (which should be responsibilities in EBS)
    (a) security based on HR Org
    (b) security of Personnel human resource data

    Also a user display HRMS reports, to assign to a particular responsibility HRMS this and it should also get links to naviagte OBIEE. Cam someone provide any document on how it is currently, I created a repsonblity OBIEE in EBS and an application role with the same name to OBI. Now, I want this user to have access HRMS.

    Kind regards
    Sandeep

    Hi Tina,

    His work for the 'facilities' below

    Oracle eBS R12
    Oracle 10g BI
    Oracle BIA 7.9.6.1

    and

    Oracle eBS R12
    Oracle BI 11g
    Oracle BIA 7.9.6.3

    No special configuration.

    What do you see in the logfile (s) for the related query?

    Wat happens when you try with the other security data (operating unit, society for example).

    Thank you.

    Daan Bakboord
    http://obibb.WordPress.com

Maybe you are looking for