Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

CLOB variable in PL/SQL

raj.mrsrMar 12 2018 — edited Mar 13 2018

i am declaring CLOB datatype, even though it is taken internally varchar(32767).

once it is exceed(32767) it is getting error.but variable is CLOB.

can u please suggest me how to over come this error.

create table abcd(abcd clob);

DECLARE

K CLOB;

BEGIN

DELETE FROM ABCD;

COMMIT;

  FOR I IN 1..17

  LOOP

K:= K||'A cursor FOR loop implicitly declares its loop index as aasdfdafasdfasdfsadfhes rows of values from the result set into fields in th            A cursor FOR loop implicitly declares its loop index as aasdfdafasdfasdfsadfhes rows of values from the result set into fields in th

A cursor FOR loop implicitly declares its loop index as aasdfdafasdfasdfsadfhes rows of values from the result set into fields in th            A cursor FOR loop implicitly declares its loop index as aasdfdafasdfasdfsadfhes rows of values from the result set into fields in th

A cursor FOR loop implicitly declares its loop index as aasdfdafasdfasdfsadfhes rows of values from the result set into fields in th            A cursor FOR loop implicitly declares its loop index as aasdfdafasdfasdfsadfhes rows of values from the result set into fields in th

A cursor FOR loop implicitly declares its loop index as aasdfdafasdfasdfsadfhes rows of values from the result set into fields in th            A cursor FOR loop implicitly declares its loop index as aasdfdafasdfasdfsadfhes rows of values from the result set into fields in th

A cursor FOR loop implicitly declares its loop index as aasdfdafasdfasdfsadfhes rows of values from the result set into fields in th            A cursor FOR loop implicitly declares its loop index as aasdfdafasdfasdfsadfhes rows of values from the result set into fields in th

A cursor FOR loop implicitly declares its loop index as aasdfdafasdfasdfsadfhes rows of values from the result set into fields in th            A cursor FOR loop implicitly declares its loop index as aasdfdafasdfasdfsadfhes rows of values from the result set into fields in th

A cursor FOR loop implicitly declares its loop index as aasdfdafasdfasdfsadfhes rows of values from the result set into fields in th            A cursor FOR loop implicitly declares its loop index as aasdfdafasdfasdfsadfhes rows of values from the result set into fields in th

A cursor FOR loop implicitly declares its loop index as aasdfdafasdfasdfsadfhes rows of values from the result set into fields in th            A cursor FOR loop implicitly declares its loop index as aasdfdafasdfasdfsadfhes rows of values from the result set into fields in th'||I;

END LOOP;

INSERT INTO ABCD VALUES(k);

dbms_output.put_line(length(k));

COMMIT;

END;

/

This post has been answered by Anton Scheffer on Mar 12 2018
Jump to Answer

Comments

539769
Start the EM with command prompt and post the error if any. The error you are getting is OS error. Do the following:
C:/>set ORACLE_SID=<your sid>
C:/>emctl start dbconsole

Regards.
707037
Bro i had the same problem with my 10G DB i just recreated my console

D:\>emca -config dbcontrol db -repos recreate
632301
THANKS SIR
But same problem occures i have to recreate the em repository again and again.Same problem occurs on iSQL*Plus service.On client side some system have the OS is XP and Vista and on client side em and isqlplus service occurs more.On server when i recreate repository and login as sys username and password and sysdba then null pointer exception occurs.
Thanks
632301
Hello Sir
Now i am facing this -> java.lang.Exception: Exception in sending Request :: null
539769
Look at the log files which were generated at $ORACLE_HOME/hostnam_SID/logs

Regards
632301
Not Satisfactory
1 - 6
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Apr 10 2018
Added on Mar 12 2018
19 comments
15,486 views