How to view cursor values while in DEBUG mode
I am using SQL developer 1.5.1 and I am debugging my Stored Procedure.
I cannot find how to view the contents of variables as I step through the code.
For example, I have the following IF:
IF NVL(rat_rec.rat_css_agency_cd, -1) != NVL(lclcssagencycd, -1) THEN
lclupdate := TRUE;
END IF;
I want to be able to see what is the value of rat_rec.rat_css_agency_cd and also lclcssagencycd, to see why it is evaluating this IF statement to be true.
In other words it is saying rat_rec.rat_css_agency_cd is NOT the same as lclcssagencycd, but I want to see what the differences are and need to be able to 'look' at the value of each variable.
It is NOT showing on SMART DATA or DATA.
I have not used SQL Developer much before, so must be missing something.
(In VB, I can debug a routine and then stop on a variable and press SHIFT+F9 to see the contents of the fields. I want to do the same thing in SQL DEVELOPER).
Yes, I do.
I am able to step through the code and if I stop on a particular line of code, I want to be able to evaluate the variables or cursor fields that I am on to see what their contents are.
Sean
Similar Messages
-
How to get default values while using the transaction "BP"
Hi Group,
I have a query on how to get default values while using the transaction <b>BP</b>?
The thing is:
when I enter into the transaction "BP", I need to see some default values to some of the input fields in the screen.
how can I achieve this?
So please kindly let me know the procedure to achieve this.
Thanks & Regards,
Vishnu.Hi,
The events of BDT can be used to default some fields on creating a partner.
For this create a function module for ISDAT. attach that event in BUS7.
In the ISDAT funtion modulethe following code should be used.
For example to set the nationality:
I_BUSDEFAULT-NATIO = 'DE.
CALL FUNCTION 'BUP_BUPA_FIELDVALUES_SET'
EXPORTING
i_busdefault = I_BUSDEFAULT
Regards, Smita. -
Edit code while in debug mode in CC
Hi,
I have just upgraded to Flash CC, and can no longer edit code while in debug mode. It appears the code window becomes read only while debugging. This is problematic because I often find it very useful to copy in variable names from data visible in the variables display portion of the call stack. This is very helpful if I have made a typo in my variable names, or if I am reading out data from a network request and I don't know the variable names ahead of time. Is there a way to unlock the code window so it does not become read only during debugging?
-DavidHi Amy,
I appreciate that you are trying to help, and from a purely coding standpoint see the advantages to Flash Builder IDE over the Flash Professional IDE. Although personally I am a Visual Studio kinda guy... However I am working with a fairly large code base, (we are a small game studio that has been working with flash cs4, 5, and 5.5 for the past 5 years) and while nobody that works for me is crazy enough to put code on the timeline, we do have a significant amount of UI elements, dialogs, and layouts that are designed in the Flash editor with logic in classes that extend those elements. Now correct me if I am wrong, but it is my understanding that you cannot build FLA files from flash builder let alone have them link with the classes that are set to extend them in Flash Professional. The move to CC actually gives us access to Flash Builder - something that previously was an additional $500 a seat. While it may make sense for us to use in the future, for now I am faced with the issue of the new Flash CC has removed the ability to edit the code while debugging. I was hoping there was a setting or a hidden option to turn this very unnecessary change off, I wasn't really asking for a critique of my IDE choice.
-David -
Problem viewing cursor value in debug mode
Hi eveybody!
I'm French and new here.
I know some topics deal with my subject but I don't really understand.
Here's my environnement :
Win2000 / ORA 9iR2 / SQL DEVELOPPER 1.0.0.15.57
As some people say when i'm in debug mode (after compiling my procedure PL/SQL for debug) I can't see any value of my cursors !
Ex :
CURSOR cur IS
SELECT COL1, COL2
FROM TABLE1;
v_cur cur%ROWTYPE;
For v_cur in cur
Loop
If v_cur.COL1 = 'toto' then
'do something' ;
End if;
End Loop;
When I run this step by step in debug mode I can't see the data of my cursor in the data or smartdata pane.
The values of my cursor is allways null !
I guess I'm not the only one to see that bug.
My question is should I wait a new release of sql developer or is there any solution for this problem?
Anyway I want to congratulate the developers team who create this tool which is fabulous! It makes me forget TOAD and it's totally free.
Thanks a lot for this job.
GregHere is a piece of code I use:
CREATE OR REPLACE PROCEDURE sm_list AS CURSOR emp_cursor IS
SELECT d.department_name,
e.last_name
FROM departments d,
employees e
WHERE d.department_id = e.department_id;
emp_record emp_cursor % rowtype;
BEGIN
FOR emp_record IN emp_cursor
LOOP
DBMS_OUTPUT.PUT_LINE(emp_record.last_name);
END LOOP;
END;
With this example, I agree, the smart data is null. Logged a bug. However, note that I do see values in the data tab and can modify and watch these values.
When using cursors I've been looping and then fetching into cursor records, i.e.:
FETCH emp_cursor
INTO emp_record;
emp_tab(i) := emp_record;
and then the values display in the Smart data and data tabs.
Sue -
How to view an app, while on a call?
Forgive me if this is already posted somewhere, but I could not find it.
If you want to view an application, while on a call, how do you do it?
Thanks...http://support.apple.com/manuals/iphone/
-
*** Urgent - How to view Cursor output in TOAD ***
Hi,
I know how to view the output of a sysref cursor that is an out parameter from an SP, in SQL*PLUS
But is there a way to see the resultset of a cursor in TOAD?
This is urgent.
Thanks for the helping hands.
SunTOADs SQL Editor works (almost) the same as SQL*Plus.
You can work with VAR's and PRINT's in the very same way as SQL*Plus.
Furthermore you can do the following:
- Write an SQL statement with a bound cursor (with colons)
- right-click in TAODs Editor
- check for SQL Substitution variables.
- run the script (F9) and a substition pop up »pops up«, from where you can choose CURSOR.
The results will show up in the Data grid.
Note: I am working with TOAD ver. 9 -
How to view refcursor value in pl/sql
Hi,
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
i have one stored procedure like this
CREATE OR REPLACE PROCEDURE PRCURRENCYEDIT
CURRENCYCODE TBLCURRENCY.FLDCURRENCYCODE%TYPE,
CV1 OUT SYS_REFCURSOR
IS
BEGIN
OPEN CV1 FOR
SELECT FLDCURRENCYCODE,
FLDCURRENCYNAME,
FLDCURRENCYSYMBOL,
FLDPREFIXSYMBOL,
FLDEXCHANGERATE
FROM TBLCURRENCY
WHERE FLDCURRENCYCODE = CURRENCYCODE ;
END ;
i want to view the value for cv_1 ..
Thanks in advance
Regards
AriffThanks for the reply
But i have one problem with this stored procedure
PROCEDURE PRCURRENCYSEARCH
CURRENCYNAME IN NVARCHAR2 DEFAULT NULL ,
BATCHNUMBER IN NUMBER DEFAULT NULL ,
BATCHSIZE IN NUMBER DEFAULT NULL ,
RESULTCOUNT OUT NUMBER,
TOTALPAGECOUNT OUT NUMBER,
CV_1 OUT SYS_REFCURSOR
IS
V_ROWFROM NUMBER(19,0) ;
V_CURRENCYNAME TBLCURRENCY.FLDCURRENCYNAME%TYPE ;
BEGIN
V_CURRENCYNAME := NVL(CURRENCYNAME, '') || '%';
INSERT INTO GTT_CURRENCY
( FLDCURRENCYCODE )
SELECT FLDCURRENCYCODE
FROM TBLCURRENCY
WHERE (CURRENCYNAME = '%'
OR FLDCURRENCYNAME LIKE '%currencyname' )
ORDER BY FLDCURRENCYNAME ;
RESULTCOUNT := SQL%ROWCOUNT;
TOTALPAGECOUNT := FNTOTALPAGECOUNT(RESULTCOUNT, BATCHSIZE);
V_ROWFROM := FNROWFROM(BATCHNUMBER, BATCHSIZE);
OPEN CV_1 FOR
SELECT * FROM
( SELECT R.FLDCURRENCYCODE, C.FLDCURRENCYNAME
FROM GTT_CURRENCY R
JOIN TBLCURRENCY C
ON R.FLDCURRENCYCODE = C.FLDCURRENCYCODE
WHERE R.FLDROWNUMBER > V_ROWFROM
ORDER BY R.FLDROWNUMBER )
WHERE ROWNUM <= BATCHSIZE ;
END ;
when i execute this code using this code
DECLARE
CURR_CUR TBLCURRENCY%ROWTYPE;
CV1 SYS_REFCURSOR;
V1 NUMBER;
V2 NUMBER;
BEGIN
PRCURRENCYSEARCH('INR',NULL,1,V1,V2,CV1);
LOOP
FETCH CV1 INTO CURR_CUR;
EXIT WHEN CV1%NOTFOUND;
DBMS_OUTPUT.PUT_LINE(V1);
DBMS_OUTPUT.PUT_LINE(V2);
DBMS_OUTPUT.PUT_LINE(CURR_CUR.FLDCURRENCYCODE||' '||CURR_cUR.FLDROWNUMBER);
END LOOP;
END;
after execution,the following error occurs
DECLARE
ERROR at line 1:
ORA-06504: PL/SQL: Return types of Result Set variables or query do not match
ORA-06512: at line 9
Note:
desc tblcurrency
Name Null? Type
FLDCURRENCYCODE NOT NULL NUMBER
FLDCURRENCYNAME NOT NULL NVARCHAR2(100)
FLDCURRENCYSYMBOL NOT NULL NVARCHAR2(50)
FLDPREFIXSYMBOL NOT NULL NUMBER
FLDEXCHANGERATE NOT NULL NUMBER(18,6)
Thanks in advance
Regards
ariff -
Hi
I am running on WebLogic 11R1 and using OEPE 1.1.1.5.0.
When Fast swap is enabled and I run WebLogic in debug mode using OEPE I can not view the contents of variables with the Eclipse debugger. I get the message "Expressions must contain either an expression or a block containing a well formed statement"
However, if I disable Fast swap, i can view the variable within the Eclipse debugger
Has anyone else had this problem?
Regards
Steve HSmall correction... the soon-to-be-released version of WebLogic Server that Danny was referring to is 11gR1 PatchSet 2 or 10.3.3.
-
Xcode how to inspect a value while debugging
Hi all,
I'm new to Apple development, and was playing around with the debugging feature in xcode lastnight. All the features look great except i cannot find a way to inspect a value on a highlighted text of code(hopefully this make sense). i know i can inspect values that are held in an object (after the object is created), but what if i want to inspect a value that is not going to be held in an object? i.e. in Eclipse (java development), while in a break point, i can highlight a piece of code (e.g. new Date()) and then inspect its value. not sure if there is a way to do the same thing in xcode 3.
thanks heaps, JessI understood the question, I just didn't understand why a person with healthy eyes would ask it in the first place.
u can aks sum1 eles tho lol gu luk -
Viewing complete value while debugging
Hallo Forum,
I hope that I don't post a FAQ but I did not find this one doing some searching.
Okay, here is my problem:
When debugging a stored procedure, I try to get the complete value of a varchar2(4000) variable but I'm seeing just the first 100 characters.
Since I'm building up a SQL for execute immediate, I have to see the complete value in order to get an explain plan.
Do I just miss some configuration option or is that gerarally not possible?
My configuration is SQLDeveloper 1.0.0.14.67 with newest updates installed (these do not change the version number by the way).
I'm running on WinXP SP2 against an Oracle 9.2.0.7.0 running on W2kSP6.
Many thanks in advance,
LotharI set a breakpoint and try to inspect the local variables of the procedure.
When I doubleclick on the variable and enlarge the column that shows the value, it is truncated after 100 characters.
I don't know if it's a debugger issue or if the problem origins in SQL Developer because I'm not using dbms_debug outside SQL Developer.
You can hopefully reproduce this by using a test procedure like this:
CREATE OR REPLACE PROCEDURE TEST AS
s varchar2(4000);
BEGIN
for i in 1..10 loop
for j in 1..10 loop
s := s||'('||to_char(i)||','||to_char(j)||') **********';
end loop;
end loop;
END;
When you set a break point at the line where s is appended, Smart Data, Data and Watches show s just truncated to 100 chars.
Regards,
Lothar -
AIX 5.2 : how to pass password value while creating a user on AIX server
Hi ,
Test connection is successful with AIX server , I can successfully create a user on AIX server, with defualt password.
I am not passing the any password value still some default value is being populated for the user...
In AIX while creating the user , use get force to set the password...
But while configuring the schema for AIX adapter ...if password attribute is given then it will give the error
as invalid attribute...while creating a user if password value pass...
how to set the password for the user..what attribute need to set for the password .
thanks ..The default password might be the IdM account password of the user you are trying to provision. You don;t need to keep password in the resource schema. Just set password.password and password.confirmPassword and select AIX resource for password reset. Check the workflow-form-views document for more information on password view.
-
How to pass multiple values while invoking bpel process from ADF?
Hi,
I want to call a bpel process from my ADF application. The bpel process is having one input parameter. I have created webservice data control by using WSDL url.
Lets say, I have an Emp multi select table. I drag and drop the data control into Emp table selection facet to create an "Invoke" button.
I am able to pass single value (lets say Empid) to the bpel process after clicking the "Invoke" button.
But, my requirement is to pass all the selected values ( as its a multi select table) to the bpel process after clicking the "Invoke" button once.
How can I achieve this?
--AbhijitHi,
if the BPEL method that you access allows you to pass arrays or lists, then you can get a list of selectedRowKeys from the table, which then you use to get the value from the underlying binding or the table. This however requires some Java coding instead of directly invoking the executable on the binding layer
- you create the BPEL method in the binding layer
- from a Java managed bean you call ADFBindingContext --> get current instance and access Binding container
- OperationBinding oper = (OperationBinding ) bindings.get("method to invoke");
oper.gerParamsMap().put("the BPel argument name", value);
oper.execute();
- To access the table selected rows
RowKeySet rks = _table.getSelectedRowKeys();
//iterate over the set of selected row keys and delete
//each of the found rows
Iterator selectedRowIterator = rks.iterator();
while (selectedRowIterator.hasNext()){
//get the first key
Object key = selectedRowIterator.next();
//make the row current
_table.setRowKey(key);
//the row is an instance of the ADF node binding class
JUCtrlHierNodeBinding rowWrapper = null;
rowWrapper = (JUCtrlHierNodeBinding) _table.getRowData();
//get the actual oracle.jbo.Row object
Row row = rowWrapper.getRow();
... get attribute values by calling row.getAttribute("name"); assuming you used ADF BC to build the tableFrank -
How to generate unique values while initializing values
I am initializing values in my pl/sql program and want to use a sequence to set my unique ids but it errors out. Below is what I use.
ie. table_id := table_seq.nextval;
How can I use my sequence to initialize values or is this possible?The method suggested by user605919 will work. However, you don't need to initialize a variable like this. It is better and more performant to do it like the third example below:
SQL> create table mytable
2 ( id number(6)
3 , description varchar2(30)
4 )
5 /
Tabel is aangemaakt.
SQL> create sequence table_seq start with 1 increment by 1
2 /
Reeks is aangemaakt.
SQL> declare
2 table_id mytable.id%type := table_seq.nextval;
3 begin
4 insert into mytable
5 ( id
6 , description
7 )
8 values
9 ( table_id
10 , 'Some description'
11 );
12 end;
13 /
table_id mytable.id%type := table_seq.nextval;
FOUT in regel 2:
.ORA-06550: line 2, column 41:
PLS-00357: Table,View Or Sequence reference 'TABLE_SEQ.NEXTVAL' not allowed in this context
ORA-06550: line 2, column 12:
PL/SQL: Item ignored
ORA-06550: line 9, column 5:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 9, column 5:
PL/SQL: ORA-00904: "TABLE_ID": invalid identifier
ORA-06550: line 4, column 3:
PL/SQL: SQL Statement ignored
SQL> declare
2 table_id mytable.id%type;
3 begin
4 select table_seq.nextval
5 into table_id
6 from dual
7 ;
8 insert into mytable
9 ( id
10 , description
11 )
12 values
13 ( table_id
14 , 'Some description'
15 );
16 end;
17 /
PL/SQL-procedure is geslaagd.
SQL> begin
2 insert into mytable
3 ( id
4 , description
5 )
6 values
7 ( table_seq.nextval
8 , 'Some description'
9 );
10 end;
11 /
PL/SQL-procedure is geslaagd.And if you need the id value for some code after the insert, you use the RETURNING clause.
Regards,
Rob. -
How to view database values from server to client
hi friends
i have database in server side, i am storing values to the database from client side machine through remote methods. But now i need to view the database values from the server side. how to do this using RMI.
Plz give me suggestion.
by
vinodWhy do you have to use RMI for this task? That way you've got to write both a client and a server. Just use JDBC directly from the server.
-
IPhoto 11: How to view "all photos" while in full screen mode
In iPhoto, when it's not in full screen mode, if you click photos in the sidebar (under Library), you get a nice view of ALL your photos, and you have the option to sort them by event. When you go from this view straight to full screen mode, it stays this way, which in my case is particularly useful since I like to move photos around from event to event. However, staying in full screen mode, as soon as I click an any other of the menus at the bottom (events, faces, places, albums, projects), I cannot find anyway to get back to the "all photos" view, other than to take it OUT of full screen mode, click on "Photos" in the side bar, and then go back to full screen mode. Either I am missing something that is glaringly obvious, or this is a rather annoying oversight by Apple. It seems like it would be natural to have "Photos" be one of the options along with Events, Faces, Places, Albums and Projects in full screen mode. Right now the only work around I've been able to come up with (aside from going back and forth with fullscreen mode), and to hit "command F" while in full screen mode, and then type "i", which will give me what I am want only because all my photos start with "i". Not a very elegant work around, I know, but perhaps I am missing something very obvious.
Thanks for any advice!
JamesIn case my description isn't clear, here is a screenshot of exactly the view in full screen mode I am talking about that I can't seem to return to once I leave it, other than to go back to non full screen mode or use the search trick.
Maybe you are looking for
-
Need help fixing errors that keep filling up the logs in console
***I keep getting error's that are slowing down my imac plz help i know nothing about mac's there all showing up in the conso*l*e** 4/6/09 6:31:13 PM /System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow[22] Error Login Window Appli
-
Query to find all text attachments for items
I am using the query below to try to find all active items for my org that have an attachment of type 33 (something we have defined I believe) and contain specific text. Some of the items appear to meet all criteria (active, right category, etc) but
-
How do I make a change in a PDF document
How do I make a change in a PDF document
-
Getting a wierd issue with "Cannot set up certs for trusted CAs" This works if we are using anything less then 1.4.2_07, but the minute we install 1.4.2_07 or 13 as the case may be we get the following Exception: log9: java.lang.ExceptionInInitialize
-
My pdf's will not dl either and nothing will open except qt picture viewer.
my pdf's will not dl either and nothing will open except qt picture viewer. quick time is over riding pdf files. is there a check mark to take off somewhere. quick time should not over power pdf files.