Tools/Preferences/Code Editor/Link Stored Procedures to Files

Found this option, sounds promising. Is there for real a way to establish link between a stored procedure code and a file?
There is gap in help file; it jumps from "Max Open PL/SQL Editors" straight to "Auto-Indent New Lines"
Sincerely
Alek

This is for file-based debugger support (can't locate exact SQL Dev exchange reference). It works the following way. Open file based PL/SQL compilation unit, select connection. Press the "compile with debug" info tool button. Now file based and database units are linked together witnessed by a record in project.qbql file in sql dev preferences directoory. Now you can set breakpoints in file based source and when stepped into a called procedure(s) you'll be directed to file-based sources as well, (provided they are linked the same way).

Similar Messages

  • Jdeveloper: Tool Preferences Code Editor Save Actions. Why no code format?

    For me Format and Organize Imports are the 2 main save actions?
    Can I write a plugin or something to have the code format working for me?
    Best Regards,
    JP

    Which version of jdev you are talking about?
    In 11.1.1.2.0 I can select reformat as save action.
    Timo

  • Preferences: Code Editor: Printing:  Add File Path and Date to Print Header?

    Is there a way to add file full path and date to the print file header for a SQL Worksheet when printing from the Code Editor?  So, for example, if my SQL worksheet is called MySQL.sql and is saved to C:\Myfiles\SQL_Code\, I'd like to print the full path 'C:\Myfiles\SQL_Code\MySQL.sql' and today's date as part of the print header along with the page numbers at the top of the code.   I see a Java preview in the Preferences: Code Editor: Printing window that mentions a "Today" date but I don't know Java and that is an uneditable preview.  I have checked the "Print File Header" check box.  Is the file header definition stored somewhere in a configuration file and/or is there a way to modify/customize the default file header?  
    I am a new user to SQL Nav. version 3.2.20.09 Build-MAIN  09.87. I could do this in SQL Navigator but can't figure it out in SQLDeveloper. Thank you.
    -Cathy

    HI
    First of all,
    Unless otherwise you selected some option like page break after/before - both body and header/footer will print on same page in report, so in pdf as well.
    If you have difference on report and PDF that you should look into your setup.
    If you want more help, please be particular on your issue
    james. wrote:
    Hi All,
    I am using Oracle Report 10g. How can I add header and footer on same page as my body? Right now when a generate a pdf file, it is printing individual pages instead of 1 one page. Please help me.
    Regards

  • SQL Queries in Code V/s Stored Procedures

    Hi Friend,
    Can any one of you guide me with following..
    What is faster ? using SQL Queries in Java code or using Stored Procedures which are called from code?
    I understnd Stroed Procedures are faster and definitely it provides more maintainability.
    If any one can give me any links or resources which outlines pros and cons of using Stored Proc and SQL Queries embedded in Java than it would be a great help..
    If there are any articles which proves either of the above is a preferred way, that would also help..
    Appreciate the effort in advance !!
    Thanks
    Gurudatt

    Well one benefit of Stored Procs is that you "compile" it on the database whereas you might build your query on the fly in java... test coverage is important in order not to have such things as a typo in a column name....
    Still, if you change a table, you have to go through all the procedures in SQL and likely to do so in some of your business object... and trust me, that can be hell!
    It all depends on the use of the app...
    From my experience, Stored procedure are much faster than built-on-the-fly SQL (and quite faster than prepared statements depending on the JDBC driver, the re-use of connections etc...)....
    IMHO, you'd probably be wise to start of with prepared statements, and when the schema seems stable enough (ie unlikely to change), look for the slower queries and convert them to stroed procedures.
    If you don't have to support several databases and are tight on performance, you can even include some logic in your stored procedure (e.g. update several tables, based on various selects...etc...). The language is usually quite powerful, and that can save you the run-time of selecting, converting to object , process and update (i.e. several roud-trip between DB and app)...
    Tshcuss!
    Chris

  • Extracting the DDL(Code) of only stored procedures

    DB Version:11g
    I have a list of Stored procedures (about 250) whose code ie. CREATE OR REPLACE STORED PROCEDURE statements i want to extract to a file.
    Is there an option in imp or impdp where i can extract only the code of these stored procedures?
    Apart from imp/impdp , is there any other way to do this?

    Is there an option in imp or impdp where i can extract only the code of these stored procedures?impdp, Yes. Write the contents to a file using, SQLFILE option.
    DUMPFILE = exp.dmp
    LOGFILE = exp.log
    SCHEMAS=TEST
    INCLUDE= PROCEDURE:"IN ('SP')"
    SQLFILE=sp..sql
    Or use dbms_metadata.get_ddl
    set long 99999
    set pagesize 0
    SELECT DBMS_METADATA.GET_DDL(object_type, object_name, owner) FROM DBA_OBJECTS WHERE OBJECT_TYPE = 'PROCEDURE' and OWNER='OWNER';HTH
    -Anantha

  • Need sample source code for calling stored procedure in Oracle

    Hi.
    I try to call stored procedure in oracle using JCA JDBC.
    Anybody have sample source code for that ?
    Regards, Arnold.

    Thank you very much for a very quick reply. It worked, but I have an extended problem for which I would like to have a solution. Thank you very much in advance for your help. The problem is described below.
    I have the Procedure defined as below in the SFCS1 package body
    Procedure Company_Selection(O_Cursor IN OUT T_Cursor)
    BEGIN
    Open O_Cursor FOR
    SELECT CompanyId, CompanyName
    FROM Company
    WHERE CompanyProvince IN ('AL','AK');
    END Company_Selection;
    In the Oracle Forms, I have a datablock based on the above stored procedure. When I execute the form and from the menu if I click on Execute Query the data block gets filled up with data (The datablock is configured to display 10 items as a tabular form).
    At this point in time, I want to automate the process of displaying the data, hence I created a button and from there I want to call this stored procedure. So, in the button trigger I have the following statements
    DECLARE
    A SFCS1.T_Cursor;
    BEGIN
    SFCS1.Company_Selection(A);
    go_Block ('Block36');
    The cursor goes to the corresponding block, but does not display any data. Can you tell me how to get the data displayed. In the future versions, I'm planning to put variables in the WHERE clause.

  • Help : To convert Following Code into oracle Stored Procedure

    Hi All
    I m Ajay Patel
    N i m new in Oracle i don't know much abt oracle
    I want to convert following code in to oracle10g ( Procedure )
    This is PHP code n this function abt compound interest.
    $pa,$ri,$sy,$ey :- all are in parameters
    all variable declare with $
    $pa - is principle amount
    $ri - Rate
    $sy - start year - 2009
    $ey - end year - 2060
    function CCI($pa,$ri,$sy,$ey)
              $CCI = array();
              $totalyear = $ey - $sy;
              $ri = $ri/100;
              $ri= 1 + $ri;
              $amt=1;
              for($i=1;$i<=($totalyear+1);$i++)
                   if($i==1)
                        $CCI[$i][0] = $sy;
                        $CCI[$i][1] = $pa;
                   else
                        $powvalue = 1;
                        for($k=1;$k<$i;$k++)
                             $powvalue = $ri * $powvalue;
                        $FinalValue = $pa * $powvalue;
                        $CCI[$i][0] = $sy;
                        $pos = strpos($FinalValue, '.');
                        if ($pos !== false)
                             $FinalValue =     substr($FinalValue, 0, $pos+3 );
                        $CCI[$i][1] = $FinalValue ;
                   $sy++;
              return $CCI;
    Pls Help Me to convert above code in to oracle stored procedure
    Thanks All
    Regards,
    Ajay

    Its time to start reading the Document .

  • Handling Return Codes from SQL Stored Procedures

    Hi,
    Please can you let me know how to take care of system return codes from Stored Procedure in JDBC program. Is there any way it can be handled using Callabale Statement.
    Regards.

    not sure what you mean by "system" return codes, but to capture return values from stored procedures you can use CallableStatement.registerOutParameter(), just like with output parameters. see http://www.j-netdirect.com/GenStoredProcedures.htm#ReturnStatus.

  • Report - link - Stored Procedure

    Hello,
    How to run a stored procedure, without clicking the submit button !!!
    I have report which is linked to a stored procedure, whenever I click the link
    the correponding value is send to stored procedure, where I need to click the submit button, I need to avoid this step, because already I am sending the value through the link.
    Any suggestions !!!
    A.Kishore

    Never mind, we got it to link correctly.
    GJ

  • Change code in multiple stored procedures

    Hi,
        I have many stored procedures that have the server name hard-coded for bcp out purposes.  Is there a was to update all of these at one time, or am I stuck opening each one up seperately?
    Thanks
    Pam

    You can generate the ALTER scripts for all your stored procedures and then search-and-replace.
    David
    David http://blogs.msdn.com/b/dbrowne/

  • File opened in external editor not stored with referenced files

    If I open a referenced raw file in an external editor (CS2) and work on the image adding layers etc., the image is not stored where I have all the other referenced files. It gets stored in the Aperture Library. Is there a way around this. I want to keep all my files together. This can be done in Lightroom, but I am trying to make Aperture work for my workflow.
    Thanks,
    gary
    mac book, G5   Mac OS X (10.4.7)  

    Well, here's the feedback I submitted to Apple:
    With the introduction of Aperture 1.5, you offered users the ability to manage their own libraries, and for Aperture to work with 'referenced' images. In fact, because of this very reason, many of us consumers decided to buy Aperture 1.5.
    Most of us photographers also use Adobe Photoshop routinely.
    But there is a huge problem/bug for us users who manage our own library (force Aperture to work with 'referenced' images) AND use Photoshop (or any external editor for that matter). When we open a file in an external editor via Aperture, Aperture creates a new 'master' for editing -- but does so in its own 'managed' library! When we save from Photoshop, the image remains in the 'managed' library! So now we have one 'master' in our own directory, and the externally-edited 'master' in Aperture's 'managed' library! This is very CONFUSING and renders external editing via Aperture USELESS... no one in their right mind would want one version of their image in an organized directory, and an edited version in Aperture's managed library (where it is difficult to find manually)! No, it makes much more sense to create the edited 'master' in the same location as the original 'master'!
    PLEASE fix this bug ASAP! Aperture already has a good method for automatically renaming files by adding (1) or (2) or (3) or so forth when it is relocating files and finds a file with the same file-name. The same logic can be applied when creating a new 'master' for external-editing: that is, it should just create another .tiff (or .psd, or what have you) file with the same name but with a (1) or (2) tagged on. For example, if my master image is \Pictures\Seattle\SpaceNeedle.tiff, then when I open this image in an external editor, Aperture should automatically make the file: \Pictures\Seattle\SpaceNeedle (1).tiff, and open that file in the external editor... rather than create SpaceNeedle.tiff in its own managed library where I can't even find it using Finder or Windows Explorer, etc.
    Many of us have this complaint (just search Apple discussions)... PLEASE rectify this problem ASAP as it is completely messing up our workflows by requiring us to manually save through the external editor and then having to manually remove every 'managed' file that Aperture makes. This is really a pain and seriously makes me want to switch to a different image management program... though I love Aperture thus far and would love to stick to it as I believe it is visionary and shaping the future of how photographers will manage their digital workflows!
    Many thanks in advance for your time!
    Best,
    Rishi

  • How to change background color in code editor?

    Hi. Some of the pre-selectable Schemes under Tools->Preferences->Code Editor->PL/SQL Syntax Color (e. g. Ocean) have a "global" default background color that applies to all styles. How can I edit this color for my own color scheme?
    (SQL Developer version 3.1.07)

    Jeff,
    if you try to change all the plsql keywords to the same background color (that is not either white or black or blue) via the options panel in SQL Developer (Code Editor > PLSQL syntax colors), you will get the new background color in the worksheet only for the areas with plsql text, while the areas without any text will have the same background color as the base color scheme you started with. This means that there is no way to change the "general background" color via the options panel, but you have to use the same background color of one of the predefined color schemes.
    This seems to me a bug, but probably it's not considered high priority, so it will not be fixed for the time being.
    I would like to stress the fact that being able to change the color scheme of the development environment that you use every day about 8 hours a day can make quite a difference on your eyes at the end of the day.
    Thanks,
    Paolo

  • Changes on code editor code style are not applied on restart

    Jdeveloper 11.1.1.3.0
    Tools > Preferences > Code Editor > Code style > Edit > Modify "Indentation Size" > OK > OK > Close Jdev > Open Jdev => modified "Indentation size" not applied.
    Any solution?

    hi user474075
    I have noticed something similar for which I have created service request 3-1764420131 ,
    which resulted in bug 9740870 , "CODE STYLE USE TAB CHARACTER ISSUE"
    for which "... We are waiting for the review process of the bug to be completed. ... "
    So, if you can create your own service request (at http://support.oracle.com ) and refer to bug 9740870 that might speed things up.
    (tip : You can use "Your Control Panel" to make your name visible in forum posts.)
    regards
    Jan Vervecken

  • Problems with cut and paste within the code editor in JDeveloper 10.1.3 EA

    Copy and pasting doesn't work as expected. If I copy some code and paste it somewhere else, i get completely different code, (it seems to paste a piece of code from somewhere else in the source).
    I tried expanding + signs, this didn't help.
    I'am running JDeveloper on Windows XP Professional.
    Does anybody else have the same problem.
    Is this a bug?

    We've tracked down this issue thanks to Tullio's supplying us with a reproducible testcase. It's related to the "Automatically Copy Paste Imports" preference (which is on by default) in the Tools->Preferences->Code Editor category of IDE preferences. It seems to also be related to having renamed a source path directory to have a name that is only different by case from the name it originally had. Disabling this preference is a workaround for EA1.
    For example, if you started out by creating your workspace with a source directory named "Src", then later renamed it to "src", this seems related to the situation when this issue can occur. Renaming the directory back to match what it was before is another workaround for EA1.

  • Code editor: need spaces instead of tab characters for indentation

    I need to have spaces inserted into my code for indentation instead of tabs. "Use tab character" is unchecked under tools|preferences|code editor|code style|edit but to no avail. Any suggestions? Thanks, M C

    But would this cause a tab to be translated as one space or would it still be a tab character? I think it will still be a tab character, which is a problem. I know MS Dev Studio can be set to translate tabs to spaces on the fly so if you hit a tab the cursor jumps 4 spaces and those spaces are spaces, not a tab. Thanks for the reply.

Maybe you are looking for

  • How do I rotate text within a table Pages 4.3?

    Does anyone know how to rotate text within a cell in a Pages 4.3 table?

  • MediaView doesn't display video; opens new window instead

    Hello, I'm having some trouble working with the MediaView/MediaPlayer classes. Using Netbeans' composer, I've configured correctly (I think) a MediaView component so that it should load the MediaPlayer, which loads a local Media file. However, when e

  • Changes to sig 3010-0 with V6?

    Can anyone tell me what changed with this sig in V6? Our old filter no longer work. It appears the normal source and destination IP addresses have been swapped but that particular setting on the sig has not changed AFAICT (it was and is set to swap-a

  • Vector Mask won't link to Smart Object

    When I apply a vector layer mask to a Smart Object the mask won't link to the SO layer. Is there a way to force it to link? I can't resize or move them at the same time, which is driving me crazy.

  • Can't get new mail sound to work

    i recently updated to Lion and set up my gmail account on the 'Mail' application on the imac.  My sound is on, and i enabled the new mail sound, however when i get a new email, it doesn't make the sound.  What should i do?