Print Thread
debuging
#34670 08/18/09 06:54 AM
Joined: Aug 2009
Posts: 5
A
Member
OP Offline
Member
A
Joined: Aug 2009
Posts: 5
There is a software that desined by .net programmaing
and the database is oracle 10g
*
How can i debug and trace procedures and variables?



Re: debuging
ashkan209 #34684 08/18/09 09:31 AM
Joined: Aug 1999
Posts: 22,220
Member
Offline
Member
Joined: Aug 1999
Posts: 22,220
You can only debug programs that are initiated from within the debugger of the Test Window. If a program is called from within a .NET program, you can mimic that call in the Test Window.


Marco Kalter
Allround Automations
Re: debuging
Marco Kalter #34701 08/18/09 10:25 AM
Joined: Aug 2009
Posts: 5
A
Member
OP Offline
Member
A
Joined: Aug 2009
Posts: 5
Our program is called from within a .NET program .
I don't find any test window at pl/sql developer
So please explain by more details
thanks

Last edited by ashkan209; 08/18/09 10:28 AM.
Re: debuging
ashkan209 #34712 08/18/09 01:33 PM
Joined: Aug 2008
Posts: 60
Belgium
W
Wim Offline
Member
Offline
Member
W
Joined: Aug 2008
Posts: 60
Belgium
It seems to me that the .Net program is making use of a few Oracle10g stored procedures (be it packages, procedures, functions, ..).

If you want to test the specific functionality of these stored procedures the manual of PL/SQL Developer explains in detail how you can do so. In brief you select for example a function you want to test, right-click it and click on 'Test'. I find the rest self-explanatory but if needed the manual will help you further.

Hope this helps.


Regards,
Wim
Re: debuging
Wim #34718 08/18/09 07:11 PM
Joined: Aug 2009
Posts: 5
A
Member
OP Offline
Member
A
Joined: Aug 2009
Posts: 5
I explain my problem:
I have a software that builds with .net programming
and this software is connected to oracle database with many packages,procedure,...
Now:
when i run a part of software , i see an error that show "i have a problem in my data (and my procedure is working properly)"
for example i have a button in my software and when i clicked, it call a procedure
and this procedure has an Insert command at loop structure
i meet an error in software environment (not in pl/sql) that say ("can not insert null in to table ...")
HOW CAN I FIND A DATA THAT HAS null VALUE?

---
thanks

Re: debuging
ashkan209 #34727 08/19/09 07:48 AM
Joined: Aug 2008
Posts: 60
Belgium
W
Wim Offline
Member
Offline
Member
W
Joined: Aug 2008
Posts: 60
Belgium
My guess might be totally wrong but it seems to me like the data you're inserting comes from your .Net program and is being passed to the procedure as an argument of some sorts.
Either you let your .Net programming environment (IDE) help you debug what data is being passed to the stored procedure, or you tweak the stored procedure to log somehow what it's doing.

The error you're running into resembles ORA-01400 (http://ora-01400.ora-code.com/). Somehow you're passing a null value to a 'not null column'. You could make use of this and 'catch' the exception.


Regards,
Wim
Re: debuging
Wim #34765 08/19/09 02:30 PM
Joined: Aug 2009
Posts: 5
A
Member
OP Offline
Member
A
Joined: Aug 2009
Posts: 5
we don't have source of software to test it at IDE. because a software is installed and we use it.
I insert this topic to understand soloution of these error kinds , with using pl/sql developer
---
thanks

Re: debuging
ashkan209 #34768 08/19/09 03:02 PM
Joined: Aug 2008
Posts: 60
Belgium
W
Wim Offline
Member
Offline
Member
W
Joined: Aug 2008
Posts: 60
Belgium
You're like a mistery novel: always reveal bits and pieces of the puzzle one at a time smile

I'm not entirely sure I grasp the situation though. You don't have the code or IDE to test/debug the .Net software, so you purchased it. Is there no support from the supplier of the software?
And if the supplier also delivered the database the software seems to use, my guess is you don't have access to the stored procedures unless maybe execution rights. If that is the case I doubt you'll ever be able to debug this problem yourself unless you're in the lucky situation where there's ample logging of what's happening on the Oracle level of the application.

If you do have access to the PL/SQL code I doubt any of us can do more than point you to the brief howto I wrote earlier in this thread or mention the manual that comes with PL/SQL Developer.


Regards,
Wim
Re: debuging
Wim #34770 08/19/09 03:33 PM
Joined: Aug 2009
Posts: 5
A
Member
OP Offline
Member
A
Joined: Aug 2009
Posts: 5
thanks a lot


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.061s Queries: 14 (0.025s) Memory: 2.5364 MB (Peak: 3.0430 MB) Data Comp: Off Server Time: 2024-05-18 15:26:19 UTC
Valid HTML 5 and Valid CSS