Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6746293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:18:19+00:00 2026-05-26T12:18:19+00:00

I am using Oracle PL/SQL on Oracle Database 10g I use SYS.DBS_JOB to set

  • 0

I am using Oracle PL/SQL on Oracle Database 10g

I use SYS.DBS_JOB to set a job to send an email. [I cannot simply send the email directly because I am sending quite a few emails and sending them too fast overloads the mail server. Therefore I run a loop to send one email each minute]

DBMS_JOB.submit
                    (l_job,
                        'begin HTML_EMAIL (''noreply@mywebsite.com'','''
                     || myrecord.email
                     || ''','''
                     || mytitle
                     || ''','''
                     || ' '
                     || ''','''
                     || mymessage
                     || ''');end;',
                     schedule_date
                    );

The text for the job is quite long (2886 characters) and the job fails with the message “ORA-01461 can bind a LONG value only for insert into a LONG column”

Now I am pretty sure that the reason that the job fails is because the text is too long. However I would have thought that the error message would have been “String can not fit into column”

Assuming I am right that my string is too long, what is the maximum length, and also how can I get round this problem…

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T12:18:20+00:00Added an answer on May 26, 2026 at 12:18 pm

    PL/SQL is limited in what you can do directly with LONG fields, and it sounds like your mymessage field is a long. In 10g, you’re better off using CLOB fields for something like this, which can be directly manipulated much more easily.

    To start with, try wrapping any LONG fields in this call with the TO_LOB() function and see if that works. Alternately, it may be that your message is overflowing the varchar2 that DBMS_JOB.SUBMIT expects; Oracle may then be treating your string as a LONG. In this case, you’ll have to rewrite your HTML_EMAIL function so that it retrieves the message content from a temporary table rather than a parameter.

    There’s some nice info on working with LONG fields here:

    http://www.oracle-developer.net/display.php?id=430

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to access a large Oracle database through SQL Server using OPENROWSET in
How do you use enums in Oracle using SQL only? (No PSQL) In MySQL
I found out that Oracle Database 10g and 11g treat the following PL/SQL block
I'm trying to link SQL Server 2005 to an Oracle 10g database. I've installed
I am using Fluent NHibernate on a project that has an Oracle 10g database.
I am taking a SQL database class using Oracle. There's an assignment: Find the
I have the following sql being run on an Oracle 10g database: select /*+
I'm using SQL*Plus 9.2 on Oracle 10g enterprise. I have created some scripts that
I am querying an Oracle 10g database using OleDb. My query is very simple,
I've been trying to connect to an Apache Derby/JavaDB embedded database using Oracle SQL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.