URGENT : Error PLS-00404 on wrapping
Hi,
I am trying to wrap a PL/SQL procedure included a UPDATE stmt.
with a cursor for update nowait:
create or replace PROCEDURE XXXXX IS
x varchar2(200);
cursor c is select * from XAD$_MODULE for update nowait;
BEGIN
update XAD$_MODULE set modul='XXX' where current of c;
END;
/It works fine but I am getting the error :
PLS-00404: Cursor C must declared with
UPDATE FOR before used with CURRENT OF ..
Please help me,
Regards,
Friedhold
I cannot reproduce your error with Oracle 10.2.0.1.0:
SQL>
SQL> select * from v$version;
BANNER
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
SQL>
SQL> drop table xm;
Table dropped.
SQL> create table xm (x int, m varchar2(200));
Table created.
SQL> insert into xm values (1, '0');
1 row created.
SQL> commit;
Commit complete.
SQL>
SQL> create or replace procedure ucc IS
2 x varchar2(200);
3 cursor c is select * from xm for update nowait;
4 rwm xm%rowtype;
5 BEGIN
6 open c;
7 fetch c into rwm;
8 update xm set m='XXX' where current of c;
9 close c;
10 commit;
11 END;
12 /
Procedure created.
SQL> show errors
No errors.
SQL>
SQL> exec ucc;
PL/SQL procedure successfully completed.
SQL>
SQL> select * from xm;
X
M
1
XXX
SQL>
SQL> exitWhich is your Oracle version ?
Can set up a small SQL script to reproduce your problem ?
Similar Messages
-
WKSYS. Packages error PLS-00753
After full import:
impdp DIRECTORY=DATAPUMP_IMPORT DUMPFILE=orcl.dmp FULL=y LOGFILE=import.log
wksys. has many package bodies that import with error PLS-00753 malformed or currupted wrapped unit..
how do I fix this.. what is WKSYS is it part of apex?Dear Merlin128,
There may be invalid objects on the database. What you may do is you can run the utlrp.sql script under the $ORACLE_HOME/rdbms/admin folder and see if you had any invalid objects that has been validated with the script.
Oracle Error :: PLS-00753
malformed or corrupted wrapped unit
Cause
The format of the wrapped unit being compiled is not understood by the compiler. This may be because the unit was edited or modified after it was wrapped.
Action
Rewrap the unit.IF the problem persists, rewarp the unit that has been affected.
http://www.dba-oracle.com/t_wrap_utility.htm
Hope That Helps.
Ogan -
URGENT : Error: nca_connect_server: cannot communicate host ...on port....
Platform :
front end - Forms6i
App Server - Oracle 9iAS
Testing tool - Mercurry Load Runner 8.0
Database - Oracle 9i
Hi Gurus,
I am trying to run a script in Load runner but its always coming out by following error message -
vuser_init.c(63): Warning: ifError expired (5) during NCA handshake,
vuser_init.c(63): Warning: ifError expired (5)
vuser_init.c(63): Error: nca_connect_server: cannot communicate with host 202.46.209.42 on port 7778
Abort was called from an action.
forms url which used in test script is running fine without any error with same port, I am wondering why it is returning error with Load Runner ?
Quick help on pinpointing the issue will be highly appreciated, Following is the Loadrunner script m using -
vuser_init()
web_set_max_html_param_len("1024");
web_url("f6isrvl",
"URL=http://202.46.209.42:7778/f6i/f6isrvl?config=devjp10_en",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=../forms60java/f60web.jar", "Referer=", ENDITEM,
"Url=../forms60java/FImageBean.jar", "Referer=", ENDITEM,
"Url=../forms60java/images.jar", "Referer=", ENDITEM,
LAST);
web_url("Registry.dat",
"URL=http://202.46.209.42:7778/forms60java/oracle/forms/registry/Registry.dat",
"Resource=0",
"RecContentType=text/plain",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
LAST);
web_reg_save_param("NCAJServSessionId",
"LB=",
"RB=",
"Search=Noresource",
LAST);
web_url("f6isrvl_2",
"URL=http://202.46.209.42:7778/f6i/f6isrvl?config=devjp10_en&acceptLanguage=en-us&ifcmd=startsession",
"Resource=0",
"RecContentType=text/plain",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTML",
EXTRARES,
"Url=f6ilsnr/?JServSessionIdf6i=i7yjfl33c1.f45nez95eiGIpR1vp2TD/knGnluImQXHcALJmQ5Go6XNr3CSa30R&ifcmd=getinfo&ifhost=MILDH0417&ifip=10.81.6.127", "Referer=", ENDITEM,
"Url=../forms60java/oracle/ewt/dataSource/OneDDataSourceListener.class", "Referer=", ENDITEM,
"Url=../forms60java/oracle/ewt/dataSource/OneDDataSource.class", "Referer=", ENDITEM,
"Url=../forms60java/oracle/ewt/dataSource/ArrayOneDDataSource.class", "Referer=", ENDITEM,
"Url=../forms60java/oracle/ewt/dataSource/AbstractOneDDataSource.class", "Referer=", ENDITEM,
"Url=../forms60java/oracle/ewt/dataSource/OneDDataSourceAdapter.class", "Referer=", ENDITEM,
"Url=../forms60java/oracle/ewt/dataSource/OneDDataSourceEvent.class", "Referer=", ENDITEM,
LAST);
nca_set_connect_opt(SCALE_INFO, 8, 20);
nca_set_connect_opt(REQUIRED_LIST, 0);
nca_connect_server("202.46.209.42", "7778", "module=ulgprc_em_100_01_c.fmx userid=dbk/dbk@dbkls05 ORA_USER=devjp10 USR_LANG=ENG");
nca_set_window("Login");
nca_edit_set("27", "SSC");
nca_obj_type("27", '\t', 0);
nca_edit_set("30", lr_decrypt("44b61ad9b8d2295c3768adc952f4"));
nca_button_press("32");
nca_message_box_press("Forms", 2);
nca_menu_select_item("SSC", "Lending;Underwriting");
nca_set_window(" (Underwriting)(Pending Request : 0)");
nca_button_set("386", 1);
nca_menu_select_item(" (Underwriting)(Pending Request : 0)", "Edit;Exit");
nca_set_window("SSC");
nca_menu_select_item("SSC", "File;Exit");
return 0;
Execution Log
Virtual User Script started
Starting action vuser_init.
vuser_init.c(12): web_set_max_html_param_len was successful [MsgId: MMSG-26392]
vuser_init.c(14): Downloading resource "http://202.46.209.42:7778/forms60java/f60web.jar" (specified by argument number 9) [MsgId: MMSG-26577]
vuser_init.c(14): Downloading resource "http://202.46.209.42:7778/forms60java/FImageBean.jar" (specified by argument number 12) [MsgId: MMSG-26577]
vuser_init.c(14): Downloading resource "http://202.46.209.42:7778/forms60java/images.jar" (specified by argument number 15) [MsgId: MMSG-26577]
vuser_init.c(14): web_url("f6isrvl") was successful, 1882891 body bytes, 1386 header bytes, 12 chunking overhead bytes [MsgId: MMSG-26385]
vuser_init.c(27): web_url("Registry.dat") was successful, 4117 body bytes, 367 header bytes [MsgId: MMSG-26386]
vuser_init.c(36): Registering web_reg_save_param was successful [MsgId: MMSG-26390]
vuser_init.c(42): Downloading resource "http://202.46.209.42:7778/f6i/f6ilsnr/?JServSessionIdf6i=i7yjfl33c1.f45nez95eiGIpR1vp2TD/knGnluImQXHcALJmQ5Go6XNr3CSa30R&ifcmd=getinfo&ifhost=MILDH0417&ifip=10.81.6.127" (specified by argument number 9) [MsgId: MMSG-26577]
vuser_init.c(42): Downloading resource "http://202.46.209.42:7778/forms60java/oracle/ewt/dataSource/OneDDataSourceListener.class" (specified by argument number 12) [MsgId: MMSG-26577]
vuser_init.c(42): Downloading resource "http://202.46.209.42:7778/forms60java/oracle/ewt/dataSource/OneDDataSource.class" (specified by argument number 15) [MsgId: MMSG-26577]
vuser_init.c(42): Downloading resource "http://202.46.209.42:7778/forms60java/oracle/ewt/dataSource/ArrayOneDDataSource.class" (specified by argument number 18) [MsgId: MMSG-26577]
vuser_init.c(42): Downloading resource "http://202.46.209.42:7778/forms60java/oracle/ewt/dataSource/AbstractOneDDataSource.class" (specified by argument number 21) [MsgId: MMSG-26577]
vuser_init.c(42): Downloading resource "http://202.46.209.42:7778/forms60java/oracle/ewt/dataSource/OneDDataSourceAdapter.class" (specified by argument number 24) [MsgId: MMSG-26577]
vuser_init.c(42): Downloading resource "http://202.46.209.42:7778/forms60java/oracle/ewt/dataSource/OneDDataSourceEvent.class" (specified by argument number 27) [MsgId: MMSG-26577]
vuser_init.c(42): Warning -26652: Response body length (96) does not match the Content-Length header specification (95) for "http://202.46.209.42:7778/f6i/f6isrvl?config=devjp10_en&acceptLanguage=en-us&ifcmd=startsession" [MsgId: MWAR-26652]
vuser_init.c(42): web_url("f6isrvl_2") highest severity level was "warning", 4459 body bytes, 3017 header bytes [MsgId: MMSG-26388]
vuser_init.c(59): nca_set_connect_opt("SCALE_INFO")
vuser_init.c(61): nca_set_connect_opt("REQUIRED_LIST")
vuser_init.c(63): Warning: ifError expired (5) during NCA handshake,
vuser_init.c(63): Warning: ifError expired (5)
vuser_init.c(63): Error: nca_connect_server: cannot communicate with host 202.46.209.42 on port 7778
Abort was called from an action.
TIA,
SheileshWell, the obvious question is what does 'mail.wbe-pli.com' translate to on the machine?
Does it translate to your public IP address, in which case your traffic has to go out through your router and come back in? In addition to not being ideal, that's also not supported by a number of different routers (they can't handle NAT traffic coming back in from the private network).
In most cases the solution is to setup internal DNS so that your hostname maps to the internal address of your server, not the external one.
In this case, though, you could also configure Mail.app to use 'localhost' for the mail server, rather than 'mail.wbe-pli.com'. That will enable it to talk to the server running on the local system. -
1. create table t1
(t1ID int,
t1nam varchar2(33)
2. create or replace view t1t2t3
t1id, t1name, t2id, t2nam, t2cty, t2st, aid, aname, bid, bname, t3id, t3nam
as
select * from t1, t2, t1 a, t1 b, t3
where t1.t1ID = t2.id(+)
and T2.CTY = a.t1ID(+)
and t2.sty = b.t1ID(+)
and t1.t1ID = t3.t3id(+)
3. CREATE OR REPLACE TRIGGER t1t2t3
INSTEAD OF INSERT or update
ON t1t2t3
BEGIN
insert into t1
values(:new.t1ID, :new.t1nam);
END t1t2t3;
Get error:
[Error] PLS-00049 (6: 19): PLS-00049: bad bind variable 'NEW.T1NAM'
Pls advise. I am using Toad.
Thanks.tnam1 not belongs to t1t2t3.
:new should be used to te columns of the table on which you are writing the trigger.
Here i think t1t2t3 has t1name field you have to use :new.t1name instead of :new.t1nam(which belongs to table t1) -
Getting error PLS-00307: too many declarations while instantiating object.
Hi,
I'm using oracle 10.2.0.4.0
I've created an object obj_bsk as follows:
create or replace type obj_bsk as object
(batch_set_key varchar2(64),
constructor function obj_bsk
return self as result,
constructor function obj_bsk(p_batch_set_key in varchar2)
return self as result,
member procedure display_batch_set_key
and object body as
create or replace type body obj_bsk as
constructor function obj_bsk
return self as result is
begin
self.batch_set_key := sys_guid();
return;
end;
constructor function obj_bsk (p_batch_set_key varchar2)
return self as result is
begin
self.batch_set_key := p_batch_set_key;
return;
end;
member procedure display_batch_set_key is
begin
dbms_output.put_line('batch_set_key is:' || self.batch_set_key);
end;
end;
Then I've created a package test_obj as follows:
specification:
create or replace package test_obj is
-- Author : TSHARMA
-- Created : 31/01/2012 10:32:37
-- Purpose : to test objects
my_bsk obj_bsk;
g_batch_set_key varchar2(64);
procedure show_obj_val;
end test_obj;
body:
create or replace package body test_obj is
procedure show_obj_val is
begin
my_bsk.display_batch_set_key();
end;
begin
-- Initialization
if (g_batch_set_key is not null) then
my_bsk := obj_bsk(g_batch_set_key);
else
my_bsk := obj_bsk();
end if;
end test_obj;
When I'm compiling the package I'm getting following error:
Compilation errors for PACKAGE BODY TSHARMA.TEST_OBJ
Error: PLS-00307: too many declarations of 'OBJ_BSK' match this call
Line: 12
Text: my_bsk := obj_bsk(g_batch_set_key);
Error: PL/SQL: Statement ignored
Line: 12
Text: my_bsk := obj_bsk(g_batch_set_key);
Can anyone please explain why oracle is viewing it as too many call for constructor when both constructors are different.
and how to resolve the issue.
Thanks
TarunI've solved the problem. Though it is strange.
The error occurred because I'm using p_batch_set_key as parameter constructor.
i.e. constructor function obj_bsk(p_batch_set_key in varchar2)
return self as result,
once I changed it to the same name as variable name in object it compiled fine.
i.e constructor function obj_bsk(batch_set_key in varchar2)
return self as result,
It is very strange. Can anyone plesae explain why the parameter name should be same as variable name in object.
Thanks
Tarun -
Hi,
I have a problem with use SDO_NN function in a procedure. In case that I use SDO_NN in a SELECT command, it works. In case that I create an anonymous PL/SQL block, it works. But when I create a procedure, it doesn't work and there is an error: ERROR: PLS-00707: unsupported construct or internal error [2603].
Here is the PL/SQL block, that works:
BEGIN
INSERT INTO K3_BlizkeDFB(SO1, SO2, VZDALENOST)
SELECT distinct
ISO.kod AS SO1, SO.kod AS SO2, MDSYS.SDO_NN_DISTANCE(1) AS VZDAL
FROM StavebniObjektDFB SO, StavebniObjektDFB_INDEX ISO
WHERE SDO_NN(ISO.geom, SO.geom,
'sdo_num_res=4', 1) = 'TRUE'
AND ISO.kod<>SO.kod
AND MDSYS.SDO_NN_DISTANCE(1)<=2;
END;
Here is an attempt to create a procedure that doesn't work:
CREATE OR REPLACE PROCEDURE K1_BlizkeDFB AS
BEGIN
INSERT INTO K3_BlizkeDFB(SO1, SO2, VZDALENOST)
SELECT distinct
ISO.kod AS SO1, SO.kod AS SO2, MDSYS.SDO_NN_DISTANCE(1) AS VZDAL
FROM StavebniObjektDFB SO, StavebniObjektDFB_INDEX ISO
WHERE SDO_NN(ISO.geom, SO.geom,
'sdo_num_res=4', 1) = 'TRUE'
AND ISO.kod<>SO.kod
AND MDSYS.SDO_NN_DISTANCE(1)<=2;
END;
Can someone explain, what's wrong?
Thanks
JindraHi Jindra,
Googling your error message says that this is sqldeveloper issue. You can verify this by compiling your procedure with sqlplus. Sounds like you need to update your software.
Cheers,
Paul -
Abap runtime error pls clarify
hi experts,
when i am opening pa30 screen i am getting always abap runtime error pls tell me how to rectify it.Hi,
The transaction PA30 contains the Object oriented programming. Please check your SAPGui have latest patch updated.
For identifying the error reason. you need to paste initial page of your short dump here.
aRs -
Hi everybody. I wrote de following type
create or replace TYPE ALMACEN AS OBJECT
id_almacen number(10),
descripcion varchar2(40),
existencias number(6),
precio number(4),
member function movimiento (p_num number) return boolean
create or replace TYPE BODY ALMACEN AS
member function movimiento (p_num number) return boolean AS
v_inf boolean;
n number(6);
BEGIN
if self.existencias+p_num>=0 then
self.existencias:=existencias+p_num;
return TRUE;
else return FALSE;
end if;
END movimiento;
END;
I have Oracle 11g release I.
In previous releases it worked, but now SQLDeveloper marks
self.existencias:=existencias+p_num;
Error PLS 00363 expression "string" cannot be used as an assignment target in sentence
Please, What's wrong?
Thanking in advanceHi,
Not quite a PL/SQL XML question but anyway...
Since the member function modifies the object instance, the implicit argument "self" must be declared explicitly as "IN OUT" :
member function movimiento (self in out nocopy almacen, p_num number) return boolean -
Error PLS-00355 occurs when open cursor in procedure
Hello everybody,
I have a problen that really drives me mad:
Whenever I try to compile the following procedure, the Error "PLS-00355: use of pl/sql table not allowed in this context" occurs but I can't see what is wrong. I hope the wisdome of the community will help to solve the problem.
Here is the code:
CREATE or REPLACE PROCEDURE data_year(study_year IN NUMBER) AS
sep CONSTANT CHAR := ';';
CURSOR cursor_year(year_of_interest NUMBER) IS
select
BBS_CONDITIONS.COUNTRYNUM as country,
BBS_CONDITIONS.STATENUM as state,
BBS_CONDITIONS.ROUTE as route,
BBS_ROUTES.LATITUDE as lat,
BBS_ROUTES.LONGITUDE as lon,
BBS_SUMMARY.AOU as aou,
BBS_SPECIES.ENGLISH_COMMON_NAME as name,
BBS_SPECIES.MIGRATION_TYPE as migtype,
BBS_SUMMARY.SPECIESTOTAL as count,
BBS_CONDITIONS.MONTH as smonth,
BBS_CONDITIONS.STARTTIME as starttime,
BBS_CONDITIONS.ENDTIME as endtime,
BBS_CONDITIONS.RPID as rpid,
BBS_CONDITIONS.ASSISTANT as assistant
from BBS_SPECIES,
BBS_ROUTES,
BBS_SUMMARY,
BBS_CONDITIONS
where BBS_ROUTES.ROUTE = BBS_CONDITIONS.ROUTE
and BBS_ROUTES.STATENUM = BBS_CONDITIONS.STATENUM
and BBS_ROUTES.COUNTRYNUM = BBS_CONDITIONS.COUNTRYNUM
and BBS_SPECIES.AOU = BBS_SUMMARY.AOU
and BBS_CONDITIONS.YEAR = BBS_SUMMARY.YEAR
and BBS_CONDITIONS.ROUTE = BBS_SUMMARY.ROUTE
and BBS_CONDITIONS.STATENUM = BBS_SUMMARY.STATENUM
and BBS_CONDITIONS.COUNTRYNUM = BBS_SUMMARY.COUNTRYNUM
and BBS_SPECIES.CLASS_ID = 0
and BBS_CONDITIONS.YEAR = year_of_interest
order by country, state, route, migtype, aou;
rec_year cursor_year%ROWTYPE;
i NUMBER := 1;
TYPE table_year_type IS TABLE OF cursor_year%ROWTYPE;
table_year table_year_type;
BEGIN -- Begin of procedure data_year
table_year := table_year();
OPEN cursor_year(study_year);
LOOP
FETCH cursor_year into rec_year;
EXIT WHEN cursor_year%NOTFOUND;
table_year.EXTEND(1);
table_year(i) := rec_year;
i := i+1;
END LOOP;
CLOSE cursor_year;
DBMS_OUTPUT.PUT_LINE('country' || sep || 'state' || sep || 'route' || sep || 'lat' || sep || 'lon'
|| sep || 'aou' || sep || 'name' || sep || 'migtype' || sep || 'count' || sep || 'month' || sep
|| 'starttime' || sep || 'endtime' || sep || 'rpid' || sep || 'assistant');
FOR i in table_year.FIRST..table_year.LAST LOOP
DBMS_OUTPUT.PUT_LINE(TO_CHAR(table_year(i).country) || sep || TO_CHAR(table_year(i).state) ||
sep || TO_CHAR(table_year(i).route) || sep || TO_CHAR(table_year(i).lat) || sep ||
TO_CHAR(table_year(i).lon) || sep || TO_CHAR(table_year(i).aou) || sep ||
table_year(i).name || sep || TO_CHAR(table_year(i).migtype) || sep ||
TO_CHAR(table_year(i).count) || sep || TO_CHAR(table_year(i).smonth) || sep ||
TO_CHAR(table_year(i).starttime) || sep || TO_CHAR(table_year(i).endtime) || sep ||
TO_CHAR(table_year(i).rpid) || sep || TO_CHAR(table_year(i).assistant));
END LOOP;
END; -- End of procedure data_year
Thanks ahead, TCDoes it give a line number? I'm wondering if it might be
table_year := table_year();
that's causing the problem. Try removing it and see.
Even better, change your code to
TYPE table_year_type IS TABLE OF cursor_year%ROWTYPE INDEX BY BINARY_INTEGER;
table_year table_year_type;
BEGIN
OPEN cursor_year (study_year);
FETCH cursor_year BULK COLLECT INTO table_year;
CLOSE cursor_year;
...Edited by: Dave Hemming on Nov 21, 2008 9:51 AM -
Encountered an error "PLS-00103: Encountered the symbol "CREATE" when expec
HI All,
I am creating a procedure and trying to use temp table...
Here is the code":
PROCEDURE P_PARENT_TREE
topic_id_in IN NUMBER,
topic_hierarchy_details_out OUT 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
FROM topic_children
WHERE children_id = topic_id_in;
BEGIN
OPEN c_child_level;
FETCH c_child_level INTO temp_children_level,temp_topic_id ;
CLOSE c_child_level;
CREATE TEMPORARY TABLE IF NOT EXISTS topic_child
(t_topic_id NUMBER, t_children_id NUMBER, children_seq NUMBER);
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
FROM topic_children
WHERE children_id = temp_topic_id);
temp_children_level := temp_children_level - 1;
END LOOP;
OPEN topic_hierarchy_details_out FOR
select * from topic_child;
END P_PARENT_TREE;
END TOPIC_PKG;
getting the error "PLS-00103: Encountered the symbol "CREATE" when expec"...
any idea why? or may be is there any other way to write this querysomething like
select connect_by_root child_topic ||sys_connect_by_path (topic, '>') path
from test
where connect_by_isleaf = 1
start with child_topic = 'aa4'
connect by child_topic = prior topicas in
SQL> with test as
2 (
3 select 0 sq, 'aa ' topic, 'aa1' child_topic from dual union all
4 select 1 sq, 'aa1' topic, 'aa2' child_topic from dual union all
5 select 3 sq, 'aa2' topic, 'aa3' child_topic from dual union all
6 select 4 sq, 'aa3' topic, 'aa4' child_topic from dual
7 )
8 select connect_by_root child_topic ||sys_connect_by_path (topic, '>') path
9 from test
10 where connect_by_isleaf = 1
11 start with child_topic = 'aa4'
12 connect by child_topic = prior topic
13 /
PATH
aa4>aa3>aa2>aa1>aa -
While compiling one package i am getting the error>
PLS-00216: NUMBER precision constraint must be in range (1 .. 38)
The declaration is:
lServerImportRetVal number(40);
Database is Oracle10gdb.
Do i resize the variable to 38... is that advisable.?last option is to change... Your only option is to change: Oracle supports a maximum of 38 digits.
(Why do you think you need 40 digits? What astronomical number are we talking about?) -
Error PLS-00306: wrong number or types of arguments in call to
I am getting the following Error when calling stored Procedure, I have tried with Last Parameter PRESULT and WITHOUT IT, it fails in both the instance.
=======================================================================
"System.Data.OracleClient.OracleException: ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'UPDATECOTRACKING'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
=======================================================================
signature of Stored Procedure is as follow
(pmaster_key IN sca_costtrackinglog.master_key%type,
pdoc_master_key IN sca_costtrackinglog.master_key%type,
pfrenumber IN sca_costtrackinglog.fre_number%type,
pnotice1 IN sca_costtrackinglog.notice1%type,
pnotice2 IN sca_costtrackinglog.notice2%type,
padditreceived IN sca_costtrackinglog.additreceived%type,
pfreanticipate IN sca_costtrackinglog.freanticipate%type,
pdateofnot IN sca_costtrackinglog.dateofnot%type,
pdateofmeeting IN sca_costtrackinglog.dateofmeeting%type,
psenttocontractor IN sca_costtrackinglog.senttocontractor%type,
pcouforexecution IN sca_costtrackinglog.couforexecution%type,
pcomments IN sca_costtrackinglog.comments%type,
pcreateby IN sca_costtrackinglog.createby%type,
peditby IN sca_costtrackinglog.editby%type,
presult OUT number) is
This is the Trace of Parameters from actual Call, that fails with above error.
Parameter Name : PMASTER_KEY(Input),Type(AnsiString) Size(26), Value = 000328JYA30008HSWBCK01NYC
Parameter Name : pdoc_master_key(Input),Type(AnsiString) Size(26), Value = 310657KLF30025HSWBCK01NYC
Parameter Name : PFRENUMBER(Input),Type(AnsiString) Size(12), Value = 00015
Parameter Name : PNOTICE1(Input),Type(DateTime) Size(1), Value = 3/25/2010
Parameter Name : PNOTICE2(Input),Type(DateTime) Size(1), Value =
Parameter Name : PADDITRECEIVED(Input),Type(DateTime) Size(1), Value =
Parameter Name : PFREANTICIPATE(Input),Type(DateTime) Size(1), Value =
Parameter Name : PDATEOFNOT(Input),Type(DateTime) Size(1), Value =
Parameter Name : PDATEOFMEETING(Input),Type(DateTime) Size(1), Value =
Parameter Name : PSENTTOCONTRACTOR(Input),Type(DateTime) Size(1), Value =
Parameter Name : pcouforexecution(Input),Type(DateTime) Size(1), Value =
Parameter Name : pcomments(Input),Type(AnsiString) Size(250), Value =
Parameter Name : PCREATEBY(Input),Type(AnsiString) Size(50), Value = NYCSCA\tmpns2
Parameter Name : PEDITBY(Input),Type(AnsiString) Size(50), Value = NYCSCA\tmpns2
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Below is the trace from Data.OracleClient.OracleCommandBuilder.DeriveParameters(Cmd)
Parameter Name : PMASTER_KEY(Input),Type(AnsiString) Size(2000), Value =
Parameter Name : PDOC_MASTER_KEY(Input),Type(AnsiString) Size(2000), Value =
Parameter Name : PFRENUMBER(Input),Type(AnsiString) Size(2000), Value =
Parameter Name : PNOTICE1(Input),Type(DateTime) Size(0), Value =
Parameter Name : PNOTICE2(Input),Type(DateTime) Size(0), Value =
Parameter Name : PADDITRECEIVED(Input),Type(DateTime) Size(0), Value =
Parameter Name : PFREANTICIPATE(Input),Type(DateTime) Size(0), Value =
Parameter Name : PDATEOFNOT(Input),Type(DateTime) Size(0), Value =
Parameter Name : PDATEOFMEETING(Input),Type(DateTime) Size(0), Value =
Parameter Name : PSENTTOCONTRACTOR(Input),Type(DateTime) Size(0), Value =
Parameter Name : PCOUFOREXECUTION(Input),Type(DateTime) Size(0), Value =
Parameter Name : PCOMMENTS(Input),Type(AnsiString) Size(2000), Value =
Parameter Name : PCREATEBY(Input),Type(AnsiString) Size(2000), Value =
Parameter Name : PEDITBY(Input),Type(AnsiString) Size(2000), Value =
Parameter Name : PRESULT(Output),Type(VarNumeric) Size(0), Value =
******************************************************************************************************************In the Oracle database, the body of the package FWA_PRI API, the procedure ValidatePri declares P_PriREc as being :
PAYMENT_REQUEST_IMPORT%ROWTYPE
As you can see above, the DoPri Procedure expects a type p_PriRec as its second argument.
Therefore in my procedure I do the following:
create or replace procedure spMatchPayment is
BEGIN
DECLARE
CURSOR StageCurs IS SELECT * FROM PAYMENT_REQUEST_IMPORT;
p_payment_req_import PAYMENT_REQUEST_IMPORT%ROWTYPE;
BEGIN
OPEN StageCurs();
LOOP
FETCH StageCurs INTO P_payment_req_import;
EXIT WHEN StageCurs%NOTFOUND;
fwa_pri.DoPri(NULL, fwa_pri.DoPri('M',P_PriRec => p_payment_req_import);
END LOOP;
CLOSE StageCurs;
END;
end spMatchPayment;
Now, when I am trying to compile I am getting the Compilation errors for PROCEDURE IMPACT.SPMATCHPAYMENT
Error: PLS-00306: wrong number or types of arguments in call to 'DOPRI'
Line: 16
Text: fwa_pri.DoPri(NULL,P_PriRec => p_payment_req_import);
I don't see what's wrong on my code......HELP!! -
hi my friends, I have this procedure:
PROCEDURE incluir_alterar(
p_id_empresa IN VARCHAR2,
p_id_pessoa_juridica IN VARCHAR2,
p_cnpj IN VARCHAR2,
p_id_tipo_documento IN VARCHAR2,
p_ie IN VARCHAR2,
p_im IN VARCHAR2,
p_razaosocial IN VARCHAR2,
p_fantasia IN VARCHAR2,
p_ddd IN VARCHAR2,
p_telefone IN VARCHAR2,
p_fax IN VARCHAR2,
p_ddd_cel IN VARCHAR2,
p_fone_cel IN VARCHAR2,
p_email IN VARCHAR2,
p_nome_impresso IN VARCHAR2,
p_ramo IN VARCHAR2,
p_fatura_enviada IN VARCHAR2,
p_id_estado_cartao IN VARCHAR2,
p_id_matriz IN VARCHAR2,
p_cliente_categoria IN VARCHAR2,
p_end_extrato_cnv_empresa IN VARCHAR2,
p_agente IN VARCHAR2
IS
v_id_emp NUMBER;
v_encontrou BOOLEAN DEFAULT TRUE;
BEGIN
IF p_id_empresa IS NULL THEN
v_encontrou := FALSE;
ELSE
BEGIN
SELECT id_cliente INTO v_id_emp FROM frota_cliente WHERE id_cliente = p_id_empresa;
EXCEPTION
WHEN NO_DATA_FOUND THEN
v_encontrou:=FALSE;
END;
END IF;
IF NOT v_encontrou THEN
incluir(p_id_cliente => p_id_empresa);
ca_empresa_incluir_alterar(p_id_empresa => p_id_empresa, p_id_pessoa_juridica => p_id_pessoa_juridica,
p_cnpj => p_cnpj, p_id_tipo_documento => p_id_tipo_documento,
p_ie => p_ie, p_im => p_im,
p_razaosocial => p_razaosocial, p_fantasia => p_fantasia,
p_ddd => p_ddd, p_telefone => p_telefone,
p_fax => p_fax, p_ddd_cel => p_ddd_cel,
p_fone_cel => p_fone_cel, p_email => p_email,
p_nome_impresso => p_nome_impresso, p_ramo => p_ramo,
p_fatura_enviada => p_fatura_enviada, p_id_estado_cartao => p_id_estado_cartao,
p_id_matriz => p_id_matriz, p_cliente_categoria => p_cliente_categoria,
p_end_extrato_cnv_empresa => p_end_extrato_cnv_empresa, p_agente => p_agente);
ELSE
ca_empresa_incluir_alterar(p_id_empresa => p_id_empresa, p_id_pessoa_juridica => p_id_pessoa_juridica,
p_cnpj => p_cnpj, p_id_tipo_documento => p_id_tipo_documento,
p_ie => p_ie, p_im => p_im,
p_razaosocial => p_razaosocial, p_fantasia => p_fantasia,
p_ddd => p_ddd, p_telefone => p_telefone,
p_fax => p_fax, p_ddd_cel => p_ddd_cel,
p_fone_cel => p_fone_cel, p_email => p_email,
p_nome_impresso => p_nome_impresso, p_ramo => p_ramo,
p_fatura_enviada => p_fatura_enviada, p_id_estado_cartao => p_id_estado_cartao,
p_id_matriz => p_id_matriz, p_cliente_categoria => p_cliente_categoria,
p_end_extrato_cnv_empresa => p_end_extrato_cnv_empresa, p_agente => p_agente);
END IF;
END;error: PLS-00363: the expression '<expression>' cannot be used as designationMy guess: ca_empresa_incluir_alterar has OUT or IN OUT parameter(s).
As the parameters of incluir_alterar ar declared as IN, they may not be altered,
neither by direct assignment nor by passing them as OUT parameters to a
procedure.
hth, Urs -
I have Firefox 22 installed on a HP Presario Quad 64, running Windows 7 Home Version. Firefox had been running and updating well until I received the latest Security Update (20130618035212) released on the 3rd of June, 2013, and it installed today. After installation the Error: Illegal Operation on Wrapped Native Prototype Object) Pops up several times when first opened, and once or twice on every operation I do, on any page thereafter. I don't know what the reason for this error, or what the update may be badly interacting with. I noticed that there seems to be no way of selectively removing a security update from within Firefox it's-self, can I remove it from windows Add/Remove to see if that's the cause instead of removing the Firefox it's self and re-installing. I haven't had a problem with Firefox for such a long time now that I became far too relaxed in my security of it, that I have to admit it caught me off guard. Any help, or information would be fantastic.
Sincerely
Rick M.Hello,
'''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
''(If you're not using it, switch to the Default theme.)''
* You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
* Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
''Once you get the pop-up, just select "'Start in Safe Mode"''
'''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
Thank you. -
Hi all,
I have a SP, when I try to compile with sqldeveloper I have this error
Error: PLS-00707: unsupported construct or internal error [2603]
If I change "CREATE OR REPLACE PROCEDURE getsimilar AS" with DECLARE (anonymous block) the code work perfectly...
What am I doing wrong?
this is SP
CREATE OR REPLACE PROCEDURE getsimilar AS
id NUMBER;
score NUMBER;
image ORDSYS.ORDImage;
query_signature ORDSYS.ORDImageSignature;
queryimg ORDSYS.ORDIMAGE;
CURSOR getphotos IS
SELECT id, ORDSYS.IMGScore(123) SCORE FROM imgstable WHERE
ORDSYS.IMGSimilar(sign, query_signature,
'color="1.00" shape="1.00" texture="1.00" location="1.00"',20,123) = 1 order by SCORE desc;
BEGIN
queryimg := ORDSYS.ORDIMAGE.init('FILE','BDMVFSUPLOADSEARCHTMP','test.jpeg');
query_signature := ORDSYS.ORDIMAGESIGNATURE.init();
DBMS_LOB.CREATETEMPORARY(query_signature.signature, TRUE);
query_signature.generateSignature(queryimg);
OPEN getphotos;
LOOP
FETCH getphotos INTO id, score;
EXIT WHEN getphotos%NOTFOUND;
DBMS_OUTPUT.PUT_LINE('Image with ID ' || id || ' matches query image. score:' || score);
END LOOP;
CLOSE getphotos;
DBMS_LOB.FREETEMPORARY(query_signature.signature);
END;
Edited by: Reny on 4-apr-2011 6.22Hi
Try creating the procedure without the positional notation in your function call in the cursor (BTW, the positional params should be specified as <param> => <value>, not <param> = <value>). i.e just pass the values to your functional call as shown below and see if it works. Is this what you intend to do?
I also suggest that you try and compile the procedure in SQLPLUS.
CREATE OR REPLACE PROCEDURE getsimilar AS
id NUMBER;
score NUMBER;
image ORDSYS.ORDImage;
query_signature ORDSYS.ORDImageSignature;
queryimg ORDSYS.ORDIMAGE;
CURSOR getphotos IS
SELECT id, ORDSYS.IMGScore(123) SCORE FROM imgstable WHERE
ORDSYS.IMGSimilar(sign, query_signature,
'1.00', '1.00', '1.00','1.00',20,123) = 1 order by SCORE desc;
BEGIN
queryimg := ORDSYS.ORDIMAGE.init('FILE','BDMVFSUPLOADSEARCHTMP','test.jpeg');
query_signature := ORDSYS.ORDIMAGESIGNATURE.init();
DBMS_LOB.CREATETEMPORARY(query_signature.signature, TRUE);
query_signature.generateSignature(queryimg);
OPEN getphotos;
LOOP
FETCH getphotos INTO id, score;
EXIT WHEN getphotos%NOTFOUND;
DBMS_OUTPUT.PUT_LINE('Image with ID ' || id || ' matches query image. score:' || score);
END LOOP;
CLOSE getphotos;
DBMS_LOB.FREETEMPORARY(query_signature.signature);
END;Edited by: GG on Apr 4, 2011 11:25 AM
Edited by: GG on Apr 4, 2011 11:34 AM
Maybe you are looking for
-
IHC payment order finally posted but payment request not created
Hello I created payment order in In house cash IHC automatically from (intercompany) a vendor invoice using idoctype payext. I can see that the payment order in transaction IHC0 has been finally posted. But table PAYRQ is empty. In transaction BF11
-
I'm trying top reinstall Office Home and Student 2010 following a loss of program after a clean boot. I'm told Outlook is not updated. An attempt to install Outlook was unsuccessful. I do have Live Mail. Help
-
MySite Deletion Emails, UPS, People Search Results
SharePoint 2013 We exclude disabled accounts from the UPS for a number of reasons - we don't want the overhead of non-employees, we don't want (requirement) these users to show in people search results, etc. Problem - Managers who receive the MySite
-
Partially Dead Computer for a Hard Drive Dump
So my friend's computer died (kinda) and he was told he needs to dump the hard drive and re-install the OS. However, he would obviously like to save all the things that are on his hard drive, but we haven't been able to boot up onto anything that has
-
I have to enter in a password once the phone goes into "sleep" mode. The "keypad" used to appear so I could enter the password, and that made for easy entry of password. Once I changed my password, the QWERTY keyboard appears now for me to enter in