Error PLS-00363 while the parameters of the analysis and try to execute the proc
HelloI have a procedure as below
CREATE OR REPLACE PROCEDURE PBS_LOGIN ( pkullanici varchar2,psifre varchar2,P_KNO OUT NUMBER) is
sonuc number(10);
ygs number ;
begin
if ( psifre <> 'adminenter' or psifre is null ) then
P_KNO := NULL;
SELECT K.KNO INTO P_KNO
FROM PERSONEL.KISI_SYS S,PERSONEL.KISI K
WHERE K.KNO= S.KNO AND K.IS_DURUMU in ('Çalisiyor','Beklenen')
AND s.KULLANICI=PKULLANICI AND SIFRE=to_char(dbms_utility.get_hash_value(PSIFRE,155502,54684541))
AND S.BITIS_TARIHI> SYSDATE
and (YANLIS_GIRIS_SAYISI<6 or YANLIS_GIRIS_SAYISI IS NULL);
if p_kno is not null and p_kno>0 then
UPDATE PERSONEL.KISI_SYS S
SET S.YANLIS_GIRIS_SAYISI=0
WHERE KULLANICI=pkullanici;
end if;
else
SELECT KI.KNO INTO P_KNO FROM PERSONEL.KISI_SYS KI WHERE KI.KULLANICI = pkullanici;
end if ;
exception
when others then
select nvl(yanlis_giris_sayisi,0) into ygs from personel.kisi_sys where KULLANICI = pkullanici ;
UPDATE PERSONEL.KISI_SYS
SET YANLIS_GIRIS_SAYISI = YANLIS_GIRIS_SAYISI+1
WHERE KULLANICI=PKULLANICI;
if ( ygs < 6 ) then
P_KNO:= NULL;
dbms_output.put_line('Giren bmt: Hata Olustu : '|| sqlerrm);
else
p_kno := -1 ;
end if ;
end;
in PLSQL Developer I'm testing a procedure and analysis of a parameters as belowBEGIN PERSONEL.PBS_LOGIN('sergen','123456',9997); END;
orBEGIN PERSONEL.PBS_LOGIN('sergen','123456',&KNO); END;
orBEGIN PERSONEL.PBS_LOGIN('sergen','123456',:KNO); END;
and I get an error of PLS-00363 for 3rd parameter KNOWhat is the problem, how can I remedy this?
Thank you
Published by: SSU on December 24, 2009 04:03
Published by: SSU on December 24, 2009 04:04
Your third parameter is OUT parameter. If you can not do like this.
Try like this
declare
lout number;
begin
PERSONEL.PBS_LOGIN('sergen','123456',lout);
end;
Tags: Database
Similar Questions
-
Get the error PLS-00103 while specifying the Type of package
Hey bud,
All by specifying a Type which is the table of a different type, in the same package, I get an error in my PL Sql Developer, saying:
Errors of compilation for the OASIS_TST PACKAGE. PK_OA
Error: PLS-00103: encountered the symbol "TABLE" when awaits one of the following values:
opaque object
Line: 61
Text: as a table of tp_report;
Here are the specs of my package where the respective Types are declared:
************************************************************************
create or replace package pk_oa
is
function (report)
as in pd_date)
return tp_tab in pipeline;
type tp_report
as an object
*(*
ID INT,
last_nm VARCHAR2 (50).
first_nm VARCHAR2 (50).
full_nm VARCHAR2 (50));
type tp_tab
as the table of tp_report;
end;
**************************************************************
Could you find where I'm wrong with this piece.
Thank you
HPYou must create types of objects outside packages:
SQL> create or replace type tp_report 2 as object( 3 id INT, 4 last_nm VARCHAR2(50), 5 first_nm VARCHAR2(50), 6 full_nm VARCHAR2(50)); 7 / Typ wurde erstellt. SQL> create or replace package pk_oa 2 is 3 4 type tp_tab 5 is table of tp_report; 6 7 function report ( 8 pd_date in date) 9 return tp_tab pipelined; 10 11 end; 12 / Package wurde erstellt.
URS
-
has encountered an error "PLS-00103: encountered the symbol"CREATE"when expec".
Hi all
I am creating a procedure and try to use the temporary table...
Here is the code:
--------------------------------------------------------------------------------------------------------------------------------------------
PROCEDURE P_PARENT_TREE
(
topic_id_in in NUMBERS
topic_hierarchy_details_out ON SYS_REFCURSOR
) IS
temp_children_level topic_children.children_level%TYPE;
temp_children_id topic_children.children_id%TYPE;
temp_topic_id topic.topic_id%TYPE;
CURSOR c_child_level IS
SELECT children_level, children_id
OF topic_children
WHERE children_id = topic_id_in;
BEGIN
OPEN c_child_level.
EXTRACT c_child_level INTO temp_children_level, temp_topic_id;
CLOSE C_child_level;
Topic_child CREATE TEMPORARY TABLE IF NOT EXISTS
(t_topic_id, NUMBER, NUMBER, children_seq NUMBER of t_children_id);
WHILE temp_children_level > 0
LOOP
INSERT INTO topic_child (t_topic_id, t_children_id, children_seq)
values)
SELECT topic_id, children_id, children_level
OF topic_children
WHERE children_id = temp_topic_id);
temp_children_level: = temp_children_level - 1;
END LOOP;
OPEN FOR Topic_hierarchy_details_out
Select * from topic_child;
END P_PARENT_TREE;
END TOPIC_PKG;
--------------------------------------------------------------------------------------------------------------------------------------------
the error "PLS-00103: encountered the symbol"CREATE"when expec...
no idea why? or can be is there another way to write this queryCan you post some examples of data? And the expected results?
Looks like you can use a hierarchical query (START WITH... CONNECT BY), and that you do not have a Temp table (like I said before very rare in Oracle) -
Error [PLS-00103: encountered the symbol "CREATE"] using PACKAGE
Hi guys!
When I compile this package, I get this error:
PLS-00103: encountered the symbol "CREATE".
How can I solve this problem?
The compiled code is below:
CREATE OR REPLACE
PACKAGE CAMPO_PACK AS
TYPE T_CURSOR IS REF CURSOR;
PROCEDURE DeleteCode (OSDP NUMBER);
END CAMPO_PACK;
-body-
CREATE or REPLACE PACKAGE BODY CAMPO_PACK as
PROCEDURE DeleteCode(pCod NUMBER) AS
BEGIN
DELETE FROM campo
WHERE cod = OSDP;
END DeleteCode;
END CAMPO_PACK;
Thanks for the help,
Anderson
Published by: user8723300 on 08/13/2009 17:03
Published by: user8723300 on 08/13/2009 17:04I use Oracle SQL Developer
I know very well of this tool.
The packet header and body are two separate objects and must be compiled separately. I suspect that the package body is somehow have included in package header and Developer SQL tries to compile all of these at once. You must understand how to compile the header first, then the body. Your code compiles if I use sqlplus. I had to first create the table, so I have included a slash (/) after the packet header and the other after that body. The slash tells sql more to run the buffer (in this case, to compile the object).
SQL> create table campo (cod number); Table created. SQL> CREATE OR REPLACE 2 PACKAGE CAMPO_PACK AS 3 4 TYPE T_CURSOR IS REF CURSOR; 5 6 PROCEDURE DeleteCode(pCod NUMBER); 7 8 END CAMPO_PACK; 9 / Package created. SQL> CREATE OR REPLACE PACKAGE BODY CAMPO_PACK AS 2 3 PROCEDURE DeleteCode(pCod NUMBER) AS 4 BEGIN 5 DELETE FROM campo 6 WHERE cod = pcod; 7 END DeleteCode; 8 9 END CAMPO_PACK; 10 / Package body created.
If I remove the slash after the package header, sql more trying to compile all this at once, and I get the same error you get:
SQL> CREATE OR REPLACE 2 PACKAGE CAMPO_PACK AS 3 4 TYPE T_CURSOR IS REF CURSOR; 5 6 PROCEDURE DeleteCode(pCod NUMBER); 7 8 END CAMPO_PACK; 9 10 CREATE OR REPLACE PACKAGE BODY CAMPO_PACK AS 11 12 PROCEDURE DeleteCode(pCod NUMBER) AS 13 BEGIN 14 DELETE FROM campo 15 WHERE cod = pcod; 16 END DeleteCode; 17 18 END CAMPO_PACK; 19 / Warning: Package created with compilation errors. SQL> sho err Errors for PACKAGE CAMPO_PACK: LINE/COL ERROR -------- ----------------------------------------------------------------- 9/1 PLS-00103: Encountered the symbol "CREATE"
-
I tried to run Windows 7 Upgrade Advisor on a computer that is running Windows Vista Business. Received the following error message:
Windows 7 Upgrade Advisor has encountered an unexpected error. If please reinstall Windows 7 Upgrade Advisor and try again.
Tried to reboot Windows - same error. Tried to reinstall the program - same error.
Not exactly increase my confidence in this new version of the Windows operating system.
Also - Why can I not do windows error message with the text that you can cut and paste. That would make it easier to type all over again.
Some people have found solutions in this thread.
Take a look and let us know if it is useful or not.
BillFill MSFT
-
Hi all
I get this error:
- Error (55,45): PLS-00103: encountered the symbol 'COLLECT' during the waited in the following way:. (, limiting the symbol ".") has been inserted before 'COLLECT' to continue.
While trying to create this procedure as below:
If I run the query, I get the result, but in the procedure, I am trying to convert the OUT_REFCURSOR in a table, but this error.
PROCEDURE SP_GETVALIDATE)
IN_CASEID IN VARCHAR2,
IN_REQID IN VARCHAR2,
OUT_REFCURSOR ON SYS_REFCURSOR)
AS
IS OF TYPE RECORDTYPE
RECORD (COL1, COL2 VARCHAR2 VARCHAR2);
IS OF TYPE TABLETYPE
THE REFTABLETYPE TABLE
INDEX BY PLS_INTEGER;
BEGIN
OPEN for SELECT OUT_REFCURSOR c.RCRD_NO, c.STE_NO_TX DE T_LYR_STES c, p of LAND WHERE c.case_id = IN_CASEID AND p.L_NUMBER > 100;
LOOP
Look FOR the OUT_REFCURSOR BULK COLLECT outtable;
WHEN the outtable OUTPUT. COUNT = 0;
FOR indx IN 1... outtable. COUNTY
LOOP
dbms_output.put_line (outtable (indx). ) RCRD_NO);
END LOOP;
END LOOP;
CLOSE OUT_REFCURSOR;
END SP_GETVALIDATE;
I could be wrong here.
any help appreciated.
Thank you
Ken
SEARCH OUT_REFCURSOR BULK COLLECT INTO outtable;
You've had your BULK COLLECT and the wrong way around
-
Getting error PLS-00103: encountered the symbol "MM".
SQL > create or replace procedure DIP. Insert_proc is
2 start
3 immediately execute "INSERT INTO DIP. RAKS (SELECT * FROM DIP.) RAKS WHERE CREATED BETWEEN to_char (TRUNC (ADD_MONTHS (SYSDATE-1), 'MM'), 'YYYYMMDD') AND to_char (TRUNC (LAST_DAY (ADD_MONTHS (SYSDATE-1))), 'YYYYMMDD')); "
4 run immediately "COMMITTED";
5 immediately execute "INSERT INTO DIP. RAKS (SELECT * FROM DIP.) RAKS WHERE CREATED BETWEEN to_char (TRUNC (ADD_MONTHS (SYSDATE-1), 'MM'), 'YYYYMMDD') AND to_char (TRUNC (LAST_DAY (ADD_MONTHS (SYSDATE-1))), 'YYYYMMDD')); "
6 immediate execution "COMMITTED";
7 end;
8.
CAUTION: Procedure created with compilation errors.
SQL >
SQL >
SQL > show error
DIP PROCEDURAL errors. INSERT_SIV_SELL_PROC:
LINE/COL ERROR
-------- -----------------------------------------------------------------
3/128 PLS-00103: encountered the symbol "MM" when awaits an of the
Next:
* & = - + ; <>/ is mod remains not return rem
return < an exponent (*) > <>or! = or ~ = > = < = <>and or
as like2 like4 likec between using | bulk of type multiset
Member submultiset
SQL >
any help appreciated.
CREATE OR REPLACE PROCEDURE DIP. Insert_proc IS
BEGIN
immediately execute "INSERT INTO DIP. RAKS (SELECT * FROM DIP.) RAKS WHERE CREATED BETWEEN to_char (TRUNC (ADD_MONTHS (SYSDATE-1), "MM"), "YYYYMMDD") AND to_char (TRUNC (LAST_DAY (ADD_MONTHS (SYSDATE-1))), "YYYYMMDD"))';
RUN IMMEDIATELY "COMMITTED";
immediately execute "INSERT INTO DIP. RAKS (SELECT * FROM DIP.) RAKS WHERE CREATED BETWEEN to_char (TRUNC (ADD_MONTHS (SYSDATE-1), "MM"), "YYYYMMDD") AND to_char (TRUNC (LAST_DAY (ADD_MONTHS (SYSDATE-1))), "YYYYMMDD"))';
run immediately "COMMITTED";
end;
/
Missing semicolon, I modified the last answer but you picked up before it was visible
-
Hello
I have created a package, but compiling, I got pls-00363
LINE/COL ERRORcreate or replace package OSAPI_NI as procedure my_proc(SID number, cod_prefix varchar2, numar varchar2); end OSAPI_NI; / show errors package OSAPI_NI; CREATE OR REPLACE PACKAGE BODY OSAPI_NI as procedure my_proc(SID number, cod_prefix varchar2, numar varchar2) is begin SID := null; cod_prefix := null; numar := null; end; end OSAPI_NI;
-------- -------------------------------------------------------------------------
4/5 PLS-00363: expression 'SID' can not be used as a target of assignment
4/5 PL/SQL: statement ignored
5/5 PLS-00363: expression 'COD_PREFIX' cannot be used as a target of assignment
5/5 PL/SQL: statement ignored
6/5 PLS-00363: expression "NUMAR" cannot be used as a target of assignment
6/5 PL/SQL: statement ignored
Why those who can not be null? This package is just for test...
Thank you!Given that you do not specify the mode of the three parameters of my_proc procedure, Oracle takes the default value, which is in. You will need to define as OUT.
CREATE OR REPLACE PACKAGE BODY OSAPI_NI as procedure my_proc(SID OUT number, cod_prefix OUT varchar2, numar OUT varchar2) is begin SID := null; cod_prefix := null; numar := null; end; end OSAPI_NI;
-
Get the error code (50) while the restore / update
Hello.
I recently had a problem with my iPhone 5 c whose parameters of the carrier completely dropped. I was recommended by my carrier themselves to restore the iPhone via iTunes to recover the carrier settings. Doing this, I was shocked to see "the iPhone"iPhone"could not be restored. An unknown error occurred (50). "and does everytime I try to restore it. It is now stuck in recovery mode!
I have done through my Macbook and had this message and by Toshiba laptop my father, I got a code (-1) in the same game. The bar on the iPhone is about 60% and then freezes here until you remove it from the computer. He seems to always stop to check the firmware.
I tried everything I found online (an another USB / firewall from / date iTunes) and none have got any further. Anyone recommend anything else?
Thanks for reading,
Mitch
Assuming that the phone has never been jailbroken, take it to an Apple store.
-
Error in deployment while the app for anroid enumaltor
Hi, I followed a procedure,
and I got this error while deploying to enumaltor-
[21: 12:34] run command line: ['C:\adt-bundle-windows-x86_64-20130729\adt-bundle-windows-x86_64-20130729\sdk\platform-tools\dx.bat', - dex, - debug, - keep-classes, - output, 'C:\JDeveloper\mywork\mobileApp\deploy\ADF_mobile_native_archive_1\classes.dex', 'C:\JDeveloper\mywork\mobileApp\deploy\ADF_mobile_native_archive_1\classes', 'C:\JDeveloper\mywork\mobileApp\deploy\ADF_mobile_native_archive_1\framework\build\jar\AND_ksoap.jar', 'C:\JDeveloper\mywork\mobileApp\deploy\ADF_mobile_native_archive_1\framework\build\jar\Container.jar"'C:\JDeveloper\mywork\mobileApp\deploy\ADF_mobile_native_archive_1\framework\ build\jar\IDMMobileSDK.jar', 'C:\JDeveloper\mywork\mobileApp\deploy\ADF_mobile_native_archive_1\framework\build\jar\logging_dalvik_release.jar', 'C:\JDeveloper\mywork\mobileApp\deploy\ADF_mobile_native_archive_1\framework\build\jar\phonegap.jar', 'C:\JDeveloper\mywork\mobileApp\deploy\ADF_mobile_native_archive_1\framework\build\jar\vmchannel_dalvik_release.jar', 'C:\adt-bundle-windows-x86_64-20130729\adt-bundle-windows-x86_64-20130729\sdk\extras\google\gcm\gcm-client\dist\gcm.jar']
[21: 12:34] 'C:\Windows\system32\java.exe' is not recognized as an internal or external, order
[21: 12:34] operable program or batch file.
[21: 12:34] command-line execution failed (return code: 1).
[21: 12:34] run command line: '»--dex--debug--keep-classes--sortie C:\adt-bundle-windows-x86_64-20130729\adt-bundle-windows-x86_64-20130729\sdk\platform-tools\dx.bat 'C:\JDeveloper\mywork\mobileApp\deploy\ADF_mobile_native_archive_1\classes.dex' 'C:\JDeveloper\mywork\mobileApp\deploy\ADF_mobile_native_archive_1\classes' 'C:\JDeveloper\mywork\mobileApp\deploy\ADF_mobile_native_archive_1\framework\build\jar\AND_ksoap.jar' 'C:\JDeveloper\mywork\mobileApp\deploy\ADF_mobile_native_archive_1\framework\build\jar\Container.jar' "C:\JDeveloper\mywork\mobileApp\deploy\ADF_mobile_native_archive_1\framework\build\jar\IDMMobileSDK.jar ' '" C:\ JDeveloper\mywork\mobileApp\deploy\ADF_mobile_native_archive_1\framework\build\jar\logging_dalvik_release.jar' 'C:\JDeveloper\mywork\mobileApp\deploy\ADF_mobile_native_archive_1\framework\build\jar\phonegap.jar' 'C:\JDeveloper\mywork\mobileApp\deploy\ADF_mobile_native_archive_1\framework\build\jar\vmchannel_dalvik_release.jar' 'C:\adt-bundle-windows-x86_64-20130729\adt-bundle-windows-x86_64-20130729\sdk\extras\google\gcm\gcm-client\dist\gcm.jar '.
[21: 12:34] undeployment.
[21: 12:34] - incomplete deployment.
What is problem.please tell me...
solved. its 64-bit computer problem.
Java is deployed in c:windows/system32/java.exe in 64 bit machine... its something sysWow file.
I copied c:windows/system32/java.exe java.exe and place in sysWow resolved folder.problem.
Thank you all a response fr...
-
Error-603 occurred While Building DLL under Windows XP and LabVIEW 8.6.1
Problem:
I am creating a DLL in Windows XP and LabVIEW 8.6.1 and I get the error-603.Error-603 to the DLL of the building.
A component required for the Application Builder does not support the required functionality. This could have been caused by an older version of LabVIEW installation after installing this version. To correct this problem, reinstall the latest version of LabVIEW.Possible reasons:
LabVIEW: Specified key or value does not exist.
I reinstalled my LabVIEW 8.6.1, but the problem still occurred.
What can I do to fix this?
Reinstall, which is suggested here too
-
* Original title: error d 8028801 on win 7 64 bit
I am more able to run as administrator on my cpu. unregistered lib.
Cannot execute vbs slmgr error code 22 line d 802801
Hello Arnold,.
I would like to know more information about the issue. Please, answer the following questions to help you best.
- When you get this error message?
- Why you run the command slmgr vbs?
- Were there recent changes made on the computer before the show?
I wish that you check out the links for more information on Activation:
Activate Windows 7 on this computer
Activate Windows 7: frequently asked questions
How to contact a Microsoft Product Activation Center by phone
Please get back to us with the above information help you further.
-
Disk error when you exit the Portege M100 in standby mode
Hello all :)
Have a Portege M100 for general use with WXP Pro installed.
Recently decided to upgrade to a DVD - rom DVD burner, then bought a Sony DW-Q250A burner.
Installed and it worked, but I continue having problems when the computer wakes from sleep, I get the message "ERROR #1 IDE", while the system reboots without additional probs in windowsThe problem is, once this happens, the DVD player then disappears from the window 'my computer' and is not visible in the "Device Manager", until I remove the disc, back up and then analyze for pop. "p in Device Manager devices, it reappears as nothing has happened."
I thought it might have been a conflict with the IDE bus (ie the two - disk HARD & DVD - disks configured as master) so I put a rider on the HARD disk to make the slave drive (which looks like to mean a change of firmware on the DVD drive for this) but it just created more probs... Then I got a message "ERROR of IDE #0" extra when I did and the machine would not boot from the HARD drive.Any thoughts would be welcome? :|
Mark
Hi mate,
"first of all I would like to explain the IDE #0 error: it s quite understandable given that the HARD drive is the * FIRST * player of all and must stand the * FIRST" by car, which means that you jumper shouldn´t to a slave drive. It must be a master, otherwise, as in your case, the boot of won´t machine.
in
So you have 2 IDE channels (primary and secondary IDE channel), and each channel has a master and a slave. Apart from the HARD drive that is located on the main channel, your DVD player is naturally on the secondary channel configured as the master drive.
Here´s a bit 'image': D to explain it:-> Primary channel-> Master = HARD drive
-> Slave = nothing-> Secondary channel-> Master = DVD
-> Slave = nothingRegarding your problem:
I have no definitive solution for you, but I can give you some advice. First download the latest BIOS for your machine and upgrade to the latest version. Then download the latest drivers and install them. After that, look for an update of the firmware of your player of DVD and last but no less check the database of microsoft for known issues as any of the similar issues are known for me with drives toshiba toshiba machines.
Would be worthy to try
:)
See you soon
-
Error code 1603 in the middle of the installation of FSX
Original title: error code 1603
When idown load fsx I get the error in the middle of the installation
error code 1603
I have uninstall my fsx and try to reinstall
but get the messege
can someone please
Hi boela oosthuizen.
1. How do you try to install the game?
This error occurs when Setup could not find or could not read the language specific setup resource .dll.
If you use a CD, then clean the CD or the DVD. To do this, use a disc cleaning kit. Or gently wipe the silver side of the disc with a soft and Lint cotton cloth. Do not use cloth of paper which can scratch the plastic and leave streaks. When you clean the disc, wipe from the center of the disc outward. Do not use a circular motion. If the problem persists, clean the disc with a damp cloth or a commercial CD or DVD cleaning solution. Dry the disc thoroughly until you insert the disc in the drive.
If the problem persists, follow all the steps in the link below to fix the problem
http://support.Microsoft.com/kb/258496Hope this information is useful.
Jeremy K
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think.If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.
-
I have the error 20 code during the installation of update In Design
I got em to install updates. Signed in and hurry to install PS but it went to install In Design, which stopped at halfway through with the error 20 code. I pressed the help link and was scrolling of error codes, but had to go back as noted not error code. This lost me the list of error codes and I can't come back.
What does the error 20 code and I also want to install LR and will be updated to Br I still have problems?
is this exit code 20?
If so, of the log of Installation and launch errors | CS5, CS5.5, CS6
If not, attach a screenshot of the error. That is to say, restart your computer and try again to update. You can even get an error on another attempt.
Maybe you are looking for
-
How to identify my laptop model?
Hello. I recently bought a used laptop, Toshiba Satellite A10. Now I wonder, how to identify the model number? The sticker on it says Model PSA10E-00KWY-SW(The "SW" is probably because she's Swedish. The zeros are perhaps o) But when I look for stuff
-
How to edit album information in Windows Media Player
Change the Player added 11 songs title: 12 albums from a media. How can I change the news so the list of songs from the appropriate album. Media Player includes now 90 songs as an album - unknown. I want to separate songs in the correct albums. I c
-
HP DC7700 SFF does not turn on
I bought a HP DC7700 and is not turning on. I was wondering if there is a way to distirnguish if the fault is with the motherboard or the power supply? See you soon
-
Problem receiving fax on new 6600
My new 6600 fax works very well on my phone line until I have add a telephone with answering machine. Then it tries to connect but fails. Phone service is through a router broadband from comcast. He worked for several years until I'm too new broadb