Store result in file in SQL Developer

Hi,
Is there any way to store results from query or SP in physical file ?
I could not find any option for that, I'm running it from Windows machine using SQL Developer,
then I expect output file will be stored on Ora server machine, right ? There is probably no option for Oracle to store it on local W machine.
Tx All
TRent

A few remarks:
- This is not the SQL Developer forum
- SQL Developer comes with online help
- Did you see the print and the disk icon in the upper left hand corner of the output window
Could you please avoid this type of question in the future? It makes you look very silly.
Thank you in advance
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • Loading XML file in SQL Developer become ONE ROW !!

    Hi:
    I load the XML file to SQL Developer.
    I found out that the XML files data are in one ROW?
    Am I right?
    Please let me know please
    Sem

    Hi RAGS1109,
    If our XML data starts to get more complicated (multiple levels of elements / attributes), we start getting more outputs, we will have to join those outputs with a merge join transform.
    Please refer to the following document how to dealing with multiple outputs for XML data source:
    Using XML Source:
    http://blogs.msdn.com/b/mattm/archive/2007/12/11/using-xml-source.aspx 
    Process Multi-Level XML in SSIS:
    http://www.youtube.com/watch?v=rFgLV58EcXA
    If you have any feedback on our support, please click
    here.
    Elvis Long
    TechNet Community Support

  • Double click to open .sql files with sql developer on mac osx

    hi,
    I am trying to double click a .sql file and open it with SQL Developer on Mac OSX lion. I have associated .sql files to SQL Developer. On clicking the file it opens the SQL developer application but does not open the actual .sql file. Any ideas?
    Thanks

    Hello,
    Did you find any solution to your problem ? My SQL Developer worked fine and could open additional SQL files. Now it only opens the first one when starting SQL Developer. Additionnal files cannot be opened. Even running sqldeveloper.exe from command line with a SQL file as parameter doesn't help.
    I'm on Windows 7, 64 bit, but the environment may not necessarily be the cause.
    Regards
    -- Alwin

  • Load .JAR file using SQL Developer

    Hi,
    I have couple of .JAR files on my local machine which has to be loaded on to the oracle server (11g). I tried using the load Java functionality in the SQL Developer but realised one could load a java class only if you had the source code.
    Is my understanding correct or is there a way to load a JAR file using sql developer ?
    Thanks

    K,
    Thanks for the answer.
    Do you know if you have to restart oracle after loading .jar files ? I ask this because I am not aware if oracle/jvm automatically knows that the jar files have been uploaded.
    Thanks

  • How to exclude schema name from exported files (PL SQL Developer)

    Dear all,
    Just one question: I am using PL SQL Developer. My goal is to export some data (as .sql and .dmp files) from one database and to import them into the another database (both databases have identical structure - test database and production, just different database names and names of schema. In order to make it possible, I need to exclude schema name from generated export file. I believe that it is possible to do it automatically by setting up parameters of PL SQL Developer. How?
    Thank you in advance,
    Kindest regards,
    Dragana

    In the meantime, I have found the answer on my previous question:
    Actually, the initial idea (how to exclude schema name from exported files) was wrong. No need for any intervention.
    Trick is: Schema name can be changed during the import of exported files (PL SQL Developer during import gives possibility: From User (old schema) To User (new schema) .
    Hope that this will be useful info for others.
    Dragana

  • Different results on timestamps in SQL developer

    Hi
    I have this table with a TIMESTAMP column in it.
    CREATE TABLE my_table ("TID" TIMESTAMP (6) NOT NULL ENABLE);
    I use this query in SQL developer:
    SELECT tid from my_table;
    There is one row in the table, that has a timestamp in the hour of the change to european summertime.
    The timestamp of this row is displayed differentliy in SQL developer:
    - when the query is run by 'run stamement' (Ctrl+enter) the result is
    11-03-27 03:17:00,000000000
    - when the query is run as a script (F5) the result is
    11-03-27 02:17:00,000000000
    Notice the difference in the hours of the timestamp.
    Why this difference? (It only occurs for timestamps within the hour of 2 am to 3 am on that date - the hour that should'nt exist as the clock advances from 2 am to 3 am that night...)
    What is actually stored in the database? (the 3.17 am or 2.17 am value)
    Is there a conversion taking place when running as a script in SQL developer, but not when just running the single stamement?
    Regards Søren

    Hi Søren,
    This is rather an "edge" condition error, but I have posted an internal bug for it:
    Bug 13088622 - FORUM: RUN SCRIPT/STATEMENT TIMESTAMP VALUE DIFFERS DURING DT/ST CHANGEOVER
    Please provide some version information about your environment: SQL Developer, Java JDK, OS, etc.
    Regards,
    Gary
    SQL Developer Team

  • How export result in sybase in SQL Developer 2.1 ?

    Hi,
    I cant find any option to export from the result grid when i query on a sybase database, how can i export the result in excel or csv in SQL Developer 2.1?
    This option was available in SQL Developer 1.5

    There was a statement by Raghu that 3rd party database data export in the worksheet grid (to Excel and other formats) was disabled for this release, and I can confirm that this is not working for MySQL in addition to Sybase. Is this a bug, or was it intentional? Obviously, I'd like to have the feature restored. Thanks.

  • Add sql files in sql developer

    Hi. I am new at sql developer. My teacher gave me two files both sql file format, and told that i should make a new user in sql developer and add this files to make new tables and then he gave me some exercises to do on this tables. I made new user but i don't know how to use this 2 sql files and how to make tables using them. here you can see that files: http://www.2shared.com/file/BTxqsts0/scott.html . please help
    Edited by: Mateo Falcone on Mar 3, 2011 3:33 AM

    Didn't they teach you how to use this program?
    I suggest you go through the tutorials inside sqldev's help first.
    Basically, you can just open them through File - Open, or through Windows' Explorer. Then assign the connection in the upper right corner, and Run Script (F5).
    Have fun,
    K.

  • View .erd files in SQL Developer

    Hi,
    I was given an .erd file that was created in TOAD. I have SQL Developer, and I haven't figured out how to view the file. Do I need a different tool? I do not have the ability to get TOAD, so I will need something else to view these files.
    Any ideas?
    Thanks!

    Pretty sure erd is a proprietary format from TOAD, not some open standard as pdf is.
    So find the ability to get TOAD, or throw away the file and start over in another tool.
    Have fun,
    K.

  • Bulk import of tnsnames.ora file into SQL developer on first run

    Is there a way for SQL developer to read the tnsnames.ora file and import all of the connections from that? Near as I can see, I would either have to manually add each of them or import an xml file of some kind...Thoughts?

    There's a feature request for this at the Exchange (http://htmldb.oracle.com/pls/otn/f?p=42626:39:3634225177876117::NO::P39_ID:4582), but they closed it down like a crack-house :-(
    So you just have to continue your manual slave-labours...
    Have fun,
    K.

  • Import an excel file into SQL Developer and create a table

    Hello everyone!
    I have an Excel file I want to Import into SQL Developer. Do I need to Create a table first than import the file into the table?
    Or is there a way to import an Excel file and it automatically generate or turn into a table?
    I would really appreciate any directions or explanations.
    Thanks everyone!
    Java Man

    Joyce Scapicchio wrote:
    I suspect that you are having memory problems opening the excel file. This is a known issue with excel files for importing and exporting. Check this post for suggestions:
    Re: Export to Excel Hangs to Excel Hangs ]
    Joyce Scapicchio
    SQLDeveloper TeamThanks for the reply but the problem was I needed to convert the file to a csv format. To do this open the file in Excel and re-save as CSV Comma Delimiter. Don't worry about data-types because when the file is uploaded to SQL Developer, you will have the chance to set all the parameters, data-types and so on.
    Once I did this and try opening the file, the setup window opened and I was able to do all the additional tweaking and convert the data to a table.
    Because of this I am speculating that SQL Developer does not work with Excel XLSX extension.
    Thanks again!
    JM

  • How to load jar file using SQL Developer

    Dear All,
    I need urgent help to load mytest.jar to the database using SQL Developer. I am able to load individual java classes to the database using SQL developers, but i could not load JAR files. Please help me any one know how to do this using SQL Developer.
    Thanks and Regards
    John p

    I don't think that's possible, so load it through the OS with the loadjava utility.
    Have fun,
    K.

  • Upload Image/File using Sql Developer tool

    Is there a way to upload an image/file to a HUGEBLOB field from the sql developer tool?
    (Toad has this, we were wondering if this is available on sql developer)
    Thanks for your help!
    Sunder

    K,
    Thanks for the answer.
    Do you know if you have to restart oracle after loading .jar files ? I ask this because I am not aware if oracle/jvm automatically knows that the jar files have been uploaded.
    Thanks

  • Explain plan results are different in SQL Developer than SQL Plus

    My Environment:
    SQL Developer 1.0.0.15.27
    Platform where SQL Developer is running: Windows XP 2002 SP2
    Oracle Database and Client 9.2.0.7
    Optimizer_mode: FIRST_ROWS
    I have the following SQL statement:
    SELECT a1.comp_id
    FROM temp_au_company a0, au_company a1
    WHERE :b2 = a0.temp_emp_code
    AND a0.comp_id = a1.comp_id
    AND a0.sls_terr_code != a1.sls_terr_code
    AND a1.last_mdfy_date > :b1
    When I run an Explain in SQL Developer I get the following access path (which is the one I really want):
    SELECT STATEMENT                          TABLE ACCESS(BY INDEX ROWID) FEDLINK.AU_COMPANY          NESTED LOOPS                                   INDEX(RANGE SCAN)
    FEDLINK.UX2_TEMP_AU_COMPANY
              INDEX(RANGE SCAN) FEDLINK.PX1_COMPANY
    However, when I execute the statement with sql_trace turned on and use tkprof to generate the actual access path, the statement executes as follows (which is WAY more expensive):
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 0 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 1 3.58 6.68 28136 29232 0 0
    total 3 3.58 6.69 28136 29232 0 0
    Misses in library cache during parse: 1
    Optimizer goal: FIRST_ROWS
    Parsing user id: 979 (FEDLINK) (recursive depth: 1)
    Rows Row Source Operation
    0 NESTED LOOPS
    0 TABLE ACCESS FULL AU_COMPANY
    0 INDEX RANGE SCAN UX2_TEMP_AU_COMPANY (object id 49783)
    Notice the FULL access of au_company.
    I understand that SQL Developer has nothing to do with why the statement executed the way it did, but why is the Explain in SQL Developer different than the actual execution plan?
    Added note....when I run the explain in SQL Plus it is the same as the actual execution. Here is the explain from SQL Plus:
    explain plan for SELECT a1.comp_id
    FROM temp_au_company a0, au_company a1
    WHERE '1' = a0.temp_emp_code
    AND a0.comp_id = a1.comp_id
    AND a0.sls_terr_code != a1.sls_terr_code
    AND a1.last_mdfy_date > '01-MAY-2006';
    PLAN_TABLE_OUTPUT
    | Id | Operation | Name | Rows | Bytes | Cost |
    | 0 | SELECT STATEMENT | | 2 | 76 | 2597 |
    | 1 | NESTED LOOPS | | 2 | 76 | 2597 |
    | 2 | TABLE ACCESS FULL | AU_COMPANY | 2 | 42 | 2595 |
    | 3 | INDEX RANGE SCAN | UX2_TEMP_AU_COMPANY | 1 | 17 | 2
    Thanks,
    Brenda

    The explain is different (full scan of au_company in SQL Plus / index access in SQL Developer) even when I use variables in SQL Plus. Here is the output for SQL Plus using variables instead of literals:
    SQL> variable b1 varchar2
    SQL> variable b2 char
    SQL> explain plan for SELECT a1.comp_id
    2 FROM temp_au_company a0, au_company a1
    3 WHERE :b2 = a0.temp_emp_code
    4 AND a0.comp_id = a1.comp_id
    5 AND a0.sls_terr_code != a1.sls_terr_code
    6 AND a1.last_mdfy_date > :b1
    7 /
    Explained.
    PLAN_TABLE_OUTPUT
    | Id | Operation | Name | Rows | Bytes | Cost |
    | 0 | SELECT STATEMENT | | 3184 | 118K| 2995 |
    | 1 | HASH JOIN | | 3184 | 118K| 2995 |
    | 2 | INDEX RANGE SCAN | UX2_TEMP_AU_COMPANY | 3187 | 54179 | 3 |
    | 3 | TABLE ACCESS FULL | AU_COMPANY | 24009 | 492K| 2983 |
    Any other ideas? They should be the same.
    Brenda

  • Another SQL Developer bug - End of file in comment

    I found another SQL Developer bug in version 3.0.0.4.
    If I try to compile some package from file (so I open file with package body in SQL Developer and assign it to some connection) with this kind of comment: /* comment */ behind end of package, I get this error
    I got Error(1250,28): PLS-00111: end-of-file in commentFunny is, that when the package is compiled directly from the database - it works.
    When I try to compile the package from file with this kind of comment --comment behind the end of package, it also works...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi, I think I finally got it. This looks like an ugly fat bug :)
    First, we are not using the .sql extensions. For package specification - we use .pks. For package body - we use .pkb.
    Create this script:
    CREATE OR REPLACE PACKAGE TEST_xxx AS
    PROCEDURE TEST_PROCEDURE;
    END TEST_xxx; /*0123456789*/Now save this as e.g. "TEST.pks" file. Open this file in SQL Developer and compile it. You will get the "Error(3,27): PLS-00111: end-of-file in comment".
    Now look at the result in the database -> Open the package specification from the database and you see this:
    create or replace
    PACKAGE TEST_xxx AS
    PROCEDURE TEST_PROCEDURE;
    END TEST_xxx; /*0123456789*The last slash is missing...
    Now go back to the file with the package specification and delete one letter from the comment. Compile it again... it works now.
    It looks like the length of this kind of comment is limited to 9 characters.
    The limitation is there only when:
    1) Compiling from file with different extension than .sql !!! If you rename the file to "TEST.sql", SQL Developer opens it as a script file and runs it as a script, so there is no problem with it.
    2) It has to be this kind of comment: /* */. One line comments are not limited.

Maybe you are looking for

  • Projected stock with PP solution

    Hello All, Can someone let me know if it´s possible with standard PP solution, to have our project stock in house, based on what we have planned to produce and what we have already orders to ship to. Someone told me that is possible without SCM - APO

  • Macbook pro, bought on april and it came with lion

    so i bouth me my 1st and new macbook pro, but it came with lion 10.7, i bought it yesterday, i know that the free upgrade program ended on march 30, but do you know if there is any chance i can get the upgrade? since the macbook came with lion and it

  • Using PrintWriter for writing to file

    Friends, I am just begginer in Java programming. I am trying to write a message to the Log file as below. It just opens the file but writes nothing to it. What is missing here ? any help is appreciated. FileWriter fw = new FileWriter(new File("Readon

  • Trying to print, nothing happens, it says plug in failure.  Any idea why I can't print?

    I am trying to print without any luck.  It says plug-in failure.  Is that the reason and if so, what do I need to do to print?  It has always printed before.

  • Bold letters in classical report

    Dear Gurus, Could any one please let me know how to print Bold letters in Classical report for example : I want to print " Hello Satya, How are you  " the out out desired is " Hello Satya, How are you " Thanks & Regards, Satya.