Set indention / tab size in Oracle SQL Developer

I've been poking around for an hour. Can't figure this out.
Where, either on the app's UI or in the "product-preferences.xml" file, can I change SQL Developer's indention (tab) size to 3? My organization uses PowerBuilder, and when I copy+paste our PB SQL (which uses leading tabs) into Oracle SQL Developer, it looks like crap. It would really help if I could change the code editor to a tab size equivalent to three spaces.
And no, we can’t use spaces. :-)
Thanks!
(maybe SQL Developer 2 could have a tab size field in “Preferences”)

In 1.5.x, it's under Preferences - Database - SQL Formatter - Alignment and Indentation .
However, at least in the current 1.5.3, a bug ignores the tab preferences completely, so you're stuck with the 2 spaces. If you can't wait until this gets fixed (with luck in the upcoming 1.5.4 or else maybe by 2.0), revert to an earlier version.
Regards,
K.

Similar Messages

  • Tablespace allocated size in Oracle SQL developer

    Hello,
    Currently in my oracle 11g database, there are two datafiles under the users tablespace. Today during one application installation, I ran into this error msg:
    ORA-01654: unable to extend index BSANITY.SI_CUID_I7 by 8 in tablespace USERSSo i checked the tablespace status in SQL developer and saw that the USERS tablespace is at 99% used. Datafile #1 is full at max size 32G and #2 is full at max size 4G. So I decided to change dbf #2 maxsize to 32G, I used the following command:
    alter database datafile '<file path here>' autoextend on maxsize 32000M;I checked the dba_data_files view and verified the maxbytes change.
    However, when I check the tablespace status in SQL developer, it is still showing USERS tablespace as 99% used. I'm wondering is there anything else I need to do after altering the datafile maxsize so that the change gets reflected in SQL developer?
    Thank you in advance!
    Edited by: 939040 on Jun 11, 2012 12:05 PM

    939040 wrote:
    Hi,
    Thanks for your reply! i'm actually doing troubleshooting for a user, so I have to ask him to try the installation again to see if the problem persists. However, you said the DDL did not change the size of the file, what could be the reason? is there anything i can do to make sure it changes the size?When all else fails Read The Fine Manual
    http://docs.oracle.com/cd/B28359_01/server.111/b28310/dfiles003.htm#ADMIN11425

  • Getting the schema using Oracle SQL Developer 1.5.1

    I need to generate a report in CSV/XLS format using Oracle SQL Developer 1.5.1 to get the schema details
    in the below format.
    Table Name: XXXXXXXXX
    Table Space Name: XXXXXXXXXXXXXXX
    Structure :
    Field Name Data Type Size
    Xxxxxxxx xxxxxx xxxxx
    Xxxxxxxx xxxxxx xxxxx
    Xxxxxxxx xxxxxx xxxxx
    Xxxxxxxx xxxxxx xxxxx
    Field level constraint:
    Xxxxxxxxxxxxxxxxxx
    Table Level Constraint:
    Xxxxxxxxxxxxxxxxxx
    Indexes:
    Index Name Column Name(s) Table space name
    Xxxxxxxx xxxxxxxxx xxxxxxxxxxxx
    Xxxxxxxx xxxxxxxxx xxxxxxxxxxxx
    Xxxxxxxx xxxxxxxxx xxxxxxxxxxxx
    Sequence Number:
    Xxxxxxxxxxxxxxxx
    Triggers:
    Xxxxxxxxxxxxxxxxxx
    I am using a query to do that, but I cannot run more than one queries in the Create Report Dialog.
    I went to the Menu->View->Reports. In that, I chose User Defined Reports, created a new folder called Schema Detail and in that a report named Schema Detail. I right click on that report, choose Edit option, Create Report Dialog opens.
    In the Create Report Dialog, I chose the option Script for Value of Style.
    In the SQL column I enter a query "select * from table_names". But, if I enter another query after that, it does not run and reports an error "SQL Error: ORA-00933: SQL command not properly ended
    00933. 00000 - SQL command not properly ended" Cause:    Action: "
    I end the first query with a semi colon, but it does not work.
    The queries run fine in a SQL Worksheet. There, I can terminate the first query with a semi colon and enter the second query. Then, I run both of them together so that result-set of second query appears after the second.
    Am I doing something wrong? Can someone please advise on how to get the information I need?
    Thanks a lot.

    You can do it in SQL Worksheet because you are running a script. You could run the script in SQL*Plus, and even start it from a bat/cmd file.
    Or if you want this as a User Defined Report, you might make it a PL/SQL style report. Here, all output is done through DBMS_OUTPUT.PUT or DBMS_OUTPUT.PUT_LINE. You can output HTML tags or plain text. I have an example in my paper for ODTUG Kaleidoscope 2009.

  • Why the Oracle SQL Developer show Chinese abnormally?

    In my Oracle SQL Developer I see Chinese convert to error code such as "��介�Ε⑼�〩� ".
    My Oracle chartset is "ZHT32EUC" and Oracle SQL Developer Code is "MS950" by default.
    How can I set the corresponding code set to "ZHT32EUC" in Oracle SQL Developer?

    Hi,
    Does the machine already has files for East Asian languages and/or complex scripts options in the Supplemental Language Support section of the Languages tab for the Regional and Language Options setting installed (for WinXP machine)?
    - limoey

  • PL/SQL and Oracle SQL Developer

    I just downloaded the latest version of Oracle SQL Developer, because I heard that it is free and comes with a debugger.
    So I have it all setup, I am connected to my database, but I wanted to execute a simple example:
    I selected to create a new Procedure and a new tab opened up, I pasted this code and under DBMS Output, I clicked the + to: set serveroutput on
    CREATE OR REPLACE PROCEDURE TEST1 As
    DECLARE
       mytext varchar2(100) := 'Hello world!' ; 
    BEGIN
       dbms_output.put_line(mytext) ;
       dbms_output.put_line(mytext) ;
    END TEST1;yet, I get an error:
    Source does not have a runnable target.
    So, is this made to only work with the database objects ? Tables ? I can't execute a simple Hello World ?
    Please help, thanks!
    Edited by: Kodiak_Seattle on Mar 7, 2011 12:06 PM

    Kodiak_Seattle wrote:
    wow, you are the rudest person I have ever encountered here on Oracle forums, you work for Oracle ?Most people on these forums do not work for Oracle, it is a public forum.
    http://www.oracle.com/html/terms.html
    You post here for free and people are free to respond in any way they see fit within reason. You do not get to choose the demeanor of the responses like you would if you were paying somebody.
    I just want to make sure my dollars will not go there anymore...If you paid someone to use this forum you were robbed.
    have a nice life under that rock! - don't bother to reply.Don't bother to tell others what they can or should do on here, it will just just disappoint you. You will be happier with these people they will do as they are told.
    http://www.google.com/search?q=oracle+consultant
    The responses you received accurately identified the problems you were having were a result of attempting to debug a procedure before you had compiled it. For free. And you complain.
    Now that is rude.

  • How could I unlock the account HR in Oracle SQL Developer?!

    Hi Everybody! I am new with using ORACLE SQL Developer! and I just wanted ask how could I solve this problem: "ORA-28000 The account is Locked!" Please anyone can help me?? As I know, When you just need to make a new connection, you have to type "hr" as your username, and password! I hove done that many times, but it didn't work :(( I have also installed Oracle XE g11 and it seems that there is no problem with it, BUT my problem with the first program "Oracle SQL Developer!" PLEASE anyone can reply???
    Edited by: 894546 on 02-Nov-2011 14:09

    Hi,
    Apparently you have both SQL Developer and Oracle 11g XE installed, but is not entirely clear if you know how to create a connection. If not, you should first read the SQL Developer tool's Help|Table of Contents|SQL Developer Concepts and Usage|Getting Started... help.
    Or use the Documentation tab at http://www.oracle.com/technetwork/developer-tools/sql-developer/overview/index.html
    Anyway, since you installed 11g XE, you should remember the password you picked for the SYS user. Launch SQL Developer, create a connection for SYS (whose role must be set to SYSDBA) using host=localhost, port=1521, sid=xe (these are all defaults and I doubt you overrode any of them). Once that connection exists, just follow Timo's instructions from his initial post. Let me repeat them, hopefully without typos, and in a bit more detail:
    1) Open your SYS connection in the Connections view
    2) Expand it, scroll down to the Other Users node in the tree
    3) Right-click on the HR node, click on Edit User... from the context menu
    4) Uncheck the Account is Locked checkbox in the Create/Edit User dialog
    5) Click on the Apply button at the bottom of the dialog
    or
    1) Open your SYS connection in the Connections view
    2) From the Worksheet, execute ALTER USER HR ACCOUNT UNLOCK
    Now your HR connection should no longer display an account locked message when you try to open it.
    Have fun,
    Gary
    SQL Developer Team

  • SQL Server table capture using Oracle SQL Developer

    Hello,
    I need to know how to set up the Oracle SQL Developer to captuer SQL Server table with correct field precision. For some reason, all NVARCHAR field precision sizes are the double of the original precision size after capturing the table.
    Example:
    SQL Server table 'A' with the following field:
    name NVARCHAR( 50)
    after table capture becomes:
    name NVARCHAR2(100)
    which is double of the original precision.
    Any feed back or input is greatly appreciated.
    Thank you.
    Message was edited by:
    qa2537

    i'm sorry
    --tsql correction
    merge into md_columns m
    using(
    select md_col.precision as prec, md_col.column_name,md_col.rowid as row_id
    FROM md_schemas md_s
    join md_tables md_tab on md_tab.schema_id_fk = md_s.id
    join md_catalogs md_cat on md_cat.id = md_s.catalog_id_fk
    inner join md_connections con on md_cat.connection_id_fk=con.id
    join md_columns md_col on md_col.table_id_fk = md_tab.id
    where --md_s.created_on = (select max(created_on) from md_catalogs)
    con.name like '%(corr%)'
    and md_col.column_type in ('nchar','nvarchar')
    ) merge_clause on (m.rowid = merge_clause.row_id)
    when matched then update set m.precision = merge_clause.prec/2
    that works, as long as you don't forget to commit like i did....
    hope it helps

  • Oracle SQL Developer 1.0 is easy to install and use, and is portable

    I have tried the latest version of Oracle SQL Developer 1.0 and would like to share my experience of using it.
    Installation of Oracle SQL Developer 1.0
    Download from
    http://www.oracle.com/technology/software/products/sql/index.html?_template
    Unzip the Oracle SQL Developer for Windows (55.8 MB) to C:\sqldeveloper (103MB)
    Advantages: The unzip folder can be your removable disk and you can access Oracle
    anywhere provided that there is an Internet connection to Oracle Server.
    Unzip sqldeveloper-1557.zip to C:\ with folder name;
    double-click on sqldeveloper.exe in c:\sqldeveloper
    Click on [No]
    Tick all check boxes
    Click on [OK]
    Right-click on Connections, New
    Database Connection…
    Enter User name: SCOTT
    Password: TIGER
    Hostname: 127.0.0.1 (or IP of your Oracle Server on the Internet)
    SID: orcl
    If you want to connect to local Oracle user SYS,
    Enter User name: sys
    Password: ora10g_manager_password
    Hostname: 127.0.0.1
    SID: orcl
    Select Role: SYSDBA
    Click on [Connect]
    Right-click on Tables, Create Table
    Click on [Add Column]
    Select Type: NUMBER for COLUMN2
    Click on [OK]
    Table1 is created
    Click on TABLE1, click on “Data” tab
    Click on the “Green Plus” icon to insert record
    Click on “Commit Changes” icon
    Click on “DBConnection1” tab
    Enter: select * from table1;
    Click on “Execute Statement (F9)” icon
    To exit: Click on File, Exit

    Have you noticed that there's a forum dedicated to SQL Developer?
    C.

  • Copying from Oracle SQL Developer to Microsoft Word doesn't retain formatting (Font,colors etc)

    Copying from Oracle SQL Developer Worksheet doesn't retain formatting (font,color etc...)in Microsoft Word but copying from other programs such as
    visual studio, chrome browser etc works fine. This doesn't work even after changed the setting to Keep Source formatting of Options-> Copy and Paste Settings

    Hi,
    I notice that you have cross posted in Answers forum and Oracle forum. Have you tried Mr. Peter's suggestion?
    Then, I recommend we check the Word settings:
    1. Go to: Options > Advanced > Cut, Copy and Paste
    2.  Make sure that Use smart cut and paste is ticked. 
    3. Click the Settings button next to this option
    4. Make sure that Smart Style
    Behavior is checked.
    If the issue still exists, please upload a sample through One Drive, I want to test.
    Regards,
    George Zhao
    TechNet Community Support

  • How to create a counter using Oracle SQL Developer?

    Is there any way to create a counter using Oracle SQL Developer to create the below scenario. Meaning it will recorded down the name of user and ID and time and the date they login.
    Library portal home statistics shows how many users (outside and within the campus) visit the library portal.
    Page Access statistics is recorded on an hourly basis. Users may select the statistics by
    yearly (statistics displayed by all months in the selected year)
    monthly (statistics displayed by all days in the selected month)
    daily (statistics displayed by all hours in the selected day)

    I'm giving here one basic post - hope this will solve your problem --
    SQL>
    SQL>
    SQL> create table audit_info
      2   (
      3     usr        varchar2(50),
      4     log_time   timestamp(6)
      5    );
    Table created.
    SQL>
    SQL>
    SQL>  create table err_log
      2     (
      3       log_cd      varchar2(20),
      4       log_desc    varchar2(500)
      5     );
    Table created.
    SQL>
    SQL>
    SQL>   create or replace procedure ins_err(errcd   in  varchar2,
      2                                        errnm   in  varchar2)
      3    is
      4      pragma autonomous_transaction;
      5    begin
      6      insert into err_log values(errcd,errnm);
      7      commit;
      8    end;
      9  /
    Procedure created.
    SQL>
    SQL>
    SQL>   create or replace procedure ins_aud(ud   in varchar2,
      2                                        unm  in varchar2)
      3    is
      4      pragma autonomous_transaction;
      5    begin
      6      insert into audit_info values(ud,unm);
      7      commit;
      8    exception
      9      when others then
    10        ins_err(sqlcode,sqlerrm);
    11    end;
    12  /
    Procedure created.
    SQL>
    SQL>
    SQL>
    SQL> create or replace trigger log_odsuser1
      2   after logon on odsuser1.schema
      3   begin
      4     ins_aud('ODSUSER1',sysdate);
      5   exception
      6     when others then
      7       ins_err(sqlcode,sqlerrm);
      8   end;
      9  /
    Trigger created.
    SQL>
    SQL*Plus: Release 9.2.0.1.0 - Production on Tue Jun 12 12:21:09 2007
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.6.0 - Production
    SQL>
    SQL>
    SQL>
    SQL> set serveroutput on
    SQL>
    SQL>
    SQL> select * from audit_info;
    USR
    LOG_TIME
    ODSUSER1
    12-JUN-07 12.00.00.00000000 AMHope this will solve your purpose.
    Regards.
    Satyaki De.

  • Problem in deploying Java Extension to ORacle SQL Developer

    Hi all,
    I have developed a simple Java extension using Oracle Jdeveloper. This extension creates a preference in Tools->Preferences.
    I have deployed it on Jdeveloper and it works fine. But when I deploy it on Oracle SQL Developer its functionality does not work
    I am using JDeveloper 11.1.1.4
    and Oracle SQL Developer 3.2.20.09 (Latest Version).

    Hello,
    You are giving few informations. Is the extension listed in the extensions tab in the 'About' tab? Are you able to deploy any extension to SQLD?
    Joop

  • Help how to connecting Oracle SQL Developer 3.0  with Oracle Database 11g

    Hello,
    I'm new in oracle developer yesterday i setup in my laptop database 11g the last version (11.2.0.1.0), well i follow steps still i got succeed to install, and i got my local host URL and i test my user name and password work very well, my problem now is i try to connect database 11g using Oracle SQL Developer 3.0 (3.0.04.34) but always filed and with my little experience i don't know where the wrong. as i said i test database after finish install is work fine the my URL is https://Ahmed-HP:1158/em and i test my username and password that i already set before is enter normal in my local database, please i need help to know how i connect database with Oracle SQL Developer 3.0 (3.0.04.34).
    Thanks,

    885173 wrote:
    EdStevens, thanks for your quick answer, sorry for my explain was doesn't clear, i open oracle sql developer and choose new connection i set connection name system_orcl username:system password:*i set my password that i create when i setup database*
    -Now the link that i got after finish install database is https://Ahmed-HP:1158/em so i have question about this point Hostname and port if the link to access database is this https://Ahmed-HP:1158/em so this mean i typing at Hostname:localhost and port:1158 ?
    because the message when i test connection always is filed and I'm sure i typing username and password and SID:orcl as i set when install database.port 1158 is what the dbcontrol (Oracle Enterprise Manager) is listening on. OEM is NOT the database. As far as the database is concerned, OEM is "just another client".
    Actually, the database doesn't listen for requests on any port. There is another process, the "listener" that listens for requests to connect to the database. Typically, it listens on port 1521. You should have a tnsnames.ora file set up to resolve a connection request to the correct host. You can read more on this at http://edstevensdba.wordpress.com/2011/02/09/sqlnet_overview/

  • Is there any known problem using Oracle SQL Developer 3.0.04 with Java 1.7?

    I'm new to Oracle. I have installed Oracle SQL Developer 3.0.04 and Java 1.7. When I run Oracle SQL Developer, I will get the window Running this product is supported with minimum Java version of 1.6.0_04 and a maximum version less than 1.7. This product will not be supported....
    Is there any known problem using Oracle SQL Developer 3.0.04 with Java 1.7?
    I have already downloaded Java 1.6 but don't know whether I need to uninstall Java 1.7 first. If don't need to uninstall Java 1.7, how can I set Oracle SQL Developer to run with Java 1.6?
    Thanks for any help.
    Edited by: 881656 on Aug 25, 2011 11:22 AM

    Hi,
    One prior post discussing the use of Java 7 is:
    SQL Developer 3.0  and Java SE 7?
    There is no need to uninstall any Java version (except if you have disk space constraints) and no problem switching between Java versions. This may be controlled in the sqldeveloper.conf file in your ...\sqldeveloper\sqldeveloper\bin directory via the SetJavaHome line. For example:
    #SetJavaHome ../../jdk
    SetJavaHome C:/Program Files/Java/jdk1.6.0_26
    #SetJavaHome C:/Program Files/Java/jdk1.7.0Regards,
    Gary Graham
    SQL Developer Team

  • Connecting to HR schema in Oracle SQL Developer

    I have installed Oracle sql developer 3.2 version.And I dont have oracle client installed.
    Can I connect to HR schema with this set up.
    If yes ,please suggest me the credentials.
    Thanks.

    You do not need any oracle client installed, you do however need a database somewhere to connect to.
    The credentials you require would be for this database, and so we cannot help you get them.
    If you have a DBA that manages your databases ask him for the credentials.
    If you are on your own and just want to try out something, your best option is to install an Oracle XE on your own system, then you can connect with the defaults SQLDeveloper already has when creating a new connection (the system password will be set during database installation so note it down), then you can play with your newly installed database.

  • How to update column in Oracle SQL Developer?

    Hi everybody,
    How can I update table in Oracle SQL Developer like in PL/SQL Developer use:
    Select * from table for update;
    Thank you~

    Do you mean you want to edit the result grid?
    You can't edit the result grid of a query, but you can edit the data tab of a table.
    Click on the table in the object browser
    Click on the data tab
    Optionally filter the results using the filter field at the top
    Type into the data cells.
    Click on the commit button

Maybe you are looking for