Unwanted Line Breaks in PL/SQL CODE after 'CREATE OR REPLACE' statements

Does anybody know how to keep SQL Developer from automatically editing PL/SQL code and adding line breaks after 'CREATE OR REPLACE' statements?
It keeps taking:
CREATE OR REPLACE PACKAGE DEVELOPER AUTHID DEFINER
And turns it into:
create or replace
package developer AUTHID DEFINER
This unwanted linebreak causes our autodeployment processes to break.
Thanks,
Michael Dunn
University of Notre Dame
Edited by: user9133268 on Feb 21, 2012 8:00 AM

Hi Michael,
I believe nothing for this issue has progressed since it was asked here:
2.1 RC Extra Line Breaks
As there may be approval for some planned improvements to the SQL Formatter feature in 3.2, I logged an enhancement request for you:
Bug 13744858 - FORUM: UNWANTED LINE BREAK AFTER CREATE OR REPLACE SYNTAX
Regards,
Gary
SQL Developer Team
Edited by: Gary Graham on Feb 21, 2012 4:19 PM
But if you have control over your auto-deployment process code, it might be quicker to enhance that to deal with CREATE OR REPLACE on the same or the preceding line. Also, note that if you edit the package DDL to put the CREATE OR REPLACE on the same line with the package name in the code editor, then immediately use Export or Save Package Spec and Body to save it to disk, then PACKAGE <name> will appear on the same line as the CREATE OR REPLACE syntax.

Similar Messages

  • How to invoke a Java Custom Code after creating a resource in OIM Console

    Greetings.
    I want to invoke a custom code after creating the resource "OID User" on the OIM Administration Console. For example invoke a custom code that creates The Form's resource access descriptor (RAD) on the OID.
    I have read the Developer's Guide for Oracle Identity Manager book but I don't get how to solve my requirement.
    Should I use a "Java Task" on the design Console?
    Could Anybody provide me the detailed steps to do that?
    Thanks
    Ramiro Ortíz.

    Greetings.
    I want to invoke a custom code after creating the resource "OID User" on the OIM Administration Console. For example invoke a custom code that creates The Form's resource access descriptor (RAD) on the OID.
    I have read the Developer's Guide for Oracle Identity Manager book but I don't get how to solve my requirement.
    Should I use a "Java Task" on the design Console?
    Could Anybody provide me the detailed steps to do that?
    Thanks
    Ramiro Ortíz.

  • How to line break in an SQL Report

    I have a simple SQL report with many columns that make the window very wide and the use has to scroll horizontally quite a lot.
    How can I make the line break after some column?
    Can someone give me a live example for that?

    Custom report template then is your answer.. Without seeing your initial report it would be hard to give you the code fully. However, if you open the standard report template for your theme, you could save it as a new template and edit it accordingly. You would find the column you wish to break on and create a new <tr> .. </tr> under the <td> definition..
    Thank you,
    Tony Miller
    Webster, TX

  • Line break in pl/sql block

    Here's my code, which indeed, may be cumbersome, but works:
    declare
    v_id NUMBER;
    v_iso VARCHAR2(30);
    v_title VARCHAR2(60);
    v_approval_req VARCHAR2(10);
    v_approved VARCHAR2(10);
    v_job_desc VARCHAR2(60);
    v_user VARCHAR2(30);
    v_get_user VARCHAR2(60) := :P101_USERNAME;
    v_get_user2 VARCHAR2(60) := :P101_USERNAME;
    v_num_docs NUMBER;
    v_num_rejected NUMBER;
    v_count NUMBER := 0;
    BEGIN
    CASE v_get_user
    WHEN :P101_USERNAME THEN
    SELECT COUNT(*) into v_num_docs
    FROM doc_info, sh_job_description, sh_employees
    WHERE doc_info.owner = sh_job_description.job_desc
    and sh_job_description.job_desc_id = sh_employees.job_desc_id
    and UPPER(doc_info.approval_req) = 'YES'
    and (doc_info.approved is null
    or UPPER(doc_info.approved) = 'NO')
    and sh_employees.user_name = :P101_USERNAME
    and sh_employees.user_name <> 'SH_LOCAL';
    if v_num_docs  > 0  then
    htp.bold('You have '||v_num_docs||' document(s) to approve.  Please click on the Approve Documents button below to do so.');
    end if;
    END CASE;
    CASE v_get_USER2
    WHEN :P101_USERNAME THEN
    SELECT COUNT(*) into v_num_rejected
    FROM doc_info, sh_job_description, sh_employees
    WHERE doc_info.owner = sh_job_description.job_desc
    and sh_job_description.job_desc_id = sh_employees.job_desc_id
    and UPPER(doc_info.approval_req) = 'YES'
    and UPPER(doc_info.approved) = 'REJECTED'
    and sh_employees.user_name = :P101_USERNAME
    and sh_employees.user_name <> 'SH_LOCAL';
    if v_num_rejected  > 0  then 
    htp.bold('You have '||v_num_rejected ||' rejected document(s) that have had updates made per your request.  Please click on the Approve Documents button below to review the changes, then approve if all changes are accepted.');
    end if;
    END CASE;
    exception when others then null;
    END;Here's the output:
    You have 4 document(s) to approve. Please click on the Approve Documents button below to do so. *\n*You have 1 rejected document(s) that have had updates made per your request. Please click on the Approve Documents button below to review the changes, then approve if all changes are accepted. I have entered a bold /n where I need a line break. Silly, but I've tried many combos of \n and the break with a br and this < and this > (I can't get the real thing to post), concatenating and not, but haven't come up with it.
    Off to lunch now, back in an hour.
    TIA!!!!!

    userRRRYB wrote:
    Here's my codeFrom where? APEX version? Region? Process? Example on apex.oracle.com?
    Fixed. I split it up into two different items, created a region for each, and placed the regions in position 1.Sounds like a lot of extra work.
    I have entered a bold /n where I need a line break. Silly, but I've tried many combos of \n and the break with a br and this < and this > (I can't get the real thing to post), concatenating and not, but haven't come up with it.
    How about instead of the \n, trying a chr(10) and possibly adding a chr(13)?
    I've tried your exampleand htp.p(chr(13)); and suggestions?The HTML specification instructs user agents to collapse white space characters, so however many spaces, tabs, new lines, or carriage returns you add, using whatever notation, only a single space will actually be displayed.
    >
    htp.bold('<p>You have '||v_num_docs||' document(s) to approve.  Please click on the Approve Documents button below to do so.</p>');
    htp.bold('<p>You have '||v_num_rejected ||' rejected document(s) that have had updates made per your request.  Please click on the Approve Documents button below to review the changes, then approve if all changes are accepted.</p>');It's also specified that inline elements can't contain block-level elements. <tt>b</tt> (as generated by <tt>htp.bold</tt>) is an inline element, while <tt>p</tt></a> is block-level.
    In 2011 don't use any <tt>htf/htp</tt> element methods: the HTML generated by these packages is based on an archaic, unadopted HTML version and produces mark-up that is not valid for the XHTML DOCTYPEs used in APEX 4.0 themes. APEX itself stopped using them years ago.
    Not knowing where in the page this information is intended to display, it's always safer to assume there is no open block-level container and provide one (such as <tt>div</tt> or <tt>p</tt>) in the emitted mark-up. Does
    htp.p('<p>You have '||v_num_docs||' document(s) to approve.  Please click on the Approve Documents button below to do so.</p>');
    htp.p('<p>You have '||v_num_rejected ||' rejected document(s) that have had updates made per your request.  Please click on the Approve Documents button below to review the changes, then approve if all changes are accepted.</p>');produce the required layout?
    exception when others then null;Disaster waiting to happen.
    http://tkyte.blogspot.com/2006/08/ouch-that-hurts.html
    http://tkyte.blogspot.com/2007/03/dreaded-others-then-null-strikes-again.html
    http://tkyte.blogspot.com/2008/01/why-do-people-do-this.html
    http://tkyte.blogspot.com/2008/06/when-others-then-null-redux.html

  • How to remove extra line breaks in my html code?

    On my website: 2neatmagazines.com, I have old html, written years ago. The html all functions fine, no problems in the broswers. When I Iook at the code, there are lots of line breaks in the text portions.
    I can do "apply source formatting", and that has cleaned and aligned the html code nicely. But, the text descriptions in the html still breaks at fixes places. This does not affect how it renders, just how the code looks. For example:
                      <p align="left"><span class="blacksregularbold"><span class="blackregular">Life
                        Magazine </span>January 11, 1937</span> : Cover - Japanese
                        soldiers doing their exercises. Full page LIFE magazine
                        ad with railroad locomotive at night. The &quot;first&quot;
                        candid photographs taken by Paul Nadar of Paris in 1886.
                        Governors - new and old. Margaret Sanger wins the court
                        victory that birth control contraceptives can be sent
                        by mail, long fight for related women's rights . Bootleg
                        coal mining near Shamokin, Pennsylvania. Painter Winslow
                        Homer. Dinosaurs Enshrined (collection, storage and
                        display of dinosaur fossils in museums, including Dinosaur
                        National Monument). Baths of Foam, milk, mud,and wax
                        for beauty. . Theatre in 1936 and 1937. Japanese Army.
                        Sonja Henie in her movie &quot;One in a million.&quot;
                        Includes photos of Sonja Henie bicycling - looks like
                        today's town cruiser bikes. . Amazing series of photos
                        of San Francisco people interacting (or not) with bum
                        laying on sidewalk. Photos from wreck of United Airliner
                        which crashed December 27, 1936 in the Santa Susana
                        Mountains of California. Five airline crashes in two
                        weeks at end of 1936. Ice hockey fights. &quot;Tobacco
                        Road&quot; on Broadway. Japanese soldiers training.
                        Neat photo of five new locomotives in a row, Canadian
                        National Railways. <br />
                        <span class="redregular">Very Good</span> - $52
    I would like the main text to be wrapped, and neat. I have tried various "text cleaners" like Haven for the mac, but none of the settings will get rid of this annoying line break formatting.
    Any suggestions would be appreciated.
    mark

    The only "Line Break"
    <br /> I see is at the end.
    Code formating just cleans the display of the visual code it doesn't effect the browser display.
    You can do a "Search and Replace" the <br /> with nothing. to strip all <br /> for the whole site or DIR or page.
    In code view right mouse click and choose
    "Search and Replace"
    Is this what your are asking help on?
    Shane

  • PL/SQL Code not working without debug statements

    Hi Guys,
    I have a pl/sql code in a procedure, logic iterates through almost 40K records, conditional delete and update.
    When I execute this code, I dont see the deletes and updates happening, though procedure executes for 8 minutes and exits wihtout any error, execption.
    In same procedure when I write some debug statements like dbms_output, then everything seems to be working fine.
    I know this scenario happens in Oracle Forms, wehre we use SYNCHRONIZE.
    But this is plain pl/sql procedure.
    any thoughts on this?
    Av.

    COMMIT ?
    Aside from that, no idea what your procedure looks like, what it does, what version of Oracle you are using, how you are determining "I dont see the deletes and updates happening". etc...
    You'd need to provide a slew of information for anyone to give you any meaningful help.
    I can only assure you that DBMS_OUTPUT doesn't do magic :)

  • Schedule Line Date Changed By Standard Code After User Exit

    We've implemented USEREXIT_MOVE_FIELD_TO_VBEP to conditionally change the schedule line date (it changes VBEP-EDATU) when sales orders are being created.  This functions correctly when VA01 or EDI is used.  However, when the order is created using BAPI_SALESORDER_CREATEFROMDAT2, standard code executing after the user exit changes the schedule line date to an incorrect value. 
    The user exit correctly changes the schedule line date; then later on in the execution subroutine VBEP_FUELLEN_VBEPKOM in include FV45EFEP_VBEP_FUELLEN_VBEPKOM is executed which changes the date on line 37 using the value in US_VBEPKOM-EDATU.  US_VBEPKOM-EDATU is in scope in the user exit, but earlier in subroutine VBEP_FUELLEN_VBEPKOM (line 12 to be exact) this variable is updated with the value in US_VBEPKOM1-EDATU, which is not in scope during the user exit.  So, USEREXIT_MOVE_FIELD_TO_VBEP doesn't have access to US_VBEPKOM1-EDATU and can not ensure that the correct value is used later on in subroutine VBEP_FUELLEN_VBEPKOM.
    I noticed at the end of subroutine VBEP_FUELLEN_VBEPKOM it calls USEREXIT_MOVE_FIELD_TO_VBEPKOM.  I could update VBEP-EDATU here to correct the error whenever the order is created using the BAPI, but it would be nice to have a solution that could be implemented only in USEREXIT_MOVE_FIELD_TO_VBEP without also having to implement USEREXIT_MOVE_FIELD_TO_VBEPKOM.
    So my question: is there a way to update the schedule line date in USEREXIT_MOVE_FIELD_TO_VBEP where it won't be changed later in subroutine VBEP_FUELLEN_VBEPKOM when the order is created using the BAPI?

    Hi Caetano,
    thanks for your suggestion
    Yes, we use firm zone for few of the vendors. there the system don't change the schedule lines.
    Also for the stock transfer PR's there is no firm zone and the lead time is one day. in this case it changes everyday after the MRP run.
    the stock transfer PR's leads to the creation of Schedule lines from the source plant. Since this PR gets changed everyday. the alerts coming out of MD07 gets changed and we really did not know if this order is delayed or not.  In the source plant we use the firm zone to avoid moving the schedule line. But then the alerts are always not correct.
    is there any setting which helps in not moving the PR everyday without using " start in the past"
    thanks
    Nagendra Kumar

  • ORA-06502 in pl/sql code after converting from 9i to 10g

    Code worked in 9i, fails in 10g (v10.1.2.0.3) with "character buffer too small":
    v_period varchar2(6);
    select max(period) into v_period from fiscal_periods;
    PERIOD in the table is CHAR(6), representing yyyymm.
    I've discovered two workarounds:
    1) Declare v_period as varchar2(4000), nothing smaller works
    or
    2) select TRIM(max(period)) into v_period from fiscal_periods;
    The code worked okay in 9i, so is there a 10g change in variable handling I've missed? Or possibly bad programming form? Database vars NLS_SORT (blank), NLS_COMP (blank), and NLS_LANGUAGE (American) are set the same in 9i and 10g, all defaults.

    Thanks for your speedy response. The version is 10.2.0.1.0 according to Grid Control, so I assume 10.2.0.2 trumps it. (The previous version number I provided was the result of "select owa_util.get_version from dual;" in SQL Developer so it might be the SQL Worksheet version?) I'll get this info to the dba and we'll see what happens.
    Thanks!

  • Would like to write SQL code to generate a 'spool' statement in SQL Plus.

    Hi,
    We're using Oracle 11.1.
    I'm spooling data to a file from a SQL Plus shell script .
    The format of the file name they're giving me has the current date on the end, so something like:
    filenameMMDDYYYY.txtWhen I write my spool statement I'd like to do it so that I give it the file name with a formatted sysdate at the end.
    I think I need to generate SQL to do this but I don't have experience in generating SQL.
    How would I do this in a SQL Plus Linux shell script?

    set termout off
    col dt new_value dt
    select to_char(sysdate,'YYYYMMDDHH24MISS') dt from dual;
    set termout on
    spool file_&dt
    Handle:      816567
    Status Level:      Newbie
    Registered:      Nov 29, 2010
    Total Posts:      73
    Total Questions:      30 (20 unresolved)
    so many questions & so few answers.
    Edited by: sb92075 on May 12, 2011 4:27 PM

  • Custom code after creating a new user via CUA

    Hi experts!
    In our landscape we are using CUA for adding users in CRM 7.0. A new requirement is to adjust some default Web UI related settings for every new user created. There is no standard customizing setting for that, but it is possible to programmatically set prsonal settings using cl_pers_admin class' set_data method.
    The question is if there is any BADI or User Exit for user creation procedure? If it is present, wouldn't it conflict with CUA routines? Many thanks in advance.

    No. Not the main Library folder. Make absolutely sure you are in the Home Library folder and not the main Library folder.
    Your Home Library folder is hidden in Lion. To get to it, in the Finder menu, select GO and hold the option key down. Select Library in the submenu. The Finder window will open in your Home Library. This is where your user prefs are stored.
    Once there, you will see the Preferences folder. Open it up, select all items within it and move them to the trash. You will need to restart in order for the new Finder preferences to be recreated.
    Once you restart, then you will be back to the default preferences to the system and all applications. And yes, it will affect all settings including your Dock, just as logging into a new user. You will have to reset everything there also.
    If you wish to do a selective method, instead of deleting all preferences, try deleting the one associated with your problem. Screen saver problems should be affected by the system preferences, so try deleting this:
    com.apple.systempreferences.plist
    com.apple.systempreferences.plist.lockfile
    Note that when you delete system file preferences, a restart will be required. For applications, just quit the application before trashing preference files.

  • Are line breaks considered as a paragraph ?

    Hi
    I am imorting a HTML text into a TextFlow using TextConverter.importToFlow
    The format I am using is TextConverter.TEXT_FIELD_HTML_FORMAT
    I am setting the formatso the space after a paragrph as follows:
    paragraphSpaceAfter = 30
    My question is why are line breaks tag <br> give me the same space between lines as a paragraph?
    can I control the height of the line breaks ?

    You could try \n as newlines - replacing <br> elements with new lines.  I doubt it will be a robust solution as the TextFieldHTMLImporter collapses the whiteSpace always.
    If you want to import HTML (and not TextField HTML) you're best bet is to create your own importer.  Starting with the TextField HTML importer is an option if you feel its close enough.  Minimally there's some useful code in the class for converting street HTML to XML.
    There's a blog post about connecting a client importer to TLF 2.0.
    http://blogs.adobe.com/tlf/2010/11/custom-clipboard-formats.html
    Hope that helps,
    Richard

  • 2.1 RC Extra Line Breaks

    How do I turn off the line break after CREATE OR REPLACE so that CREATE OR REPLACE <package name> PACKAGE AS stays on the same line. Been into the formatting options and tried various combinations and cannot get it to change. Do not remember it doing this with previous version of sql developer.

    Hi colinj ,
    I went through a few of the options and I could not suppress that newline.
    The same happens in 1.5.5.59.69 . There have been a couple of improvements in the formatting
    engine for this release but this newline has not been changed for this release.
    -Turloch

  • Simple dynamic text line break question

    I have a simple file that loads text dynamically inside a symbol.. How do I put line breaks in? My code is below. If I leave the text as is it skips a line inbetween.
    (actionscript in flash file)
    loadVariables("pacific.txt", "_root.pacific");
    txt file
    data=CANADIAN PACIFIC DISTRICT
    Steve Foster
    [email protected]
    1-877-850-2664
    Cell: 250-667-4827
    thanks,
    Frank

    NOT
    /n
    use:
    \n

  • OutputLabel and line breaks doesn't work - Is there a hack for JSF1.2?

    Hello,
    I use JSF 1.2 and Facelets to generate a form automatically. This works so far well. But if I have a label with line breaks, JSF does not convert the line breaks into �
    � tags. Is there a hack to convert line breaks into �
    � tags?
    A little example
    Code:
    <h:outputLabel value="#{component.label}" for="#{component.id}" />
    <h:inputText value="#{component.value}" id="#{component.id}" />component.label = �First Line\nSecond Line�
    component.value = "UserInput"
    This is rendered to:
    First Line Second Line      [UserInput]
    Instead of:
    First Line        [UserInput]
    Second Line One possible solution is to disable �escape�. But this is a bad solution because there are umlauts and angle brackets (�<�,�>�) in some texts for my labels. Does anyone know a better solution?
    Regards
    Martin

    Hi Raymond,
    thanks for your tip. It is a very good idea. But while testing I have found a little problem. with "pre". JSF renders labels like this:
    <label> <---- notice this line break
    Text</label>All labels start with a line break in the HTML code. So all labels start with a line break in the browser too if I use CSS with the "pre" option :(
    Regards
    Martin
    Message was edited by:
    mwinandy

  • How to insert new line break in XSLT mapping

    Hi experts,
    I am doing file to mail scenario, i am sending the text file as an attachment using reciever mail adapter.
    I did everything, i can able to send the mail with text file attachment, but with in the file i got multiple rows, i need to put line break in XSLT mapping.
    I did use following statement but it is inserting small rectangle between the records, the records are not separating with new lines, all are in one line.
    <xsl:text>*#xA;</xsl:text>   
    note: in real coding replace * with &
    Can anyone suggest me how to insert new line in XSLT mapping.
    My XSLT mapping as look like:
    <?xml version='1.0'?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:ns0="http://www.Coj.co.za/SapIsuToABSA/DirectDebitFile">
    <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
    <xsl:variable name="break">&lt;br/&gt;</xsl:variable>
    <xsl:variable name="space"> </xsl:variable>
    <xsl:variable name="newline"><xsl:text></xsl:text></xsl:variable>
    <xsl:template match="/">
    <ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
    <Subject>Please Check Attached Direct Debit File</Subject>
    <From>S@za</From>
    <To>P@za</To>
    <Content_Type>text/plain</Content_Type>
    <Content>
    <xsl:for-each select="MT_SapIsuToABSA_DirectDebitFile/DirectDebitRec/Body">
    <xsl:value-of select="Space1"/>
    <xsl:value-of select="Cust_AccNo"/>
    <xsl:value-of select="Reserve_1"/>
    <xsl:value-of select="Cust_Name"/>
    <xsl:value-of select="Cust_Name1"/>
    <xsl:value-of select="Cust_Bank_AccNo"/>
    <xsl:value-of select="Space2"/>
    <xsl:value-of select="Cust_Bank_BranchNo"/>
    <xsl:value-of select="Reserve_2"/>
    <xsl:value-of select="Space3"/>
    <xsl:value-of select="Cust_AccNo_1"/>
    <xsl:value-of select="Space4"/>
    <xsl:value-of select="Reserve_3"/>
    <xsl:value-of select="Deduction_Amnt"/>
    <xsl:value-of select="Space5"/>
    <xsl:value-of select="Reserve_4"/>
    <xsl:value-of select="Space6"/>
    <xsl:value-of select="Action_Date"/>
    <xsl:value-of select="Space7"/>
    <xsl:value-of select="Reserve_5"/>
    <xsl:text>*#xA;</xsl:text>   
    note: in real coding replace * with &
    </xsl:for-each>
    </Content>
      </ns1:Mail>
      </xsl:template>
      </xsl:stylesheet>
    Kind regards,
    Praveen

    Hi,
    I think <xsl:text>#xa;</xsl:text> should do the trick, but depending on which OS (ux or win), the "new line" chars sequence is different (win would require a CRLF like <xsl:text>#xd;*#xa;</xsl:text>)
    Chris
    -> &
    Edited by: Christophe PFERTZEL on Apr 14, 2010 2:16 PM

Maybe you are looking for

  • Want to show UIX Media Model link in new page using jdev1012

    Hi, I hope you can help me. I have a read only table in uix page there's a Column of type ORDDOC here is my code for this column: <column> <columnHeader> <styledText text="${bindings.Doc.label}" styleClass="DefaultFont"/> </columnHeader> <contents> <

  • Jbutton, listener and so

    hi! When I press my Jbutton, it steps to it's actionlistener, this is ok. :) But in the first part of the AListener's source I want to put a new JPanel into my window(frame etc), containing 'please wait, work is in progress' or so. And after this cod

  • Vertical Scrollbar for a slide

    I'm new to captivate. Can anybody help me to get a vertical scrollbar for the slides?

  • Forms Developer on Linux

    Hello, I am working with Forms Developer 6.i. I need to automatically create a file in the IAS and show it in the client. My application server is a linux machine and the client is Microsoft (Windows XP). I tried to use the OLE library in Developer 6

  • Oracle Education site missing test data for 1Z0-046

    Brandye: Just an FYI: the exam data for Oracle Database 10g: Managing Oracle on Linux for Database Administrators is missing with the new site 'upgrade'. http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&p_org_id=1001&lang=