Newbie in SQL Developer: misc questions

Hello,
I´m new to SQL Developer, always worked with Quest´s SQL Navigator before.
1.)
I have a file.sql with following instructions:
begin
package_1.variable_1:='T';
package_2.procedure_1;
package_2.procedure_2;
package_2.procedure_3;
end;
In Quest SQLNavigator I started this with "Run (F9".
In SQL Developer this will not start, always telling me error, invalid numbers or some other sh*t, but nothing changed within the packages or procedures.
With SQLNavigator everything works fine.
2.)
In SQLNavigator with "Quick Browse" I get the sql for a table, for example
select a.col1, a.col2, a.col3, ...
from quickbrowsedtable a
How can I get this in SQL Developer ?
3.)
When extracting DDL in SQL Developer columns and table names are in double quotes. Can I change
this to have no quotes at all ?
Thank you very much for your help,
greets,
Frank
Edited by: 968906 on 05.11.2012 04:49

1 - use F5 in the worksheet to run your anon block
2 - drag the table to the worksheet, and select 'Select'
3 - not today

Similar Messages

  • Newbie to sql developer, how to stop a query

    Hi All,
    A very basic question and I've searched through this forum and Tom's site, i think i read it somewhere but i forgot where and what it was.
    How can I stop a query running in Sql Developer with what key combination?
    Ctrl-C D E Q .........., help!
    When I 'leave' for another application there a nice grey screen appearing so i can't use the buttons.
    Thanks in advance and my appologies if there is an answer already and I didn't find it.

    A query in the worksheet can be stopped using the Cancel button in the worksheet's toolbar (the 5th button). Hovering over it, you see the default hotkey assigned is "Ctrl-Q".
    If you get a gray screen means your SQL Developer locked up. There's currently no way of canceling what is locking him up. You could kill its session, but that's pretty radical and takes its share of time fining out what to kill and how.
    What another user on this forum (EricH) suggested, is running 2 SQL Developers side by side. When 1 locks up, he uses the other one. Although I'd like SQL Developer in the future to run it's queries in separate sessions by itself, thus preventing the whole program to lock up.
    K.

  • Newbie to SQL Developer

    I am new to the Oracle SQL Devloper world. Does anyone have any self-taught URLs or any "Tricks and Trades" URL for Oracle SQL Developer???
    One specific question I have is how do you get to the last record in a result set. I know in SQL Navigator there was an arrow with a vertical line that enabled you to get to the last record. Is there anything like that in Oracle SQL Developer???
    How do you typically set-up your connections so you don't have to drill down through "Other Users" and Select the schema name that way in order to display the tables???
    Thanks in advance for your help.
    PSULionRP

    There are links to tutorials etc., here http://forums.oracle.com/forums/ann.jspa?annID=1275
    Ctrl+End takes you to the last row in the results pane.
    The options for accessing schema objects are limited
    - connect as the schema owner,
    - use 'Other Users'
    - use synonyms.
    Edited by: Jim Smith on Mar 15, 2011 9:39 PM

  • SQL Developer tool question

    Hi Folks
    I am using SQL Developer tool. I have a procedure with compilation errors so i can see that procedure with red X mark in SQL Developer tool.
    When am clicking on the procedure it is going to the editor there i can see "code"."grants","dependencies","references","details","profiles".
    But i can't able to see "Errors" tab in the editor. And main thing is i didnt see any red lines in the editor for the invalid procedure
    And when i recompiled that procedure it got recompiled successfully and that red x mark is vanished.
    Here my question is the "Errors" tab is only appears when the procedure/function/package has errors and surprisingly i didnt see any red lines in the editor for invalid procedure (may be my proc has no errors).
    Thanks

    Hello,
    maybe your procedure has been invalidated by some DDL, e.g. a new column has been added to a table that is referenced in your procedure. The status will be INVALID until you recompile it or until you call the procedure, then it will be recompiled automatically.
    (may be my proc has no errors).Very likely.
    Regards
    Marcus

  • OEL and SQL Developer Install Question

    While downloading the SQL Developer on Oracle enterprise Linux OS I choose “Open Software Installer(Default)”.
    Installed the software after choosing the above options.
    1.     Where did the software installed?
    2.     How to launch the SQL Developer?
    3.     Do I need to give some permissions for the Oracle user to run SQL Developer?
    Oracle Enterprise Linux Release 5 Update 4.
    Thank you,
    Smith

    Start to read the Installation Guide :
    http://www.oracle.com/technology/products/database/sql_developer/pdf/rptig.pdf
    Then the User's guide :
    http://www.oracle.com/technology/products/database/sql_developer/pdf/rptug.pdf
    Nicolas.

  • (Substitution Variables) not working in "SQL Developer" Environment !!!!!!!

    this photo illustrate how that (Substitution Variables) not working in "SQL Developer" Environment :-
    http://www.imagehosting.com/show.php/1555180_ddddd.PNG.html
    any solve for this problem ?????!!!!!!!!!!

    There is a dedicated forum for SQL Developer related questions
    SQL Developer
    I should admit however, that query you have provided ( with substitution variables) works like a charme in my environment (SQL Developer 1.1.0.23 build 23.64)
    Best regards
    Maxim

  • How to do profiling in sql developer?

    how to do profiling in sql developer?
    also-can somebody plz suggest a gud site for information on pl/sql code profiling.

    You might want to ask your SQL Developer-related question in the SQL Developer forum: SQL Developer
    gud site for information on pl/sql code profiling.Online Oracle Documentation:
    http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10472/tuning.htm#LNPLS01214
    and/or
    http://www.oracle-base.com/articles/9i/DBMS_PROFILER.php
    Edited by: hoek on May 19, 2010 12:55 PM

  • Oracle SQL Developer and commit

    I have the auto commit in SQL Worksheet unchecked and disconnect a worksheet with open transaction and the data is commited !!
    I have to set another option??
    When I close the SQL Developer no questions if I'm sure to close or i want to perform a commit (like toad).
    Thanks.

    you may want to try this forum:
    SQL Developer

  • Install Oracle XE, SQL Developer, and Toad on the same machine?

    I have been trying to install Oracle SQL Developer, Toad, and Oracle Express on my work computer. Installing SQL Developer and Toad was pretty straightforward, and I was able to browse the XE database with SQL Developer. But after installing Toad, problems started. Toad was using Oracle XE's registry settings to locate ORACLE_HOME and oci.dll. So I tried changing the settings for Oracle XE in the registry. Toad now works, but not Oracle XE. And while I was going through this all, I even had a time when I had Toad and oracle xe working, but not SQL Developer. It almost looks like you can choose two of the products, but not all three.
    So, my question to the community at large is "Can it be done?". In what directories do you have each product installed? What environment variables do you have set? Where is your tnsnames.ora? What Oracle registry settings do you have set (namely HKLM\SOFTWARE\Wow6432Node\ORACLE\KEY_XE)?
    I can post my current settings, but I've been through so many iterations that these current settings don't really matter that much.
    Here are the details I am looking for
    Path to sqldeveloper.exe
    Path to oracle.exe (for Oracle XE)
    Environment Variables
    ORACLE_HOME
    ORACLE_BASE
    TNS_ADMIN
    PATH (just the oracle stuff)
    Registry Settings
    HKLM\SOFTWARE\Wow6432Node\ORACLE\KEY_XE\ORACLE_HOME
    HKLM\SOFTWARE\Wow6432Node\ORACLE\KEY_XE\ORACLE_BASE
    HKLM\SOFTWARE\Wow6432Node\ORACLE\KEY_XE\TNS_ADMIN
    HKLM\SOFTWARE\Wow6432Node\ORACLE\KEY_XE\OLEDB
    HKLM\SOFTWARE\Wow6432Node\ORACLE\KEY_XE\ORAMTS_CP_TRACE_DIR

    I don't use toad, but there should be no reason why you can't install all 3. SQL Developer is a very clean install and affects nothing else. It doesn't add to the path, or create any registry entries except for file associations.
    A toad installation should pick up your oracle client (in this case the XE code). I am curious as to why you felt you had to change registry settings. What problem were you trying to fix?
    My recommendation would be to uninstall everything, clean the registry and reinstall in the order XE, Toad, SQL Developer. Test in between installations and seek help for problems as you find them. Bear in mind that this is the forum for SQL Developer. QUestions about Oracle XE would be better answered in the dedicated forum, or in the Installation forum, and questions about Toad in a toad forum.

  • Exporting procedures using sql developer

    Hi,
    I successfully migrated a mysql database to the oracle database using sql developer.All the data excluding procedures were moved to oracle.
    I dont know why but none of the procedures were moved to oracle.
    Now, i want to move those procedures to oracle database.Can you guys provide any help.

    11g.DBA wrote:
    Hi,
    I successfully migrated a mysql database to the oracle database using sql developer.All the data excluding procedures were moved to oracle.
    I dont know why but none of the procedures were moved to oracle.
    Now, i want to move those procedures to oracle database.Can you guys provide any help.If you want to do something, anything "with SQL Developer", the question would be best asked in the [url https://forums.oracle.com/forums/forum.jspa?forumID=260]SQL Developer forum

  • SQL Developer usage (newbie) question - using for script development

    I'm new to Oracle, but not to SQL (used MS SQL Server off and on for 3 years prior). SQLDeveloper (v1.5.1) was recommended as a dev tool for the work that I'm doing in in Oracle 10.2.0.4. I'm looking to write some scripts to eventually become stored procedures. The problem I'm having is it seems i can only execute one line even though there are multiple statements in the "Enter SQL Statement" window pane.
    ie.
    select id, Full_Name, unique_name, user_id from srm_resources;
    select id, user_name, last_name, first_name from cmn_sec_users;
    when i highlight those two lines and click the "Excecute Statement" button, only the top line generates results.
    I'm used to using MS SQL's Query Analyzer where I could select one statement or multiple statements to execute, even non-SELECT statements (variable assignments, math, control loops). It does not appear that I have this kind of functionality in SQL Developer - or an I not using the tool correctly?
    Thanks
    Brian

    I'm assuming you're meaning the SQL worksheet here. The green arrow icon is execute statement (F9) The tiny green arrow is execute script (F5). I'm currently on 1.5.4 of SQL Developer.
    Hope this helps some. I would download the documentation also.
    http://download.oracle.com/docs/cd/E12151_01/index.htm
    Evita

  • Question on pl/sql developer tool

    Hello,
    I'm trying to debug a package using pl/sql developer. It looks good but the variable defined in the package are not showing their value even in the debug mode to see what they hold at that particular instance.
    How to achieve this?
    Thank You.
    KK

    PL/SQL Developer is not an Oracle tool.
    Post your question on the PL/SQL Forum @ http://www.allroundautomations.com/threads/ubbthreads.php?ubb=cfrm
    If I recall correctly you have to set a Debug checkbox somewhere in the Tools => Preferences menu.
    (But I cannot check it at this moment).

  • Sql developer: question about exporting data

    Hi,
    we're recently working with sql-developer. i've got a question about how we can export query results to txt/csv files for use in other applications.
    First a problem: if we start a query that looks like this:
    select * from
    select * from A where start_date = &date
    ) a,
    select * from B where start_date = &date
    ) b
    where a.name = b.name
    Sql-developer asks twice to input a value for the variable 'date', although it's the same variable and it's supposed to have the same value.
    We solve this by making a script:
    first we define the variable, then we put the query.
    When we start the script, the query runs ok and sql developer asks to input the value for the variable once.
    But now the result of the query is shown in the script output. The script output seems to be limited in number of lines and difficult to export.
    So my question is: what's the best way to export query results to txt/csv files, avoiding the problem mentioned above?
    i hope there is a solution where we can use a single query or script.
    Thanks in advance!

    Using bind variables like ":date" should solve the problem of being asked twice for the same thing.
    Executing the query normally (F9), gives you the export options you require through the context menu inside the Results grid.
    Regards,
    K.

  • Newbie blues: Oracle Sql Developer showing different data from Sqlplus.

    Newbie blues: Oracle Sql Developer showing different data from Sqlplus.
    First of all; it would be difficult to know less about Oracle than myself.
    I just installed a recent copy of the server and am running SQl Developer 3.2.20.10.
    I made a small test table , borrowed some pl sql code to add rows, then wrote code to delete some rows. Lots of fun.
    In SQL Developer “Select * from t1;” now shows 7 records, which seems right.
    I wanted other views of the data and so logged in from the command line using SQLPlus.
    The same code here shows the table prior to the delete, with 600 plus rows. Needless to say I’ve logged out and back in again, with no changes.
    No fun ! What am I not understanding here ?

    5e33d18c-3b32-48d4-82a7-676feeaa97c9 wrote:
    Newbie blues: Oracle Sql Developer showing different data from Sqlplus.
    First of all; it would be difficult to know less about Oracle than myself.
    I just installed a recent copy of the server and am running SQl Developer 3.2.20.10.
    I made a small test table , borrowed some pl sql code to add rows, then wrote code to delete some rows. Lots of fun.
    In SQL Developer “Select * from t1;” now shows 7 records, which seems right.
    I wanted other views of the data and so logged in from the command line using SQLPlus.
    The same code here shows the table prior to the delete, with 600 plus rows. Needless to say I’ve logged out and back in again, with no changes.
    No fun ! What am I not understanding here ?
    Others sessions never see uncommitted data
    > then wrote code to delete some rows. Lots of fun.
    did you ever actually issue COMMIT so other session can see the changed data?

  • Newbie to Oracle SQL Developer

    Hi guys, cheers for taking the time to read this post.....
    Im running a few different scripts in Oracle SQL Developer, one called CreateLocalSchema.sql, another CreateLocalProcedures,sql and a third SystemSetup.sql
    When I press f5 to run the Systemsetup.sql, im prompted to "enter the identifier of system". Does this mean the SID? Ive tried XE, my username (lbell),orcl.
    Not sure what to enter here. Im getting this error through most of the script output window.
    SQL Error: ORA-00904: "SYSTEMID": invalid identifier
    +00904. 00000 - "%s: invalid identifier+
    Do i need to do anything that i havent realised? Any help would be appreciated.
    Thanks

    Hi 899065      
    It depends on the script. You are being asked for input via substitution variable '&variablename' or '&&variablename' or via the accept command.
    set echo on
    before running the script will display the command before the output is printed. This may be reset within the script i.e. set echo off .
    Forum: SQL Developer *(Not for general SQL/PLSQL questions)*
    might be worth trying if the script works in sqlplus.
    -Turloch
    SQLDeveloper Team

Maybe you are looking for