Reg: Custom formatting SQL Developer 4.1

Hi Experts,

I'm having a custom formatting. Has made some adjustments in Tools > Preferences > database > SQL Formatter but could not get it exactly like I want to.

SELECT t1.col1

T1.col2,

T1.col3,

T1. COL4,

T1.col5,

T1. OTP,

T2. FID,

T2. PID

FROM table_1 t1,.

table_2 t2,

table_3 t3

WHERE t1.rid = in_rid

AND t1.col5 = t2.lid

AND t1.col1 = t3.loid

AND t1.atp NOT AS "ABC%".

AND NOT EXISTS

(

SELECT t4.*

OF table_4 t4.

table_5 t5

WHERE t4.tid = t5.tid

AND t5.active = 'Y '.

AND t4.flag = CC_FLAG

AND t4.anw IS NULL

)

ORDER BY t1.col3;

(1) I want to put join conditions (red) highlighted in the next line after the WHERE clause. (Do not want to place it in line with WHERE)

(2) can we have another level of indentation (1 or 2 more tab-space) AND in the WHERE clause. (Don't want the AND and WHERE clauses to be on the same vertical line)

Is this feasible?

Thank you and best regards,

-Nordine

(1) Yes

(2) Yes

Tags: Database

Similar Questions

  • SQL Developer: Right-click > format works well with the DATE data type

    Hi all!

    Currently I use the version of SQL Developer Version 3.1.05.

    A question concerning the "auto-format" of syntax each time that writing in the code editor.

    If you take this code snippet and drop into a spreadsheet, then highlight it, right-click of the mouse and select "Format" it's like he fails to add the appropriate spacing when he runs in the DATE data type. I looked all through the: Preferences > database > sql formatter > formatting oracle > change and could not find anything about the formatting with date types.

    I'm looking in the wrong area? Is this a known bug? Am not too looking for this specific question. I LOVE the format function, but I hate having to go through each type of date and manually spacing everything make "clean". I'm picky I guess: P I can live with that but figured that I would ask.

    type TEMP_REC
    IS
    record
    (
    ORG_CODE VARCHAR2 (15).
    PROJECT VARCHAR2 (15).
    WBS VARCHAR2 (30),
    SERIAL_NO VARCHAR2 (30),
    NUMBER OF QTY_ORDERED
    NUMBER OF QTY_SCRAPPED
    NUMBER OF QTY_COMPLETE
    NUMBER OF BOM_ID
    DATE OF REQUEST_DATE,
    CREATE_DATE DATE,
    DATE OF REL_DATE,
    START_DATE DATE,
    DATE OF NEED_DATE,
    END_DATE DATE,
    DATE OF COMPLETE_DATE,
    CREATED_BY VARCHAR2 (30),
    MODIFIED_BY VARCHAR2 (30),
    MODIFY_DATE DATE,
    EST_HOURS NUMBER (6.2),
    ACT_HOURS NUMBER (6.2),
    BAD_COMMENTS VARCHAR2 (1000));

    I can see it now with your last test case. It also changes the future alignment of the varchar2 and number of columns. that is before the date column the varchars line to column 19, after it the line upward in column 18.

    It looks like a bug.

  • Oracle Sql Developer prblem with variable format

    Hi all

    pls help me when I use the
    variable winnien number;
    exec :winnien := 3.1415;
    print winnien;
    I had

    anonymous block filled
    WINNIEN
    -
    3

    Why?

    What should I do to complete display number.

    Rgds

    Krzysztof salvation,

    Your example will work in SQL * more (unless you change the value "set formatnum" to something too small), but not (so far) in SQL Developer. Over time, Developer SQL is heading for a more complete support of SQL * over the syntax of the command, but there is no guarantee of compatibility.

    Here is a slightly modified version of your example that illustrates how currently works Developer SQL (3.1.07.42).

    variable winnien number;
    variable winnies varchar2;
    exec :winnien := 3.1415;
    exec :winnies := '3.1415';
    print winnien;
    print winnies;
    select :winnien, :winnies, to_number(:winnies) as winnies from dual;
    

    Output:

    anonymous block completed
    anonymous block completed
    WINNIEN
    -
    3
    
    WINNIES
    ------
    3.1415
    
    :WINNIEN :WINNIES                         WINNIES
    -------- -------------------------------- -------
           3 3.1415                            3.1415 
    

    Note: 'set formatnum' is not supported, but "col format..." "is.

    Kind regards
    Gary
    SQL development team

  • Customer who uses SQL Developer

    We have improved our development of 10.1.0.4 to 11.1.0.7 database. We will test the version 11 of the customer, but we have still the 10.2 installed client. How can I know which client is being used with SQL Developer when I connect?

    I can't find anything under Tools > > Preferences, or in the connection itself. I can see several entries duplicated under "network Alias', which, if it is reading all the TNSNAMES.ora files under each customer, then who would be a sort of logic.

    V$ SESSION looks like it says nothing either.

    Thank you
    -= Chuck

    Developer SQL tries to detect the customer installs and use drivers JDBC them if possible. You can check what Oracle Home/JDBC driver, we use by accessing the area by the way (help-> comments) and go to the tab of properties Look for the jdbc.library and oracle.homeproperties.

    -John
    SQL development team

  • How to set up the PL/SQL Developer with customer instant

    Hi buddies!

    I want to install PL/SQL Developer. I would like to install Instant customer? I need to install the PL/SQL Developer in my pc that will access the database of the server.

    Please enlighten me.

    Thank you.

    See you soon!

    Nith

    Published by: user645399 on May 12, 2010 16:26

    user645399 wrote:

    Here are the steps I followed.

    I don't see a problem with these steps. It is correct. Step 7 is redundant (because of the where you have placed the tnsnames.ora file)-it is only really necessary when you place the file in another directory where +%ORACLE_HOME%\network\admin+ is no longer applicable.

    Note that the customer himself, needs to load the DLL of OIC InstantClient - and this DLL uses the settings of environment and the rest of "do its thing".

    If customer load another customer Oracle DLLS, then bets are open InstantClient is used, never mind will work.

    Only one copy of a DLL can exist in memory. So if some other s/w is using other DLL OIC, then this DLL is already loaded and will be used by all other client s/w. Nothing will be able to use the DLL itself InstantClient.

    Therefore, make sure that no Oracle client driver is loaded at all. Then make sure that when the client s/w requests to load the DLL of the OIC, it is loaded from the InstantClient directory.

    As far as I remember, the core Win32 LoadLibrary() call is made by the application - if the DLL is not in memory, the current (in the virtual machine for this process of Windows) directory is used. If the DLL does not exist there, the %PATH% variable is used to find and load the DLL. DLL usage meter is then set to 1. When multiple processes require the DLL, it is incremented. When a process ends, the usage count is decremented. When it reaches 0, its unloaded from memory.

    Result of all this is that only one module DLL (whatever the number and versions of the physical DLL files on disk) can reside in the kernel space, and you must ensure that the correct physical DLL is loaded by the kernel.

  • Oracle SQL Developer datetime format

    Hello

    I use Oracle SQL Developer 1.5.1. When I query from a table with a column of type DATE, the result for this column shows data only go back but not time, as below.

    ID TIME_STAMP
    .....        ....................
    100 29 AUGUST 08

    How can I get display date and time as 08:46:22.0 29 August 08

    Thank you

    Published by: user10182401 on August 28, 2008 20:19

    Published by: user10182401 on August 28, 2008 20:21

    Published by: user10182401 on August 28, 2008 20:23

    (1) Note that there is a separate SQL Developer forum where you probably want to run this kind of issue in the future

    (2) assuming you are using 1.5, tools | Preferences | Database | NLS parameters has an option to Format for a Date. You want to change this to any mask format you prefer.

    Justin

  • Oracle SQL Developer 3.1 or 1.5.5 Oracle11g customer?

    Hello

    What SQLdeveloper is the latest version? I just installed a client Oracle11g on Windows XP 32 bit that comes with SQLDeveloper and installs it in ORACLE_HOME. This is the version 1.5.5.
    How is it related to version 3.1? What is the difference?
    The standalone version was 3.0.0x.

    Thank you
    Richard

    3.1 is the latest.

    The reason why the version shipped with 11g is so old, it's that the publication cycle for the DBMS (including the client bundle) is much slower than SQL Developer. GR 11, 2 is a couple of years now and there are several versions of SQL Developer since then.

  • Taking JDBC connection configuration supported the RAC in Oracle SQL Developer?

    How can one Oracle SQL Developer be configured to successfully connect to a [Oracle RAC | http://en.wikipedia.org/wiki/Oracle_RAC] environment, that is, not only the installation program always to connect to one of the individual nodes?

    [http://programmersjournal.blogspot.com/2008/08/jdbc-connection-string-for-oracle-rac.html] is an example of a classic and taking version supported the equivalent CARS of a JDBC connection string. I've used a CAR of the same format connection string from within Java applications custom without problem. I thought that the same thing should be configurable in Oracle SQL Developer, by setting the 'Connection Type' drop-down menu on "Advanced", then enter the connection string JDBC RAC-aware as "Custom URL JDBC". However, after the test connection, the following error message is displayed at the bottom of the dialog box:

    Status: Failure-Test failed: IO exception: NL Exception has been generated

    There is no additional information shown on the display 'Page Logging'. With the help of Oracle SQL Developer 1.5.5.

    Thank you!

    You could always give the current 2.1 ai2 test... continuous development may have fixed the issues in this area...

    Hope that helps,
    K.

  • The using Excel and Oracle SQL Developer data import - I need help

    Dear friends,

    I use Oracle SQL Developer 1.5.1 and I need to import an Excel file into a database table. If I try to import this file into XLS format, fields and headers are properly presented and separated, but if I press the button 'Next', it does nothing - it remains stopped.

    I did some research here in this forum and it seems to me that when you try to import a file via the XLS format, Developer SQL has bugs. Is this correct?

    If I save the same file in the CSV format and try to import the same file, it moves forward, but SQL Developer is not separating headers and fields correctly. It includes all CSV fields into one - say Column0 and fields 1. TEST; 01/01/2000 under the same Column0.

    Save the file in the CSV format is not a problem, by taking a little time. But I don't know how to make Developer SQL import correctly. Could someone help me please? Thanks in advance.

    Best regards

    Franklin

    This is a known bug in 1.5.1 so use 1.5.0 to import from Excel.
    With respect to the CSV, make sure that you have the right setting in the Preferences - Database - settings of export of genres - delimiter of export custom .

    Have fun
    K.

  • Insertion and extraction of data from a database by USING SQL Developer al32UTF8

    Hi guys,.

    Before I post my questions, I think it's better for me to give you guys my first understandings so that it is easier to understand where / if I have gone wrong...

    I use Windows XP and Oracle 10 g
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Non-unicode client - a client program that needs to use the code page of the operating system for the mapping of unicode data retrieved from the database as well as the support to display/insert characters from the code page to the database.
    For example sqlplusw.exe

    Therefore, when you use a non-unicode client

    (1) we define the code page of the OS (Control Panel - regional and language of the parameter - advance - the language for non-unicode programs) to the code page that contain the characters that we will view/insert.

    (2) we also defined the NLS_LANG characterset on the character set of code page, that we'll insert so that when we do an insert (for example in thai), oracle will and automatic conversion to Unicode can take place. This is also true when recover us the database unicode data so that the correct character set conversion can take place.

    INSERTION OF
    THAI->-> UNICODE conversion

    RECOVERY OF
    THAI <-conversion <-UNICODE

    I hope that my basic understanding is correct up to this point.
    ---------------------------------------------------------------------------------------------------------------

    Unicode client - a client program that supports display/inserting unicode characters without the need to set the code page of the operating system (Control Panel - regional and language setting - control - language for non-unicode programs advance)
    For example isqlplus http or SQL Developer

    However,.

    (1) there are still set the NLS_LANG so that the correct conversion can take place between the client and the database.
    For example, when the recovery if we set NLS_LANG value ZHS16GBK (Chinese) character and store data in Unicode in the database is for example (THAI), then the conversion would be a mistake.
    It's a supported unicode client, then the NLS_LANG character set should be set to UNICODE as well.

    ---------------------------------------------------------------------------------------------------------------------------

    Those are my questions
    * Important - please help if you're busy and don't have the time to answer the remaining questions

    (* Q1) if I had to use a unicode client, what should I put my character NLS_LANG set?
    AMERICAN_AMERICA. UTF8?

    (* T2) where can I put the NLS_LANG information of character in SQL Developer, I know there is a metalink for setting NLS_LANG using isqlplus but I cant seem to google each led for SQL developer.

    Q3) is my basic understanding of up to this point? If no, please explain in a term more widespread that I'm really not familiar with character sets code page, unicode and fonts, glyphs...

    A unicode client (Q4) didn't need to refer to the OS codepage (regional and language updates), y at - it a code page UNICODE for the customer to refer to, or is there an available window API?

    Q5)
    , there are still set the NLS_LANG so that the correct conversion can take place between the customer and the > > database.
    For example, when recovery if we set NLS_LANG value ZHS16GBK (Chinese) character and the data store in > > unicode in the database is for example (THAI), then the conversion would be erroneous.
    I'm just on this point for customer UNICODE supported?
    --------------------------------------------------------------------------------------------------------------------------

    Thank you for spending the time to read my questions and I hope to hear soon tips from you guys.
    Million thanks again for sharing.

    Best regards
    Noob, but eager to learn

    The requirement to always set NLS_LANG is not true for JDBC, which ignores the NLS_LANG altogether. Java programs extract the textual data in string variables, which uses Unicode UTF-16 by design. JDBC defines the conversion of character sets so that data is converted between UTF - 16 and the database or the national character set.

    The obligation to set NLS_LANG is not generally true for the OIC, either. The first call to a problem of the BEAK may be OCIEnvNlsCreate(). This call has two parameters that allow the caller to set the character set to use for the text of VARCHAR2/TANK/LONG/CLOB/statement and the character set to be used for NCHAR/NVARCHAR2/NCLOB. Only if these character sets is specified as 0, character set NLS_LANG is used. Also, the OIC programs can specify different character for each binding sets or set the variable (i.e. the buffer input/output). Note: The OIC programs always use NLS_LANG to initialize the language settings and the territory for the client program and the database session. Only the character set can be specified is OCIEnvNlsCreate().

    OCIEnvNlsCreate() can specify the client character set to UTF-16 (platform boutien) format. This is not possible with NLS_LANG.

    Various interfaces based on the BEAK, such as ODBC Oracle and .NET for the ODP, explicitly initialize OCI with character set Unicode and therefore ignore the NLS_LANG character set as well.

    Thnx,
    Sergiusz

  • How to get SQL Developer 4.1 to display the query result?

    SQL DEV 4.0.3.16.84 execution of a SELECT statement is stored in a .sql file causes the window of the query result of pop-up indicating the result of a SELECT statement.  SQL DEV 4.1 is not to do so.

    Oops on my part; my SQL formatting has been the root cause.  I got used to insert split without any character of comment lines in front of them.  For example:

    ==================================================

    Select funny business;

    The foregoing indicates the behavior described.

    --==================================================

    Select funny business;

    With the dash double comment shows, the SQL works very well.

    This is different than previous versions of SQL Developer, but is probably better functionality.  I'll try to mark it as answered, but anyone with the admin should certainly do so if I can't.

  • call a procedure stored since SQL developer UI

    I have a stored procedure that is created with a date in parameter.

    Then I tried running SQL Developer by right-clicking the stored procedure, then it comes out a parameter window and I tried to enter the value in the entry value field by entering January 1, 2015 "because I know our server date format is DD-MON-RR."

    But it shows a window of incorrect format: Please use date format YYYY-MM-DD,

    Why is this?

    The generated SQL Developer code is less after I ' 2015-01-01'

    DECLARE
    DATE OF P_DATESTORED;
    BEGIN
    P_DATESTORED: = to_date('2015-01-01','yyyy-MM-dd');

    MySproc)
    P_DATESTORED = > P_DATESTORED
    );
    -restoration;
    END;

    I can just use below: for the date, the Server format is DD-MON-RR.

    Begin

    MySproc('01-JAN-2015')

    End;

    Thank you

    We use oracle 11g 2, the window environment.

    The code is generated (SQL Developer) client-side. This code generation, by design, does not count the current NLS_DATE_FORMAT of the session. Instead, it uses the date coded hard YYYY-MM-DD format. It seems to be a design decision.

    If you want to enter this date value in a particular format, use the following snippet directly in the SQL worksheet (F5: run script), modified for your desired date format, or omitted date format - I really discourage the to do.

    DECLARE

    DATE OF P_DATESTORED;

    BEGIN

    P_DATESTORED: = to_date ('& myinput', 'YYYY-MM-DD');

    MySproc)

    P_DATESTORED-ONLINE P_DATESTORED

    );

    -restoration;

    END;

    /

  • Issue multiple exe SQL Developer 4.0

    Hello

    In our application, we do an action dependent on sql client exe. Our application supports several client sql but we are facing problem for sql developer 4.0 support as there are four exe for this customer.

    1 sqldeveloper.exe

    2 sqldeveloper64.exe

    3 sqldeveloper64w.exe

    (4 sqldeveloperw.exe)

    When we launch developer sql 4 one of the tracks of these four exe based on certain conditions. (Not sure, but it could be based on OS)

    Can someone tell me on what condition these exe runs, so that I can put this condition in my code.

    Thank you

    Saurabh

    Ask your application to look in the parent directory exe - it handles the logic for you

    two are 32-bit, two are 64-bit - then look at the jdk level bit

    two are for debugging, the two are not

  • Migrate from SQL Developer to another machine with all parameters

    Is there a documented way to migrate from SQL Developer to another machine? I want that all my preferences (format sql, shortcuts etc.) history of sql, user, etc. connections reports are available on the new machine.

    I know how to export/import connections. But for the rest, the pointers appreciated. I'm moving from a Win 7 32 bit to Win 7 64-bit machine. SQL Dev version is 4.0.2.15.

    Thank you

    Manish

    Move your user defined reports in folders. You can save each of them with a single click in this way - to the folder level.

    We have a permanent application in the JDev team to build in the IDE, the ability to export/import settings.

    You can retrieve the directory systemX.X.X.X on the application data directory and must have almost everything.

  • How to execute a stored procedure on Sybase with SQL Developer

    We have accessed Sybase 15 with SQL developer.

    We can see the data in the table, if we do not, run the stored procedure (for instance sp_who) developed on Sybase.

    Could you tell me how we execute the stored procedure on Sybase with SQL Developer Sybase?

    Thank you

    Shige

    We will not intended to be a Sybase ASE customer.

    But

    A SQL Developer... @dermotoneill: Workheet advice

Maybe you are looking for