ORA-06512: at "OLAPSYS. CWM2_OLAP_UTILITY', line 1865

Hello

I'm changing the description of a mesuares in an existing cube.

I executed the following command.

run cwm2_olap_measure.set_short_description ("'REFMNE', 'CUBE_VENTES', 'VTE_MT_PR', ' sales ');

I get the following error:

ORA-06510: PL/SQL: not supported by the user-defined exception
ORA-06512: at "OLAPSYS. CWM2_OLAP_UTILITY', line 1865
ORA-01403: no data found
ORA-06512: at "OLAPSYS. CWM2_OLAP_MEASURE', line 19
ORA-06512: at "OLAPSYS. CWM2_OLAP_MEASURE', line 30
ORA-06512: at "OLAPSYS. CWM2_OLAP_MEASURE', line 192
ORA-06512: at line 1

I checked all my comments
The procedure is defined as set_short_description (p_Cube_Owner varchar2-"REFMNE" - is the owner of the schema
, p_Cube_Name varchar2-"CUBE_VENTES".
, p_Measure_Name varchar2-"VTE_MT_PR".
p_Short_Description varchar2); -' Sales amount '.


This cube has been created using template xml via AWM and the cube works very well. The database is 11.2.0.1.0. I'm running the statement as the owner of work/cube space

Any ideas awm. I need to change the description of each object in the workspace.

Thank you

The cwm2_olap_measure package and any other that begines with MCG, is frowned upon in 11.2. AWM does not use this API to create cubes. If you have created your cube in AWM then you need to use dbms_cube.import_xml (if you are dealing with a style of 11g AW) or dbms_aw_xml.execute (if you are dealing with a 10g AW style). You can also use documented interfaces for Java ('OLAP API' and 'AWXML' for 11g and 10g respectively).

Tags: Business Intelligence

Similar Questions

  • Trigger the error ORA-06512: in SYS. Line SECURE_DML 5

    Hi all
    I am trying to create a procedure that is called by a trigger like this:

    CREATE or REPLACE PROCEDURE SECURE_DML is
    BEGIN
    If (TO_CHAR(SYSDATE, 'DY') IN ('SAB', 'DOM')) OR (TO_CHAR (SYSDATE, 'HH24')
    NOT FROM 08:00 ' 17:00 ') THEN
    RAISE_APPLICATION_ERROR (-20500, ' Insercoes funcionarios only no comercial Monday ');
    end if;
    end;
    /

    CREATE OR REPLACE TRIGGER secure_dml2
    INSERT BEFORE ON SCOTT. EMP2
    BEGIN
    exec SECURE_DML procedure;
    end;
    /
    ALTER SESSION set nls_date_format = 'HH24 DY';
    insert into SCOTT.emp2 (sal, empno, ename, deptno) values (7935, 'SANDRA', 1203, 10);

    The error that is:
    ORA-06512: In SYS. Line SECURE_DML 5
    ORA-06512: In SYS. SECURE_DML2 line 2

    What should I do to remove these erros?
    Thank you

    SQL * Plus still displays the full error stack. You raise an error in the stored procedure that is propagated to trigger that is propagated to SQL * more.

    SY.

  • I get the error message like "error - ORA-29273 report: failure of the HTTP ORA-06512: at"SYS. " UTL_HTTP", line 1130 ORA-12535: TNS:operation expired ORA-06512: 37 29273 line. 00000 - "HTTP request failed" * Cause: package UTL_HTTP The Impossible to run

    I have tried the code

    DECLARE

    lv_url VARCHAR2 (1000): = ' http://shenzhoufellowship.org/main2/files/old/SpecialTopics/TheLoveDare.pdf';

    lc_return BLOB;

    lhttp_url httpuritype.

    Varriables - declared to have written the LOB to pdf file-

    l_file UTL_FILE. TYPE_DE_FICHIER;

    l_buffer RAW (32767).

    l_amount directory: = 32767;

    l_pos INTEGER: = 1;

    l_blob BLOB;

    l_blob_len INTEGER.

    BEGIN

    -create URIs

    lhttp_url: = httpuritype.createuri (lv_url);

    -get the PDF document

    lc_return: = lhttp_url.getblob ();

    -Open the destination file.

    l_file: = UTL_FILE. FOPEN ('MBO_INPUT_DIR', 'MBD.zip', 'wb');

    -Get the total length of the BLOB

    l_blob_len: = DBMS_LOB.getlength (lc_return);

    -Pieces of the BLOB to read and write to the file

    -full up.

    While l_pos < l_blob_len LOOP

    DBMS_LOB. READ (lc_return, l_amount, l_pos, l_buffer);

    UTL_FILE.put_raw (l_file, l_buffer, FALSE);

    l_pos: = l_pos + l_amount;

    END LOOP;

    -Closes the file.

    UTL_FILE. FCLOSE (l_file);

    EXCEPTION

    WHILE OTHERS THEN

    -Close the file if something goes wrong.

    IF UTL_FILE.IS_OPEN (l_file) THEN

    UTL_FILE. FCLOSE (l_file);

    END IF;

    LIFT;

    END;

    But make a mistake like:

    Error report-

    ORA-29273: HTTP request failed

    ORA-06512: at "SYS." UTL_HTTP", line 1130

    ORA-12535: TNS:operation expired

    ORA-06512: at line 37 level

    29273 00000 - "the HTTP request failed.

    * Cause: The UTL_HTTP package cannot run the HTTP request.

    * Action: Use get_detailed_sqlerrm to check the detailed error message.

    Correct the error and restart the HTTP request.

    Please suggest a solution. Is it possible to download a zip file with the same code?

    [oracle@localhost ~]$ sqlplus scott/tiger
    
    SQL*Plus: Release 11.2.0.1.0 Production on Mon Apr 6 13:59:09 2015
    
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL> --My Database version
    SQL> ----------------------
    SQL> SELECT * FROM v$version;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  DECLARE
      2        lv_url    VARCHAR2(500) := 'http://shenzhoufellowship.org/main2/files/old/SpecialTopics/TheLoveDare.pdf';
      3        lc_return BLOB;
      4        lhttp_url httpuritype;
      5        ---Varriables declared for writing the LOB to pdf file --
      6        l_file     UTL_FILE.FILE_TYPE;
      7        l_buffer   RAW(32767);
      8        l_amount   BINARY_INTEGER := 32767;
      9        l_pos      INTEGER := 1;
    10       l_blob     BLOB;
    11       l_blob_len INTEGER;
    12     BEGIN
    13       --create uri
    14       lhttp_url := httpuritype.createuri(lv_url);
    15       --get the PDF document
    16       lc_return := lhttp_url.getblob();
    17       -- Open the destination file.
    18       l_file := UTL_FILE.FOPEN('SAUBHIK', 'TheLoveDare.pdf', 'wb');
    19       --Get the total length of the BLOB
    20       l_blob_len := DBMS_LOB.getlength(lc_return);
    21       -- Read chunks of the BLOB and write them to the file
    22       -- until complete.
    23       WHILE l_pos < l_blob_len LOOP
    24         DBMS_LOB.READ(lc_return, l_amount, l_pos, l_buffer);
    25         UTL_FILE.put_raw(l_file, l_buffer, FALSE);
    26         l_pos := l_pos + l_amount;
    27       END LOOP;
    28       -- Close the file.
    29       UTL_FILE.FCLOSE(l_file);
    30     EXCEPTION
    31       WHEN OTHERS THEN
    32         -- Close the file if something goes wrong.
    33         IF UTL_FILE.IS_OPEN(l_file) THEN
    34           UTL_FILE.FCLOSE(l_file);
    35         END IF;
    36         RAISE;
    37*    END;
    38  /
    DECLARE
    *
    ERROR at line 1:
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1130
    ORA-24247: network access denied by access control list (ACL)
    ORA-06512: at line 36
    
    SQL> conn sys as sysdba
    Enter password:
    Connected.
    SQL> ed
    Wrote file afiedt.buf
    
      1  BEGIN
      2    DBMS_NETWORK_ACL_ADMIN.CREATE_ACL(acl         => 'love.xml',
      3                                      description => 'Love ACL',
      4                                      principal   => 'SCOTT',
      5                                      is_grant    => true,
      6                                      privilege   => 'connect');
      7    DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(acl       => 'love.xml',
      8                                         principal => 'SCOTT',
      9                                         is_grant  => true,
    10                                         privilege => 'resolve');
    11    DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL(acl  => 'love.xml',
    12                                      host => 'shenzhoufellowship.org');
    13  commit;
    14* END;
    15  /
    
    PL/SQL procedure successfully completed.
    
    SQL> conn scott/tiger
    Connected.
    SQL> ed
    Wrote file afiedt.buf
    
      1  DECLARE
      2        lv_url    VARCHAR2(500) := 'http://shenzhoufellowship.org/main2/files/old/SpecialTopics/TheLoveDare.pdf';
      3        lc_return BLOB;
      4        lhttp_url httpuritype;
      5        ---Varriables declared for writing the LOB to pdf file --
      6        l_file     UTL_FILE.FILE_TYPE;
      7        l_buffer   RAW(32767);
      8        l_amount   BINARY_INTEGER := 32767;
      9        l_pos      INTEGER := 1;
    10       l_blob     BLOB;
    11       l_blob_len INTEGER;
    12     BEGIN
    13       --create uri
    14       lhttp_url := httpuritype.createuri(lv_url);
    15       --get the PDF document
    16       lc_return := lhttp_url.getblob();
    17       -- Open the destination file.
    18       l_file := UTL_FILE.FOPEN('SAUBHIK', 'TheLoveDare.pdf', 'wb');
    19       --Get the total length of the BLOB
    20       l_blob_len := DBMS_LOB.getlength(lc_return);
    21       -- Read chunks of the BLOB and write them to the file
    22       -- until complete.
    23       WHILE l_pos < l_blob_len LOOP
    24         DBMS_LOB.READ(lc_return, l_amount, l_pos, l_buffer);
    25         UTL_FILE.put_raw(l_file, l_buffer, FALSE);
    26         l_pos := l_pos + l_amount;
    27       END LOOP;
    28       -- Close the file.
    29       UTL_FILE.FCLOSE(l_file);
    30     EXCEPTION
    31       WHEN OTHERS THEN
    32         -- Close the file if something goes wrong.
    33         IF UTL_FILE.IS_OPEN(l_file) THEN
    34           UTL_FILE.FCLOSE(l_file);
    35         END IF;
    36         RAISE;
    37*    END;
    38  /
    
    PL/SQL procedure successfully completed.
    
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@localhost ~]$ cd saubhik/
    [oracle@localhost saubhik]$ pwd
    /home/oracle/saubhik
    [oracle@localhost saubhik]$ ls -l *.pdf
    -rw-r--r-- 1 oracle oinstall 60055 Apr  6 14:03 TheLoveDare.pdf
    [oracle@localhost saubhik]$
    

    I love this pdf file. I would like to read this and mean while if you get an error then please post in its entirety and also think that it is an Oracle error or network.

  • ORA-06512: In SYS. SECURE_DML, line 5

    Hi all
    I am trying to create a procedure that is called by a trigger like this:

    CREATE or REPLACE PROCEDURE SECURE_DML is
    BEGIN
    If (TO_CHAR(SYSDATE, 'DY') IN ('SAB', 'DOM')) OR (TO_CHAR (SYSDATE, 'HH24')
    NOT FROM 08:00 ' 17:00 ') THEN
    RAISE_APPLICATION_ERROR (-20500, ' Insercoes funcionarios only no comercial Monday ');
    end if;
    end;
    /
    ALTER SESSION set nls_date_format = 'HH24 DY';

    CREATE OR REPLACE TRIGGER secure_dml2
    INSERT BEFORE ON SCOTT. EMP2
    BEGIN
    exec SECURE_DML procedure;
    end;
    /
    ALTER SESSION set nls_date_format = 'HH24 DY';
    insert into SCOTT.emp2 (sal, empno, ename, deptno) values (7935, 'SANDRA', 1203, 10);

    The error that is:
    ORA-06512: In SYS. Line SECURE_DML 5
    ORA-06512: In SYS. SECURE_DML2 line 2

    What should I do to remove these erros?
    Thank you

    Published by: 994323 on 16/03/2013 20:05

    You post in the wrong forum. Mark the correct answer and close this message. Post to {forum: id = 75}

  • Collecting Table statistics get error ORA-20001 and ORA-06512 on 11g

    Hi Forum!

    I'm trying to collect statistics on a DB 11.2.0.1 for Siebel application.
    The script that generates the statistical errors out and I don't know why. So I tried to interview sys.dba_tab_statistics manually, but the event, and then I got an error message:

    Select * from sys.dba_tab_statistics


    ORA-20001: BIN$ PV5XQQHLSAYJ0KPMEY1MHG == $0 is an invalid identifier
    ORA-06512: in "SYS-DBMS_STATS", line 2082
    ORA-06512: in "SYS-DBMS_STATS", line 2098
    ORA-06512: in "SYS-DBMS_STATS", line 26789


    Any ideas?

    Edited by: Penky October 10, 2011 14:51

    Penky wrote:
    Note that I have not even the error when you make a right selection * of dba_tab_statistics which I think should work fine, no?

    It is that:

    select * from dba_tab_statistics
    

    or

    select * from sys.dba_tab_statistics
    

    It is unusual for a view error SYS, unless it is a specific bug in this version of the database, but I wonder if there are other patterns, such as SYS who have something in their basket (not that anyone should have to be create or drop things in SYS)?

  • dmp Impdp file error: ORA-29283: operation invalid file ORA-06512: at "SYS." UTL_FILE", line 536

    Hi all.

    Sorry to ask this error again, I read a lot of topic in this forum on this subject, but I can't fix it.

    So I create this topic.

    My computer is running oracle database 11 g 2 express edition on ubuntu LTS 14.04.

    I'm trying to import the database of dmp file. That's what I do:


    > sqplus

    opening session with sys as sysdba, then run:

    Hoangnv CREATE USER IDENTIFIED BY hoangnv;

    GRANT CONNECT TO hoangnv;

    GRANT RESOURCE, s/n hoangnv;

    CREATE OR REPLACE DIRECTORY dmpdir AS ' / home/hoangnv/downloads/db ";

    GRANT read, write the DIRECTORY ON dmpdir TO hoangnv;


    my_project.dmp file is stored on /home/hoangnv/Downloads/db folder.

    Finally, I ran the command below in terminal:

    impdp hoangnv/hoangnv@xe directory = dmpdir dumpfile = my_project.dmp logfile = my_project.log


    That's what see the Terminal:

    ORA-39002: invalid operation

    ORA-39070: unable to open the log file.

    ORA-29283: invalid file operation

    ORA-06512: at "SYS." UTL_FILE", line 536

    ORA-29283: invalid file operation

    Any ideas? I run these commands on window and import the database successfully.

    Hello

    Please try the suggestions below:

    1. make sure that the roles granted to the user are 'default' for him.

    SQL > change the user hoangnv the role by default all;

    then try to re-import.

    Note: the DBA role contains the IMP_FULL_DATABASE with it.

    2. try import with the use of the 'System' this time, which is the result then? don't forget to give the system read, write on directory dmpdir.

    3. is the permission to/home/hoangnv/Downloads/db fine OS?

  • ORA-06512: at "RQSYS. RQEVALIMPL', line 77

    Hello

    I test our add-on R Oracle and I get errors when I try a use of the ore.lm function using the example in the "User Guide". Here's the example and errors:

    Example 4-2 using ore.lm

    longley_of <- ore.push(longley) # Fit full model oreFit1 <- ore.lm(Employed ~ ., data = longley_of) class(oreFit1) summary(oreFit1)

    > longley_of <-ore .push (longley)

    > oreFit1 <-ore.lm (employees ~., data = longley_of)

    Error in .oci. GetQuery (Conn., instruction, data = data = prefetch prefetch,):

    ORA-20000: RQuery error internal [rqerExec, 3, 0, 0]

    ORA-06512: at "RQSYS. RQEVALIMPL', line 77

    ORA-06512: at "RQSYS. RQEVALIMPL', line 74

    Thanks Sherry for your quick response on this issue.

    We have uninstalled company Oracle R and reinstalled and everything works now. Thanks again for your support! RA

  • ORA-12012: error on auto work 754461 ORA-29279: SMTP permanent error: ORA-29279: SMTP permanent error: 501 Syntax error, command parameters "RCPT TO:" ORA-06512 unrecognized or missing: at "SYS." UTL_SMTP", line 20 ORA-06512: at"SYS." UTL_SMTP.

    Hello


    I get below error frequently in the log database alerts.


    ORA-12012: error on auto work 754461

    ORA-29279: SMTP permanent error: ORA-29279: SMTP permanent error: 501 Syntax error, command parameters ' RCPT TO: ' unrecognized or missing

    ORA-06512: at "SYS." UTL_SMTP", line 20

    ORA-06512: at "SYS." UTL_SMTP", line 98

    ORA-06512: at "SYS." UTL_SMTP", line 240

    ORA-06512: at the 'APPS '. EIS_UTIL_PKG', line 94

    ORA-06512: at the 'APPS '. HKD_PO_ADDON_PKG', line 110

    ORA-06512: at line 1

    The syntax error comes from the SMTP server, not to the job itself, so I disagree with your solution.

  • Error when inserting a record - a feature not taken in charge with clause RETURNING ORA-06512: at line 1

    Hello

    I have a created an EO based on a synonym (synonym is created for a Table by using binding remote Db)

    I created a from VO of the EO above and added to an AM. When I run the AM and try to insert a record I get following error

    [164] BEGIN INSERT INTO TRACK_TRANSACTION_STATUS_BIZ (TRANS_NO, TRANS_ID, START_DATE, LOGIN_USER_ID, SESSION_ID, REFUND_APPLICABLE_IND) VALUES (: 1,: 2,: 3,: 4:5:6) TRANS_STATUS, ISHOP_LOGIN_IND, EMAIL_ADDR_AT_SIGN, TEL_NO_INT_PREFIX, REFUND_APPLICABLE_IND, REFUNDED_IND, CSP_IND RETURNING: 7: 8: 9,: 10,: 11,: 12,: 13; END;

    [165] insert link param 1: test

    [166] insert link param 2: you

    [167] insert link param 3: 2014-10-16 21:37:09.0

    [168] insert link param 4: your

    [169] insert link param 5: you

    [170] insert link param 6: N

    OracleSQLBuilderImpl.doEntityDML [171] failed...

    [172] X / Open SQL State is: 99999

    [173] java.sql.SQLException: ORA-22816: feature not supported with RETURNING clause

    ORA-06512: at line 1

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)

    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)

    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)

    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)

    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)

    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:213)

    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1111)

    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)

    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)

    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3904)

    at oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:9417)

    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1512)

    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:429)

    at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8575)

    at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6816)

    at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3290)

    at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3093)

    at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2097)

    at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2378)

    at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1615)

    at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1417)

    at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1437)

    at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2150)

    at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:740)

    at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)

    at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:412)

    at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:111)

    to oracle.jbo.uicli.controls.JUNavigationBar$ NavButton.actionPerformed (JUNavigationBar.java:118)

    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)

    in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)

    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)

    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)

    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)

    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)

    at java.awt.Component.processMouseEvent(Component.java:6289)

    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)

    at java.awt.Component.processEvent(Component.java:6054)

    at java.awt.Container.processEvent(Container.java:2041)

    at java.awt.Component.dispatchEventImpl(Component.java:4652)

    at java.awt.Container.dispatchEventImpl(Container.java:2099)

    at java.awt.Component.dispatchEvent(Component.java:4482)

    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)

    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)

    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)

    at java.awt.Container.dispatchEventImpl(Container.java:2085)

    at java.awt.Window.dispatchEventImpl(Window.java:2478)

    at java.awt.Component.dispatchEvent(Component.java:4482)

    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)

    to java.awt.EventQueue.access$ 000 (EventQueue.java:85)

    in java.awt.EventQueue$ 1.run(EventQueue.java:603)

    in java.awt.EventQueue$ 1.run(EventQueue.java:601)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:98)

    in java.awt.EventQueue$ 2.run(EventQueue.java:617)

    in java.awt.EventQueue$ 2.run(EventQueue.java:615)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)

    at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)

    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)

    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)

    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    [174] OracleSQLBuilder: ROLLBACK WORK point registration "BO_SP".

    [175] DCBindingContainer.reportException: oracle.jbo.DMLException

    oracle.jbo.DMLException [176]: Houston-26041: could not publish data from database in "Insert": SQL statement ' BEGIN INSERT INTO TRACK_TRANSACTION_STATUS_BIZ (TRANS_NO, TRANS_ID, START_DATE, LOGIN_USER_ID, SESSION_ID, REFUND_APPLICABLE_IND) VALUES (: 1,: 2,: 3,: 4: 5:6) TRANS_STATUS, ISHOP_LOGIN_IND, EMAIL_ADDR_AT_SIGN, TEL_NO_INT_PREFIX, REFUND_APPLICABLE_IND. , REFUNDED_IND, CSP_IND INTO TURNING: 7: 8: 9: 10: 11:12:13; END; ».

    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:583)

    at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8575)

    at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6816)

    at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3290)

    at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3093)

    at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2097)

    at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2378)

    at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1615)

    at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1417)

    at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1437)

    at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2150)

    at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:740)

    at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)

    at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:412)

    at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:111)

    to oracle.jbo.uicli.controls.JUNavigationBar$ NavButton.actionPerformed (JUNavigationBar.java:118)

    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)

    in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)

    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)

    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)

    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)

    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)

    at java.awt.Component.processMouseEvent(Component.java:6289)

    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)

    at java.awt.Component.processEvent(Component.java:6054)

    at java.awt.Container.processEvent(Container.java:2041)

    at java.awt.Component.dispatchEventImpl(Component.java:4652)

    at java.awt.Container.dispatchEventImpl(Container.java:2099)

    at java.awt.Component.dispatchEvent(Component.java:4482)

    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)

    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)

    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)

    at java.awt.Container.dispatchEventImpl(Container.java:2085)

    at java.awt.Window.dispatchEventImpl(Window.java:2478)

    at java.awt.Component.dispatchEvent(Component.java:4482)

    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)

    to java.awt.EventQueue.access$ 000 (EventQueue.java:85)

    in java.awt.EventQueue$ 1.run(EventQueue.java:603)

    in java.awt.EventQueue$ 1.run(EventQueue.java:601)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:98)

    in java.awt.EventQueue$ 2.run(EventQueue.java:617)

    in java.awt.EventQueue$ 2.run(EventQueue.java:615)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)

    at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)

    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)

    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)

    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    Caused by: java.sql.SQLException: ORA-22816: feature not supported with RETURNING clause

    ORA-06512: at line 1

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)

    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)

    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)

    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)

    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)

    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:213)

    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1111)

    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)

    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)

    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3904)

    at oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:9417)

    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1512)

    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:429)

    ... 52 more

    # # 0 in detail

    java.sql.SQLException: ORA-22816: feature not supported with RETURNING clause

    ORA-06512: at line 1

    Ask for help in this regard

    ADF will generate default DML statement with RETURNING clause, and it is not applicable to your use case: ORA-22816: feature not supported with RETURNING clause

    Instead, you can try with setUseReturningClause (false): http://docs.oracle.com/middleware/1213/adf/develop/adf-bc-entity-objects.htm#BABJAJCA

    Dario

  • ORA-01578: block of data corrupted ORACLE ORA-01110: data file 46:, ORA-06512: at line 1 ScanningError 1038246

    We get error below of the application team. Please find attached the file backup rman error.

    ORA-01578: ORACLE corrupt data (file # 46, block # 64626) ORA-01110: data file 46: ' / db04_hlt/PHCLMDB/PHCLMDB_DATA/phclm21.dbf' ORA-06512: at "HCLM_ADMIN. SCANPROC_INSUPLOADTEMP", line 16 ORA-06512: at line 1 ScanningError 1038246

    fe40282660394026b5f76bf3f5d649e4 SCANPROC_INSUPLOADTEMP-ORA-01578: data block (file # 46, block # 64626) corrupted ORACLE ORA-01110: data file 46:

    Hello

    Please follow the steps to format corrupt block a used the procedure mentioned in the document below, please note that you need to do several times for all the block corrupted in free space.
    Doc-ID 336133.1===> how corrupt Format block is not part of any Segment.

    Following the notes 293515.1 -->> ORA-1578 ORA-26040 in a LOB segment - Script to resolve errors

    This note is for these errors, but the procedure is exactly the same, we must:

    1 - identify the ROWID affected
    2 - Put the ROWID corrupted on EMPTY_LOB
    3. When you MOVE the LOB to a new Tablespace

    These are essentially the steps, the note shows how

    Kind regards

    Alok

  • Event Driven Publishing API 11 GR 2 - ORA-06512: at line 20

    Hello

    I use event driven api publishing to send the report to our users, I use the procedure to do this, but the procedure executes with the error

    declare

    *

    ERROR on line 1:

    ORA-20999:

    ORA-06512: at «NRSP.» SRW", line 264

    ORA-06512: at «NRSP.» SRW", line 799

    ORA-06512: at line 20

    no additional information about the cause of the error.

    Please help about this.

    Database: 11 GR 2

    Train services: 11 GR 2

    RAC (2 knots)

    -procedure

    declare

    myPlist SRW_PARAMLIST;

    myIdent SRW. Job_Ident;

    myStatus SRW. Status_Record;

    BEGIN

    SRW.start_debugging;

    myPlist: = SRW_PARAMLIST (SRW_PARAMETER('',''));

    srw.add_parameter (myPlist, 'GATEWAY','http://192.168.5.35:8888/reports/rwservlet ');

    SRW. ADD_PARAMETER (myPlist, "SERVER", "rep_wls_reports_conho_asnist_1");

    SRW.add_parameter(myPlist,'REPORT','D:\Reports\EMP_ABSNTE_AUTO.rdf');

    SRW.add_parameter(myPlist,'USERID','usr/pwd@mydb');

    SRW.add_parameter (myPlist, 'DESTYPE', 'email');

    SRW.add_parameter (myPlist, 'DESFORMAT', 'PDF');

    srw.add_parameter (myPlist, 'DESNAME',' [email protected]');

    SRW.add_parameter (myPlist, 'SUBJECT', 'Monthly absent notice');

    srw.add_parameter (myPlist, "FROM",' [email protected]');

    myIdent: = srw.run_report (myPlist);

    myStatus: = srw.report_status (myIdent);

    SRW.stop_debugging;

    end;

    /


    The debug output should tell you more. See this thread:

    Report in PDF format and send it to some clients, using database triggers

  • Invalid operation UTL_SMTP, ORA-06512: at "SYS." UTL_SMTP", LINE 161

    Hello

    I have a requirement to send the data in the table (retrieved via a select clause) through an email.

    Here is the procedure that uses to send email that includes data from the table through trigger.

    I don't find any problem during execution of the procedure and the relaxation.

    but when inserting the data in table 1 (present to SCHEMA1 please refer to line 37 and 55) I get the following error and the message will not be delivered

    ERRORS

    ORA-29277: invalid SMTP Operation

    ORA-06512: at "SYS." UTL_SMTP", LINE 55

    ORA-06512: AT "SYS." UTL_SMTP", LINE 161

    ORA-06512: AT "SYS." UTL_SMTP", LINE 452

    ORA-06512: AT "SYS." UTL_SMTP", LINE 463

    But when I remove the code from line 33 to 44

    am able to send mail.

    That is to say

    / * IMMEDIATE EXECUTION

    "SELECT."

    A.BATCHNO, B.PCSBOX, B.AMOUNT

    Of

    SCHEMA1. Table1: A, SChEMA2.TABLE2 B

    WHERE

    A.BATCHID = B.BATCHNO AND B.PRODOAID =' | PRODOAID

    BULK COLLECT INTO BATCHNO, PCSBOX, AMOUNT;

    FOR indx IN 1.BATCHNO. COUNTY

    LOOP

    UTL_SMTP. WRITE_DATA (A, BATCHNO (indx) |) ' -- '|| PCSBOX (indx) |' --' || Amount (indx) | UTL_TCP. CRLF);

    END LOOP; */

    I checked the sender and recipient addresses that they are fine.

    so, this is my code

    1 CREATE OR REPLACE PROCEDURE SEND_TABLE_DATA (FROMAD IN VARCHAR2: =' <[email protected]> ', )

    TOAD 2 IN VARCHAR2: = ' < [email protected] > ',

    3 under RESERVE IN VARCHAR2: = 'Data Table ',.

    4 MESSAGE IN VARCHAR2: = "Dear all,

    5                                    Docid :    ' ,

    DOCID 6 IN VARCHAR2,

    DOCDT DATE 7.

    8 PRODOAID IN NUMBER)

    9, ACCORDING TO

    10 TYPE NumList IS TABLE OF NUMBER;

    11 TYPE NameList IS TABLE OF THE VARCHAR2 (32767).

    12 BATCHNO NameList;

    13 PCSBOX NumList;

    AMOUNT 14 NumList;

    15 SMTPHOST VARCHAR2 (255): = ' XX. XX. XX. XX ";

    16. A UTL_SMTP. CONNECTION;

    BEGIN 17

    18 A: = UTL_SMTP. OPEN_CONNECTION(SMTPHOST,25);

    19 UTL_SMTP. HELO (A, SMTPHOST);

    20 UTL_SMTP. MAIL (A, FROMAD);

    21 UTL_SMTP. RCPT (A, TOAD);

    22 UTL_SMTP. OPEN_DATA (A);

    UTL_SMTP 23. WRITE_DATA (A, UTL_TCP. CRLF);

    24 UTL_SMTP. WRITE_DATA (A, UTL_TCP. CRLF. UTL_TCP. CRLF. UTL_TCP. CRLF);

    25 UTL_SMTP. WRITE_DATA (, ' Date: ' |) TO_CHAR (SYSDATE, ' DD/MM/YYYY HH24:MI:SS'). UTL_TCP. CRLF);

    26 UTL_SMTP. WRITE_DATA (, ' from: ' |) FROMAD | UTL_TCP. CRLF);

    UTL_SMTP 27. WRITE_DATA (, ' from: ' |) TOAD | UTL_TCP. CRLF);

    28 UTL_SMTP. WRITE_DATA (, ' subject: ' |) TOPIC | UTL_TCP. CRLF);

    UTL_SMTP 29. WRITE_DATA (ONE, MESSAGE |) DOCID | "Documented on ' | DOCDT | UTL_TCP. CRLF);

    30 UTL_SMTP. WRITE_DATA (A, UTL_TCP. CRLF. UTL_TCP. CRLF. UTL_TCP. CRLF);

    UTL_SMTP 31. WRITE_DATA (A, "it's for your information" |) UTL_TCP. CRLF);

    UTL_SMTP 32. WRITE_DATA (, ' BATCHNO ' |) ' -- '||' PCSBOX ' |' --' ||' AMOUNT '. UTL_TCP. CRLF);

    33 IMMEDIATE EXECUTION

    34 ' SELECT

    35 A.BATCHNO, B.PCSBOX, B.AMOUNT

    36 FROM

    37 SCHEMA1. Table1: A, SChEMA2.TABLE2 B

    38. WHERE THE

    39 A.BATCHID = B.BATCHNO AND B.PRODOAID =' | PRODOAID

    40 BULK COLLECT INTO BATCHNO PCSBOX, AMOUNT;

    41 FOR indx IN 1.BATCHNO. COUNTY

    42 LOOP

    UTL_SMTP 43. WRITE_DATA (A, BATCHNO (indx) |) ' -- '|| PCSBOX (indx) |' --' || Amount (indx) | UTL_TCP. CRLF);

    44 END OF LOOP;

    UTL_SMTP 45. WRITE_DATA (A, CHR (13) |) CHR (13) | CHR (13));

    UTL_SMTP 46. CLOSE_DATA (A);

    UTL_SMTP 47. QUIT (A);

    EXCEPTION OF 48

    49 THEN THAN OTHERS THEN

    50 UTL_SMTP. QUIT (A);

    RAISE 51;

    END 52;

    53.

    54, create or replace trigger trg_table_mail_sricity_prodoa

    55 after insertion on SCHEMA1. TABLE1:

    56 for each line

    start at 57

    (58) SENd_table_data

    59 DOCID = >: new.docid,.

    DOCDT 60 = >: new.docdt,.

    PRODOAID 61 = >: new.prodoaid

    (62);

    end 63;

    Can what changes I make to the code to meet my needs?

    Please correct me if am wrong anywhere,

    in the case where if a bad method used to send data (retrieved using a select clause)

    Show me another method to achieve my requirement.

    Thanks in advance,

    Pradeep cordially.

    Line 19 is not going. The HELO command is used to identify the SMTP client. The SMTP server knows its IP address and the host name. No need to tell him that via the HELO command. He wants to know who is the appellant. The order is intended to say "Hello, I am a customer ". "" See the SMTP RFC for more details. (and Yes, examples of the Oracle are wrong)

    Run immediately? Why? There is no true used dynamic SQL.

    Collect in bulk? Why? There is not analysis or the treatment performed. Use a cursor loop FOR and call write data from the inside of the loop.

    Also consider a fall 80's standard mainframe coding style (and abusing capital letters) and use modern standards that are common in Java. .NET, C/C++, etc. Specifically, as PL/SQL is derived and an implementation of the Ada language, look at Ada 95 quality and Style Guide for standards, and good logic.

  • Ore.Connect gives me ORA-06512: at "RQSYS. RQEVALIMPL', line 47

    I want to install Oracle Enterprise R, and I'm in step "Start the Oracle R Enterprise Client on Linux" in the installation guide. My output is as follows:
    $library (ORE)
    Loading required package: OREbase

    Package pricing: "OREbase."

    The following objects are hidden from "package: base:

    cbind data.frame, eval, interaction, order, dough, pmax, pmin,
    rbind, table

    Loading required package: OREstats
    Loading required package: MASS
    Loading required package: OREgraphics
    Loading required package: OREeda
    Loading required package: OREdm
    Loading required package: lattice
    Loading required package: OREpredict
    Loading required package: ORExml
    $ore.connect (user = "josh", sid = "orcl", host is"cascade", password = *, port = 1521, all = TRUE)
    Loading required package: ROracle
    Loading package perl: DBI
    Error in .oci. GetQuery (Conn., instruction, data = data = prefetch prefetch,):
    ORA-20000: RQuery error internal [24323, rqetPrepare, 2, 0]
    ORA-06512: at "RQSYS. RQEVALIMPL', line 47
    ORA-06512: at "RQSYS. RQEVALIMPL', line 43
    ORA-06512: at line 4 level
    I looked at the code for RQSYS. RQEVALIMPL and line 47 is the beginning of a static function called StubTablePrepare, which looks like it called rqeLib rqetNilPrepare. I checked and my $LD_LIBRARY_PATH contains librqe.so and librqe.so contains a function named rqetNilPrepare.

    It is quite possible, I missed a step when installing, but I don't know what it could be. Is it possible that I can get diagnoses more detailed telling me why StubTablePrepare seem to be failing?

    Here are my details of environment:
    Oracle version: 11.2.0.1.0 Enterprise Edition for Linux x 64
    Version R: R Oracle version 2.15.1 Distribution (-)-"of toasted marshmallows.
    Oracle Enterprise R version: 1.3_R_x86_64

    The client is installed on the same computer as the server. I can connect to the database as the user 'josh' through SQL Developer. The user 'josh' has the following grants:
    RUN A PROCEDURE
    CREATE TABLE
    EXECUTE ANY TYPE
    CREATE SESSION
    CREATE MINING MODEL
    CREATE PROCEDURE
    CREATE SEQUENCES
    CREATE VIEW
    RQADMIN
    CONNECT
    RUN RQSYS. RQEVALIMPL

    Thank you
    Josh Davis

    Josh,

    In point 1.3 of the ORE ore.connect use R shipped to check the version of R in the server. Embedded R won't work without an RDBMS bug fix available in 11.2.0.3.

    Denis

  • ORA-06512: at "WMSYS. WM_CONCAT_IMPL', line 30

    Select No, wm_concat (cleared) in the clr of the association_1 group by the;

    That's what I get at the end;

    ERROR:
    ORA-06502: PL/SQL: digital or value error: character string buffer too small
    ORA-06512: at "WMSYS. WM_CONCAT_IMPL', line 30


    even if I use the 2nd method by creating type I still get the same error

    Select No, row_col (cleared) in the clr of the association_1 group by the;


    ORA-06502: PL/SQL: digital or value error: character string buffer too small
    ORA-06512: at "ALI. T_ROW_COL', line 22

    REATE OR REPLACE TYPE t_row_col AS OBJECT
    (
      g_string  VARCHAR2(32767),
    
      STATIC FUNCTION ODCIAggregateInitialize(sctx  IN OUT  t_row_col)
        RETURN NUMBER,
    
      MEMBER FUNCTION ODCIAggregateIterate(self   IN OUT  t_row_col,
                                           value  IN      VARCHAR2 )
         RETURN NUMBER,
    
      MEMBER FUNCTION ODCIAggregateTerminate(self         IN   t_row_col,
                                             returnValue  OUT  VARCHAR2,
                                             flags        IN   NUMBER)
        RETURN NUMBER,
    
      MEMBER FUNCTION ODCIAggregateMerge(self  IN OUT  t_row_col,
                                         ctx2  IN      t_row_col)
        RETURN NUMBER
    );
    /
    
    
    CREATE OR REPLACE TYPE BODY t_row_col IS
      STATIC FUNCTION ODCIAggregateInitialize(sctx  IN OUT  t_row_col)
        RETURN NUMBER IS
      BEGIN
        sctx := t_row_col(NULL);
        RETURN ODCIConst.Success;
      END;
    
      MEMBER FUNCTION ODCIAggregateIterate(self   IN OUT  t_row_col,
                                           value  IN      VARCHAR2 )
        RETURN NUMBER IS
      BEGIN
        SELF.g_string := self.g_string || '/' || value;
        RETURN ODCIConst.Success;
      END;
    
      MEMBER FUNCTION ODCIAggregateTerminate(self         IN   t_row_col,
                                             returnValue  OUT  VARCHAR2,
                                             flags        IN   NUMBER)
        RETURN NUMBER IS
      BEGIN
        returnValue := RTRIM(LTRIM(SELF.g_string, '/'), '/');
        RETURN ODCIConst.Success;
      END;
    
      MEMBER FUNCTION ODCIAggregateMerge(self  IN OUT  t_row_col,
                                         ctx2  IN      t_row_col)
        RETURN NUMBER IS
      BEGIN
        SELF.g_string := SELF.g_string || '/' || ctx2.g_string;
        RETURN ODCIConst.Success;
      END;
    END;
    /
    
    
    CREATE OR REPLACE FUNCTION row_col (p_input VARCHAR2)
    RETURN VARCHAR2
    PARALLEL_ENABLE AGGREGATE USING t_row_col;
    /
    ************************************************************************************
    How can I fix this erros

    It is because there is a limit to how big a varchar2 can result (4000 bytes), and you exceed.

    What you need is to use a version of the CLOB basis rather for example

    create or replace
      type clobagg_type as object(
                                  text clob,
                                  static function ODCIAggregateInitialize(
                                                                          sctx in out clobagg_type
                                                                         )
                                    return number,
                                  member function ODCIAggregateIterate(
                                                                       self  in out clobagg_type,
                                                                       value in     clob
                                                                      )
                                    return number,
                                  member function ODCIAggregateTerminate(
                                                                         self        in     clobagg_type,
                                                                         returnvalue    out clob,
                                                                         flags       in     number
                                                                        )
                                    return number,
                                  member function ODCIAggregateMerge(
                                                                     self in out clobagg_type,
                                                                     ctx2 in     clobagg_type
                                                                    )
                                    return number
                                 );
    /
    create or replace
      type body clobagg_type
        is
          static function ODCIAggregateInitialize(
                                                  sctx in out clobagg_type
                                                 )
            return number
            is
            begin
                sctx := clobagg_type(null) ;
                return ODCIConst.Success ;
          end;
          member function ODCIAggregateIterate(
                                               self  in out clobagg_type,
                                               value in     clob
                                              )
            return number
            is
            begin
                self.text := self.text || value ;
                return ODCIConst.Success;
          end;
          member function ODCIAggregateTerminate(
                                                 self        in     clobagg_type,
                                                 returnvalue    out clob,
                                                 flags       in     number
                                                )
            return number
            is
            begin
                returnValue := self.text;
                return ODCIConst.Success;
            end;
          member function ODCIAggregateMerge(
                                             self in out clobagg_type ,
                                             ctx2 in     clobagg_type
                                            )
            return number
            is
            begin
                self.text := self.text || ctx2.text;
                return ODCIConst.Success;
            end;
    end;
    /
    create or replace
      function clobagg(
                       input clob
                      )
        return clob
        deterministic
        parallel_enable
        aggregate using clobagg_type;
    / 
    
    SQL> select trim(',' from clobagg(ename||',')) as enames from emp;
    
    ENAMES
    -----------------------------------------------------------------------------------
    SMITH,ALLEN,WARD,JONES,MARTIN,BLAKE,CLARK,SCOTT,KING,TURNER,ADAMS,JAMES,FORD,MILLER
    
    SQL>
    
  • ORA-06512: at "SCOTT. EMP_INCEN', line 6

    Hai, I have this error
    Oracle 8i on xp


    SQL > create or replace procedure emp_incen is
    em_id 2 number 4;
    3 em_date number (10);
    4 start
    em_id 5: = & emp_id;
    6. Select ((sysdate) - round (doj) round) in em_date emp_table;
    7 if em_date > = 1700 can
    8 update emp_table set net_salary = (basic + 500) where emp_id = em_id;
    9 else
    10 update emp_table set net_salary = (basic + 0) where em_id = em_id;
    11 end if;
    12 end;
    13.
    Enter the emp_id value: 1006
    5 old: em_id: = & emp_id;
    5 News: em_id: = 1006;

    Created procedure.

    SQL > exec emp_incen
    BEGIN emp_incen; END;

    *
    ERROR on line 1:
    ORA-01422: exact fetch returns more than number of lines
    ORA-06512: at "SCOTT. EMP_INCEN', line 6
    ORA-06512: at line 1

    Hello

    Your SQL statements rather than on the line:

    CREATE OR REPLACE PROCEDURE emp_incen
    IS
       em_id     NUMBER (4);
       em_date   NUMBER (10);
    BEGIN
       em_id := &emp_id;
    
    /*  SQL with more than 1 row
         SELECT (ROUND (SYSDATE) - ROUND (doj))
         INTO em_date
         FROM emp_table;
    */
       FOR x IN (SELECT (ROUND (SYSDATE) - ROUND (doj)) diff
                   FROM emp_table)
       LOOP
          em_date := x.diff;
       END LOOP;
    
       IF em_date >= 1700
       THEN
          UPDATE emp_table
             SET net_salary = (basic + 500)
           WHERE emp_id = em_id;
       ELSE
          UPDATE emp_table
             SET net_salary = (basic + 0)
           WHERE em_id = em_id;
       END IF;
    END;
    

    Find your SQL logic, I think that a where clause clause is missing

    * 009 *.

Maybe you are looking for