"ORA-28578: protocol error..." before calling an external procedure
Hello,
Oracle reports this error
Error report:
SQL Error: ORA-29856: error occurred in the execution of ODCIINDEXCREATE routine
ORA-28578: protocol error during callback from an external procedure
29856. 00000 - "error occurred in the execution of ODCIINDEXCREATE routine"
*Cause: Failed to successfully execute the ODCIIndexCreate routine.
*Action: Check to see if the routine has been coded correctly.
when it tries to call an external procedure in order to create a domain index. If I implement ODCIIndexCreate in PL/SQL, it is executed successfully. If I specify that ODCIIndexCreate is implement it an external library, then I get the above error even if the library does not exist on the file system. Does anyone have an idea what might be wrong?
Regards,
Angel Tsankov
This forum is about using the Studio C/C++/Fortran compilers, and programming in those languages. You seem to have a question about using SQL for access to an Oracle database, which is none of the above.
I suggest you try an Oracle database forum. Start here:
https://forums.oracle.com/forums/category.jspa?categoryID=18
Look for a forum that applies to your problem area.
Edited by: Steve_Clamage on Jun 13, 2012 8:42 AM
(Correcting the URL I posted earlier.)
Similar Messages
-
Ore.connect - ORA-28578: protocol error during callback from an external procedure
Hi,
I am having an issue while connecting my ORE client (Rgui) to my oracle instance:
>library(ORE)
Loading required package: OREbase
Attaching package: ‘OREbase’
The following object(s) are masked from ‘package:base’:
cbind, data.frame, eval, interaction, order, paste, pmax, pmin, rbind, table
Loading required package: OREstats
Loading required package: MASS
Loading required package: OREgraphics
Loading required package: OREeda
Loading required package: OREdm
Loading required package: lattice
Loading required package: OREpredict
Loading required package: ORExml
> ore.connect(user="RQUSER", sid="HERA", host="SI-ORACLE-11.polocesena.dir.unibo.it", password="rquser", port=1521, all=TRUE)
Loading required package: ROracle
Loading required package: DBI
Error in .oci.GetQuery(conn, statement, data = data, prefetch = prefetch, :
ORA-28578: protocol error during callback from an external procedure
ORA-06512: at "RQSYS.RQEVALIMPL", line 17
ORA-06512: at "RQSYS.RQEVALIMPL", line 14
ORA-06512: at line 4
However if I check:
> ore.is.connected()
[1] TRUE
But:
> ore.ls()
character(0)
and:
> ore.push(TABLE1)
Error in ore.push(TABLE1) :
error in evaluating the argument 'x' in selecting a method for function 'ore.push': Error: object 'TABLE1' not found
I did not receive error messages during installation.
ORE version: 1.3.1
Rgui version: 2.15.3
Oracle version: 11.2.0.3.0
Installation:
-SERVER
Installed Open source R
Installed ORE Server
Installed ORE Client Supporting Packages
Created the RQUSER and provided him with the necessary privileges
Modified the extproc.ora file setting EXTPROC_DLLS=ONLY
-CLIENT
Installed Oracle DB Client
Installed Open source R
Installed ORE Client
Installed ORE Client Supporting Packages
Did not find any other clue in previous discussions, just one was pretty similar but it came to no resolution.
Thanks,
LorenzoHi Sherry,
tnsnames.ora:
HERA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 137.204.78.85)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = hera)
listener.ora:
# listener.ora Network Configuration File: C:\app\Administrator\product\11.2.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\app\Administrator\product\11.2.0\dbhome_1\bin\oraclr11.dll")
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = si-oracle-11.polocesena.dir.unibo.it)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
ADR_BASE_LISTENER = C:\app\Administrator
extproc.ora:
SET EXTPROC_DLLS=ONLY
Thanks,
Lorenzo -
Rpc error calling an external procedure
I'm having a problem calling an external procedure running on Linux. The setup works using NT and a DLL, but when the function has been converted to a .so library, I get get
ORA-28575: unable to open RPC connection to external procedure agent
Now this is probaly due to my listener config since when starting the listener I get an IPC error:
Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=elvis))
TNS-12224: TNS:no listener
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
Connecting to (ADDRESS=(PROTOCOL=TCP)(Host=elvis)(Port=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 8.0.5.0.0 - Production
Start Date 20-NOV-00 18:06:42
Uptime 0 days 0 hr. 0 min. 6 sec
Trace Level admin
Security OFF
SNMP OFF
Listener Parameter File /home/oracle/ora01/app/oracle/8.0.5/network/admin/listener.ora
Listener Log File /home/oracle/ora01/app/oracle/8.0.5/network/log/listener.log
Listener Trace File /home/oracle/ora01/app/oracle/8.0.5/network/trace/listener.trc
Services Summary...
elvis has 1 service handler(s)
extproc has 1 service handler(s)
The command completed successfully
I'm using Oracle 8.0.5 and RedHat 6.0. The name of machine is elvis and the sid name is elvis as well. Any bright ideas are more than welcome
Benyour listener.ora file has problem!
it should look similiar to:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = elvis)(PORT = 1521))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = <substitute with your oracle home>)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = elvis)
(ORACLE_HOME = <substitute_with_your_oralce_home>)
(SID_NAME = elvis)
please verify with net8 admin guide. you also need to set up tnsnames.ora correctly at client side.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Benjamin Sigursteinsson ([email protected]):
I'm having a problem calling an external procedure running on Linux. The setup works using NT and a DLL, but when the function has been converted to a .so library, I get get
ORA-28575: unable to open RPC connection to external procedure agent
Now this is probaly due to my listener config since when starting the listener I get an IPC error:
Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=elvis))
TNS-12224: TNS:no listener
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
Connecting to (ADDRESS=(PROTOCOL=TCP)(Host=elvis)(Port=1521))
STATUS of the LISTENER<HR></BLOCKQUOTE>
null -
Error Calling an external procedure
I'm calling an external procedure (provided by a third party).
When i invoke it from a client code, it functions.
When I invoke it from PL/SQL code, it gives the following error:
ORA-28576: lost RPC connection to external procedure agent.
The solution in the help file states it could be a timeout problem.
If so, what is the solution to the problem. (I cannot access the source of the DLL subroutine).your listener.ora file has problem!
it should look similiar to:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = elvis)(PORT = 1521))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = <substitute with your oracle home>)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = elvis)
(ORACLE_HOME = <substitute_with_your_oralce_home>)
(SID_NAME = elvis)
please verify with net8 admin guide. you also need to set up tnsnames.ora correctly at client side.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Benjamin Sigursteinsson ([email protected]):
I'm having a problem calling an external procedure running on Linux. The setup works using NT and a DLL, but when the function has been converted to a .so library, I get get
ORA-28575: unable to open RPC connection to external procedure agent
Now this is probaly due to my listener config since when starting the listener I get an IPC error:
Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=elvis))
TNS-12224: TNS:no listener
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
Connecting to (ADDRESS=(PROTOCOL=TCP)(Host=elvis)(Port=1521))
STATUS of the LISTENER<HR></BLOCKQUOTE>
null -
Need Help in expdp for resolving ORA-39127: unexpected error from call
Hi All,
My Environment is -------> Oracle 11g Database Release 1 On Windows 2003 Server SP2
Requirement is ------------> Data Pump Jobs to be completed without any error message.
I am tryring to take export data pump of a schema
Command Used --> expdp schemas=scott directory=data_pump_dir dumpfile=scorr.dmp version=11.1.0.6.0
Export Log Show this details its completed with 2 error messages
Export: Release 11.1.0.6.0 - Production on Saturday, 23 April, 2011 13:31:10
Copyright (c) 2003, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the OLAP option
FLASHBACK automatically enabled to preserve database integrity.
Starting "SYSTEM"."SYS_EXPORT_SCHEMA_01": system/******** schemas=scott directory=data_pump_dir dumpfile=scorr.dmp version=11.1.0.6.0
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 192 KB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
ORA-39127: unexpected error from call to export_string :=SYS.DBMS_CUBE_EXP.schema_info_exp('SCOTT',0,1,'11.01.00.06.00',newblock)
ORA-37111: Unable to load the OLAP API sharable library: (The specified module could not be found.
ORA-06512: at "SYS.DBMS_CUBE_EXP", line 205
ORA-06512: at "SYS.DBMS_CUBE_EXP", line 280
ORA-06512: at line 1
ORA-06512: at "SYS.DBMS_METADATA", line 5980Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
ORA-39127: unexpected error from call to export_string :=SYS.DBMS_CUBE_EXP.schema_info_exp('SCOTT',1,1,'11.01.00.06.00',newblock)
ORA-37111: Unable to load the OLAP API sharable library: (The specified module could not be found.
ORA-06512: at "SYS.DBMS_CUBE_EXP", line 205
ORA-06512: at "SYS.DBMS_CUBE_EXP", line 280
ORA-06512: at line 1
ORA-06512: at "SYS.DBMS_METADATA", line 5980
. . exported "SCOTT"."DEPT" 5.945 KB 4 rows
. . exported "SCOTT"."EMP" 8.585 KB 14 rows
. . exported "SCOTT"."SALGRADE" 5.875 KB 5 rows
. . exported "SCOTT"."ACCTYPE_GL_MAS" 0 KB 0 rows
. . exported "SCOTT"."BONUS" 0 KB 0 rows
Master table "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
Dump file set for SYSTEM.SYS_EXPORT_SCHEMA_01 is:
D:\APP\ADMINISTRATOR\ADMIN\SIPDB\DPDUMP\SCORR.DMP
Job "SYSTEM"."SYS_EXPORT_SCHEMA_01" completed with 2 error(s) at 13:40:08
Please help me to resolve this issue.
Thank you,
ShanHi Shan,
I am getting very similar to yours
"ORA-37111: Unable to load the OLAP API sharable library: (The specified module could not be found."
error message while creating OLAP Analytic Workspace with AWM.
I am creating workspace for the first time, actually following some tutorial to get some knowledge about OLAP)
I see you managed to solve you problem.
I wonder how I can get this MOS DOC 852794.1 - is it possible to get it without going to Metalink?
Thanks in advance for any help.
Regards,
SC -
Hi,
I am trying to export a Schema from 11.2.0.2 and getting the below error on export
ORA-39127: unexpected error from call to export_string :=SYS.DBMS_RMGR_GROUP_EXPORT.GRANT_EXP(12425,1,...)
ORA-06502: PL/SQL: numeric or value error: NULL index table key value
ORA-06512: at "SYS.DBMS_RMGR_GROUP_EXPORT", line 154
ORA-06512: at line 1
ORA-06512: at "SYS.DBMS_METADATA", line 7049
ORA-39127: unexpected error from call to export_string :=
SYS.DBMS_RMGR_GROUP_EXPORT.GRANT_EXP(12424,1,...)
ORA-06502: PL/SQL: numeric or value error: NULL index table key value
ORA-06512: at "SYS.DBMS_RMGR_GROUP_EXPORT", line 154
ORA-06512: at line 1
ORA-06512: at "SYS.DBMS_METADATA", line 7049
ORA-39127: unexpected error from call to export_string :=SYS.DBMS_RMGR_GROUP_EXPORT.GRANT_EXP(12423,1,...)
ORA-06502: PL/SQL: numeric or value error: NULL index table key value
ORA-06512: at "SYS.DBMS_RMGR_GROUP_EXPORT", line 154
ORA-06512: at line 1
ORA-06512: at "SYS.DBMS_METADATA", line 7049
ORA-39127: unexpected error from call to export_string := SYS.DBMS_SCHED_JOB_EXPORT.GRANT_EXP(2003412,1,...)
ORA-01031: insufficient privileges
ORA-06512: at "SYS.DBMS_SCHED_MAIN_EXPORT", line 2296
ORA-06512: at "SYS.DBMS_SCHED_JOB_EXPORT", line 52
ORA-06512: at line 1
ORA-06512: at "SYS.DBMS_METADATA", line 7049
I have searched the forum and found similar errors, but I am struggling to understand the cause and solution.
Forums seem to indicate it may be related to bug 4358907, Re: Datapump export/import object grants given by another user but not sure it is relevant as I can see a ORA-01031: insufficient privileges in this log.
Can you please advise?
ThanksPlease show your export command and read MOS ID: ORA-39127 using datapump exp [ID 451987.1 ]
and check below forms discussion:
https://forums.oracle.com/message/10237007 -
Hi all,
I am getting this erro on a Datapump Schema export on 11.2.0.2:
ORA-39127: unexpected error from call to export_string := SYS.DBMS_RMGR_GROUP_EXPORT.GRANT_EXP(12425,1,...)
ORA-06502: PL/SQL: numeric or value error: NULL index table key value
ORA-06512: at "SYS.DBMS_RMGR_GROUP_EXPORT", line 154
ORA-06512: at line 1
ORA-06512: at "SYS.DBMS_METADATA", line 7049
ORA-39127: unexpected error from call to export_string := SYS.DBMS_RMGR_GROUP_EXPORT.GRANT_EXP(12424,1,...)
ORA-06502: PL/SQL: numeric or value error: NULL index table key value
ORA-06512: at "SYS.DBMS_RMGR_GROUP_EXPORT", line 154
ORA-06512: at line 1
ORA-06512: at "SYS.DBMS_METADATA", line 7049
ORA-39127: unexpected error from call to export_string := SYS.DBMS_RMGR_GROUP_EXPORT.GRANT_EXP(12423,1,...)
ORA-06502: PL/SQL: numeric or value error: NULL index table key value
ORA-06512: at "SYS.DBMS_RMGR_GROUP_EXPORT", line 154
ORA-06512: at line 1
ORA-06512: at "SYS.DBMS_METADATA", line 7049
ORA-39127: unexpected error from call to export_string := SYS.DBMS_SCHED_JOB_EXPORT.GRANT_EXP(2003412,1,...)
ORA-01031: insufficient privileges
ORA-06512: at "SYS.DBMS_SCHED_MAIN_EXPORT", line 2296
ORA-06512: at "SYS.DBMS_SCHED_JOB_EXPORT", line 52
ORA-06512: at line 1
ORA-06512: at "SYS.DBMS_METADATA", line 7049
I believe it requires some specific privileges on DBMS_RMGR_GROUP_EXPORT.
I have found this below explanation Kevin's Blog: SYS.DBMS_RMGR_GROUP_EXPORT.GRANT_EXP but I am not a DBA, so I am not sure what grant needs to be modified.
It also complains of unsufficient privileges on DBMS_SCHED_JOB_EXPORT.GRANT_EXP, but I am not sure who needs what grant.
Could you please advise on how to resolve the issue?
ThanksHi,
Can anyone help if possible please?
Thanks -
Oracle error ORA-39127 unexpected error from call to export_string
Hi
The export for an database encounters the following error .Can someone take a look at the cause please.
Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/PRE_SYSTEM_ACTIONS/PROCACT_SYSTEM
Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/PROCOBJ
ORA-39127: unexpected error from call to export_string :=SYS.DBMS_SERVER_ALERT_EXPORT.SYSTEM_INFO_EXP(1,dynconnect,'11.02.00.02.00',newblock)
ORA-13914: Threshold notification failed.
ORA-06512: at "SYS.DBMS_SERVER_ALERT", line 187
ORA-06512: at "SYS.DBMS_SERVER_ALERT_EXPORT", line 132
ORA-06512: at line 1
ORA-06512: at "SYS.DBMS_METADATA", line 7418
Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/POST_SYSTEM_ACTIONS/PROCACT_SYSTEM
Processing object type DATABASE_EXPORT/SCHEMA/PROCACT_SCHEMA
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/PRE_TABLE_ACTION
RegardsThere are a lot of similar errors on MOS, perhaps you should search through them and see if any apply to you.
What version/patch level are you on? Have you made any grid control threshold modifications? Are you using procobol in an upgraded database?
You might want to go through support for this one. -
ORA-39127: unexpected error from call to
Hi ALL.
11.2.0.3
Is this a bug?
I got error when running expdp system/manager full=yes
ORA-39127: unexpected error from call to "SYS"."DBMS_JVM_EXP_PERMS"."GRANT_SYSPRIVS_EXP"But it works fine on 11.2.0.1
Any ideas and solutions please.....
Thanks a lot,hello,
You may look into the following My Oracle Support Document: DataPump Export (EXPDP) Failed On Identifier SYS.DBMS_JVM_EXP_PERMS Must Be Declared [ID 1095533.1]
According to the document the versions affected are 10gR2 and 11gR1, but, the workaround may solve your issue.
Hope it helps. -
Oracle JBDC error while calling the store procedure
HI All,
I am get one strange error while calling a store procedure which has two parameter in and out.
I am pass the correct XML file which reaches the RDB and then PI receives a exception error message saying:
oracle.rdb.jdbc.common.RdbException: Closed Resultset
where as no error log is availble in RBD for the same.
Can anybody tell me what can be the cause of the error.
Let me know if you requires more information on this.
-adiHi Kiran,
Thanks..
But I am not able to understand you. I am calling a store procedure not a table. and we not doing anything in the store procedure except return one constant value in Out parameter.
-Adi -
I am getting ORA-01403: no data found error while calling a stored procedur
Hi, I have a stored procedure. When I execute it from Toad it is successfull.
But when I call that from my java function it gives me ORA-01403: no data found error -
My code is like this -
SELECT COUNT(*) INTO L_N_CNT FROM TLSI_SI_MAST WHERE UPPER(CUST_CD) =UPPER(R_V_CUST_CD) AND
UPPER(ACCT_CD)=UPPER(R_V_ACCT_CD) AND UPPER(CNSGE_CD)=UPPER(R_V_CNSGE_CD) AND
UPPER(FINALDEST_CD)=UPPER(R_V_FINALDEST_CD) AND UPPER(TPT_TYPE)=UPPER(R_V_TPT_TYPE);
IF L_N_CNT >0 THEN
DBMS_OUTPUT.PUT_LINE('ERROR -DUPlicate SI-1');
SP_SEL_ERR_MSG(5,R_V_ERROR_MSG);
RETURN;
ELSE
DBMS_OUTPUT.PUT_LINE('BEFORE-INSERT');
INSERT INTO TLSI_SI_MAST
( CUST_CD, ACCT_CD, CNSGE_CD, FINALDEST_CD, TPT_TYPE,
ACCT_NM, CUST_NM,CNSGE_NM, CNSGE_ADDR1, CNSGE_ADDR2,CNSGE_ADDR3,
CNSGE_ADDR4, CNSGE_ATTN, EFFECTIVE_DT, MAINT_DT,
POD_CD, DELVY_PL_CD, TRANSSHIP,PARTSHIPMT, FREIGHT,
PREPAID_BY, COLLECT_BY, BL_REMARK1, BL_REMARK2,
MCC_IND, NOMINATION, NOTIFY_P1_NM,NOTIFY_P1_ATTN , NOTIFY_P1_ADDR1,
NOTIFY_P1_ADDR2, NOTIFY_P1_ADDR3, NOTIFY_P1_ADDR4,NOTIFY_P2_NM,NOTIFY_P2_ATTN ,
NOTIFY_P2_ADDR1,NOTIFY_P2_ADDR2, NOTIFY_P2_ADDR3, NOTIFY_P2_ADDR4,
NOTIFY_P3_NM,NOTIFY_P3_ATTN , NOTIFY_P3_ADDR1,NOTIFY_P3_ADDR2, NOTIFY_P3_ADDR3,
NOTIFY_P3_ADDR4,CREATION_DT, ACCT_ATTN, SCC_IND, CREAT_BY, MAINT_BY
VALUES( R_V_CUST_CD,R_V_ACCT_CD,R_V_CNSGE_CD,R_V_FINALDEST_CD,R_V_TPT_TYPE,
R_V_ACCT_NM,R_V_CUST_NM ,R_V_CNSGE_NM, R_V_CNSGE_ADDR1,R_V_CNSGE_ADDR2, R_V_CNSGE_ADDR3,
R_V_CNSGE_ADDR4,R_V_CNSGE_ATTN, R_V_EFFECTIVE_DT ,SYSDATE, R_V_POD_CD,R_V_DELVY_PL_CD,R_V_TRANSSHIP ,R_V_PARTSHIPMT , R_V_FREIGHT,
R_V_PREPAID_BY ,R_V_COLLECT_BY ,R_V_BL_REMARK1 ,R_V_BL_REMARK2,R_V_MCC_IND,
R_V_NOMINATION,R_V_NOTIFY_P1_NM, R_V_NOTIFY_P1_ATTN, R_V_NOTIFY_P1_ADD1, R_V_NOTIFY_P1_ADD2,
R_V_NOTIFY_P1_ADD3, R_V_NOTIFY_P1_ADD4, R_V_NOTIFY_P2_NM, R_V_NOTIFY_P2_ATTN, R_V_NOTIFY_P2_ADD1,
R_V_NOTIFY_P2_ADD2, R_V_NOTIFY_P2_ADD3, R_V_NOTIFY_P2_ADD4, R_V_NOTIFY_P3_NM, R_V_NOTIFY_P3_ATTN,
R_V_NOTIFY_P3_ADD1, R_V_NOTIFY_P3_ADD2, R_V_NOTIFY_P3_ADD3, R_V_NOTIFY_P3_ADD4,
SYSDATE,R_V_ACCT_ATTN,R_V_SCC_IND,R_V_USER_ID,R_V_USER_ID
DBMS_OUTPUT.PUT_LINE(' SI - REC -INSERTED');
END IF;Hi,
I think there is a part of the stored procedure you did not displayed in your post. I think your issue is probably due to a parsed value from java. For example when calling a procedure from java and the data type from java is different than expected by the procedure the ORA-01403 could be encountered. Can you please show the exact construction of the call of the procedure from within java and also how the procedure possible is provided with an input parameter.
Regards, Gerwin -
ORA-03115 error when calling a Stored Procedure
Hi All,
I'm in the process of porting a Pro/C app from NT to Linux. I've installed 8.1.5 on our Linux box and patched it up to 8.1.5.02.
It all kind of works ok, except that I'm sometimes getting ORA-03115 errors when the app calls a stored procedure. The call in question looks like this:
EXEC SQL BEGIN DECLARE SECTION;
VARCHAR resprows[50][3998];
int numret = 0;
int numrows= 50;
int done= 0;
unsigned long resp_id = 0;
EXEC SQL END DECLARE SECTION;
EXEC SQL AT DB_NAME EXECUTE
BEGIN pkg_something.getdata(
:resp_id, /* IN */
:numrows, /* IN */
:done, /* OUT */
:resprows, /* OUT */
:numret /* OUT */
END;
END-EXEC;
The stored procedure basically uses the resp_id value to select rows from a table;
in each row there is a VARCHAR2(4000) column which it copies into the hostarray resprows.
There may be anything from 1 to numrows returned from the SP.
Initially, the resprows rows were defined to be size [4000]. Unfortunately, this caused ORA-02005 errors - I then changed the size to [3998], which seemed to fix the 02005's (although I'm unclear as to the reasons why).
Now I'm getting the 03115 errors when calling the SP. The oracle manual is not very helpful on what this error means.
This all works chipper on NT.
Any ideas?
Thanks in advance,
Nigel.
PS: The database the app is talking to is still hosted on NT.
nullHiston FTM wrote:
ORA-04063: package body "LAZARUS.LAZARUS" has errors Above, obviously conflicts with the statement that follows:
>
The procedure and package have both compiled without errors and the statement on its own works fine in SQL*Plus.I suggest you take a look in the USER_ERRORS view to see, what the errors are.
And just checking:
You have schema called LAZARUS, which holds a package named LAZARUS, which holds a procedure called POPULATEGRIDPOSITIONS?
Edited by: Toon Koppelaars on Oct 1, 2009 5:55 PM -
Before calling an external program, check if the program is allready open
I need to call an external program to print some labels, so i will use function WS_EXECUTE or the new one DSVAS_DOC_WS_EXECUTE_50 to call my program, but the problem that i have is:
when I call this function, the program open a small window, and if i have to call it again, it will open another window, and so on... obviously this is not a good solution.
Is there any one how knows how can i close the program, of perhaps it is enough if there is some way to know if the program is already open.
Many thanks in advance,
MiriamHi
you can use the ABAP Coverage Analyzer.
OR
This is a function module we use to limit the execution of a program to one instance at a time.
DATA: PRG LIKE INDX-SRTFD. PRG = SY-CPROG.
CALL FUNCTION 'ENQUEUE_ESINDX'
EXPORTING RELID = 'ZZ'
SRTFD = PRG
SRTF2 = 0
EXCEPTIONS FOREIGN_LOCK = 1
SYSTEM_FAILURE = 2.
IF SY-SUBRC NE 0.
FORMAT COLOR COL_NEGATIVE INVERSE ON.
WRITE: / 'ERROR: Program Is Already Running'.
WRITE: / 'Program', PRG, 'has been stopped. Rerun in 1 minute.'.
STOP.
ELSE.
WRITE: / 'OK ',PRG.
ENDIF.
Regards,
Raj -
Error mapping function in external procedure call
I'm trying to create an external procedure in PL/SQL8.1 to run an operating system command from within a PL/SQL block.
The C function couldn't be simpler:
extern void host_command(char *command)
(void)system(command);
It's even ignoring the return value of SYSTEM!
I've generated what I THINK is a shared object file and copied it to $ORACLE_HOME/lib/host_command.so
I've then done CREATE LIBRARY HOST_COMMAND_LIB as '...'
Then I created a PL/SQL procedure:
CREATE PROCEDURE SHELL(IP_COMMAND IN VARCHAR2)
AS
LANGUAGE C
NAME "host_command"
LIBRARY HOST_COMMAND_LIB
PARAMETERS (IP_COMMAND);
And then EXEC SHELL ('touch /tmp/fred')
That's when ORA-6521 is raised.
I am running Oracle8.1.7.4.0 on AIX 4.3
Am I missing something?
Any suggestions will be thankfully received.
Andrew HunterThanks.
In fact, using the supplied makefile in $ORACLE_HOME/plsql/demo and MAKING SURE THAT THE .SO IS EXECUTABLE(!) works. -
Errors in calling Oracle stored procedure using java CallableStatement
Hello,
I have an oracle stored procedure below, it has been tested in PL/SQL without errors. During testing, in_c_file_type="F"; out_n_seqno_freeformat=120139596 and out_n_seqno_commaseprated is null (empty in value column).
When I run the program in Eclipse (windows xp), error messages is below: (It stopped at line 'cstme.execute();' )
Message:ORA-06550: line 1, column 26: PLS-00103: Encountered the symbol "" when expecting one of the following: . ( ) , * @ % & | = - + < / > at in is mod remainder not range rem => .. <an exponent (**)> <> or != or ~= >= <= <> and or like LIKE2_ LIKE4_ LIKEC_ as between from using || indicator multiset member SUBMULTISET_ The symbol ", was inserted before "" to continue. Error code:6550 SQL statement:65000 {code} Does anyone know what cause the error? It seems like something is missing in the stored procedure. But the stored procedure passes the test in the PL/SQL. The oracla driver I used is Oracle thin driver. Oracle version is 10.2.g Thanks in advance. northcloud {code} create or replace procedure SP_GET_SEQNO_2( in_c_file_type in char, out_n_seqno_freeformat out integer, out_n_seqno_commaseprated out integer) is n_seqno_commaseprated integer; n_seqno_freeformat integer; begin if in_c_file_type ='F' THEN SELECT message_counter.nextval INTO n_seqno_freeformat FROM dual; insert into temp_stroperations (record_id,OUTPUT_STR,INPROCESS_STR) values (n_seqno_freeformat,empty_clob(),empty_clob()); elsif in_c_file_type ='C' THEN SELECT message_counter.nextval INTO n_seqno_commaseprated FROM dual; insert into temp_stroperations (record_id,OUTPUT_STR,INPROCESS_STR) values (n_seqno_commaseprated,empty_clob(),empty_clob()); else SELECT message_counter.nextval INTO n_seqno_freeformat FROM dual; insert into temp_stroperations (record_id,OUTPUT_STR,INPROCESS_STR) values (n_seqno_freeformat,empty_clob(),empty_clob()); SELECT message_counter.nextval INTO n_seqno_commaseprated FROM dual; insert into temp_stroperations (record_id,OUTPUT_STR,INPROCESS_STR) values (n_seqno_commaseprated,empty_clob(),empty_clob()); end if; out_n_seqno_freeformat := n_seqno_freeformat; out_n_seqno_commaseprated := n_seqno_commaseprated; end SP_GET_SEQNO_2; {code} ----- A part of java code I used to call the stored procedure is here. {code} String escapeString = "{call SP_GET_SEQNO_2 (? ? ?)}"; CallableStatement cstme = null; try { cstme = con.prepareCall(escapeString); cstme.setString(1, "F"); cstme.registerOutParameter(2, java.sql.Types.INTEGER); cstme.registerOutParameter(3, java.sql.Types.INTEGER); cstme.execute(); int seqNoFreeformat=0, seqNocommasepreted=0; seqNoFreeformat = cstme.getInt(2); seqNocommasepreted = cstme.getInt(3); System.out.println ("In ConvertXML.processStoredProcedure(), seqNoFreeformat= "+seqNoFreeformat+";seqNocommasepreted="+seqNocommasepreted); } catch (SQLException e) { //System.out.println ("In ConvertXML.processStoredProcedure(), SQLException: "+e); System.err.println("Message:"+e.getMessage()); System.err.println("Error code:"+e.getErrorCode()); System.err.println("SQL statement:"+e.getSQLState()); log.log(Level.INFO, log.getName() + " - SQLException : "+e); } {code}es5f2000 wrote:
jschell wrote:
That works?I dunno. The below definitely works, but like I said, I've only
ever done it with one output parameter (and that has always
been a ResultSet).
String callableQuery = "{?= call my_package.my_call(?, ?)}"
Yes I have done that and at least in terms of my code it wasn't just a result set.
But not with two.
Maybe you are looking for
-
Double Buffering and Components
Hello I am wondering how do I turn off double buffering for my components. This is important for printing as double buffering makes the print job alot of MB
-
FC 6 doesn´t open anymore!!
FC 6 doesn´t open anymore. It seems to start opening, but disappears. I removed the "Final Cut Pro User Data" folder from the Preferences folder and the "com.apple.finalcutpro.plist". No success. I formatted my computer and tried to reinstall FC. The
-
Hi expert, In push button i am displaying some ebeln . My requirment is to retrive the value displayed on pushbutton on pressing. I am not able to retrive the value and index ( I have created via step loop) position of the push button. Please tell me
-
Switchport Stuck in Guest Mode
I am using 802.1x authentication with multi-domain ports; Phone and PC connected to phone. The phones are Nortel (Avaya) and the PCs are Dell/HP Laptops. All are configured for Certificate authentication and this works well. However we sometimes get
-
When I try to open isohunt.com or youtube subscription page, it won't load. It just says "Stopped." and won't ever open the web. This started happening about a month ago. Before it says "gostats.com" and didn't open but now it says "Stopped". But if