Truncated script output in SQL Developer ... what options are there?

SQL Developer 1.5.5
I have tried the following:
1) put a statement like this in the SQL Worksheet ( select dbms_sqltune.report_sql_monitor(session_id=>sys_context('userenv','sid')) from dual; )
2) highlight the text and right click on "Run Script"
The output will appear in the script window ( evidently a CLOB is returned ). Sometimes you will get a complete report but often if the SQL statement is long the output is truncated. It can look like this at the end:
DBMS_SQLTUNE.REPORT_SQL_MONITOR(SESSION_ID=>SYS_CONTEXT('USERENV','SID'))
*** LINES REMOVED ***
(CLOB) SQL Monitoring Report
*** LINES REMOVED ***
Last Refresh Time : 09/22/...
1 rows selected
Three dots appear just near the end of the output then I get the message 1 rows selected.
Using sqlplus I would set it up something like this and put it out to a file:
spool latest_sql_monitor_report.txt
set long 10000000
set longchunksize 10000000
set linesize 200
select dbms_sqltune.report_sql_monitor(session_id=>sys_context('userenv','sid')) from dual;
spool off
If I do the same basic thing in Toad I can get all the lines of output.
Ideas anyone?
Thanks John
Edited by: John Hurley on Sep 22, 2009 2:38 PM

Instead of running as script (F5), execute as statement (F9). This should put the CLOB in the result grid, hopefully complete.
Hope that helps,
K.

Similar Messages

  • How to flush script output in sql developer

    Greetings from a newbie,
    how can I flush script output in sql developer?
    regards,
    Valerie

    Flush? You can wipe the Output pane by pressing the "Clear" icon (crayon gum): the first icon on the tab's mini-toolbar.
    Does that answer your question?
    K.

  • Format script output in SQL developer

    HI,
    when I use sql plus every column is separated while in sql developer is mixed, or coalesced.
    I cannot clearly see the columns in the output.
    tnx
    Edited by: user10491698 on 07-Sep-2011 06:37

    You could ask in the {forum:id=260} forum ;-)

  • Newbie: Drums. What options are there for drums?

    Hi there,
    I'm having fun with Logic Express. I can play most instruments I need, but not drums. I've never played drums.
    I don't have much money to spend of it.
    Searching through previous threads, I found references to the following drum loop companies:
    Drums on Demand:
    http://www.drumsondemand.com/
    BetaMonkey:
    http://www.betamonkeymusic.com/
    Drums from H*ll (Hehee, the forum edited that word!):
    http://www.drumsfromhell.com/homeofdrumloops.html
    I already purchased Apple's Jam Pack Rhythm Section. I was a somewhat disappointed in it, because it contains a little bit for everyone, and one or two loops for every style in the world, but not much of what I want.
    I guess I want more slow-tempo rock. But not necessarily "soft rock". I like things to rise and fall in volume in a dramatic way, but not stay soft like a ballad, nor head-banging fast.
    I haven't listened to Drums On Demand, but I'm a bit afraid their "soft" disk might be full of soft dreary ballads, and their "heavy" disk might be full of really fast head-banging stuff.
    Maybe I'll still go with something like Drums On Demand. But the problem with loop disks seems to be that you will buy many loops that you will never use. And maybe, hopefully, find a few that are good. Pity they're not previewable online, and downloadable online.
    What about MIDI loops? Is it possible to purchase MIDI loops and then just apply them to a standard drum kit in Logic Express?
    I figured a MIDI file would be more editable. I could use an existing beat, and then add some extra drum or cymbal smashes to make it fit my music better.
    Or should I just learn to make my own MIDI loops? I have a good sense of rhythm for other instruments. Would it be possible to apply this to drums easily, and play them on a keyboard? Having not played real drums, I am afraid I would not know how to get the feel of a real kit.
    Thanks for your info.
    G5 2x2GHz Mac OS X (10.4.8)
    G5 2x2GHz Mac OS X (10.4.8)
    G5 2x2GHz   Mac OS X (10.4.8)  

    Tofu Mouse, if you ever do consider the more expensive options, take a good and hard and long look at EZdrummer. My band is using it to avoid having to pay for studio time every time we want to record drum tracks (we record the rest of our instruments + my vocals in our own studio, with very good results, but we don't have the equipment to record our own drums), and even without our drummer present, we are able to lay down our drum parts quickly.
    I should mention that the drum arrangements our drummer composes and plays are extremely advanced (he is a schooled jazz, rock and metal drummer, so he is both very technical and very varied in his playing), but thanks to EZdrummer and Logic's brilliant hyper editor, we can usually replicate him even if he isn't present just by listening to low quality live recordings of him playing the actual songs. So far, the only people who have been able to hear that our drums are digital, are the ones who know that our own drumset could never yield so good sound quality as the EZdrummer samples do (The "Human Playing" button in EZdrummer is everyone's friend, ensuring that the drum beats never sound to artificial or perfect)
    And this is probably one of the most advanced ways to use of EZdrummer. If all you want to do is lay down drum parts for home-written material, the included drum loops and the hyper editor will make that extremely easy for you.
    Good luck, whatever peculiar drum tool you end up with

  • I down loaded the newest version of itunes on my pc and now I can not access the store or authorize my computer what options are there  its windows 7

    I downloaded the newest version of itunes and now it keeps telling me I can not access no internet connection and I connected, how do you fix this issue.  If you got the message then I'm connected

    Hello there, Duane Harris.
    The following Knowledge Base article provides in-depth troubleshooting steps for resolving your issue:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

  • Copying SQL Script from Oracle SQL Developer into Excel with formatting

    I need to copy a SQL Script into Excel in order to develop some VBA code. Is there any nice way that I can copy SQL Script from Oracle SQL Developer into Excel and retain its formatting? I am a stickler for having legible, readable SQL and like to have all my columns lined up and aliases lined up. When we used to use SQL Navigator, the tab formatting seemed to copy and paste just fine. Now that we have migrated to Oracle SQL Developer, the formatting seems to get all messed up.
    And suggestions are greatly appreciated and Thanks in advance for your review and am hopeful for an answer.
    Thanks.
    PSULionRP

    I suppose you want a real tabulator instead of spaces. You can configure this in the preferences (SQL Formatter - Oracle). You have to apply it then to your existing code (e.g. CTRL-F7), but new code should get it right from the start.
    Hope that helps,
    K.

  • What benefits are there to joining a Windows domain?

    My company has one mac user with a Macbook Air, we have a Windows 2008 r2 domain.
    I'm wondering if it is worth joining him to the domain, what benefits are there for a mac user?
    We use Exchange 2007 and change our passwords every 90 days.
    One concern is when the user is out of the office the cached password can become out of sync with the domain passowrd.
    This is an anoyance and can be confusing.
    Any advice would be much appriciated.
    Thanks.

    Greetings.
    I am a 1 of 2 Mac users in a company that otherwise is using Windoz. I do not join the domain though, because I really see no reason to. I can get to the printers, to the web, to the Exchange and to the SharePoint. Though mostly I need SVN and cloud services anyway.
    Thus no real reason. Unless there is some specific stuff that is setup on the network that is only available to windows machines authenticated with a certificate and joined to the windows domain, like for instance a split tunnel VPN or something along those lines, there is really no need to be "on the domain" connected to the LAN works just fine if not better.
    HOWEVER
    There is that annoying bit about the passwords.
    Some sysadmins like to setup password expiration, thus forcing us mortals to rotate three (almost identical) passwords every three months. In this case you just need to setup a reminder on your calendar that prompts you a week in advance to change your password.
    How to change your password? You have options:
    OPTION 1
    Now. If your Mac has OS pre Lion (no higher then 10.6) then you have old samba installed by default and that comes with "smbpasswd" command. To change the password just open the mighty mac terminal and type:
    smbpasswd -r YOUR_WINDOWS_DOMAIN_CONTROLLER_IP -U username
    Then the output will be something like this:
    Old SMB password: ********
    New SMB password: *********
    Retype new SMB password: *********
    Password changed for user username
    Of cause replace the YOUR_WINDOWS_DOMAIN_CONTROLLER_IP with the IP of your domain controller. Do not know your domain controller IP? run Google "net lookup master" command. I think older macs have it. (not sure)
    if you are running Lion, you do not have smbpasswd command. I think Apple either wrote their implimentation of samba or just use some stripped down wersion of it, not sure. It has to do with some dreary and borring licensing thing.
    You can either install samba yourself form sources... Thus if you are brave and adventurous here is a walk through http://forums.sonos.com/showthread.php?t=24022 or you can use optopn two:
    OPTION 2
    If your company has not gone to the cloud hosting and still use the old-school home grown Exchange hosted in the broom closet, you might have a web version of the M$ Exchange running. The URLs usually something like: https://owa.yourcompanyname.com. If you have that then the sysadmins may have the password change feature enabled there. Login to your web interface for Outlook (OWA), In the top right corner choose the "Change Password" feature and use it.
    If this is not an option because either your sysadmin is not running OWA or the password change feature is not enabled you have still have options.
    OPTION 3:
    If you are working for a company that loves Windows and their products you might have an M$ Office installed on your Mac. Thus you might have Remote Desktop Connection (RDC) utility. If not you can download it here: http://www.microsoft.com/mac/remote-desktop-client. Then remote desktop to a machine in your office and you will get to it's login screen where you can change the windows domain password. (This requires a machine to which you can remote desktop)
    OPTION 4:
    Walk up to any Windowz box that no one is using, CTRL + ALT + DEL one time and this will give you the login screen, you can change password form there.
    OPTION 5:
    Ask your sysadmin to setup your password to never expire, or add the policy for your user so that you can change it in OWA (see option 2)

  • How do i change the quality settings of my printer? the options are there but greyed out!

    how do i change the quality settings of my printer? the options are there but greyed out! ie on my old HP I could print in draft if i wanted to print a doc to read and then bin...the option/box is there but greyed out so I can't select. HELP!!!

    You can change the background display color in the playback preferences, either black, white, or checkerboard. This does not change the output color. If you want to add a color to the video, you have to place a custom generator underneath your video and change the color in the inspector.

  • When exporting to a DVD from Final Cut Pro X, what settings are there to make sure you making the highest quality DVD possible?

    When exporting to a DVD from Final Cut Pro X, what settings are there to make sure you making the highest quality DVD possible?

    There have been a lot of recent reports of difficulties sharing to DVD, but haven't been hearing about unreadable disks. Posibly there was an encoding error. Or it could have been bad media (blank disk).
    Does it play in your Mac?
    What brand of disks are you using?
    Russ

  • I can not right click "open in new tab" nor open in new window, in my bookmark file.the bookmarks are all there, but I have to open a tab first then left click to open an item. Why can't I right click? The options are there, but not highlighted/clickable.

    I can not right click "open in new tab" nor open in new window, in my bookmark file.the bookmarks are all there, but I have to open a tab first then left click to open an item. Why can't I right click? The options are there, but not highlighted/clickable.

    now it is working?! Go figure. Yeah! Thanks anyway......

  • HT201342 [WIFM ] What benefits are there to be had,my current E-mail address seems to meet my current needs

    [WIFM ] What benefits are there to be had,my current E-mail address seems to meet my current needs

    There is no advantage.
    Apple renamed their service from MobileMe to iCloud, so it is logical to change the email address to match.
    You can ignore the new address if it is not required, your previous @me email will continue to function.

  • Can I know what deffence are there in between "PowerPivot" and "Power Pivot" ?

    Can I know what deffence are there in between "PowerPivot" and "Power Pivot" ?
    I want to use collect one.
    I found both "PowerPivot" and "Power Pivot" in Microsoft Web Site.
    ex. http://office.microsoft.com/ja-jp/excel-help/HA102893837.aspx
    Regards,
    Yoshihiro Kawabata

    Thank you Darren.
    Yes, I think "Power Pivot" correct now.
    But I don't found any official annouce "PowerPivot" to "Power Pivot" in Microsoft.
    and There are "PowerPivot" in Microsoft Japan's documents.
    and My friends are using "PowerPivot" in their books that published at Apr/2014.
    I am looking forward official annouce.
    I want to use official word.
    Regards,
    Yoshihiro Kawabata

  • What solutions are there for Adobe Cloud subscribers/designers who are using/have been using Adobe s

    What solutions are there for Adobe Cloud subscribers/designers who are using/have been using Adobe software but have run into system requirement inadequacies etc. . . Basically, I have a new mac and CS6 runs fine. But my old macbook can only run CS5.5. Because I'm a subscriber my Adobe CS5.5  updated automatically. What happens when one day a year or two from now (or sooner) my MAC won't support the latest version of my CS subscription? Is there a way for cloud subscribers to subscribe to a legacy or an older version of CS?

    Hi Wildeboer420,
    Its my understanding that previous versions will still be acessible for users going forward, I copied the following from the FAQ
    I am a Creative Cloud member using the CS6 applications included in my membership. Will I lose access to CS6 when CS7 becomes available in Creative Cloud?
    No, if you have downloaded and installed the CS6 versions of the applications, you will continue to have access to them without interruption as long as your membership remains active. When the CS7 versions become available, you will have up to a year to download and install them and they will run on your machine along with CS6 versions.
    Hope that helps,
    -Dave

  • How to get server output in SQL Developer

    I am learning SQL Deverloper and am using it in a University environment as well as Oracle test instances at Oracle.
    I know my way around SQL some but I am just learning PL/SQL.  I want to run an anonymous block and see output for the "dbms_output.put_line" items.
    At school, I enter my block in the "SQL Worksheet" and receive the "anonymous block completed" in the "Script Output" screen.  Then there is a 3rd screen, the name of which I cannot remember, but I believe it is the equivalent of "server output".  When I open it I have to tell it which database I'm using.  Then, I see the dbms output lines in this 3rd section.
    The problem is when I am using SQL Developer at work, I see only 2 sections:  "SQL Worksheet" and "Script Output".
    I have looked but cannot find an option or a button or a window that is called something like "server output" or "view server output."
    Can a more experienced user please help me?
    I am using:
    SQL Developer Version 3.1.07
            Build MAIN-07.42
    Linux x86-64
    (Oracle Internal:
    Instance: http://celalnx38.us.oracle.com:10507/
    tnsnames: 10500)

    Hi Makel,
    There are no changes of which I am aware in the Dbms_Output view functionality between the 3.2 and 4.0 releases.
    As to your point about confusion, keep in mind the following:
    1. Each Worksheet tab and Dbms_Output tab include the name of the connection in use.  Match on that name when checking output results.
    2. Opening multiple Worksheets on the same connection name will share one database connection by default.
    3. Multiple Worksheets sharing a database connection also share one Dbms_Output tab.  That is by design.
    To force worksheets to use unshared connections:
    4. Change the default behavior of (2) via Tools -> Preferences -> Database -> Worksheet -> New Worksheet to use unshared connection.
    5. Or avoid (4's) overhead of always using unshared connections by opening one-off unshared Worksheets: Ctrl + Shift + N from a shared Worksheet.
    Finally:
    6. When using unshared Worksheets, one Dbms_Output tab may be opened per unshared Worksheet.  Note that the names of any unshared Worksheets will appear in Dbms_Output's Select Connection dialog drop down list. That should avoid any confusion.
    Hope this helps,
    Gary

  • SQL script works in SQL Developer but not when scheduled

    I have a script that I can run, logged onto my server as a user with full permissions and into my database as SYSDBA, that produces a CSV file on the server when I run it from SQL Developer ON the server. HOWEVER, when I set it up as a scheduled job, using those SAME CREDENTIALS (same Windows/network user; same database user), I get no output. The job indicates that it's running successfully, but no file gets created.
    Any advice is greatly appreciated.
    Here's the script:
    WHENEVER SQLERROR EXIT FAILURE;
         set serveroutput on
         DECLARE
         my_query varchar2(5000);
         BEGIN
         my_query := q'[
    SELECT client_id, JOB_NAME, SCHEDULE_TYPE, TO_CHAR(START_DATE,'MM/DD/YYYY HH24:MM') AS START_DATE,
    REPEAT_INTERVAL, ENABLED, STATE, RUN_COUNT,
    TO_CHAR(LAST_START_DATE,'MM/DD/YYYY HH24:MM') AS LAST_START, LAST_RUN_DURATION,
    TO_CHAR(NEXT_RUN_DATE,'MM/DD/YYYY HH24:MM') AS NEXT_RUN
    FROM DBA_SCHEDULER_JOBS
    WHERE instr(client_id,'10.') is not null
    ORDER BY LAST_START_DATE DESC
         p2k.ccsd_any_query_to_csv('HRISEDB_E_OUTPUT_MK', 'dbserver_job_output.csv',my_query);
         end;
    =================================================================
    Here's the called procedure (I don't really understand it -- I gleaned it from others on the internet):
    -- DDL for Procedure CCSD_ANY_QUERY_TO_CSV
    set define off;
    CREATE OR REPLACE PROCEDURE "CCSD_ANY_QUERY_TO_CSV" (p_dir in varchar2, p_filename in varchar2, p_query in varchar2) AUTHID CURRENT_USER
    is
    l_output utl_file.file_type;
    l_theCursor integer default dbms_sql.open_cursor;
    l_columnValue varchar2(4000);
    l_status integer;
    l_query long;
    l_colCnt number := 0;
    l_separator varchar2(1);
    l_col_desc dbms_sql.desc_tab;
    l_col_type varchar2(30);
    l_datevar varchar2(8);
    BEGIN
    l_query := 'SELECT SYSDATE FROM DUAL; ';
    dbms_sql.parse(l_theCursor, p_query, dbms_sql.native);
    dbms_sql.describe_columns(l_theCursor, l_colCnt, l_col_desc);
    l_output := utl_file.fopen( p_dir, p_filename, 'w' );
    dbms_sql.parse( l_theCursor, p_query, dbms_sql.native );
    for i in 1..l_col_desc.count LOOP
    utl_file.put( l_output, l_separator || '"' || l_col_desc(i).col_name || '"' );
    dbms_sql.define_column( l_theCursor, i, l_columnValue, 4000 );
    l_separator := ',';
    end loop;
    utl_file.new_line( l_output );
    l_status := dbms_sql.execute(l_theCursor);
    while ( dbms_sql.fetch_rows(l_theCursor) > 0 ) loop
    l_separator := '';
    for i in 1 .. l_colCnt loop
    dbms_sql.column_value( l_theCursor, i, l_columnValue );
    utl_file.put( l_output, l_separator || '"' || l_columnValue || '"');
    l_separator := ',';
    end loop;
    utl_file.new_line( l_output );
    end loop;
    dbms_sql.close_cursor(l_theCursor);
    utl_file.fclose( l_output );
    execute immediate 'alter session set nls_date_format=''dd-MON-yy'' ';
    exception
    when others then
    execute immediate 'alter session set nls_date_format=''dd-MON-yy'' ';
    raise;
    end;
    /

    hello,
    does oracle showing any errors in user_scheduler_job_run_details for this job ? I would advise try inserting some debug statement to identify where exactly its stuck. Also please check sample configurations syntax for user_scheduler_jobs.
    Cheers
    Sush

Maybe you are looking for

  • How can i make the internet windows cover the whole screen?

    My new macbook brings up a small internet window, and it's not the easiest to see, although the type and quality is good. I have tried changing the display under system preferences, but that makes the quality less. Does anyone have any suggestions? I

  • Disk Utility as Maintenance?

    I know I've asked a lot of questions lately but, well, that's why we are here right . I've had my iMac since October and have of course added different types of software as well as installing all system updates without any problems. But after reading

  • List Item changelog through Powershell (CSOM)

    Hi! I am trying to figure out how to get information about the historical changes made to a sharepoint list. So far, I have come up with the below code. My goal is to get details like - the type of change, time, new value, old value, row/column names

  • IPod nano - Incorrect Available Size

    My nano always report 1.8GB "Available" size no matter there is no or full with songs. iTunes can report the correct available space. I have reset the nano, press the menu and select button, which didn't help. Anyone meet similar problem? Can anyone

  • Why can't I scroll on my homepage?

    Macbook OS 10.8.5 Once I have tapped on my homepage I can no longer arrow scroll vertically, it's a right pain in the a_s! Please help ; b