Solved

debugging in Sql Developer 1.0.0

Posted on 2007-03-26
7
2,895 Views
Last Modified: 2013-12-12
I am using Oracle Sql Developer for debugging a simple procedure.

I grant the appropriate privileges:
kims>GRANT DEBUG ANY PROCEDURE, DEBUG CONNECT SESSION TO KIMS;

Grant succeeded.

1. I create a procedure to debug:
CREATE OR REPLACE procedure
dummy_proc(param  varchar2)
as
  v_date varchar2(50);
begin
  dbms_output.PUT_LINE('In dummy_proc ');

  select to_char(sysdate,'dd-mon-rrrr')
  into v_date
  from dual;

  dbms_output.PUT_LINE('date1: '||v_date); <--BreakPoint

  dbms_output.PUT_LINE('date is: '||param); <--BreakPoint
end;

2. I compile the code using compile for Debug tool:

3. I Debug the code:

Debugging Log:
Connecting to the database kims.world.
Executing PL/SQL: ALTER SESSION SET PLSQL_DEBUG=TRUE
Executing PL/SQL: ALTER SESSION SET PLSQL_COMPILER_FLAGS=INTERPRETED
Executing PL/SQL: CALL DBMS_DEBUG_JDWP.CONNECT_TCP( '172.24.197.122', '2281' )
ORA-30683: failure establishing connection to debugger
ORA-12535: TNS:operation timed out
ORA-06512: at "SYS.DBMS_DEBUG_JDWP", line 68
ORA-06512: at line 1
Process exited.

Q1 why am i getting TNS:operation timed out?
 
Q2 I do not see the Pause/Run, Step Into, Step Over, Step out menu options active.
What should i do to get these?

0
Comment
Question by:gram77
  • 2
  • 2
7 Comments
 
LVL 20

Accepted Solution

by:
gatorvip earned 250 total points
Comment Utility
1. SQL Dev 1.0.0 is quite outdated, you might want to consider moving up to the more recent 1.1.2
2. Make sure you are using the correct connection string (IP/port)
3. There were a lot of similar issues posted at forums.oracle.com, you can search there as well.
0
 
LVL 76

Assisted Solution

by:slightwv (䄆 Netminder)
slightwv (䄆 Netminder) earned 250 total points
Comment Utility
I'm not familiar with SQL developer but most of the time, about 99% from my experience, an ORA-12535 is because of a firewall blocking the connection.
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
Comment Utility
Suggest split.
0
 
LVL 20

Expert Comment

by:gatorvip
Comment Utility
As an update to my original post, I suggest upgrading to SQL Dev 1.2.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now