Error ORA-04030 in Oracle RAC11GR2

Hello

I work with oracle 11 g RAC 2.

I have replace the slider by collecting and using bulk collect to optimize the pl/sql code of the application.

But ultimately I got this error:

ORA-06500: PL/SQL: Storage error

ORA-04030: memory of process when trying to allocate 48 bytes 16328 bytes

(call from koh-kghu, pmuccst: adt/registration).

I check the memory

memory_target = 1.2Go

memory_max_target = 1.5Go

SGA_TARGET = 625Mo (I'll put these values to control and use Advisory for sga and pga)

pga_aggregate_target = 600 MB

SGA_MAX_SIZE = 1.5Go

When I check the Advisory sga and pga advice:

SGA should be 1 GB

PGA should be (at least) 3.5Go

I would like to understand if sga_max_size fixed to 1.5Go (the memory_max_target), PGA cannot take this memory?

Oracle error, do you think it is that I must add memory and fixed SGA and PGA of the values indicated in the notice?

I thank in advance

Hello

the cause of the problem is the deficiency of the memory of the PGA, it takes more than 600 MB according to notice of oracle (we must 3.5Go)

I keep the cursor for the application to wait to add memory RAM to our server.

Good day

Tags: Database

Similar Questions

  • error ORA-04030 in environment dataguard

    Oracle Database 11 g Enterprise Edition Release 11.1.0.6.0 - 64 bit Production
    Name of the system: Linux
    News Release: 2.6.18 - 53.el5
    Version: #1 SMP Wed Oct 10 16:34:19 EDT 2007
    Machine: x86_64

    DATAGUARD ACTIVE WITH THE OBSERVER. error ORA-04030
    Alert log information:
    Thu Sep 02 02:00:00 2010
    Clearing Resource Manager plan via parameter
    Thu Sep 02 10:16:31 2010
    Errors in file /u01/app/oracle/diag/rdbms/agbcdb/agbc/trace/agbc_asmb_4312.trc  (incident=88030):
    ORA-04030: out of process memory when trying to allocate 592 bytes (callheap,kfmditer)
    Incident details in: /u01/app/oracle/diag/rdbms/agbcdb/agbc/incident/incdir_88030/agbc_asmb_4312_i88030.trc
    Thu Sep 02 10:16:36 2010
    Trace dumping is performing id=[cdmp_20100902101636]
    Errors in file /u01/app/oracle/diag/rdbms/agbcdb/agbc/trace/agbc_asmb_4312.trc:
    ORA-04030: out of process memory when trying to allocate 592 bytes (callheap,kfmditer)
    ASMB (ospid: 4312): terminating the instance due to error 4030
    Thu Sep 02 10:16:36 2010
    ORA-1092 : opidrv aborting process unknown ospid (13456_46912513432672)
    Instance terminated by ASMB, pid = 4312
    Thu Sep 02 10:16:37 2010
    Instance termination got error 27120 from SGA destruction.
      Error cleared. Process exiting.
                                                                                                                          49270,3       Bot
    trace file information:
    Trace file /u01/app/oracle/diag/rdbms/agbcdb/agbc/trace/agbc_asmb_4312.trc
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORACLE_HOME = /u01/app/oracle/product/11.1.0/db
    System name:    Linux
    Release:        2.6.18-53.el5
    Version:        #1 SMP Wed Oct 10 16:34:19 EDT 2007
    Machine:        x86_64
    Instance name: agbc
    Redo thread mounted by this instance: 1
    Oracle process number: 15
    Unix process pid: 4312
    
    
    *** 2010-09-02 10:16:31.510
    *** SESSION ID:(321.1) 2010-09-02 10:16:31.510
    *** CLIENT ID:() 2010-09-02 10:16:31.510
    *** SERVICE NAME:(SYS$BACKGROUND) 2010-09-02 10:16:31.510
    *** MODULE NAME:() 2010-09-02 10:16:31.510
    *** ACTION NAME:() 2010-09-02 10:16:31.510
    
    Incident 88030 created, dump file: /u01/app/oracle/diag/rdbms/agbcdb/agbc/incident/incdir_88030/agbc_asmb_4312_i88030.trc
    "/u01/app/oracle/diag/rdbms/agbcdb/agbc/trace/agbc_asmb_4312.trc" 31L, 1346C                                          13,1          Top
    
    ORA-04030: out of process memory when trying to allocate 592 bytes (callheap,kfmditer)
    
    error 4030 detected in background process
    ORA-04030: out of process memory when trying to allocate 592 bytes (callheap,kfmditer)
    
    *** 2010-09-02 10:16:36.501
    ASMB (ospid: 4312): terminating the instance due to error 4030
    skgm error 27120: errno = 12, info = 5, 163842, 0, 0, 46912513437872, 1, 46912513437872
    the failover of the database on STANBY, today morning the database instance ensures also finished with the same error message.

    We followed the metalink documents to solve problems.
    SQL> ! ulimit -a
    core file size          (blocks, -c) 0
    data seg size           (kbytes, -d) unlimited
    max nice                        (-e) 0
    file size               (blocks, -f) unlimited
    pending signals                 (-i) 139264
    max locked memory       (kbytes, -l) 32
    max memory size         (kbytes, -m) unlimited
    open files                      (-n) 65536
    pipe size            (512 bytes, -p) 8
    POSIX message queues     (bytes, -q) 819200
    max rt priority                 (-r) 0
    stack size              (kbytes, -s) 32768
    cpu time               (seconds, -t) unlimited
    max user processes              (-u) 2047
    virtual memory          (kbytes, -v) unlimited
    file locks                      (-x) unlimited
    
    SQL> show parameter pga
    
    NAME                     TYPE     VALUE
    ------------------------------------ ----------- ------------------------------
    pga_aggregate_target             big integer 0
    SQL>
    
    SQL> select * from v$pgastat;
    
    NAME                           VALUE UNIT
    --------------------------------------------- ---------- ------------
    aggregate PGA target parameter              2684354560 bytes
    aggregate PGA auto target               167772160 bytes
    global memory bound                   268431360 bytes
    total PGA inuse                   4780392448 bytes
    total PGA allocated                  5534604288 bytes
    maximum PGA allocated                  5551688704 bytes
    total freeable PGA memory               269811712 bytes
    process count                         180
    max processes count                     181
    PGA memory freed back to OS               681246720 bytes
    total PGA used for auto workareas               0 bytes
    
    NAME                           VALUE UNIT
    --------------------------------------------- ---------- ------------
    maximum PGA used for auto workareas         2717696 bytes
    total PGA used for manual workareas               0 bytes
    maximum PGA used for manual workareas               0 bytes
    over allocation count                    2757
    bytes processed                   4510057472 bytes
    extra bytes read/written                   0 bytes
    cache hit percentage                     100 percent
    recompute count (total)                 2757
    
    19 rows selected.
    
    SQL>
    set linesize 120
    col program format a10
    col used format 999999.99
    col alloc format 999999,99
    col max format 9999999.9
    select spid,program,trunc(pga_used_mem/1024/1024) USED,
    trunc(pga_alloc_mem/1024/1024) ALLOC, trunc(pga_max_mem/1024/1024) MAX
    FROM V$PROCESS
    ORDER BY PGA_ALLOC_MEM DESC;
    
    SQL> COL PROGRAM FORMAT A40
    SQL> RUN
      1  select spid,program,trunc(pga_used_mem/1024/1024) USED,
      2  trunc(pga_alloc_mem/1024/1024) ALLOC,
      3  trunc(pga_max_mem/1024/1024) MAX
      4  FROM V$PROCESS
      5* ORDER BY PGA_ALLOC_MEM DESC
    
    SPID             PROGRAM                    USED      ALLOC        MAX
    ------------------------ ---------------------------------------- ---------- ---------- ----------
    *4348             [email protected] (ASMB)         4068.00      40,70     4070.0*
    4448             [email protected] (RSM0)        3.00       2,26      446.0
    4336             [email protected] (DBW0)        5.00         33       41.0
    4429             [email protected] (ARCt)           11.00         28       32.0
    
    SQL>
    
    SQL>  SELECT SUM(VALUE)/1024/1024 MB
      2   FROM V$SESSTAT S,V$STATNAME N
      3   WHERE N.STATISTIC#=S.STATISTIC#
      4  AND NAME='session pga memory';
    
        MB
    ----------
    4578.77262
    
    SQL>
    
    SQL> run
      1  select sid,name,value
      2  from v$statname n,v$sesstat s
      3   WHERE N.STATISTIC#=S.STATISTIC#
      4  and name like'session%memory%'
      5* order by 3 asc
    
    
          SID NAME                    VALUE
    ---------- ------------------------------ ----------
    
           119 session pga memory max        22846056
           280 session pga memory max       235067848
           321 session pga memory max      4267874920
    
           SID NAME                    VALUE
    ---------- ------------------------------ ----------
           321 session pga memory          4267874920
    
    716 rows selected.
    
    SQL> show parameter sort_area_size
    
    NAME                     TYPE     VALUE
    ------------------------------------ ----------- ------------------------------
    sort_area_size                 integer     65536
    
    SQL>  show parameter workarea_size_policy
    
    NAME                     TYPE     VALUE
    ------------------------------------ ----------- ------------------------------
    workarea_size_policy             string     AUTO
    our Director increased SR, today in the morning watch is also down because of the same error ora-04030. We started the night before now and check the stats on the PGA Tour.
    SQL> select spid,program,trunc(pga_used_mem/1024/1024) USED,
      2  trunc(pga_alloc_mem/1024/1024) ALLOC,
      3  trunc(pga_max_mem/1024/1024) MAX
      4  FROM V$PROCESS
      5  ORDER BY PGA_ALLOC_MEM DESC
      6  /
    
    SPID             PROGRAM                       Used (in MB)     ALLOC           MAX
    ------------------------ --------------------------------------------- ------------ ---------- -----------
    4372             [email protected] (LGWR)              11.00     24.00         24.00
    4473             [email protected] (ARCd)              11.00     24.00         24.00
    4503             [email protected] (ARCs)              11.00     24.00         24.00
    
    SQL>  SELECT SUM(VALUE)/1024/1024 MB
      2  FROM V$SESSTAT S,V$STATNAME N
      3  WHERE N.STATISTIC#=S.STATISTIC#
      4  AND NAME='session pga memory';
    
        MB
    ----------
    453.999092
    
    SQL> run
      1   select sid,name,value
      2  from v$statname n,v$sesstat s
      3   WHERE N.STATISTIC#=S.STATISTIC#
      4  and name like'session%memory%'
      5* order by 3 asc
    309 session pga memory            12753512
           326 session pga memory            12810392
           326 session pga memory max        12827448
    
    336 rows selected.
    
    SQL>
    now the memory used by pga is very less,

    My question: 1 why FILIPE takes too much memory?
    2. After switching to the standby database also the memory used by the process of FILIPE is not released very high almost 99.99%?

    Thank you and best regards,
    Olivier Claude.

    Hello
    you're welcome :)

    Salman

  • Error ORA-28500, DBLink Oracle to Sql Server

    Hi guys, when I query a remote table via a db link get "ORA-28500: connection between ORACLE and a non-Oracle system returned this message:" and the message after it's juice a plain square brackets "[]" "."

    SQL > select *.
    2 of [email protected];
    of [email protected]
    *
    ERROR on line 2:
    ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:
    [


    SQL >

    I want to know where I can get error that she supposed to track the error ORA-28500 or what means this error?

    Thank you...

    This error with the simple opening bracket is commonly indicating a problem of NLS.

    Unfortunately, you specify which ODBC driver manager and ODBC driver you are using and on what platform you have installed the bridge, so I can only guess...

    Could you please add 2 to your gateway gateway config file settings, and then try again from the select in a new SQL * Plus the term:
    HS_NLS_NCHAR = UCS2
    HS_LANGUAGE = AMERICAN_AMERICA.we8iso8859P1

    -Klaus

  • Not available on Windows server 2008 r2 64 error ORA-01034 DBCA Oracle

    Hi all

    I installed oracle 11.2.0.1 on my system operating system Windows server 2008. Then after that through DBCA I created the database while I had oracle ORA-01034 is not available. If any body knows how to solve it please answer me.

    Thank you and best regards,
    Arya

    Hi Arya,

    SID and ORACLE_HOME value correctly.

    --
    Bala :)

  • OCI error ORA-01403: no data found in oracle goldengate replication after tts instaniation

    I recently migrated our central system of tg (11.1.0.7) solaris from Sun to linux (11.2.0.3) environment using goldengate (tablespace transportable method used for instantiation).

    Initial replication has worked with HANDLECOLLISIONS and after I took over LAG, I took off Handlecollisions and noticed updated report discarded with OIC error ORA-01403: no data available in two repetitions.


    I followed all the steps in the migration tts steps provided by oracle best practices.


    Can anyone provide any clue how to fix this?


    Thank you in advance.

    For that error, the common problem is missing data, GoldenGate cannot find it because there is no key (search KEYCOLS in the installation guide), or a null is present (trying to update a record and a constraint is not null).

  • Error ORA-00979 when you run the SQL in Oracle 11.2.0.3

    Hi Oracle Experts,


    I am trying to execute a SQL statement which consist of 2-3 levels of inline queries. Part of this SQL statement is as below:
    SELECT
          "SAMPLE_RESULT"."PROPERTYID",
          "SAMPLE_RESULT"."QUALIFIER",
          ROUND(AVG(SAMPLE_RESULT.RESULT),2) avg_result,
          AVG(DECODE(SAMPLE.QUALITYSTATUS, 'P', 1,'F', 5)) qltystatus,
          TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy') sampledt,
          TO_CHAR("SAMPLE"."SAMPLEDT",'rrrr-mm-dd') sortdate
          STD.stdev,
          getCL.cl
        FROM
          (
            SELECT
              ROUND(stddev(INS.avg_result),2) stdev
            FROM
              (
                SELECT
                  "SAMPLE_RESULT"."PROPERTYID",
                  "SAMPLE_RESULT"."QUALIFIER",
                  ROUND(AVG(SAMPLE_RESULT.RESULT),2) avg_result,
                  AVG(DECODE(SAMPLE.QUALITYSTATUS, 'P', 1,'F', 5)) qltystatus,
                  TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy') sampledt
                FROM
                  "SAMPLE",
                  "SAMPLE_RESULT",
                  "ACTIVITY"
                WHERE
                  (
                    "SAMPLE"."SAMPLEID" = "SAMPLE_RESULT"."SAMPLEID"
                  )
                AND
                  (
                    "SAMPLE_RESULT"."TESTINSTANCE" = fn_max_instance (
                    sample.sampleid, sample_result.testid, sample_result.propertyid
                    )
                  )
                AND
                  (
                    "SAMPLE"."ACTIVITYID" = "ACTIVITY"."ACTIVITYID"
                  )
                AND
                  (
                    ACTIVITY.VARIANTID IN ('Sales Gas','Contaminants End')
                  )
                AND
                  (
                    ACTIVITY.LOCATIONID = 'S-5003C'
                  )
                AND
                  (
                    SAMPLE.EVENTID <> 'AD-HOC'
                  )
                AND
                  (
                    "SAMPLE"."SAMPLESTATUS" = 'L'
                  )
                AND
                  (
                    TO_DATE(TO_CHAR(SAMPLE.SAMPLEDT,'dd-mon-yyyy')) BETWEEN TO_DATE
                    (TO_CHAR(:StartDate,'dd-Mon-RRRR')) AND TO_DATE(TO_CHAR(
                    :StartDate,'dd-Mon-RRRR')) + 6
                  )
                AND
                  (
                    SAMPLE_RESULT.PROPERTYID = 'GCV'
                  )
                GROUP BY
                  SAMPLE_RESULT.PROPERTYID,
                  SAMPLE_RESULT.QUALIFIER,
                  TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy')
              )
              INS
          )
          STD,
          (
            SELECT
              ROUND(AVG(INS.avg_result),2) cl
            FROM
              (
               SELECT
                  "SAMPLE_RESULT"."PROPERTYID",
                  "SAMPLE_RESULT"."QUALIFIER",
                  ROUND(AVG(SAMPLE_RESULT.RESULT),2) avg_result,
                  AVG(DECODE(SAMPLE.QUALITYSTATUS, 'P', 1,'F', 5)) qltystatus,
                  TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy') sampledt
                FROM
                 "SAMPLE",
                  "SAMPLE_RESULT",
                  "ACTIVITY"
                WHERE
                  (
                    "SAMPLE"."SAMPLEID" = "SAMPLE_RESULT"."SAMPLEID"
                  )
                AND
                  (
                    "SAMPLE_RESULT"."TESTINSTANCE" = fn_max_instance (
                    sample.sampleid, sample_result.testid, sample_result.propertyid
                    )
                  )
                AND
                  (
                    "SAMPLE"."ACTIVITYID" = "ACTIVITY"."ACTIVITYID"
                  )
                AND
                  (
                    ACTIVITY.VARIANTID IN ('Sales Gas','Contaminants End')
                  )
                AND
                  (
                    ACTIVITY.LOCATIONID = 'S-5003C'
                  )
                AND
                  (
                    SAMPLE.EVENTID <> 'AD-HOC'
                  )
                AND
                  (
                    "SAMPLE"."SAMPLESTATUS" = 'L'
                  )
                AND
                  (
                    TO_DATE(TO_CHAR(SAMPLE.SAMPLEDT,'dd-mon-yyyy')) BETWEEN TO_DATE
                    (TO_CHAR(:StartDate,'dd-Mon-RRRR')) AND TO_DATE(TO_CHAR(
                    :StartDate,'dd-Mon-RRRR')) + 6
                  )
                AND
                  (
                    SAMPLE_RESULT.PROPERTYID = 'GCV'
                  )
                GROUP BY
                  SAMPLE_RESULT.PROPERTYID,
                  SAMPLE_RESULT.QUALIFIER,
                  TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy')
              )
              INS
    
          )
          getCL,
          "SAMPLE",
          "SAMPLE_RESULT",
          "ACTIVITY"
        WHERE
          (
            "SAMPLE"."SAMPLEID" = "SAMPLE_RESULT"."SAMPLEID"
          )
        AND
          (
            "SAMPLE_RESULT"."TESTINSTANCE" = fn_max_instance (sample.sampleid,
            sample_result.testid, sample_result.propertyid)
          )
        AND
          (
            "SAMPLE"."ACTIVITYID" = "ACTIVITY"."ACTIVITYID"
          )
        AND
          (
            ACTIVITY.VARIANTID IN ('Sales Gas','Contaminants End')
          )
        AND
          (
            ACTIVITY.LOCATIONID = 'S-5003C'
          )
        AND
          (
            SAMPLE_RESULT.PROPERTYID IN ('GCV','SG','T. Sulphur','Dew Point',
            'HC Dew Pts')
          )    
        AND
          (
           TO_DATE(TO_CHAR(SAMPLE.SAMPLEDT,'dd-mon-yyyy')) BETWEEN TO_DATE(TO_CHAR
            (:StartDate,'dd-Mon-RRRR')) AND TO_DATE(TO_CHAR(:StartDate,
            'dd-Mon-RRRR')) + 6
          )
        GROUP BY "SAMPLE_RESULT"."PROPERTYID", "SAMPLE_RESULT"."QUALIFIER", TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy'), TO_CHAR("SAMPLE"."SAMPLEDT",'rrrr-mm-dd'),
        
          STD.stdev,
          getCL.cl
      )
    When I run the level the lowest and second lowest level inline queries statements, which consists of a select field of data and functions, there is no error and capable of generating the result.

    But when I run the statement which refer to the alias of queries inline (STD, getCL), it prompted an error ORA-00979 not a group by expression. This happened only Oracle 11.2.0.3. If I run the statement in another version of Oracle (11 GR 1 material and below), I am able to generate the result.

    Please advice how can I fix this problem.

    Published by: xysOra on 29 April 2013 19:37

    It seems that this should be the "SAMPLE" TO_CHAR conversions "" SAMPLEDT ".

    You seem to be willing to cut the time part of SAMPLEDT. The best way to do so is TRUNC (SAMPLEDT).

    In each of the groups of clauses, replace TO_CHAR ('SAMPLE'. ("' SAMPLEDT ', 'dd-Mon-yyyy') with TRUNC ('SAMPLE'. (' "SAMPLEDT") and completely remove the TO_CHAR ('SAMPLE'. ("' SAMPLEDT ',"dd-mm-rrrr") in the last group of.

    Replace in selection lists, TO_CHAR ('SAMPLE'. ("' SAMPLEDT ', 'dd-Mon-yyyy') with TO_CHAR (TRUNC ('SAMPLE'. ((' ' SAMPLEDT '), 'dd-Mon-yyyy') and replace TO_CHAR ("SAMPLE". "SAMPLEDT", "dd-mm-rrrr") with TO_CHAR (TRUNC ("SAMPLE" ".")) " "" "SAMPLEDT"), "dd-mm-rrrr").

    These changes can take you the ORA-00979 not one group by expression.

    Also the date manipulation is wrong — you do implicit conversions to date using default formats, when what you seem to want is to truncate the time part. Instead of

     TO_DATE(TO_CHAR(SAMPLE.SAMPLEDT,'dd-mon-yyyy')) BETWEEN TO_DATE(TO_CHAR
            (:StartDate,'dd-Mon-RRRR')) AND TO_DATE(TO_CHAR(:StartDate,
            'dd-Mon-RRRR')) + 6
    

    use

     TRUNC(SAMPLE.SAMPLEDT) BETWEEN TRUNC(:StartDate) AND TRUNC(:StartDate) + 6
    

    I hope this helps.
    David

  • DB ERROR: ORA-01033: ORACLE initialization or shutdown in progress

    Hello

    I want to start the Oracle 11 g server, but I get this error message

    ERROR:
    ORA-01033: ORACLE initialization or shutting
    Process ID: 0
    Session IDs: serial number 0: 0

    Note:-My db was working fine, but after Windows Update and restarting the computer, I get this error


    I followed the previous thread that describes what it takes, but I am getting below error

    SQL * more: Production of the version 11.2.0.2.0 on Tue Jan 15 15:10:12 2013

    Copyright (c) 1982, 2010, Oracle. All rights reserved.

    SQL > connect sys/admin123 have sysdba
    ERROR:
    ORA-28056: audit event log entry records Windows failed
    OSD-226114008: Message not found 226114008. product = RDBMS. installation = SOSD
    S/O-error: (OS 1502) the event log file is full.
    ORA-28056: audit event log entry records Windows failed
    OSD-226114008: Message not found 226114008. product = RDBMS. installation = SOSD
    S/O-error: (OS 1502) the event log file is full.


    SQL > shutdown immediate
    ORA-01012: not connected
    SQL > startup
    ORA-01012: not connected
    SQL > shutdown immediate
    ORA-01012: not connected
    SQL >

    can you please tell me what to do
    Thanks in advance

    Published by: gaelle Medlery on 15 January 2013 02:16

    Hello
    In the error message, it is clear that stop db is in progress. Must wait some time yet so that will end the shutdown process, then you can start. If you do not have the waiting time you reboot the machine so that once the server has been restarted, you can start your database.

    Kind regards
    Kishore

  • EMCA fails with the error "ORA-01034: ORACLE is not available.

    Hello
    10g R2 on AIX I have the following error:
    emca -config dbcontrol db -repos create
    ......................................................
    .....................................................
    Password for DBSNMP user:
    Invalid username/password. [ORA-01034: ORACLE not available]
    And that's because all oracle processes are runing with:
    ORACLE_HOME=/U00/Oracle/product/10.2.0/Db_1/

    EMCA fails with the error "ORA-01034: ORACLE is not available" and "Name of user and password invalid." For DBSNMP user [ID 550484.1]
    It is said:
    +<moderator edit - removed MOS content>+
    Can I do the reverse and in the script of the emca, add "/" at the end of ORACLE_HOME=/u00/oracle/product/10.2.0/db_1
    ??
    Thank you.

    Edited by moderator - content removed from MOS

    Hi user;

    First of all please do not post details here, its against to oracle interoperability metalink, ID is sufficient for us. Secondly, yes you can, first to save $ORACLE_HOME/bin/emca script like

    CP $ORACLE_HOME/bin/emca $ORACLE_HOME/bin/emca_org

    to change the file number and test

    Respect of
    HELIOS

  • ERROR: ORACLE prepare error: ORA-00936: lack of expression

    Hello

    I am required to run the 'pass-through' Oracle SQL, to extract data from tables in the SAS for processing and handling. My code (attached) reads and writes (runs) but with zero records to test first. I can't get beyond the error to prepare.

    The request is just like other queries that seem to work, but I can't get past this prepare error. I have no other access to individauls with an adequate knowledge of the PL SQL and as a last stop hoped others in the forum could quickly identify the source of the error.

    Thank you very much in advance for any help.

    Jeff
    _______________________________________

    1; *'; * « ; * / ; Quit; execution risk;
    2 OPTIONS NUMPAGE = MIN;
    3% LET _CLIENTTASKLABEL = % NRBQUOTE (rx_biplr_v3_2);
    4% LET _EGTASKLABEL = % NRBQUOTE (rx_biplr_v3_2);
    5% LET _CLIENTPROJECTNAME = %NRBQUOTE();
    6% LET _SASPROGRAMFILE =;
    7
    8 ODS CLOSE SUBJECT;
    NOTE: Some of your options or statements will not be managed with the Activex or Java Series devices. Chart by default for these
    drivers may be different from other SAS/GRAPH device drivers. For more information, please contact Technical Support.
    9 OPTIONS DEV = ACTIVEX;
    10 EGHTML TEMP FILE NAME;
    NOTE: Writing, body HTML (EGHTML) file: EGHTML
    11 ODS HTML(ID=EGHTML) FILE = EGHTML ENCODING = 'utf - 8' STYLE = EGDefault.
    11. STYLESHEET=(URL="file:///C:/program%20Files/SAS/shared%20Files/BIClientStyles/EGDefault.CSS")
    11. ATTRIBUTES = ("http://www2.sas.com/codebase/graph/v91/sasgraph.exe"="CODE") NOGTITLE NOGFOOTNOTE GPATH = & sasworklocation
    11.
    12
    gaccessible 13%;
    14 /********************************************************/
    15 * RX_BIPLR_V3. SAS;
    16 /********************************************************/
    17
    18 dm 'journal clearly out; delete ";
    19 linesize options = 120;
    20 option obs = 0 NoReplace;
    21
    22 ****************************************************************************************;
    23 * date reviewed programmer in WHICH WAS MADE;
    24 *----- -------------- ------------ -----------------------------------------;
    25 * 2005 creation of David Boyd program to the test population;
    26 *;
    27 * 06/02/2006 Ivon Jones changed to include the whole of the population;
    28 *;
    29 * 20/07/2006 Ivon Jones identified the holdout data elements;
    30 * or inclusion in the consolidation with;
    31 * Robin report;
    32 *;
    33 * 18/08/2006 Ivon Jones updated specific therapeutic Classes.
    34 * 10 - 2009 J Shaf - changed to extract actual or potential of UBH bipolar Dx and medical claims.
    35 ****************************************************************************************;
    36
    37
    38
    39 * % let allclmorgn = (', 'A'); / * claims origin code * /.
    40% would let begdate ='01 SEP 2009;
    41% let enddate = 30 SEP 2009 would be;
    42% let q = %str(%');
    43
    44
    45 data _null_;
    46. call symput ("fdos", put (intnx ('month' ' and begdate "d,-27," starts"), date9.));
    47 call symput ('ldos', put (intnx ('months', ' and enddate "d-0, 'end'" "), date9.));
    48, run;

    NOTE: DATA statement used (total duration of processes):
    time real 0.01 seconds
    2 the system SAS 11:44 Friday, October 30, 2009

    time CPU 0.01 seconds


    49
    50
    51
    52 **************************************************************;
    53 *? Data _null_ stage allows to create a macro variable to;
    54 * year and month, based on the macro ldos variable in the data;
    55 * step up? ;
    56 **************************************************************;
    57
    58
    59 data _null_;
    If 60 months ("& ldos" d) < 10
    61, then call symput ("yr_mo", compress (year ("& ldos" d) |)) '0' || months ("& ldos" d)));
    62 other call symput ("yr_mo", compress (year ("& ldos" d) | months ("& ldos" d)));
    63 to run;

    NOTE: The numeric values were converted to character values in the locations given by: (Line): (Column).
    61:39 61:64 62:39 62:57
    NOTE: DATA statement used (total duration of processes):
    time real 0.01 seconds
    time processor 0.01 seconds


    64
    65 * make % & biplr_dx;
    position 66% & begdate;
    ' 01 SEP 2009 would be
    67% put & enddate;
    30 SEP 2009 would be
    68% put & fdos;
    JUNE 1, 2007
    69% put & ldos;
    SEPTEMBER 30, 2009
    70% put & q;
    '
    71
    72
    73 libname biplr ' / home/jshafi01/projects/adhoc/biplr_dprsn/data ';
    NOTE: Libref BIPLR has been awarded with success as follows:
    Engine: V9
    Physical name: / home/jshafi01/projects/adhoc/biplr_dprsn/data
    74 rosdwp libname = oracle user "& oracle_user." pass = "& oracle_pass." ' buffsize = 32767 path = "rosdwp"; "
    NOTE: Libref ROSDWP has been awarded with success as follows:
    Engine: ORACLE
    Physical name: rosdwp
    75
    work.biplr_up_v1 76 data;
    mbr_id length 77 attrib = $ 26;
    78 the value biplr.biplr_ubh_med_v1;
    79 to be performed;

    NOTE: There were 0 read comments from the BIPLR data set. BIPLR_UBH_MED_V1.
    NOTE: All data WORK. BIPLR_UP_V1 has 0 comments and variables 1.
    NOTE: DATA statement used (total duration of processes):
    time real 0.01 seconds
    3 the system SAS 11:44 Friday, October 30, 2009

    time processor 0.01 seconds


    80
    81 proc content;
    82 to be performed;

    NOTE: PROCEDURE used CONTENT (total duration of processes):
    time real 0.03 seconds
    time CPU 0.03 seconds


    83
    84 proc datasets
    85 = rosdwp nolist library.
    86. delete biplr_up_v1;
    87 of quitting;

    NOTE: The removal of ROSDWP. BIPLR_UP_V1 (memtype = DATA).
    NOTE: PROCEDURE used DATASETS (time Total of processes):
    time real 3.74 seconds
    time CPU 0.03 seconds


    88
    89 proc datasets
    90 = work nolist library.
    copy 91 = rosdwp move;
    92 select biplr_up_v1;
    93 of quitting;

    NOTE: Move WORK. BIPLR_UP_V1 to ROSDWP. BIPLR_UP_V1 (memtype = DATA).
    NOTE: Variable labels SAS, formats and lengths are not written to the DBMS tables.
    NOTE: There were 0 read comments from the WORKING data set. BIPLR_UP_V1.
    NOTE: All the data ROSDWP. BIPLR_UP_V1 has 0 comments and variables 1.
    NOTE: PROCEDURE used DATASETS (time Total of processes):
    real 0.32 seconds
    time CPU 0.04 seconds


    94
    95
    96
    97 *****************************************************************************;
    98
    99 * execute (commit) by rosdwp
    100 ******************************************************************************;
    101
    102
    103 proc SQL noprint.
    104, connect to oracle as rosdwp (user = "" & oracle_user. "password =" "& oracle_pass ' buffsize = 32767 path ="rosdwp")
    104. preserve_comments);
    run 105 (alter session set nls_date_format = 'ddmonyyyy') by rosdwp;
    CREATE table biplr_rx like 106
    107 SELECT
    mrb_id 108,
    pcp_spc 109,
    rx_date 110,
    4 the system SAS 11:44 Friday, October 30, 2009

    Mark 111,
    generic, 112
    113 ahfs_cd
    ahfs_dsc 114,
    lbl 115,
    strngth 116,
    UNT 117,
    spc_tx_cls_cd 118,
    119 spc_tx_cls_dsc,
    GCN 120,
    rx_num 121,
    rx_ingrd 122,
    rx_paid 123,
    rx_cnt 124,
    rx_qty 125,
    rx_day 126
    127 rosdwp CONNECTION
    128 (SELECT
    129, middle of the year. UNIQ_MBR_ID as mrb_id,
    130 DB. PRVDR_SPCLTY_DESC as pcp_spc,
    FCP 131. LAST_SRVC_DT as rx_date,
    132 JJ. BRAND_NAME as mark,
    133 JJ. GNRC_NAME as generic,
    134 JJ. AHFS_THRPTC_CLS_CD as ahfs_cd,
    DD 135. AHFS_THRPTC_CLS_DESC as ahfs_dsc,
    136 JJ. LABEL_NAME as lbl,
    137 JJ. STRNGTH_NUM as strngth
    138 JJ. STRNGTH_UNIT_DESC as unt,
    139 JJ. SPECF_THRPTC_CLS_CD as spc_tx_cls_cd,
    140 DD. SPECF_THRPTC_CLS_DESC as spc_tx_cls_dsc,
    141 JJ. GCN_NUM as gcn,
    FCP 142. PRSCRPTN_NUM as rx_num,
    SUM of 143 (FCP. INGRDNT_AMT) as rx_ingrd,
    SUM of 144 (FCP. PD_AMT) as rx_paid,
    $ 145 (FCP. UNIT_SRVC_CNT) as rx_cnt,
    SUM of 146 (FCP. DSPNSD_QTY) as rx_qty,
    SUM of 147 (FCP. DAY_SUPLY_CNT) as rx_day
    148
    149 PHRMCY_CLM_FACT pcf,
    150 MBR_ID_DMNSN environment,
    151 DRUG_DMNSN dd,
    152 PRVDR_DMNSN pd,
    153 biplr_up_v1
    154. WHERE THE
    (155)
    156 (biplr_up_v1.mbr_id = MBR_ID_DMNSN. UNIQ_MBR_ID) and
    157 (PHRMCY_CLM_FACT. FINL_CLM_KEY = PHRMCY_FINL_CLM_DMNSN. FINL_CLM_KEY) AND
    158 (PHRMCY_CLM_FACT. MBR_KEY = MBR_ID_DMNSN. MBR_KEY) and
    159 (PHRMCY_CLM_FACT. BNFT_KEY = MBR_BNFT_DMNSN. BNFT_KEY) and
    160 (PHRMCY_CLM_FACT. DRUG_KEY = DRUG_DMNSN. DRUG_KEY) and
    161 (PHRMCY_FINL_CLM_DMNSN. CLM_ORGN_CD IN (', 'A')) AND
    162 (PHRMCY_CLM_FACT. LAST_SRVC_DT BETWEEN q. & fdos. & q and & q. & ldos. & q)
    163)
    164 Group By
    165 mi. UNIQ_MBR_ID,
    166 pd. PRVDR_SPCLTY_DESC,
    FCP 167. LAST_SRVC_DT,
    168 JJ. BRAND_NAME,
    5 the system SAS 11:44 Friday, October 30, 2009

    169 JJ. GNRC_NAME,
    170 JJ. AHFS_THRPTC_CLS_CD,
    171 JJ. AHFS_THRPTC_CLS_DESC,
    172 JJ. LABEL_NAME,
    173 JJ. STRNGTH_NUM,
    174 JJ. STRNGTH_UNIT_DESC,
    175 JJ. SPECF_THRPTC_CLS_CD,
    176 JJ. SPECF_THRPTC_CLS_DESC,
    177 JJ. GCN_NUM,
    FCP 178. PRSCRPTN_NUM
    179);
    ERROR: ORACLE prepare error: ORA-00936: lack of expression. SQL statement: SELECT middle. UNIQ_MBR_ID as mrb_id,
    RDL PRVDR_SPCLTY_DESC like pcp_spc, FCP. LAST_SRVC_DT as rx_date, JJ. BRAND_NAME as brand, JJ. GNRC_NAME as generic,
    DD. AHFS_THRPTC_CLS_CD like ahfs_cd, JJ. AHFS_THRPTC_CLS_DESC as ahfs_dsc, JJ. LABEL_NAME as lbl, JJ. STRNGTH_NUM as
    strngth, JJ. STRNGTH_UNIT_DESC as unt, JJ. SPECF_THRPTC_CLS_CD as spc_tx_cls_cd, JJ. SPECF_THRPTC_CLS_DESC as
    spc_tx_cls_dsc, JJ. GCN_NUM as gcn, FCP. PRSCRPTN_NUM as rx_num, SUM (FCP. INGRDNT_AMT) as rx_ingrd, SUM (FCP. PD_AMT)
    as rx_paid, SUM (FCP. UNIT_SRVC_CNT) as rx_cnt, SUM (FCP. DSPNSD_QTY) as rx_qty, SUM (FCP. DAY_SUPLY_CNT) as rx_day
    OF PHRMCY_CLM_FACT pcf, MBR_ID_DMNSN mi, DRUG_DMNSN JJ, pd of the PRVDR_DMNSN, biplr_up_v1 () WHERE the
    (biplr_up_v1.mbr_id = MBR_ID_DMNSN. UNIQ_MBR_ID) and (PHRMCY_CLM_FACT. FINL_CLM_KEY =
    PHRMCY_FINL_CLM_DMNSN. FINL_CLM_KEY) AND (PHRMCY_CLM_FACT. MBR_KEY = MBR_ID_DMNSN. MBR_KEY) and
    (PHRMCY_CLM_FACT. BNFT_KEY = MBR_BNFT_DMNSN. BNFT_KEY) and (PHRMCY_CLM_FACT. DRUG_KEY = DRUG_DMNSN. DRUG_KEY) and
    (PHRMCY_FINL_CLM_DMNSN. CLM_ORGN_CD IN (', 'A')) AND (PHRMCY_CLM_FACT. LAST_SRVC_DT BETWEEN ' 01 JUN 2007"
    and 30 SEP 2009') Group By mi. UNIQ_MBR_ID, pd. PRVDR_SPCLTY_DESC, FCP. LAST_SRVC_DT, JJ. BRAND_NAME,
    DD GNRC_NAME, JJ. AHFS_THRPTC_CLS_CD, JJ. AHFS_THRPTC_CLS_DESC, JJ. LABEL_NAME, JJ. STRNGTH_NUM,
    DD STRNGTH_UNIT_DESC, JJ. SPECF_THRPTC_CLS_CD, JJ. SPECF_THRPTC_CLS_DESC, JJ. GCN_NUM, FCP. PRSCRPTN_NUM.
    NOTE: PROC SQL set NOEXEC option and will continue to check the syntax of the instructions.
    180 run (drop table biplr_up_v1) in rosdwp;
    NOTE: Statement is not executed because the NOEXEC option.
    181 disconnect of rosdwp;
    NOTE: Statement is not executed because the NOEXEC option.
    182 of quitting;
    NOTE: The SAS system is stopped at this stage of processing errors.
    NOTE: PROCEDURE used SQL (total duration of processes):
    time real 0.14 seconds
    time CPU 0.03 seconds

    183
    184

    (1) assuming that LAST_SRVC_DT is a column of PHRMCY_CLM_FACT, to precede the table alias "FCP" rather than the full table name. If a table alias is specified in the FROM clause, it should be used rather than the full table name when you reference the columns.
    2) there are two tables in the WHERE clause that do not appear in the FROM clause:

    PHRMCY_FINL_CLM_DMNSN
    MBR_BNFT_DMNSN

    user12142482 wrote:
    Hello again,

    Wish Oracle was a bit more informative. Uses an Institute of SAS product called Enterprise Guide. A "hot fix" has been installed to solve a problem that the product appears unable to save the latest version of the revised code changes (hence "BETWEEN between" remaining even after an earlier edition). In any case, with the change, now get this error:

    «ERROR: ORACLE prepare error: ORA-00904: "PHRMCY_CLM_FACT".» ' LAST_SRVC_DT': invalid identifier. (The log file is displayed below)

    -The-Les restes remains of the error, no matter if code "pass" is used to move the date range to Oracle (which seems correct to the log output below that I believe), or if I hard code the date range in the query SQL PL itself.

    -L' preparation error always appears at the end of the internal SELECTION.
    -L' error of preparation remain, with or without the GROUP BY clause.

    Is there something else I'm missing? Someone suggested a reserve word - but other versions of the ANSI SQL standard, I don't see that is the case. I went to Support SAS and SAS list serve to the University of Georgia, but nothing definite from these sources. Have requested either able to run Oracle directly, outside this SAS Institute product - process.

    Any suggestions are greatly appreciated. Thank you to all the world very much.

    Jeff
    150 OF
    151 PHRMCY_CLM_FACT pcf,


    152 MBR_ID_DMNSN environment,
    153 DRUG_DMNSN dd,
    154 PRVDR_DMNSN pd,
    155 BIPLR_UP_V1 BLPR2
    156. WHERE THE
    157 (BIPLR_UP_V1.mbr_id = MBR_ID_DMNSN. UNIQ_MBR_ID) and
    158 (PHRMCY_CLM_FACT. FINL_CLM_KEY = PHRMCY_FINL_CLM_DMNSN. FINL_CLM_KEY) AND
    159 (PHRMCY_CLM_FACT. MBR_KEY = MBR_ID_DMNSN. MBR_KEY) and
    160 (PHRMCY_CLM_FACT. BNFT_KEY = MBR_BNFT_DMNSN. BNFT_KEY) and
    161 (PHRMCY_CLM_FACT. DRUG_KEY = DRUG_DMNSN. DRUG_KEY) and
    162 (PHRMCY_FINL_CLM_DMNSN. CLM_ORGN_CD IN (', 'A')) AND
    163 (PHRMCY_CLM_FACT. BETWEEN LAST_SRVC_DT & q. & fdos. & q and q & ldos. & q)
    (164);
    ERROR: ORACLE prepare error: ORA-00904: "PHRMCY_CLM_FACT." "' LAST_SRVC_DT ': invalid identifier. SQL statement:

  • Oracle on the SQL Server tables dblinked query error ORA-00904

    Hello

    I created a dblink to a SQL from Oracle database using generic connectivity.
    The following query returns the error ORA-00904 invalid identifier in the (tblEmp.Empno) WHERE clause

    SELECT 'EmpNo', "EmpName", "DeptName".
    OF tblEmp@sqlserver.
    tblDept@sqlserver
    WHERE tblDept.DeptNo = tblEmp.Empno

    I had to include the column names between double quotes because of the case review of the columns, but I can't do the
    same thing for the WHERE clause.

    (1) so how can I fix this error?
    (2) also how can I include the Deptno column with the table alias in the columns list?
    (Deptno is ambiguous in the Emp and Dept tables)

    Kind regards
    Sam

    Looks like you have case-sensitive column names, try this

    SELECT "EmpNo","EmpName", "DeptName"
    FROM tblEmp@sqlserver e,
    tblDept@sqlserver d
    WHERE d."DeptNo" = e."Empno" --<--- are you sure this is the correct join condition
    

    What should we not

    WHERE d."DeptNo" = e."DeptNo"
    

    Published by: Alex Nuijten on September 22, 2009 13:28

  • RMAN-06004: ORACLE recovery catalog database error: ORA-03113: end - of -

    Hello

    I experience backup scripts. because once done, she will move to pod pre box.

    Database runs in mode archvelog
    I have lgged in the dbserver himself.

    the shell scripts is:
    #! / usr/bin/sh
    source. / game - env # this file will have ID password for catalogue and the target sources
    echo executing command: database Backup
    ECHO
    RMAN TARGET $dbuser / $dbpwd$ rmandb CATALOG $rmanuser/$rmanpwd@$rmandb < < eof
    Run {}
    stop immediately;
    start-up;
    }
    expressions of folklore
    output


    When I run, I get the following error

    connected to target database: HERMESQA (DBID = 3819666523)
    connected to the recovery catalog database

    RMAN > 2 > 3 > 4 > 5 >
    database closed
    dismounted database
    Instance Oracle to close

    connected to the database target (not started)
    Oracle instance started
    mounted database
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the boot command at 11/06/2009 11:27:54
    RMAN-06004: the recovery catalog database ORACLE error: ORA-03113: end of file on communication channel

    could you suggest where I have error.

    Thank you
    Benjamin Gopal

    Do not back up the database using the same catalog of recovery recovery catalog of accommodation. You could just try it back up without a recovery catalog and to ensure that this database has an automatic backup of controlfile, for example.

  • Error ORA-600 on the Production Oracle Applications Instance

    Hello

    We get the error ORA-600 on the Instance of the Production Oracle Applications.

    Can any body suggest how to solve this problem.


    We got the error on 30 - Mar below... but the instance is up & running.

    Error as follows:
    ==========

    error occurred at the SQL level 1 recursive
    to "DMSYS. OLAPIHISTORYRETENTION', line 1
    [internal error code, arguments: [16206], [4294951254], [] [] [], [], []]
    internal error code, arguments: [16206], [4294951254]



    Thanks in advance for your help.

    Thank you
    Mudunuri Billon.

    What version of Oracle?

  • Oracle Database 11 g (11.1.0.6.0) &gt; error ORA-00119 &amp; ORA-00132

    Oracle Database 11g (11.1.0.6.0)

    I create a new Oracle 11 g database in our development environment. This is my first time installing an 11g database. During the installation process, the Configuration Wizard of database window appears and "Copy database files" are Ringing and the creation of database of current Clone is 2%, when I get the following error in the Configuration Wizard of database:

    ORA-00119: invalid specification for the system LOCAL_LISTENEr parameter
    ORA-00132: error syntax or network name not resolved "LISTENER_DEVTEST1."
    ORA-01078: failure in the treatment of system settings

    Search Info

    ===============================================
    * $ listener.ora* more
    listener.ora # Network Configuration file: /u002/dbsvr/oratst/11.1/network/admin
    Listener.ora
    # Generated by Oracle configuration tools.

    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1524))
    (ADDRESS = (PROTOCOL = TCP (PORT = 1524))(HOST = dallinux02.clubcorp.com))
    )
    )
    ===============================================
    * $ tnsnames.ora* more
    tnsnames.ora # Network Configuration file: /u002/dbsvr/oratst/11.1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.

    LISTENER_DEVTEST1 =
    (ADDRESS = (PROTOCOL = TCP (PORT = 1524))(HOST = dallinux02.clubcorp.com))
    ===============================================
    * lsnrctl status $ *.

    LSNRCTL for Linux: Version 11.1.0.6.0 - Production on March 11, 2009 14:11:44

    Copyright (c) 1991, 2007, Oracle. All rights reserved.

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1524)))
    STATUS of the LISTENER
    ------------------------
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.1.0.6.0 - Production
    Start date March 11, 2009 14:04:06
    Uptime 0 days 0 h 7 min 37 s
    Draw level off
    Security ON: OS Local Authentication
    SNMP OFF
    Parameter Listener of the /u002/dbsvr/oratst/11.1/network/admin/listener.ora file
    The listener log file /U002/dbsvr/oratst/diag/tnslsnr/dallinux02/listener/alert/log.XML
    Summary of endpoints listening...
    (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC1524)))
    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp (PORT = 1524))(HOST=dallinux02.clubcorp.com)))
    The listener supports no services
    The command completed successfully
    ================================================

    1524 port is not used by another database.

    Hello

    You must install the oracle first software and then run DBCA. Once you have installed the oracle software, you can only listener of Crete using netca. Check your init.ora file (must be placed under)
    C: >$ ORACLE_HOME/database / dbs or $ORACLE_HOME/dbs and local for the following LOCAL_LISTENER parameter and remove. But I recommend you to install the oracle software only first, then run DBCA.

    What is your operating system? Is - this vista? XP?

    Concerning

  • Using Merge in oracle 11g this error SQL Error: ORA-30926: failed to get a stable set of rows in the source tables

    whenever I run this code I get this error

    SQL Error: ORA-30926: failed to get a stable set of rows in the source tables

    30926 00000 - "impossible to get a stable set of rows in the source tables.

    * Cause: A stable set of rows could not be achieved due to the large dml

    activity or one not deterministic where clause.

    * Action: Remove any non deterministic of the clauses and reissue of the dml.

    Don't know wht goes wrong!


    SQL:

    MERGE IN VENDORS_ACTIVE_DATE s

    USING (nvl (d.VENDOR, s.VENDOR) selection of the SELLER,

    NVL (d.COMPANY_CODE, s.COMPANY_CODE) COMPANY_CODE.

    (case when ((d.VENDOR = s.VENDOR) and (d.COMPANY_CODE = s.COMPANY_CODE)))

    )

    then "MATCH".

    When d.COMPANY_CODE is null

    then 'DELETE '.

    When s.COMPANY_CODE is null

    then "INSERT."

    else 'UPDATE '.

    chck end)

    from (select * from VENDORS_ACTIVE_DATE where COMPANY_CODE = 2) s

    full outer join (select * provider where COMPANY_CODE = 2) d

    on (d.COMPANY_CODE = s.COMPANY_CODE AND s.COMPANY_CODE = 2)

    ) d

    WE (d.COMPANY_CODE = s.COMPANY_CODE AND d.chck in ('UPDATE', 'GAME', 'DELETE'))

    WHEN MATCHED THEN

    UPDATE SET s.VENDOR = d.VENDOR

    WHERE d.chck in ('UPDATE', 'DELETE')

    DELETE WHERE d.chck = 'DELETE '.

    WHEN NOT MATCHED THEN

    INSERT (SELLER, COMPANY_CODE)

    VALUES (d.VENDOR, d.COMPANY_CODE)

    Work request: (deleted the duplicate data in tables (source and target))

    MERGE IN VENDORS_ACTIVE_DATE s

    USING (nvl (d.VENDOR, s.VENDOR) selection of the SELLER,

    NVL (d.ACTIVEDATE, s.ACTIVEDATE) ACTIVEDATE.

    NVL (d.COMPANY_CODE, s.COMPANY_CODE) COMPANY_CODE.

    (case when ((d.VENDOR = s.VENDOR))

    - AND D.ACTIVEDATE = S.ACTIVEDATE

    and NVL (d.ACTIVEDATE, trunc (sysdate)) = NVL (s.ACTIVEDATE, trunc (sysdate))

    and (d.COMPANY_CODE = s.COMPANY_CODE)

    )

    then "MATCH".

    When d.COMPANY_CODE is null

    then 'DELETE '.

    When s.COMPANY_CODE is null

    then "INSERT."

    else 'UPDATE '.

    chck end)

    from (select * from suppliers where COMPANY_CODE = 2) d

    full outer join (select * from vendors_active_date where COMPANY_CODE = 2) s

    on (d.COMPANY_CODE = s.COMPANY_CODE and s.vendor = d.vendor)

    ) d

    WE (d.COMPANY_CODE = s.COMPANY_CODE AND d.VENDOR = s.VENDOR AND d.chck in ('UPDATE', 'GAME', 'DELETE'))

    WHEN MATCHED THEN

    S.ACTIVEDATE = UPDATE SET d.ACTIVEDATE

    WHERE d.chck in ('UPDATE', 'DELETE')

    DELETE WHERE d.chck = 'DELETE '.

    WHEN NOT MATCHED THEN

    INSERT (VENDOR, ACTIVEDATE, COMPANY_CODE)

    VALUES (d.VENDOR, d.ACTIVEDATE, d.COMPANY_CODE)

  • ORA-04030: memory of process when trying to allocate 16328 bytes (sessi koh-kghu, pmuccst: adt/registration)

    Hi all

    We run personalized simultaneous program called 'BS Purge Shipping Exceptions' in ebs 11i. It takes a lot of time and finished with the following error.

    Error 6500 in FDPSTP ORACLE

    Cause: FDPSTP failed due to the ORA-06500: PL/SQL: Storage error

    ORA-04030: memory of process when trying to allocate 16328 bytes (sessi koh-kghu, pmuccst: adt/registration)

    ORA-06512: at the 'APPS '. FND_MSG_PUB", line 45

    ORA-06512: at "A".

    Please help on this issue.

    Thank you

    Jeremy

    Check this Doc ID 1325100.1

Maybe you are looking for

  • 4th gen Apple TVRemoteWon can't hold a charge

    Recently my ATV 4 distance began to unload completely in just a few days, rather than the promised several weeks and as he recently are someone else has this problem? I called Apple support and they sent me a new replacement. It works very well in al

  • HDMI port is not detected on my Satellite L755-1NX

    Hello I have a problem with the conector HDMI to my new laptop, I have bougth 2 weeks ago.The laptop detects no HDMI port. When I conect the laptop to a TV or monitor on a different pc, any of these detects anything. I tried to update a lot of driver

  • Download Tracktor?

    Try to download Traktor DJ software via the external disk drive. It is said that it can not be installed on this drive. I'm not very tech savy, so any DJ who use Mac and Tracktor, and useful advice that would be great! Thank you!

  • SMC will not convert.

    My SMC will not convert the videos that ask him too. I'm going to click on "Add media" and choose one of my videos, so it'll get back with a review "this file, C:/bahbhawhereeveritis can not be converted. Please install the codec to corect first. If

  • Recovery to back up the information.

    After experiencing performance issues slow, I took advice of local repairman. Before the Tower in them, I completed a return upwards on a DVD. The fault was traced on the hard, forcing completely replace them. I am now reinstalling everything again,