How to invoke a stored procedure in database adapter
Hi All,
i have created a database adapter which contains a stored procedure, the procedure is merge process,which bring data from another database,
i have made sure that checking for new records and updating any changes from the source database everything has been taken care in the procedure.
my question is how to invoke this process, what all process activities need to be associated with the database adapter, to invoke it
assuming i want to run it every 5 hours,
any reply would be of great help.
Regards
Ananth
Hi,
V thanks for you reply, i am v much new to this bpel environment, i tried using invoke but got errors like
Error(61):
[Error ORABPEL-10107]: Invalid initial activities
[Description]: in line 61 of "C:\jdevstudio10134\jdev\mywork\Incremental_refresh\data_incr_refresh\bpel\data_incr_refresh.bpel", Initial activity is invalid. An initial activity must be of a receive or pick activity..
[Potential fix]: Please re-arrange the BPEL process definition to make sure its initial activity is of a receive or pick activity. (e.g. by adding new receive activity or removing invalid initial activities..
Error:
[Error ORABPEL-10063]: missing initial receive activity
[Description]: in "C:\jdevstudio10134\jdev\mywork\Incremental_refresh\data_incr_refresh\bpel\data_incr_refresh.bpel", there is no receive activity that starts the process.
[Potential fix]: make sure one of "pick" and "receive" activities have attribute "createInstance" set to be "yes".
later i used the service pick, so from pick i am heading to ivoke and later to finally database adapter, but still getting below error
Error(59):
[Error ORABPEL-10900]: xml parser error
[Description]: in line 59 of "file:/C:/jdevstudio10134/jdev/mywork/Incremental_refresh/data_incr_refresh/bpel/data_incr_refresh.bpel", XML parsing failed because file:/C:/jdevstudio10134/jdev/mywork/Incremental_refresh/data_incr_refresh/bpel/data_incr_refresh.bpel<Line 59, Column 19>: XML-24536: (Error) Missing Attribute 'partnerLink'.
[Potential fix]: Fix the invalid XML.
Error(59):
[Error ORABPEL-10900]: xml parser error
[Description]: in line 59 of "file:/C:/jdevstudio10134/jdev/mywork/Incremental_refresh/data_incr_refresh/bpel/data_incr_refresh.bpel", XML parsing failed because file:/C:/jdevstudio10134/jdev/mywork/Incremental_refresh/data_incr_refresh/bpel/data_incr_refresh.bpel<Line 59, Column 19>: XML-24536: (Error) Missing Attribute 'portType'.
[Potential fix]: Fix the invalid XML.
Error(59):
[Error ORABPEL-10900]: xml parser error
[Description]: in line 59 of "file:/C:/jdevstudio10134/jdev/mywork/Incremental_refresh/data_incr_refresh/bpel/data_incr_refresh.bpel", XML parsing failed because file:/C:/jdevstudio10134/jdev/mywork/Incremental_refresh/data_incr_refresh/bpel/data_incr_refresh.bpel<Line 59, Column 19>: XML-24536: (Error) Missing Attribute 'operation'.
[Potential fix]: Fix the invalid XML.
Similar Messages
-
How to invoke a stored procedure from SubmitEditForm.jsp
Instead of directly inserting or updating
the data I would like to invoked
the stored procedure.
Has anybody done this?Sam,
BEA provides examples that are shipped with the product under
<beahome>\weblogic700\samples\server\src\examples\
Look at the jsp directory for JSP examples that access a database and look at
say the jdbc\oracle\storedprocs.java for an example of java code calling out to
a stored procedure - - by combining one of the jsp database examples with this
stored procedure example you should be 'good to go'
Chuck Nelson
DRE
BEA Technical Support
-
How to invoke Oracle stored procedures in Web Intelligence Custom SQL ?
Hi,
Referring to some older posts, I see that there is a work around to invoke a stored procedure to return results for a Web Intelligence report. Its been posted for calling a MS SQL stored proc, whereas the mentioned method does not seem to work for an Oracle Stored Procedure.
Steps I followed:
a) This is the parameter I have added in the oracle.sbo file => <Parameter Name="Force SQLExecute">Procedures</Parameter>
b) My stored procedure code is as follows:
CREATE OR REPLACE PROCEDURE get_emp_details(var_first_name OUT VARCHAR) AS
BEGIN
SELECT first_name INTO var_first_name
FROM EMP_DETAILS_VIEW
WHERE EMPLOYEE_ID = 100;
END;
c) Custom SQL code I added in my Webi report:
set nocount on;
/* SELECT
EMP_DETAILS_VIEW.FIRST_NAME
FROM
EMP_DETAILS_VIEW
exec get_emp_details;
On trying to validate the SQL it gives me the following error message: "The SQL query has 0 instead of 1 columns.(WIS 10810)"
Has anyone been able to successfully call an Oracle Stored procedure using the above method ?
Version of BO: XI R3 SP2
Oracle version: 11gR2
PS: I am aware that web intelligence since XI R3.1 does allow use of a dedicated Stored Procedure Universe. I would want to know if it could
be made to run in a normal Universe(not a stored procedure Universe)
Thanks for your time and inputs.
Regards,
JezEXECUTE is a SQL Plus command. You can directly call SP in PL/SQL
DECLARE
modif number;
BEGIN
select data_length into modif from user_tab_columns where table_name='CONTROL' and column_name='POSITION';
IF modif < 10 THEN
droptable('CONTROL');
execute immediate('CRETAE TABLE CONTROL ....';
... -
How to invoke a stored procedure on MS Sql Server with Java?
I started writing Enterprise Java Beans and created an ODBC dsn with MS Sql Server 2000 which I can access using jdbc:odbc:mySqlDSN. This all works fine using Java Sql Statements. What kind of Java/Java Sql statement can I use to invoke a stored procedure on the Sql Server? Is it possible to use ADO/ADO command objects with Java? Is it possible to import/implement Mdac2.6 ActiveX data objects libary in Java?
ThanksThanks all for your replies. I will search the api for callable statements. I am curious though, the reply that suggests using a prepared statement - can I put the name of a stored procedure in a prepared statment or is this just suggestions an action query like Insert Into, Update, Delete? Like with ADO you can say
cmdObject.CommandType = adStoredProcedure
cmdObject.CommandText = "NameOfStoredProc"
cmdObject.ExecuteNonQuery()
Once I am calling/importing/implementing the proper libraries/interfaces in Java, can a prepared statement reference a stored procedure as above?
Thanks -
How to invoke a stored procedures every hour? How to Cron ?
Hi. I have written a stored procedure using PL/SQL and it needs to invoke every hour to reset certain value. My question is how to cron or to invoke the store procedure every hour? I'm using Oracle 9i database.
Please advice if anyone of you had came acrossed this scenario.
Thanks.As Kevin suggests, you can use cron to schedule the job, but you probably not be able to just use sqlplus on the command line. When a job is executed through cron, it nly gets the environment information that is in the global .login procedure, and nothing that is in your own .profile. In most cases, this means that that you need to call a shell script from cron, and set some environment variables. You can do this either by calling your .profile file, or by setting them explicitly.
Another thing to consider in using cron is that the command line used to start SQL*Plus will be visible to anyone who can log on to the UNIX box. For this reason, we run all cron jobs that execute SQL using an externally identified Oracle user.
Your minimal shell script should look something like:
#!/usr/bin/ksh
export ORACLE_HOME=/your/directory
export ORACLE_SID=yoursid
export PATH=$ORACLE_HOME/bin:$PATH
sqlplus -s username/password @/path/sqlscript
or alternatively
#!/usr/bin/ksh
. ~/.profile
sqlplus -s / @/path/sqlscript
Make sure that your sql script ends with an exit command to close SQL*Plus.
John -
How to invoke a stored procedure by WSIF?
If it can, how to do? what the WSDL looks like?
Can anybody give me an example?
Thanks.Thanks all for your replies. I will search the api for callable statements. I am curious though, the reply that suggests using a prepared statement - can I put the name of a stored procedure in a prepared statment or is this just suggestions an action query like Insert Into, Update, Delete? Like with ADO you can say
cmdObject.CommandType = adStoredProcedure
cmdObject.CommandText = "NameOfStoredProc"
cmdObject.ExecuteNonQuery()
Once I am calling/importing/implementing the proper libraries/interfaces in Java, can a prepared statement reference a stored procedure as above?
Thanks -
How to invoke DB stored procedures from EJB3.0
In our project we are using EJB3.0.
I got one situation, where i need to call a db stored procedure through my code. But i couldn't find any possibilities.
Can any body help me in this regard
Thanks in advance
KiranHi,
As per ejb3.0 spec is conserned it doesnt specify anything with regard to stored procedures as of now, it means ejb3.0 cannot handle stored procedures as of now, of course it still depends on vendor implemenation u can check out for any possibilities wether vendor provides support for it or not, as for as i am conserned they dont as of now.
Possible Alternative:
This can be achived only through BMT using 2 transactions.
Open a seperate JDBC managed Transaction(by setting AutoCommit to false) execute the stored procedures from here, u can commit or roll back from there on.
Thanks and Regards
Srikanth S -
Multiple stored procedure in Database Adapter
Can I manually create the wsdl for database adapter, which can have multiple operations for different stored procedures?
I tried creating a wsdl as -
<definitions
name="CustomAdapter"
targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/CustomAdapter/"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/db/CustomAdapter/"
xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/xsd/"
xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/"
xmlns:hdr="http://xmlns.oracle.com/pcbpel/adapter/db/"
>
<import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/" location="DBAdapterOutboundHeader.wsdl"/>
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/xsd/"
schemaLocation="myadapter.xsd" />
</schema>
</types>
<message name="args_in_msg_tscp1">
<part name="InputParameters" element="db:InputParametersTSCP1"/>
</message>
<message name="args_in_msg_sample">
<part name="InputParameters" element="db:InputParametersSAMPLE"/>
</message>
<message name="args_out_msg_sample">
<part name="OutputParameters" element="db:OutputParametersSAMPLE"/>
</message>
<portType name="Proc1_ptt">
<operation name="Proc1">
<input message="tns:args_in_msg_tscp1"/>
</operation>
<operation name="Proc2">
<input message="tns:args_in_msg_sample"/>
<output message="tns:args_out_msg_sample"/>
</operation>
</portType>
<binding name="Proc1_binding" type="tns:Proc1_ptt">
<jca:binding />
<operation name="Proc1">
<jca:operation
InteractionSpec="oracle.tip.adapter.db.DBStoredProcedureInteractionSpec"
SchemaName="SYSTEM"
ProcedureName="TSCP1"
>
</jca:operation>
<input>
<jca:header message="hdr:OutboundHeader_msg" part="outboundHeader"/>
</input>
</operation>
<operation name="Proc2">
<jca:operation
InteractionSpec="oracle.tip.adapter.db.DBStoredProcedureInteractionSpec"
SchemaName="SYSTEM"
ProcedureName="MYSAMPLEPROC"
>
</jca:operation>
<input>
<jca:header message="hdr:OutboundHeader_msg" part="outboundHeader"/>
</input>
<output/>
</operation>
</binding>
<service name="Proc1">
<port name="Proc1_pt" binding="tns:Proc1_binding">
<!--Your runtime connection is declared in
J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml
These mcf properties here are from your design time connection and
save you from having to edit that file and restart the application server
if eis/DB/System25 is missing.
These mcf properties are safe to remove.-->
<jca:address location="eis/DB/DBConn25" UIConnectionName="System25"
/>
</port>
</service>
<plt:partnerLinkType name="Proc1_plt" >
<plt:role name="Proc1_role" >
<plt:portType name="tns:Proc1_ptt" />
</plt:role>
</plt:partnerLinkType>
</definitions>
Then I copied this wsdl and corresponding xsd to my BPEL process and created a partnerlink for this wsdl.
I added two invoke activities, one for Proc1 operation and other for Proc2 operation.
When I tried testing this BPEL process, the BPEL process manager was invoking only Proc1 operation for both invoke activities and giving me error as-
<Faulthttp://schemas.oracle.com/bpel/extensionhttp://schemas.xmlsoap.org/soap/envelope/>
<faultcode>null:bindingFault</faultcode>
<faultstring>business exception</faultstring>
<faultactor>cx-fault-actor</faultactor>
<detail>
<code>1400</code>
<summary>file:/D:/Morrisons/OracleProducts/product/Oracle_SOA/bpel/domains/TestPOC/tmp/.bpel_MyAdapterTest_1.0_c564165702d743346cadb68bc5bbb594.tmp/CustomAdapter.wsdl [ Proc1_ptt::Proc1(InputParameters) ] - WSIF JCA Execute of operation 'Proc2' failed due to: Error while trying to prepare and execute an API. An error occurred while preparing and executing the SYSTEM.TSCP1 API. Cause: java.sql.SQLException: ORA-01400: cannot insert NULL into ("SYSTEM"."EMPS"."EMPID") ORA-06512: at "SYSTEM.TSCP1", line 4 ORA-06512: at line 1 [Caused by: ORA-01400: cannot insert NULL into ("SYSTEM"."EMPS"."EMPID") ORA-06512: at "SYSTEM.TSCP1", line 4 ORA-06512: at line 1 ] ; nested exception is: ORABPEL-11811 Error while trying to prepare and execute an API. An error occurred while preparing and executing the SYSTEM.TSCP1 API. Cause: java.sql.SQLException: ORA-01400: cannot insert NULL into ("SYSTEM"."EMPS"."EMPID") ORA-06512: at "SYSTEM.TSCP1", line 4 ORA-06512: at line 1 [Caused by: ORA-01400: cannot insert NULL into ("SYSTEM"."EMPS"."EMPID") ORA-06512: at "SYSTEM.TSCP1", line 4 ORA-06512: at line 1 ] Check to ensure that the API is defined in the database and that the parameters match the signature of the API. Contact oracle support if error is not fixable. </summary>
<detail> Internal Exception: java.sql.SQLException: ORA-01400: cannot insert NULL into ("SYSTEM"."EMPS"."EMPID") ORA-06512: at "SYSTEM.TSCP1", line 4 ORA-06512: at line 1 Error Code: 1400</detail>
</detail>
</Fault>
I want to create only one wsdl for all the strored procedures.Can I manually create the wsdl for database adapter, which can have multiple operations for different stored procedures?
I tried creating a wsdl as -
<definitions
name="CustomAdapter"
targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/CustomAdapter/"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/db/CustomAdapter/"
xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/xsd/"
xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/"
xmlns:hdr="http://xmlns.oracle.com/pcbpel/adapter/db/"
>
<import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/" location="DBAdapterOutboundHeader.wsdl"/>
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/xsd/"
schemaLocation="myadapter.xsd" />
</schema>
</types>
<message name="args_in_msg_tscp1">
<part name="InputParameters" element="db:InputParametersTSCP1"/>
</message>
<message name="args_in_msg_sample">
<part name="InputParameters" element="db:InputParametersSAMPLE"/>
</message>
<message name="args_out_msg_sample">
<part name="OutputParameters" element="db:OutputParametersSAMPLE"/>
</message>
<portType name="Proc1_ptt">
<operation name="Proc1">
<input message="tns:args_in_msg_tscp1"/>
</operation>
<operation name="Proc2">
<input message="tns:args_in_msg_sample"/>
<output message="tns:args_out_msg_sample"/>
</operation>
</portType>
<binding name="Proc1_binding" type="tns:Proc1_ptt">
<jca:binding />
<operation name="Proc1">
<jca:operation
InteractionSpec="oracle.tip.adapter.db.DBStoredProcedureInteractionSpec"
SchemaName="SYSTEM"
ProcedureName="TSCP1"
>
</jca:operation>
<input>
<jca:header message="hdr:OutboundHeader_msg" part="outboundHeader"/>
</input>
</operation>
<operation name="Proc2">
<jca:operation
InteractionSpec="oracle.tip.adapter.db.DBStoredProcedureInteractionSpec"
SchemaName="SYSTEM"
ProcedureName="MYSAMPLEPROC"
>
</jca:operation>
<input>
<jca:header message="hdr:OutboundHeader_msg" part="outboundHeader"/>
</input>
<output/>
</operation>
</binding>
<service name="Proc1">
<port name="Proc1_pt" binding="tns:Proc1_binding">
<!--Your runtime connection is declared in
J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml
These mcf properties here are from your design time connection and
save you from having to edit that file and restart the application server
if eis/DB/System25 is missing.
These mcf properties are safe to remove.-->
<jca:address location="eis/DB/DBConn25" UIConnectionName="System25"
/>
</port>
</service>
<plt:partnerLinkType name="Proc1_plt" >
<plt:role name="Proc1_role" >
<plt:portType name="tns:Proc1_ptt" />
</plt:role>
</plt:partnerLinkType>
</definitions>
Then I copied this wsdl and corresponding xsd to my BPEL process and created a partnerlink for this wsdl.
I added two invoke activities, one for Proc1 operation and other for Proc2 operation.
When I tried testing this BPEL process, the BPEL process manager was invoking only Proc1 operation for both invoke activities and giving me error as-
<Faulthttp://schemas.oracle.com/bpel/extensionhttp://schemas.xmlsoap.org/soap/envelope/>
<faultcode>null:bindingFault</faultcode>
<faultstring>business exception</faultstring>
<faultactor>cx-fault-actor</faultactor>
<detail>
<code>1400</code>
<summary>file:/D:/Morrisons/OracleProducts/product/Oracle_SOA/bpel/domains/TestPOC/tmp/.bpel_MyAdapterTest_1.0_c564165702d743346cadb68bc5bbb594.tmp/CustomAdapter.wsdl [ Proc1_ptt::Proc1(InputParameters) ] - WSIF JCA Execute of operation 'Proc2' failed due to: Error while trying to prepare and execute an API. An error occurred while preparing and executing the SYSTEM.TSCP1 API. Cause: java.sql.SQLException: ORA-01400: cannot insert NULL into ("SYSTEM"."EMPS"."EMPID") ORA-06512: at "SYSTEM.TSCP1", line 4 ORA-06512: at line 1 [Caused by: ORA-01400: cannot insert NULL into ("SYSTEM"."EMPS"."EMPID") ORA-06512: at "SYSTEM.TSCP1", line 4 ORA-06512: at line 1 ] ; nested exception is: ORABPEL-11811 Error while trying to prepare and execute an API. An error occurred while preparing and executing the SYSTEM.TSCP1 API. Cause: java.sql.SQLException: ORA-01400: cannot insert NULL into ("SYSTEM"."EMPS"."EMPID") ORA-06512: at "SYSTEM.TSCP1", line 4 ORA-06512: at line 1 [Caused by: ORA-01400: cannot insert NULL into ("SYSTEM"."EMPS"."EMPID") ORA-06512: at "SYSTEM.TSCP1", line 4 ORA-06512: at line 1 ] Check to ensure that the API is defined in the database and that the parameters match the signature of the API. Contact oracle support if error is not fixable. </summary>
<detail> Internal Exception: java.sql.SQLException: ORA-01400: cannot insert NULL into ("SYSTEM"."EMPS"."EMPID") ORA-06512: at "SYSTEM.TSCP1", line 4 ORA-06512: at line 1 Error Code: 1400</detail>
</detail>
</Fault>
I want to create only one wsdl for all the strored procedures. -
How to call Packaged Stored Procedure in JDBC Adapter?
hello frnds,
I m working on a SAP R/3 -> XI -> Oracle scenario. Here on receiver side i m using JDBC Adapter in which i m using a stored procedure.
I have my stored procedure in a Package. Example : package "PKG_SPARES_VOR_UPLOAD" and in that stored procedure "pr_spares_vor_po_hdr_upload".
i have checked that if i write this stored procedure outside the package then it works fine... but if i put it into the package then it is giving me error that ....
" Receiver Adapter v2112 for Party '', Service 'BS_ORADEV':
Configured at 2006-08-16 10:12:14 GMT+05:30
History:
- 2006-08-16 11:02:04 GMT+05:30: Error: TransformException error in xml processor class: Error processing request in sax parser: Error when executing statement for table/stored proc. 'PR_SPARES_VOR_PO_HDR_UPLOAD' (structure 'statement'): java.sql.SQLException: ORA-06550: line 1, column 7:
PLS-00201: identifier 'PR_SPARES_VOR_PO_HDR_UPLOAD' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored ".
please help me out with this problem.
Thankx,
Regards,
AudumbarHi,
I have the same problem to call a stored Procedure in a Package.
If my procedure is not in a package, everything is right.
And I musn't indicate all the name, because I musn't put '.' in the name (of the procedure), in my DT on XI.
It would be so nice to have an answer.
Rémi -
How to limit the response rows while invoking a stored procedure from OSB 10gR3
Dear Experts,
I am trying to limit the response while invoking a stored procedure from OSB via DB adapter.
Here the stored procedure returns cursors as response. I tried using the MaxTransactionSize propertiy (which is used for polling the database option in DB adapter).
We are investigating the ways to protect the application from response containing huge number of rows.
Is there any way to restrict the number of rows returned in each and every cursor while invoking the stored procedure via DB adapter?
Thanks
RamHi James ,
I want to know how to run stored procedure using jca adapter in OSB11g.
I am new to stored prcoedure,will be great if you could share some example on it as above.
Req: Single input xml will be posted on queue ,need to perform 3 DB operation (with same input):
1.Insert operation to insert master table contents.
2.select the primary key column value from master table for the last inserted record.
3.Need to insert primary key column value + other fields frm same xml file to child table.
Pls assist me on how to create a simple stored procedure and to run the same with OSB 11g.I am familiar with creation of DB adapter using Jdeveloper,we have option to perform insert and to call stored procedure here,will it be useful for this scenario?
Edited by: Anitha R on Nov 21, 2010 9:30 PM -
Need an Example for How to call a Stored Procedure using DBAdapter
Hi
I am trying to invoke a stored procedure in Oracle Database using DB Adapter. I have successfully invoked and when i try to run it i got the following error.
oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: Client received SOAP Fault from server : Exception occured when binding was invoked.
Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'ExecuteScript' failed due to:
Stored procedure invocation error.
Error while trying to prepare and execute the RESONANCEDEMO.SP_QUERY API.
An error occurred while preparing and executing the RESONANCEDEMO.SP_QUERY API. Cause: java.sql.SQLSyntaxErrorException: ORA-00917: missing comma
ORA-06512: at "RESONANCEDEMO.SP_QUERY", line 7
ORA-06512: at line 1
Check to ensure that the API is defined in the database and that the parameters match the signature of the API.
This exception is considered not retriable, likely due to a modelling mistake.
To classify it as retriable instead add property nonRetriableErrorCodes with value "-917" to your deployment descriptor (i.e. weblogic-ra.xml).
To auto retry a retriable fault set these composite.xml properties for this invoke: jca.retry.interval, jca.retry.count, and jca.retry.backoff.
All properties are integers.
I am trying to have a Out Parameter in my Procedure. Please provide me an example on how to invoke a Stored Procedure using Out Paramter using DB Adapter.Hi,
It looks more like an Oracle error and not within the DbAdapter.
Try to test first your procedure from PL/SQL or other developer you are using.
Arik -
When to use "CALL" to invoke a stored procedure?
I am kind of confused on how to invoke a stored procedure.
I have a stored procedure, let's say, "X" in package "P".
I am not sure when I should use "BEGIN CALL X.P(args); END;" or when I should just call "BEGIN X.P(args); END;".
Sometimes the first one works, sometimes the second one does. What am I getting wrong? When should I use "CALL" and when I should not?Well, did you try it? And coule of hints:
SQL> create or replace procedure p1 is begin null; end;
2 /
Procedure created.
SQL> begin call p1; end;
2 /
begin call p1; end;
ERROR at line 1:
ORA-06550: line 1, column 12:
PLS-00103: Encountered the symbol "P1" when expecting one of the following:
:= . ( @ % ;
The symbol ":=" was substituted for "P1" to continue.
SQL> begin p1; end;
2 /
PL/SQL procedure successfully completed.
SQL> call p1;
call p1
ERROR at line 1:
ORA-06576: not a valid function or procedure name
SQL> call p1();
Call completed.
SQL> SY.
P.S. Last hint - CALL is SQL, not PL/SQL statement. -
Java web service to invoke a stored procedure in the database
Hi
Does anybody have a example Java web srevice to invoke a stored procedure in the database
regards
Edited by: hrishy on May 20, 2011 12:11 AMhrishy wrote:
Thanks i have modified the title so its easy to comprehendWrite the two parts mentioned above and post if you get problems with your code.
First write code that calls the stored procedure and test that to make sure that it works.
Then write a simple webservice and test it out to make sure it works. The integration should be trivial after that. -
How to use a stored procedure as a datasource in Crystal Report for Eclipse
Hi All,
I've written a stored procedure in oracle 10g with few input parameters and one refcursor output parameter. I want to use this stored procedure as a data source for creating a report in "Crystal Report For Eclipse 3.6.0".
When I tried to add this stored procedure to the report using the connection explorer, I don't see any option to do this. But when I try to add any table, it shows options like "Add to the current report"....
Can anybody assist me how to use a stored procedure as a data source in "Crystal Report For Eclipse"?
Which driver should I use to connect to the oracle database? I tried using JDBC Driver for Oracle.
Thanks in advance.Did you solve your problem? How did you do?
-
How to call a stored procedure from WorkShop
Hello Everyone .. I'm quite new with WebLogic 8.1 & WorkShop, so please bare with
me .. Today I'm simply trying to find out how to call a stored procedure from
within workshop, using any of the DB Controls .. I see workshop provides a way
create a Java Control, Rowset Control, but it wont easily allow for a stored procedured
to be entered in place of the inline query .. Perhaps I've over looked it. Any
advise on the best way to tackle this task will be appreciated.
AtahualpaAtahualpa--
Maybe this will help:
http://edocs.bea.com/workshop/docs81/doc/en/workshop/guide/controls/database/conStoredProcedures.html
Eddie
Atahualpa wrote:
Hello Everyone .. I'm quite new with WebLogic 8.1 & WorkShop, so please bare with
me .. Today I'm simply trying to find out how to call a stored procedure from
within workshop, using any of the DB Controls .. I see workshop provides a way
create a Java Control, Rowset Control, but it wont easily allow for a stored procedured
to be entered in place of the inline query .. Perhaps I've over looked it. Any
advise on the best way to tackle this task will be appreciated.
Atahualpa
Maybe you are looking for
-
Since I downloaded the new operating system (6.1.3) to my iPod touch I can no longer update my Apps or download and new Apps. My password is recognized but when touching the update (all) button or download, the screen immediately reverts to the earl
-
Hello all, I need to place an invoice with two different kinds of items: - Material - like food; - Assets - like a chair; I should mark the flag of the field "Invest.ID" so that the Assets item can be posted in an Asset Account. However, if I mark th
-
Problem in Schemas import from one database to another
Hi, I have to import the schemas from one database (10g release 1) to another database (10g release 1). But the problem is that through simple import (imp) the system privileges, object privileges & other things are not importing to import file. Ther
-
HT5622 how can you add a group to contacts to email or message?
How can you add a group to your contacts to email or message a group?
-
I've never had to put in my password on my Mac when it starts up. For some reason it has started asking for my password every time I start up my computer. Must have been in the latest update or something. I know my password I just find it annoying to