Schema browsing

Hi Guys,
I am looking for a specific word to locate corresponding fields in an oracle database. I want to browse through all existing schemas (or only a specific schema) for this word
anybody can help with a sql script that can i use??
thanks

What might get you started is running a SQL Developer report.
Please pull down the menu View || Reports
This will expose a hierarchy of potentially useful metadata.
Navigate through
All Reports || Data Dictionary Reports || Table || Comments
and double click on the "Column Comments" report.
After connecting to a target schema, you can filter your results based upon the table and column names that you are trying to find.
For instance, you might be interested in all the columns that end with "ID". No problem, just click on Column and enter ID in the Value box. Any partial match on ID regardless of case will appear. If the database developers were kind enough to include comments with their column definitions, then that text will appear next to the columns in the report.
Hope this helps.
Steve newguy

Similar Messages

  • Copying a table with the right-click menu in schema browser fails to copy comments when string has single quote(s) (ascii chr(39))

    Hi,
    I'm running 32-bit version of SQL Developer v. 3.2.20.09 build 09.87, and I used the built in context menu (right-clicking from the schema browser) today to copy a table.  However, none of the comments copied.  When I dug into the PL/SQL that the menu-item is using, I realized that it fails because it doesn't handle single quotes within the comment string.
    For example, I have a table named WE_ENROLL_SNAPSHOT that I wanted to copy as WE_ENROLL_SNAPSHOT_V1 (within same schema name)
    1. I right-clicked on the object in the schema browser and selected Table > Copy...
    2. In the pop-up Copy window, I entered the new table name "WE_ENROLL_SNAPSHOT_V1" and ticked the box for "Include Data" option.  -- The PL/SQL that the menu-command is using is in the "SQL" tab of this window.  This is what I extracted later for testing the issue after the comments did not copy.
    Result: Table and data copied as-expected, but no column or table comments existed.
    I examined the PL/SQL block that the pop-up window issued, and saw this:
    declare
      l_sql varchar2(32767);
      c_tab_comment varchar2(32767);
      procedure run(p_sql varchar2) as
      begin
         execute immediate p_sql;
      end;
    begin
    run('create table "BI_ETL".WE_ENROLL_SNAPSHOT_V1 as select * from "BI_ETL"."WE_ENROLL_SNAPSHOT" where '||11||' = 11');
    select comments into c_tab_comment from sys.all_TAB_comments where owner = 'BI_ETL' and table_name = 'WE_ENROLL_SNAPSHOT' and comments is not null;
    run('comment on table BI_ETL.WE_ENROLL_SNAPSHOT_V1 is '||''''||c_tab_comment||'''');
    for tc in (select column_name from sys.all_tab_cols where owner = 'BI_ETL' and table_name = 'WE_ENROLL_SNAPSHOT')
        loop
       for c in (select comments from sys.all_col_comments where owner = 'BI_ETL' and table_name = 'WE_ENROLL_SNAPSHOT' and column_name=tc.column_name)
       loop
       run ('comment on column BI_ETL.WE_ENROLL_SNAPSHOT_V1.'||tc.column_name||' is '||''''||c.comments||'''');
    end loop;
    end loop;
    EXCEPTION
      WHEN OTHERS THEN NULL;
    end;
    The string of the table comment on WE_ENROLL_SNAPSHOT is this:
    WBIG table of frozen, point-in-time snapshots of Enrolled Students by Category/term/pidm. "Category" is historically, and commonly, our CENSUS snapshot; but, can also describe other frequencies, or categorizations, such as: End-of-Term (EOT), etc. Note: Prior to this table existing, Census-snapshots were stored in SATURN.SNAPREG_ALL. All FALL and SPRING term records prior-to-and-including Spring 2013 ('201230') have been migrated into this table -- EXCEPT a few select prior to Fall 2004 (200410) records where there are duplicates on term/pidm. NO Summer snapshots existed in SNAPREG_ALL, but were queried and stored retroactively (including terms prior to Spring 2013) for the purpose of future on-going year-over-year analysis and comparison.
    Note the single quotes in the comment: ... ('201230')
    So, in the above PL/SQL line 11 grabs this string into "c_tab_comment", but then line 12 fails because of the single quotes.  It doesn't know how to end the string because the single quotes in the string are not "escaped", and this messes up the concatenation on line 12.  (So, then no other column comments are created either because the block throws an error, and goes to line 22 for the exception and exits.)
    When I modify the above PL/SQL as my own anonymous block like this, it is successful:
    declare
      c_tab_comment VARCHAR2(32767);
    begin
    SELECT REPLACE(comments,chr(39),chr(39)||chr(39)) INTO c_tab_comment FROM sys.all_TAB_comments WHERE owner = 'BI_ETL'   AND table_name = 'WE_ENROLL_SNAPSHOT'  AND comments IS NOT NULL;
    EXECUTE IMMEDIATE 'comment on table BI_ETL.WE_ENROLL_SNAPSHOT_V1 is '''||c_tab_comment||'''';
    for tc in (select column_name from sys.all_tab_cols where owner = 'BI_ETL' and table_name = 'WE_ENROLL_SNAPSHOT')
        loop
       for c in (select REPLACE(comments,chr(39),chr(39)||chr(39)) comments from sys.all_col_comments where owner = 'BI_ETL' and table_name = 'WE_ENROLL_SNAPSHOT' and column_name=tc.column_name)
       loop
       EXECUTE IMMEDIATE 'comment on column BI_ETL.WE_ENROLL_SNAPSHOT_V1.'||tc.column_name||' is '||''''||c.comments||'''';
    end loop;
    end loop;
    EXCEPTION
      WHEN OTHERS THEN NULL;
    end;
    On lines 4 and 8 I wrapped the "comments" from sys.all_tab_comments and sys.all_col_comments with a replace command finding every chr(39) and replacing with chr(39)||chr(39). (On line 8 I also had to alias the wrapped column as "comments" so line 10 would succeed.)
    Is this an issue with SQL Developer? Is there any chance that the menu-items can handle single quotes in comment strings? ... And, of course this makes me wonder which other context menu commands in the tool might have a similar issue.
    Thoughts?
    thanks//jacob

    PaigeT wrote:
    I know about quick drop, but it isn't helpful here. I want to be able to right click on a string or array wire, navigate to the string or array palette, and select the corresponding "Empty?" comparator. In this case, since I do actually know where those functions live, and I'm already using my mouse to right click on the wire, typing ctrl-space to open quick drop and then typing in the function name is actually more work than navigating to it in the palette. It would just be nice to have it on hand in the location I naturally go to look for it the first time. 
    I don't agree with this work flow.  Right hand on mouse, left hand on home keys.  Pressing CTRL + Space is done with the left hands, and then you could assign "ea" to "Empty Array" both of which is accessible with the left hand.  Darren posted a bunch of great shortcuts for the right handed developer.
    https://decibel.ni.com/content/docs/DOC-20453
    This is much faster than waiting for any right click menu navigation, even if it is found in the suggested subpalette.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • SQL developer 3.1 in schema browser doesn't show package body

    Hi,
    When i search a package with schema browser, i can't see the package body of other owner, the menu "edit body" is disabled.
    My user as select any dictionary et select_catalog_role
    When i connect with a DBA's user, i can see all.
    I'am on windows with sqldev 3.1
    Thanks

    Hi erifet,
    This one seems to go back and forth. It was originally fixed in Schema Browser for 3.0. The "Edit Body" was greyed out, but an "Open Body" icon in the code editor toolbar for Package Spec was enabled. Here is the forum reference:
    30EA1 package bodies missing in schema browser still not fixed
    In 3.1, both "Edit Body" and "Open Body" are greyed out, and that applies both to Schema Browser and Connection Navigator for Other Users packages, so at least 3.1 is consistent. The difference between the Browser and the Navigator is Schema Browser has no option to display a Package Body type (must go through Package Spec type), while the Connection Navigator displays a Package Body node type in the tree beneath the Spec node. In the forum thread AM references, Vadim explains what 3.1 does: it uses the ALL_OBJECTS view, which apparently does not include package bodies. Off-hand I'm not sure why it does not include them, and the following link doesn't shed any light:
    http://docs.oracle.com/cd/B19306_01/server.102/b14237/statviews_1001.htm
    Adding the execute privilege on the package does not help either. At least you have the workaround of using the Connection navigator to view the package body metadata (code) of Other Users if you have been granted either SELECT_CATALOG_ROLE or SELECT ANY DICTIONARY. As for returning to the 3.0 Schema Browser behavior, perhaps Vadim will notice your post and have some explanation as to why or why not that may be possible.
    Regards,
    Gary
    SQL Developer Team

  • Schema browser is missing the Scheduler

    When using the Schema Browser view, the Scheduler doesn't show up in the list of objects. I need to switch back to the main 'Connections' view in order to get to the Scheduler option.
    Is there a reason for that? Can that option be added to the dropdown list? This is missing from both 3 and 4.
    thanks,
    Steve

    Hi Steve,
    Each item that appears in the Schema Browser drop-down list of object types represents a container for a simple, flat list of instances of that type.  The Scheduler, on the other hand, is (at least) a two-level hierarchy where each item in the first level represents a container of a different type.  So, while almost anything is possible from a programming perspective, Schema Browser so far only includes types that fit this simple pattern.
    You might trying logging a feature request on the SQL Developer Exchange:  http://sqldeveloper.oracle.com/
    Regards,
    Gary
    SQL Developer Team

  • No packages, procedures and functions in Schema Browser

    Hi there,
    SQL Developer 2.1 Early Adopter 2:
    For Databases below 10g in Schema Browser no packages, procedures and functions are visible (no entries under these nodes).
    All other objects are shown correctly.
    Is this a known issue?
    Regards
    Andre

    The thread below seems to have an "official" response to this issue:
    SQL Develpoer EA - 9i Support
    Cheers,
    Chris

  • Schema browser not available on non-Oracle databases

    You can't utilize Schema Browser with SQL Server and neither can you drag a SQL server object onto the worksheet
    3.2.2
    Let us know the plan

    The SQL Server DnD support from the tree is logged as a bug.
    There are no plans to support the Schema Browser for non-Oracle platforms.

  • 3EA3/ 3.0 production - Schema browser

    I just started to play with EA3 and i found a strange behaviour when i'm using Schema Browser and try to filter the schema:
    - by default system user is shown and when i insert a different name - say test - under filter schema, i see the little filter symbol on the right side of the system user and i don't see any objects but i can see other schema's objects including test schema.
    My understanding is that by filtering the schema i should see only the filtered objects but this is not the case.
    In addition to this, i would expect the filtered user - in my case TEST - to be shown having the filter symbol(i don't want to go through the whole list of schemas and look for the filter symbol).
    Is this a bug or i'm missing something?
    Thanks,
    Dani

    I confirm the bug it's fixed in the final release, thanks John!
    I have also found that
    1) if i set the filter schemas and restart SqlDev, the filter is cleared
    Is this intended or it's a bug? Is it possible to keep the settings or set the default schema per connection?
    I remember i saw a request on exchange about setting the default schema, i'll try to find it.
    2) if i open the Schema browser and then close the connection, the Schema browser remains opened.
    This implementation is very awkward since you can't do anything with the Schema browser if the connection is closed, so what's the reason of not closing it??
    John,
    let me know your thought and then will see if i have to open a new request on Exchange.
    Thanks,
    Dani

  • EA 3.0  and schema Browser with SQL Server

    Once again a very good tool!
    In testing today I noted on a SQL Server connection in Schema browser even logged on as SA (like SYS in Oracle) I could not change from schema to schema as you can do in Oracle.
    If would be awesome if this could be resolved prior to GA.

    Yup, this is a bug. The Schema Browser in the EA is Oracle focused. But we intend to provide support for our supported third-party connection types (and Times Ten as well).
    - John
    SQL Developer Team

  • SQL Dev 2.1 RC1 - Expanding packages under Schema Browser

    When i navigate to the the schema brower and expand my list of packages i click on the (+) to expand the package and see the body but by clicking on the (+) it open the package spec in a sql worksheet, if i then close this it collapses the package up again but the second time i can then expand down to body but this to then open up straight away before i get a chance to specify which proc/function i want to look at.
    Anyone else hiting this problem ?
    Is this expected or is it a bug ?
    Thanks
    Trotty
    I am running against a 9i DB if that makes any difference.
    Edited by: Trotty on Dec 3, 2009 1:06 PM

    Trotty,
    thanks for your reply.
    That did the trick... kind of. I'm now forced to double click to open the body. :(
    I find really frustrating how a development tool makes browsing and accessing the objects a PL/SQL developer deals with more frequently (package BODIES) inconvenient.
    OTOH it's free, so maybe I should just shut up and go back to work... :)
    Alessandro
    Edit: BTW, it's still a bug, IMHO as I didn't click on the object but only expanded a node clicking on +* (that option should have nothing to do with this action).
    Edited by: archimede on Dec 18, 2009 12:39 PM

  • Is there a schema browser in Sql Developer?

    If its not there, that feature will be nice..
    any clues anyone?

    Hi!
    There is a option called Management Console Window - from where you can browse the scheama. But, that comes with the Server version. If you have database installed in your computer - then only u r able to view that option. But, this option avilable in Oracle 9i. I don't know - whether it is avilable in it's previous version or not.
    Regards.
    Satyaki De.

  • Oracle DTP plug-in running analyze when table is exploded in schema browser

    When I click on the + next to a table name in this plug-in, this plug-in is submitting an analyze table {table_name} compute statistics;
    I have verified this by monitoring the Oracle session I am connected to.
    We CANNOT release this product to our developers, since simply opening up a table defintition to view it's columns indexes, etc. on a large table (and we have tables in the 100's of GB range) will hammer our databases, not to mention the fact that it may run for who knows how long.
    For the life of me, I cannot imagine why it is doing this, especially since statistics are already available in the database.
    Has anyone else experienced this behavior?

    Thanks Robert,
    Thanks for ur reply.
    Yes this has been understood that this is due to the browser's pluginn shortage.
    But ist is not specifing the specific plugin requred.
    I tried the same with netscape .
    It specifies to the '' application/x-java-applet;jpi-version=1.4.2_06 ''
    Now tell me where to and how to get that plugin
    Thanks..........

  • Schema browser is very slow

    Hi,
    In sql developer, when I click on the tables or views, it takes too much time. Never finsih even after 20 minutes if the schema has many tables. TOAD display's these very fast. Does any one know whether there is any fix for this.
    We are moving to SQL develoeprs from TOAD and lookign similar fucntioanlity in SQL developer.
    Thanks
    Anand

    DB and sqldev versions?
    K.

  • Tables not showing up in schema browser (3.0 final)

    I don't know if this has been posted by anyone else, or if anyone else if having this problem, but if I expand the + under the Tables collection, I don't get any tables. I supposed that it was a filter problem because when I clear the filter, the tables show up. Of course, I don't want to reset filters for all of my connections. But, alas, it didn't end there. When I cleared the filter, disconnected, and then reconnected, either the filter change didn't save or something else was wrong because I couldn't view tables again. :/
    Note: I did migrate my settings from the EA3 release before running this.
    Thoughts?
    Edited by: fmercury on Mar 30, 2011 7:49 AM

    I'm having the same problem. I just published a blog with photo pages, but the photos do not load using Firefox 3.0. They show just fine using Safari. I've not tried it yet with Explorer, but friends who have logged in have not complained about not seeing the photos, so I suspect the problem is specific to Firefox.
    Anyone have an idea what the problem might be?

  • Can't browse schema in JDeveloper

    I have JDeveloper 3.2 and Oracle 9i. I've created connection in JDeveloper to my database, it's OK. But when I'm trying to browse tables in my schema in Entity Bean Wizard or schema browser, I get nothing. Can anybody help me?

    Sorry, forgot to mention, I’m using Linux. I don’t think I can run jdevw.exe. If I double-click it, I get an error.

  • Could not get schema Object:java.sql.SQLSyntaxErrorException ora-904

    All of a sudden I get
    Could not get schema Object:java.sql.SQLSyntaxErrorException: ORA-00904: "SYS"."O"."NAME": ongeldige ID
    when doing anything in the tables tree in the connections pane
    The only thing I set recently is pga_aggregate_target
    Environment
    Oracle 11.2.0.1
    OS Windows Vista Ultimate sp2
    Sql developer 2.1.1.64.39 with its own JDK
    As the download links on OTN are broken I can not upgrade, and I'd rather not work in command line sqlplus.
    Help!!!
    Sybrand Bakker
    Senior Oracle DBA

    My copy of sqldeveloper isn't located in that directory. Would that matter?
    In the mean time I have disabled filtering the tables node. Opening the tables node doesn't result in exceptions anymore.
    Now, when I click on any table in that node I get 4 identical ora-904 error messages for sys.o.name for any table.
    Apparently it is querying either the all_objects view and it thinks it is querying sys.obj$.
    I didn't yet enable sql_trace for the session, I'm more or less giving up on sqldeveloper. I can not use the space bar in any datagrid, sqldeveloper has always been extreemly unresponsive when navigating the schema browser (as opposed to Toad), etc, etc. Too bad I bought Sue Harpers book, but I think I will be de-installing sqldeveloper soon.
    Sybrand Bakker
    Senior Oracle DBA

Maybe you are looking for

  • Script that saves every visible layer as individual file in folder with same name

    Hello. In my PSD I have many folders with unique name (like "1234"), that contains layers named as digits (like "0", "1", "2" etc). I need to save each layer as JPG to folder with the same name and hierarchy that is in PSD file. How to do that using

  • Audio lost when converted to iPod

    I have a video (48.4 MB mpg) that plays fine in QT and iTunes but when it is converted (with either) to iPod (24.2 MB m4v) using "Convert selection to iPod" the audio is lost but video is fine. Any suggestions. Thanks. Phil

  • Adobe Manager won't install

    I have CS6 and when I try to install CC the Adobe Adm Manager sees another version o fAdobe Adm Manager and won't finish the install.

  • Monitoring for Inbound Emails

    Hi There! I have been asked by a client who recently had an outage of inbound emails due to corrupted Kasepersky Definitions in GWAVA, that we setup something that alerts them when new emails have no come into the receive folder from externally withi

  • Notification complete

    Dear all,           I am running IW22 bdc for changing the notification datas and for changing the syatem status from INPR to NOCO, i am using the function module IQS0_COMPLETE_NOTIFICATION for changing the status from INPR to NOCO . when i am runnin