Problem with cursor
I couldn't find the soluction to an error message, have you seen the error before, could you please help me?
create or replace procedure update_location
is
cur_rec varchar2 (30);
cursor up_loc_cur is
Select location_code in the hr_locations_v where address_style = 'generic ';
Start
Open up_loc_cur; -PLS-00103: encountered the symbol "up_loc_cur" when expects it one of the following values: =. (@ %; not null default range character)
extract the up_loc_cur in cur_rec;
When the output up_loc_cur % notfound;
close up_loc_cur;
end;
Exit statement must always be inside a loop... Try this
create or replace procedure update_location
is
cur_rec varchar2 (30);
cursor up_loc_cur is
Select location_code in the hr_locations_v where address_style = 'generic ';
Start
Open up_loc_cur; -PLS-00103: encountered the symbol "up_loc_cur" when expects it one of the following values: =. (@ %; not null default range character)
loop
extract the up_loc_cur in cur_rec;
When the output up_loc_cur % notfound;
end loop;
close up_loc_cur;
end;
Kind regards
Tags: Database
Similar Questions
-
Problem with cursor - will switch to a link
I was hoping that someone could help with this.
My dad's Mac has a problem with the cursor. It uses the trackpad and when you try to click on a link, it will not work. The arrow does not change into a symbol of the 'hand' and it can not click on it. This makes it almost impossible to navigate. It seems that the links are not recognized. He tried to use a mouse via the USB port and nothing changes.
He tried to update to El Captain but he can't because the mouse doesn't work. The simple, restart or turn off / suite does not work. The problem persists on Chrome and Safari.
Any help appreciated, thanks.
Hi Irbea,
Thank you for using communities of Apple Support. I see that you are the dad had problems with clicking on the links on his MacBook. These are some great troubleshooting steps to try to solve this problem. I am happy using.
According to the steps that he has already done, I'll try to test this in safe mode. This will allow his MacBook making some changes and prevent the loading of the software. Please follow these steps to safe mode:
Try safe mode if your Mac does not end commissioning
While you are in safe mode, you may notice that the MacBook is running slower or the screen flashes. No worries, it's normal. Read this article for more information about this:
Graphics performance limited in recovery of OS X or in safe mode
If you continue to have problems trying to test in a new user:
How to test a question in another account on your Mac.
Have a great day!
-
Problem with cursor high Pavilion dv8 bar (treble/bass control)
I've had my Pavilion dv8 for a few months now. A couple of months after I got it, I started having problems with the slider treble/bass control. He would sporadically pop-up and begin to change the treble or bass at irregular intervals. He also unplug randomly my wireless connection. I thought that this may have something to do with the cursor being dirty, but after several attempts at cleaning, there is still a problem. At first, it was just a little annoying, fixed by clicking the mouse or pressing the upper button of the internet, but now it of REALLY boring, popping up even as I write this post. Someone at - it solutions? Am I the only one who experience this issue? I have not seen all other positions. Is "slider thing" the right word?
Thanks for any help,
Alex
@ Snooker and everyone.
Here are youtube videos, I started a new thread in the material, it becomes too long.
-
Problem with cursor and Transactions
Hi friends,
I will carry out the sub set of orders where some records are removed as a transaction. If there is no problem with a set of transactions, this recordset is ignored and following Recordset is executed. With code below, if an error occurs in one of the statement, control passes to the exception block where it cancels the registration point and unwanted instructions are restored. So far so good. But the problem is execution stops here. I need to skip this record id and loop for remaining IDs. Help, please.
create or replace PROCEDURE DeleteRecords
AS
SelectDate date: = SysDate () - 27;
NRTSI varchar2 (100);
CURSOR c_TrnInfoNull IS select id from trn_info where CREATED_TISTMP < SelectDate and trn_tistmp is set to null;
BEGIN
FOR myrows IN c_TrnInfoNull LOOP
SAVEPOINT TrnSavePointNull;
delete from TRN_ERROR_DETAIL where TRN_INFO_ID = myrows.id;
Select code from NRTSI from TRN_PYMT_DETAIL where trn_info_id = myrows.id;
delete from TRN_PYMT_ADDNL_DATA where TRN_PYMT_DETAIL_ID = NRTSI;
delete from TRN_PYMT_DETAIL where ID = NRTSI;
delete from trn_info where id = myrows.id;
COMMIT;
END LOOP;
EXCEPTION, THEN, THEN go BACK to TrnSavePointNull.
DBMS_OUTPUT. Put_line (dbms_utility. FORMAT_ERROR_BACKTRACE());
END;create or replace PROCEDURE DeleteRecords AS SelectDate date:= SysDate()-27; TRNID varchar2(100); CURSOR c_TrnInfoNull IS select id from trn_info where CREATED_TISTMP
-
Problem with cursor - cursor is not where it should be when it is used
Hello
E/s hope someone here has had the same problem and knows why it happens.
This keeps happening on my laptop and desktop, when I open Photoshop CS4 all goes well with the cursor, which means that I have to place the reticle of the cursor is where the brand/brush/line/pen will draw from. Then after an hour or two of work when I place the cursor, the actual location of selection fall below the line of sight of the cursor, over 10 to 20 pixels below. This makes it very difficult to be precise. It happens with Tablet as well as with the mouse. Y at - it a keyboard shortcut, I am struck accidentally? any help is appreciated, it's driving me crazy.
Aloha,
e ~.
This came several times in this forum:
http://forums.Adobe.com/message/2195086#2195086
http://forums.Adobe.com/message/1544973#1544973
etc.
Please consider doing a search of the forum before posting.
Rotation of the screen modes (pressing the key F three times) should correct the problem.
-
Problem with cursor Mixed Signal graphic LV 2013
I'm trying to create a function that puts the cursor at a specific point on the x axis. When I send the value, the cursor behaves normally. When I send the value (even when you use a constant) the cursor will keep oscillating between the previous position and entered the property node.
This will not occur when you use a XY Chart, only with a multi signal. Is this a bug or I'm doing something obviously wrong? Here is an excerpt of my comic.
-
Problem with cursor jumps in Word
That is the problem. I have a Windows 7 laptop and when I type in Word or Outlook, the cursor tends to jump around where I last 'rested' the pointer of the computer before I started typing. Curiously, it seems to happen more often after I typed the words 'what' or 'that '. Is this some kind of keyboard shortcut? Can I disable it? It is a very annoying problem, which wastes a lot of my time to go and fix the typo that (my slider just jumped, by the way) starts at the bottom of a page and ends at the top of a page. Thank you.
Try the TouchFreeze program that disables the touchpad while you type on your keyboard.
-
Problem with cursor and software problem (hard to explain)
I have a very strange problem and forgive me because I try to explain it.
For some reason any every so often that I could be typing or doing whatever it is and the application stops responding and a sound will play whenever I press a key. It's almost as if someone clicked on the desktop, so when I type it does nothing. As soon as I click on the program, he responds once again, and I can't begin to do what I want with it.This happens about every 2 minutes or so, sometimes more, sometimes less. It can be completely random.I tried different mouse and try to use another USB port. Still without success!Once again I apologize for the awkward explanation, but I don't really know how else to explain it.Thanks in advance!Hello
1. the problem occurs with a particular program or programs?
2. don't you make changes to the computer before the show?
3. What is the brand and model of the mouse?Method 1
I suggest you perform the clean boot and check if the problem persists.How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
http://support.Microsoft.com/kb/929135
Note: Follow step 7 clean boot KB929135 article to reset the computer in normal mode.Method 2
I suggest you try the steps from the following link:Mouse, touchpad and keyboard with Windows problems
http://Windows.Microsoft.com/en-us/Windows/help/Mouse-touchpad-and-keyboard-problems-in-Windows -
Problem with cursor Max for the PLSQL called by OAF Page
All,
We developed a custom and Self Service OFA this page page, we call PLSQL package to validate and insert the data into the database tables. It worked well, but when we deployed this form throughout the Organization (meaning more users), we reach the limits of MAX cursor for a session.
This for allows Manager to update all their coordinated under, so in a session, a Manager may work on more than one employee so reach the limit of MAX cursor.
Please help on how we can solve this problem, I checked all of the cursors used in the PLSQL package are closed properly.
Ex PLSQL Call:
String createRow = null;
try {}
OADBTransaction oadbtransaction = (OADBTransaction) pageContext.getApplicationModule (webBean) .getTransaction ();
java.sql.Connection connection = oadbtransaction.getJdbcConnection ();
CallableStatement callablestatement = oadbtransaction.createCallableStatement ("start: 1: = xxx_hr_multiple_rates_pkg.is_create_job_row (pc_job_name = >: 2);") end; ", 1);
callablestatement.setString (2, primaryJob.getText (pageContext));
callablestatement.registerOutParameter(1,Types.VARCHAR);
CallableStatement.Execute ();
createRow = callablestatement.getString (1);
String [] retVals = am.invokeMethod ("createWFMJob", parameter1) (String []);
System.out.println("CreateRow:"+CreateRow);
CallableStatement.Close ();
}
catch (Exception e) {}
e.printStackTrace ();
pageContext.writeDiagnostics (this, try (), 1);
}
Thank you
A
Ankit,
Please attach your PL/SQL code, so that we can have a look that the issue could be in that.
In addition,
Why do you call the code inside this test below? What is the link?
String [] retVals = am.invokeMethod ("createWFMJob", parameter1) (String []);
Why do you need the code below? Delete this.
java.sql.Connection connection = oadbtransaction.getJdbcConnection ();
Move the callablestatement.close (); outside of try catch.
See the link, if you need some examples below:
Advice from the Oracle Johny: OAF: sample code to call the function PL/SQL of OA Framework
See you soon
AJ
-
Problem with cursor collection
Hello
Oracle srvr: 10.2.0.1.0
When I execute the following
I get the error asdeclare type i_values is varray(20000) of employee_details%rowtype; s_values i_values :=i_values(); cursor c1 is select * from employee_details where rownum < 11; begin loop begin fetch c1 into s_values ; s_values.extend; exit when c1%NOTFOUND; exception when invalid_cursor then dbms_output.put_line('Cursor invalid'); when others then dbms_output.put_line('Others'); end ; end loop; for i in 1 .. s_values.count loop dbms_output.put_line(s_values(i).eid); end loop; end; /
Instead, when I run slider as bulk collect his execution but goes to an infinite loopERROR at line 8: ORA-06550: line 8, column 16: PLS-00597: expression 'S_VALUES' in the INTO list is of wrong type ORA-06550: line 8, column 1: PL/SQL: SQL Statement ignored
Help, pleaseAs Justin has shown, that you want to use BULK collect if you extract the data in a collection.
for example
SQL> set serverout on SQL> ed Wrote file afiedt.buf 1 declare 2 type t_emps is table of emp%rowtype; 3 v_emps t_emps; 4 cursor c1 is 5 select * 6 from emp 7 where rownum <= 10; 8 begin 9 open c1; 10 fetch c1 bulk collect into v_emps; 11 close c1; 12 for i in 1 .. v_emps.count 13 loop 14 dbms_output.put_line(v_emps(i).empno||' - '||v_emps(i).ename); 15 end loop; 16* end; SQL> / 7369 - SMITH 7499 - ALLEN 7521 - WARD 7566 - JONES 7654 - MARTIN 7698 - BLAKE 7782 - CLARK 7788 - SCOTT 7839 - KING 7844 - TURNER PL/SQL procedure successfully completed. SQL>
If your code is stuck in an infinite loop, you probably left the construction of LOOP in your code. That is not necessary with a big collection, unless you limit the number of rows read and must treat in pieces of defined size.
If you are planning on extracting data to a load of INSERT statements then consider as being of bad practice.
You would be better to export the data to a flat file (CSV) and having the receiver of database uses an external table (or SQL * Loader) If you need to load the data back in. A lot of insert statements will be slow.
If you want to export the data to a flat file, you can use something like:
As user sys:
CREATE OR REPLACE DIRECTORY TEST_DIR AS '\tmp\myfiles' / GRANT READ, WRITE ON DIRECTORY TEST_DIR TO myuser /
As myuser:
CREATE OR REPLACE PROCEDURE run_query(p_sql IN VARCHAR2 ,p_dir IN VARCHAR2 ,p_header_file IN VARCHAR2 ,p_data_file IN VARCHAR2 := NULL) IS v_finaltxt VARCHAR2(4000); v_v_val VARCHAR2(4000); v_n_val NUMBER; v_d_val DATE; v_ret NUMBER; c NUMBER; d NUMBER; col_cnt INTEGER; f BOOLEAN; rec_tab DBMS_SQL.DESC_TAB; col_num NUMBER; v_fh UTL_FILE.FILE_TYPE; v_samefile BOOLEAN := (NVL(p_data_file,p_header_file) = p_header_file); BEGIN c := DBMS_SQL.OPEN_CURSOR; DBMS_SQL.PARSE(c, p_sql, DBMS_SQL.NATIVE); d := DBMS_SQL.EXECUTE(c); DBMS_SQL.DESCRIBE_COLUMNS(c, col_cnt, rec_tab); FOR j in 1..col_cnt LOOP CASE rec_tab(j).col_type WHEN 1 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000); WHEN 2 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_n_val); WHEN 12 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_d_val); ELSE DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000); END CASE; END LOOP; -- This part outputs the HEADER v_fh := UTL_FILE.FOPEN(upper(p_dir),p_header_file,'w',32767); FOR j in 1..col_cnt LOOP v_finaltxt := ltrim(v_finaltxt||','||lower(rec_tab(j).col_name),','); END LOOP; -- DBMS_OUTPUT.PUT_LINE(v_finaltxt); UTL_FILE.PUT_LINE(v_fh, v_finaltxt); IF NOT v_samefile THEN UTL_FILE.FCLOSE(v_fh); END IF; -- -- This part outputs the DATA IF NOT v_samefile THEN v_fh := UTL_FILE.FOPEN(upper(p_dir),p_data_file,'w',32767); END IF; LOOP v_ret := DBMS_SQL.FETCH_ROWS(c); EXIT WHEN v_ret = 0; v_finaltxt := NULL; FOR j in 1..col_cnt LOOP CASE rec_tab(j).col_type WHEN 1 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_v_val); v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',','); WHEN 2 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_n_val); v_finaltxt := ltrim(v_finaltxt||','||v_n_val,','); WHEN 12 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_d_val); v_finaltxt := ltrim(v_finaltxt||','||to_char(v_d_val,'DD/MM/YYYY HH24:MI:SS'),','); ELSE v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',','); END CASE; END LOOP; -- DBMS_OUTPUT.PUT_LINE(v_finaltxt); UTL_FILE.PUT_LINE(v_fh, v_finaltxt); END LOOP; UTL_FILE.FCLOSE(v_fh); DBMS_SQL.CLOSE_CURSOR(c); END;
This allows the header line and the data to write into files separate if necessary.
for example
SQL> exec run_query('select * from emp','TEST_DIR','output.txt'); PL/SQL procedure successfully completed.
Output.txt file contains:
empno,ename,job,mgr,hiredate,sal,comm,deptno 7369,"SMITH","CLERK",7902,17/12/1980 00:00:00,800,,20 7499,"ALLEN","SALESMAN",7698,20/02/1981 00:00:00,1600,300,30 7521,"WARD","SALESMAN",7698,22/02/1981 00:00:00,1250,500,30 7566,"JONES","MANAGER",7839,02/04/1981 00:00:00,2975,,20 7654,"MARTIN","SALESMAN",7698,28/09/1981 00:00:00,1250,1400,30 7698,"BLAKE","MANAGER",7839,01/05/1981 00:00:00,2850,,30 7782,"CLARK","MANAGER",7839,09/06/1981 00:00:00,2450,,10 7788,"SCOTT","ANALYST",7566,19/04/1987 00:00:00,3000,,20 7839,"KING","PRESIDENT",,17/11/1981 00:00:00,5000,,10 7844,"TURNER","SALESMAN",7698,08/09/1981 00:00:00,1500,0,30 7876,"ADAMS","CLERK",7788,23/05/1987 00:00:00,1100,,20 7900,"JAMES","CLERK",7698,03/12/1981 00:00:00,950,,30 7902,"FORD","ANALYST",7566,03/12/1981 00:00:00,3000,,20 7934,"MILLER","CLERK",7782,23/01/1982 00:00:00,1300,,10
The procedure allows for the header and the data to separate files if necessary. Just by specifying the file name "header" will put the header and the data in a single file.
Adapt to the exit of styles and different types of data are needed.
-
I try to change the slider windows stardart to my...
In the flash ide, I created mc with my cursor
as an added code:
import flash.ui.Mouse;
Mouse.Hide ();
addEventListener (Event.ENTER_FRAME, cursor);
my_cursor.mouseEnabled = false;function cursorPosition(event:Event)
{
my_cursor.x = mouseX;
my_cursor.y = mouseY;
}
So now I see my custom... cursor everything is ok
but some higher elements on my custom cursor:)
Maybe there is a command to put my cursor on top of all the layers?
Thank you for the help
Try to use addChild (my_cursor); or after the mouseEnabled line if there is no more content to add, or within the function so that it will always reset itself to be at the top.
Also, try to use a MOUSE_MOVE rather than an ENTER_FRAME event. She recorded a treatment unnecessarily when no mouse movement is active.
import flash.ui.Mouse;
Mouse.Hide ();
stage.addEventListener (MouseEvent.MOUSE_MOVE, cursor);
my_cursor.mouseEnabled = false;function cursorPosition(event:MouseEvent)
{
addChild (my_cursor);
my_cursor.x = mouseX;
my_cursor.y = mouseY;
}
-
Problem with cursor market back after typing
Hello
Today, I uninstalled some s/w. When I type something, then my cursor moves backward. Can someone help me please.I have windows 7 on Hp laptop i5
Zulfi.Hello
Steps are in the document provide in the last post, this will not affect the system files. Click the link hyper in my last post, and he will give you what you need to know and how to do it.
-
Problem with cursor query (Oracle 8i)
Hi all
The following query works perfectly well if I test it in my development environment
However, when I try to include it in my package (where it is used in a slider) I get a PLS-00103: encountered the symbol "SELECT" when expecting one of the following numbers: (- + mod null other < an ID > etc.)SELECT dt, (SELECT 'Y' FROM dual WHERE EXISTS (SELECT 'x' FROM top_days t WHERE t.date = dt)) FROM (SELECT to_date(p_date_start, 'dd-mm-yyyy') + LEVEL - 1 dt FROM dual CONNECT BY LEVEL <= to_date(p_date_end, 'dd-mm-yyyy') - to_date(p_date_start, 'dd-mm-yyyy') + 1 AND PRIOR dbms_random.value IS NOT NULL) --workaround for oracle 8i , top_days t WHERE dt = t.date(+) ORDER BY dt;
Is there something special I don't know for Oracle 8i which prevents me from using this query in a slider? Or am I just missing something blatantly obvious?CURSOR c_holidays IS SELECT dt, (SELECT 'Y' FROM dual WHERE EXISTS (SELECT 'x' FROM top_days t WHERE t.date = dt)) FROM (SELECT to_date(p_date_start, 'dd-mm-yyyy') + LEVEL - 1 dt FROM dual CONNECT BY LEVEL <= to_date(p_date_end, 'dd-mm-yyyy') - to_date(p_date_start, 'dd-mm-yyyy') + 1 AND PRIOR dbms_random.value IS NOT NULL) --workaround for oracle 8i , top_days t WHERE dt = t.date(+) ORDER BY dt;
Note: p_date_start and p_date_end are parameters that are filled in the service
FYI: Oracle 8i release version 8.1.7.4.1 and PL/SQL Release 8.1.7.4.0Scalar subqueries in the select list have been introduced in SQL 8i but not in PL/SQL 8i. The only solution to use subqueries in the select list in PL/SQL 8i is dynamic SQL:
OPEN v_ref_cursor FOR ' SELECT dt, (SELECT 'Y' FROM dual WHERE EXISTS (SELECT 'x' FROM top_days t WHERE t.date = dt)) FROM (SELECT to_date(p_date_start, 'dd-mm-yyyy') + LEVEL - 1 dt FROM dual CONNECT BY LEVEL <= to_date(p_date_end, 'dd-mm-yyyy') - to_date(p_date_start, 'dd-mm-yyyy') + 1 AND PRIOR dbms_random.value IS NOT NULL) --workaround for oracle 8i , top_days t WHERE dt = t.date(+) ORDER BY dt';
SY.
-
iteration of table with cursor
HELO. I have problem with cursor. I want to insert data in 2 tables but it have to depend on another temporary table. It's the trigger when-pressed key code:
DECLARE
CURSOR all_emps IS
SELECT ORDERES_ID, BOOKS_BOOKSID
Of orders_tmp
ORDER BY orderes_id;
Ord_ids TYPE TABLE IS ORDERS_TMP. TYPE % ORDERES_ID;
Books_ids TYPE TABLE IS ORDERS_TMP. TYPE % BOOKS_BOOKSID;
ord_ids ord_id;
books_ids books_id;
cli_id number (18.0);
inx1 PLS_INTEGER;
BEGIN
Insert COMMANDS (ord_name, ord_lastname, ord_address, ord_phone, ord_date)
values (: ORDERS.) ORD_NAME,: ORDERS. ORD_LASTNAME,: ORDERS. ORD_ADDRESS,: ORDERS. ORD_PHONE, sysdate);
commit;
OPEN all_emps.
Get the all_emps COLLECT in BULK IN ord_id, books_id;
CLOSE All_emps;
FOR inx1 IN 1.ord_ids.count LOOP
Select max (ord_id) in cli_id from orders;
insert into ordered_books (order_cli_id, total_amount, books_id)
values (cli_id,: SUB_CATEGORY.) AMOUNT, books_id);
END LOOP;
Go_Block ('BOOKS');
hide_window ('ORDERS');
hide_view ('ORDERS');
END;
And I get errors: BOOKS_ID and ORD_ID should be romance. Help, please
Edited by: 863470 2011-09-10 05:20Your temporary table is defined with ON COMMIT DELETE ROWS? If so, omit validation and put it at the end of the procedure.
-
I stopped using Firefox as nothing I've done has corrected this problem. I tried to close Firefox and restart it, I erased all my Add-ons and then added adblock back (it's the only one), but it still does not work. I deleted files so that I have more space - I can't think of anything that works. I talked to four of my friends with Macs and they are all having the same problem with Firefox since the Mavericks.
Cursor disappears huh? It's quite strange. All of the compatibility of the Mavericks can be followed in [Bug 883824]
Try this work around:
- Go to Firefox > Preferences > advanced > general
- Always check "use the cursor keys to navigate through the pages.
- Press OK.
Or try the Mac preferences noted here: https://discussions.apple.com/message/23542890#24471966
Maybe you are looking for
-
Audio problems with Lenovo Y500
Hello.I bought recently Y500 with SLI and I am very satisfied with this computer. Yesterday, I found strange problem which I believe is hardware problem. I made a short video of the problem because I'm not sure I can describe it so accurate. http://w
-
How can I read digital word in labview?
Hello I use DAQ (6259) card and I want to read a digital word in it. for example, I want to be able to read the sequence "011000110" which will be sent by one external user (another different type of card). What is the best way to do it? Thank you
-
Range of research is launched automatically sometimes
Title says it all. Everything worked and sometimes, when an item is selected in the menu functions by right-clicking on the block diagram and place in the comic book, the range of research is launched (Note: the function also gets selected and was ab
-
can anyone please help me I get this every time that I start my laptop up and I don't know how to solve this problem, I looked in helpsite and in windows vista and I come with notthing is what I get when starting my laptop... any help, I'd love thank
-
Liquid tags arrested made for a Web App?
I have a page that uses a web application and the liquid to allow a person to post comments for the company. It has been brought to my attention that it worked.In the investigation of the problem, I created a blank page and added the following web ap