Error in calling Oracle AMG stored proc
Oracle FIn version - 11.2.0
Oracle client version - 9.2.0
Hi,
I’m trying to do an Oracle AMG call setGlobalInfo from VBScript. This call fails with the following error message. Please let me know how I could fix this.
SetGlobalInfo: Return MsgData = FND FND_AS_UNEXPECTED_ERROR N PKG_NAME PA_INTERFACE_UTILS_PUB N PROCEDURE_NAME Set_Global_Info N ERROR_TEXT ORA-20001: Oracle error -20001: ORA-20001: Error occurred during product initialization for MO when executing 'begin MO_GLOBAL.INIT; end;'.
SQLCODE = -20001
SQLERROR = ORA-20001: SQL_PLSQL_ERROR: N, ROUTINE, MO_GLOBAL.INIT, N, ERRNO, -2000
SetGlobalInfo: Return MsgCount = 1
SetGlobalInfo: Return Status = U
Thanks in advance,
Raju
Oracle FIn version - 11.2.0
Oracle client version - 9.2.0
Hi,
I’m trying to do an Oracle AMG call setGlobalInfo from VBScript. This call fails with the following error message. Please let me know how I could fix this.
SetGlobalInfo: Return MsgData = FND FND_AS_UNEXPECTED_ERROR N PKG_NAME PA_INTERFACE_UTILS_PUB N PROCEDURE_NAME Set_Global_Info N ERROR_TEXT ORA-20001: Oracle error -20001: ORA-20001: Error occurred during product initialization for MO when executing 'begin MO_GLOBAL.INIT; end;'.
SQLCODE = -20001
SQLERROR = ORA-20001: SQL_PLSQL_ERROR: N, ROUTINE, MO_GLOBAL.INIT, N, ERRNO, -2000
SetGlobalInfo: Return MsgCount = 1
SetGlobalInfo: Return Status = U
Thanks in advance,
Raju
Similar Messages
-
Error while calling a Db2 stored proc using Dataservice
Hi ,
I am getting the following exception while calling a Db2 proc.The proc is not returning any refcursor.It has one Input param of type String.We are expecting the result in resultset. I am able to call the proc using JDBC function and iterate tru the resultset and print it.
While doing import the source Metadata , I Added a "Editable Row Set" Type.
Any clue ?
ava.lang.RuntimeException: Incorrect definition, too many return resultset
at com.bea.ld.wrappers.procedure.ProcedureAdapter$CallableWrapper.getNextReturnValue(ProcedureAdapter.java:634)
at com.bea.ld.wrappers.procedure.ProcedureIterator.getNextToken(ProcedureIterator.java:249)
at com.bea.ld.wrappers.procedure.ProcedureIterator.fetchNext(ProcedureIterator.java:125)
at weblogic.xml.query.iterators.GenericIterator.hasNext(GenericIterator.java:134)
at weblogic.xml.query.runtime.sequences.Subsequence.fetchNext(Subsequence.java:106)
at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)
at weblogic.xml.query.runtime.querycide.QueryAssassin.fetchNext(QueryAssassin.java:54)
at weblogic.xml.query.iterators.GenericIterator.peekNext(GenericIterator.java:151)
at weblogic.xml.query.runtime.qname.InsertNamespaces.fetchNext(InsertNamespaces.java:161)
at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)
at weblogic.xml.query.runtime.core.QueryIterator.fetchNext(QueryIterator.java:127)
at weblogic.xml.query.iterators.GenericIterator.hasNext(GenericIterator.java:134)
at weblogic.xml.query.xdbc.util.Serializer.serializeItems(Serializer.java:142)
at com.bea.ld.server.QueryInvocation.getResult(QueryInvocation.java:461)
at com.bea.ld.EJBRequestHandler.executeFunction(EJBRequestHandler.java:346)
at com.bea.ld.ServerBean.executeFunction(ServerBean.java:108)
at com.bea.ld.Server_ydm4ie_EOImpl.executeFunction(Server_ydm4ie_EOImpl.java:208)
at com.bea.ld.Server_ydm4ie_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:491)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:120)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:434)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:429)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:35)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)Hi,
I am trying to do something like this but with Oracle stored procedure which returns an associate array and a cursor and these are defined as INOUT. I am not finding a way how to do it with editable row set. Can you plese list the steps used to make things work.
Thanks. -
Calling Oracle 10g Stored Proc with Assoc Array from C# VS 2008
I have the following PL/SQL procedure:
CREATE OR REPLACE PROCEDURE HMA_ADM.PRC_VDM_SAVDEL_VEN_DOC
P_OP IN VARCHAR2,
P_USRID IN TB_VDM_MANAGE_DOCUMENTS.CREATEDBY%TYPE,
P_DATE IN VARCHAR2, -- HAS TO BE STRING, ELSE WE GET AN ERROR
P_DOCNAM IN TB_VDM_MANAGE_DOCUMENTS.DOCUMENT_NAME%TYPE,
P_DOCLNK IN TB_VDM_MANAGE_DOCUMENTS.DOCUMENTLINK%TYPE,
P_FNGUID IN TB_VDM_MANAGE_DOCUMENTS.FILENET_GUID%TYPE,
P_DESC IN TB_VDM_MANAGE_DOCUMENTS.DESCRIPTION%TYPE,
P_REQID IN VARR
) IS
Where VARR is:
CREATE OR REPLACE TYPE VARR IS TABLE OF INTEGER;
In C# I have the following code:
int64[] intReqID;
OracleCommand cmdVDL = new OracleCommand(DBQueries.SPQRY_SAVDELVENDOC, connDB);
cmdVDL.CommandType = CommandType.StoredProcedure;
cmdVDL.Parameters.Add(new OracleParameter("P_OP", strOP));
cmdVDL.Parameters.Add(new OracleParameter("P_CREATEBY", strUID));
cmdVDL.Parameters.Add(new OracleParameter("P_CREATEDATE", strDate));
cmdVDL.Parameters.Add(new OracleParameter("P_DOCNAM", strDocNam));
cmdVDL.Parameters.Add(new OracleParameter("P_DOCLNK", strURL));
cmdVDL.Parameters.Add(new OracleParameter("P_FNGUID", strGUID));
cmdVDL.Parameters.Add(new OracleParameter("P_DESC", strDesc));
cmdVDL.Parameters.Add(new OracleParameter("P_REQID", OracleDbType.Int64) {
CollectionType = OracleCollectionType.PLSQLAssociativeArray,
Size = intReqID.Count(),
Value = intReqID,
DbType = DbType.Int64,
OracleDbType = OracleDbType.Int64
OracleParameterStatus[] stat = new OracleParameterStatus[intReqID.Count()];
for (i = 0; i < intReqID.Count(); i++) {
stat[i] = OracleParameterStatus.Success;
cmdVDL.Parameters["P_REQID"].ArrayBindStatus = stat;
cmdVDL.ExecuteNonQuery();
When I run this I get the following error:
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'PRC_VDM_SAVDEL_VEN_DOC'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
If I remove the Associative Array from both, the procedure runs fine.
What am I doing wrong?Additionally,
1) UDT support requires 11106.20 or higher ODP (but can be used against 10g db)
2) if the plsql is changeable, you may want to swap it to associative array instead to avoid having to create custom classes for the UDT, and here's a short sweet example.
Greg
CREATE or replace PACKAGE MYPACK3 AS
TYPE numarray is table of number index by BINARY_INTEGER;
PROCEDURE getempsinarray(thearray IN numarray, numrecs out number);
END MYPACK3;
CREATE or replace PACKAGE BODY MYPACK3 AS
PROCEDURE getempsinarray(thearray IN numarray, numrecs out number)
IS
begin
numrecs := thearray.count;
END getempsinarray;
END MYPACK3;
using System;
using System.Data;
using Oracle.DataAccess.Client;
public class indexby
public static void Main()
OracleConnection con = new OracleConnection("data source=orcl;user id=scott;password=tiger;");
con.Open();
OracleCommand cmd = new OracleCommand("mypack3.getempsinarray", con);
cmd.CommandType = CommandType.StoredProcedure;
OracleParameter Param1 = cmd.Parameters.Add("param1", OracleDbType.Int32);
Param1.Direction = ParameterDirection.Input;
Param1.CollectionType = OracleCollectionType.PLSQLAssociativeArray;
Param1.Value = new int[3]{7369,7499, 7521};
Param1.Size = 3;
OracleParameter Param2 = cmd.Parameters.Add("param2", OracleDbType.Int32, DBNull.Value, ParameterDirection.Output );
cmd.ExecuteNonQuery();
Console.WriteLine("{0} records passed in",Param2.Value);
con.Close();
} -
Example of asp classic using msdaora calling oracle 10g stored proc?
i just migrated a sql server application to oracle using sql developer workbench. i am having immediate problems of course...
this example asp code and oracle procedure first complains of wrong number and type of arguments. if i have similar code that i just remove the return parameter then it works but anything that i need an inpurt parameter for doesn't work.
any assistance most appreciated!
set sp_portfolio = Server.CreateObject("ADODB.Command")
sp_portfolio.ActiveConnection = MM_MHR_CONN_STR_STRING
sp_portfolio.CommandType = 4
sp_portfolio.CommandTimeout = 0
sp_portfolio.Prepared = true
sp_portfolio.CommandText = "PMS.Sp_HPMSQ003_Get_Portfolio"
sp_portfolio.Parameters.Append sp_portfolio.CreateParameter("IP_PMSPF_ID", 200, 1,10,sp_portfolio__P_PMSPF_ID)
sp_portfolio.Parameters.Append sp_portfolio.CreateParameter("rs", 200, 2, 10000)
set rst_Portfolio = sp_portfolio.Execute
CREATE OR REPLACE PROCEDURE "SP_HPMSQ005_GET_PROJECTS"
v_P_PMSPF_ID IN NUMBER DEFAULT NULL ,
v_P_START_DT IN varchar2 DEFAULT NULL ,
cv_1 IN OUT SYS_REFCURSOR
AS
BEGIN
OPEN cv_1 FOR
select P.*, TO_CHAR(PMSPT_PLND_REL_DT, 'YYYY') || ' ' || TO_CHAR(PMSPT_PLND_REL_DT, 'MM') Combodate,
TO_CHAR(PMSPT_PLND_REL_DT, 'MM') RelMnth, TO_CHAR(PMSPT_PLND_REL_DT, 'YYYY') RelYear,
S.PMSPS_IMGPTH_TXT, S.PMSPS_DESC_TXT
From TPMSPT_PROJECT P, TPMSPP_PORTFOLIO_PROJECT F, TPMSPS_PROJECT_STATUS S
Where F.PMSPF_ID = v_P_PMSPF_ID
and P.PMSPT_ID = F.PMSPT_ID
and S.PMSPS_CD = P.PMSPS_CD
and P.PMSPT_PLND_REL_DT >= TO_DATE(ltrim(rtrim(v_P_START_DT)), 'yyyy.mm.dd')
Order by P.PMSPT_PLND_REL_DT, UPPER(P.PMSPT_SNAM_TXT);
END;Hi,
If all the data and tables involved have been successfully migrated into Oralce then your best option will be to try one of the forums that can help with ASP or MSDAORA. They will be in a better postion to help with problems using these products and diagnosing the cause.
If it then turns out it was caused by a SQL*Developer migration problem then we can investigate that further.
Regards,
Mike -
ORA-03113 error when running the Java stored proc demos
Hi there,
Has anyone else run into this issue. When attempting to transfer an object type from Java to Oracle - through a Java stored proc - the session crashes with:
ORA-03113: end-of-file on communication channelLooking in the trace file generated the error message looks something like:
ksedmp: internal or fatal error
ORA-07445: exception encountered: core dump [0x8fe04468] [SIGTRAP] [unknown code] [0x8FE59034] [] []
Current SQL statement for this session:
select pointruntime.jdistance(point(1, 2), point(2, 3)) from dual
----- Call Stack Trace -----
calling call entry argument values in hex
location type point (? means dubious value)
ksedmp+764 call ksedst 0 ? 2C4F4A ? 2C ? 98968000 ?
DB02C ? 27A50000 ?
ssexhd+956 call ksedmp 3 ? 0 ? 8FE5E790 ? 5905870 ?
8FE0434C ? 40895E4 ?
0x9012c860 call ssexhd 5 ? BFFEEF70 ? BFFEEFB0 ? 0 ?
0 ? 0 ?As you can see from the trace snippet above, I was attempting to run one of the Oracle Java stored procedure demos. Has anyone successfully run those demos? Specifically the ones where complex types (table objects or the Point object) are passed back to Oracle from the JVM.
I would appreciate some help with this. The code works fine in a Windows or Solaris environment but barfs on Apple. Truly annoying....
Anyone?
Thanks in advance,
AlexYes,
Apologies for not stating that information, Steve. Was a bit naughty of me! I guess the reason I didn't was because I just wanted to hear if anyone else running Oracle on Mac received such errors when executing the Java stored proc demos (specifically, the execution of PointRuntime.jDistance). Nevertheless, here's the relevant info from the trace file:
Dump file /Users/oracle/admin/sandbox/udump/sandbox_ora_1861.trc
Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
With the Partitioning, Oracle Label Security, OLAP and Data Mining Scoring Engine options
ORACLE_HOME = /Users/oracle/product/10.1.0/db
System name: Darwin
Node name: maczilla.local
Release: 8.3.0
Version: Darwin Kernel Version 8.3.0: Mon Oct 3 20:04:04 PDT 2005; root:xnu-792.6.22.obj~2/RELEASE_PPC
Machine: Power Macintosh
Instance name: sandbox
Redo thread mounted by this instance: 1
Oracle process number: 10
Unix process pid: 1861, image: [email protected] for the Java version, according to the readme file in the javavm directory, I am running 1.4.1:
1.5 Java Compatibility
This release has been thoroughly tested with Sun's Java Compatibility
Kit for the JDK 1.4.1. Oracle is committed to OracleJVM keeping pace
with Java and other Internet standards. -
Any one use java call oracle ERP stored procdure
Hi,
Any one use java call oracle ERP stored procdure?
Example I want ues java call below stored, it can work , but in Oracle ERP have error : "APP-MRP-22130: Cannot connect to database
Cause: The current routine cannot connect to the database.
Action: Contact your system administrator or customer support representative.
CREATE OR REPLACE procedure XXBOM_ITEM_IMPORT
is
x number;
begin
fnd_global.apps_initialize
(1070, /*i_user_id*/
20634, /*i_responsibility_id*/
401 /*i_application_id*/
/* import item */
x := fnd_request.submit_request(
application => 'INV',
program => 'INCOIN',
argument1 => 141,
argument2 => 1,
argument3 => 1,
argument4 => 1,
argument5 => 1
end;Note 164701.1 in metalink may be relevant.
-
Calling a COBOL stored proc from Java Servlet
I am trying to call a COBOL stored proc from a Java Servlet. The stored proc is stored on a DB2 database. I need to send 6 inputs to the COBOL stored proc and the output will be the return code of the stored proc. I'm not sure if I'm going about this the right way. This is how my code looks...
public int callStoredProc(CallableStatement cstmt,
Connection con,
String sYear,
String sReportNbr,
String sSystemCode,
String sUserId,
String sModuleNbr,
String sFormId){
int iParm1 = 0;
try{
Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
catch(ClassNotFoundException ex){
System.out.println("Failed to locate database driver: "
+ ex.toString());
return iParm1;
try{
cstmt = con.prepareCall("{? = CALL MKTPZ90C
cstmt.registerOutParameter(1, Types.INTEGER);
cstmt.setString(2, sYear);
cstmt.setString(3, sReportNbr);
cstmt.setString(4, sSystemCode);
cstmt.setString(5, sUserId);
cstmt.setString(6, sModuleNbr);
cstmt.setString(7, sFormId);
cstmt.execute();
iParm1 = cstmt.getInt(1);
CloseSQLStatement(cstmt);
catch(SQLException ex) {
CloseSQLStatement(cstmt);
System.out.println("SQL exception occurred:" +
ex.toString());
return iParm1;
return iParm1;
Could someone tell me if this is the right way to go about doing this?
Thanks!!!!!!I didn't see the code where you create the database connection (variable "con"). However, the answer to your question "Is this the right way...", for me, is "Anything that works is the right way." So try it. That's a first approximation, but once you have something that works you can start on improving it, if that becomes necessary.
-
Can we call a Java Stored Proc from a PL/SQL stored Proc?
Hello!
Do you know how to call a Java Stored Proc from a PL/SQL stored Proc? is it possible? Could you give me an exemple?
If yes, in that java stored proc, can we do a call to an EJB running in a remote iAS ?
Thank you!For the java stored proc called from pl/sql, the example above that uses dynamic sql should word :
CREATE OR REPLACE PACKAGE MyPackage AS
TYPE Ref_Cursor_t IS REF CURSOR;
FUNCTION get_good_ids RETURN VARCHAR2 ;
FUNCTION get_plsql_table_A RETURN Ref_Cursor_t;
END MyPackage;
CREATE OR REPLACE PACKAGE BODY MyPackage AS
FUNCTION get_good_ids RETURN VARCHAR2
AS LANGUAGE JAVA
NAME 'MyServer.getGoodIds() return java.lang.String';
FUNCTION get_plsql_table_A RETURN Ref_Cursor_t
IS table_cursor Ref_Cursor_t;
good_ids VARCHAR2(100);
BEGIN
good_ids := get_good_ids();
OPEN table_cursor FOR 'SELECT id, name FROM TableA WHERE id IN ( ' | | good_ids | | ')';
RETURN table_cursor;
END;
END MyPackage;
public class MyServer{
public static String getGoodIds() throws SQLException {
return "1, 3, 6 ";
null -
Getting error while Calling Oracle Stored Procedure with output Parameter
HI All,
From long days i am working on this but i unable to solve it.
Even i have studied so many forums in SAP but i didn't find the solution.
I am calling Oracle Store procedure with 3 inputs and 1 output without cursor.
Store Procedure:-
CREATE OR REPLACE PROCEDURE PDS.send_rm
IS
proc_name VARCHAR2(64) := 'send_rm';
destination_system VARCHAR2(32) := 'RAWMAT';
xml_message VARCHAR2(4000);
status_code INTEGER;
status_message VARCHAR2(128);
debug_message VARCHAR2(128);
p_ret INTEGER;
BEGIN
DBMS_OUTPUT.PUT_LINE( proc_name || ' started' );
xml_message := '<RAW_MATERIAL>'||
'<BAR_CODE>10000764601</BAR_CODE>'||
'<MATERIAL>1101448</MATERIAL>'||
'<VENDOR_CODE/>'||
'<PRODUCTION_DATE>0000-00-00</PRODUCTION_DATE>'||
'<EXPIRE_DATE>0000-00-00</EXPIRE_DATE>'||
'<BATCH/>'||
'<PO_NUM/>'||
'<MATERIAL_DESCRIPTION>POWER SUPPLY</MATERIAL_DESCRIPTION>'||
'<SPEC_NAME/>'||
'<STOCK_CODE>BSW-JH</STOCK_CODE>'||
'<INSPECTION_LOT>00</INSPECTION_LOT>'||
'<USAGE_DECISION_CODE/>'||
'<MATERIAL_GROUP>031</MATERIAL_GROUP>'||
'</RAW_MATERIAL>';
dbms_output.put_line('XML '||xml_message);
-- vp_interface.load_rawmat@cnprpt1_pds(SYSDATE, destination_system,
-- xml_message, p_ret);
vp_interface.load_rawmat(SYSDATE, destination_system,
xml_message, p_ret);
dbms_output.put_line('Return Code '||p_ret);
COMMIT;
EXCEPTION
WHEN OTHERS THEN
status_code := SQLCODE;
status_message := SUBSTR(SQLERRM, 1, 64);
-- Extract_Error_Logger(proc_name, 'LOCAL', SYSDATE, -999,
-- status_message, 0, debug_message);
ROLLBACK;
END send_rm;
And while i am calling this Store procedure in MII, I am facing error.
I have tried different ways but didnt solved
In SQL Query, i kept mode as: FixedQueryOutput
Can anyone tell me or send code for calling above store procedure
And onemore thing, While creating store procedure in Oracle for MII. Do we need to Create output parameter as cursor or normal.
Thanks,
Kind Regards,
Praveen Reddy MHi Praveen
Our wrapper was created because we could not modify the procedure we call (it was not returning a cursor).
CREATE OR REPLACE PROCEDURE CHECK_PUT_IN_USE
(STRCMPNAME in varchar2,
STRSCANLABEL in varchar2,
RCT1 out SYS_REFCURSOR
AS
charDispo Char(1);
charStatus Char(1);
intCatNo Integer;
charCatDispo Char(1);
strCatQual VarChar2(2);
strCatDesc VarChar2(30);
strMsg VarChar2(128);
BEGIN
qa.check_put_in_use@AR(STRCMPNAME,
STRSCANLABEL,
charDispo,
charStatus,
intCatNo,
charCatDispo,
strCatQual,
strCatDesc,
strMsg);
OPEN RCT1
FOR Select charDispo,charStatus,charDispo,charStatus,intCatNo,charCatDispo,strCatQual,strCatDesc,strMsg from Dual;
END;
Hope this helps
Regards
Amrik
then with a FixedQueryWithOutput
call mixar.qasap.wrapper_update_put_in_use('[Param.1]','[Param.2]',[Param.3],?)
Hope this helps. -
Error creating Crystal Report using Stored Proc Universe
Hi,
I have created a stored procedure Universe, using the new feature available in XI R3.
This connects to an Oracle database, executing a PL/SQL procedure returning ref cursor.
I have created a WebI report using this Universe, which works fine and functions as expected.
So there are no problems with either my Oracle stored proc or the Universe.
However, I would like to create a Crystal report (2008) using the same Universe.
I can create the report ok - using the SP Universe.
When I attempt to refresh the data I get an error:
Failed to retrieve data from the database.
Details: ORA-06550: line 1, column 7:
PLS-00103: Encountered the symbol "." when expecting one of the following:
begin case declare etc etc
.................................My Procedure ...................
CREATE OR REPLACE PROCEDURE BIADM.Bo_Test_Report_R
(Deposit_Cursor IN OUT SYS_REFCURSOR)
IS
BEGIN
OPEN Deposit_Cursor FOR
SELECT DISTINCT foracid "A/C"
, acct_name "A/C Name", acct_opn_date "OP/Date", schm_code "SchmCode"
FROM gam@finrpt
WHERE acct_cls_flg ='N'
AND foracid ='2252020145001';
--AND cust_id ='CB2020145'
END Bo_Test_Report_R;
Please Give me solution as early as possible.
Masud IqubalMoved to Universe Design forum.
-
Out of memory error when calling a java stored procedure multiple times
Trying to run a PL/SQL loop calling a java stored procedure, I get the following error:
"ORA-04030: out of process memory when trying to allocate 262188 byte callheap,ioc_allocate free)"
(with some other error lines).
The stored procedure does two major things:
1) Open a socket to communicate with a server, of which it queries some data.
2) Use JDBC (with the default DB connection it has, as a stored procedure) to write the results to a table.
All socket connections, statements, etc. are properly closed and all memory should be garbage collected between each call.
Can anyone offer an explanation or additional checks to make? I'm quite sure the code isn't causing the problem, since I've tried running it as a stand alone application (outside of Oracle) and didn't have any problems.
Thanks.Hi,
Verify that the database parameters are set correctly.
EA -
Error Invoking Java class from Stored proc
We are getting this error while calling a stored procedure that invokes a
static function of a java class from inside Oracle 8.1.7.
ORA-29516: Aurora assertion failure: Java thread deadlock detected
ORA-06512: at "APPS.SERVICECONSUMERINVOKE", line 0
ORA-06512: at line 40
In a Toad SQL Window, when I execute the stored procedure that invokes the
java function, it executes successfully on the first attempt. When I try to
execute it again on the same SQL Window, it gives the above error. The java
class is part of a package and indirectly makes a JMS request-reply call
via other helper classes.
The same package works fine from other web containers and
unlike the Oracle JVM Aurora, the JVMs don't detect a deadlock.
Why does the Aurora throw an error?Did you try issusing a commit and then trying again in Toad SQL Window?
The advice is to contact support:
ORA-29516: Aurora assertion failure: string
Cause: An internal error occurred in the Aurora module.
Action: Contact Oracle Worldwide Support. -
Error - while calling Oracle report
X Error
REP-771: 'afterpform': Fatal PL/SQL error occurred.
ORA-01403: no data found
Hi,
I have Oracle reports integrated into HTML DB. When I run this application, I get above error. I have tried purging user preferences. But, I still get the same error. This report works correct when I try running this on Oracle reports.
This application used to work until two days ago. Right now, it is giving this error for some reason. Could some one let me know if I am missing something. Thanks,
LakshmiHi SriLakshmi,
How are you calling the Oracle Report. Because the error you are seeing is from Oracle Reports and not from HTMLDB.
Please let me know how you are calling Oracle reports maybe I can help you .
Vivek Ananda
[email protected] -
I'm doing a select on the ALL_ARGUMENTS like:
SELECT count(*) FROM all_arguments WHERE owner LIKE 'MySchema' ESCAPE '/' AND object_name LIKE 'MyStoredProc' ESCAPE '/' AND package_name LIKE 'MyPackage' ESCAPE '/';
Sometimes, after connecting to the DB after a certain period of time, I get a result = 0, althought the Stored Procedure is there. Immediatelly after that I retry, and I get result = 2.
Why is that? Does the SELECT recompile the stored proc?I'm surprised that you get anything if you use that query.
Oracle considers object names to be uppercase unless the name is enclosed in double quotes. So there would be no schemas with a name 'MySchema' since the name would actually be 'MYSCHEMA'. -
Button to call pl/sql stored proc using text box value as parameter
I need to create a portal page with an input text box and a button (or a clickable pl/sql item). A user will enter a value in the text box and click the button, a stored pl/sql procedure will be executed that takes the value of the text box as an input parameter. The procedure output (basically a success or an error message) must be printed in a new window which the user can close after checking the output. No redirection to another page is required.
I have no experience in developing portal pages and would appreciate if you point me in a right direction. Do I need to create an html form and obtain the value of the text box via p_session object? In this case what do I need to specify as ACTION for the form - the same page URL? Where should I place the call to the stored procedure? Or can I somehow use a pl/sql item?
Thank you for your helpHi Arnaud
Thank you for the reply. Could you please give me dome more details. I have created a procedure:
create or replace procedure grant_roles (p_username varchar2) as
begin
<code>
htp.p('Grant succeeded for username is '||p_username);
exceptions when others then
htp.p('Grant failed. '||v_err_msg);
end;
and an html portlet:
<html>
<body>
<form name="input" action="/pls/portal/pls/portal_public.grant_roles_test?p_username=anna" method="get">
<input type="text" name="t_username" size="20">
<br>
<input type="submit" value="Grant">
</form>
</body>
</html>
Obviously this is not the right way to call my procedure as it does not work. And of course I want to pass the value of the t_username text box to the procedure not the string "anna". I am also not sure where a procedure prints its output. Is it possible to open a new window to display the output?
Thank you for your help,
Anna
Maybe you are looking for
-
What is the best way to keep up with "RED" agents?
TES 6.03.265 Hello all, I'm fairly new to Tidal, and have a question mainly for those managing a hundred or more agents. We have several hundred agents, and it is difficult for the operators to track & follow-up on all of the "RED" agents. In the GUI
-
How do I transfer my music to another computer and keep ratings
Is there a way to transfer my library from windows machine to windows machine and keep the ratings, play count, play history, etc the same? Thank you
-
Adobe XI (11.0.7) hang with pdf from our webapp
Hi to all, our customers (internal and externals) upgrade to Adobe XI (11.0.7) and they are not able to view the documents from our web app. We try disabling "Enable protected mode at startup" but nothing happen. They are using Windows 7 x64, IE 8.0.
-
TS4147 How do I get my contacts from the iCloud?
How is I get my contacts back from the cloud?
-
Hi, I have three apps in my appset, legal (for consolidation), rate and ownership. I now want to add 2 user defined dimensions to my consolidation. Step 1: define the two dimensions Step 2: add members to the new dimensions Step 3: add new app (as a