Stored Program Editor

It would be nice to have the following features in the stored program editor:
- outline view
- navigate to another object by ctrl-click onto its name
- named bookmarks (i.e. 0, 1, 2, ...) with an associated shortcut to navigate there
I really like Raptor - it's a great tool!

These are logged enhancements.
-kris

Similar Messages

  • How to declare local variables in PL/SQL stored programs

    Where do I declare local variables in a PL/SQL stored program?
    I get compiler errors with either of the options below:
    FUNCTION GET_PRINCIPAL_BALANCE (CUT_OFF_DATE IN DATE, TITLE_SN IN DATE, TOTAL_BALANCE OUT NUMBER) RETURN NUMBER IS
    TOTAL_BALANCE NUMBER;
    BEGIN
    RETURN TOTAL_BALANCE;
    END;
    FUNCTION GET_PRINCIPAL_BALANCE (CUT_OFF_DATE IN DATE, TITLE_SN IN DATE, TOTAL_BALANCE OUT NUMBER) RETURN NUMBER IS
    BEGIN
    TOTAL_BALANCE NUMBER;
    RETURN TOTAL_BALANCE;
    END;

    Your local variable cannot have the same name as the formal out parameter. This is a procedure example, but since functions should not have out parameters anyway ...
    session2> CREATE PROCEDURE p (p_id IN NUMBER, p_did OUT NUMBER) AS
      2     p_did NUMBER;
      3  BEGIN
      4     p_did := p_id * 2;
      5  END;
      6  /
    Warning: Procedure created with compilation errors.
    session2> show error
    Errors for PROCEDURE P:
    LINE/COL ERROR
    0/0      PL/SQL: Compilation unit analysis terminated
    1/1      PLS-00410: duplicate fields in RECORD,TABLE or argument list are
             not permittedThe proper way to create a function would be something like:
    CREATE FUNCTION f (p_id IN NUMBER) RETURN NUMBER AS
       l_did NUMBER;
    BEGIN
      l_did := p_id * 2;
      RETURN l_did;
    END;You should really assign a value to the variable before you return it.
    John

  • Performance of will_paginate + stored programs

    Hi all,
    What your experience with performance of will_paginate with stored procedures/functions? I have a few pipelined functions following the procedure described at http://wiki.rubyonrails.org/rails/pages/OracleStoredProceduresAsDataSource and uses will_paginate for it.
    As you know, a code such as
    paginate_by_sql([
    "select col1, col2, col3 from table(function(?,?))", "#{param1}", "#{param2}",
    ], options)
    will automatically form:
    select count(*) from (select col1, col2, col3 from table(function(param1,param2)))
    to count the results. This looks like it will result in Oracle needlessly retrieving data for col1, col2, etc when all that is needed is the number of results. Or is there (hopefully) some sophistication/intelligence that determines otherwise?
    And then to get for example results 76-90 will_paginate forms:
    select * from
    (select raw_sql_.*, rownum raw_rnum_ from
    (select col1, col2, col3 from table(function(param1,param2))) raw_sql_
    where rownum <= 90) where raw_rnum_ > 75
    Again, does this mean the pipelined function will still read all the data for results 1-75 first to form the "table"? If so, that would be a waste. Does it look like it's not ideal to use will_paginate with stored programs? Would appreciate to know what you think.
    Thank you very much.
    Johann
    Edited by: johanntagle on Dec 9, 2008 4:06 AM

    Short answer: it depends.
    There will probobaly be very little difference in performance difference for a sipmle insert / update etc.
    Multiple inserts / updates etc you will probobaly find faster with a stored procedure rather than n prepared statments as you only have to contact the database once vs n times.
    Hope this helps!

  • Has anybody used motion control card like a CNC contol with G-codes with part program editor?

    I have to use national instruments PXI 7344 motion card to substitute a CNC control that uses G-codes and M-codes in a part program . I need to know if some body has already developed such an application and also developed a part program editor.

    ABMSoft - an NI alliance member in Eastern Europe has developed a very powerful G-code interpretor for LabVIEW. Their ABMS-NC toolkit for LabVIEW also includes an offline simulation tool. They have successfully deployed many machines using this toolkit. Its available directly from ABMSoft for $995. You can contact ABMSoft directly.
    More info on ABMSoft (Contact info and product details)
    http://sine.ni.com/apps/we/niaa.com_view?p_all_id=7974
    Documentation on ABMSoft's website
    http://www.abmsoft.com/NI-NC.pdf
    Thanks,
    Rahul
    Rahul Kulkarni
    National Instruments

  • Programming Editor for Linux

    Does anybody know a good, and feature rich programming editor, written in native code for linux, and designed to develop in Java? All the good editors are written in Java, and unfortunately java applications are still very slow on linux..

    Hi,
    I am using SuSE Linux 8.0 which comes with the KDE GUI. KDE inludes an editor named Kate (among others), which is quite good for editing all sorts of source codes including Java.
    I am using JBuilder on Linux too (which I use the most for Java editing though) and can not confirm however that it is too slow. It works fine.
    Ulrich

  • "Find..." in stored program units

    It would be nice if "Find..." was allowed in a stored program unit. Currently, this is only possible after choosing the "Edit" button in the "Code" tab.

    i bet this is, because the find and the replace-dialog are identical and you aren't allowed to replace in non-edit-mode.
    if the find-dialog can be started via parameters then one mode should be "Find only" where the "Replace" is disabled or hidden, so that you can use the find functionality in the non-edit-mode of a source-code

  • Change connection schema in Stored Program?

    Hi,
    Can anyone tell me if I can change connection schema in a stored program (not form program unit)? Does Oracle provide any build-in?
    Thanks.

    I could not think of a direct command to change connection. But I have written a tool that will read the username, password and database name from a table and dynamically create the link from within the procedure and use the link for further processing.
    The rough out line is as follows.
    1. read the table containing
    databasename, password, connect str
    2. dbms_sql or dbma_utility function to
    create a link for those parameters
    the link name can be some thing like
    mylink.
    3. further dmls on the procedure
    like
    select * from xxxx@mylink;
    But if you want the statements in the statements in step 3 to be non-dynamic sql then create a dummy link mylink to the current schema itself, so that the procedure will not have any compilation problem. also make sure whatever tables structures used in step 3 exist in the current schema.
    null

  • Load stored program package into another db

    Hi,
    Let say I have a created a stored program package (contains spec and body) in an oracle database
    developed using sql developer.
    How do I transfer and load my stored program package into another oracle database?
    Do I also need to recompile after I did so?
    Thanks.

    You connect to the other database and recompile the code.

  • Best Practice for Storing Program Config Data on Vista?

    Hi Everyone,
    I'm looking for recommendations as to where (and how) to best store program configuration data for a LV executable running under Vista.  I need to store a number of things like window location, values of controls, etc.  Under XP I just stored it right in the VIs own execution path.  But under Vista, certain directories (such as C:\Program Files) are now restricted without administrator rights, so if my program is running from there, I dont think it'll be able to write its config file.
    Also right now I'm just using the Write to Spreadsheet File block to store my variables.  Does this sound alright or are these better suggestions?
    Thanks!
    Solved!
    Go to Solution.

    I fopund some stuff on microsoft page. Here the link and a short past from taht document:
    http://www.microsoft.com/downloads/details.aspx?FamilyID=BA73B169-A648-49AF-BC5E-A2EEBB74C16B&displa...
    Application settings that need to be
    changed at run time should be stored in one of the following
    locations:
     CSIDL_APPDATA
     CSIDL_LOCAL_APPDATA
     CSIDL_COMMON_APPDATA
    Documents saved by the user should be
    stored in the CSIDL_MYDOCUMENTS folder.
    Can't tell you more as I have no Vista around to look for the CSILD stuff.
    Felix
    www.aescusoft.de
    My latest community nugget on producer/consumer design
    My current blog: A journey through uml

  • Searching for: A proper programming editor

    Good evening,
    in search for a good editor for doing some basic programming I have come across multiple applications, but I have not yet found the perfect one for me. With VIM I liked the auto-identation and even more the great color schemes. Coding looked great when using it - and it even worked with CLI only, but I have never plunged deeper into its own universe. What I do not like about VIM is the uncommon way of controlling it. I am used to do it the fast way - saving with CTRL+S - which takes me quite some more time with VIM, but that's something I could overcome. I had some problems with the control- and editing mode of this program. The paradigma behind VIM seems to be fascinating, but it might not be perfect for me.
    Next one was Kate. Nice-looking KDE app, extensible and with a lot of options. Auto-Identation as well, but I miss the color schemes. Code looks awful, awful predefined colorschemes. I do not really want to work with it.
    Scite - nice for editing but I could never get myself to like it.
    What would be great would be an application like TextMate for Mac OS X. It supports some kind of IntelliSense (I have no other word for it - Visual Studio coined it back then) and keywords to create predefined codeblocks (for instance: typing pydef and hitting the tab key will create a fully matured def-structure for Python with spaceholders for each element from which to which you can jump by pressing tab). Nice colorschemes would make programming a lot more pleasuring. Maybe it's simply too much I want it to have, but maybe there's an app which gives me all I want and need.
    Thanks in advance and greeting
    cg

    chaosgeisterchen wrote:What I do not like about VIM is the uncommon way of controlling it. I am used to do it the fast way - saving with CTRL+S - which takes me quite some more time with VIM, but that's something I could overcome.
    If ctrl-s for save is something you want, you can easily implement it in vim.
    inoremap <C-s> <esc>:w<cr>a
    nnoremap <C-s> :w<cr>
    If you decide to stick with :w (or even if you don't), I can recommend the following map:
    nnoremap ; :
    vnoremap ; :
    This allows you to enter extended mode by just hitting ; instead of :. It seems like just a small change, but it really makes a big difference, at least for me.
    mosor wrote:Actually, Vim doesn't have IntelliSense equivalent, because it doesn't "understand" the code, class hierarchies/members/methods, itd... That's something I miss the most while hacking Python code with Vim - WingIDE has such great code completion.
    Make sure you have :set omnifunc=pythoncomplete#Complete, which it should be whenever you edit a python file, and use ctrl-x ctrl-o to complete. The completion isn't always perfect, but it works fairly well.

  • Java programming editor

    Hi experts,
    I am developing an editor which is not only capable of writing java programs but at the same time it should be able to execute them using a menu option.Keeping this in view i started my work,i achieved it up to 80%,but overall i regard it not up to the mark.
    The reason is compilation keeps me waiting for 10 sec with some redundant time in between,i am using java runtime environment
    Runtime.getRuntime.execute()
    Further i am able to execute only swing applications,
    System.out.println() works at few occasion but not all.If i use getOutputStream()(),getInputStream(),getErrorStream methods ,even then limited functionality is achieved.
    I changed the logic by switching on to creating a batch file and then executing it using Runtime.getRuntime.execute().Batch file contains
    java <progname>
    It stucks up too !!

    I would suggest you look at eclipse, and netbeans which does what you suggest and much, much more.
    You can get the source for these and see what they do. This might help you, or you could just use one of these iDEs.

  • How to invoke a stored program using SQL.

    Is it possible to invoke an Oracle 8 stored function from SQL and if so how is it done?

    this?
    don't have 8 verson...and tested in 10g
    SQL> CREATE OR REPLACE function test_xyz(in_date in timestamp) return varchar2
      2  test_date varchar2(11) := 'dd/mon/yyyy';
      3  begin
      4  return to_char(in_date,test_date);
      5  end;
      6  /
    Function created.
    SQL>
    SQL> select test_xyz(sysdate) from dual;
    TEST_XYZ(SYSDATE)
    22/jun/2007
    SQL> select test_xyz(systimestamp) from dual;
    TEST_XYZ(SYSTIMESTAMP)
    22/jun/2007
    SQL>

  • PL/SQL  - Stored Programs

    What is the different between Stored Procedure and Stored Function?

    hmmmm ....Thank you JS1 just now i saw a example
    CREATE OR REPLACE FUNCTION get_num_of_employees (loc VARCHAR2, job VARCHAR2)
    RETURN NUMBER IS
    query_str VARCHAR2(1000);
    num_of_employees NUMBER;
    BEGIN
    query_str := 'SELECT COUNT(*) FROM '
    || ' emp_' || loc
    || ' WHERE job = :job_title';
    EXECUTE IMMEDIATE query_str
    INTO num_of_employees
    USING job;
    RETURN num_of_employees;
    END;
    http://download-uk.oracle.com/docs/cd/B10501_01/appdev.920/a96590/adg09dyn.htm

  • Tables storing Program Performance time

    Hi All,
    Can any one tell me the TAbles which store the
    execution time of  proagrams which are runnning daily .
    Regards
    Babu

    Hi Al,
    Not for JOB .
    ABAP programs running in foreground...
    Regards
    babu

  • How to know the dir where my jar program is stored

    I write a swing editor text files.
    I make the jar of my program: Editor.jar
    Then with jsmooth (open source java wrapper) i make the exe: Editor.exe.
    The user can put the exe anywhere in a folder and use it, example:
    User have a text file on desktop and want to open it:
    User make a double click on file.txt --> Microsoft Windows Xp open my program and load the file.
    All work correctly but there is one problem.
    My program Editor.exe when is close make a Editor.properties file. I would like this file to be created in the same dir where Editor.exe is stored.
    I don't know how to do this thing. I write this code:
    public static void save(Properties propertiesFile) {     URL jarURL = (PropertiesFile.class.getClassLoader().getResource("."));          FileOutputStream out;     System.out.println("dir \n" + jarURL.getFile());          File f = new File(jarURL.getFile()+"Editor.settings");     try {          out = new FileOutputStream(f);                    propertiesFile.store(out, "Program settings");          out.close();     } catch (IOException ioe) {          ioe.printStackTrace();     }}
    This code is wrong because jarURL.getFile() is the directory where file.txt is stored but i want the dir where Editor.exe is stored.
    I try with this line of code:
    URL location = getClass().getProtectionDomain().getCodeSource().getLocation();
    i get this dir:
    /C:/Documents%20and%20Settings/Andrew/Settings%20local/Temp/temp10
    .jar
    This is a correct dir, because the program is stored ind dir
    c:\program files\editor\Editor.exe
    Anybody can help me?
    THX

    try below...
    public java.net.URL getResource(String strName)throws java.net.MalformedURLException
                String baseURL = getClass().getResource("/resources").getFile(); // ("/resources" ):- is a file /dir stored in in jar
                try{
                        baseURL = java.net.URLDecoder.decode(baseURL,"UTF-8");
                }catch(Exception e){}
                if(baseURL.startsWith("file:"))
                        baseURL = baseURL.substring(baseURL.indexOf(":")+1);
                java.io.File fBase = new java.io.File(baseURL);                    // Original URL Ref. To Jar Archive
                java.io.File jarFile = fBase.getParentFile();                    // Jar File Reference
                java.io.File rootDir = jarFile.getParentFile();                    // Root Directory which Contains Jar File
                java.io.File fileApp = new java.io.File(rootDir,strName);               // Requested File/Directory     
                if(fileApp.exists())
                    return fileApp.toURL();
                else
                    return null;
        }Timir

Maybe you are looking for

  • Command issue in smartform main window table footer

    Hello Experts , I got an issue , that really puzzled me ! hope you could help . In my smart form main window I have a loop node inside loop node is a table , and there is a footer in this table node. in footer event , I only set check box 'at page Br

  • [SOLVED] systemctl suspend don't work

    Hi all: Well, last week I migrate to systemd and I have a problem. When I issue systemctl suspend from a tty or gnome terminal, it not works well and the computer not suspend. Log using journalctl is: -- Logs begin at Thu, 2012-10-18 19:37:38 ART, en

  • Oracle SOA Suite 11g - 11.1.1.2 Complete pdf documentation link

    Hi All, Can you please point me the link to download complete pdf documentation link for "Oracle SOA Suite 11g - 11.1.1.3" Thanks in advace! Regards, -Siva.

  • Oracle Package Procedures

    Hello all, Does Forte support the calling of overloaded package procedures in Oracle? Tim Sawyer PanCredit Leeds, UK.

  • Birthday and Age in iOS 6

    In the Mac OS (10.8) calender App I can see the age of a person, when I write the year of birth in the adressbook. But I cannot see it in the calender App on iPhone or iPad (iOS 6). Is there any possibility to see it on the iOS devices?