Oracle Group By

Hello all!
I've a question that I saw a lot of discution but it doesn't came to the solution I need, so if someone could give me a light I'd appreciate that!
The problem is: I need to do a query that returns some values, but one of the column can't be on the GROUP BY clause. Let's try to explain the cenario:
Suppose I have a table of registry with these infos:
GPS   Date                          Event_id
*01 21/10/2012 09:08:12 100*
*02 22/10/2012 10:00:05 105*
*05 19/10/2012 00:00:00 120*
*03 22/10/2012 17:53:10 100*
*01 22/10/2012 07:05:14 125*
*01 21/10/2012 21:38:00 110*
*02 18/10/2012 03:15:17 115*
I'd like to have the "most recent" registry of each GPS but also the event_id that occured ont that registry.
If I use the query
SELECT gps, MAX(Date)
FROM table
GROUP BY gps
ORDER BY gps
Then I get the result I want, but without the event_id
GPS    Date
*01 22/10/2012 07:05:14*
*02 22/10/2012 10:00:05*
*03 22/10/2012 17:53:10*
*05 19/10/2012 00:00:00*
I'd like to have respectively the info
Event_id
*125*
*105*
*100*
*120*
But, if I put the event_id column on the SELECT, I have to put it on the GROUP BY to it works. If I do so, the result I get is pretty the same as the whole table because of the different event_ids I have for each registry.
Does someone have any idea on how do I do this?
By the way, I'm using Oracle 11g
Thanks in advance,
Bruno.

Hi, Bruno,
Welcome to the forum!
Here's one way:
SELECT    gps
,        MAX (dt)          -- DATE is not a good column anme
                     AS max_dt
,       MIN (event_id) KEEP (DENSE_RANK LAST ORDER BY dt)
                     AS last_event_id
FROM      table_x          -- TABLE is not a good table name
GROUP BY  gps
ORDER BY  gps
;What if 2 (or more) rows with the same gps have exactly the same date? That may not be possible in your table, but if it does happen, then the query above wouold chose the lowest of the event_ids from the latest date; that's what MIN (event_id) is doing.
For example, if this were your sample data:
GPS     DT                EVENT_ID
05      01/01/2012 00:00:00   102
05      19/10/2012 00:00:00   120
05      19/10/2012 00:00:00   121There is a for the last row. Both event_id=120 and event_id=121 have an equal claim to being the last row. In this case, the query above would return 120 as the last_event_id, because it is the lowest number from among the contenders. (Note that this is not the same as the lowest event_id overall. 102 is the lowest event_id, but it has no claim to being the last row.)
If you want to pick all the contenders in case of a tie (that is, both 120 and 121, given the data above), then you could do soemthing like this:
WITH     got_r_num     AS
     SELECT  gps, dt, event_id
     ,     RANK () OVER ( PARTITION BY  gps
                           ORDER BY          dt     DESC
                    )           AS r_num
     FROM    table_x
SELECT    gps, dt, event_id
FROM       got_r_num
WHERE       r_num     = 1
ORDER BY  gps, event_id
;Whenever you have a question, please post CREATE TABLE and INSERT statement for your sample data. Also post the exact resuolts you want from that data, exactly as you want to see them.
See the forum FAQ {message:id=9360002}
Edited by: Frank Kulash on Oct 22, 2012 3:40 PM
Edited by: Frank Kulash on Oct 22, 2012 3:46 PM

Similar Messages

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

  • 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

  • Oracle group by query

    create a matrix query to display a job, the salary for that job based on department number, and the total salary for that job, for departments 20,50,80,90 giving each column an appropriate heading. this is the excise query available in oracle in ebook. I have solved it by using inline view.. given below.. Is ther any other way to solve the same quey.. Please help..
    SELECT job_id,
    CASE
    WHEN department_id=20
    THEN salary
    ELSE NULL
    END AS dept20,
    CASE WHEN department_id=50 THEN salary ELSE NULL
    END AS dept50,
    CASE WHEN department_id=80 THEN salary ELSE NULL
    END AS dept80,
    CASE WHEN department_id=90 THEN salary ELSE NULL
    END AS dept90,
    salary
    FROM
    (SELECT job_id,
    SUM(salary) salary,
    department_id
    FROM employees
    WHERE department_id IN (20,50,80,90)
    GROUP BY job_id,
    department_id
    ) order by job_id;

    Hi,
    you can try something like this:
    *not tested
    select distinct job_id,
    (select nvl(sum(salary), 0) from employees where job_id = e.job_id and department_id = 20) sum_sal_20,
    (select nvl(sum(salary), 0) from employees where job_id = e.job_id and department_id = 50) sum_sal_50,
    (select nvl(sum(salary), 0) from employees where job_id = e.job_id and department_id = 80) sum_sal_80,
    (select nvl(sum(salary), 0) from employees where job_id = e.job_id and department_id = 90) sum_sal_90
    from employees e
    where department_id IN (20,50,80,90)
    group by job_id, department_idRegards
    Imran

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

  • Oracle Group in Toronto

    Dear All:
    Hey. I am an OCP DBA 8.0, currently in Toronto and looking for any group that organizes meetings on monthly basis or something similar to join. Is there anyone who knows anyting that can be of help ? Anyone who knows any opening anywhere where I can apply ?
    Cheers
    Shailav

    Here's a list; look around some, there may be more listings.
    http://servlet.java.sun.com/jugs/north_america/can/ontario/toronto

  • Oracle 9i and 10g differences in "group by"

    I found the sorting order is different in "group by" function of Oracle 9i and 10g.
    What is the reason?
    >>>>>>>>>>>>>>>>>>>>>
    SQL> create table t ( a number, b number);
    Table created.
    SQL> insert into t values (1,2);
    1 row created.
    SQL> insert into t values (100, 200);
    1 row created.
    SQL> insert into t values (10, 20);
    1 row created.
    >>>>>>>>>
    9i
    >>>>>>>>>
    SQL> select sum (b) , a from t group by a;
    SUM(B) A
    2 1
    20 10
    200 100
    >>>>>>>>>
    10g
    >>>>>>>>>
    SQL> select sum (b) , a from t group by a;
    SUM(B) A
    2 1
    200 100
    20 10

    in oracle "group by" doesn't sort. Not strictly true.
    Pre 10g had an implicit order by which was caused by the way the database engine performed it's group by operation.
    In 10g this has now been "refined" so that group by does what it says i.e. groups the data, without having the side effect of implicitly ordering the data.
    In reality if you want data in a particular order you should always specify an ORDER BY clause and never rely on the fact that Oracle used to suffer from an implicit side effect.
    ;)

  • Oracle Failsafe - Add Resource to Group

    hi to all,
    i have a question about using Oracle Failsafe.
    I have had a 2 Node Cluster (Czvsor1 and czvsor2) with Clustergroup and Oracle Group with database db1 in it on node czvsor1 with perfect working failover to node czvsor2 managed by Failsafe Manager - All running on windows2003 server.
    Now i wanted to bring up a third node czvsor3 with the database ORCFIBU on it, adding this node to cluster , creating a second oracle group on this node, add resource (database) to this group and manage it with failsafe manger to failover to my second node czvsor2 when needed.
    Everything went perfect - adding node to cluster, creating and testing oracle group 2 with 2 SAN devices, moving oracle group no node 2 and back again.
    BUT adding database to group failed - errors in verifying Devices
    Here are the protokolls:
    Verify Cluster
    Versions: client = 3.3.3 server = 3.3.3 OS =
    Operation: Verifying cluster "CZVSOR03"
    Starting Time: Aug 08, 2007 10:42:51
    Elapsed Time: 0 minutes, 1 seconds
    1 10:42:51 Starting clusterwide operation
    2 10:42:51 > FS-10998:
    3 10:42:51 FS-10500: CZVSOR1 : Starting verification of cluster CZVSOR03
    4 10:42:51 > FS-10998:
    5 10:42:51 FS-10544: CZVSOR1 : Verifying the cluster quorum resource
    6 10:42:51 > FS-10545: Cluster quorum resource Disk Q: is located at Q:\MSCS\
    7 10:42:51 > FS-10998:
    8 10:42:51 FS-10660: CZVSOR1 : Gathering cluster information
    9 10:42:51 > FS-10998:
    10 10:42:51 FS-10660: CZVSOR3 : Gathering cluster information
    11 10:42:52 > FS-10998:
    12 10:42:52 FS-10660: CZVSOR2 : Gathering cluster information
    13 10:42:52 > FS-10998:
    14 10:42:52 FS-10502: CZVSOR1 : Verifying the Oracle homes
    15 10:42:52 > FS-10645: CZVSOR1 has home OfsHome33 in D:\oracle\Ofs33
    16 10:42:52 > FS-10645: CZVSOR1 has home OraDb10g_Db in D:\oracle\product\10.2.0\db_1
    17 10:42:52 > FS-10645: CZVSOR3 has home OfsHome33 in D:\oracle\Ofs33
    18 10:42:52 > FS-10645: CZVSOR3 has home OraDb10g_Db in D:\oracle\product\10.2.0\db_1
    19 10:42:52 > FS-10645: CZVSOR2 has home OfsHome33 in D:\oracle\Ofs33
    20 10:42:52 > FS-10645: CZVSOR2 has home OraDb10g_Db in D:\oracle\product\10.2.0\db_1
    21 10:42:52 > FS-10998:
    22 10:42:52 FS-10501: CZVSOR1 : Verifying the Oracle Services for MSCS installation
    23 10:42:52 >>> FS-10652: CZVSOR1 has Oracle Services for MSCS version 3.3.4.0 installed in OfsHome33
    24 10:42:52 >>> FS-10652: CZVSOR3 has Oracle Services for MSCS version 3.3.4.0 installed in OfsHome33
    25 10:42:52 >>> FS-10652: CZVSOR2 has Oracle Services for MSCS version 3.3.4.0 installed in OfsHome33
    26 10:42:52 > FS-10998:
    27 10:42:52 FS-10650: CZVSOR1 : Verifying the Oracle Services for MSCS resource providers
    28 10:42:52 > FS-10651: Verifying the Generic Service resource
    29 10:42:52 >> FS-10665: Checking DLLs for resource provider
    30 10:42:52 > FS-10998:
    31 10:42:52 > FS-10651: Verifying the Oracle Management Agent resource
    32 10:42:52 >> FS-10665: Checking DLLs for resource provider
    33 10:42:52 >> FS-10667: Checking for software installation
    34 10:42:52 ** WARNING : FS-10658: The Oracle Management Agent software is not installed on any of the cluster nodes
    35 10:42:52 > FS-10998:
    36 10:42:52 > FS-10651: Verifying the Oracle Application Server resource
    37 10:42:52 >> FS-10665: Checking DLLs for resource provider
    38 10:42:52 >> FS-10667: Checking for software installation
    39 10:42:52 ** WARNING : FS-10658: The Oracle Application Server software is not installed on any of the cluster nodes
    40 10:42:52 > FS-10998:
    41 10:42:52 > FS-10651: Verifying the Oracle Database resource
    42 10:42:52 >> FS-10665: Checking DLLs for resource provider
    43 10:42:52 >> FS-10666: Checking for MSCS resource DLLs provided by Oracle
    44 10:42:52 >> FS-10667: Checking for software installation
    45 10:42:52 >>> FS-10652: CZVSOR1 has Oracle Database version 10.2.0 installed in OraDb10g_Db
    46 10:42:52 >>> FS-10652: CZVSOR3 has Oracle Database version 10.2.0 installed in OraDb10g_Db
    47 10:42:52 >>> FS-10652: CZVSOR2 has Oracle Database version 10.2.0 installed in OraDb10g_Db
    48 10:42:52 > FS-10998:
    49 10:42:52 FS-10503: CZVSOR1 : Verifying the network configuration
    50 10:42:52 > FS-10510: Public network on the cluster uses subnet 172.22.111.96
    51 10:42:52 > FS-10510: Private network on the cluster uses subnet 192.168.32.0
    52 10:42:52 > FS-10998:
    53 10:42:52 > FS-10512: CZVSOR1 maps to 172.22.111.118, 192.168.32.1 on CZVSOR1
    54 10:42:52 > FS-10512: CZVSOR1 maps to 172.22.111.118 on CZVSOR3
    55 10:42:52 > FS-10512: CZVSOR1 maps to 172.22.111.118 on CZVSOR2
    56 10:42:52 > FS-10998:
    57 10:42:52 > FS-10512: CZVSOR3 maps to 172.22.111.120 on CZVSOR1
    58 10:42:52 > FS-10512: CZVSOR3 maps to 172.22.111.120, 192.168.32.3 on CZVSOR3
    59 10:42:52 > FS-10512: CZVSOR3 maps to 172.22.111.120 on CZVSOR2
    60 10:42:52 > FS-10998:
    61 10:42:52 > FS-10512: CZVSOR2 maps to 172.22.111.119 on CZVSOR1
    62 10:42:52 > FS-10512: CZVSOR2 maps to 172.22.111.119 on CZVSOR3
    63 10:42:52 > FS-10512: CZVSOR2 maps to 172.22.111.119, 192.168.32.2 on CZVSOR2
    64 10:42:52 > FS-10998:
    65 10:42:52 > FS-10512: CZVSOC02 maps to 172.22.111.115 on CZVSOR1
    66 10:42:52 > FS-10512: CZVSOC02 maps to 172.22.111.115 on CZVSOR3
    67 10:42:52 > FS-10512: CZVSOC02 maps to 172.22.111.115 on CZVSOR2
    68 10:42:52 > FS-10998:
    69 10:42:52 > FS-10512: CZVSOR03 maps to 172.22.111.117 on CZVSOR1
    70 10:42:52 > FS-10512: CZVSOR03 maps to 172.22.111.117 on CZVSOR3
    71 10:42:52 > FS-10512: CZVSOR03 maps to 172.22.111.117 on CZVSOR2
    72 10:42:52 > FS-10998:
    73 10:42:52 > FS-10512: CZVSOC01 maps to 172.22.111.116 on CZVSOR1
    74 10:42:52 > FS-10512: CZVSOC01 maps to 172.22.111.116 on CZVSOR3
    75 10:42:52 > FS-10512: CZVSOC01 maps to 172.22.111.116 on CZVSOR2
    76 10:42:52 > FS-10998:
    77 10:42:52 The clusterwide operation completed successfully, however, the server reported some warnings.
    That seems to be ok!!
    CZVSOR03 Name of Cluster
    CZVSOR1/CZVSOR2/CZVSOR3 Name of Nodes
    CZVSOC01 Name of first Oracle Group preferred node CZVSOR1
    - works perfect -
    CZVSOC02 Name of second Oracle Group on Node CZVSOR3
    Following reported Problems by adding database to resource
    ADD Resource to Group – Oracle Database
    Versions: client = 3.3.3 server = 3.3.3 OS =
    Operation: Adding resource "ORCFIBU" to group "Oracle Group 2"
    Starting Time: Aug 08, 2007 13:21:28
    Elapsed Time: 0 minutes, 31 seconds
    1 13:21:28 Starting clusterwide operation
    2 13:21:28 FS-10370: Adding the resource ORCFIBU to group Oracle Group 2
    3 13:21:28 FS-10371: CZVSOR3 : Performing initialization processing
    4 13:21:28 FS-10371: CZVSOR2 : Performing initialization processing
    5 13:21:29 FS-10372: CZVSOR3 : Gathering resource owner information
    6 13:21:29 FS-10372: CZVSOR2 : Gathering resource owner information
    7 13:21:29 FS-10373: CZVSOR3 : Determining owner node of resource ORCFIBU
    8 13:21:29 FS-10374: CZVSOR3 : Gathering cluster information needed to perform the specified operation
    9 13:21:29 FS-10374: CZVSOR2 : Gathering cluster information needed to perform the specified operation
    10 13:21:29 FS-10375: CZVSOR3 : Analyzing cluster information needed to perform the specified operation
    11 13:21:29 >>> FS-10652: CZVSOR3 has Oracle Database version 10.2.0 installed in OraDb10g_Db
    12 13:21:29 >>> FS-10652: CZVSOR2 has Oracle Database version 10.2.0 installed in OraDb10g_Db
    13 13:21:29 FS-10376: CZVSOR3 : Starting configuration of resource ORCFIBU
    14 13:21:29 FS-10378: CZVSOR3 : Preparing for configuration of resource ORCFIBU
    15 13:21:29 FS-10380: CZVSOR3 : Configuring virtual server information for resource ORCFIBU
    16 13:21:30 > FS-10496: Generating the Oracle Net migration plan for ORCFIBU
    17 13:21:30 > FS-10490: Configuring the Oracle Net listener for ORCFIBU
    18 13:21:30 >> FS-10600: Oracle Net configuration file updated: D:\ORACLE\PRODUCT\10.2.0\DB_1\NETWORK\ADMIN\LISTENER.ORA
    19 13:21:30 >> FS-10606: Listener configuration updated in database parameter file: K:\ORCFIBU\initorcfibu.ora
    20 13:21:37 >> FS-10605: Oracle Net listener Fslczvsoc02 created
    21 13:21:39 >> FS-10602: Oracle Net listener FIBU_1 restarted
    22 13:21:39 > FS-10491: Configuring the Oracle Net service name for ORCFIBU
    23 13:21:39 >> FS-10600: Oracle Net configuration file updated: D:\ORACLE\PRODUCT\10.2.0\DB_1\NETWORK\ADMIN\TNSNAMES.ORA
    24 13:21:39 FS-10381: CZVSOR3 : Creating the resource information for resource ORCFIBU
    25 13:21:39 > FS-10424: Checking whether the database ORCFIBU is online
    26 13:21:55 > FS-10425: Querying the disks used by the database ORCFIBU
    27 13:21:56 ** ERROR : FS-10034: Error while querying for disks used by database instance ORCFIBU
    28 13:21:56 ** ERROR : FS-10778: The Oracle Database resource provider failed to configure the cluster resource ORCFIBU
    29 13:21:56 ** ERROR : FS-10890: Oracle Services for MSCS failed during the add operation
    30 13:21:56 ** ERROR : FS-10497: Starting clusterwide rollback of the operation
    31 13:21:56 FS-10488: CZVSOR3 : Starting rollback of operation
    32 13:21:56 > FS-10090: Rolling back Oracle Net changes on node CZVSOR3
    33 13:21:59 FS-10489: CZVSOR3 : Completed rollback of operation
    34 13:21:59 ** ERROR : FS-10495: Clusterwide rollback of the operation has been completed
    35 13:21:59 Please check your Windows Application log using the Event Viewer for any additional errors
    36 13:21:59 The clusterwide operation failed !
    ANY IDEAS WHATS WRONG????????
    Group has 2 SAN DEVICES K and L which i can move without any problems to node czvsor2 and back - but without the database.
    Normally my First node CZVSOR1 with Oracle Group CZVSOC01 on it is not involved for i removed this node from the available nodes list in my new group CZVSOC2
    DO i have to make K an L available from Node 1 CZVSOR1 ????
    General Question is it possible to have a 3 node Cluster with the following Configuration
    Node1 with Oracle Group 1 and database 1 managed to failover to node2
    Node3 with oracle Group 2 and database 2 managed to failover to node 2
    PLEASE I NEED URGENT HELP
    MANY MANY THANKS TO ALL!
    Joachim

    Yes, but yet not find a solution.
    we restarted the installation from scratch and now we are at the phase of the database instance.
    We noticed the following during the configuration of the first MSCS node :
    at the time where sapinst creates the sap cluster group, we get the error:
    "could not create sap cluster group. Please look at R3Clus.log"
    Behind it appears a screen where we are prompted to add manually the values. We added manually the values and then the sap cluster group was succesfully created and the configuration of the first MSCS node finished without reporting errors.
    But we noticed that although the SAPLOC share is normaly created in HA installation through ASCS installation and automatically removed when processing First MSCS Node, it was not removed at our case.
    We would like to know if the whole above symptom is normal or we must
    expect problems at the continuing of the installation of ECC6?
    If it is not normal what else we can do, so that sapinst do not
    stop at the creation of the sap cluster group ?

  • Can't uninstall or reinstall oracle 10g express edition in w/server 2003

    Hi,
    I need help from all of you, i already install oracle 10g express edition in
    windows server 2003 in D drive. but i can't remove because the oracle not in
    the add remove program so i download the windows install clean up to remove
    but after remove it still in the all program i still can start and stop the
    database but can't go to the database home page.The error message (the install
    cannot proceed as service OracleServiceXE is present on the system. Remove the
    service , reboot the systemand retry the installation) can any one guide me to use
    command prompt to remove.
    My email address [email protected]
    Thanks

    Hi,
    Perform the following steps, this will solve your problem and can go with new installation. :-)
    (Only perform the steps 7.2 section and here is the link : http://download.oracle.com/docs/cd/B25329_01/doc/install.102/b25143/toc.htm#BABDJDCD
    Manually Removing Oracle Database XE
    If the deinstallation is interrupted, follow these steps to manually remove Oracle Database XE from your computer:
    Step 1: Stop the Oracle Database XE Services
    Step 2: Remove the Oracle Database XE Registry Editor Settings
    Step 3: Update the System Variable Path
    Step 4: Remove Oracle Database XE from the Start Menu and Desktop
    Step 5: Remove the Oracle Database XE Directories
    Step 6: Install and Run the Windows Installer CleanUp Utility
    7.2.1 Step 1: Stop the Oracle Database XE Services
    Follow these steps:
    1. Open the Windows Services utility: From the Start menu, select All Programs, then Administrative Tools, and then Services.
    2. If any of the following Oracle services exist and have the status Started, then select each of the services, and click Stop:
    OracleXE
    OracleXETNSListener
    OracleJobSchedulerXE
    OracleXEClrAgent
    OracleMTSRecoveryService
    3.
    Exit Services.
    See also the Microsoft online help for more information on stopping services.
    7.2.2 Step 2: Remove the Oracle Database XE Registry Editor Settings
    Follow these steps:
    1.
    Log on to Windows with Windows administrative privileges.
    2.
    Ensure that you followed the instructions under "Step 1: Stop the Oracle Database XE Services" to stop the Oracle Database XE services.
    3.
    Start the Registry Editor at a command prompt:
    SYSTEM_DRIVE:\> regedit
    4.
    Go to HKEY_CLASSES_ROOT.
    5.
    Delete the following keys:
    NEED TO CONFIRM THE XE-SPECIFIC ONES.
    6.
    Go to HKEY_CURRENT_USER\Software.
    7.
    Under Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu\Programs, delete the Oracle Database 10g Express Edition key.
    8.
    Go to HKEY_LOCAL_MACHINE\SOFTWARE and search for the ORACLE group key.
    9.
    Expand the ORACLE group key and then delete the KEY_XE and OracleMTSRecoveryService keys.
    10.
    Go to HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI.
    11.
    Expand the ODBCINST.INI key and remove the Oracle in XE key.
    12.
    Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services.
    13.
    Delete the following keys:
    OracleServiceXE
    OracleXEClrAgent
    OracleXETNSListener
    14.
    Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application.
    15.
    Delete the Oracle.xe key.
    16.
    Exit the Registry Editor.
    17.
    Restart your computer.
    Thanks,
    Rams...
    Edited by: user10888288 on May 3, 2010 5:58 AM

  • Oracle 9.0.1 with RH9.0  ./runInstaller

    Hi!!
    I am trying to install Oracle 9i with RH9.0 but I have a problem when I execute ./runInstaller
    Itializing Java Virtual Machine from /tmp/OraInstall/jre/bin/jre. Please wait...
    /tmp/OraInstall/jre/bin/../lib/i686/green_threads/libzip.so: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference (libzip.so)
    Unable to initialize threads: cannot find class java/lang/Thread
    Could not create Java VM
    What can I do, please??
    My machine is
    - 512Mb Ram
    - 40Gb Disk space
    - java version "1.3.1"
    Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.3.1-FCS)
    Java HotSpot(TM) Client VM (build Blackdown-1.3.1-FCS, mixed mode)
    Thanks

    Hi,
    I found alike problem in Metalink:
    From: CESAR AUGUSTO RENGIFO 01-Jun-03 23:53
    Subject: problem intalling Oracle 8.1.7 in Red Hat 9
    problem intalling Oracle 8.1.7 in Red Hat 9
    hi, i am tried to install Oracle 8.1.7 Standard Edition in Red Hat 9, but the installer dont initialize.
    the error when i run runInstaller is:
    "Initializing Java Virtual Machine from ../stage/Components/oracle.swd.jre/1.1.8/1/DataFiles/Expanded/linux/bin/jre. Please wait...
    [oracle@localhost Disk1]$ /home/oracle/Disk1/stage/Components/oracle.swd.jre/1.1.8/1/DataFiles/Expanded/linux/lib/linux/native_threads/libzip.so: symbol errno,
    version GLIBC_2.0 not defined in file libc.so.6 with link time reference (libzip.so)
    Unable to initialize threads: cannot find class java/lang/Thread
    Could not create Java VM"
    the machine characteristics are:
    "Linux localhost.localdomain 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686 i686 i386 GNU/Linux"
    i had search through the installed packages for the glibc librarys and this is the result:
    "glib-1.2.10-10
    glibc-common-2.3.2-11.9
    glibc-2.3.2-11.9
    glib2-2.2.1-1
    glibc-devel-2.3.2-11.9
    glibc-kernheaders-2.4-8.10"
    thanks in advance,
    andrew
    From: Yonatan KOPEL 02-Jun-03 13:58
    Subject: Re : problem intalling Oracle 8.1.7 in Red Hat 9
    Ther is compatibility problem that happend with broken binaries
    errno shouldn't show up with binary or library compiled against glibc 2.1+
    You can use LD_ASSUME_KERNEL=2.4.1 (or 2.2.5) in the broken apps env
    to work around this.
    Jonathan Kopel
    From: RUDINEI RUFA N/A 10-Jun-03 22:11
    Subject: Re : problem intalling Oracle 8.1.7 in Red Hat 9
    May I can help you.... try to download a JRE latest version, install on /usr/local/java, and edit '/install/oraparam.ini', change the JRE location, and run the 'runInstaller' from '/install/linux'.
    Regards,
    Mauricio.
    [email protected]
    Support Analyst
    RH9 isn't certified for Oracle9i !!!
    Note:201370.1
    LINUX: Quick Start Guide - 9.2.0 RDBMS Installation
    Quick Start Guide Oracle9i Release 2 (9.2.0) RDBMS Installation Linux Operating System PURPOSE ======= This document is designed to be a quick reference that can be used when installing Oracle 9.2.0 on the Linux platform. It is NOT designed to take the place of the Installation Guide. It is recommended that users READ the installation guide. Instructions to locate that document are contained in Appendix A. A familiarity with the Linux Operating System is assumed. If Installation guide information is needed, please see the Appendix A at the bottom of this document for additional resources. Each step should be done in the order that it is listed. These steps are the bare minimum that is necessary for a typical install of the Oracle9i RDBMS. Verification of Version Certification: ====================================== Currently, Oracle 9.2.0 is certified ONLY on the following Intel Based Server Linux distributions: - Red Hat Advanced Server 2.1 - Suse SLES7, SLES8 - United Linux 1.0 For the latest certification and other related information, use the "Certify & Availability" link in Metalink. Installations on distributions and versions not listed in the Certify link is not supported. Pre-requisite Requirements for System Administrator: ==================================================== The following steps are required to verify your operating system meets minimum requirements for installation, and should be performed by the root user. For assistance with system administration issues, please contact your system administrator or operating system vendor. Use these steps to manually check the operating system requirements before attempting to install Oracle RDBMS software, or you may choose to use the convenient "Unix InstallPrep script" which automates these checks for you. For more information about the script, including download information, please review the following article: Note:189256.1 UNIX: Script to Verify Installation Requirements for Oracle 9.x version of RDBMS Users must have /bin/utils installed for the operating system. This is part of the developers option on RedHat Advanced Server 2.1. The Following Steps Need to be Performed by the Root User: 1. Configure System Resources: Ensure that the system has at least the following resources: ? 400 MB in /tmp * ? 512 MB of Physical Memory (RAM) ? Three times the amount of Physical Memory for Swap space (unless the system exceeds 1 GB of Physical Memory, where two times the amount of Physical Memory for Swap space is sufficient) * You may also redirect /tmp by setting the TEMP environment variable. This is only recommended in rare circumstances where /tmp cannot be expanded to meet free space requirements. 2. Create a Software Owner and Group: Create a Unix user and group that will own the Oracle software. (Typically user = oracle, group = dba) You may use a GUI tool for this if your distirbution provides one, or the 'useradd' and 'groupadd' command line utilities. Please make sure the user and group you use are defined in the local /etc/passwd and /etc/group files rather than resolved via a network service such as NIS. 3. Create a Software Mount Point and DataFile Mount Points: Create a mount point for the Oracle software installation (at least 2.5 GB, typically /u01) Create a second, third and fourth mount point for the database files, control files, and log files to be created (typically /u02, /u03, /u04). ? The oracle user should own these mount points and all of the directories below the mount point. 4. Test the Permissions: Ensure that the oracle user can write to the new mount points ? As a test, change directories to each of the new mount point directories as the oracle user and create a file or directory. Example: % touch /u01/test 5. Configure Kernel Resources: The following kernel parameters related to shared memory and semaphores will require tuning:      SHMMAX = 2147483648      SHMMIN = 1      SHMMNI = 100      SEMMNS = 1000      SEMMSL = 250      SEMMNI = 100      SEMOPM = 100 6.On Linux kernel parameters can be set dynamically or can be written in a shell script to be set at boot time. Kernel parameters should be set as the root user. They are set as follows 1.     cd /proc/sys/kernel 2.     Modify the parameter values by using the following command syntax: a.     # echo 100 32000 100 100 > sem           This sets SEMMSL, SEMMNS, SEMOPM, SEMMNI b.     # echo 2147483648 > shmmax c.     # echo 1 > shmmin d.     # echo 100 > shmmni ================================================================================ These changes are NOT persistent and must be re-set after each re-boot. On RedHat Advanced Server 2.1, these parameters can be entered into the file /etc/sysctl.conf. This parameters in this file are set each time the system is booted. Example:      $ more /etc/sysctl.conf      # Disables packet forwarding      net.ipv4.ip_forward = 0      # Enables source route verification      net.ipv4.conf.default.rp_filter = 1      # Disables the magic-sysrq key      kernel.sysrq = 0      kernel.shmmax=256000000      kernel.shmmin=1      kernel.shmmni=100      kernel.sem= 250 32000 32 128 7. Mount CD-ROM: Depending on your Linux distribution the cdrom device is typically either "/cdrom" or "/mnt/cdrom". Please substitute the appropriate value when "<cdrom>" appears in the examples. # mount <cdrom> Installs can be done from either the CD or by copying the contents of each CD?s to a stage area on the local disk (/stage/Disk1, /stage/Disk2, /stage/DiskN) 8.This is required to run as root: /tmp/orainstRoot.sh First question of oracle installation. If no other versions of Oracle 8i or 9i have been installed before. You will be ask to run /tmp/orainstRoot.sh to create the oraInventory location pointer. Usually found in /etc on Linux Files that are located in /etc are /etc/oratab and /etc/oraInst.loc Installation Steps for the Oracle User ======================================= The Following Steps need to be performed by the Oracle User: This can be done from either a Telnet or an SSH connection. It is NOT recommended to perform installations from a su ? oracle connection. 1. Set Environment Variables Environment variables should be set in the login script for the oracle user. If the oracle user's default shell is the C-shell (/usr/bin/csh), then the login script will be named ".login". If the oracle user's default shell is the Bourne-shell (/usr/bin/bsh) or the Korn-shell (/usr/bin/sh or /usr/bin/ksh), then the login script will be named ".profile". In either case, the login script will be located in the oracle user's home directory ($HOME). The examples below assume that your software mount point is /u01. Parameter Value ----------- ------ ORACLE_HOME /u01/app/oracle/product/9.2.0 ORACLE_BASE /u01/app/oracle PATH /u01/app/oracle/product/9.2.0/bin: /usr/ccs/bin:/usr/bin/X11/:/usr/local/bin and any other items you require in                     your PATH      ORA_NLS33          $ORACLE_HOME/ocommon/nls/admin/data ORACLE_SID Set this to what you will call your database instance. (4 - 8 characters in length)      If you are not on the console, you may need to set the following DISPLAY <ip-address>:0.0 (review Note:153960.1 for detailed information) ENSURE THAT CLASS_PATH IS NOT SET IN THE ENVIRONMENT 2. Set the umask: Set the oracle user's umask to "022" in you ".profile" or ".login" file. Example: umask 022 3. Verify the Environment Log off and log on as the oracle user to ensure all environment variables are set correctly. Use the following command to view them: % env | more Before attempting to run the Oracle Universal Installer, verify that you can successfully run the following command: % /usr/bin/X11/xclock If this does not display a clock on your display screen, please review the following article: Note:153960.1 FAQ: X Server testing and troubleshooting 4. Start the Oracle Universal Installer and install the RDBMS software: Use the following commands to start the installer: % cd /tmp % /cdrom/runInstaller Or cd to /stage/Disk1 and run ./runInstaller Respond to the installer prompts as shown below: ? When prompted for whether orainstRoot.sh has been run by root, enter "y". This should have been done in Pre-Installation step 8 above. ? At the "Welcome Screen", click Next. ? If prompted, enter the directory to use for the "Inventory Location". This can be any directory, but is usually not under ORACLE_HOME because the oraInventory is shared with all Oracle products on the system. ? If prompted, enter the "UNIX Group Name" for the oracle user (dba). ? At the "File Locations Screen", verify the Destination listed is your ORACLE_HOME directory. Also enter a NAME to identify this ORACLE_HOME. The NAME can be anything, but is typically "DataServer" and the first three digits of the version. For example: "DataServer920" ? At the "Available Products Screen", choose Oracle9i Database, then click Next. ? At the "Installation Types Screen", choose Enterprise Edition, then click Next. ? If prompted, click Next at the "Component Locations Screen" to accept the default directories. ? At the "Database Configuration Screen", choose the the configuration based on how you plan to use the database, then click Next. ? If prompted, click Next at the "Privileged Operating System Groups Screen" to accept the default values (your current OS primary group). ? If prompted, enter the Global Database Name in the format "ORACLE_SID.hostname" at the "Database Identification Screen". For example: "TEST.LNXhost". The SID entry should be filled in with the value of ORACLE_SID. Click Next. ? If prompted, enter the directory where you would like to put datafiles at the "Database File Location Screen". Click Next. ? If prompted, select "Use the default character set" (WE8ISO8859P1) at the "Database Character Set Screen". Click Next. ? At the "Summary Screen", review your choices, then click Install. The install will begin. Follow instructions regarding running "root.sh" and any other prompts. When completed, the install will have created a default database, configured a Listener, and started both for you. Note: If you are having problems changing CD-ROMs when prompted to do so, please review the following article: Note:146566.1 How to Unmount / Eject First Cdrom Your Oracle9i Release 2 (9.2.0) RDBMS installation is now complete and ready for use. Appendix A ========== Documentation is available from the following resources: Oracle9i Release 2 (9.2.0) CD-ROM Disk1 ---------------------------------------- Mount the CD-ROM, then use a web browser to open the file "index.htm" located at the top level directory of the CD-ROM. Then proceed to Documentation menu Item on this CD-ROM you will find the Installation Guide, Administrator's Reference, and other useful documentation. Oracle Documentation Center --------------------------- Point your web browser to the following URL: http://otn.oracle.com/documentation/content.html Select the highest version CD-pack displayed to ensure you get the most up-to-date information.
    Regards,
    Ladislav Jurencak

  • Dragons ! RH61 and Oracle 8.1.5 db creation

    Oh dear. It seems we have found the dragons lair ...
    OK, I managed to get through the install section,
    in short, run the linux/install/runIns.sh script and do it with KDE.
    Now what does the window manager have to do with this ?
    Well, there is an explanation, but I was quite surprised that the wm could be an issue ...
    The NEXT problem: Create a database.
    There is a very good description at http://homepages.tig.com.au/~jmsalvo/linux/oracle8i-3.html
    Well what is the source of the problem here ?
    All of my efforts (so far) have resulted in the well-known "Not logged on" message.
    There is a very "funny" addition to this:
    Startup is done manually WITH success - but then the Not logged on appears.
    But then I can't shut it down again or anything (Not logged on).
    Applying the patches didn't change a thing.
    WHAT IS THE SOURCE OF THIS NOT-LOGGED-ON MESSAGE AND HOW TO FIX IT ?
    PLEASE STATE THE HIGHLIGHTS OF THE PROCESS.
    IS IT RELATED TO DIFFERENCES BETWEEN REDHAT 6.0 AND 6.1 ?
    Red Hat Linux release 6.1 (Cartman)
    Kernel 2.2.12-20 on an i586
    login: oracle
    Last login: Wed Feb 2 20:32:34 from main
    Happy Oracle environvent variables set.
    [oracle@lbox oracle]$ svrmgrl
    Oracle Server Manager Release 3.1.5.0.0 - Production
    (c) Copyright 1997, Oracle Corporation. All Rights Reserved.
    Oracle8i Enterprise Edition Release 8.1.5.0.2 - Production
    With the Partitioning and Java options
    PL/SQL Release 8.1.5.0.0 - Production
    SVRMGR> connect internal
    Connected.
    SVRMGR> startup nomount
    ORACLE instance started.
    ORA-01012: not logged on
    SVRMGR>
    Server Manager complete.
    [oracle@lbox oracle]$ sqlplus system/manager
    SQL*Plus: Release 8.1.5.0.0 - Production on Wed Feb 2 20:41:57 2000
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    ERROR:
    ORA-01033: ORACLE initialization or shutdown in progress
    null

    The below text is cut-n-paste from a telnet session on a freshly booted machine.
    The oracle environment variables are set by /usr/local/bin/env4ora.sh
    The network is local and not connected to anything. The domain name is lnx.
    I want to create a database called db1
    I assume the global name will be db1.lnx, and the sid db1
    I have tried with dbassist to select 'custom' and 'dedicated',
    I have also checked that all mts_* entries were commented out # mts_*.
    The $ORACLE_HOME/rdbms/install/create directory contains a skeleton.
    I have used this to try to create the db1 database,
    and here is the information you requested.
    I have put it in one big posting for everyone to see.
    You get everything up to point 8 in the famous "3.7" paragraph.
    This is really a good guide, I highly appreciate your help
    Red Hat Linux release 6.1 (Cartman)
    Kernel 2.2.12-20 on an i586
    login: oracle
    Last login: Thu Feb 3 00:46:01 from main
    Happy Oracle environvent variables set.
    [oracle@lbox oracle]$ hostname
    lbox.lnx
    [oracle@lbox oracle]$ cat /usr/local/bin/env4ora.sh
    #/bin/sh
    # - create group oinstall
    # - create group dba
    # - create user oracle default group oinstall
    # - group dba contains oracle and root
    # - user oracle is a member of oinstall and dba, there is no oracle group
    # Very very ultra-short quick install guide:
    # - As usual install must be done by the "oracle" user.
    # - Have at least 128 megs of RAM, or it doesn't work.
    # - The "runInstaller" script doesn't work ...
    # instead go to the install/linux dir and run runIns.sh
    # - Some problems with GNOME and Enlightenment.
    # Use KDE or a newer version of Enlightenment.
    # - Patches should be applied after installation and before creating databases.
    export LD_LIBRARY_PATH=/big/ora/app/oracle/product/8.1.5/lib
    export ORACLE_BASE=/big/ora/app/oracle
    export ORACLE_HOME=$ORACLE_BASE/product/8.1.5
    export NLS_LANG=WE8ISO8859P1
    export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
    export ORACLE_SID=test
    export PATH="$PATH:$ORACLE_HOME/bin"
    echo Happy Oracle environvent variables set.
    [oracle@lbox oracle]$
    [oracle@lbox oracle]$ cd $ORACLE_HOME
    [oracle@lbox 8.1.5]$ cd rdbms/install/create/
    [oracle@lbox create]$
    [oracle@lbox create]$ vi initdb1.ora
    1 db_name = db1
    2 instance_name = db1
    3 service_names = db1.lnx
    4
    5 control_files = ("/big/ora/app/oracle/oradata/db1/control01.ctl", "/big/ora/app/oracle/oradata/db1/control02.ctl")
    6
    7 db_block_buffers = 8192
    8
    9 shared_pool_size = 15728640
    10
    11 java_pool_size = 20971520
    12
    13 log_checkpoint_interval = 10000
    14 log_checkpoint_timeout = 1800
    15
    16 processes = 50
    17
    18 log_buffer = 163840
    19
    20 # audit_trail = false # if you want auditing
    21 # timed_statistics = false # if you want timed statistics
    22 # max_dump_file_size = 10000 # limit trace file size to 5M each
    23
    24 #log_archive_start = true
    25 #log_archive_dest_1 = "location=?/dbs/arch"
    26 #log_archive_format = %t_%s.dbf
    27 # If using private rollback segments, place lines of the following
    28 # form in each of your instance-specific init.ora files:
    29 rollback_segments = (r01, r02, r03, r04)
    30
    31 # Global Naming -- enforce that a dblink has same name as the db it connects to
    32 # global_names = false
    33
    34 # Uncomment the following line if you wish to enable the Oracle Trace product
    35 # to trace server activity. This enables scheduling of server collections
    36 # from the Oracle Enterprise Manager Console.
    37 # Also, if the oracle_trace_collection_name parameter is non-null,
    38 # every session will write to the named collection, as well as enabling you
    39 # to schedule future collections from the console.
    40 # oracle_trace_enable = true
    41
    42 # define directories to store trace and alert files
    43 background_dump_dest = /big/ora/app/oracle/oradata/db1/bdump
    44 core_dump_dest = /big/ora/app/oracle/oradata/db1/cdump
    45 user_dump_dest =/big/ora/app/oracle/oradata/db1/udump
    46
    47 db_block_size = 4096
    48
    49 remote_login_passwordfile = exclusive
    50
    51 os_authent_prefix = ""
    52
    53 # The following parameters are needed for the Advanced Replication Option
    54 #job_queue_processes = 0
    55 #job_queue_interval = 60
    56 #distributed_transactions = 10
    57 #open_links = 4
    58
    59 # mts_dispatchers = "(PROTOCOL=TCP)(PRE=oracle.aurora.server.SGiopServer)"
    60 # Uncomment the following line when your listener is configured for SSL
    61 # (listener.ora and sqlnet.ora)
    62 # mts_dispatchers = "(PROTOCOL=TCPS)(PRE=oracle.aurora.server.SGiopServer)"
    63
    64 # mts_servers = 1
    65 compatible = "8.1.5"
    ~
    :q
    [oracle@lbox create]$ vi db1.sh
    1 DB_NAME=db1
    2 DB_DIR=/big/ora/app/oracle/oradata/$DB_NAME
    3 echo "Creating dirs"
    4 mkdir $DB_DIR
    5 mkdir $DB_DIR/pfile
    6 mkdir $DB_DIR/bdump
    7 mkdir $DB_DIR/cdump
    8 mkdir $DB_DIR/udump
    9 mkdir $DB_DIR/create
    10 mkdir $DB_DIR/exp
    11 mkdir $DB_DIR/adhoc
    12 mkdir $DB_DIR/arch
    13
    14 mkdir $ORACLE_HOME/install/w_$DB_NAME
    15 echo "Copy creation skeleton files. Remember to modify"
    16 cp crdb1.sh $ORACLE_HOME/install/w_$DB_NAME/$DB_NAMEcrdbr1.sh
    17 cp crdb2.sh $ORACLE_HOME/install/w_$DB_NAME/$DB_NAMEcrdbr2.sh
    18 cp crdb3.sh $ORACLE_HOME/install/w_$DB_NAME/$DB_NAMEcrdbr3.sh
    19
    20 echo "Copying init$DB_NAME.ora file"
    21 cp init$DB_NAME.ora $DB_DIR/pfile
    22
    23 echo "Creating symlink"
    24 ln -s $DB_DIR/pfile/init$DB_NAME.ora $ORACLE_HOME/dbs/init$DB_NAME.ora
    25
    ~
    :q
    [oracle@lbox create]$ ./db1.sh
    Creating dirs
    Copy creation skeleton files. Remember to modify
    Copying initdb1.ora file
    Creating symlink
    [oracle@lbox create]$ ls /big/ora/app/oracle/oradata/db1/
    adhoc arch bdump cdump create exp pfile udump
    [oracle@lbox create]$ ls $ORACLE_HOME/dbs
    init.ora initdb1.ora initdw.ora
    [oracle@lbox create]$ cd $ORACLE_HOME/install/w_db1
    [oracle@lbox w_db1]$ vi db1crdbr1.sh
    1 #!/bin/sh
    2 ORACLE_SID=db1
    3 export ORACLE_SID
    4
    5 $ORACLE_HOME/bin/orapwd file=$ORACLE_HOME/dbs/orapw$ORACLE_SID password=change_on_install
    6 $ORACLE_HOME/bin/svrmgrl << EOF
    7 spool $ORACLE_HOME/install/crdb1.log
    8 connect internal
    9 startup nomount pfile = $ORACLE_HOME/dbs/initdb1.ora
    10 CREATE DATABASE "db1"
    11 maxdatafiles 254
    12 maxinstances 8
    13 maxlogfiles 32
    14 character set US7ASCII
    15 national character set US7ASCII
    16 DATAFILE '$ORACLE_HOME/dbs/system01.dbf' SIZE 175M
    17 logfile '$ORACLE_HOME/dbs/redo01.log' SIZE 4096K,
    18 '$ORACLE_HOME/dbs/redo02.log' SIZE 4096K;
    19 disconnect
    20 spool off
    21 exit
    22
    23
    24 EOF
    ~
    [oracle@lbox w_db1]$ pwd
    /big/ora/app/oracle/product/8.1.5/install/w_db1
    [oracle@lbox w_db1]$ echo $ORACLE_HOME
    /big/ora/app/oracle/product/8.1.5
    [oracle@lbox w_db1]$ cp db1crdbr1.sh ..
    [oracle@lbox w_db1]$ cd ..
    [oracle@lbox install]$
    [oracle@lbox install]$
    [oracle@lbox install]$ ./db1crdbr1.sh
    Oracle Server Manager Release 3.1.5.0.0 - Production
    (c) Copyright 1997, Oracle Corporation. All Rights Reserved.
    Oracle8i Enterprise Edition Release 8.1.5.0.2 - Production
    With the Partitioning and Java options
    PL/SQL Release 8.1.5.0.0 - Production
    SVRMGR> SVRMGR> Connected.
    SVRMGR> ORACLE instance started.
    ORA-01012: not logged on
    SVRMGR> 2> 3> 4> 5> 6> 7> 8> 9> CREATE DATABASE "db1"
    ORA-01012: not logged on
    SVRMGR> Disconnected.
    SVRMGR> SVRMGR> Server Manager complete.
    [oracle@lbox install]$
    [oracle@lbox install]$ make sense
    make: *** No rule to make target `sense'. Stop.
    [oracle@lbox install]$
    [oracle@lbox install]$ cd ../rdbms/log
    [oracle@lbox log]$
    [oracle@lbox log]$ cat alert_db1.log
    Thu Feb 3 01:14:39 2000
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    LICENSE_MAX_USERS = 0
    Starting up ORACLE RDBMS Version: 8.1.5.0.2.
    System parameters with non-default values:
    processes = 50
    shared_pool_size = 15728640
    java_pool_size = 20971520
    control_files = ?/dbs/control01.ctl, ?/ dbs/control02.ctl
    db_block_buffers = 8192
    db_block_size = 2048
    compatible = 8.1.0
    log_buffer = 163840
    log_checkpoint_interval = 10000
    log_checkpoint_timeout = 1800
    rollback_segments = r01, r02, r03, r04
    remote_login_passwordfile= EXCLUSIVE
    db_domain = lnx
    distributed_transactions = 10
    service_names = db1.lnx
    instance_name = db1
    open_links = 4
    db_name = db1
    os_authent_prefix =
    job_queue_processes = 0
    job_queue_interval = 60
    PMON started with pid=2
    Load Indicator not supported by OS !
    DBW0 started with pid=3
    LGWR started with pid=4
    CKPT started with pid=5
    SMON started with pid=6
    RECO started with pid=7
    [oracle@lbox log]$
    [oracle@lbox log]$ cd /big/ora/app/oracle/oradata/
    [oracle@lbox oradata]$ ls -lR db1
    db1:
    total 32
    drwxr-xr-x 2 oracle dba 4096 Feb 4 01:14 adhoc
    drwxr-xr-x 2 oracle dba 4096 Feb 4 01:14 arch
    drwxr-xr-x 2 oracle dba 4096 Feb 4 01:27 bdump
    drwxr-xr-x 2 oracle dba 4096 Feb 4 01:14 cdump
    drwxr-xr-x 2 oracle dba 4096 Feb 4 01:14 create
    drwxr-xr-x 2 oracle dba 4096 Feb 4 01:14 exp
    drwxr-xr-x 2 oracle dba 4096 Feb 4 01:14 pfile
    drwxr-xr-x 2 oracle dba 4096 Feb 4 01:14 udump
    db1/adhoc:
    total 0
    db1/arch:
    total 0
    db1/bdump:
    total 8
    -rw-r--r-- 1 oracle oinstall 1262 Feb 4 01:27 alert_db1.log
    -rw-r----- 1 oracle oinstall 587 Feb 4 01:27 pmon_7907.trc
    db1/cdump:
    total 0
    db1/create:
    total 0
    db1/exp:
    total 0
    db1/pfile:
    total 4
    -rw-r--r-- 1 oracle dba 2097 Feb 4 01:14 initdb1.ora
    db1/udump:
    total 0
    [oracle@lbox oradata]$
    null

  • Oracle 11g ASM - looking for some answers

    Hello,
    I reviewed a bunch of stuff about Oracle 11g ASM from various sources, but still haven't figured out some answers. Perhaps someone could help me to find the missing links please.
    Q1) ASMLib seems to require partitions. ASM recognizes partitions as well as disk devices. So why not using partitions in general? At least I could use ASMLib later without having to reconfigure the drives and loosing all data. Correct?
    Q2) The ASMLib driver is not installed by default, and unlike other ASM components is not available from the public yum repository for OEL 5.5. After some searching I found it available for download, but why is it not more obvious. Should it not be used anymore? http://www.oracle.com/technetwork/topics/linux/downloads/rhel5-084877.html
    Q3) ASM will not see drives or partitions unless the device ownership is set to Oracle. When Enterprise Linux starts, it resets all block devices to the owner of root. The solution is to create a udev rules file: e.g.:
    /etc/udev/rules.d/99-oracle.rules:
    KERNEL=="sda", OWNER="oracle", GROUP="dba", MODE="0660"
    KERNEL=="sdb", OWNER="oracle", GROUP="dba", MODE="0660"
    Before using ASMLlib, I need to configure the driver, which will ask me for the default user and group who owns the partitions (/etc/init.d/oracleasm configure)
    I conclude that using ASMLib will therefore not require a udev rules file, correct?
    Q4) The Oracle documentation outlines that ASMLIB is an application programming interface (API) developed by Oracle to simplify the operating system–to-database interface and to exploit the capabilities of vendors' storage arrays on Linux-based systems. What does this mean, examples? Isn't this what ASM does in general, why ASMLIB?
    Q5) I installed ASM and would like to re-configure it. Apparently ASM alone does not provide an interface other than sqlplus. In order use ASM with Enterprise Manager, I need to install a database or EM 11g (?) Grid control. Correct?
    Thanks,
    Markus

    Hi,
    So you got answers for 3 4 and 5
    Q1) ASMLib seems to require partitions. ASM recognizes partitions as well as disk devices. So why not using partitions in general? At least I could use ASMLib later >without having to reconfigure the drives and loosing all data. Correct?Using ASMLib, you can use your understandable disk partitions names rather than creating raw devices and adding entry in /etc/raw file and changing rights on every startup, so it makes life easier. Read post of "wcoekaer" from following thread
    ASMLib and Linux block devices
    Q2) The ASMLib driver is not installed by default, and unlike other ASM components is not available from the public yum repository for OEL 5.5. After some >searching I found it available for download, but why is it not more obvious. Should it not be used anymore? http://www.oracle.com/technetwork/topics/linux/downloads/rhel5-084877.html
    I am not sure about OEL 5, but i have seen it in OEL 4 and i can install this package during OEL 4 installation. But i believe you should be able to find this package in one of the Disks of OEL 5
    Salman

  • Secury bug in oracle 11.2.0.4.

    Hello, After perfor database import via impdp in a local Oracle Database 11.2.0.4, I noticed that I can now connect to Oracle 11.2.0.4 with the password of the remote sys and also the password of local sys. I Believe it is a security bug that must be fixed.
    See image below:
    SQL> conn sys/glbdba10@homolog as sysdba
    Connected to Oracle Database 11g Release 11.2.0.4.0
    Connected as SYS
    SQL> conn sys/glbdbaora00600@homolog as sysdba
    Connected to Oracle Database 11g Release 11.2.0.4.0
    Connected as SYS
    SQL>

    Hi Justin,
    This ps the problem, Im not connect to Database via Operational System ou Oracle Group.
    Press atention:
    SQL> conn sys/glbdba10@homolog as sysdba
    Connected to Oracle Database 11g Release 11.2.0.4.0
    Connected as SYS
    SQL> conn sys/glbdbaora00600@homolog as sysdba
    Connected to Oracle Database 11g Release 11.2.0.4.0
    Connected as SYS
    SQL>
    SQL> conn sys/manager@homolog as sysdba
    Connected to Oracle Database 11g Release 11.2.0.4.0
    Connected as SYS
    SQL> conn sys/junior@homolog as sysdba
    Connected to Oracle Database 11g Release 11.2.0.4.0
    Connected as SYS
    SQL> conn sys/x@homolog as sysdba
    Connected to Oracle Database 11g Release 11.2.0.4.0
    Connected as SYS
    SQL> conn sys/glbdbaora00600@homolog as sysdba
    Connected to Oracle Database 11g Release 11.2.0.4.0
    Connected as SYS

  • OpenSUSE 11.1 (x86_64) Apache2 PHP Oracle !oci_connect

    Hi all,
    can't connect to an oracle instance oci_connect()
    Warning: oci_connect(): OCIEnvNlsCreate() failed. There is something wrong with your system - please check that ORACLE_HOME and LD_LIBRARY_PATH are set and point to the right directories in /srv/www/htdocs/ora/index.php on line 3
    System:
    openSUSE 11.1 (x86_64)
    PHP Version 5.2.11
    OCI 1.4.0 Alpha $Revision: 1.269.2.16.2.38.2.32 $
    Compile-time ORACLE_HOME: opt/oracle/product/10.2.0/db_1
    Libraries Used: -Wl,-rpath,/opt/oracle/product/10.2.0/db_1/lib -L/opt/oracle/product/10.2.0/db_1/lib -lclntsh
    set | grep ora
    ORACLE_BASE=/opt/oracle
    ORACLE_HOME=/opt/oracle/product/10.2.0/db_1
    ORA_ASM_HOME=/opt/oracle/product/10gR2/asm
    ORA_CRS_HOME=/opt/oracle/product/10gR2/crs
    PATH=/home/user/bin:/usr/local/bin:/usr/bin:/sbin:/usr/sbin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib64/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/opt/novell/ncl/bin:/opt/oracle/product/10.2.0/db_1/bin
                   decorate diff-filter=
    Does anyone has an ideer why the connection can't established.
    Best regards
    Till

    sorry....
    Workaround: add the apache user to the oracle group. This only occurs
    in 5.2.1. Previous versions of PHP which I've tried (5.0.3 and 5.1.0)
    did not have this problem. Obviously this is a security issue as the
    apache user now has a lot more things it can use to wreak havoc.

  • Oracle 10g on Oracle Linux 5.6: dbca does.. nothing?

    Dear all,
    I successfully installed Oracle Enterprise Linux 5.6 64bit on a test server. I installed a bunch of prerequisite packages then I successfully installed Oracle 10G (10.2 for linux x86-64). During the installation I selected "no default database (only server) and no enterprise manager".
    Successfully I mean, apparently!
    After that I launched DBCA, and go through all steps to create my first database.
    - general purpose
    - no enterprise manager (disabled, anyway)
    - on file system
    - use database file locations from template (ORACLE_BASE is correctly set)
    - no flash recovery area
    - default size, charset and so on
    Then I reach the last page (12). Create Database is already selected, and I select also "Generate Database Creation Scripts". I press Finish. The Confirmation page appears, I review all the stuff then I press OK.
    At this point I expect the window with the progress bar of database creation (I did this tens of times before on 10g, 11g on Windows and Linux) but I simply return to the Step 12 of dbca.
    In /u01/app/oracle/oradata I see an empty ORCL folder
    In /u01/app/admin/ORCL I see the empty folders: adump, bdump, cdump and so on, plus scripts, that contains:
    - ORCL.sh:
    #!/bin/sh
    mkdir -p /u01/app/oracle/admin/ORCL/adump
    mkdir -p /u01/app/oracle/admin/ORCL/bdump
    mkdir -p /u01/app/oracle/admin/ORCL/cdump
    mkdir -p /u01/app/oracle/admin/ORCL/dpdump
    mkdir -p /u01/app/oracle/admin/ORCL/pfile
    mkdir -p /u01/app/oracle/admin/ORCL/udump
    mkdir -p /u01/app/oracle/datafile
    mkdir -p /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/dbca/ORCL
    mkdir -p /u01/app/oracle/product/10.2.0/db_1/dbs
    ORACLE_SID=ORCL; export ORACLE_SID
    - ORCL.sql:
    PROMPT specify a password for sys as parameter 1;
    DEFINE sysPassword = &1
    PROMPT specify a password for system as parameter 2;
    DEFINE systemPassword = &2
    I can't found any log and I don't understand what's wrong.
    Mario.

    You'll never believe!
    I suspected about an apparently stupid warning whenever I launched dbca on command line (Xming server over ssh)
    Warning: Cannot convert string "-b&h-lucida-medium-r-normal-sans-*-140-*-*-p-*-iso8859-1" to type FontStruct
    I installed xming fonts and now the progress window appears and database creation is done, everything works fine! Incredible!
    This lead me to see a new error, during the db creation:
    ora-27125: unable to create shared memory segment.
    I solved this by issuing this command
    #echo "<dba_group_gid>" > /proc/sys/vm/hugetlb_shm_group
    where dba_group_gid is the gid of oracle group (i.e. oinstall).

Maybe you are looking for

  • Activation from Windows 8 Pro to Windows 8.1 Pro

    I  generally use Windows 7 Home Premium in my Acer 4738Z and my old Acer is broken. so I buy a new Acer E1-410 (and bla-bla in a nutshell) my new Acer E1-410 can't use Windows 7 it must uses UEFI system (in my previous post http://social.technet.micr

  • One statement is not working in swing

    T2.setEchoChar('*'); Can above statement use in swing package? Else What is the statement can use to encypt the data in the text field allocated for the password like above statement?

  • Connection to ipod s

    Hi I've seen similar questions on the forum, but not quite the same. We are about to purchase a new car (VW Golf) and it comes with a slot/cradle for ipods. Very handy if you have an ipod - we don't! Does anyone know of any adaptors to connect to the

  • My iPhone 5 has frozen updating the is

    While updating my iPhone with the new ios it starred loading it up and it's been like this for the past three hours what do I do to fix this

  • SAP B1 suspends when Crystal Report parameter screen appears

    Crystal Report Add On is installed to my SAP B1 2007B (patch 10) system. When I run a CR report, a parameter screen appears for me to enter required parameter values. The system seems suspended to all other B1 users until I submitted the parameter va