Advertisement

10.15.2001 at 02:19AM PDT, ID: 20193207
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

CLOB problems - Oracle bug?

Asked by hooker in Oracle Database

Tags: , ,

I think this is an Oracle bug, but I just want to check out any other ideas.

I am having problems inserting a value of a certain length into a CLOB column.

I am using bind variables and dynamic SQL to do this because of obvious problems using a straight update statement.

When this problem happened, the limit of the field was 4000 characters. But then this limit seemed to drop the more I experimented with the problem.

The problem is as follows:
If I insert a value < limit, then no problem.
If I insert a value > limit, then there is no error but the value of the field is null.

I will put all the sql below. Apologies if it makes it unreadable.
Basically, in the spool below:
temp3.sql gets the value of the clob column.
temp1.sql inserts a value < limit with no problem
temp2.sql inserts a value > limit, no error, but temp3 shows that the value is null.
temp2.sql is ONE character longer than temp1.sql

Oracle version is 8.1.6.0.0

Can anyone else produce this?

Here's the sql that does it:

SQL> get temp3.sql
  1* select site_credits_html from co_working.bcs where bcs_id = 3538
SQL> /

SITE_CREDITS_HTML                                                              
--------------------------------------------------------------------------------
<p>No other text on the market today can match the success of Halliday, Resnick
and Walker's <b><i>Fundamentals of Physics.</i></b> This text continues to outpe
rform the competition year after year, and the new edition will be no exception.
 Intended for Calculus-based Physics courses, the Sixth Edition of this extraord
inary text is a major redesign of the best-selling Fifth Edition, which still ma
intains many of the elements that led to its enormous success. Jearl Walker adds
 his unique style to this edition with the addition of new problems designed to
capture, and keep, students' attention. Nearly all changes are based on suggesti
ons from instructors and students using the Fifth Edition, from reviewer comment
s, and from research done on the process of learning. The primary goal of this t
ext is to provide students with a solid understanding of fundamental physics con

SITE_CREDITS_HTML                                                              
--------------------------------------------------------------------------------
cepts, and to help them apply this conceptual understanding to quantitative prob
lem solving.</p><br /><table border="1" width="375" cellpadding="5"><tr><th widt
h="50%">VERSION</th><th>ISBN</th><th>CONTENTS</th></tr><tr><td valign="top">Regu
lar Edition</td><td valign="top">0-471-32000-5</td><td valign="top">Chapters 1?3
8</td></tr><tr><td valign="top">Extended Edition</td><td valign="top">0-471-3323
6-4</td><td valign="top">Chapters 1?45; contains seven additional chapters on qu
antum physics and cosmology.</td></tr><tr><td valign="top">Volume 1</td><td vali
gn="top">0-471-33235-6</td><td valign="top">Chapters 1?21; Mechanics/Thermodynam
ics (Cloth)</td></tr><tr><td valign="top">Volume 2</td><td valign="top">0-471-36
037-6</td><td valign="top">Chapters 22?45; E p M and Modern Physics (Cloth)</td>
</tr><tr><td valign="top">Part 1</td><td valign="top">0-471-33234-8</td><td vali

SITE_CREDITS_HTML                                                              
--------------------------------------------------------------------------------
gn="top">Chapters 1?12 (paperback)</td></tr><tr><td valign="top">Part 2</td><td
valign="top">0-471-36041-4</td><td valign="top">Chapters 13?21 (paperback)</td><
/tr><tr><td valign="top">Part 3</td><td valign="top">0-471-36040-6</td><td valig
n="top">Chapters 22?33 (paperback)</td></tr><tr><td valign="top">Part 4</td><td
valign="top">0-471-36039-2</td><td valign="top">Chapters 34?38 (paperback)</td><
/tr><tr><td valign="top">Part 5</td><td valign="top">0-471-36038-4</td><td valig
n="top">Chapters 39?45 (paperback)</td></tr></table><p>No other text on the mark
et today can match the success of Halliday, Resnick and Walker's <b><i>Fundament
als of Physics.</i></b> This text continues to outperform the competition year a
fter year, and the new edition will be no exception. Intended for Calculus-based
 Physics courses, the Sixth Edition of this extraordinary text is a major redesi

SITE_CREDITS_HTML                                                              
--------------------------------------------------------------------------------
gn of the best-selling Fifth Edition, which still maintains many of the elements
 that led to its enormous success. Jearl Walker adds his unique style to this ed
ition with the addition of new problems designed to capture, and keep, students'
 attention. Nearly all changes are based on suggestions from instructors and stu
dents using the Fifth Edition, from reviewer comments, and from research done on
 the process of learning. The primary goal of this text is to provide students w
ith a solid understanding of fundamental physics concepts, and to help them appl
y this conceptual understanding to quantitative problem solving.</p><br /><table
 border="1" width="375" cellpadding="5"><tr><th width="50%">VERSION</th><th>ISBN
</th><th>CONTENTS</th></tr><tr><td valign="top">Regular Edition</td><td valign="
top">0-471-32000-5</td><td valign="top">Chapters 1?38</td></tr><tr><td valign="t

SITE_CREDITS_HTML                                                              
--------------------------------------------------------------------------------
op">Extended Edition</td><td valign="top">0-471-33236-4</td><td valign="top">Cha
pters 1?45; contains seven additional chapters on quantum physics and cosmology.
</td></tr><tr><td valign="top">Volume 1</td><td valign="top">0-471-33235-6</td><
td valign="top">Chapters 1?21; Mechanics/Thermodynamics (Cloth)</td></tr><tr><td
 valign="top">Volume 2</td><td valign="top">0-471-36037-6</td><td valign="top">C
hapters 22?45; E p M and Modern Physics (Cloth)</td></tr><tr><td valign="top1234
                                                                               

SQL>
SQL>
SQL> get temp1.sql
  1              DECLARE
  2                    v_update_cursor      INTEGER;
  3                    v_update_stmt        VARCHAR2(500);
  4                    v_dummy              INTEGER;
  5              BEGIN
  6                    v_update_cursor := DBMS_SQL.OPEN_CURSOR;
  7                    v_update_stmt   :=
  8                          'UPDATE co_working.bcs '||
  9                          'SET    site_credits_html  = :site_credits_html '||
 10                          'WHERE  bcs_id             = 3538';
 11                    DBMS_SQL.PARSE(v_update_cursor, v_update_stmt, DBMS_SQL.NATIVE);
 12                    DBMS_SQL.BIND_VARIABLE(v_update_cursor, ':site_credits_html', '<p>No other text on the market today can match the success of Halliday, Resnick and Walker''s <b><i>Fundamentals of Physics.</i></b> This text continues to outperform the competition year after year, and the new edition will be no exception. Intended for Calculus-based Physics courses, the Sixth Edition of this extraordinary text is a major redesign of the best-selling Fifth Edition, which still maintains many of the elements that led to its enormous success. Jearl Walker adds his unique style to this edition with the addition of new problems designed to capture, and keep, students'' attention. Nearly all changes are based on suggestions from instructors and students using the Fifth Edition, from reviewer comments, and from research done on the process of learning. The primary goal of this text is to provide students with a solid understanding of fundamental physics concepts, and to help them apply this conceptual understanding to quantitative problem solving.</p><br /><table border="1" width="375" cellpadding="5"><tr><th width="50%">VERSION</th><th>ISBN</th><th>CONTENTS</th></tr><tr><td valign="top">Regular Edition</td><td valign="top">0-471-32000-5</td><td valign="top">Chapters 1?38</td></tr><tr><td valign="top">Extended Edition</td><td valign="top">0-471-33236-4</td><td valign="top">Chapters 1?45; contains seven additional chapters on quantum physics and cosmology.</td></tr><tr><td valign="top">Volume 1</td><td valign="top">0-471-33235-6</td><td valign="top">Chapters 1?21; Mechanics/Thermodynamics (Cloth)</td></tr><tr><td valign="top">Volume 2</td><td valign="top">0-471-36037-6</td><td valign="top">Chapters 22?45; E p M and Modern Physics (Cloth)</td></tr><tr><td valign="top">Part 1</td><td valign="top">0-471-33234-8</td><td valign="top">Chapters 1?12 (paperback)</td></tr><tr><td valign="top">Part 2</td><td valign="top">0-471-36041-4</td><td valign="top">Chapters 13?21 (paperback)</td></tr><tr><td valign="top">Part 3</td><td valign="top">0-471-36040-6</td><td valign="top">Chapters 22?33 (paperback)</td></tr><tr><td valign="top">Part 4</td><td valign="top">0-471-36039-2</td><td valign="top">Chapters 34?38 (paperback)</td></tr><tr><td valign="top">Part 5</td><td valign="top">0-471-36038-4</td><td valign="top">Chapters 39?45 (paperback)</td></tr></table>'||
 13  '<p>No other text on the market today can match the success of Halliday, Resnick and Walker''s <b><i>Fundamentals of Physics.</i></b> This text continues to outperform the competition year after year, and the new edition will be no exception. Intended for Calculus-based Physics courses, the Sixth Edition of this extraordinary text is a major redesign of the best-selling Fifth Edition, which still maintains many of the elements that led to its enormous success. Jearl Walker adds his unique style to this edition with the addition of new problems designed to capture, and keep, students'' attention. Nearly all changes are based on suggestions from instructors and students using the Fifth Edition, from reviewer comments, and from research done on the process of learning. The primary goal of this text is to provide students with a solid understanding of fundamental physics concepts, and to help them apply this conceptual understanding to quantitative problem solving.</p><br /><table border="1" width="375" cellpadding="5"><tr><th width="50%">VERSION</th><th>ISBN</th><th>CONTENTS</th></tr><tr><td valign="top">Regular Edition</td><td valign="top">0-471-32000-5</td><td valign="top">Chapters 1?38</td></tr><tr><td valign="top">Extended Edition</td><td valign="top">0-471-33236-4</td><td valign="top">Chapters 1?45; contains seven additional chapters on quantum physics and cosmology.</td></tr><tr><td valign="top">Volume 1</td><td valign="top">0-471-33235-6</td><td valign="top">Chapters 1?21; Mechanics/Thermodynamics (Cloth)</td></tr><tr><td valign="top">Volume 2</td><td valign="top">0-471-36037-6</td><td valign="top">Chapters 22?45; E p M and Modern Physics (Cloth)</td></tr><tr><td valign="top1234');
 14                    v_dummy := DBMS_SQL.EXECUTE(v_update_cursor);
 15                    DBMS_SQL.CLOSE_CURSOR(v_update_cursor);
 16              EXCEPTION
 17                    WHEN others THEN DBMS_SQL.CLOSE_CURSOR(v_update_cursor); ROLLBACK; RAISE;
 18*             END;
SQL> /

PL/SQL procedure successfully completed.

SQL>
SQL>
SQL> get temp3.sql
  1* select site_credits_html from co_working.bcs where bcs_id = 3538
SQL> /

SITE_CREDITS_HTML                                                              
--------------------------------------------------------------------------------
<p>No other text on the market today can match the success of Halliday, Resnick
and Walker's <b><i>Fundamentals of Physics.</i></b> This text continues to outpe
rform the competition year after year, and the new edition will be no exception.
 Intended for Calculus-based Physics courses, the Sixth Edition of this extraord
inary text is a major redesign of the best-selling Fifth Edition, which still ma
intains many of the elements that led to its enormous success. Jearl Walker adds
 his unique style to this edition with the addition of new problems designed to
capture, and keep, students' attention. Nearly all changes are based on suggesti
ons from instructors and students using the Fifth Edition, from reviewer comment
s, and from research done on the process of learning. The primary goal of this t
ext is to provide students with a solid understanding of fundamental physics con

SITE_CREDITS_HTML                                                              
--------------------------------------------------------------------------------
cepts, and to help them apply this conceptual understanding to quantitative prob
lem solving.</p><br /><table border="1" width="375" cellpadding="5"><tr><th widt
h="50%">VERSION</th><th>ISBN</th><th>CONTENTS</th></tr><tr><td valign="top">Regu
lar Edition</td><td valign="top">0-471-32000-5</td><td valign="top">Chapters 1?3
8</td></tr><tr><td valign="top">Extended Edition</td><td valign="top">0-471-3323
6-4</td><td valign="top">Chapters 1?45; contains seven additional chapters on qu
antum physics and cosmology.</td></tr><tr><td valign="top">Volume 1</td><td vali
gn="top">0-471-33235-6</td><td valign="top">Chapters 1?21; Mechanics/Thermodynam
ics (Cloth)</td></tr><tr><td valign="top">Volume 2</td><td valign="top">0-471-36
037-6</td><td valign="top">Chapters 22?45; E p M and Modern Physics (Cloth)</td>
</tr><tr><td valign="top">Part 1</td><td valign="top">0-471-33234-8</td><td vali

SITE_CREDITS_HTML                                                              
--------------------------------------------------------------------------------
gn="top">Chapters 1?12 (paperback)</td></tr><tr><td valign="top">Part 2</td><td
valign="top">0-471-36041-4</td><td valign="top">Chapters 13?21 (paperback)</td><
/tr><tr><td valign="top">Part 3</td><td valign="top">0-471-36040-6</td><td valig
n="top">Chapters 22?33 (paperback)</td></tr><tr><td valign="top">Part 4</td><td
valign="top">0-471-36039-2</td><td valign="top">Chapters 34?38 (paperback)</td><
/tr><tr><td valign="top">Part 5</td><td valign="top">0-471-36038-4</td><td valig
n="top">Chapters 39?45 (paperback)</td></tr></table><p>No other text on the mark
et today can match the success of Halliday, Resnick and Walker's <b><i>Fundament
als of Physics.</i></b> This text continues to outperform the competition year a
fter year, and the new edition will be no exception. Intended for Calculus-based
 Physics courses, the Sixth Edition of this extraordinary text is a major redesi

SITE_CREDITS_HTML                                                              
--------------------------------------------------------------------------------
gn of the best-selling Fifth Edition, which still maintains many of the elements
 that led to its enormous success. Jearl Walker adds his unique style to this ed
ition with the addition of new problems designed to capture, and keep, students'
 attention. Nearly all changes are based on suggestions from instructors and stu
dents using the Fifth Edition, from reviewer comments, and from research done on
 the process of learning. The primary goal of this text is to provide students w
ith a solid understanding of fundamental physics concepts, and to help them appl
y this conceptual understanding to quantitative problem solving.</p><br /><table
 border="1" width="375" cellpadding="5"><tr><th width="50%">VERSION</th><th>ISBN
</th><th>CONTENTS</th></tr><tr><td valign="top">Regular Edition</td><td valign="
top">0-471-32000-5</td><td valign="top">Chapters 1?38</td></tr><tr><td valign="t

SITE_CREDITS_HTML                                                              
--------------------------------------------------------------------------------
op">Extended Edition</td><td valign="top">0-471-33236-4</td><td valign="top">Cha
pters 1?45; contains seven additional chapters on quantum physics and cosmology.
</td></tr><tr><td valign="top">Volume 1</td><td valign="top">0-471-33235-6</td><
td valign="top">Chapters 1?21; Mechanics/Thermodynamics (Cloth)</td></tr><tr><td
 valign="top">Volume 2</td><td valign="top">0-471-36037-6</td><td valign="top">C
hapters 22?45; E p M and Modern Physics (Cloth)</td></tr><tr><td valign="top1234
                                                                               

SQL>
SQL>
SQL>
SQL>
SQL> get temp2.sql
  1              DECLARE
  2                    v_update_cursor      INTEGER;
  3                    v_update_stmt        VARCHAR2(500);
  4                    v_dummy              INTEGER;
  5              BEGIN
  6                    v_update_cursor := DBMS_SQL.OPEN_CURSOR;
  7                    v_update_stmt   :=
  8                          'UPDATE co_working.bcs '||
  9                          'SET    site_credits_html  = :site_credits_html '||
 10                          'WHERE  bcs_id             = 3538';
 11                    DBMS_SQL.PARSE(v_update_cursor, v_update_stmt, DBMS_SQL.NATIVE);
 12                    DBMS_SQL.BIND_VARIABLE(v_update_cursor, ':site_credits_html', '<p>No other text on the market today can match the success of Halliday, Resnick and Walker''s <b><i>Fundamentals of Physics.</i></b> This text continues to outperform the competition year after year, and the new edition will be no exception. Intended for Calculus-based Physics courses, the Sixth Edition of this extraordinary text is a major redesign of the best-selling Fifth Edition, which still maintains many of the elements that led to its enormous success. Jearl Walker adds his unique style to this edition with the addition of new problems designed to capture, and keep, students'' attention. Nearly all changes are based on suggestions from instructors and students using the Fifth Edition, from reviewer comments, and from research done on the process of learning. The primary goal of this text is to provide students with a solid understanding of fundamental physics concepts, and to help them apply this conceptual understanding to quantitative problem solving.</p><br /><table border="1" width="375" cellpadding="5"><tr><th width="50%">VERSION</th><th>ISBN</th><th>CONTENTS</th></tr><tr><td valign="top">Regular Edition</td><td valign="top">0-471-32000-5</td><td valign="top">Chapters 1?38</td></tr><tr><td valign="top">Extended Edition</td><td valign="top">0-471-33236-4</td><td valign="top">Chapters 1?45; contains seven additional chapters on quantum physics and cosmology.</td></tr><tr><td valign="top">Volume 1</td><td valign="top">0-471-33235-6</td><td valign="top">Chapters 1?21; Mechanics/Thermodynamics (Cloth)</td></tr><tr><td valign="top">Volume 2</td><td valign="top">0-471-36037-6</td><td valign="top">Chapters 22?45; E p M and Modern Physics (Cloth)</td></tr><tr><td valign="top">Part 1</td><td valign="top">0-471-33234-8</td><td valign="top">Chapters 1?12 (paperback)</td></tr><tr><td valign="top">Part 2</td><td valign="top">0-471-36041-4</td><td valign="top">Chapters 13?21 (paperback)</td></tr><tr><td valign="top">Part 3</td><td valign="top">0-471-36040-6</td><td valign="top">Chapters 22?33 (paperback)</td></tr><tr><td valign="top">Part 4</td><td valign="top">0-471-36039-2</td><td valign="top">Chapters 34?38 (paperback)</td></tr><tr><td valign="top">Part 5</td><td valign="top">0-471-36038-4</td><td valign="top">Chapters 39?45 (paperback)</td></tr></table>'||
 13  '<p>No other text on the market today can match the success of Halliday, Resnick and Walker''s <b><i>Fundamentals of Physics.</i></b> This text continues to outperform the competition year after year, and the new edition will be no exception. Intended for Calculus-based Physics courses, the Sixth Edition of this extraordinary text is a major redesign of the best-selling Fifth Edition, which still maintains many of the elements that led to its enormous success. Jearl Walker adds his unique style to this edition with the addition of new problems designed to capture, and keep, students'' attention. Nearly all changes are based on suggestions from instructors and students using the Fifth Edition, from reviewer comments, and from research done on the process of learning. The primary goal of this text is to provide students with a solid understanding of fundamental physics concepts, and to help them apply this conceptual understanding to quantitative problem solving.</p><br /><table border="1" width="375" cellpadding="5"><tr><th width="50%">VERSION</th><th>ISBN</th><th>CONTENTS</th></tr><tr><td valign="top">Regular Edition</td><td valign="top">0-471-32000-5</td><td valign="top">Chapters 1?38</td></tr><tr><td valign="top">Extended Edition</td><td valign="top">0-471-33236-4</td><td valign="top">Chapters 1?45; contains seven additional chapters on quantum physics and cosmology.</td></tr><tr><td valign="top">Volume 1</td><td valign="top">0-471-33235-6</td><td valign="top">Chapters 1?21; Mechanics/Thermodynamics (Cloth)</td></tr><tr><td valign="top">Volume 2</td><td valign="top">0-471-36037-6</td><td valign="top">Chapters 22?45; E p M and Modern Physics (Cloth)</td></tr><tr><td valign="top12345');
 14                    v_dummy := DBMS_SQL.EXECUTE(v_update_cursor);
 15                    DBMS_SQL.CLOSE_CURSOR(v_update_cursor);
 16              EXCEPTION
 17                    WHEN others THEN DBMS_SQL.CLOSE_CURSOR(v_update_cursor); ROLLBACK; RAISE;
 18*             END;
SQL> /

PL/SQL procedure successfully completed.

SQL>
SQL>
SQL> get temp3.sql
  1* select site_credits_html from co_working.bcs where bcs_id = 3538
SQL> /

SITE_CREDITS_HTML                                                              
--------------------------------------------------------------------------------
                                                                               

SQL> spool off



Start Free Trial
[+][-]10.15.2001 at 03:18AM PDT, ID: 6540439

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.15.2001 at 03:32AM PDT, ID: 6540457

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.15.2001 at 04:22AM PDT, ID: 6540502

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Oracle Database
Tags: clob, oracle, problem
Sign Up Now!
Solution Provided By: Bigfam5
Participating Experts: 2
Solution Grade: A
 
 
[+][-]10.15.2001 at 05:16AM PDT, ID: 6540574

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32