Oracle group by 10 minutewith  interval  using rollup

HI,
PLEase check the below query
When I am trying to run this query ALONE
Select TO_CHAR(TRUNC(c.TIME),'MM/DD/YYYY')||''||substr(c.TIME,10,3) ||':'||
LPAD (( TO_CHAR (c.TIME, 'MI') - MOD (TO_CHAR (c.TIME,'MI'), 10)),2,'0') slice from ILCL c
OUPUT IA M GETTTING:
08/07/2011 10:20
08/07/2011 10:30
08/07/2011 10:40
But I run the same query in the below and using that column with group by it is throwing error in group by clause
BECAUSE USING ROllUP
Actually the C.time data type is timestamp
Data base column structure:
COLUMN DATATYPE   FORMAT-----Data loaded in the data base
TIME ------(TIMEStTAMP) ---07-AUG-11 10.29.27.746000000 AM
SELECT 'R' TYPE, c.date,
substr(c.Time,27,29) am r pm,
TO_CHAR(TRUNC(c.TIME),'MM/DD/YYYY')||''||substr(c.TIME,10,3) ||':'||
LPAD (( TO_CHAR (c.TIME, 'MI') - MOD (TO_CHAR (c.TIME,'MI'), 10)),2,'0') slice,
-- TO_CHAR(TRUNC(c.TIME),'MM/DD/YYYY')||''|| substr(c.TIME,10,6) time_slice,
CASE
WHEN type1 = 'py'
THEN 'pyS'
WHEN type1 = 'PV'
THEN 'PV'
WHEN type1 = 'pmg'
AND e.type2 = 'mfy'
THEN 'pmg'
WHEN type1 = 'epmt'
AND e.type2 = 'AT'
THEN 'ACT'
END CT,
CASE
WHEN type1 = 'py'
AND e.type2 = 'EFAUOT'
THEN 'EFAUTO'
WHEN type1 = 'py'
AND e.type2 = 'CA_AUTO'
THEN 'CARD_AUTOFILL'
WHEN type1 = 'pmg'
AND e.type2 = 'mfy'
AND list IS NOT NULL
AND remove_from_service_code_list IS NOT NULL
THEN 'pmg-CHANGED'
WHEN type1 = 'pmg'
AND e.type2 = 'mfy'
AND list IS NULL
AND remove_from_service_code_list IS NOT NULL
THEN 'pmg-REMOVED'
WHEN type1 = 'pmg'
AND e.type2 = 'mfy'
AND list IS NOT NULL
AND remove_from_service_code_list IS NULL
THEN 'p_added'
WHEN type1 = 'epmt'
AND e.type2 = 'AT'
AND c.campaign_type = 'H'
THEN 'ACT_TECH'
WHEN type1 = 'epmt'
AND e.type2 = 'AT'
AND c.campaign_type <> 'H'
THEN 'A_cR'
WHEN type1 = 'PV'
AND type2 = 'SPORT'
AND p.flag = 'N'
THEN 's_iL'
WHEN type1 = 'PV'
AND type2 = 'SPORT'
AND p.flag = 'Y'
THEN 'spkg'
ELSE type2
END type2,
CASE
WHEN event_status_type = 'scss'
THEN 'scss'
ELSE 'FL'
END STS_type,
COUNT (DISTINCT e.ce),
ROUND (AVG (e.elapsed_msec) / 1000) txn_time,
ROUND (AVG (c.elapsed_msec)/1000) call_time
FROM
---ivr_transaction h,
ILC1 e,
ILCL c,
ILEW w,
ILEp p
WHERE
---e.CD = h.CD
w.CD(+) = e.CD
-- AND w.event_id(+) = e.event_id
AND p.CD(+) = e.CD
---- AND p.event_id(+) = e.event_id
AND p.ce(+) = e.ce
AND w.ce(+) = e.ce
AND c.CD = e.CD
AND c.ci = e.ci
--AND e.ce = h.ce
AND e.CD = TRUNC (SYSDATE - 1)
AND c.TIME <> TRUNC (SYSDATE)
AND ( (e.type1 = 'py')
OR (type1 = 'PV')
OR ( type1 = 'pmg'
AND e.type2 = 'mfy'
OR (type1 = 'epmt'
AND e.type2 = 'AT'
GROUP BY 'TCR',
c.CD,
substr(c.TIME,27,29),
TO_CHAR(TRUNC(c.TIME),'MM/DD/YYYY')||''||substr(c.TIME,10,3) ||':'||
LPAD (( TO_CHAR (c.TIME, 'MI') - MOD (TO_CHAR (c.TIME,'MI'), 10)),2,'0'),
--TO_CHAR (c.TIME, 'MI'),
CASE
WHEN type1 = 'py'
THEN 'pyS'
WHEN type1 = 'PV'
THEN 'PV'
WHEN type1 = 'pmg'
AND e.type2 = 'mfy'
THEN 'pmg'
WHEN type1 = 'epmt'
AND e.type2 = 'AT'
THEN 'ACT'
END,
ROLLUP (CASE
WHEN type1 = 'py'
AND e.type2 = 'EFAUOT'
THEN 'EFT_AUTO'
WHEN type1 = 'py'
AND e.type2 = 'CA_AUTO'
THEN 'CARD_AUTOFILL'
WHEN type1 = 'pmg'
AND e.type2 = 'mfy'
AND list IS NOT NULL
AND remove_from_service_code_list IS NOT NULL
THEN 'pmg-CHANGED'
WHEN type1 = 'pmg'
AND e.type2 = 'mfy'
AND list IS NULL
AND remove_from_service_code_list IS NOT NULL
THEN 'pmg-REMOVED'
WHEN type1 = 'pmg'
AND e.type2 = 'mfy'
AND list1 IS NOT NULL
AND list1 IS NULL
THEN 'p_added'
WHEN type1 = 'epmt'
AND e.type2 = 'AT'
AND c.campaign_type = 'H'
THEN 'ACT_TECH'
WHEN type1 = 'epmt'
AND e.type2 = 'AT'
AND c.campaign_type <> 'H'
THEN 'A_cR'
WHEN type1 = 'PV'
AND type2 = 'SPORT'
AND p.flag = 'N'
THEN 's_iL'
WHEN type1 = 'PV'
AND type2 = 'SPORT'
AND p.flag = 'Y'
THEN 'sp'
ELSE type2
END),
ROLLUP (
CASE
WHEN event_status_type = 'scss'
THEN 'scss'
ELSE 'FL'
END)
WHEN I A M TRYING T TO EXCUTE ABOVE QUERY IT SHOING ERROR AT GEOUP BY CLAUSE AS HIGHLITED SAYS (ORA00900------Invalid sql statement) when I cooment one of the roll up sin group by clause it is getting the data but need to have two rollups all case statements are working fine no issues with those on problem with highlited ones or in the bold.Please give me sugeestions ASAP
Thanks
Satya

Hi Kulash,
Very very Thanks for the quick reply .
SELECT     SUBSTR ( TO_CHAR (SYSDATE, 'MM/DD/YYYY HH24:MI')
     , 1
     , 15
     ) || '0'          AS slice
FROM     dual;
This query works fine if we run individually but the same is not runing in the group by clause
Hi Kulash,
Very very Thanks for the quick reply .
SELECT     SUBSTR ( TO_CHAR (SYSDATE, 'MM/DD/YYYY HH24:MI')
     , 1
     , 15
     ) || '0'          AS slice
FROM     dual;
This query works fine if we run individually but the same is not runing in the group by clause .i think because of the rollups . could you pleasae tell me is there any change needed in the group by clause if we are using rollups.Because it showing error in the group by clause as a Invalid sql statement (ora00900)
group by
c.CD,
substr(c.TIME,27,29),
SUBSTR ( TO_CHAR (c.time, 'MM/DD/YYYY HH24:MI')
     , 1
     , 15
     ) || '0'
CASE
WHEN type1 = 'py'
THEN 'pyS'
WHEN type1 = 'PV'
THEN 'PV'
WHEN type1 = 'pmg'
AND e.type2 = 'mfy'
THEN 'pmg'
WHEN type1 = 'epmt'
AND e.type2 = 'AT'
THEN 'ACT'
END,
ROLLUP (CASE
WHEN type1 = 'py'
AND e.type2 = 'EFAUOT'
THEN 'EFT_AUTO'
WHEN type1 = 'py'
AND e.type2 = 'CA_AUTO'
THEN 'CARD_AUTOFILL'
WHEN type1 = 'pmg'
AND e.type2 = 'mfy'
AND list IS NOT NULL
AND remove_from_service_code_list IS NOT NULL
THEN 'pmg-CHANGED'
WHEN type1 = 'pmg'
AND e.type2 = 'mfy'
AND list IS NULL
AND remove_from_service_code_list IS NOT NULL
THEN 'pmg-REMOVED'
WHEN type1 = 'pmg'
AND e.type2 = 'mfy'
AND list1 IS NOT NULL
AND list1 IS NULL
THEN 'p_added'
WHEN type1 = 'epmt'
AND e.type2 = 'AT'
AND c.campaign_type = 'H'
THEN 'ACT_TECH'
WHEN type1 = 'epmt'
AND e.type2 = 'AT'
AND c.campaign_type 'H'
THEN 'A_cR'
WHEN type1 = 'PV'
AND type2 = 'SPORT'
AND p.flag = 'N'
THEN 's_iL'
WHEN type1 = 'PV'
AND type2 = 'SPORT'
AND p.flag = 'Y'
THEN 'sp'
ELSE type2
END),
ROLLUP (
CASE
WHEN event_status_type = 'scss'
THEN 'scss'
ELSE 'FL'
END)
---------------------------TOTAL QUERY----------------------------
SELECT 'R' TYPE, c.date,
substr(c.Time,27,29) am r pm,
SUBSTR ( TO_CHAR (SYSDATE, 'MM/DD/YYYY HH24:MI')
     , 1
     , 15
     ) || '0' slice,
CASE
WHEN type1 = 'py'
THEN 'pyS'
WHEN type1 = 'PV'
THEN 'PV'
WHEN type1 = 'pmg'
AND e.type2 = 'mfy'
THEN 'pmg'
WHEN type1 = 'epmt'
AND e.type2 = 'AT'
THEN 'ACT'
END CT,
CASE
WHEN type1 = 'py'
AND e.type2 = 'EFAUOT'
THEN 'EFAUTO'
WHEN type1 = 'py'
AND e.type2 = 'CA_AUTO'
THEN 'CARD_AUTOFILL'
WHEN type1 = 'pmg'
AND e.type2 = 'mfy'
AND list IS NOT NULL
AND remove_from_service_code_list IS NOT NULL
THEN 'pmg-CHANGED'
WHEN type1 = 'pmg'
AND e.type2 = 'mfy'
AND list IS NULL
AND remove_from_service_code_list IS NOT NULL
THEN 'pmg-REMOVED'
WHEN type1 = 'pmg'
AND e.type2 = 'mfy'
AND list IS NOT NULL
AND remove_from_service_code_list IS NULL
THEN 'p_added'
WHEN type1 = 'epmt'
AND e.type2 = 'AT'
AND c.campaign_type = 'H'
THEN 'ACT_TECH'
WHEN type1 = 'epmt'
AND e.type2 = 'AT'
AND c.campaign_type 'H'
THEN 'A_cR'
WHEN type1 = 'PV'
AND type2 = 'SPORT'
AND p.flag = 'N'
THEN 's_iL'
WHEN type1 = 'PV'
AND type2 = 'SPORT'
AND p.flag = 'Y'
THEN 'spkg'
ELSE type2
END type2,
CASE
WHEN event_status_type = 'scss'
THEN 'scss'
ELSE 'FL'
END STS_type,
COUNT (DISTINCT e.ce),
ROUND (AVG (e.elapsed_msec) / 1000) txn_time,
ROUND (AVG (c.elapsed_msec)/1000) call_time
FROM
---ivr_transaction h,
ILC1 e,
ILCL c,
ILEW w,
ILEp p
WHERE
---e.CD = h.CD
w.CD(+) = e.CD
-- AND w.event_id(+) = e.event_id
AND p.CD(+) = e.CD
---- AND p.event_id(+) = e.event_id
AND p.ce(+) = e.ce
AND w.ce(+) = e.ce
AND c.CD = e.CD
AND c.ci = e.ci
--AND e.ce = h.ce
AND e.CD = TRUNC (SYSDATE - 1)
AND c.TIME TRUNC (SYSDATE)
AND ( (e.type1 = 'py')
OR (type1 = 'PV')
OR ( type1 = 'pmg'
AND e.type2 = 'mfy'
OR (type1 = 'epmt'
AND e.type2 = 'AT'
GROUP BY 'TCR',
c.CD,
substr(c.TIME,27,29),
SUBSTR ( TO_CHAR (SYSDATE, 'MM/DD/YYYY HH24:MI')
     , 1
     , 15
     ) || '0',
--TO_CHAR (c.TIME, 'MI'),
CASE
WHEN type1 = 'py'
THEN 'pyS'
WHEN type1 = 'PV'
THEN 'PV'
WHEN type1 = 'pmg'
AND e.type2 = 'mfy'
THEN 'pmg'
WHEN type1 = 'epmt'
AND e.type2 = 'AT'
THEN 'ACT'
END,
ROLLUP (CASE
WHEN type1 = 'py'
AND e.type2 = 'EFAUOT'
THEN 'EFT_AUTO'
WHEN type1 = 'py'
AND e.type2 = 'CA_AUTO'
THEN 'CARD_AUTOFILL'
WHEN type1 = 'pmg'
AND e.type2 = 'mfy'
AND list IS NOT NULL
AND remove_from_service_code_list IS NOT NULL
THEN 'pmg-CHANGED'
WHEN type1 = 'pmg'
AND e.type2 = 'mfy'
AND list IS NULL
AND remove_from_service_code_list IS NOT NULL
THEN 'pmg-REMOVED'
WHEN type1 = 'pmg'
AND e.type2 = 'mfy'
AND list1 IS NOT NULL
AND list1 IS NULL
THEN 'p_added'
WHEN type1 = 'epmt'
AND e.type2 = 'AT'
AND c.campaign_type = 'H'
THEN 'ACT_TECH'
WHEN type1 = 'epmt'
AND e.type2 = 'AT'
AND c.campaign_type 'H'
THEN 'A_cR'
WHEN type1 = 'PV'
AND type2 = 'SPORT'
AND p.flag = 'N'
THEN 's_iL'
WHEN type1 = 'PV'
AND type2 = 'SPORT'
AND p.flag = 'Y'
THEN 'sp'
ELSE type2
END),
ROLLUP (
CASE
WHEN event_status_type = 'scss'
THEN 'scss'
ELSE 'FL'
END)

Similar Messages

  • Date column group by 15 minute interval using SQL

    I am using Oracle 9i DB, I have a large table containing several rows with following example data. Each row identifies a transaction.
    Transaction_id, status, completed_date
    1667050 SUCCEEDED 4-Dec-03 00:00:44
    1667091 SUCCEEDED 4-Dec-03 00:05:45
    6670930 SUCCEEDED 4-Dec-03 00:09:46
    4359066 SUCCEEDED 4-Dec-03 00:10:46
    this table consists of rows for a 24 hour day period.
    I need to write a SQL query to generate a report to give me a count of transactions 24 hour period grouped into 15 minute or half hour period.
    for example
    count time_interval
    5000 00:00:00 - 00:14:59
    2345 00:15:00 - 00:29:59
    and so on
    I am new to SQL and so am having a hard time figuring out which function or how to group date column to achieve the end result. I would be grateful if someone could throw some suggestions.

    This should help.
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:4222062043865

  • Materialized Views created using ROLLUP

    Not sure if this one is best posted to a general Oracle forum, or even to the Discoverer Forum, but it's more to do with Data Warehousing so here goes...
    1. If I create a materialized view, either with or without OWB, do I also need to separately create indexes on the materialized view?
    2. If I create them using GROUP BY and ROLLUP (to create summaries that calculate all the subtotals along all hierarchies and dimensions), would any subsequent query have to use GROUP BY and ROLLUP to qualify for query rewrite?
    3. If I create them using GROUP BY and ROLLUP, would the queries generated by Discoverer ever get rewritten, as I assume they would not use GROUP BY and ROLLUP as these were not features found in earlier versions of Oracle?
    Any advice gratefully received.
    Mark

    Thanks for replying, Igor.
    Just to clarify:
    1. Do MV's created without fash refresh capabilities still get indexes created automatically? If not, should you manually create them in this instance?
    2. Can you confirm that, if a MV gets created using GROUP BY and ROLLUP (to potentially calculate all dimension intersections in one go), users queries to the base fact table do not have to use ROLLUP in their GROUP BY clause - they will still get rewritten ok?
    3. You mentioned that Discoverer generates queries using GROUP BY - does it ever use GROUP BY ROLLUP if it knows it's working on an Oracle 9i platform?
    I guess where i'm coming from, is that we're considering using the OLAP Summary Manager within OEM to create materialized views, rather than the normal summary adviser, as this creates MV's designed to hold (R)OLAP cubes (as detailed at http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96520/mv.htm#574241). I wouldn't however want to use these if user's queries had to specify ROLLUP in their GROUP by clause to qualify for query rewrite.
    Getting back to OWB, are there any plans to improve the support for importing, designing and refreshing materialized views in the Paris release of OWB? Summary management is perhaps a bit of a weak spot in OWB, and it'd be good if Hierarchical Cube Materialized Views - which are an excellent new feature in 9i - were supported in future releases.
    best regards
    Mark Rittman

  • OFS Verified Oracle group failed

    Dear All,
    We verified OFS Oracle group failed, and we found below error information:
    FS-10890: Oracle Services for MSCS failed during the verifyGroup operation
    FS-10111: Failed to verify group ORACLE PIP
    FS-10046: Failed to verify group resource OraclePIP11202TNSListenerFslmaspipdb
    FS-10151: Unable to open the parameter file D:\oracle\PIP\11202\database\initPIP_OFS.ora
    FS-10180: File D:\oracle\PIP\11202\database\initPIP_OFS.ora is not found
    0x3: The system cannot find the path specified.
    We checked this file is exist in correct path.( D:\oracle\PIP\11202\database)
    Anyone can help us? thank you in advance.
    Best Regards,
    Kent
    More log as below
    Versions:  client = 3.4.2    server = 3.4.2    OS = 
    Operation:   Verifying group "ORACLE PIP" 
    Starting Time:   Jan 04, 2014   12:37:42
    Elapsed Time:   0 minutes, 3 seconds
    1   12:37:42  Starting clusterwide operation
    2   12:37:42  FS-10371: MASSAP07 : Performing initialization processing
    3   12:37:43  FS-10371: MASSAP09 : Performing initialization processing
    4   12:37:43  FS-10373: MASSAP07 : Determining owner node of resource
    5   12:37:43  FS-10374: MASSAP07 : Gathering cluster information needed to perform the specified operation
    6   12:37:43  FS-10374: MASSAP09 : Gathering cluster information needed to perform the specified operation
    7   12:37:43  FS-10461: MASSAP07 : Starting verification of group ORACLE PIP
    8   12:37:43  FS-10463: MASSAP07 : Verifying group attributes for group ORACLE PIP
    9   12:37:43  FS-10464: MASSAP07 : Verifying attributes for resources in group ORACLE PIP
    10  12:37:43   > FS-10315: Verifying disk resource Cluster Disk 3
    11  12:37:43   > FS-10310: Verifying the IP address resource IP Address 10.236.149.43
    12  12:37:43   > FS-10325: Verifying the network name resource Network Name MASPIPDB
    13  12:37:43   > FS-10300: Verifying Oracle Net listener resource OraclePIP11202TNSListenerFslmaspipdb
    14  12:37:44   > FS-10320: Verifying database resource PIP.WORLD
    15  12:37:44  FS-10465: MASSAP07 : Verifying dependencies for resources in group ORACLE PIP
    16  12:37:44   > FS-10316: Verifying dependencies for disk resource Cluster Disk 3
    17  12:37:44   > FS-10311: Verifying the dependencies for IP address resource IP Address 10.236.149.43
    18  12:37:44   > FS-10326: Verifying dependencies for the network name resource Network Name MASPIPDB
    19  12:37:44   > FS-10301: Verifying dependencies for Oracle Net listener resource OraclePIP11202TNSListenerFslmaspipdb
    20  12:37:44   > FS-10321: Verifying dependencies for database resource PIP.WORLD
    21  12:37:44    ** WARNING : FS-10288: Parameter file D:\oracle\PIP\11202\database\initPIP_OFS.ora is not located on a cluster disk
    22  12:37:44  FS-10466: MASSAP07 : Verification of group ORACLE PIP completed successfully
    23  12:37:45  FS-10461: MASSAP09 : Starting verification of group ORACLE PIP
    24  12:37:45  FS-10463: MASSAP09 : Verifying group attributes for group ORACLE PIP
    25  12:37:45  FS-10464: MASSAP09 : Verifying attributes for resources in group ORACLE PIP
    26  12:37:45   > FS-10315: Verifying disk resource Cluster Disk 3
    27  12:37:45   > FS-10310: Verifying the IP address resource IP Address 10.236.149.43
    28  12:37:45   > FS-10325: Verifying the network name resource Network Name MASPIPDB
    29  12:37:45   > FS-10300: Verifying Oracle Net listener resource OraclePIP11202TNSListenerFslmaspipdb
    30  12:37:45    ** ERROR : 0x3: The system cannot find the path specified.
    31  12:37:45    ** ERROR : FS-10180: File D:\oracle\PIP\11202\database\initPIP_OFS.ora is not found
    32  12:37:45    ** ERROR : FS-10151: Unable to open the parameter file D:\oracle\PIP\11202\database\initPIP_OFS.ora
    33  12:37:45    ** ERROR : FS-10046: Failed to verify group resource OraclePIP11202TNSListenerFslmaspipdb
    34  12:37:45    ** ERROR : FS-10111: Failed to verify group ORACLE PIP
    35  12:37:45    ** ERROR : FS-10890: Oracle Services for MSCS failed during the verifyGroup operation
    36  12:37:45  Please check your Windows Application log using the Event Viewer for any additional errors
    37  12:37:45  The clusterwide operation failed !

    Its just the too many open files caused by the bug in collecting the health metrics (see Note:430805.1, 563575.1).
    Disable the health metrics Note:379423.1
    If you're worried about doing this, read Note:469227.1

  • Connecting to Oracle DB on Ubuntu 8.04 using SQL Developer

    Hi,
    I managed to install Oracle 11g on Ubuntu 8.04 using this guide:
    http://www.pythian.com/blogs/968/installing-oracle-11g-on-ubuntu-804-lts-hardy-heron
    But I don't remember the Username or SID, that's why I keep on getting ORA-12505 from SQL DEVELOPER
    How can I get those missing informations?

    But I don't remember the Username or SIDAssuming your DB is up and running, you can find out the SID by :
    $ ps -ef | grep smon | grep -v grep
    oracle   15298     1  1 10:59 ?        00:00:00 ora_smon_db11
    $ here db11 is the SID.
    About username, you can create one. Use Sql*Plus and OS authentication :
    $ export ORACLE_SID=<your SID>
    $ sqlplus / as sysdba
    SQL> CREATE USER

  • How to print/list all the groups/users present in Weblogic using Java code

    Hi,
    Weblogic version : 11.1.1.5
    How to print/list all the groups/users present in Weblogic using Java code
    I want to make a remote connection to Weblogic server and print all the users/groups present in it.
    I have gone through the below mentioned site, but I cannot use the same approach since most of the API' are deprecated for example "weblogic.management.MBeanHome;"
    http://weblogic-wonders.com/weblogic/2010/11/10/list-users-and-groups-in-weblogic-using-jmx/
    Thanks in advance,
    Edited by: 984107 on 05-Feb-2013 05:26
    Edited by: 984107 on 05-Feb-2013 22:59

    see this http://www.techpaste.com/2012/06/managing-user-groups-wlst-scripts-weblogic/
    Hope this helps.

  • How to use oracle functions in Crystal Reports XI using Oracle Server

    Hi all,
    Is it possible  to use oracle functions in Crystal Reports XI using Oracle Server as Data Source.
    If i try to use a procedure,i am getting error with message "Invalid Arguement Provided".
    Functions are not visible objects like tables,views and stored procedures.
    The  jdbs driver i m using is oracle.jdbc.driver.OracleDriver.

    I think it is not possible to add functions in crystal directly for any database. You need to use those functions in a stored procedure and add that storedprocedure as a datasource.
    [https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233353335333833323333%7D.do]
    regards,
    Raghavendra

  • Putting Oracle Apps 11i on 10g RAC using VMware

    Hello All,
    I am building a Oracle Applications 11i on 10g RAC, using VMware..Since there aren't any docs I could find on internet explaining how to do this, I have come up with my own. I have combined the MEtalink doc:362135.1 and the docs describing building a 10gRAC "database" using VMware..I want to know if the below process is good enough to get the required results:
    Steps:
    -Install VMware on HOST m/c
    -Configure 1st virtual m/c, say RAC1
    -Install RHEL on RAC1
    -Install 11i with 9i database on the local SCSI bus- SCSI 0:0
    -Install VMware client tools
    -Create a new ethernet adapter(for private interconnect) on RAC1
    -Create shared disks on RAC1
    -Partition the disks
    -Add the disks as RAW devices in /etc/rawdevices
    -Clone RAC1 to a new virtual m/c,say RAC2
    -Delete the 11i apps directories from its local SCSI bus..since these would be redundant on RAC2
    -Install Clusterware s/w on RAC1 using the same oraInventory that is used by the Applications 11i installation-
    -Install the 10g DB software and create ASM instances using dbca
    -Install Database componenets from 10g companion CD
    -Upgrade CRS abd DB s/w to 10.2.0.4
    -Upgrade the 9i database to 10g using dbua from the 10g ORACLE_HOME
    -Convert the newly upgraded 10g databse to RAC using the rconfig tool
    -Post migration steps for RAC
    -Enable AutoConfig on the Applications Database tier
    - Follow the "Establish Applications Environment for RAC" section from Doc:362135.1
    -Configure PArallel Concurrent Processing(PCP)
    Thanks,
    Sandeep

    (Considering that there are only 2 nodes the scenario the steps would be as follows:
    1. Install RAC using the steps provided at the link:
    http://oracle-base.com/articles/10g/OracleDB10gR2RACInstallationOnCentos4UsingVMware.php
    2.On RAC1 create a single instance of Oracle 11i (Both DB and Apps are on the same node)
    3. Follow the steps outlined in the Note:362135.1
    One thing to note is that the steps are the same whether the nodes are real or virtual.

  • JDBC-ORACLE CONNECTIVITY ISSUE WITYH OCI8 DRIVER using oracle 11g client..

    JDBC-ORACLE CONNECTIVITY ISSUE WITYH OCI8 DRIVER using oracle 11g client..
    I am getting below error when i m trying to access oracle db using oracle 11g client. It works with earlier oracle client versions. how do i resolve this. is there any issue with version of ojdbc6.jar that i am using??? I cant use thin driver since its an old application for which i dont have source files.
    Apr 6, 2013 1:00:59 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
    at java.lang.Runtime.loadLibrary0(Runtime.java:822)
    at java.lang.System.loadLibrary(System.java:992)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:262)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:346)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
    at java.sql.DriverManager.getConnection(DriverManager.java:525)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at PettyCash.SysDate.getSysSubSys(SysDate.java:232)
    at org.apache.jsp.PettyCash.index_jsp._jspService(org.apache.jsp.PettyCash.index_jsp:186)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Code is as follow for reference
    import oracle.jdbc.driver.*;
    DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    conn = DriverManager.getConnection ("jdbc:oracle:oci8:@" + database,db_user, db_pass);
    eNVIRONMENT VARIABLES set are as follows:
    classpath
    C:\Program Files\apache-tomcat-5.5.12\common\lib\servlet-api.jar;C:\Program Files\apache-tomcat-5.5.12\webapps\ROOT\WEB-INF\lib\classes12.jar;C:\Program Files\apache-tomcat-5.5.12\webapps\ROOT\WEB-INF\lib\ojdbc6.jar;
    JAVA_HOME
    C:\Program Files\Java\jdk1.5.0_04
    PATH
    C:\Program Files\Java\jdk1.5.0_04\bin
    ORACLE_HOME
    D:\Oracle11\product\11.2.0\client_1\BIN

    Apr 8, 2013 5:24:06 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.NullPointerException
         at org.apache.jsp.abc.index_jsp._jspService(org.apache.jsp.abc.index_jsp:280)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)

  • Filtering Groups on Windows Active Directory using LDAP Authentication

    Hi All,
    I have small module that filters the groups from the Windows AD using LDAP attributes and flushes the data into the DB[code below].
    This module was developed and tested on weblogic 8.1[on windows]and works fine.
    Now the same is moved to another environment- Websphere on Linux Suse. The code fails to retreieve any value from the Windows AD.
    Please note no exception is aslo thrown.
    env.put(Context.INITIAL_CONTEXT_FACTORY,ldapCtxFactory);
              //set security credentials, note using simple cleartext authentication
              env.put(Context.SECURITY_AUTHENTICATION,authentication);
              env.put(Context.SECURITY_PRINCIPAL,adminName);
              env.put(Context.SECURITY_CREDENTIALS,adminPassword);
              //connect to my domain controller
              env.put(Context.PROVIDER_URL, domainController);
              // Create the initial directory context
              try {
                                  dirCtx = new InitialDirContext(env);
                   // Create the search controls           
                   SearchControls searchCtls = new SearchControls();
                   //Specify the attributes to return
                   String returnedAtts[]={"member"};
                   searchCtls.setReturningAttributes(returnedAtts);
                   //Specify the search scope
                   searchCtls.setSearchScope(SearchControls.SUBTREE_SCOPE);
                   int totalResults = 0;
                   int iteration=0;
                   // Search for objects using the filter
                   NamingEnumeration results = ctx.search(searchBase, searchFilter, searchCtls);
    In the above code the method exits even before the try block[i could detect this using Sysout's]
    Below is the property file from which the values are read.
    admin=username
    password=password
    #AD search attributes
    searchBase=DC=domainname,DC=domainname
    searchFilter=(&(objectClass=group) (CN=value*))
    #JNDI context attributes
    ldapCtxFactory=com.sun.jndi.ldap.LdapCtxFactory
    authentication=simple
    domainController=ldap://address
    groupPattern=pattern
    Please Assit,
    Thanks in Advance
    Message was edited by:
    radiant
    Message was edited by:
    radiant

    Assuming it is the same Active Directory environment and only your Java platform has changed, the I can only assume that if no exception is thrown, and no data is returned, then the credentials you are using on the new Java platform are being mapped to an anonymous user (perhaps a blank password ?). By default, Windows Server 2003 domains, do not return any results to anonymous users.

  • How to fill an oracle CLOB with a XML document using Unicode UTF8

    Hi,
    I'm working with C# and oracle database v8.1.7 (release 3), and i'm having some problems to fill correctly an oracle CLOB parameter with XML document using UTF8 encoding.
    It works fine with "Encoding.Unicode" but not with "Encoding.UTF8". The problem is that i can't use Unicode (UTF16) with oracle 8.
    Can someone help me ? Thanks.
    Here is my code.
    OracleTransaction tx = conn.BeginTransaction();
    OracleCommand cmd = conn.CreateCommand();
    cmd.Transaction = tx;
    cmd.CommandText = "declare xx clob; begin dbms_lob.createtemporary(xx, false, 0); :tempclob := xx; end;";
    cmd.Parameters.Add(new OracleParameter("tempclob", OracleType.Clob)).Direction = ParameterDirection.Output;
    cmd.ExecuteNonQuery();
    OracleLob tempLob = (OracleLob)cmd.Parameters[0].Value;
    MemoryStream MemStrm = new MemoryStream();
    XmlTextWriter writer = new XmlTextWriter(MemStrm, Encoding.UTF8);
    writer.Formatting = Formatting.Indented;
    WriteXMLExample(writer, "MSFT", 74.125, 5.89, 69020000);
    writer.Close();
    cmd.Parameters.Clear();
    cmd.CommandText = "test_xml";                    
    cmd.CommandType = CommandType.StoredProcedure;
    tempLob.Write(MemStrm.GetBuffer(), 0, MemStrm.GetBuffer().Length );
    tempLob.Position = 0;
    cmd.Parameters.Add(new OracleParameter("xml_inout", OracleType.Clob)).Value = (OracleLob) tempLob;
    cmd.ExecuteNonQuery();
    Console.WriteLine( "Param 0 = " + cmd.Parameters[0].Value.ToString() );
    tx.Commit();

    Hi,
    I'm working with C# and oracle database v8.1.7 (release 3), and i'm having some problems to fill correctly an oracle CLOB parameter with XML document using UTF8 encoding.
    It works fine with "Encoding.Unicode" but not with "Encoding.UTF8". The problem is that i can't use Unicode (UTF16) with oracle 8.
    Can someone help me ? Thanks.
    Here is my code.
    OracleTransaction tx = conn.BeginTransaction();
    OracleCommand cmd = conn.CreateCommand();
    cmd.Transaction = tx;
    cmd.CommandText = "declare xx clob; begin dbms_lob.createtemporary(xx, false, 0); :tempclob := xx; end;";
    cmd.Parameters.Add(new OracleParameter("tempclob", OracleType.Clob)).Direction = ParameterDirection.Output;
    cmd.ExecuteNonQuery();
    OracleLob tempLob = (OracleLob)cmd.Parameters[0].Value;
    MemoryStream MemStrm = new MemoryStream();
    XmlTextWriter writer = new XmlTextWriter(MemStrm, Encoding.UTF8);
    writer.Formatting = Formatting.Indented;
    WriteXMLExample(writer, "MSFT", 74.125, 5.89, 69020000);
    writer.Close();
    cmd.Parameters.Clear();
    cmd.CommandText = "test_xml";                    
    cmd.CommandType = CommandType.StoredProcedure;
    tempLob.Write(MemStrm.GetBuffer(), 0, MemStrm.GetBuffer().Length );
    tempLob.Position = 0;
    cmd.Parameters.Add(new OracleParameter("xml_inout", OracleType.Clob)).Value = (OracleLob) tempLob;
    cmd.ExecuteNonQuery();
    Console.WriteLine( "Param 0 = " + cmd.Parameters[0].Value.ToString() );
    tx.Commit();

  • How to implement the Oracle Group by function in Crystal reports?

    Hi all,
    In SQL, for example we have a group function like:
    select  district,state, country, continent, sum(no.of people) from world.
    Now, How to implement this group function in crystal reports? Please advise.
    Thanks in advance..
    Regards,
    sriram

    Hi Vinay,
    Thanks for the prompt reply.
    In one of our report, we are supposed to perform group by for 14 columns to get sum of 3 columns and there by displaying 17 columns in the report.
    When we tried in crystal reports to implement this oracle group by functionality:
    1. We created 14 groups from the Insert->Group option.
    2. By performing this, we got 14 group sections vertically(one inside the other).
    3. Then we created the sum(15th column),sum(16th column), sum(17th column)  by Insert->Summary option.
    4. We suppresed all the group sections except for the last group.
    5. Then, dragged all the groups to the last group section along with the summary fields.
    This is how, we tried to acheive the oracle group by function in Crystal reports.
    Please advise, whether our approach is right. If not, please suggest the appropriate approach with a bit detailed explanation.
    Thanks,
    Sriram.

  • TBB1-Execute postings occurs an error *Ledger group 0L may not be used*

    Hi everybody,
    While trying to execute postings from a commercial paper occurs the following error
    Ledger group 0L may not be used
    Message no. FAGL_LEDGER_CUST102
    Diagnosis
    Ledger group &1 is assigned to another application.
    I suspect that this is somehow related to Funds management influence, but I can not find the solution,
    I really need to overcome this problem so i'll appreciate any help,
    Thanks in advance,
    Daniel

    Hi Prasad,
    We created ledger groups in costumizing this issue was solved.
    Thank you very much your help.
    Regards,
    Daniel

  • Error  "Ledger group 0L may not be used" - CO15

    Dear guru,
    When I want to save Production Order Confirmation via CO15, there is an error message :
    Ledger group 0L may not be used
    Message no. FAGL_LEDGER_CUST102
    Diagnosis
    Ledger group &1 is assigned to another application.
    FYI, when I check tabel T881 (Ledger Master), there are two leading ledger : 0L and OL. It's very strange.
    As far as I know, in standard SAP there is only one leading ledger, it is 0L.
    I check in customizing (Ledger > Define Ledgers for General Ledger Accounting), there is only one ledger: OL (as leading ledger), so I untick Leading Ledger indicator for Ledger 0L directly on table T881, but the error message still appear.
    How to solve this?
    Thanks before

    Hi Hanny Ali,
    The message F5 670 is processed if there is a problem in account determination. The message means the account determination in the SD billing document does not work probably. This could also be caused by a wrong or incomplete customizing.
    Please find note 146879 to check the customizing on this issue. From past messages, this problem is usually caused by a missing or incorrect customizing for the G/L account.
    Please note that if it's a case of a cancellation document the field VBRK-SFAKN is filled. When this is filled the system does not carry out account determination. In debug you can remove this entry and the account determination will be revoked. This would resolve the issue.
    Could you please review customizing setting VKOA if all the relevant information are being maintain correctly?
    Please also review the notes:
    -> 0216974 Error F5670 during release to accounting
    -> 0113512 VF051 "Doc. & saved (error in accnt determination)
    -> 1325446 SDBONT06: G/L accounts of rebate conditions are
    I hope this answer your issue with error F5 670.
    Best Regards,
    Vanessa.

  • Why a customer or vendor group One Time can't using?

    Why a customer or vendor group One Time can't using with special G/L ? for example Donw payment or chque receipt
    Many thanks for any answer?

    Hi Blue,
    Please refer OSS notes 19638
    Hope this helps.
    Please assign points as way to say thanks

Maybe you are looking for