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.

Similar Messages

  • 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 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

  • 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

  • EA1 - Blank SQL Worksheet

    Hello.
    MY OS is Win 7 Enterprise 64-bit.  I've just installed SQL Developer 4 EA1.  I have also installed JDK 1.7.25. 64-Bit,  just today.  When I open a sql file in EA1, I see the test of the file and I can run the SQL with no issue.  However, if I leave that SQL file open, close EA1 and then reopen it, the file window is blank.  I see the name of the file in the tab, but the area where the text should be is blank.
    Thanks.
    Dan

    Hi Dan,
    Thanks for reporting this for 4.0EA1.  I logged a bug titled: 4.0EA1: SQL FILE TAB IS BLANK (NO TOOLBAR, ETC) AFTER SQL DEV REOPENED
    Please also note that upon reopening the product, the tab contains no toolbar, connection drop-down box, worksheet or history areas either. One workaround is to click on the Start Page tab, then click back on the SQL file tab -- it repaints with all the expected text and artifacts.
    Regards,
    Gary
    SQL Developer Team

  • SQL Dev Report Type Confusion

    Following an article by Sue Harper originally published in the May/June 2007 Oracle magazine, I have finally been able to construct a hierarchy of Drill-Down reports. My original attempts to create such reports failed, because in my version of SQL Dev 1.5.4 I could not see how to specify a "Report ID" as Sue had documented. Following instructions on other posts I have found, including a bind variable in the drill-down query appears to resolve this problem.
    I can also use the "Add Child" button on a parent report definition to add reports which also use bind variables, and which then appear as clickable tabs below the parent report. When defining such a child report, I can choose a type of "Detail" or "Child".
    My questions are these:
    1. What is the difference between a drill-down report as described by Sue, and a Child report defined when the "Add Child" button is clicked, other than where the report appears on the Oracle SQL Dev window?
    2. When defining a Child report after clicking "Add Child", what is the difference between a type of "Detail" and "Child"?
    Sorry if this has already been clearly explained elsewhere. Links to relevant doco will be much appreciated!
    TIA,
    Jon

    Hello,
    Is it possible to have a "chart" report that expands to multiple child "chart" reports with the bind variable from the 1st child report passed to the 2nd child report?
    The bind variable from the 1st child report is not being passed to the 2nd child report.
    In the sample below, I would like to display a count of objects created by day. When clicking on the object_type/count/day, it displays a child chart with the object_type by hour. What's not working is, when I select the object_type, the 2nd child chart is not displaying the object_type created for that hour (:TIME2) because it is not being recognized/passed to the chart.
    Below is the sql and sqldeveloper report options I'm using. Thanks in advance for your help.
    -- Master - bar_vert_stack chart of objects created by day:
    select
    to_char(trunc(created,'dd'),'mmddyyyy') TIME1,
    object_type OBJECT_TYPE1,
    count(*)
    from all_objects
    group by
    to_char(trunc(created,'dd'),'mmddyyyy'),
    object_type
    order by
    to_char(trunc(created,'dd'),'mmddyyyy') desc
    -- Child1 - bar_vert_stack chart of objects created by hour that appears when selecting the day above:
    select
    to_char(trunc(created,'hh24'),'mmddyyyy hh24:mi:ss') TIME2,
    object_type OBJECT_TYPE2,
    count(*)
    from all_objects
    where
    object_type=:OBJECT_TYPE1
    and created between to_date(:TIME1,'mmddyyyy hh24:mi:ss') and (to_date(:TIME1,'mmddyyyy hh24:mi:ss')+1)
    group by
    to_char(trunc(created,'hh24'),'mmddyyyy hh24:mi:ss'),
    object_type
    order by
    TIME2 desc
    -- Child2 - table of objects created in the hour that appears when selecting the day above (note that :TIME2 is not being passed so all
    --recs for that day are displayed)
    select
    :TIME1,:OBJECT_TYPE1,:TIME2,:OBJECT_TYPE2,all_objects.*
    from all_objects
    where
    object_type=:OBJECT_TYPE1
    and created
    between to_date(:TIME1,'mmddyyyy hh24:mi:ss')
    and (to_date (:TIME1,'mmddyyyy hh24:mi:ss')+1)
    order by created desc

  • SQL Dev setup

    Hi all
    I am new and learning SQL Developer. I am trying to connect to a DB. I belive i have to install one. How does that work or is there some instructions on how to do this?
    Add a DB to SQL Dev to pratice scripts on?
    Thanks Y'all.
    R

    Hi 300,
    The link you reference just provides some documentation and SQL scripts for installing a demonstration Student/Course/Grade schema into an existing Oracle database. You also must do one of the following:
    1. Install a database locally.
    2. Have someone give you connection details for a remote database.
    3. Or, similar to (1), use JeffS's suggestion for installing the VirtualBox and Linux VM image with Oracle 11.2 and SQL Developer (among other things) already installed.
    JeffS provides a link for (3) and jflack for (1).
    In terms of being able to create a connection in SQL Developer, look for Help|Table of Contents|SQL Developer Concepts and Usage|Database Connections and read through it. Start by creating a connection for the SYSTEM user. That will let you create a new schema in which to install the Student/Course/Grade demo. For a "Basic" connection type, you will use the following connection details:
    1. For an Oracle XE default install, host/port/sid will be localhost/1521/xe. User/password is system/<yourInstallationDefaultChoice>
    2. For the VirtualBox Linux VM image, host/port/sid will be localhost/1521/orcl. User/password is system/oracle
    In SQL Developer's Connections View, right-click on the Connections node and choose New Connection... and fill in connection details for the System user. Next, open the connection for System, expand its node, scroll down to the Other Users node. There you can right-click on the node and select Create User... to create the student/learn user for your demo.
    I haven't read through the demo scripts and documentation, but I suppose you should at least check off the CONNECT and RESOURCE roles for this student user.
    Finally, create a connection for this student user, open that connection, then try running the script(s) from the SQL Worksheet. If the scripts contain some syntax SQL Developer does not support, you may have to run them using SQL*Plus, but I doubt it will be necessary in this simple demo.
    Have fun,
    Gary
    SQL Developer Team
    Edited by: Gary Graham on Feb 29, 2012 5:02 PM
    Added point about creating a connection for the student user schema.

  • 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.

  • Sql services are not able to start in server

    We have rebooted inactive the server due to rolling maintenance.
    Sql is not running and sql services are not able to start. Getting the below error message while starting the services.
    please suggest how to fix?

    Could you try:
    To resolve the problem, use these steps:
    Change the startup account of both the MSSQLSERVER and SQLServerAgent to use the Local System account.
    Restart the computer.
    https://support.microsoft.com/en-us/kb/307288
    Or check  NetLogon service is running

  • 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 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

  • 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.

  • SQL Developer is not able to identify the Tnsnames.ora file

    Hi,
    I have installed the following in the laptop having Win XP:
    1) Oracle 10gR2 Client software in the D: drive of laptop. Tnsnames.ora is located in this clients Network\Admin path. This client is used to access the databases on the other servers.
    2) Oracle 10gR2 Database software in the E: drive of laptop. Right now there is not Tnsnames.ora file in this softwares Network\Admin path. This db software has been installed to create local databases in the laptop.
    3) Oracle SQL Developer Version 2.1.1.64 is also installed in C: drive of laptop.
    The problem which now I'm facing is that the SQL Developer is not able to identify the Tnsnames.ora file mentioned in the above point-1 which contains entries of databases on the different servers. Could you please help me out in solving this problem?
    Thanks in advance.
    MAK

    I forget what version I was using at the time, but when I had an ORACLE_HOME defined for the environment and TNSNAMES file defined in SQL Developer (different one than was in ORACLE_HOME), that I would see results from both tns files. I don't know if that is still the case. I have since dropped my ORACLE_HOME environmental variable.

  • 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 !]

Maybe you are looking for