SQL Dev anomolies

SQL Dev 3.2.20.09
Windows 7 Pro.
I just installad SQL Dev on a power user's workstation and discovered a couple of things
1) - The tables and views folders in the navigation pane return nothing. If the same user connects with sqlplus and selects from ALL_TABLES and ALL_VIEWS, he gets the expected result.
2) - Well, now I am losing my mind ... I'll leave point #2 for later.

Jeff Smith SQLDev PM wrote:
The tables and views are filtered by your logon user.
ALL_TABLES and ALL_VIEWS show every view and table in the database.
Well, not every table/view in the database, just those the connected user has been granted access to. (ALL_TABLES vs. DBA_TABLES).
You have to navigate down the connection tree to the 'Other Users' node, expand, and pull up your objects by owner/schema/user.
Ah. You may dope slap me on this one. Of course ... the results under the navigation tree are going to default to USER_TABLES, not ALL_TABLES.
For point #2 - this is normal :)And getting more normal with frightening regularity .. for me, anyway!
Edited by: EdStevens on Nov 19, 2012 1:08 PM

Similar Messages

  • Is there a way to create SQL Dev reports with validated binds?

    Is there a way to create SQL Dev reports with validated binds similar to the way user defined extensions can have <prompts> with a <value> that is a SQL statement returning a list of possible values?
    This sure would make select appropriate values for binds in reports easier and less error prone.

    Maybe a forum search on "Windows registry" would turn up some useful things. You're not the first to ask this. You might save yourself and everyone else some time if you'd simply do that.

  • Export arabic character into csv file turns into question mark in sql dev

    Hi,
    I am trying to export a table's output that contains some arabic and english mixed data, when I try to export it in csv, all the arabic characters change into question mark (?) but the same export is working fine on .xls or .xlsx.
    Since we have to export a huge data and csv is much faster thar .xls, kindly let me know why it is happening and what is the solution for this.
    Well, we are on Oracle 11gR2 and Sql Dev is 3.1
    Appreciate your time and experience sharing.
    Regards.

    Hi,
    Since you say it works for xls but not csv, and the only applicable preference setting ( Tools|Preferences|Database|Utilities|Export|Encoding ) should apply to all export formats, I would imagine this is a bug. Especially if the encoding specified in Preferences is consistent with the client OS settings. I was not able to find any prior bug logged against the Export utility for this issue.
    I logged a bug for this:
    Bug 13993410 - FORUM: ARABIC CHARACTER ENCODING RESPECTED FOR XLS BUT NOT CSV
    Regards,
    Gary
    SQL Developer Team

  • SQL Dev converts MS SQL to Oracle - issue with numeric prefix column name

    Hi,
    We're working on migrating MS SQL data into Oracle 10g. An issue we encountered is that some of MS SQL's tables have column names with numeric prefix like 1Q07, 2Q07, ..., 4Q08, and so on. The converted model as well as script can be created. But one thing I notice is that SQL Dev appends a prefix "A" for column names with numeric prefix. This makes sense because Oracle does not allow a column with number. But somehow this does not work with only 4Q
    1Q04 => A1Q01
    2Q07 => A2Q07
    3Q08 => A3Q08
    4Q08 => 4Q08 ???
    Why? Any place in the tool where I can override this?
    Obviously I can manually modify column name 4Q08 to A4Q08 in the script. But by doing this when moving data, it would fail because tool has no knowledge of updated column name.
    Thanks in advance.

    Hi ittichai,
    In <repository>.MIGRATION_TRANSFORMER body
    FUNCTION first_char_check(p_work NVARCHAR2) RETURN NVARCHAR2
    v_allowed := C_DISALLOWED_CHARS || '012356789_$';
    should be
    v_allowed := C_DISALLOWED_CHARS || '0123456789_$';
    If you make this change and convert the 4Q08 will be
    A4Q08 is expected, without any manual rename.
    -Turloch
    Message was edited by:
    Turloch O'Tierney

  • SQL Dev 2.1:Ability to save and load visual query models?

    At SQL Dev 2.1, do we now have the ability to save and load visual query models as with TOAD? Or has that functionality been rolled into the for-pay Data Modeler extension? Seemed strange to hide the functionality deep within SQL Worksheet, then not allow query models to be saved or loaded. From what I recall, load/save was scheduled to be in 2.0.
    I've not yet downloaded and installed 2.1, but also as I recall, it was promised to be a significant (e.g. new-feature rich) release. Has it lived up to that promise? Hoping also that it's not so buggy as to not merit an upgrade. At my workplace, folks have different versions of SQL Dev 1.X installed, each for the purpose of retaining functionality that got broken in future releases, etc. Would love to be able to advise them to retire their 1.X installs in favor of 2.1.
    Edited by: Dana N on Jan 21, 2010 6:45 AM

    Dana, We are working on the query builder. We have not done anything with it in recent releases as we knew that it needed completely overhauled and a
    couple of bug fixes were not going to give us the query builder we needed. Sue will be able to tell you more as the we get closer to releasing it as a feature.Thanks Barry. I know it's probably impossible to give firm dates, but my colleagues would love to know, ballpark, when query builder might be ready. Any particular year/quarter that's targeted for?
    A lot of the bugs in the 2.1 are probably my fault as we decided to build a framework which allowed tasks to be scheduled like eclipse and push them to the
    background. Coupled with this, we tore apart the worksheet to allow us to fit tasks in, but to also give us the ability to do some of the enhancement requests
    that you guys, our users, have been asking for. While its not perfect, I believe its getting much better from both a functionality and performance standpoint. The
    worksheet will not change again and there are no enhancements logged or scheduled which will do that. The issues that have come as part of 2.1 are being
    addressed and we are fixing the highest priority ones as we speak. One of my priorities is to make these components as rock solid as possible.Thanks again. It really is a nice tool to work with, and I'm grateful to have it. I would choose stability for existing features over new ones, but I suppose there always has to be a balance in development. What was really scary in the past was getting bizarre / wrong answers in query results--that's a complete show stopper; e.g. clicking on a row/col intersection in a result set row would show strange and false values. New features can wait, but core functionality must be solid. If one can't presume integrity of query results, it's game over--using a version of SQL Developer that returns inconsistent result sets between runs could be Considered Harmful, or so it is to me.
    Anyway, thanks for responding and I hope Oracle Corp gets you whatever assistance you need to improve the quality of existing functionality while adding new features; with one not being at the expense of the other. :-) Glad also to see Sue has authored a book on the tool. Hopefully that will drive customer demand and force increased allocation of development resources toward the product. I'd like to think having out-of-the-box tools that are a joy to use might even increase market share.
    Data Modeler I would love to use, but am completely priced out of it. Enterprise Architect from Sparx Systems is the best value there so far as I can tell.
    Dana

  • SQL Dev 1.5.4+: Scripting DDL and data dumps?

    In SQL Dev 1.5.4, can I script a DDL and data dump? If not, what about 2.0? If not 2.0, has anyone requested this functionality so I can vote for it? I find it frustrating that, while doing a Database Export, I can't even pre-declare (e.g. save) the set of objects I want to dump; sometimes, you want to selectively dump, and it's a pain to hunt and peck and select just those you want to dump. Easy if you want to dump everything but 2-3 objects in a large schema. Not so easy if you only need, say, 20 out of 100 objects to be dumped (e.g. for domain or configuration tables--some subset of the whole schema).
    I'm really enjoying SQL Developer 1.5.4 by the way. Despite it's flaws, I'm pretty happy with it. Looking forward to 2.0 and beyond. Good work SQL Dev team.
    Thanks very much.
    Dana

    They're all command line tools, so they can all be wrapped up in a batch or shell script. Bummer you can't access them... Hope you find a better solutionThanks K. I should be getting Oracle 10g Express Edition on my desktop soon--critical because we don't have full access to the Development instance. It's like putting changes through a straw over to the DBAs. I'm not sure why Development is locked-down to developers, but that's the way it is.
    Any chance that Oracle 10g Express Edition comes with scriptable data pump binaries? Will still need authorization, but maybe that's one way to go. I hate trying to write my own Data Pump in Python or any other language. It's seems a bit absurd to me but I suppose there are reasons.
    Dana

  • ADDM Report is not produced by SQL DEV 4.0 if logged in user does not have SYSDBA privilege

    Hello -
    In SQLDEV 4.0 (Early Adapter), I logged in as user with no SYSDBA privilege granted. But ADVISOR granted and  execute on DBMS_ADDM granted and "select any dictionary" granted, etc.
    Then i go to the menu View --> DBA --> Performance --> Automatic Database Diagnostic Monitor
    Select ADDM report from the available choices.
    Out of 3 menu options: Summary, Findings and ADDM Report, I can see the first two, but I am getting a grey screen for ADDM Report.
    ^^^^^^^^^^^^^^^^^^^^^
    If i do exactly the same but login as SYSDBA, then ADDM Report can be produced and can be seen. So the issue is in the missing grants and privileges.
    ^^^^^^^^^^^^^^^^^^^^^^
    The goal that we are pursuing in our shop is to empower developers to work with ADDM reports by having them login as non-SYSDBA user.
    ^^^^^^^^^^^^^^^^^^^^^^^^
    Please advise what privilege should be granted to get this working for non-SYSDBA login
    The same user can successfully execute $ORACLE_HOME/rdbms/admin/addmrpt.sql and produce file with complete ADDM report. But not able to get the ADDM from SQL DEV 4.0
    Thank you,
    vr

    Thank you, Phil.
    This worked for me in my quick test case.
    Great help, as DBA group wants to allow NON-privileged users (like Developers and QA) to execute ADDM on demand.
    Here is my observation for RAC database with two instances.
    I have followed your instructions:
    "Performance / Automatic Database Diagnostic Monitor -> Run ADDM"
    Then
    - Uncheck box "By Creating New Snapshot" (this box was checked by default)
    - Provide new "Task Name" (let's say "vr1")
    - Select "Start Snapshot" (this is where my first confusion is: each screen shot # is shown twice, may be because i have two instances of RAC)
    - Select "End Snapshot" (the same way: each SNAP_ID is shown twice)
    - and finally APPLY button is pressed
    This creates 3 reports:
    vr1
    vr1$1 (for instance_id=1)
    vr1$2 (for instance_id=2_
    So, my question is: this expected and normal behavior of the tool?
    What if my RAC database has 8 instances? Then I would generate 9 separate ADDM reports?
    Is this correct observation?
    Thank you,
    vr

  • SQL Dev does not recognize NTILE

    I admire how SQL Dev autocompletes GROUP BY statements. However, in a statement like
    select eaddress, count(*) purchases, NTILE(10) OVER (ORDER BY count(*) asc) AS decile ... etc.
    it keeps adding the NTILE clause to the GROUP BY statement. NTILE should be treated like an Aggregate function ala count(*), sum(x), etc.
    Can you guys make sure all the Oracle "SQL for Analysis" functions (ala http://download.oracle.com/docs/cd/B19306_01/server.102/b14223/analysis.htm) are properly treated in the GROUP BY autocomplete (ie, ignored just like any other aggregate function)?
    I am using Oracle SQL Developer 2.1.0.63 Build MAIN-63.73
    IDE Version: 11.1.1.2.36.55.30
    Product ID: oracle.sqldeveloper
    Product Version: 11.1.1.63.73
    Thanks, Michael

    And that's the reason I wonder if there's a full bug list publicly available.
    2.1 Autogenerate GROUP BY and anlaytic functions
    ....posted the same thing three months later and never got a response. At the time the forum search didn't return that for me when looked for "Group By"

  • SQL Dev result fetch performance

    I am using SQL Developer 1.2.0-Main 29.98
    My dept. is looking to save the cost of TOAD renewal, but evaluators have raised the following issue:
    Using a test query in both TOAD and SQL Developer, it takes 2x longer in SQL Dev to retrieve all rows (7864). Both tools return n first rows quickly, but using CTRL-A in SQL Dev to force the worksheet to display all the rows takes 88sec. with Sql Array Fetch Size=50, improving incrementally to a fastest 64 sec. with the Size = 5000. (It also lets me set the size even larger, even though the documentation says 5000 is the max, no improvement in performance though.) TOAD, using it's minimum memory threshhold method returns the data in 32 sec.
    Are there any additional configuration changes I can make? I am a DBA, not a Java developer, so I have no knowledge of memory settings, etc. that can be defined for the Java environment.
    I have seen in other threads that 2.0 is under development, is this performance issue already being addressed?
    Any and all advice is appreciated, otherwise it's back to evaluating PL/SQL Developer.

    If you want performance and no hassle, stick with the proven, robust TOAD. Period. The rest can be called wannabees.
    Sqldev is still too young, has performance issues, crashes, has bugs, uses a lot of mem, ... but promises to be really competitive with TOAD in the future.
    I do prefer sqldev's code editor and debugger over TOAD's and has a modern Java interface, easy customizable through user extensions in XML, and most important: it's Oracle and free. But you do need to put in a lot of patience and frustration...
    Regards,
    K.

  • EA1: Is SQL Dev 2.1 able to talk to a DB with no listener?  1.5.5 could.

    We use local installs for each developer, the locally installed DB runs with no listener. TOAD, SQL Dev 1.5.5 and SQL*pluss all had no issues talking to my local install. With 1.5.5, I simply left the connection type as BASIC with a blank hostname and port. Similarly with TOAD and with SQLplus, I left all details (except the user and password) blank, and they connected ok.
    2.1 is unable to connect, it tells me that I can't leave the hostname blank, and that the port number is invalid.
    I've tried exporting the connections from 1.5.5 and importing them. All other connections ( to the team dev, the CI, the build, the test, QA and production environments) work with no issue. Connecting to my local db with the imported connection gives the error:
    no ocijdbc11 in java.library.path
    Vendor code 0
    So how do I use this version to talk to a local install, that is not running a listener?
    Please don't respond if all you can say is "run a listener" :)
    Local DB is 10gr2, using the latest patches, with the latest 10gr2 client
    Alan
    Edited by: user1357095 on 01-Nov-2009 22:04

    The ocijdbc11 error would indicate it's prioritizing your 10g client. You can try tricking sqldev by changing your ORACLE_HOME within a batch file inside sqldev's install folder. This would force using the supplied thin 11g driver:
    set ORACLE_HOME=%CD%
    start sqldeveloper.exeHope that helps,
    K.

  • Cancelling Query Results in Continually Busy Connection -- SQL Dev 2.1 EA2

    Hello All --
    I am running SQL Developer 2.1 EA2 on the Windows 7 Release Candidate (64-bit). I have had issues when canceling long-running queries. Usually what happens is I run something, and realize after a couple of minutes that it's going to take quite a while to run. So, I click the cancel button. Things seem OK, I can resume editing the query. However, when I try to re-run the query (after modifying it) or even just to run an explain plan, I find that I can't re-connect to the DB. I go to the connection pane to try to disconnect and reconnect to the server in question, but when I try to disconnect I keep getting error messages about the connection still being busy, would I like to Retry or Abort? I can keep clicking either of the options ad infinitum with no results.
    I have to kill SQL Developer from Task Manager and re-start. I am connecting for the most part to Oracle 10.2.0.4 databases (10g2), some RAC, some stand-alone.
    EA2's behavior is better than SQL DEV 1.5.x, which would simply often lock, but this is still frustrating.
    Thanks!

    This definitely occurs in 1.5.5 - in my particular case, and this is really strange, if one uses Task Manager to shut down SQLDeveloper because it is just taking forever to get a Data view (via the + expand sign on the side of a given admittedly big table, then clicking on the Data tab), SQLDeveloper freezes. Even if I start a new instance of SQLDeveloper, and ask for a Data view again, it freezes - I've waited as much as 1/2 hour, where as in prior days I'd get a response within say 1 min.
    I've even uninstalled and re-installed. Same deal. This is what's the strangest by far. How can it be that SQLDeveloper remembers that a long running query was once canceled even after an uninstall / reinstall ? I could not find anything remotely related to this in the Registry after the uninstall either.
    [By the way, if on the other hand, I say SELECT * FROM {table_name}, I get an instant response !]

  • How to use SQL Dev with MySQL DBs ? Connection Setup

    As far as I know SQL Dev can be used with MySQL databases as well.
    How do I have to setup the connection for MySQL?
    In detail what do I have to enter for
    -role
    -connection type
    SID/ServiceName
    Or is there a separate version for Oracle and MySQLß
    Peter
    Edited by: user5328442 on Jan 5, 2011 9:23 AM

    Hi,
    After downloading the MySQL plugin did you add the details in the third party database list ?
    Do the following -
    - Tools
    - Preferences
    - expand the Database option if necessary
    - Third Party JDBC Drivers
    - add the location and file name of the plugin.
    On my setup it is -
    D:\mysql_jdbc\mysql-connector-java-5.0.8\mysql-connector-java-5.0.8-bin.jar
    The driver may be different if you have a later version.
    Regards,
    Mike
    Edited by: mkirtley on Jan 7, 2011 9:46 AM

  • I can compile objects with SQL dev tool but not with a direct sql

    hi,
    This is a bit weird - I'm probably not familiar enough with Oracle's compilation process...
    I'm creating a some functions / procedures / triggers. When I run the script to create them with Oracle's SQL Developer tool, usually they become immediately valid, and if not then I can manually right click them and choose Compile, and they're compiled correctly and become valid.
    However, when running them with command line tools, they're uncompiled after created. I'm trying compile them with
    ALTER PROCEDURE / FUNCTION / TRIGGER MySchema.MyFunction COMPILE;
    and it always returns
    Error starting at line 1 in command:
    alter function MySchema.MyFunction compile
    Error report:
    SQL Command: alter function
    Failed: Warning: execution completed with warning
    alter function MySchema.MyFunction succeeded.
    and the object remains uncompiled / invalid.
    also tried with DBMS_... utils and got the same results.
    Same with adding things such as PLSQL_WARNINGS = 'ERROR:ALL' to the stmt
    But when I go in SQL Developer to the object, right click and click Compile, it compiles fine w/o warnings / errors and becomes valid.
    Is there anything else I should run other than this alter..compile? Is SQL Dev tool doing something different than "alter function ... compile" when right clicking and object and clicking "Compile"?
    thanks!

    hi,
    I'm having difficulties connecting with SQL Plus, since it seem to require at startup some admin user/password, which I don't have at the moment. Also tried to give it in command line the db name and params and it still require this pass... Will try to get it...
    But again, when I'm right clicking the object in SQL Developer and click Compile, it compiles fine and becomes valid. After doing that, running
    alter function mySchema.MyTestFunction compile;
    passes with
    "alter function mySchema.testfunction succeeded"
    If I run this sql before doing compile with SQL Developer, it fails with what I posted before.
    I wonder if SQL Developer does things other than the above compile stmt.
    If I right click on Functions in SQL Dev and click Compile All or Compile Invalid, I can see the sql it about to generate, and it's the same as I tried - and fails as well... Only when right clicking the object and Compile it works...
    A test func I tried, for example:
    create or replace
    FUNCTION testFunction(n in number)
    RETURN NUMBER
    IS
    BEGIN
    RETURN n + 1;
    END;

  • 100% cpu utilisation SQL Dev 1.5 on XP

    Using SQL Dev 1.5 prod version on XP on a P4 3ghz with 2gb of ram, SQL Dev executable regularly uses 100% cpu utilisation as reported by task manager.
    Also frequently stops responding - no screen redraw and I have to end task.
    Until recently I only had 512Mb of ram so put this down to that fact, but with 2gb still getting long 'satellite' delays - particularly with code/param insight.
    Anybody else getting this?
    ta

    I know I was vahue - apologies, but it's most of the time - literally 99 to 100% cpu utilisation.
    e.g.
    restart pc, login, give it a couple of mins to settle down. (p4 3ghz, 3gb ram, xp pro, sp1)
    start 1.5 sqldev - wait, see the splash screen, look at task manager - memory starts going up, cpu rises rapidly to 99 - 100%
    once fully loaded, open 1 connection, open one package body, split screen vertically, so I have sql worksheet and my package body open and visible.
    Now sit back and enjoy the vibration coming thru the desktop - the real wooden one - as the pc's fan struggles to cope.
    If I leave it for maybe 5 to 10 mins - not doing anything on the pc at all, cpu utilisation will drop significantly.
    then do something reckless like edit my package body (not that big ~1500 lines) and hold on to the desk again as we start shaking once more.
    great for my typing skills too, as there is no point in looking at the screen to see if I am making mistakes, as it frequently won't display anything until 3 to 5 seconds after I have finished typing
    mem usage is up to 250 mb - I have not touched my pc for nearly 10 mins since doing the last edit - still at 99%

  • Xamp server on oracle sql dev

    Hi,
    I would like to know how to configure oracle sql dev database connection on xamp server?
    I tried the following:
    connection name: Xamp
    username: root@localhost
    Password: (blank)
    connection type: basic
    port: 1521
    SID: xe
    results:
    Status: failure-Test failed: IO Error: The network adapter could not establish the connection
    Can someone help?

    I am quite new to oracle
    can you detailed some steps where I can use oracle sql dev to practise some queries (where can I get the tables ready made) ?

Maybe you are looking for

  • Acrobat crashes in OS 10.6.3

    Acrobat 9.3.1 crashes in OS 10.6.3 every time I use the Bookmarks panel to expand or contract a bookmark section. Where does one send the Crash Log to Adobe so they can hunt down the problem?

  • How to display .swf files in java using eclips platform ???

    Here my java code plz some one help me... import javax.swing.*; import java.io.*; import java.net.MalformedURLException; import java.awt.*; import java.awt.event.*; public class DisplaySWF extends JFrame     public JPanel  window_panel;//address_pane

  • Switch from Photoshop CC to Photoshop CC+Lightroom

    Hi folks, at this time we have Creative Cloud Single-App License with Photoshop CC. Can we switch this license to the new Photoshop CC + Lightroom license?? Thanks Dominique

  • Locking a client

    Hi everyone. How to lock a client? What exactly a client lock means? Is it like not allowing import of new objects, locking all existing users?

  • System error on 6680

    Today I tried to use the camera and had message "SYSTEM ERROR" and all videos and photos were lost. Does anybody know how to get the camera working again. Many thanks