Oracle SQL Developer 3.0: PL/SQL debugging of anonymous blocks: ISSUES

Hello,
I just downloaded the Oracle SQL Developer 3.0. I have been using the EA releases as they came into existence and was happy to see the released version. So I immediately tried to debug an anonymous block (something I did not try to do in the EA releases), and nothing happened.
The "Debug" was grayed out and the key-chord "ctrl-shift-F10" did nothing. I found this forum:
Re: 30EA1: anonymous block debugging?
and followed Vadim Tropashko's advice. This did nothing for my anon. block but worked fine for the simple example.
So I started to whittle my anon. block down to find the culprit, here is a repeatable breaking point for me:
declare
    stmt1 long;
    stmt2 long;
    stmt3 long;
    stmt4 long;
    p_data varchar2( 500 );
    i      varchar2( 10 );
BEGIN
    STMT1 := 1;
    STMT2 := 1;
    STMT3 := 1;
    STMT4 := 1;
    --the moment this is in the block "Debug" is no longer an option
     select
        SendDocumentResult
       into
        p_data
       from
        XMLTABLE( '/data'
                PASSING
                xmltype.createxml( '<?xml version="1.0" encoding="utf-8"?><data><SendDocumentResult>test</SendDocumentResult></data>' )
                COLUMNS SendDocumentResult varchar2( 1000 ) PATH 'SendDocumentResult' ) ;
end;The moment I have the SELECT INTO ... XMLTABLE() it fails (a normal SELECT INTO works just fine).
Is this a problem with my environment or is a problem with SQL Developer 3.0.04. Looking over K's comments, it seems the debug worked for 'simple' blocks, so I wonder if this is just out-of-scope...
My environment:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production    
PL/SQL Release 11.2.0.1.0 - Production                                          
CORE     11.2.0.1.0     Production                                                        
TNS for IBM/AIX RISC System/6000: Version 11.2.0.1.0 - Production               
NLSRTL Version 11.2.0.1.0 - Production
and Oracle SQL Developer
3.0.04 (Buld Main 04.34 with bundled Java) on a Window's XP box.

Thanks, I'll survive. Just my luck, the first item I try to anon. debug didn't work! :)
thanks, hopefully this problem will be few and far between

Similar Messages

  • Oracle SQL Developer Data Modeler Versus SQL Developer

    Friends,
    I'm trying to understand the differences between Oracle SQL Developer Data Modeler and the ability to use the Data Modeler in SQL Developer.
    I've looked at both products home pages on OTN, http://www.oracle.com/technology/products/database/datamodeler/index.html & http://www.oracle.com/technology/products/database/sql_developer/index.html and would appreciate your comments on my findings so far
    1) The Oracle SQL Developer Data Modeler is a stand-a-lone chargeable product whereas the use of the Data Modeler functionality of SQL Developer is free
    2) The Data Modeler functionality within SQL Developer is basically a "viewer" I can create ERD's of my existing tables by dragging them into the modeler from the object navigator but that's about it. I can't save the diagram for later use or use it to change the structure of the table(s)
    3) If I need to have "Oracle Designer" like ERD capabilities then I need to use Oracle SQL Developer Data Modeler (after purchase!)
    4) Are there any other differences I have missed?
    Thanks in advance

    You can open any diagram created in the stand-alone product in the SQL Developer Data Modeler Viewer and navigate through all property dialogs and the full navigator, just like you can in the stand-alone product, but with no update capabilities. This allows developers to fully review the model and all properties, without making changes.
    Sue

  • SQL Developer - viewing table data while debugging

    Apologies if this is in the wrong forum.
    I'm using SQL Developer to debug a complex stored procedure line by line. There are a lot of inserts / updates / deletes in the procedure and I'd like to be able to view the data in the relevant tables after each statement has been run to see the effect of each statement.
    Trouble is, when I try to do this, SQL Developer shows the contents of the tables as if they have been unaffected by the stored procedure. Is there a setting somewhere or some type of locking I can use to see the data changes as they happen?

    Only the session that is inserting the data can see that new data until the session issues a commit, so I would doubt that you could do this. You probably want to a) view the data before the insert or b) (ugly but should work) put a trigger on the table being inserted so it inserts a copy of the data to a tracking table. This procedure will have to have the AUTONOMOUS TRANSACTION pragma in order to not be held until your debug session commits.

  • GROUPING IN SQL DEVELOPER(Fuzzy grouping in SQL)

    Hi All,
    I am stuck up with some logic here, can any one suggest me what would be the best solution or how can we acheive this.
    We have a customer id's , each customer can have many accounts, and the customer belongs to a company.I need to modify a SQL table to group slightly mismatched names, and assign all elements in the group a standardized name.
    I have a customer table where I used select customer_id,customer_code,customer_name from customer order by 1; These are only few records I am showing here.
    CUSTOMER_ID
    CUSTOMER_CODE
    CUSTOMER_NAME
    071239
    AABA
    Trac Non Owned Chassis
    078176
    AABA
    Trac Charleston
    071910
    AABA
    Trac Savannah
    081010
    ABAA
    Hanjin Shipping
    081102
    ABAA
    Atg
    In this case, I've chosen the first name to assign as the "standardized name," but I don't actually care which one is chosen .If I knew that the names were all in pairs, this would be a relatively easy query, but there can be an arbitrary number of the same name.
    And I am using SQL DEVELOPER, for Oracle data integrator(ODI)
    Thanks,
    Ven

    Hi Frankulash,
    Thanks for your response, I will follow the rules that I found in the link you provided, and I was looking for the same output, but In the example I did not understand the "got_mode m" is that a table. if you don't mind  ,I will give all the details, can you suggest me how to approach .
    CREATE TABLE CCUSTOMER
       ( CUSTOMER_ID  VARCHAR2(10 BYTE)  NOT NULL ENABLE,
      CUSTOMER_OF_ID  VARCHAR2(10 BYTE)  NOT NULL ENABLE,
    CUSTOMER_CODE  VARCHAR2(8 BYTE)  NOT NULL ENABLE,
      CUSTOMER_NAME  VARCHAR2(128 BYTE)  NOT NULL ENABLE)
    insert into ccustomer values('071239','US','AABA','Trac Non Owned Chassis');
    insert into ccustomer values('071910','US','AABA','Trac Savannah');
    insert into ccustomer values('078176','US','AABA','Trac Charleston');
    insert into ccustomer values('081010','USA','ABAA','Hanjin Shipping');
    insert into ccustomer values('081102','USA','ABAA','Atg');
    now I want the output to be some thing like this
    CPNY_KEY     CUSTOMER_ID CUSTOMER_OF_ID    CUSTOMER_CODEENAME      CUSTOMER_NAME
            1       071239            US                AABA               Trac Non Owned Chassis
            1       071910            US                   AABA               Trac Savannah'         
            1       078176            US                AABA               Trac Charleston'        
            2       081010            USA                ABAA               Hanjin Shipping'    
            3       081102     USA                ABAA               Atg 
    so from the source this would my mapping table where I use the surrogate key which is here"CPNY_KEY" to my dimesion table. and out of these three customer_names  The name can be any one for example we can choose any of the names from "Trac Non Owned Chassis or Trac Savannah, or Trac Charleston .
    (OR)
    CPNY_KEY     CUSTOMER_ID CUSTOMER_OF_ID    CUSTOMER_CODEENAME      CUSTOMER_NAME
            1       071239            US                AABA               Trac Non Owned Chassis
            1       071910            US                   AABA               Trac Non Owned Chassis         
            1       078176            US                AABA               Trac Non Owned Chassis        
            2       081010            USA                ABAA               Hanjin Shipping'    
            3       081102     USA                ABAA               Atg 
    If this can be possible in the mapping then I can directly use its surrogate key to my dimension table, so that I could have only one record in my table with the name as "Trac Non Owned Chassis"
    Let me know if some thing still I missed any more information to provide here,
    Thanks for the suggestion.
    Thanks,
    Ven

  • BUG: ORA-00600 in SQL Developer while good in SQL*Plus

    Just run the following PL/SQL script:
    SET SERVEROUTPUT ON
    << outer_block >>
    DECLARE
    v_test NUMBER := 123;
    BEGIN
    DBMS_OUTPUT.PUT_LINE ('Outer Block, v_test: '||v_test);
    << inner_block >>
    DECLARE
    v_test NUMBER := 456;
    BEGIN
    DBMS_OUTPUT.PUT_LINE ('Inner Block, v_test: '||v_test);
    DBMS_OUTPUT.PUT_LINE ('Inner Block, outer_block.v_test: '|| outer_block.v_test);
    END inner_block;
    END outer_block;
    In SQL*Plus, you get the correct result, while in SQL Developer 1.5.4, you get:
    Error report:
    ORA-00600: internal error code, arguments: [12259], [], [], [], [], [], [], []
    00600. 00000 - "internal error code, arguments: [%s], [%s], [%s], [%s], [%s], [%s], [%s], [%s]"
    *Cause:    This is the generic internal error number for Oracle program
    exceptions.     This indicates that a process has encountered an
    exceptional condition.
    *Action:   Report as a bug - the first argument is the internal error number                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Meanwhile a workaround is to enclose the whole lot in a BEGIN END;

  • How do I get SQL Developer to connect to SQL Server.

    I have downloaded SQL Developer but I see no option to connect to SQL Server in order to do the database migration. I found a document that said to download the MSSQLSERVERMIGRATION.ZIP file and it said to unzip the file. There is no instruction as to where the files are going. Can someone point me in the right direction?

    Hello,
    did you read the following from the SQL Developer online help:
    Before Migrating From Microsoft SQL Server or Sybase Adaptive Server
    To configure a Microsoft SQL Server or Sybase Adaptive Server database for migration:
    Ensure that the source database is accessible by the Microsoft SQL Server or Sybase Adaptive Server user that is used by SQL Developer for the source connection. This user must be able to see any objects to be captured in the Microsoft SQL Server or Sybase Adaptive Server database; objects that the user cannot see are not captured. For example, if the user can execute a stored procedure but does not have sufficient privileges to see the source code, the stored procedure cannot be captured.
    Ensure that you can connect to the Microsoft SQL Server or Sybase Adaptive Server database from the system where you have installed SQL Developer.
    Ensure that you have downloaded the JTDS JDBC driver from http://jtds.sourceforge.net/.
    In SQL Developer, if you have not already installed the JTDS driver using Check for Updates (on the Help menu), do the following:
    Click Tools, then Preferences, then Database, then Third Party JDBC Drivers.
    Click Add Entry.
    Select the jar file for the JTDS driver you downloaded from http://jtds.sourceforge.net/.
    Click OK.
    For further reading I recommend to start on this page:
    http://www.oracle.com/technetwork/database/migration/sqlserver-095136.html
    It contains a demonstration "Creating a connection to Microsoft SQL Server".
    Regards
    Wolfgang

  • SQL Developer Stability - Real Time SQL Monitoring

    I always get excited when a new release of SQL Developer comes out with all kinds of new features then I am quickly disappointed by the instability.
    The 2.1 Real Time SQL Monitoring is a great example. It has such great promise but it is not stable, the refresh doesn't work, if you scroll it wipes out the display so I have to exit and re-enter. Is anyone having more success with this tool than me? Are there Java Settings I need to consider? I already learned that if running the query in question from SQL Developer it has to be in an unshared workspace or SQL Monitor won't come up.
    Prior to going to native OCI connectivity my Connections Schema Tree was also very flaky, I work with huge delivered PeopleSoft HR Schemas most of the time.

    The file associations thing means you don't have access to the registry to associate file types. Probably connected to the Vista security model. Try registering the filetypes for use by sqldeveloper through explorer.
    This other problems generally means you don't have write access to the sqldeveloper system directory.

  • SQL Developer 1.5.1 - SQL Worksheet - Font Corruption

    Hi All,
    I'm running SQL Developer 1.5.1 on Windows Vista x64 + Nvidea 8800GT graphics card. (all with latest versions)
    Whenever I scroll the SQL worksheet - the text becomes unreadable / corrupted.
    SQL Developer - SQL Worksheet is the only program that exhibits this problem.
    Thanks

    UI and especially scrolling issues point to Java problems. Which JDK are you using (About in Help)?
    You could get the latest (non-beta) JDK from Sun and edit +\sqldeveloper\bin\sqldeveloper.conf+:
    SetJavaHome C:\Archivos de programa\Java\jdk1.6.0_07You also might get faster/better results tweaking Direct Draw (combinations of true/false) inside \sqldeveloper\bin\sqldeveloper.conf:
    AddVMOption -Dsun.java2d.ddoffscreen=false
    AddVMOption -Dsun.java2d.noddraw=trueHope that helps,
    K.

  • SQL Developer Data Modeler for SQL Server 2008

    I am not able to connect to my SQL Server 2008 from the SQL Developer Data Modeler. Although I do have jtds-1.2.jar on my machine and I can connect the SQL server through the SQL Developer, but still i'm not able to connect through the data modeler. I need to re-engineer and generate data model for some existing schemas.
    Here is what I'm following:-
    File->Data Modeler -> import -> Data Dictionary -> Add new connection -> JDBC ODBC Bridge -> Other Third Party Driver
    now when I'm giving the JDBC URL and the Driver, It throws an error message stating that the driver could not be found.
    Please let me know what I can do to solve this, any help would be appreciated.
    Regards,
    AVA

    I'd try 1st to connect to the db from sqldeveloper (through jtds - no ODBC involved) and see if you can browse your db and issue sql statements in a worksheet. Then export that connection in xml format and import that from the modeler.

  • SQL-Developer 1.5.4 - SQL-Worksheet does not use Table-Owner

    In old versions of the sql-Developer you can drop a Table in the Worksheet and a select Query was built. With the new version 1.5.4 the table-owner is missng and you must fill in the table-owner or the query does not work with tables of other users.
    Is that a bug or are there the posibility of change settings to drop tables in the SQL-worksheet with table-owners.

    The drag and drop functionality was updated so that when you use drag and drop the schema is not prefixed for the current user you are connected to. However it is appended if you drag a table form another connection. It appears to have been overlooked for Other Users. We will address this in a future release. In the meantime,a workaround is to create a connection to the other users and then the drag and drop will append the connection name.
    Sue

  • User objects didn't display in SQL developer connecting to MS SQL server

    I follow the document steps and successfully connected to MS SQL server. I can connect and see all the objects in MS SQL if I use the SQL account with sysadmin role. Everything works fine for using the MS SQL account with sysadmin role.
    However, if I use a SQL account that only have db_datareader role only, it connects fine. I can run a select statement to select any dbo tables and get data return, but I can't see any dbo objects list on the left navigator bar. It will be very helpful for users to see the objects and names in the navigator bar.
    Is there anything special I have to setup in order for the objects to display in the navigator bar for MS SQL server with account have db_datareader only?

    Hi user615547 ,
    I do not see a bug logged on this.
    The only issue I can remember beyond db_datareader is that you need
    -grant view definition to <user>
    on SQL Server 2005 to view a stored procedure definition that is not yours. Even if you have execute privilege you may not have view source privilege.
    Can your dba illuminate how the database was locked down?
    What version of SQL Server are you using ?
    Which specific object browsers are failing or, are all the object browsers failing?
    Does the database capture correctly? (browse and capture use slightly different queries.) You will need to create a repository on oracle and 'capture' the sql server database).
    -Turloch

  • SQL Developer as default for .sql extension

    I specified SQL Developer as the default application for the .sql file extension. When I double click a .sql file, SQL Developer will start up and even open the file but I always receive a Windows error message stating 'Windows cannot find MyFile.sql. Make sure you typed the name correctly and then try again.' I can click okay to the message and the file is open and ready to go in SQL Developer. Is this a problem with my set up or with SQL Developer? Thanks.

    SQL Developer. It has been reported elsewhere

  • SQL Developer output vs. SQL Plus output

    Hi, newb with issues showing output. I have a simple function that works correctly when called in SQL + however, when I right click and run in SQL Developer, I get a Run PL/SQL window with:
    v_Return := LISTEMPLOYEETELEPHONES();
    -- Modify the code to output the variable
    --DBMS_OUTPUT.PUT_LINE('v_Return = ' || v_Return);
    Where does the output go ? If I uncomment the DBMS_OUTPUT.PUT_LINE, I get a wrong number or types of arguments in call to '||'
    What am I doing wrong ?

    Hi mattgn,
    not to fire a discussion, just to be little more precise ;-)
    I don't get your answerWell, I hope pmacd55 gets it, as he's the one with
    the problem.This is a pubblic forum, everybody should get something useful here. I didn't stated that I was right and you wrong, not at all. Simply, If I don't get it, probably also somebody else will not get it as well.
    I misunderstood the first poster, my eyes slipper over "UNcomment": reading as "If I COMMENT the DBMS_OUTPUT.PUT_LINE, I get a wrong number or types of arguments in call to '||'" I thought that in some way SQL Developer could break the line before the submission of the statement.
    So, your hypothesis looks the right one.

  • SQL Developer 1.5.3 SQL History Functions gray'd out

    When I press F8 to list my SQL History I see plenty of queries but I cannot D&D or use andy of the replace, append features to insert the prior run.

    Check if you opened a sql file and didn't select a connection for it from RHS connection selector in worksheet.
    -Raghu

  • SQL Developer 1.2.1, SQL Worksheet, Full Row Select

    I was wondering if there was a way in the worksheet under 1.2.1 to do a full row select when viewing. When only columns are selected, it makes it a little difficult to scroll to the right on large records and still know which record is the current one when there is quite a bit of data, both columns and rows.

    If I'm reading your question right, all you have to do is click once on the left hand side of the row in the results section (where the pseudo-generated row number is)

Maybe you are looking for