Code searching in sql developer

Hi, I was wondering how I could search through all my packages/procedures for a particular piece of text?

I don't think there is anything built in.. You can run a query against the source text (although it may take a while)
SELECT * FROM sys.all_source WHERE text LIKE '%search_for_me%' You can narrow it down to a specific user or object by changing the where clause.
However, the quickest is probably to just grep for the code in your source directories if you have it on a unix box.

Similar Messages

  • Code Templates in SQL Developer 2.1

    Hi all!
    Looks like this feature does not work at all. Even followed the instructions from Sue's book page 99:
    In SQL Developer 2.1, simply start typing the code from the
    template, and the full code is displayed in the code insight drop list. Select the code
    to add it to the SQL Worksheet.
    Any ideas?
    Thanks,
    Radu

    Hi,
    Really disappointed to see that code template dont work in v 2.1. If it is considered that code insight can replace ctr + shift + T than this is wrong assumption.
    ctr + shift + T was so easy to use. Also the code insight dont pop up for templates having PL/SQL blocks. For examples
    If a template T1 is like
    BEGIN
    <Some processing statements>
    END;
    than T1 can not be used as template in 2.1 unlike 1.5.
    Hope the issue is fixed very soon else users would prefer to use 1.5.
    Regards,
    Sandeep G
    Edited by: [email protected] on Jan 28, 2010 3:37 AM

  • Code Insight Issue - SQL Developer 1.1 (1.1.0.23 Build Main 23-64)

    Dear SQL Developer Team,
    I have a slight issue with the Code Insight.
    I have created a package with three procedures
    create or replace PACKAGE PACKAGE1 AS
    procedure test1 (inpar varchar2);
    procedure test2 (inpar varchar2);
    procedure test3 (inpr varchar2);
    END PACKAGE1;
    When I try and reference the procedures in the package code insight only shows two procedures (see this link for the screenshot http://i12.tinypic.com/3zqbuiv.gif)
    Any ideas ?
    Chris

    Sorry Chris, been tied up. looked at this
    1. created a PTN table. This is the DDL export of that table. Range partition on date.
    -- DBMS_METADATA was unable to use TABLE_EXPORT to generate sql. Now trying to use TABLE.
    CREATE TABLE "HR"."TABLE1"
    (     "ID" NUMBER,
         "HIREDATE" DATE
    ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
    STORAGE(
    BUFFER_POOL DEFAULT)
    TABLESPACE "USERS"
    PARTITION BY RANGE ("HIREDATE")
    SUBPARTITION BY LIST ("ID")
    (PARTITION "P1" VALUES LESS THAN (TO_DATE(' 2006-12-31 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
    PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
    STORAGE(
    BUFFER_POOL DEFAULT)
    TABLESPACE "USERS"
    ( SUBPARTITION "SYS_SUBP21" VALUES (DEFAULT)
    TABLESPACE "USERS") ,
    PARTITION "P2" VALUES LESS THAN (TO_DATE(' 2007-01-31 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
    PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
    STORAGE(
    BUFFER_POOL DEFAULT)
    TABLESPACE "USERS"
    ( SUBPARTITION "SYS_SUBP22" VALUES (DEFAULT)
    TABLESPACE "USERS") ) ;
    2. Export from Resultset tables in query. As insert statements
    REM INSERTING into TABLE1
    Insert into TABLE1 ("ID","HIREDATE") values (1,to_date('12-DEC-06','DD-MON-RR'));
    Insert into TABLE1 ("ID","HIREDATE") values (2,to_date('21-JAN-07','DD-MON-RR'));
    I'm also getting the others working well too. I 'm running the latest version that we are about to release a patch on so it should be good when it comes out.

  • Forum Search Tool - SQL Developer - Wrong location?

    In the Forum Search - Category or Forum, the SQL Developer appears in Database division.
    I think he should appear in the Developers Tools division....

    Another way of getting to the correct forum is to use a feature's portal. Might be helpful to know that route when unsure of which forum.
    For example, in this case you could
    start at Oracle Technet homepage portal
    go to either
    - Database product portal OR
    - Developer tools portal
    both will point to the SQL Developer portal
    which points to the SQL Developer
    This is simply to indicate that there are several different, legitimate, paths to a forum - including through the Dev Tools as well as through the Database area.
    My point being that no matter where we put the forum, basic taxonomy principals indicate that someone will have a legitimate argument to move it somewhere else. Thus fulfilling the basic human need to require politics in any and every area of existence. <g>

  • Code obfuscation using SQL Developer

    Hello all,
    In SQL Developer, it's possible to obfuscate a single file using "refactoring->obfuscate". Is there a way to do this for a number of files at once, either within the IDE, or more practically, at the command line.
    Regards
    Femi.
    Edited by: 995332 on Mar 21, 2013 9:42 AM

    Hi Femi,
    SQL Developer does provide command line support for some UI features like Unit Testing and Formatting (look in the sqldeveloper\bin directory for the scripts), but not unfortunately for the Refactoring feature. That is available only from the UI.
    Regards,
    Gary
    SQL Developer Team

  • SQL Developer 2.1.1.64 - code template does not work in Windows Vista

    I have been trying to import a code template in SQL Developer 2.1.1.64 / Windows Vista using the following steps:
    1. Import template (xml) file using "Preferences > Database > SQL Formatter > Import..." option. Pressed "OK" button.
    2. Clicked on "Preferences > Database > SQL Formatter > Oracle Formatting".
    I expected to see the new profile under "Profile" drop-down-list-box, but it does not appear there.
    I tried putting the template (xml) file under various locations, including:
    (a) C:\Users\<user_name>\
    (b) C:\Users\<user_name>\AppData\Roaming\SQL Developer\
    Please let me know any suggestions that you may have.
    Thanks in advance.

    I got it to work. In step 1 that I mentioned, "OK" button should not be pressed; go to step 2 without pressing "OK" button.

  • SQL DEVELOPER 3EA1 -- Doesn't show my Code Template ?

    Hi
    I wander if someone could help to workout with Code template in SQL Developer 3.0EA1 (0.5.97)
    I have many code template in my previous release 3.0 ( Tools --> Preferences --> Database --> SQL Editor Code Template ). When I was typing first word of Code Template, It was appearing but this is not the case in 3.0EA1 , It shows me default Code Template not the one I am looking for.
    Thanks
    Hemesh.

    They have been removed:
    http://vadimtropashko.wordpress.com/2011/10/11/documentation-code-snippets/
    Here is how you get your programed code template back. In the worksheet invoke your code template the "official" way, that is via abbreviation. Run the statement. Now it's in SQL History and should be shown in code insight.

  • SQL Report not showing data - available in SQL Workshop and SQL Developer

    I am having an issue with developing a SQL Report in APEX 3.2.1. I run the code in both SQL developer and SQL Workshop and I get data pulled back (both against my development environment). When I run the same code in a SQL Report region, it returns no data available. Does anyone have any idea what would be causing this? Other regions on the page accessing different tables in the same schema return data without issue. Any help would be appreciated.
    Thanks
    Freddie

    Could you explain the last comment a bit more. Here is a bit more info just in case I touch on the info with it. The db schema is BPAMGR, the Workspace is BPAMGR. We use the same schema for all of our reporting. All of our tables are in the same schema. We don't use any tables outside of this schema. Our APEX workspace has been associated to only this schema. The tables are able to be queried by SQL Workshop in the same APEX instance that the report application is under.
    Freddie

  • SQL Developer consumes a lot of memory

    Sql developer consumes a lot of RAM (around 100 MB) few minutes after start of application . any tips to reduce this?

    This is usually due to the caching of database objects on support of code insight and is dependent on the number of objects in the database. As documented in the readme.txt in the sqldeveloper home directory, you can disable code insight.
    2.1  To disable Code Insight
    Run SQL Developer from a command line using the following statement:
       Windows : sqldeveloper -J-Dsdev.insight=false
       Linux or Mac: Run sh sqldeveloper -J-Dsdev.insight=false
    or edit sqldeveloper.conf and add "AddVMOption -J-Dsdev.insight=false"

  • Package, Function in SQL Developer

    DB 10gR2
    SQL Developer 2.1.1.64
    I can see the following package's code on my SQL Developer
    create or replace PACKAGE zero AS
    FUNCTION one (P_TABLE VARCHAR2) RETURN VARCHAR2;
    FUNCTION two RETURN VARCHAR2;
    END zero;
    But I can't find function one or function two on the left hand side navigation. Why can't I see the codes for both of the function? and how do I see the codes of those function?
    Thanks

    You are seeing the package specification. To see the body (what you call "codes"), you should expand the package's navigator node and click on the body exposed just below.
    Hope that helps,
    K.

  • SQL/Developer & Resource Usage.

    A quick comparison with Toad on XP.
    Both software connected to same database running a blank sql window.
    Toad = 30MB
    SQL/Developer =60MB
    Usage of SQL/Developer see memory usage rocket to 180MB.
    Shutdown of SQL/Developer closes down the process but the PC still runs slow and requires a reboot.
    Nice product but what's the deal guys ?

    It's the insight stuff.
    You shold turn off sql insight as documented here: http://www.oracle.com/technology/products/database/project_raptor/ea6_relnotes.html.
    <snip>
    We now have a command line way to turn off code insight. This is very useful for users who access larger databases. To disable Code insight, startup SQL Developer from the command line using:
    On Windows: sqldeveloper -J-Dsdev.insight=false
    On Linux or Mac: Run sh sqldeveloper -J-Dsdev.insight=false
    or edit sqldeveloper.conf and add "AddVMOption -J-Dsdev.insight=false".
    </snip>
    -kris

  • Vote/Comment on SQL Developer Add-in: CopyAsHtml

    Hi,
    I'm not sure if this is against any rules, but I wanted to make the SQL Developer community aware of this feature request and would ask you to simply add a vote/comment on this if you used this feature from SQL Developer 3 to allow you to copy code out of SQL Developer with full syntax highlighting, font, and indentations into 3rd party programs.
    Vote here:
    https://apex.oracle.com/pls/apex/f?p=43135:7:4683410243712::NO::P7_ID:41621
    Thanks.

    Ok its working again... Initial build of SQL Developer 1.5 (5338) was not showing the geom layers on the georaptor....
    I am happy to report that with SQL Developer 1.5.1 (5440) Georaptor layers on the Spatial view are working again.
    Thanks to the anonymous developers that fixed it!

  • Sql Developer - View source code of procedures, functions & packages in another schema

    Our developers need the ability to view procedures, function, packages etc. in the production database (using SQL DEVELOPER).  They don't have access to sign on as the owner of these
    objects in Production.  They must use their own limited access UserID for this purpose.
    This limited access UserID has been granted select privilege on DBA_SOURCE & DBA_OBJECTS.  The developers need the ability to view the source of these object via
    the tree view in SQL DEV.  They should be able to click on "other users" in the SQL DEV tree view and see a listing of the owner schema objects.  Then they should
    be able to select the desired object and view the source code.  These developers are used to using GUI interfaces.  Selecting from DBA_SOURCE would not be an
    option for them.
    I understand that if the limited user is granted SELECT ANY DICTIONARY or SELECT_CATALOG_ROLE then this functionality will work.  The problem is those
    privileges/roles  provide much more access than should be granted to these limited access users. Granting DBA to these users is also not an option.
    In TOAD and other end-user tools this functionality works when only select privilege on DBA_SOURCE & DBA_OBJECTS has been granted.  We need this same functionality
    in SQL DEV.
    While searching this forum and the internet, I see that other installations have this same issue.
    Please enhance SQL Developer with this functionality. 
    Thank you, ellen

    Just to double check that I'm interpreting the problem correctly, is the following true:
    select * from all_objects where object_name = 'DBA_SOURCE'
    returns nothing
    select * from dba_source where name = your PL/SQL module
    returns all the code

  • SOLVED: SQL Developer Code Compilation with warnings

    Hi, I think I found one bug in sql developer.
    I have one pl/sql package, that contains a lot of code. In the previous SQL Developer releases (prior to 1.2) when you compile the code, first appears the errors and then the warnings. Because of some type conversion in my sql statements i have more than 20 warnings, and now i cannot see the errors (i think that they will appear if i'm able to increase this "20 messages" limit). I was searching for some option in SQL Developer to increase the number of displayed warnings or errors (or turn off the warnings) but i cannot find such parameter.
    Is this a bug, or i'm missing something ?
    PS: because of this, i'm not able to compile my package with sql developer, and i'm compiling via sqlplus.
    null

    Yes, you're missing something: the forum's search feature.
    See:
    compile with many warnings causes compiler dont show errors correctly
    Compiling an invalid packagebody without errormessage
    SQL Developer says Compile sucessful but it is not
    K.

  • SQL Developer 1.5.4.59.40 - IO Exception: Undefined Error VENDOR CODE 17002

    Hi All.
    I hope someone can help.
    I have recently installed Oracle XE on my Vista Ultimate laptop and it is up and running with no apparent problems. I then connected to the HR schema on XE with no problems using SQL Developer 1.2.1.3213 (OLD Version). I noticed that SQL Developer 1.5.4.59.40 (NEW version) was available and downloaded it (the offering without JDK included) and renamed the "C:\Program Files\SQLDeveloper" folder holding the older version to "C:\Program Files\SQLDeveloper_Orig" and placed the new version of SQL Developer in the Prog Files directory to give "C:\Program Files\SQLDeveloper".
    I then ran SQLDeveloper.exe (NEW) and when requested gave the JDK path as "C:\Program Files\Java\JDK_1.6.0_11\bin\java.exe" ('Java -version' gives 1.6.0_11-b03) and migrated over the settings from the previous version of SQLDeveloper (OLD).
    The Application loads fine but when i attempt to connect to XE's HR schema i get the following error:
    "IO Exception: Undefined Error
    VENDOR CODE 17002"
    I have searched to try and find out what is going on but cannot find any solutions that work. The previous 17002 error solutions on this forumn have all failed.
    These included changing the JDK.conf file to hold route to JDK directory and also creating a 'bat' file.
    My system does not have the directory for the JDK in it's PATH environment setting (either USER or SYSTEM) but does include a directory path under SYSTEM environment vars to another version fo JDK on my machine under "C:\Program Files\Sun\JDK\". I thought this may be causing a conflict but it is version 1.6.0.05_b13 and is also compatible-is it not? I also have Java JRE6 (1.6.0_12-b04) on my machine - this does not have a PATH variable and was not referenced when loading SQL Developer when loading the first time.
    Can anyone help me resolve this, why can the previous version still connect OK to XE and not new version? is there something i am missing? Do i require the Java JDK Directory to be placed under a PATH environment SYSTEM variable?
    Thanks in advance,
    M
    Edited by: user592047 on 16-Mar-2009 10:08

    Taken from about SQL Developer:
    Version:
    CVS Version          Internal to Oracle SQL Developer (client-only)
    Java(TM) Platform     1.6.0_11
    Oracle IDE          1.5.4.59.40
    Versioning Support     1.5.4.59.40
    Properties:
    apple.laf.useScreenMenuBar     true
    awt.toolkit                    sun.awt.windows.WToolkit
    class.load.environment          oracle.ide.boot.IdeClassLoadEnvironment
    class.load.log.level          CONFIG
    class.transfer               delegate
    com.apple.macos.smallTabs     true
    com.apple.mrj.application.apple.menu.about.name     "SQL_Developer"
    com.apple.mrj.application.growbox.intrudes     false
    file.encoding               Cp1252
    file.encoding.pkg               sun.io
    file.separator               \
    http.agent                    Mozilla/5.0 (Java 1.6.0_11; Windows Vista 6.0 x86; en_GB) ICEbrowser/v6_1_3
    ice.browser.forcegc          false
    ice.pilots.html4.ignoreNonGenericFonts     true
    ice.pilots.html4.tileOptThreshold     0
    ide.AssertTracingDisabled     true
    ide.bootstrap.start          10390897243225
    ide.build                    MAIN-5940
    ide.conf                    C:\Program Files\sqldeveloper_new\sqldeveloper\bin\sqldeveloper.conf
    ide.config_pathname          C:\Program Files\sqldeveloper_new\sqldeveloper\bin\sqldeveloper.conf
    ide.debugbuild               false
    ide.devbuild               false
    ide.extension.search.path     sqldeveloper/extensions:jdev/extensions:ide/extensions
    ide.firstrun                    false
    ide.java.minversion          1.5.0
    ide.launcherProcessId          2672
    ide.main.class               oracle.ide.boot.IdeLauncher
    ide.patches.dir               ide/lib/patches
    ide.pref.dir                    C:\Users\M\AppData\Roaming\SQL Developer
    ide.pref.dir.base               C:\Users\M\AppData\Roaming
    ide.product                    oracle.sqldeveloper
    ide.shell.enableFileTypeAssociation     C:\Program Files\sqldeveloper_new\sqldeveloper.exe
    ide.splash.screen               splash.gif
    ide.startingArg0               C:\Program Files\sqldeveloper_new\sqldeveloper.exe
    ide.startingcwd               C:\Program Files\sqldeveloper_new
    ide.user.dir                    C:\Users\M\AppData\Roaming\SQL Developer
    ide.user.dir.var               IDE_USER_DIR
    ide.work.dir               C:\Users\M\Documents\SQL Developer
    ide.work.dir.base               C:\Users\M\Documents
    java.awt.graphicsenv          sun.awt.Win32GraphicsEnvironment
    java.awt.printerjob          sun.awt.windows.WPrinterJob
    java.class.path               ..\..\ide\lib\ide-boot.jar
    java.class.version               50.0
    java.endorsed.dirs          C:\Program Files\Java\jdk1.6.0_11\jre\lib\endorsed
    java.ext.dirs               C:\Program Files\Java\jdk1.6.0_11\jre\lib\ext;C:\Windows\Sun\Java\lib\ext
    java.home                    C:\Program Files\Java\jdk1.6.0_11\jre
    java.io.tmpdir               C:\Users\M\AppData\Local\Temp\
    java.library.path               C:\Program Files\sqldeveloper_new;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\oracle\xe\app\oracle\product\10.2.0\server\bin;C:\Program Files\CodeGear\RAD Studio\5.0\bin;C:\Users\Public\Documents\RAD Studio\5.0\Bpl;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Users\Public\Documents\RAD Studio\5.0\Bpl;C:\Program Files\Common Files\Teleca Shared;C:\Program Files\Microsoft Network Monitor 3\;C:\PROGRA~1\DISKEE~1\DISKEE~1\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Java\jdk1.6.0_11;C:\Program Files\Sun\SDK\bin;C:\Users\Public\Documents\RAD Studio\5.0\Bpl;C:\Program Files\Nmap
    java.naming.factory.initial     oracle.javatools.jndi.LocalInitialContextFactory
    java.runtime.name          Java(TM) SE Runtime Environment
    java.runtime.version          1.6.0_11-b03
    java.specification.name          Java Platform API Specification
    java.specification.vendor     Sun Microsystems Inc.
    java.specification.version     1.6
    java.util.logging.config.file     logging.conf
    java.vendor                    Sun Microsystems Inc.
    java.vendor.url               http://java.sun.com/
    java.vendor.url.bug          http://java.sun.com/cgi-bin/bugreport.cgi
    java.version                    1.6.0_11
    java.vm.info               mixed mode
    java.vm.name               Java HotSpot(TM) Client VM
    java.vm.specification.name     Java Virtual Machine Specification
    java.vm.specification.vendor     Sun Microsystems Inc.
    java.vm.specification.version     1.0
    java.vm.vendor               Sun Microsystems Inc.
    java.vm.version               11.0-b16
    jdbc.library                    /C:/Program Files/sqldeveloper_new/jdbc/lib/ojdbc5.jar
    line.separator               \r\n
    oracle.home               C:\Program Files\sqldeveloper_new
    oracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG     true
    oracle.translated.locales     de,es,fr,it,ja,ko,pt_BR,zh_CN,zh_TW
    oracle.xdkjava.compatibility.version     9.0.4
    orai18n.library               /C:/Program Files/sqldeveloper_new/jlib/orai18n.jar
    os.arch                    x86
    os.name                    Windows Vista
    os.version                    6.0
    path.separator               ;
    reserved_filenames          con,aux,prn,lpt1,lpt2,lpt3,lpt4,lpt5,lpt6,lpt7,lpt8,lpt9,com1,com2,com3,com4,com5,com6,com7,com8,com9,conin$,conout,conout$
    sun.arch.data.model          32
    sun.boot.class.path          C:\Program Files\Java\jdk1.6.0_11\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_11\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_11\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.6.0_11\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_11\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_11\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_11\jre\classes
    sun.boot.library.path          C:\Program Files\Java\jdk1.6.0_11\jre\bin
    sun.cpu.endian               little
    sun.cpu.isalist               pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
    sun.desktop               windows
    sun.io.unicode.encoding     UnicodeLittle
    sun.java2d.ddoffscreen          false
    sun.jnu.encoding               Cp1252
    sun.management.compiler     HotSpot Client Compiler
    sun.os.patch.level          Service Pack 1
    user.country               GB
    user.dir                    C:\Program Files\sqldeveloper_new\sqldeveloper\bin
    user.home                    C:\Users\M
    user.language               en
    user.name                    M
    user.timezone               Europe/London
    user.variant     
    windows.shell.font.languages

Maybe you are looking for

  • Yoga 11S WiFi issues

    Hi all, As with many I am experiencing severe Wifi issues with new Yoga 11s. I will try to explain in detail in the hope that someone who better understands how wifi really works might be able to help diagnose. I have a Talktalk badged Huawei HG533 r

  • Attach file tool in Adobe Acrobat XI Standard

    Is it possible to use attach file tool in Adobe Acrobat XI Standard?

  • Adapter Engine Archiving

    Hello guys, I am wondering how to set up background processing for the adapter engine correctly. I want to archive all XI messages passing the adapter engine. So I created a new archive job with no rules. Do I still need the default delete job set to

  • JHeadstart Migration Problem

    Hi, I have an oracle form as an .fmb file. I Need to migrate the form to JDevelope(ADF) using JHeadstart. As the form was built using Form Builder, I created a repository and did a reverse engineering using the Design Capture functionlity of the Orac

  • Disk Volume Needs to be repaired... corrupt files..

    Hi, I am using a macbook pro with the latest version of os x 10.6.2 I went on utilities, Disk utilities to verify the disk. After It has been verified..it generated those two message indicating " The volume Macintosh HD was found corrupt and needs to