Email parameter for message part in oracle 10g

hi..
i m sending email using oracle 10g form , using desname , desformat , subject ,from
it working successfully now i hv to add message body in that email like
Dear Sir,
Please find attachment.
Thanks & Regards
ABC
there is destype ,desname ,desformat ,subject ,from in built parameter to set subject , from , to , format to send email , but i want to write message part is there any parameter in oracle 10g ??
Thanks..

Is your problem that you do not know how to send an email from Oracle 10g? If so then you use the UTL_MAIL package.
Here's an example of calling it as part of a scheduler chain, not strictly what you're asking for but this lets you define success and failure steps and call each one based on the status of previous steps.
BEGIN
DBMS_SCHEDULER.CREATE_PROGRAM (
   program_name           =>'prg_Export_Success',
   program_type           =>'PLSQL_BLOCK',
   program_action         =>q'[BEGIN
                                UTL_MAIL.SEND (
                                   sender      => 'who_its_from',
                                   recipients  => '[email protected]',
                                   subject     => 'subject line',
                                   message     => 'the message',
                                   mime_type   => 'text/plain; charset=us-ascii');
                                END;]',
   number_of_arguments      => 0,
   enabled                  => TRUE,
   comments                 => 'Email success');
end;
BEGIN
DBMS_SCHEDULER.DEFINE_CHAIN_STEP (
   chain_name      =>  'Export',
   step_name       =>  'stp_EXPORT_SUCCESS',
   program_name    =>  'PRG_EXPORT_SUCCESS');
END;
/... then define appropriate rules.

Similar Messages

  • Oracle Database Migration Verifier - Is it part of Oracle 10g Client or Ser

    Hello,
    I have some restrictions on downloading the tool from Oralce Website.
    Can I know if this is part of Oracle 10g Suite ,either Client or Server.
    Please let me know this useful information.
    Regards,
    Ramanathan.K

    Its not available any more. We are rebuilding this as part of SQL Developer and in the meantime we have withdrawn access to this.
    Thanks
    Barry

  • We had a Ipad 1st generation IOS5.  Added second email address for Messaging.  Tested and message came from 1st email address.  How do you get the second address to be the sender?

    Have a 1st generation Ipad IOS5 and added a second email address for messaging.  Tested sending a message to my Iphone and it was received as being sent by the first email address.  How do you select the second email address as the sender of a message?

    Hello slapshot13scotty,
    The information below details where to adjust both where messages are sent from and received.
    Receive iMessages using another email address:
    Go to Settings > Messages > Receive At > Add Another Email.
    Specify the phone number or Apple ID email address that appears in the “from” field when you start a new conversation:
    Go to Settings > Messages > Receive At > Caller ID.
    Existing conversations aren’t affected when you change this setting.
    iPhone User Guide
    http://manuals.info.apple.com/MANUALS/1000/MA1622/en_US/iphone_ios5_user_guide.p df
    Cheers,
    Allen

  • Is Oracle AS part of Oracle 10g installation?

    I had a query that is Oracle application server a part of Oracle 10g installation? I get this doubt because isqlplus which runs on port 5560 by default has a web interface.
    I hope, my question is clear.
    Please revert with the reply to my query.
    Regards

    972145 wrote:
    I had a query that is Oracle application server a part of Oracle 10g installation? I get this doubt because isqlplus which runs on port 5560 by default has a web interface.
    I hope, my question is clear.
    Please revert with the reply to my query.
    Regardsno Oracle Application Server is NOT included with DB installation

  • Repeated ORA-12547 Messages after installing Oracle 10g

    Hi,
    I installed Oracle 10g on a Redhat ES 3 box, and the install went okay, but when I try and interact with the server I get the message:
    ORA-12547: TNS: lost contact
    For example, if I use the Database Configuration Assistant to attempt to create a database, I will see the above message when it begins the database creation process, or if I try to interact with the Oracle server using sqlplus I will see the above message after each command entered.
    I had recently tried to install Oracle 8.1.7 on the same box, but abandoned that after deciding that the effort required to link Oracle 8 on RHES3 just wasn't worth it. I have been told that this previous partial installation may be the cause of the problem, and have been advised to uninstall Oracle 8, uninstall Oracle 10g, and reinstall Oracle 10g. I find it hard to believe that it would require such an action to solve this problem. Is there any configuration changes I can make to resolve it? Also, what does this message actually mean?
    I am new to Oracle, so thanks for any help with this problem.
    Colm.

    My last message asking for a grater degree of specificity was not overly specific, hence I am posting the kernel parms that I have set with the hopes that you will spot one that I set improperly or one that I neglected to set.
    [root@awyr ~]# cat /proc/sys/kernel/shmmax
    2147483648
    [root@awyr ~]# cat /proc/sys/kernel/shmmni
    4096
    [root@awyr ~]# cat /proc/sys/kernel/shmall
    2097152
    [root@awyr ~]# ipcs -lm |grep "min seg size"
    min seg size (bytes) = 1
    [root@awyr ~]# cat /proc/sys/kernel/sem | awk '{print $1}'
    250
    [root@awyr ~]# cat /proc/sys/kernel/sem | awk '{print $2}'
    32000
    [root@awyr ~]# cat /proc/sys/kernel/sem | awk '{print $3}'
    100
    [root@awyr ~]# cat /proc/sys/kernel/sem | awk '{print $4}'
    128
    [root@awyr ~]# cat /proc/sys/fs/file-max
    65536
    [root@awyr ~]# cat /proc/sys/net/ipv4/ip_local_port_range
    1024 65000
    [oracle@awyr Desktop]$ ulimit -n
    63536
    [oracle@awyr Desktop]$ ulimit -u
    4091
    [oracle@awyr Desktop]$ ulimit -a
    core file size (blocks, -c) 0
    data seg size (kbytes, -d) unlimited
    file size (blocks, -f) unlimited
    max locked memory (kbytes, -l) 32
    max memory size (kbytes, -m) unlimited
    open files (-n) 63536
    pipe size (512 bytes, -p) 8
    stack size (kbytes, -s) 8192
    cpu time (seconds, -t) unlimited
    max user processes (-u) 4091
    virtual memory (kbytes, -v) unlimited
    from sysctl -a
    my fs.file-max = 65536
    in my limits.conf I added:
    oracle soft nofile 4096
    oracle hard nofile 63536
    in my (1) /etc/pam.d/system-auth (2) /etc/pam.d/sshd (3) /etc/pam.d/su (4) /etc/pam.d/login
    files I added:
    session required pam_limits.so
    and verified that it exists
    in my limits.conf I added
    oracle soft nproc 2047
    oracle hard nproc 16384
    my /etc/oratab has:
    orcl:/usr/local/oracle/app/oracle/oracle/product/10.2.0/db_1:N
    I tried to change the N at the end to a Y but to no avail
    my /etc/oraInst.loc has:
    inventory_loc=/usr/local/oracle/app/oracle/oraInventory
    inst_group=oinstall
    Thanks again for your atention
    Richard

  • Error message when installing Oracle 10g on Windows XP Professional

    Hello,
    I need help installing oracle 10g database. When I attempt to run the installation from the setup.exe icon, I get a message that says
    "Error in writing to directory C:\Documents and Settings\Owner\Local Settings\Temp\OraInstall2007-04-29_01-19-29PM. Please ensure this directory is writable and has atleast 45Mb of disk space. Installation cannot continue."
    When I try to open the installation from the Autorun icon, it points to an innability to find setup.exe and when I go back to Setup.exe, it gives me the above error. Everytime I try to run the installation and it fails, the installation leaves a folder in my Temp folder with the above format. Any help would be appreciated. Thank you.

    I do have administrative privilege on my computer and I have plenty of space. I have 80gb of free space. What do I do to successfully install the software without incurring those messages I displayed in my first thread?

  • Appropriate size for Autoextending datafile in oracle 10g

    Hi,
    I am using Oracle 10g 10.2.0.3.0 on linux 64 bit with 16GB RAM, one thing i want to find out that i have my schema datafile, which set on autoextend, i have set next size to 100mb, if the file reaches to its full does it make us wait for long to create a place of 100mb or should i reduce the size from 100mb to 10mb.
    What should be the appropriate Next size in Autoextend for oracle database in my case, if there is a performance problem like login delay in schema due to increasing in size of datafile then how do i find out because i do not have database diagnostic tools.
    Because today there was a delay in login to the schema and EM was showing wait, but i could not find out that why the wait was there, when i check the datafile size it was 1203 MB , i thought it may be due to the extension of data file but how do i confirm this thing.
    In the table DBA_ADVISOR_FINDINGS it is giving following problem
    Problem PL/SQL execution consumed significant database time.
    Symptom Wait class "Network" was consuming significant database time.
    Problem Wait event "TCP Socket (KGAS)" in wait class "Network" was consuming significant database time.

    Slow connect is not related with datafile extension.
    Regarding Wait event "TCP Socket (KGAS)"
    Please read Metalink note 416451.1
    How fast is tnsping to database, ping to database server?

  • Required setting for Locale values for Arabic db in oracle 10g

    I want to create a new db in Oracle 10g for storing the arabic data.
    My client machine is Arabic Windows XP.
    What are the steps that i will need to follow to make the db arabic supported.
    What streps will be required if i choose to make it unicode supported?
    Setting the following:-
    1. Set Database Character Set to AL32UTF8 for the Oracle Server.
    2. Set the NLS_LANG to ARABIC_LIBYA.UTF8 (on Arabic Windows xp)
    Will do the work?

    The database character set should be AL32UTF8 for Unicode support. This is a recommended setting.
    As far as NLS_LANG is concerned, this strongly depends on how your client application is written (what technology, which Oracle access API). For example, for SQL*Plus, the NLS_LANG must be set to AR8MSWIN1256, as SQL*Plus does not support Unicode on Windows, only the ANSI code page. For SQL Developer, the NLS_LANG does not matter at all.
    -- Sergiusz

  • Problem while inserting data for some datatypes in Oracle 10g

    Hi
    I was trying to insert data in database for all the data types defined in Oracle 10g.
    I was successful in maximum cases.
    I was not able to insert data for following datatypes:
    1 Long varraw
    2 string
    3 varraw
    4 varnum
    5 charz
    6 unsigned int
    7 native double
    8 native float
    Please put some light on it.
    Thanks,
    Gyanendra

    Hi Subin,
    You can try couple of things.
    If your data is less than 32767, you can pass it to stored procedure and change it to clob type like
    PROCEDURE CLOBQUERY
         Param     IN     CLOB,
    and you can call Procedure
    EXECUTE CLOBQUERY '[Param.1]'
    If your data is around than 1000000(32767*32), you can break the data in length of 32767 and pass it to param 1 to 32 like
    EXECUTE CLOBQUERY '[Param.1][Param.2][Param.3]..[Param.32]'
    Finally you can try to update jdbc drive.
    check the link Link: [JDBC Limitation|http://confluence.atlassian.com/display/JIRA/UsingOracle10gdriverstosolvethe4000character+limitation]

  • Transform columns in row for a table in Oracle 10g

    Hi,
    I am using Oracle 10g.
    There is a table (example) EMPLOYEE, with following structure
    IDUSER YEAR1 YEAR2 YEAR3
    12345 value1 value2 value3
    99999 value7 value6 value5
    and I need display :
    IDUSER YEAR
    12345 value1
    12345 value2
    12345 value3
    99999 value7
    99999 value6
    99999 value5
    How can I do this with without unpivot?
    Thanks

    Hi,
    Welcome to the forum!
    One way to unpivot in any version of Orace is to cross-join your table with another table (or resut set, in ths case) that has as many rows as you need toroduce from each row of your original table.
    Here's an example:
    WITH     cntr     AS
         SELECT     LEVEL     AS n
         FROM     dual
         CONNECT BY     LEVEL <= 3
    SELECT     e.iduser
    ,     CASE  c.n
             WHEN  1  THEN  year1
             WHEN  2  THEN  year2
             WHEN  3  THEN  year3
         END     AS uear
    FROM         cntr      c
    CROSS JOIN  employee  e
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
    See the forum FAQ {message:id=9360002}
    Edited by: Frank Kulash on Apr 11, 2013 6:47 AM

  • Best provider to user for asp classic to oracle 10g?

    can someone recommend the best data provider to use with an asp classic application and oracle 10g? something where there is good documentation?
    thanks in advance.

    Hi,
    I'd go with the Oracle provider for OLEDB.
    http://www.oracle.com/technology/tech/windows/ole_db/index.html
    cheers,
    Greg

  • Is Oracle Client 10 part of Oracle 10g Developer Suite install?

    Hello,
    I am currently using Oracle Client 9i for Business Objects. I suppose once I move to Oracle 10g Developer Suite, I'll need to move this to Oracle 10g Client. Is this a separate install from the developer suite?
    Thanks.

    A Developer install should be including it's own Oracle Client -- ie Oracle_Home. That is how I've seen it in older versions -- haven't done Developer installs for quite a few years now !
    See http://download.oracle.com/docs/cd/B25016_08//doc/dl/core/B16012_04/chap2.htm#i1018939 and http://download.oracle.com/docs/cd/B25016_08//doc/dl/core/B16012_04/chap3.htm .
    The 10g Developer install is expected to be seperate from existing ORACLE_HOMEs

  • Links needed for portal devlopment on oracle 10g appserver using jdeveloper

    hi,
    i'm relatively new to portals so wud like to hav sum knowledge of doing basing request & response stuff using jsp's as my UI while developing portlets using Jdeveloper.
    If anyone could come up with tutorials about portal development on Jdeveloper.
    i'm using oracle 10g AS app server(release 10.1.4) with oracle jdeveloper( version 10.1.2.0.0 build 1811).
    wud like inputs on wsrp & jsr-168 compliant portlets

    Hi,
    You could try starting with the Portal Developers Guide - http://download-west.oracle.com/docs/cd/B14099_19/portal.1014/b14135/toc.htm
    You should also find alot of useful info on the Portal Development page on OTN - http://www.oracle.com/technology/products/ias/portal/portlet_development_10g1014.html
    Cheers,
    Mick.

  • Error while instaling the MEP server for Single tier, using Oracle 10g DB

    createDatabaseTables:
    getAppServer:
    ============================================================
    Sun Java System Mobile Enterprise Platform
    ============================================================
    checkAppServer:
    defaultDomainExists:
    checkDefaultDomain:
    Found "domain1", do you want to delete it? [y/n]
    y
    shouldDeleteDefaultDomain:
    deleteDefaultDomain:
    The domain (domain1) isn't running.
    Domain domain1 deleted.
    setup:
    getDomainProperties:
    Enter the name for the new Application Server domain (default: mep)
    mep
    Enter the Admin Port for the new domain [mep] (default: 4848)
    Enter the HTTP Port for the new domain [mep] (default: 8080)
    Enter the HTTPS Port for the new domain [mep] (default: 8181)
    Enter the admin password for the new domain (default: adminpass)
    remoba123
    installGateway:
    init:
    getDomainProperties:
    createDomain:
    Using port 4848 for Admin.
    Using port 8080 for HTTP Instance.
    Using default port 7676 for JMS.
    Using default port 3700 for IIOP.
    Using default port 8181 for HTTP_SSL.
    Using default port 3820 for IIOP_SSL.
    Using default port 3920 for IIOP_MUTUALAUTH.
    Using default port 8686 for JMX_ADMIN.
    Domain being created with profile:developer, as specified by variable AS_ADMIN_P
    ROFILE in configuration file.
    Security Store uses: JKS
    Domain mep created.
    startDomain:
    Attempting to start domain...
    Waiting for domain to finish initializing
    Waiting for status to be: mep running
    init:
    configureDomain:
    Copying files to installation directory ...
    Copying 53 files to F:\Sun\AppServer\domains\mep\ds
    Copying 101 files to F:\Sun\AppServer\domains\mep\lib
    Copying 1 file to F:\Sun\AppServer\domains\mep\lib
    Copying 1 file to F:\Sun\AppServer\domains\mep\lib
    Copying 1 file to F:\Sun\AppServer\domains\mep\lib
    Copying 1 file to F:\Sun\AppServer\domains\mep\lib\classes\META-INF
    init:
    copyOracleJar:
    Copying 1 file to F:\Sun\AppServer\domains\mep\lib\ext
    Copying 1 file to F:\Sun\AppServer\domains\mep\lib\ext
    server.java-config.classpath-suffix = F:\Sun\AppServer/domains/mep/ds/skin/user/
    messages/i18n;F:\Sun\AppServer/domains/mep/ds/skin/admin/messages/i18n
    Command create-jvm-options executed successfully.
    Command create-jvm-options executed successfully.
    Command create-jvm-options executed successfully.
    Command create-jvm-options executed successfully.
    Command create-jvm-options executed successfully.
    Command create-jvm-options executed successfully.
    Command create-jms-resource executed successfully.
    Command create-jmsdest executed successfully.
    Command create-jms-resource executed successfully.
    configure:
    configureMySQL:
    configureOracle:
    Command create-jdbc-connection-pool executed successfully.
    Command create-jdbc-connection-pool executed successfully.
    server.resources.jdbc-connection-pool.musicdb_jdbc_pool_oracle.match-connections
    = true
    configureRealm:
    Command create-jdbc-resource executed successfully.
    Command create-jdbc-resource executed successfully.
    Command create-auth-realm executed successfully.
    deployEAR:
    stopDomain:
    Domain mep stopped.
    startDomain:
    Attempting to start domain...
    Waiting for domain to finish initializing
    Waiting for status to be: mep running
    Still waiting for status to be: mep running
    Command deploy executed successfully with following warning messages: WARNING:
    JDO76611: Cannot connect to database via JNDI name 'jdbc/gw': java.sql.SQLExcept
    ion: Connection could not be allocated because: ORA-01017: invalid username/pass
    word; logon denied.
    installJCAconnectors:
    stopDomain:
    Domain mep stopped.
    Aug 22, 2008 8:22:55 PM com.sun.jbi.installer.JBICoreInstaller main
    INFO: OpenESB JBI Core Components successfully installed in F:\Sun\AppServer\jbi

    The error suggests that the oracle gwdb database was incorrectly created with the wrong username and password for the database. The installation expects the gwdb database to be created with the username of "gwdbuser" and password of "gwdbpass". I would check the login credentials for this database. Also the installation expects the musicdb database to be created with the username of "musicdbuser" and password "musicdbpass". You may want to check this as well.
    JDO76611: Cannot connect to database via JNDI name 'jdbc/gw': java.sql.SQLExcept
    ion: Connection could not be allocated because: ORA-01017: invalid username/pass
    word; logon denied.
    Alan Frechette
    Sun MEP SQA Engineer

  • How can I get an execution plan for a Function in oracle 10g

    Hi
    I have:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE 10.2.0.4.0 Production
    TNS for Solaris: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    I would like to know if is possible to get an EXECUTION PLAN for a FUNCTION if so, how can I get it ?
    Regards

    You can query the AWR data if your interesting SQL consumes enough resources.
    Here is a SQL*Plus script I call MostCPUIntensiveSQLDuringInterval.sql (nice name eh?)
    You'll need to know the AWR snap_id numbers for the time period of interest, then run it like this to show the top 20 SQLs during the interval:
    @MostCPUIntensiveSQLDuringInterval 20The script outputs a statement to run when you are interested in looking at the plan for an interesting looking statement.
    -- MostCPUintesticeSQLDuringInterval: Report on the top n SQL statements during an AWR snapshot interval.
    -- The top statements are ranked by CPU usage
    col inst_no             format      999 heading 'RAC|Node'
    col sql_id              format a16      heading 'SQL_ID'
    col plan_hash_value     format 999999999999 heading 'Plan|hash_value'
    col parsing_schema_name format a12      heading 'Parsing|Schema'
    col module              format a10      heading 'Module'
    col pct_of_total   format        999.99 heading '% Total'
    col cpu_time       format   999,999,999 heading 'CPU     |Time (ms)'
    col elapsed_time   format   999,999,999 heading 'Elapsed |Time (ms)'
    col lios           format 9,999,999,999 heading 'Logical|Reads'
    col pios           format   999,999,999 heading 'Physical|Reads'
    col execs          format    99,999,999 heading 'Executions'
    col fetches        format    99,999,999 heading 'Fetches'
    col sorts          format       999,999 heading 'Sorts'
    col parse_calls    format       999,999 heading 'Parse|Calls'
    col rows_processed format   999,999,999 heading 'Rows|Processed'
    col iowaits        format   999,999,999,999 heading 'iowaits'
    set lines 195
    set pages 75
    PROMPT Top &&1 SQL statements during interval
    SELECT diff.*
    FROM (SELECT e.instance_number inst_no
                ,e.sql_id
                ,e.plan_hash_value
                ,e.parsing_schema_name
                ,substr(trim(e.module),1,10) module
                ,ratio_to_report(e.cpu_time_total - b.cpu_time_total) over (partition by 1) * 100 pct_of_total
                ,(e.cpu_time_total - b.cpu_time_total)/1000 cpu_time
                ,(e.elapsed_time_total - b.elapsed_time_total)/1000 elapsed_time
                ,e.buffer_gets_total - b.buffer_gets_total lios
                ,e.disk_reads_total - b.disk_reads_total pios
                ,e.executions_total - b.executions_total execs
                ,e.fetches_total - b.fetches_total fetches
                ,e.sorts_total - b.sorts_total sorts
                ,e.parse_calls_total - b.parse_calls_total parse_calls
                ,e.rows_processed_total - b.rows_processed_total rows_processed
    --            ,e.iowait_total - b.iowait_total iowaits
    --            ,e.plsexec_time_total - b.plsexec_time_total plsql_time
          FROM dba_hist_sqlstat b  -- begining snap
              ,dba_hist_sqlstat e  -- ending snap
          WHERE b.sql_id = e.sql_id
          AND   b.dbid   = e.dbid
          AND   b.instance_number = e.instance_number
          and   b.plan_hash_value = e.plan_hash_value
          AND   b.snap_id = &LowSnapID
          AND   e.snap_id = &HighSnapID
          ORDER BY e.cpu_time_total - b.cpu_time_total DESC
         ) diff
    WHERE ROWNUM <=&&1
    set define off
    prompt  to get the text of the SQL run the following:
    prompt  @id2sql &SQL_id
    prompt .
    prompt  to obtain the execution plan for a session run the following:
    prompt  select * from table(DBMS_XPLAN.DISPLAY_AWR('&SQL_ID'));
    prompt  or
    prompt  select * from table(DBMS_XPLAN.DISPLAY_AWR('&SQL_ID',NULL,NULL,'ALL'));
    prompt .
    set define on
    undefine LowSnapID
    undefine HighSnapIDI guess you'll need the companion script id2sql.sql, so here it is:
    set lines 190
    set verify off
    declare
       maxDisplayLine  NUMBER := 150;  --max linesize to display the SQL
       WorkingLine     VARCHAR2(32000);
       CurrentLine     VARCHAR2(64);
       LineBreak       NUMBER;
       cursor ddl_cur is
          select sql_id
            ,sql_text
          from v$sqltext_with_newlines
          where sql_id='&1'
          order by piece
       ddlRec ddl_cur%ROWTYPE;
    begin
       WorkingLine :='.';
       OPEN ddl_cur;
       LOOP
          FETCH ddl_cur INTO ddlRec;
          EXIT WHEN ddl_cur%NOTFOUND;
          IF ddl_cur%ROWCOUNT = 1 THEN
             dbms_output.put_line('.');
             dbms_output.put_line('   sql_id: '||ddlRec.sql_id);
             dbms_output.put_line('.');
             dbms_output.put_line('.');
             dbms_output.put_line('SQL Text');
             dbms_output.put_line('----------------------------------------------------------------');
          END IF;
          CurrentLine := ddlRec.sql_text;
          WHILE LENGTH(CurrentLine) > 1 LOOP
             IF INSTR(CurrentLine,CHR(10)) > 0 THEN -- if the current line has an embeded newline
                WorkingLine := WorkingLine||SUBSTR(CurrentLine,1,INSTR(CurrentLine,CHR(10))-1);  -- append up to new line
                CurrentLine := SUBSTR(CurrentLine,INSTR(CurrentLine,CHR(10))+1);  -- strip off up through new line character
                dbms_output.put_line(WorkingLine);  -- print the WorkingLine
                WorkingLine :='';                   -- reset the working line
             ELSE
                WorkingLine := WorkingLine||CurrentLine;  -- append the current line
                CurrentLine :='';  -- the rest of the line has been processed
                IF LENGTH(WorkingLine) > maxDisplayLine THEN   -- the line is morethan the display limit
                   LineBreak := instr(substr(WorkingLine,1,maxDisplayLine),' ',-1); --find the last space before the display limit
                   IF LineBreak = 0 THEN -- there is no space, so look for a comma instead
                      LineBreak := substr(WorkingLine,instr(substr(WorkingLine,1,maxDisplayLine),',',-1));
                   END IF;
                   IF LineBreak = 0 THEN -- no space or comma, so force the line break at maxDisplayLine
                     LineBreak := maxDisplayLine;
                   END IF;
                   dbms_output.put_line(substr(WorkingLine,1,LineBreak));
                   WorkingLine:=substr(WorkingLine,LineBreak);
                END IF;
             END IF;
          END LOOP;
          --dbms_output.put(ddlRec.sql_text);
       END LOOP;
       dbms_output.put_line(WorkingLine);
       dbms_output.put_line('----------------------------------------------------------------');
       CLOSE ddl_cur;
    END;
    /

Maybe you are looking for