CTE'S in Oracle

I am a new developer on Oracle 10g...Can i use CTES(common table expressions) in PL/SQl as in SQl....
If yes a brief example can help me...thank you
What i am basically ttring to do is slect some fields from group of tables and use those fields in a fucntion ...i need these fields only for the scope of the function..
which is best method...
Edited by: 874167 on Sep 6, 2011 9:12 AM

It would be relatively unusual to use a temporary table in Oracle as you would in SQL Server. Since readers don't block writers and since locks are never escalated, you'd normally just work directly with your tables rather than storing the data in some temporary structure.
You can use common table expressions in PL/SQL just as you can in SQL, i.e.
BEGIN
  FOR i IN (
      WITH x AS (
        SELECT 1 num FROM dual
      SELECT num
        FROM x )
  LOOP
    dbms_output.put_line( i.num );
  END LOOP;
END;I'm not sure that's exactly what you're looking for, though.
Justin

Similar Messages

  • Sys_connect_by_path_node ? [Can do this in ANSI SQL-99] - Hierarchy Query

    Hi All,
    A slighly more complex connect by problem (that can be done with ANSI SQL-99) looking for an oracle matching output.
    Input Data: (Small example subset)
    RootID | Parent_ID | FreeText
    0 | 0     |
    444 | 555 | ABC1
    555 | 666 | DEF2
    666 | 777 | GHI3
    888 | 0 | JKL4
    Output Wanted: (Small example subset)
    RootID ParentID FreeText          LEVEL (Nesting)
    444 |     555 |               |     1
    444 |     666 |     ABC1          |     2
    444 |     777 |     DEF2-ABC1     |     3
    444 |     888 |     GHI3-DEF2-ABC1      | 4
    444 |     0 |     JKL4-GHI3-DEF2-ABC1 | 5
    Can be easily enough done with ANSI-99 SYNTAX (Not supported in Oracle using a recursive CTE)
    Target platform Oracle 9i
    ANSI-SQL 99 Syntax: (Not Supported on Oracle - but demonstrates the ANSI-SQL 99 compliant way of doing this)
    ;WITH Recurse(RootId, ParentID, FreeText, Level) AS
    (SELECT td.RootID, td.ParentID, '' as FreeText, 1 as Level
    from TEST_DATA td
    where rootid = 444
    union all
    select Recurse.RootID, td2.ParentId, td2.freetext + '-' + recurse.freetext, recurse.level+1 as level
    from TEST_DATA td2
    select * from Recurse;
    The problem: is to generating the freetext component correctly with oracle.
    Can generate the freetext component the wrong way round using SYS_CONNECT_BY_PATH.
    select connect_by_root(td.RootID), td.ParentID,
         CASE when level = 1 then ''
         ELSE
              SYS_CONNECT_BY_PATH(td.freetext, '-')
         END as FreeText, level
    from test_data td
    connect by td.RootID = prior td.ParentID
    which gives:
    RootID ParentID FreeText          LEVEL (Nesting)
    444 | 555     | |     1
    444 | 666 | ABC1 |          2
    444 | 777 | ABC1-DEF2 | 3
    444 | 888 | ABC1-DEF2-GHI3 | 4
    444 | 0 | ABC1-DEF2-GHI3-JKL4 | 5
    The problem is the freetext component is the wrong way round (the root node information always comes first).
    Tried looking at running something like:
    select connect_by_root(td.RootID), td.ParentID,
         CASE when level = 1 then ''
         ELSE
              td.freetext || '-' || FreeText2
         END as FreeText2, level
    from test_data td
    connect by td.RootID = prior td.ParentID
    --> but unfortunatly the aliasing of the column cannot be used to perform this operation [cannot reference the aliased column FreeText2].
    Is there a sys_connect_by_path_node? (The opposite of sys_connect_by_path)
    Returns the path of a column value from node to root,
    with column values separated by char for each row returned by CONNECT BY condition
    Or another way to get to the output required?
    Best Regards,
    D

    Not directly but there is a fairly common workaround using the undocumented REVERSE function.
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> SELECT SYS_CONNECT_BY_PATH (ename, '/') enames,
      2         REVERSE (SYS_CONNECT_BY_PATH (REVERSE (ename), '/')) reverse_enames
      3  FROM   emps
      4  START WITH mgr IS NULL
      5  CONNECT BY PRIOR empno = mgr;
    ENAMES                         REVERSE_ENAMES
    /KING                          KING/
    /KING/JONES                    JONES/KING/
    /KING/JONES/SCOTT              SCOTT/JONES/KING/
    /KING/JONES/SCOTT/ADAMS        ADAMS/SCOTT/JONES/KING/
    /KING/JONES/FORD               FORD/JONES/KING/
    /KING/JONES/FORD/SMITH         SMITH/FORD/JONES/KING/
    /KING/BLAKE                    BLAKE/KING/
    /KING/BLAKE/ALLEN              ALLEN/BLAKE/KING/
    /KING/BLAKE/WARD               WARD/BLAKE/KING/
    /KING/BLAKE/MARTIN             MARTIN/BLAKE/KING/
    /KING/BLAKE/TURNER             TURNER/BLAKE/KING/
    /KING/BLAKE/JAMES              JAMES/BLAKE/KING/
    /KING/CLARK                    CLARK/KING/
    /KING/CLARK/MILLER             MILLER/CLARK/KING/
    14 rows selected.
    SQL>

  • Payment Confirmation Interface Mapping Document

    Our customer is asking for a Mapping Document for Payment Confirmation for their development purposes in order to push the Payment notification to SAP CTE from their Oracle Financial system. Our one of the partner is already provided them all the interface mapping document and the
    only one lacking is the Interface Mapping document for Payment Notification.
    Please provide this document the soonest possible time because this is urgent on the customer side as they have already started their development.

    Hi Rahul,
    I hope you can give us estimates on when will be the document available. The customer is asking and we need to communicate that to them.
    They are also asking for mapping document of Other Cost Objects (Internal Objects, Projects, Sales Order). It seems that this document is not yet available.
    best regards,
    reynold

  • Using CTE in Oracle

    How it is possible to make it in Oracle?
    SQL Server:
    WITH cte (col1, col2) AS
    SELECT col1, col2
    FROM dbo.tb1
    WHERE col1 = 12
    UNION ALL
    SELECT c.col1, c.col2
    FROM dbo.tb1 AS c INNER JOIN cte AS p ON c.col2 = p.col1
    where c.col1 = c.col2
    SELECT * FROM cte
    It is probably necessary to use START WITH ... CONNECT BY PRIOR?
    I tried to make so:
    WITH cte AS(SELECT col1 col1, col2 col2
    FROM tb12
    WHERE col1 = 12
    UNION ALL
    SELECT c.col1 col1, c.col2 col2
    FROM tb12 c INNER JOIN cte p ON c.col2 = p.col1
    where c.col1 = c.col2)
    SELECT * FROM cte
    order by lvl NULLS FIRST;
    Result:
    ORA-32031: illegal reference of a query name in WITH clause

    Boy, I'm in a strange mood today ;)
    SQL> select * from t;
          COL1        COL2 VAL
             1             root
             2           1 user1
             3           1 user2
             4           1 user3
             5           2 user4
             6           2 user5
             7           3 user6
             8           3 user7
             9           4 user8
            10           5 user9
            11           5 user10
            12           6 user11
            13           6 user12
            14           7 user14
            15           7 user15
    15 rows selected.
    Elapsed: 00:00:00.15
    SQL> with t2 as (
      2  select col1
      3  ,      to_number(substr(reverse(ltrim(sys_connect_by_path(col2, '/'), '/'))
      4                         , 1
      5                         , instr(reverse(ltrim(sys_connect_by_path(col2, '/'), '/')), '/')-1
      6                         )
      7                  ) col2
      8  from   t
      9  start with col2 is null
    10  connect by col2 = prior col1
    11  )
    12  select *
    13  from   t2
    14  where  col1 = 12;
          COL1        COL2
            12           6
    1 row selected.
    Elapsed: 00:00:00.04
    SQL> column col2 format a10
    SQL> select col1
      2  ,      ltrim(sys_connect_by_path(col2, '/'), '/') col2
      3  from   t
      4  start with col2 is null
      5  connect by col2 = prior col1
      6  order by col1;
          COL1 COL2
             1
             2 1
             3 1
             4 1
             5 1/2
             6 1/2
             7 1/3
             8 1/3
             9 1/4
            10 1/2/5
            11 1/2/5
            12 1/2/6
            13 1/2/6
            14 1/3/7
            15 1/3/7
    15 rows selected.

  • How to convert SQL Server hierarchical query (CTE) to Oracle?

    How to convert SQL Server hierarchical query (CTE) to Oracle?
    WITH cte (col1, col2) AS
    SELECT col1, col2
    FROM dbo.[tb1]
    WHERE col1 = 12
    UNION ALL
    SELECT c.col1, c.col2
    FROM dbo.[tb1] AS c INNER JOIN cte AS p ON c.col2 = p.col1
    DELETE a
    FROM dbo.[tb1] AS a INNER JOIN cte AS b
    ON a.col1 = b.col1

    See: http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_10002.htm#i2129904
    Ah, just spotted it's a delete statement - you won't be able to do it using subquery factoring in Oracle.
    I had a go at trying to convert for you, but notice that you reference the cte from inside the cte... I can only assume you have a table called cte too...
    DELETE FROM dbo.tb1
    WHERE col1 = 12
    OR col2 IN (SELECT col1 FROM cte)
    Edited by: Boneist on 22-Jun-2009 09:19

  • Refining SQL Replacement for Oracle's WM_CONCAT Function (Pivoting Rows to column)

    Greetings,
    I am moving a query from Oracle SQL to Microsoft SQL and am having some difficulty with the transition. Part of my code (listed here) used to pivot the data and display RESULT_VALUE 
    by the CPI_SEQ . In Oracle this was easy to do by using the function: WM_CONCAT.
    I have been ‘Googling’ for the non-Oracle way to achieve this and stumbled on to the “STUFF((SELECT…)”
     method. This almost works for me except that it places everything into one cell, whereas
     I need to concatenate  RESULT_VALUE by CPI_SEQ (the CPI_SEQ is the unique ID). The current code gives me this:
    RESULTS
    Anxiety, Depression, Diabetes, 
    COPD, ARDS
    Whereas I want  my code to present it this way instead
    CPI_SEQ                              
    RESULTS
    22                                          
    Anxiety, Depression
    44                                          
    Diabetes
    46                                          
    COPD, ARDS
    SELECT (STUFF((SELECT ',' + RESULT_VALUE
    FROM
    SELECT DISTINCT
    C1.CPI_Seq AS CPI_SEQ,C1.Result_Value AS RESULT_VALUE
    ,count(FCurrent.Field_Name) "Current"
    ,count(FPast.Field_Name) "Past"
    ,Count(*) Count
    ,CASE
    When count(FCurrent.Field_Name) > 0 and count(FPast.Field_Name) >0 and count(Fcurrent.Field_Name)+ count(FPast.Field_Name) = Count(C1.PF_RESULT_SEQ) Then CONCAT(C1.Result_Value,'(C/P)')
    When count(FCurrent.Field_Name) > 0 and count(FPast.Field_Name) =0 and count(Fcurrent.Field_Name)+ count(FPast.Field_Name) = Count(C1.PF_RESULT_SEQ) Then CONCAT (C1.Result_Value,'(C)')
    When count(FCurrent.Field_Name) = 0 and count(FPast.Field_Name) >0 and count(Fcurrent.Field_Name)+ count(FPast.Field_Name) = Count(C1.PF_RESULT_SEQ) Then CONCAT(C1.Result_Value,'(P)')
    End Result
    From
    [AnalyticsDW].[dbo].[rr_stag_PF_Results] A1
    join [AnalyticsDW].[dbo].[rr_stag_PF_Results] C1 on A1.PF_Result_Seq = C1.PF_Result_Seq
    join [AnalyticsDW].[dbo].[rr_PF_Fields_Dept] FCurrent on A1.PF_Result_Seq = FCurrent.RES_SEQ
    AND FCurrent.Field_Name = 'Current'
    AND A1.Label_Seq in('187582', '187576','187612','187600','187618','187612')
    left join [AnalyticsDW].[dbo].rr_PF_Fields_Dept FPast on A1.PF_Result_Seq = FPast.Res_Seq
    AND FPast.Field_Name = 'Past'
    AND A1.Label_Seq in('187583', '187577','187613','187601','187619','187613')
    WHERE
    A1.Result_Value ='Yes'
    AND (C1.Result_Value in ('Dyspnea', 'Confusion','Pressure Ulcer', 'Stasis Ulcer','Depression','Anxiety'))
    GROUP BY
    C1.CPI_Seq,
    C1.Result_Value
    ) L1
    FOR XML PATH('')),1,2,'')) RESULTS

    ;With CTE
    AS
    SELECT
    C1.CPI_Seq AS CPI_SEQ,
    C1.Result_Value AS RESULT_VALUE
    From
    [AnalyticsDW].[dbo].[rr_stag_PF_Results] A1
    join [AnalyticsDW].[dbo].[rr_stag_PF_Results] C1 on A1.PF_Result_Seq = C1.PF_Result_Seq
    join [AnalyticsDW].[dbo].[rr_PF_Fields_Dept] FCurrent on A1.PF_Result_Seq = FCurrent.RES_SEQ
    AND FCurrent.Field_Name = 'Current'
    AND A1.Label_Seq in('187582', '187576','187612','187600','187618','187612')
    left join [AnalyticsDW].[dbo].rr_PF_Fields_Dept FPast on A1.PF_Result_Seq = FPast.Res_Seq
    AND FPast.Field_Name = 'Past'
    AND A1.Label_Seq in('187583', '187577','187613','187601','187619','187613')
    WHERE
    A1.Result_Value ='Yes'
    AND (C1.Result_Value in ('Dyspnea', 'Confusion','Pressure Ulcer', 'Stasis Ulcer','Depression','Anxiety'))
    GROUP BY
    C1.CPI_Seq,
    C1.Result_Value
    SELECT CPI_Seq,
    STUFF((SELECT ',' + Result_Value
    FROM CTE
    WHERE CPI_Seq = c.CPI_Seq
    FOR XML PATH(''),TYPE).value('.','varchar(max)'),1,1,'') AS Results
    FROM (SELECT DISTINCT CPI_Seq FROM CTE)c
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Oracle SQL Tutorials

    Hey, I've been contacted by a job recruiter about an entry level position requiring Java, Oracle SQL, and Javascript knowledge. I'm currently studying for the SCJP6 test, but are there any decent free crash courses on Oracle SQL? I have previously taken a 200 level and a 400 level college course on SQL syntax, I'm just really looking for a few tutorials that can sure up my knowledge of the basics and beyond. So far I've been going through "http://st-curriculum.oracle.com/tutorial/SQLDeveloper/index.htm", but I have a feeling I will need more than that to get me back up to speed. Any suggestions?...

    >
    Hi, and welcome to the forums.
    Hey, I've been contacted by a job recruiter about an entry level position
    requiring Java, Oracle SQL, and Javascript knowledge. I'm currently studying
    for the SCJP6 test, but are there any decent free crash courses on Oracle SQL? You could do worse than follow the gurus here - particularly anything to
    do with SQL and strings, SQL and dates and SQL and Regular Expressions
    inter alia. CTEs are also of interest. Performance is also a biggie.
    But, always remember, that while Oracle extensions are interesting and
    powerful, you MUST get the basics right.
    Look at the posts here - try and answer them yourself and then check back to see
    if you've got it right.
    HTH,
    Paul...

  • Issue with Alias and Union of CTEs

    I have a query that works in SQL Server but I'm having issues with it in PL/SQL.  I keep running into the error saying "invalid identifier" when I try to reference PlantNumber or Plant_No or any other piece of the CTE or subquery.  Is this not possible with Oracle?
    Here's a shortened version of my query:
    WITH RemoveData AS
       SELECT a.PLANT_NO,a.ALLOC_WHDV_VOL,a.KW_CTR_REDELIVERED_HV, a.MTR_NO, a.MTR_SFX, a.TRNX_ID, a.REC_STATUS_CD,
    MAX(a.ACCT_DT) ACCT_DT
       FROM GasStmt a
       WHERE a.REC_STATUS_CD = 'RR'
       GROUP BY a.PLANT_NO,a.ALLOC_WHDV_VOL,a.KW_CTR_REDELIVERED_HV, a.MTR_NO, a.MTR_SFX, a.TRNX_ID, a.REC_STATUS_CD
       HAVING COUNT(a.REC_STATUS_CD) > 2
      RemoveData2 AS
       SELECT plant_no "PlantNumber"
       ,SUM(-a.ALLOC_WHDV_VOL) "PlantStandardGrossWellheadMcf"
       ,SUM(KW_CTR_REDELIVERED_HV) "KeepWholeResidueMMBtu"
       FROM RemoveData a
       GROUP BY plant_no
      OriginalData AS
       SELECT a.PLANT_NO "PlantNumber"
       ,SUM(a.ALLOC_WHDV_VOL) "PlantStandardGrossWellheadMcf"
       ,SUM(CASE WHEN a.REC_STATUS_CD = 'RR' THEN -a.KW_CTR_REDELIVERED_HV ELSE a.KW_CTR_REDELIVERED_HV END) "KeepWholeResidueMMBtu"
       FROM GasStmt a
       LEFT OUTER JOIN (SELECT MTR_NO, MTR_SFX, TRNX_ID, REC_STATUS_CD, MAX(ACCT_DT) ACCT_DT
       FROM GasStmt
       WHERE REC_STATUS_CD = 'RR'
       GROUP BY MTR_NO, MTR_SFX, TRNX_ID, REC_STATUS_CD
       HAVING COUNT(TRNX_ID) > 1) b
       ON a.MTR_NO = b.MTR_NO
       AND a.TRNX_ID = b.TRNX_ID
       AND a.Rec_Status_Cd = b.REC_STATUS_CD
       AND a.Acct_Dt = b.ACCT_DT
       WHERE a.ACCT_DT > '1/1/2010'
       AND b.MTR_NO IS NULL
       GROUP BY a.PLANT_NO
    UnionCTE AS (  
    SELECT *
    FROM RemoveData2
    UNION
    SELECT *
    FROM OriginalData
    SELECT PlantNumber, SUM(PlantStandardGrossWellheadMcf) AS PlantStandardGrossWellheadMcf,SUM(KeepWholeResidueMMBtu) AS KeepWholeResidueMMBtu
    FROM UnionCTE
    GROUP BY PlantNumber
    It's the bottom select from UnionCTE that's causing the issue.  Any tips would be appreciated!

    I can't check it at the moment, but here's some code I forgot to post.  Thanks for your response, I'll let you know if it works for me.
    CREATE TABLE STG.GasStmt
    (PLANT_NO varchar(100),
    ALLOC_WHDV_VOL numeric(29, 5),
    KW_CTR_REDELIVERED_HV numeric(29, 5),
    MTR_NO varchar(100),
    MTR_SFX varchar(100),
    TRNX_ID bigint,
    REC_STATUS_CD varchar(100),
    ACCT_DT DateTime)
    insert into STG.GasStmt
    select '043','0','50','36563','','83062200','OR','12/1/2011' union all
    select '002','0','100','36563','','83062222','OR','12/1/2011' union all
    select '002','0','-.99','36563','','-83062299','RR','12/1/2011' union all
    select '002','0','-.99','36563','','-83062299','RR','2/1/2013' union all
    select '002','0','-.99','36563','','-83062299','RR','4/1/2013' union all
    select '002','0','-.99','36563','','83062299','OR','2/1/2011' union all
    select '002','0','-.99','36563','','-86768195','RR','12/1/2011' union all
    select '002','0','-.99','36563','','-86768195','RR','2/1/2013' union all
    select '002','0','-.99','36563','','-86768195','RR','4/1/2013' union all
    select '002','0','-.99','36563','','86768195','OR','3/1/2011' union all
    select '002','0','-.99','36563','','-90467786','RR','1/1/2012' union all
    select '002','0','-.99','36563','','-90467786','RR','2/1/2013' union all
    select '002','0','-.99','36563','','-90467786','RR','4/1/2013' union all
    select '002','0','-.99','36563','','90467786','OR','4/1/2011' union all
    select '002','0','-.99','36563','','-77671301','RR','2/1/2013' union all
    select '002','0','-.99','36563','','-77671301','RR','4/1/2013' union all
    select '002','0','-.99','36563','','77671301','OR','1/1/2011' union all
    select '002','0','-.99','36563','','-68420423','RR','2/1/2013' union all
    select '002','0','-.99','36563','','68420423','OR','4/1/2013' union all
    select '002','0','-.99','36563','','-188808446','RR','3/1/2013' union all
    select '002','0','-.99','36563','','188808446','OR','1/1/2013' union all
    select '002','1205.15','0','36563','A','138365544','OR','2/1/2012'

  • Installation of Oracle agent failed due to AgentPlugIn

    I am trying to install agent on HP-UX , Every thing looks ok till agent is installed on the machine, but it fails continuously while running configuration assistant. I tried to reinstall many times , but getting same problem :->
    Starting to execute configuration assistants
    Configuration assistant "Agent Configuration Assistant" failed
    SEVERE:OUI-10104:Some of the configuration assistants failed. It is strongly recommended that you retry the configuration assistants at this time. Not successfully running any "Recommended" assistants means your system will not be correctly configured. Select the failed assistants and click the 'Retry' button to retry them.
    The "/oracle/oemagent/agent10g/cfgtoollogs/configToolFailedCommands" script contains all commands that failed, were skipped or were cancelled. This file may be used to run these configuration assistants outside of OUI. Note that you may have to update this script with passwords (if any) before executing the same.
    The "/oracle/oemagent/agent10g/cfgtoollogs/configToolAllCommands" script contains all commands to be executed by the configuration assistants. This file may be used to run the configuration assistants outside of OUI. Note that you may have to update this script with passwords (if any) before executing the same.
    pls also check log in /oracle/product/oemagent/agent10g/cfgtoollogs/cfgfw in the next msg. Thanks

    186 INFO: oracle.sysman.top.agent:Executing Command: /oracle/product/oemagent/agent10g/perl/bin/perl /oracle/product/oema
    gent/agent10g/sysman/admin/discover/host.pl /oracle/product/oemagent/agent10g lamaru01.cte.net
    187 INFO: oracle.sysman.top.agent:Requested Operation Completed with Status = 0
    188 INFO: oracle.sysman.top.agent:STDERR=
    189
    190 STDOUT=
    191 <Targets>
    192 <Target TYPE="host" NAME="lamaru01.cte.net" >
    193 </Target>
    194 </Targets>
    195
    196 INFO: oracle.sysman.top.agent:Adding /oracle/product/oemagent/agent10g/sysman/install/target.outhost file to /oracle/
    product/oemagent/agent10g
    197 INFO: oracle.sysman.top.agent:addToTargetsXML:Will not remove for now...
    198 INFO: oracle.sysman.top.agent:addToTargetsXML:TargetInstaller added target file = /oracle/product/oemagent/agent10g/s
    ysman/install/target.outhost to /oracle/product/oemagent/agent10g successfully.
    199 INFO: oracle.sysman.top.agent:Executing Command: /oracle/product/oemagent/agent10g/perl/bin/perl /oracle/product/oema
    gent/agent10g/sysman/admin/discover/oracledb.pl /oracle/product/oemagent/agent10g lamaru01.cte.net
    200 INFO: oracle.sysman.top.agent:Requested Operation Completed with Status = 0
    201 INFO: oracle.sysman.top.agent:STDERR=
    202
    203 STDOUT=
    204 <Targets>
    205 <Target TYPE="oracle_database" NAME="USP1" >
    206 <Property NAME="OracleHome" VALUE="/oracle/product/9.2.0" />
    207 <Property NAME="UserName" VALUE="dbsnmp" ENCRYPTED="FALSE"/>
    208 <Property NAME="MachineName" VALUE="lamaru01" />
    209 <Property NAME="Port" VALUE="1526" />
    210 <Property NAME="SID" VALUE="USP1"/>
    211 <Property NAME="ServiceName" VALUE="USP1"/>
    212 </Target>
    213 <Target TYPE="oracle_database" NAME="U01A" >
    214 <Property NAME="OracleHome" VALUE="/oracle/product/9.2.0" />
    215 <Property NAME="UserName" VALUE="dbsnmp" ENCRYPTED="FALSE"/>
    216 <Property NAME="MachineName" VALUE="lamaru01" />
    217 <Property NAME="Port" VALUE="1526" />
    218 <Property NAME="SID" VALUE="U01A"/>
    219 <Property NAME="ServiceName" VALUE="U01A"/>
    220 </Target>
    221 <Target TYPE="oracle_database" NAME="USP2" >
    222 <Property NAME="OracleHome" VALUE="/oracle/product/9.2.0" />
    223 <Property NAME="UserName" VALUE="dbsnmp" ENCRYPTED="FALSE"/>
    224 <Property NAME="MachineName" VALUE="lamaru01" />
    225 <Property NAME="Port" VALUE="1526" />
    226 <Property NAME="SID" VALUE="USP2"/>
    227 <Property NAME="ServiceName" VALUE="USP2"/>
    228 </Target>
    229 <Target TYPE="oracle_database" NAME="CUP1" >
    230 <Property NAME="OracleHome" VALUE="/oracle/product/9.2.0" />
    231 <Property NAME="UserName" VALUE="dbsnmp" ENCRYPTED="FALSE"/>
    232 <Property NAME="MachineName" VALUE="lamaru01" />
    233 <Property NAME="Port" VALUE="1526" />
    234 <Property NAME="SID" VALUE="CUP1"/>
    235 <Property NAME="ServiceName" VALUE="CUP1"/>
    236 </Target>
    237 <Target TYPE="oracle_database" NAME="CUP2" >
    238 <Property NAME="OracleHome" VALUE="/oracle/product/9.2.0" />
    239 <Property NAME="UserName" VALUE="dbsnmp" ENCRYPTED="FALSE"/>
    240 <Property NAME="MachineName" VALUE="lamaru01" />
    241 <Property NAME="Port" VALUE="1526" />
    242 <Property NAME="SID" VALUE="CUP2"/>
    243 <Property NAME="ServiceName" VALUE="CUP2"/>
    244 </Target>
    245 <Target TYPE="oracle_listener" NAME="LISTENER_PET2_lamaru01.cte.net" >
    246 <Property NAME="ListenerOraDir" VALUE="/oracle/product/9.2.0/network/admin" />
    247 <Property NAME="LsnrName" VALUE="LISTENER_PET2" />
    248 <Property NAME="Machine" VALUE="lamaru01" />
    249 <Property NAME="OracleHome" VALUE="/oracle/product/9.2.0" />
    250 <Property NAME="Port" VALUE="1526" />
    251 </Target>
    252 </Targets>
    253
    254 INFO: oracle.sysman.top.agent:Adding /oracle/product/oemagent/agent10g/sysman/install/target.outdb file to /oracle/pr
    oduct/oemagent/agent10g
    255 INFO: oracle.sysman.top.agent:addToTargetsXML:Will not remove for now...
    256 INFO: oracle.sysman.top.agent:addToTargetsXML:TargetInstaller added target file = /oracle/product/oemagent/agent10g/s
    ysman/install/target.outdb to /oracle/product/oemagent/agent10g successfully.
    257 INFO: oracle.sysman.top.agent:Executing Command: /oracle/product/oemagent/agent10g/perl/bin/perl /oracle/product/oema
    gent/agent10g/sysman/admin/discover/ocs_mailstore_discovery.pl /oracle/product/oemagent/agent10g lamaru01.cte.net
    258 INFO: oracle.sysman.top.agent:Requested Operation Completed with Status = 0
    259 INFO: oracle.sysman.top.agent:STDERR=
    260 log4j:ERROR No appenders could be found for category (emSDK.emd.conf).
    261 log4j:ERROR Please initialize the log4j system properly.
    262
    263 STDOUT=
    264 <Targets>
    265 </Targets>
    266
    267 INFO: oracle.sysman.top.agent:Adding /oracle/product/oemagent/agent10g/sysman/install/target.outocs file to /oracle/p
    roduct/oemagent/agent10g
    268 INFO: oracle.sysman.top.agent:addToTargetsXML:Will not remove for now...
    269 INFO: oracle.sysman.top.agent:addToTargetsXML:TargetInstaller added target file = /oracle/product/oemagent/agent10g/s
    ysman/install/target.outocs to /oracle/product/oemagent/agent10g successfully.
    270 INFO: oracle.sysman.top.agent:Executing Command: /oracle/product/oemagent/agent10g/perl/bin/perl /oracle/product/oema
    gent/agent10g/sysman/admin/discover/oracle_ias.pl /oracle/product/oemagent/agent10g lamaru01.cte.net
    271 INFO: oracle.sysman.top.agent:Requested Operation Completed with Status = 0
    272 INFO: oracle.sysman.top.agent:STDERR=
    273 log4j:ERROR No appenders could be found for category (emSDK.emd.conf).
    274 log4j:ERROR Please initialize the log4j system properly.
    275
    276 STDOUT=
    277 <Targets>
    278 </Targets>
    279
    280 INFO: oracle.sysman.top.agent:Adding /oracle/product/oemagent/agent10g/sysman/install/target.outias file to /oracle/p
    roduct/oemagent/agent10g
    281 INFO: oracle.sysman.top.agent:addToTargetsXML:Will not remove for now...
    282 INFO: oracle.sysman.top.agent:addToTargetsXML:TargetInstaller added target file = /oracle/product/oemagent/agent10g/s
    ysman/install/target.outias to /oracle/product/oemagent/agent10g successfully.
    283 INFO: oracle.sysman.top.agent:DiscoverTargets:addCentralAgents:Adding the Central Agent home to iAS Homes
    284 INFO: oracle.sysman.top.agent:Executing Command: /oracle/product/oemagent/agent10g/perl/bin/perl /oracle/product/oema
    gent/agent10g/sysman/admin/discover/oracle_apache.pl /oracle/product/oemagent/agent10g lamaru01.cte.net
    285 INFO: oracle.sysman.top.agent:Requested Operation Completed with Status = 0
    286 INFO: oracle.sysman.top.agent:STDERR=
    287 log4j:ERROR No appenders could be found for category (emSDK.config).
    288 log4j:ERROR Please initialize the log4j system properly.
    289
    290 STDOUT=
    291 <Targets>
    292 </Targets>
    293
    294 INFO: oracle.sysman.top.agent:Adding /oracle/product/oemagent/agent10g/sysman/install/target.outapache file to /oracl
    e/product/oemagent/agent10g
    295 INFO: oracle.sysman.top.agent:addToTargetsXML:Will not remove for now...
    296 INFO: oracle.sysman.top.agent:addToTargetsXML:TargetInstaller added target file = /oracle/product/oemagent/agent10g/s
    ysman/install/target.outapache to /oracle/product/oemagent/agent10g successfully.
    297 FINE: oracle.sysman.emCfg.logger.CfmLogger: log: oracle.sysman.top.agent:AgentPlugIn:perform:Starting Agent with star
    tAgent=true
    298 FINE: oracle.sysman.emCfg.logger.CfmLogger: log: oracle.sysman.top.agent:Starting the agent
    299 INFO: oracle.sysman.top.agent:Starting the agent...
    300 FINE: oracle.sysman.emCfg.logger.CfmLogger: log: oracle.sysman.top.agent:Executing Command: /oracle/product/oemagent/
    agent10g/bin/emctl start agent
    301 FINE: oracle.sysman.emCfg.logger.CfmLogger: log: oracle.sysman.top.agent:Requested Operation Completed with Status =
    1
    302 FINE: oracle.sysman.emCfg.logger.CfmLogger: log: oracle.sysman.top.agent:Requested Operation /oracle/product/oemagent
    /agent10g/bin/emctl start agent has failed to perform with Status = 1
    303 STDERR=
    304
    305 STDOUT=
    306
    307 Oracle Enterprise Manager 10g Release 10.2.0.1.0.
    308 Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    309 Starting agent ................................. failed.
    310 Consult the log files in: /oracle/product/oemagent/agent10g/sysman/log
    311 CONFIG: oracle.sysman.top.agent:
    312 The Management Agent Configuration Assistant has failed. The following failures were recorded:
    313
    314
    315 STDERR=
    316
    317 stty: : Not a typewriter
    318 stty: : Not a typewriter
    319 STDOUT=
    320
    321 Oracle Enterprise Manager 10g Release 10.2.0.1.0.
    322 Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    323 Enter Agent Registration password :
    324 Failed to stop agent...
    325
    326 STDERR=
    327
    328 stty: : Not a typewriter
    329 stty: : Not a typewriter
    330 STDOUT=
    331
    332 Oracle Enterprise Manager 10g Release 10.2.0.1.0.
    333 Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    334 Enter Agent Registration password :
    335 Failed to stop agent...
    336 STDERR=
    337
    338 STDOUT=
    339
    340 Oracle Enterprise Manager 10g Release 10.2.0.1.0.
    341 Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    342 Starting agent ................................. failed.
    343 Consult the log files in: /oracle/product/oemagent/agent10g/sysman/log
    344
    345 FINE: oracle.sysman.emCfg.logger.CfmLogger: log: oracle.sysman.top.agent:
    346 The Management Agent Configuration Assistant has failed. The following failures were recorded:
    347
    348
    349 STDERR=
    350
    351 stty: : Not a typewriter
    352 stty: : Not a typewriter
    353 STDOUT=
    354
    355 Oracle Enterprise Manager 10g Release 10.2.0.1.0.
    356 Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    357 Enter Agent Registration password :
    358 Failed to stop agent...
    359
    360 STDERR=
    361
    362 stty: : Not a typewriter
    363 stty: : Not a typewriter
    364 STDOUT=
    365
    366 Oracle Enterprise Manager 10g Release 10.2.0.1.0.
    367 Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    368 Enter Agent Registration password :
    369 Failed to stop agent...
    370 STDERR=
    371
    372 STDOUT=
    373
    374 Oracle Enterprise Manager 10g Release 10.2.0.1.0.
    375 Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    376 Starting agent ................................. failed.
    377 Consult the log files in: /oracle/product/oemagent/agent10g/sysman/log
    378
    379 INFO: oracle.sysman.top.agent:Internal PlugIn for {Micro Step state:step:1:configuration in CfmAggregateInstance: ora
    cle.sysman.top.agent:10.2.0.1.0:common:family=CFM:oh=/oracle/product/oemagent/agent10g:label=0} failed with an unhandled exce
    ption:
    380 java.lang.Exception:
    381 The Management Agent Configuration Assistant has failed. The following failures were recorded:
    382
    383
    384 STDERR=
    385
    386 stty: : Not a typewriter
    387 stty: : Not a typewriter
    388 STDOUT=
    389
    390 Oracle Enterprise Manager 10g Release 10.2.0.1.0.
    391 Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    392 Enter Agent Registration password :
    393 Failed to stop agent...
    394
    395 STDERR=
    396
    397 stty: : Not a typewriter
    398 stty: : Not a typewriter
    399 STDOUT=
    400
    401 Oracle Enterprise Manager 10g Release 10.2.0.1.0.
    402 Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    403 Enter Agent Registration password :
    404 Failed to stop agent...
    405 STDERR=
    406
    407 STDOUT=
    408
    409 Oracle Enterprise Manager 10g Release 10.2.0.1.0.
    410 Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    411 Starting agent ................................. failed.
    412 Consult the log files in: /oracle/product/oemagent/agent10g/sysman/log
    413
    414 at oracle.sysman.emcp.agent.AgentPlugIn.startProcessing(AgentPlugIn.java:242)
    415 at oracle.sysman.emcp.agent.AgentPlugIn.invoke(AgentPlugIn.java:217)
    416 at oracle.sysman.emCfg.core.PerformMicroStep.runJavaClass(PerformMicroStep.java:509)
    417 at oracle.sysman.emCfg.core.PerformMicroStep.executeMicroStep(PerformMicroStep.java:121)
    418 at oracle.sysman.emCfg.core.ActionPerformer.performMicroStep(ActionPerformer.java:917)
    419 at oracle.sysman.emCfg.core.ActionPerformer$Performer.run(ActionPerformer.java:1038)
    420
    421 INFO: oracle.sysman.top.agent:The plug-in Agent Configuration Assistant has failed its perform method
    422 INFO: Cfm.save() was called
    423 INFO: Cfm.save(): 2 aggregate instances saved

  • Error while invoking a WS-Security secured web service from Oracle BPEL..

    Hi ,
    We are facing some error while invoking a WS-Security secured web service from our BPEL Process on the windows platform(SOA 10.1.3.3.0).
    For the BPEL process we are following the same steps as given in an AMIS blog : - [http://technology.amis.nl/blog/1607/how-to-call-a-ws-security-secured-web-service-from-oracle-bpel]
    but sttill,after deploying it and passing values in it,we are getting the following error on the console :-
    &ldquo;Header [http://schemas.xmlsoap.org/ws/2004/08/addressing:Action] for ultimate recipient is required but not present in the message&rdquo;
    Any pointers in this regard will be highly appreciated.
    Thanks,
    Saurabh

    Hi James,
    Thanks for the quick reply.
    We've tried to call that web service from an HTML designed in Visual Studios with the same username and password and its working fine.
    But on the BPEL console, we are getting the error as mentioned.
    Also if you can tell me how to set the user name and password in the header of the parter link.I could not find how to do it.
    Thanks,
    Saurabh

  • Error while running a customize report in oracle ebs

    Hi ..
    can anybody suggest how to solve the follwing error while running a customize report in oracle ebs?
    XXIFMS: Version : UNKNOWN
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    Current system time is 03-JUN-2011 11:09:24
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    P_DATE_FROM='2010/04/01 00:00:00'
    P_DATE_TO='2011/06/03 00:00:00'
    Forcing NLS_NUMERIC_CHARACTERS to: '.,' for XDO processing
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.AL32UTF8
    stat_low = 9
    stat_high = 0
    emsg:was terminated by signal 9
    ld.so.1: rwrun: fatal: librw.so: open failed: No such file or directory
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Program was terminated by signal 9
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 1068011.
    Review your concurrent request log and/or report output file for more detailed information.
    Executing request completion options...
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 1068011 on node D0005 at 03-JUN-2011 11:09:24.
    Post-processing of request 1068011 failed at 03-JUN-2011 11:09:24 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 03-JUN-2011 11:09:24

    Please post the details of the application release, database version and OS.
    Is the issue with this specific concurrent program?
    Can you find any errors in the CM/OPP log files?
    Please see if these docs help.
    On R12.1.1/Solaris Platform While Generating Oracle Reports Files Failed With Error " ld.so.1: rwconverter: fatal: librw.so: open failed: No such file or directory [ID 1067786.1]
    Apps UPG Fail With Error Ld.So.1: Rwserver: Fatal: Librw.So [ID 961222.1]
    Thanks,
    Hussein

  • HELP! Can not install Oracle 8.1.5 w/ RedHat 6.1!

    I can not get Oracle 8.1.5 to install onto Linux RedHat 6.1. The
    Oracle installation script generates several errors. I have
    tried several attempts, using different options, but they all
    generate errors.
    Please help. The Oracle Installation scripts appear to be very
    buggy... or perhaps they are incompatible with the standard
    RedHat 6.1 release. Either way, it is very frustrating.
    I have documented one of my (failed) installation attempts below.
    Does anyone have any words of wisdom?
    I am installing Oracle onto a Dell Latitude CPi PC w/ 128MB RAM,
    a 366MHz Pentium II, and RedHat 6.1 (using the standard Linux
    2.2.12-2 kernel). RedHat was installed using the standard "Gnome
    Workstation" configuration.
    The Oralce CD is labeled:
    "Oralce 8i Enterprise Edition
    Release 8.1.5
    for Linux
    (c) Oracle Corporation 1999"
    I got this CD about one week ago at Oracle OpenWorld '99 in Los
    Angeles... it should be their "latest & greatest" version so far.
    1. Pre-Installation and ./runInstall
    I created an "oracle" Unix account w/ groups "oinstall" (the
    primary group) and "dba" (a secondary group).
    I created directories /u01 through /u04, belonging to oracle.
    I setup .cshrc and sourced it, containing:
    umask 022
    setenv DISPLAY `hostname`:0
    xhost +
    setenv ORACLE_BASE /u01/app/oracle
    setenv ORACLE_HOME ${ORACLE_BASE}/product/8.1.5
    setenv ORACLE_SID cprtest
    setenv PATH ${ORACLE_HOME}/bin:${PATH}
    setenv LD_LIBRARY_PATH ${ORACLE_HOME}/lib
    setenv NLS_LANG US7ASCII
    I downloaded jre116_v5 and installed to /usr/local/jre.
    Finally, I executed (from the "oracle" Unix account):
    cd /mnt/cdrom
    ./runInstall
    Problem: I got the error (from ./runInstall):
    Initializing Java Virtual Machine from /usr/local/jre/bin/jre.
    Please wait...
    Error in CreateOUIProcess(): -1
    : Bad address
    Workaround: Executed the following commands instead:
    cd /mnt/cdrom/install/linux
    ./runIns.sh
    3. runIns.sh and root.sh
    I selected the following options (from ./runIns.sh):
    Source: /mnt/cdrom/stage/products.jar
    Destination: /u01/app/oracle/product/8.1.5
    Oracle 8i Enterprise Edition 8.1.5.0.0
    Typical (585MB)
    Installable Components: Oralce Intelligent Agent 8.1.5.0.0
    Global Database Name: cprtest.parkrussell.com
    SID: cprtest
    Directory for Database Files: /u02
    Then (when instructed by ./runIns.sh), I attempted to execute
    (from the
    "root" Unix account):
    cd /u01/app/oracle/product/8.1.5
    ./root.sh
    Problem: I got the error:
    "bash: ./root.sh: Permission denied"
    The execute bit was not set.
    Workaround: I executed:
    chmod a+x root.sh
    ./root.sh
    5. Configuration Tools
    The Oracle Installer (./runIns.sh) attempted to execute:
    A. Net8 Configuration Agent
    B. Oracle Database Configuration Agent
    Problem: The "Oracle Database Configuration Agent" failed with
    the following error message:
    "One or more tools have failed. It is recommended but not
    required that these tools succeed for this installation.
    You can now select these tools, read its details to examine
    why they have failed, fix those problems, and retry them.
    Or, you can click "Next" to continue."
    When I selected the "Oracle Database Configuration Agent" for
    more info, I got the following additional details (as the cause
    of the error):
    "A required command line argument is missing."
    The log file
    "/u01/app/oracle/oraInventory/logs/installActions.log" recorded:
    "Command which is being spawned is /usr/local/jre/bin/jre
    -Duser.dir=/u01/app/oracle/product/8.1.5/assistants/dbca/jlib
    -classpath
    /usr/local/jre/lib/rt.jar:/u01/app/oracle/product/8.1.5/jlib/ewt-3_1_10.jar:/u01/app/oracle/produc
    /8.1.5/jlib/share-1_0_6.jar:/u01/app/oracle/product/8.1.5/assistants/dbca/jlib/DBAssist.jar:/u01/a
    p/oracle/product/8.1.5/assistants/jlib/jnls.jar:/u01/app/oracle/product/8.1.5/assistants/jlib/ACC.
    AR:/u01/app/oracle/product/8.1.5/jlib/help-3_0_7.jar:/u01/app/oracle/product/8.1.5/jlib/oracle_ice
    4_03_3.jar:/u01/app/oracle/product/8.1.5/jlib/HotJavaBean.jar:/u01/app/oracle/product/8.1.5/jlib/n
    tcfg.jar:/usr/local/jre/lib/i18n.jar
    DBCreateWizard /createtype seed /numusers NO_VALUE /apptype
    NO_VALUE /cartridges NO_VALUE /options NO_VALUE /demos NO_VALUE
    /seedloc NO_VALUE /sid cprtest /orahome
    /u01/app/oracle/product/8.1.5 /orabase /u01/app/oracle /dbloc
    /u02 /clususer NO_VALUE /cluspswd NO_VALUE /nodeinfo NO_VALUE
    /gdbName cprtest.parkrussell.com
    Invalid Exit Code. The following result code will be used for
    configuration tool: 1
    Configuration tool Oracle Database Configuration Assistant
    failed"
    Workaround: There is obviously nothing I can do to fix this
    problem. It appears to be an internal bug in ./runIns.sh.
    Therefore, I selected "Next" and executed "dbassist" directly.
    6. dbassist
    I executed:
    dbassist
    Problem: I got the following error:
    "JNLS Execution:oracle.ntpg.jnls.JNLSException
    Unable to find any National Character Sets. Please
    check your Oracle installation."
    Workaround: Press "OK" and ignore the error.
    7. dbassist (cont.)
    I selected the following options:
    Create database
    Typical
    Copy existing database files from the CD
    Global Database Name: cprtest.parkrussell.com
    SID: cprtest
    Problem: I got the following error:
    "CD-ROM drive not detected on this system.
    Database not created."
    (Note: I've been running the installation scripts from the
    CDROM drive this entire time. "df" shows the CDROM drive
    mounted on /mnt/cdrom. "ls /mnt/cdrom" works too.)
    Workaround: Abort (which generated the additional error: "Unable
    to create database. DBCA-00003: No CD-ROM drive detected.") and
    run dbassist again, this time using different parameters.
    8. dbassist, again
    I executed "dbassist" again and selected the following options:
    Create database
    Typical
    Create new database files
    Hybrid
    Concurrently connected users: 5
    Options: Oralce interMedia, Oralce JServer, and iM demos
    Global Database Name: cprtest2.parkrussell.com
    SID: cprtest2
    Create database now
    Problem: I got the following error:
    "ORA-01012: not logged on"
    Workaround: Try, try again.
    9. dbassist, one last time
    Executed "dbassist" once more and selected the following options:
    Create database
    Typical
    Create new database files
    Hybrid
    Concurrently connected users: 5
    Options: Oralce interMedia, Oralce JServer, and interMedia
    demos
    Global Database Name: cprtest3.parkrussell.com
    SID: cprtest3
    Output creation script
    Then, I executed (from the "oracle" Unix account):
    cd /u01/app/oracle/product/8.1.5/install
    setenv ORACLE_SID cprtest3
    ./sqlcprtest3.sh
    Problem: I got the following output:
    "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.0 - 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 "cprtest3"
    ORA-01012: not logged on
    SVRMGR> Disconnected."
    Workaround: Beats me.
    10. sqlplus
    I attempted to execute sqlplus, but got the following error
    message:
    "/u01/app/oracle/product/8.1.5/bin/sqlplus: Permission denied."
    The execute bit was not set.
    Workaround: I executed:
    chmod a+x /u01/app/oracle/product/8.1.5/bin/sqlplus
    sqlplus
    I gave up for now... there were just too many things wrong with
    this installation, starting with the very first command I was
    supposed to execute (./runInstaller).
    I can't fathom why Oracle's installation script has so many bugs.
    Am I just doing something terribly wrong?
    Please help.
    null

    I'm using enlightenment version 0.15.5-41, which is more recent
    than the 0.15.5-37 version (containing the Oracle installer
    patch) that you recommended. Unfortunately, it fails when using
    this version.
    I also tried installing Oracle using twm, with enlightenment
    disabled. This didn't help either.
    Furthermore, the errors that I'm encountering in the OUI are
    not just toward the end of the installation. They happen from
    the very beginning, right after I enter "./runInstall", and
    continue every step of the way.
    Calvin Mitchell (guest) wrote:
    : Check out my thread: "Assistants Failure Toward end of Oracle
    : Install" to see where i've gone with this.
    : if your running Enlightenment as your window manager you need
    to
    : upgrade to 0.15.5-37, that will solve the OUI error.
    : Let me know if you solve any of your problems.
    : Chris Russell (guest) wrote:
    : : I can not get Oracle 8.1.5 to install onto Linux RedHat 6.1.
    : The
    : : Oracle installation script generates several errors. I have
    : : tried several attempts, using different options, but they all
    : : generate errors.
    : : Please help. The Oracle Installation scripts appear to be
    very
    : : buggy... or perhaps they are incompatible with the standard
    : : RedHat 6.1 release. Either way, it is very frustrating.
    : : I have documented one of my (failed) installation attempts
    : below.
    : : Does anyone have any words of wisdom?
    : : I am installing Oracle onto a Dell Latitude CPi PC w/ 128MB
    : RAM,
    : : a 366MHz Pentium II, and RedHat 6.1 (using the standard Linux
    : : 2.2.12-2 kernel). RedHat was installed using the standard
    : "Gnome
    : : Workstation" configuration.
    : : The Oralce CD is labeled:
    : : "Oralce 8i Enterprise Edition
    : : Release 8.1.5
    : : for Linux
    : : (c) Oracle Corporation 1999"
    : : I got this CD about one week ago at Oracle OpenWorld '99 in
    Los
    : : Angeles... it should be their "latest & greatest" version so
    : far.
    : : 1. Pre-Installation and ./runInstall
    : : I created an "oracle" Unix account w/ groups "oinstall" (the
    : : primary group) and "dba" (a secondary group).
    : : I created directories /u01 through /u04, belonging to oracle.
    : : I setup .cshrc and sourced it, containing:
    : : umask 022
    : : setenv DISPLAY `hostname`:0
    : : xhost +
    : : setenv ORACLE_BASE /u01/app/oracle
    : : setenv ORACLE_HOME ${ORACLE_BASE}/product/8.1.5
    : : setenv ORACLE_SID cprtest
    : : setenv PATH ${ORACLE_HOME}/bin:${PATH}
    : : setenv LD_LIBRARY_PATH ${ORACLE_HOME}/lib
    : : setenv NLS_LANG US7ASCII
    : : I downloaded jre116_v5 and installed to /usr/local/jre.
    : : Finally, I executed (from the "oracle" Unix account):
    : : cd /mnt/cdrom
    : : ./runInstall
    : : Problem: I got the error (from ./runInstall):
    : : Initializing Java Virtual Machine from
    : /usr/local/jre/bin/jre.
    : : Please wait...
    : : Error in CreateOUIProcess(): -1
    : : : Bad address
    : : Workaround: Executed the following commands instead:
    : : cd /mnt/cdrom/install/linux
    : : ./runIns.sh
    : : 3. runIns.sh and root.sh
    : : I selected the following options (from ./runIns.sh):
    : : Source: /mnt/cdrom/stage/products.jar
    : : Destination: /u01/app/oracle/product/8.1.5
    : : Oracle 8i Enterprise Edition 8.1.5.0.0
    : : Typical (585MB)
    : : Installable Components: Oralce Intelligent Agent 8.1.5.0.0
    : : Global Database Name: cprtest.parkrussell.com
    : : SID: cprtest
    : : Directory for Database Files: /u02
    : : Then (when instructed by ./runIns.sh), I attempted to execute
    : : (from the
    : : "root" Unix account):
    : : cd /u01/app/oracle/product/8.1.5
    : : ./root.sh
    : : Problem: I got the error:
    : : "bash: ./root.sh: Permission denied"
    : : The execute bit was not set.
    : : Workaround: I executed:
    : : chmod a+x root.sh
    : : ./root.sh
    : : 5. Configuration Tools
    : : The Oracle Installer (./runIns.sh) attempted to execute:
    : : A. Net8 Configuration Agent
    : : B. Oracle Database Configuration Agent
    : : Problem: The "Oracle Database Configuration Agent" failed
    with
    : : the following error message:
    : : "One or more tools have failed. It is recommended but not
    : : required that these tools succeed for this installation.
    : : You can now select these tools, read its details to
    examine
    : : why they have failed, fix those problems, and retry them.
    : : Or, you can click "Next" to continue."
    : : When I selected the "Oracle Database Configuration Agent" for
    : : more info, I got the following additional details (as the
    cause
    : : of the error):
    : : "A required command line argument is missing."
    : : The log file
    : : "/u01/app/oracle/oraInventory/logs/installActions.log"
    : recorded:
    : : "Command which is being spawned is /usr/local/jre/bin/jre
    : : -Duser.dir=/u01/app/oracle/product/8.1.5/assistants/dbca/jlib
    : : -classpath
    /usr/local/jre/lib/rt.jar:/u01/app/oracle/product/8.1.5/jlib/ewt-
    : 3_1_10.jar:/u01/app/oracle/product/8.1.5/jlib/share-
    1_0_6.jar:/u01/app/oracle/product/8.1.5/assistants/dbca/jlib/DBAs
    sist.jar:/u01/app/oracle/product/8.1.5/assistants/jlib/jnls.jar:/
    u01/app/oracle/product/8.1.5/assistants/jlib/ACC.JAR:/u01/app/ora
    : cle/product/8.1.5/jlib/help-
    : 3_0_7.jar:/u01/app/oracle/product/8.1.5/jlib/oracle_ice-
    4_03_3.jar:/u01/app/oracle/product/8.1.5/jlib/HotJavaBean.jar:/u0
    1/app/oracle/product/8.1.5/jlib/netcfg.jar:/usr/local/jre/lib/i18
    : n.jar
    : : DBCreateWizard /createtype seed /numusers NO_VALUE /apptype
    : : NO_VALUE /cartridges NO_VALUE /options NO_VALUE /demos
    NO_VALUE
    : : /seedloc NO_VALUE /sid cprtest /orahome
    : : /u01/app/oracle/product/8.1.5 /orabase /u01/app/oracle /dbloc
    : : /u02 /clususer NO_VALUE /cluspswd NO_VALUE /nodeinfo NO_VALUE
    : : /gdbName cprtest.parkrussell.com
    : : Invalid Exit Code. The following result code will be used
    for
    : : configuration tool: 1
    : : Configuration tool Oracle Database Configuration Assistant
    : : failed"
    : : Workaround: There is obviously nothing I can do to fix this
    : : problem. It appears to be an internal bug in ./runIns.sh.
    : : Therefore, I selected "Next" and executed "dbassist"
    directly.
    : : 6. dbassist
    : : I executed:
    : : dbassist
    : : Problem: I got the following error:
    : : "JNLS Execution:oracle.ntpg.jnls.JNLSException
    : : Unable to find any National Character Sets. Please
    : : check your Oracle installation."
    : : Workaround: Press "OK" and ignore the error.
    : : 7. dbassist (cont.)
    : : I selected the following options:
    : : Create database
    : : Typical
    : : Copy existing database files from the CD
    : : Global Database Name: cprtest.parkrussell.com
    : : SID: cprtest
    : : Problem: I got the following error:
    : : "CD-ROM drive not detected on this system.
    : : Database not created."
    : : (Note: I've been running the installation scripts from the
    : : CDROM drive this entire time. "df" shows the CDROM drive
    : : mounted on /mnt/cdrom. "ls /mnt/cdrom" works too.)
    : : Workaround: Abort (which generated the additional error:
    : "Unable
    : : to create database. DBCA-00003: No CD-ROM drive detected.")
    : and
    : : run dbassist again, this time using different parameters.
    : : 8. dbassist, again
    : : I executed "dbassist" again and selected the following
    options:
    : : Create database
    : : Typical
    : : Create new database files
    : : Hybrid
    : : Concurrently connected users: 5
    : : Options: Oralce interMedia, Oralce JServer, and iM demos
    : : Global Database Name: cprtest2.parkrussell.com
    : : SID: cprtest2
    : : Create database now
    : : Problem: I got the following error:
    : : "ORA-01012: not logged on"
    : : Workaround: Try, try again.
    : : 9. dbassist, one last time
    : : Executed "dbassist" once more and selected the following
    : options:
    : : Create database
    : : Typical
    : : Create new database files
    : : Hybrid
    : : Concurrently connected users: 5
    : : Options: Oralce interMedia, Oralce JServer, and interMedia
    : : demos
    : : Global Database Name: cprtest3.parkrussell.com
    : : SID: cprtest3
    : : Output creation script
    : : Then, I executed (from the "oracle" Unix account):
    : : cd /u01/app/oracle/product/8.1.5/install
    : : setenv ORACLE_SID cprtest3
    : : ./sqlcprtest3.sh
    : : Problem: I got the following output:
    : : "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.0 - 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 "cprtest3"
    : : ORA-01012: not logged on
    : : SVRMGR> Disconnected."
    : : Workaround: Beats me.
    : : 10. sqlplus
    : : I attempted to execute sqlplus, but got the following error
    : : message:
    : : "/u01/app/oracle/product/8.1.5/bin/sqlplus: Permission
    : denied."
    : : The execute bit was not set.
    : : Workaround: I executed:
    : : chmod a+x /u01/app/oracle/product/8.1.5/bin/sqlplus
    : : sqlplus
    : : I gave up for now... there were just too many things wrong
    with
    : : this installation, starting with the very first command I was
    : : supposed to execute (./runInstaller).
    : : I can't fathom why Oracle's installation script has so many
    : bugs.
    : : Am I just doing something terribly wrong?
    : : Please help.
    null

  • Logical operators in Oracle select query

    Hello all,
    Can i use logical operators in oracle select queries?
    for 1 and 0 =0 ; 1 or 0 =0
    if i have two fileds in a table COL1 have a value of 1010 and COL2 have a value of 0001.
    Is there any way to use select col1 or col2 from table? where or is a logical operator?
    Regards,

    Hi,
    NB wrote:
    Hello all,
    Can i use logical operators in oracle select queries?Sure; Oracle has the logical operators AND, NOT and OR. All the comparison operators, including >, >=, = !=, EXISTS, IN, IS NULL, LIKE and REGEXP_LIKE are really logical operators, since they return logical values. You can use them in SELECT statements, and other places, too.
    for 1 and 0 =0 ; 1 or 0 =0
    if i have two fileds in a table COL1 have a value of 1010 and COL2 have a value of 0001.It's unclear what you want. Maybe you'd be interested in the BITAND function:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/functions014.htm#sthref1080
    BITAND is the only logical function that I know of. Many other functions, especially numberical fucntions such as MOD, have applications in logic.
    Is there any way to use select col1 or col2 from table? where or is a logical operator?Whenever you have a question, please post a little sample data (CREATE TABLE and INSERT statements), and also post the results you want from that data.
    Explain how you get those results from that data.
    Always say which version of Oracle you're using.

  • Strange scenario,Oracle can not display the data in mysql correctly

    I use Heterogeneous Service+ODBC to achieve "oracle access mysql"(any other method?),and now i find Oracle can not display the data in mysql correctly:
    -------mysql------------
    mysql> create table tst(id int,name varchar(10));
    Query OK, 0 rows affected (0.00 sec)
    mysql> insert into tst values(1,'a');
    Query OK, 1 row affected (0.00 sec)
    mysql> select * from tst;
    ------------+
    | id | name |
    ------------+
    | 1 | a |
    ------------+
    1 row in set (0.00 sec)
    mysql> show create table tst\G
    *************************** 1. row ***************************
    Table: tst
    Create Table: CREATE TABLE `tst` (
    `id` int(11) DEFAULT NULL,
    `name` varchar(10) DEFAULT NULL
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8
    1 row in set (0.00 sec)
    -------------oracle ------------------
    SQL> select count(*) from "tst"@mysql;
    COUNT(*)
    49
    SQL> select * from "tst"@mysql;
    id
    1
    SQL> desc "tst"@mysql;
    Name Null? Type
    id NUMBER(10)

    You can make the following query on the result page:
    "select * from the_table where movietitle = ? and cinema = ?"
    then you set movietitle and cinema to those which the user selected. If the resultset contains more than 0 rows, that means the movie is available.
    Below is the sample code, it assumes you have a connection to the database:
    PreparedStatement stat = myConnection.prepareStatement("select * from the_table where movietitle = ? and cinema = ?");
    stat.setString(1, usersMovieTitleSelection);
    stat.setString(2, usersCinemaSelection);
    ResultSet res = stat.executeQuery();
    if (res.next()) {
    out.print("The movie is available");
    } else {
    out.print("The movie is not available");
    }Now just add that to your JSP page. Enjoy ! =)

  • Recebimento de CTe

    Olá,
    Estou em um projeto que possui o requerimento de recebimento de CTes pelo GRC/PI, gostaria de verificar com vocês se existe alguma solução standard para esse recebimento (cenários, notas SAP, etc) ou se é necessário a criação de uma interface customizada (dado que o CTe possui webservices isolados dos webservices da SEFAZ).
    Hoje o cliente qu estou, possui um sistema de que centraliza o recebimento de todas as notas de fornecedores e CTe e é necessário conectar o GRC/PI nesse sistema para que seja possível o recebimento destas notas.
    Desde já, muito obrigado pela ajuda.
    Abrs,
    Alberto Almeida

    Oi Alberto
    Na solução de incoming da NF-e 10 você pode tratar o recebimento de CT-e. Atualmente você pode fazer a validação da assinatura e verificação de status. E, até onde eu sei... no próximo SP que será liberado essa semana (SP 9) será disponibilizada a badi para que cada cliente possa customizar a entrada automática.
    Mais informações:
    http://help.sap.com/saphelp_nfe10/helpdata/en/index.htm
    Abraço
    Eduardo Chagas

Maybe you are looking for