Running a stored procedure in JDev initiates a bpel compile
When I want to run a stored procedure from the connections area to test it this action always initiates a bpel compile for the highlighted bpel process in the applications palette. It is annoying and time consuming but if the bpel compile fails I can't run the stored procedure either.
What is with this 'feature'?
I'm still plagued by this 'symptom/feature'. Is there any workaround?
Similar Messages
-
Error while running a stored procedure in SBO
Hi all,
i have a stored procedure that i run in my sbo. When i run the stored procedure i get the following error :
1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Warning: Null value is eliminated by an aggregate or other SET operation.
'Servicecontracten' (OCTR) 05/10/2011 18:03:36 -1
i launch my sp like this :
exec [spu_DS_HistProjektUserVeldenViewBetalingen] (i pass no parameters while testing. i put them fix in my sp)
my stored procedure looks like this :
USE [def1]
GO
/****** Object: StoredProcedure [dbo].[spu_DS_HistProjektUserVeldenViewBetalingen] Script Date: 10/05/2011 18:03:05 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- Batch submitted through debugger: SQLQuery2.sql|8|0|C:\Users\kvanhauwaert\AppData\Local\Temp\~vs2A98.sql
ALTER PROCEDURE [dbo].[spu_DS_HistProjektUserVeldenViewBetalingen]
/* @project_number varchar(20),
@billperiod_type varchar(10) */
AS
BEGIN
SELECT isnull(lijnnr,0) as lijnnr, isnull(fase,'') as fase, isnull(factuurbedrag,0) as factuurbedrag,
isnull(billperiod_type,'') as billperiod_type
INTO #tempDS_HistProjektUserVeldenViewBetalingen
FROM DS_HistProjektUserVeldenViewBetalingen t1
WHERE project_number = '08053A'
SELECT isnull(lijnnr,0) as lijnnr, isnull(fase,'') as fase , isnull(factuurbedrag,0) as factuurbedrag,
(select sum(isnull(factuurbedrag,0)) from #tempDS_HistProjektUserVeldenViewBetalingen where lijnnr <= t1.lijnnr) as lijntotaal,
(select sum(isnull(factuurbedrag,0)) from #tempDS_HistProjektUserVeldenViewBetalingen where lijnnr <= t1.lijnNr and billperiod_type = '110-01' ) as lijntotaalKetting
FROM #tempDS_HistProjektUserVeldenViewBetalingen t1
WHERE fase,'') is not null
ORDER BY t1.fase
DROP TABLE #tempDS_HistProjektUserVeldenViewBetalingen
END
GO
Somebody has a clue what i'm doing wrong ?
thnxThanks Gordon for your reply.
i've changed my sp to :
USE [def1]
GO
/****** Object: StoredProcedure [dbo].[spu_DS_HistProjektUserVeldenViewBetalingen] Script Date: 10/05/2011 18:56:34 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- Batch submitted through debugger: SQLQuery2.sql|8|0|C:\Users\kvanhauwaert\AppData\Local\Temp\~vs2A98.sql
CREATE PROCEDURE [dbo].[spu_DS_HistProjektUserVeldenViewBetalingen]
/* @project_number varchar(20),
@billperiod_type varchar(10) */
AS
BEGIN
SELECT isnull(lijnnr,0) as lijnnr, isnull(fase,'') as fase, isnull(factuurbedrag,0) as factuurbedrag,
isnull(billperiod_type,'') as billperiod_type
INTO #tempDS_HistProjektUserVeldenViewBetalingen
FROM DS_HistProjektUserVeldenViewBetalingen t1
WHERE isnull(project_number,'') = '08053A'
SELECT isnull(lijnnr,0) as lijnnr, isnull(fase,'') as fase , isnull(factuurbedrag,0) as factuurbedrag,
(select sum(isnull(factuurbedrag,0)) from #tempDS_HistProjektUserVeldenViewBetalingen where isnull(lijnnr,0) <= isnull(t1.lijnnr,0)) as lijntotaal,
(select sum(isnull(factuurbedrag,0)) from #tempDS_HistProjektUserVeldenViewBetalingen where isnull(lijnnr,0) <= isnull(t1.lijnNr,0) and isnull(billperiod_type,'') = '110-01' ) as lijntotaalKetting
FROM #tempDS_HistProjektUserVeldenViewBetalingen t1
WHERE isnull(fase,'') <> ''
ORDER BY t1.fase
DROP TABLE #tempDS_HistProjektUserVeldenViewBetalingen
END
GO
but that didn't solved my problem. Any other idea's ?
kind regards.
Kurt -
Running a stored procedure using isqlPlus
I have written a simple stored procedure which takes EMPLOYEE_ID as IN parameter returns EMPLOYEE_FIRST_NAME as OUT parameter (For Learning purpose only)
How do I run this stored procedure using isqlPlus.
Below is my stored procedure.
CREATE OR REPLACE PROCEDURE "HR"."MY_PROC_2" (
EMPLOYEE_ID_NUM in NUMBER,
EMPLOYEE_FIRST_NAME out VARCHAR2
as
begin
Select FIRST_NAME into EMPLOYEE_FIRST_NAME from Employees
where Employee_ID = EMPLOYEE_ID_NUM;
return;
end;did you run that same procedure in SQL*Plus and it functioned ?
Joel P�rez -
How to run a stored procedure in TOAD
Hello,
I created a simple stored procedure in the procedure editor in TOAD. It's just a simple 'Hello World' output statement. Here is the code:
create or replace procedure new_proc is
greetings varchar2(20);
begin
greetings := 'Hello World';
dbms_output.put_line(greetings);
end;
The procedure created fine, but when I try to call it in the procedure editor or in the SQL Editor, both tools act as if the procedure cannot be found, and I get an error message.
In SQL Editor, I type in:
exec new_proc;
and it says that "new_proc" is invalid.
Does anyone know how to run this procedure in TOAD?
Thanks,
Peter
Message was edited by:
P. SwansonDon't know about TOAD but this is how it is in SQL*Plus.
SQL> create or replace procedure new_proc is
2 greetings varchar2(20);
3 begin
4 greetings := 'Hello World';
5 dbms_output.put_line(greetings);
6 end;
7 /
Procedure created.
SQL> set serveroutput on
SQL>
SQL> exec new_proc ;
Hello World
PL/SQL procedure successfully completed.
SQL>Message was edited by:
Kamal Kishore -
Running a Stored Procedure in Oqacle SQL Developer
Hi All,
Could anybody elaborate on the procedure to execute a Stored Procedure in Oracle SQL Developer. I feel we need to configure the output for the DBMS_OUTPUT
Cheers,
Bellon the procedure to execute a Stored Procedure in Oracle SQL Developer.Select the procedure or package spec in the Connections panel. Right click with the mouse. This will bring up a panel with an anonymous block to run the code and property sheets to populate the parameters, etc.
Cheers, APC -
Error while fetching Stored procedure from JDev DB Adapter
Hello
I am facing a problem while configuring stored procedures from Jdeveloper using DB Adapter. I am using Sql Server 2005 as my database,Jdeveloper version is 10.1.3.1.Bpel Version is 10.1.3.3. Connection to the Sqlserver 2005 database is fine, but it shows only views and tables. I get the following error message when I try to add the sql stored procedure call
"An error occured while obtaining the database schemas.Verify that the database connection is valid , and is supported"
Can someone help me please.
Thanks,
Phani
Edited by: Phani on Oct 28, 2008 11:30 AMI think you have two problems here. First, JDeveloper 10.1.3.1 doesn't support SQL Server stored procedures. There is a command-line utility that you can use to generate the required BPEL artifacts (WSDL and XSD). Second, you're using a 10.1.3.1 design-time with a 10.1.3.3 runtime. These are not compatible so you will likely run into namespace issues when you try to run your BPEL processes. You should upgrade your JDeveloper to 10.1.3.3. JDeveloper will support third-party databases in 11.1.1 including SQL Server 2005 (but not 2000), IBM DB2 v8.x and v9.x, DB2 AS/400, and MySQL. JDeveloper will support MySQL v5.2.6 and above because the INFORMATION_SCHEMA.PARAMETERS table was added at that time. The PARAMETERS table does not exist in MySQL versions prior to v5.2.6 so you will have to use the command-line utility.
-
Problem in package run inside stored procedure
i have ssis package to import data from excel to database.
package is running correctly inside BIDS.
but when i run package under stored procedure it is giving error :
Error: Code: 0xC0014023
Source: loop sheets in excel
Description: The GetEnumerator method of the ForEach Enumerator has failed with error 0x80040E21 "(null)". This occurs when the ForEach Enumerator cannot enumerate.Hi BI_DEV_19,
Does the package connects with network resources? If so, try set the job step to run under a proxy account that is created based on a domain account. In BIDS, the package runs under the Windows account that you log onto the operating system.
The error message “The GetEnumerator method of the ForEach Enumerator has failed with error 0x80040E21” may occur because the ADODB.dll file is corrupted or missing. You can check whether the ADODB.dll exists in the following folder:
C:\program files (x86)\Microsoft.NET\Primary Interop Assemblies
In this situation, you can back up the existing ADODB.dll file, and copy one from another machine to this server.
Regards,
Mike Yin
TechNet Community Support -
Run a Stored procedure in Orchestrator Query Database
I dont see an option where a stored procedure can run in Database query.
Instead of putting a query, I would like to have a stored procedure run at different intervals and then send out the notification.
If it is not in Database Query, Where do I find an option for Stored proc.?HI Sd,
You need to do following for using Stored procedure as polling statement
1. Right click the project and select Add-->Add Generated Items
2. Then select "Consume Adapter Service"
3. Now the Consume Adapter Service wizard wants us to provide it the required information, so firstly select "sqlbinding" against the label Select a binding.
4. Click the Configure button, on security tab select the Client credential type .
5. On URI Properties tab:
-->Type the name of the server where your database is located
--> Provide the name of the database you want to use.
--> In front of InboundId , type the name whatever you want so as to identify the purpose of polling. It acts as a unique identifier which helps in avoiding conflict when you poll same tables for some other purpose.
6. Binding Properties tab:
Select Polling from the dropdown list in front of InboundOperationType
Give a valid PolledDataAvailableStatement such as (Select count (*) from table1)
"exec MyStoreProcedureName" from receive location polling statment
Thanks
Abhishek -
How to run oracle stored procedure dynamically
How can I call a stored procedure dynamically. My requirement is to call a stored procedure based on user selection on a parameter screen. I do not want to hardcode proocedure name, but rather call dynamically.
If I use the same methodology as of running dynamic sql's Iam getting an error.
"invalid SQL statement after call to procedure"
v_cursorid INTEGER;
v_cnt NUMBER;
v_sqlstring VARCHAR2(2000);
v_sqlstring := 'execute insert_job_status('''||TO_CHAR(SYSDATE,
'dd-mon-yyyy HH:mi:ss')||''');';
v_cursorid := dbms_sql.open_cursor;
dbms_sql.parse(v_cursorid, v_sqlstring, dbms_sql.v7);
--cnt := dbms_sql.execute(v_cursorid);
dbms_sql.close_cursor(v_cursorid);EXECUTE is a SQL*Plus command. try
v_sqlstring := 'begin insert_job_status('''||TO_CHAR(SYSDATE,
'dd-mon-yyyy HH:mi:ss')||'''); end;';Cheers, APC -
ORA-21700 Error when running C# stored procedure to do a spatial query
Hi All
I'm having trouble running a C# stored procedure that (via another object) that falls over running a spatial query with the following error.
OAR-21700 object does not exist or is marked for delete
If I take the sql of the spatial query out and run it separately in SqlPlus it runs as expected.
If I use the object that executes the spatial query via NUnit (i.e. executed on the client, rather than the server) it also works as expected.
Can anyone help? Is there some issue using Oracle Spatial queries with the Oracle Database Extensions for .NET?I can indeed. Here is a slightly simplified version:
SELECT secondary_catch.mi_prinx AS primarykey
FROM mapinfo_data.secondary_catch
WHERE sdo_relate (secondary_catch.geoloc,
(SELECT geoloc
FROM training_6.building_polygons
WHERE building_id = 10002507117),
'mask=anyinteract querytype=WINDOW'
) = 'TRUE'
Interestingly, if I attempt to run this query inside a C# stored procedure using the implicit context connection (i.e. OracleConnection.ConnectionString = "context connection=true") it fails with the error I described above.
If however I create a new connection and connect as a regular user on my database, the query works correctly.
So in that sense I have a workaround, but I'd like to avoid using it if I can as creating a new explicit connection is an overhead I can do without. -
Help with running a stored procedure
Hi, could anybody help me with debugging this stored procedure:
extraction_date in varchar2
as
begin
execute immediate '
declare
/* Output file handler */
fileHandler UTL_FILE.FILE_TYPE;
asset_id VARCHAR2(60) := '''';
cursor c_table is
SELECT "ASSET ID"
FROM REUT_MAIN_BOND
WHERE MATURITY > TO_DATE(' || extraction_date || ', "MM-DD-YYYY");
row c_table%ROWTYPE;
begin
fileHandler := UTL_FILE.FOPEN(''TEMP'', ''northfielddescupdate.in'', ''w'',32000);
for row in c_table
loop
asset_id := row.ASSET;
UTL_FILE.PUTF(fileHandler, ''asset_id'', ''\n'');
end loop;
UTL_FILE.FCLOSE(fileHandler);
end;';
commit;
end;
when I run it - SQL> exec create_in_file('08102004')
it gives me the following errors:
ERROR at line 1:
ORA-06550: line 8, column 11:
PL/SQL: ORA-06553: PLS-103: Encountered the symbol "CALL" when expecting one of
the following:
<an identifier> <a double-quoted delimited-identifier>
ORA-06553: PLS-112: end-of-line in quoted identifier
ORA-06550: line 7, column 2:
PL/SQL: SQL Statement ignored
ORA-06550: line 6, column 8:
PLS-00341: declaration of cursor 'C_TABLE' is incomplete or malformed
ORA-06550: line 10, column 5:
PL/SQL: Item ignored
ORA-06550: line 15, column 14:
PLS-00364: loop index variable 'ROW' use is invalid
ORA-06550: line 15, column 2:
PL/SQL: Statement ignored
ORA-06512: at "PETAR_NORTHFIELD.CREATE_IN_FILE", line 6
ORA-06512: at line 1
Thank you for your helpQ #1 (and possibly the only question) - why are you using NDS for this?
-
FOR XML will not run in stored procedure but will in Query
The following is the Query and stored procedure for a XML export. The query runs find and returns a clickable link. The stored procedure does not.
Stored Procedure
USE [db]
declare @XmlOutput1 xml
set @XmlOutput1 =
(SELECT incident_num,
unit_id, unit_status_datetime,
unit_status_remarks
FROM unit_status_hist
where convert(varchar,unit_status_datetime,102)
=
convert(varchar,getdate(),102)
FOR XML
RAW)
select @XmlOutput1
Query:
use db
SELECT incident_num, unit_id,
unit_status_datetime, unit_status_remarks
FROM unit_status_hist
WHERE convert(varchar,unit_status_datetime,102)
=
convert(varchar,getdate(),102)
for XML
auto, Elements
Any help would be greatly appreciated. Thank you.The following is the Query and stored procedure for a XML export. The query runs find and returns a clickable link. The stored procedure does not.
Stored Procedure
USE [db]
declare @XmlOutput1 xml
set @XmlOutput1 =
(SELECT incident_num,
unit_id, unit_status_datetime,
unit_status_remarks
FROM unit_status_hist
where convert(varchar,unit_status_datetime,102)
=
convert(varchar,getdate(),102)
FOR XML
RAW)
select @XmlOutput1
Query:
use db
SELECT incident_num, unit_id,
unit_status_datetime, unit_status_remarks
FROM unit_status_hist
WHERE convert(varchar,unit_status_datetime,102)
=
convert(varchar,getdate(),102)
for XML
auto, Elements
Any help would be greatly appreciated. Thank you.
I cant see any stored procedure here
both of the code posted are queries only
also clickable link will come in only SSMS query window. Are you trying to execute this from some application?
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Report with stored proc running multiple stored procedures with insert statement
Hi,
I wonder if this is possible in SSRS ... I use the 2012 version (Data Tools).
I have a report that triggers a stored procedure. See below.
Within this SP there are 2 insert statements getting data from 2 other SP's.
When I make a dataset referring to the main SP below, SSRS does not show me any fields at all.
Is this because it's a SP with insert statements and nested SP's?
At the end of the SP I make a select so it should see all the fields.
The parameters @month and @costcenter are multivalue params. I use a special function to convert the multivalues, selected in the report, into a string to pass it correctly to the query (comma separated).
USE [TestDB]
GO
/****** Object: StoredProcedure [dbo].[_Pink_SP_StandingsRegisterDataset] Script Date: 15-4-2014 13:31:30 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[_Pink_SP_StandingsRegisterDataset]
@year INT,
@month NVARCHAR(50),
@costcenter NVARCHAR(500),
@GLaccount NVARCHAR(9)
AS
BEGIN
/* Remove existing content*/
DELETE FROM _Pink_TB_StandingsRegister
/* Add records part 1 */
INSERT INTO _Pink_TB_StandingsRegister
EXEC _Pink_SP_StandingsRegister @year, @month, @costcenter, @GLaccount
/* Add records part 2 */
INSERT INTO _Pink_TB_StandingsRegister
Type,
Row,
Year,
Month,
YearDatetable,
MonthDatetable
EXEC _Pink_SP_StandingsRegisterDatetable @year
/* Select all records */
SELECT *
FROM _Pink_TB_StandingsRegister
END
GOHi bijntjede2e,
After testing a similar scenario in my own environment, it works well in Reporting Services. In my test, the stored procedure returns all the fields from _Pink_TB_StandingsRegister table in the dataset. Then I select some values from year, month, costcenter
and Glaccount parameters, it inserts some values in the _Pink_TB_StandingsRegister table. So we can use this stored procedure as the dataset in the report.
In order to solve the problem more efficiently, I need to clarify some information.
Are you pass multiple values parameter to one stored procedure correctly? We can refer to the following thread:
http://social.technet.microsoft.com/Forums/en-US/dbdfa101-cccc-4e9f-aa50-566dc5ebcc27/ssrs-2008-r2-report-dataset-call-a-stored-procedure?forum=sqlrep
What results are you get when executing the stored procedure in SQL Server Management Studio? Is it works well? We should double those stored procedures.
If there are any misunderstanding, please elaborate the issue for further investigation.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
CR2008 - How to run a Stored Procedure using Command Window
Hi everybody,
To generate my reports, I always adopted the foll. strategy:
(a) Create a SQL Stored Procedure (with Input parameters) in Management Studio
(b) Design a report in Crystal Report using the SP as datasource
I want to experiment something different.
Instead of using the SP as datasource, I wish to use the SQL Command window in CR2008.
I have never succeeded to make it work.
So, I am giving a simple example below , listing all my steps, so you can spot where my problem is:
(A) Create a simple Stored Procedure in SSMS called [dbo].[usp_2014]
USE [SIMUL02]
GO
/****** Object: StoredProcedure [dbo].[usp_2014] Script Date: 07/21/2014 12:40:22 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[usp_2014] @Project nvarchar(15)
AS
SELECT DocEntry, DocDate, U_ShipDept, DocTotalSy FROM ORDR
WHERE U_ShipCode = @Project
(B) Create a Crystal Report called TEST.rpt
I typed the following in the Command Window (see Capture.jpg)
{CALL "SIMUL02"."dbo"."usp_2014";1({?Project1})}
(C) I verify the database. I get this error message:
Failed to retrieve data from the database
Invalid character value for cast specification
I am blocked from here.
Please let me know what has gone and what I must do to continue my tests.
Thanks
Leon LaiHi Abhilash
I copied and pasted your formula:
Exec "SIMUL02"."dbo"."usp_2014" '{?Project}'
Now it works!
So, probably I typed something wrong, and did not notice
Thanks a lot for your patience and great reply
Closing
Leon Lai -
Sqlbase - how to run a stored procedure with SYSDATE argument
Hi, everyone!
I'm trying to execute a stored procedure :
cstmt = con.prepareCall("{ call PR_MYPROCEDURE(?, SYSDATE-1, SYSDATE) }");
cstmt.setInt(1,1);And i get and SqlException - java.sql.SQLException: prepareCall(): An unexpected character 'S' found.
Is there any way to pass a SYSDATE like argument?the problem that for sqlbase current date function is SYSDATE'sqlbase' the database?
I couldn't ensure that the syntax that you posted looks correct but it seems possible.
That would suggest there is a driver problem.
Best I can suggest is modify the proc so it expects nulls for two parameters and then it creates the expressions that you are passing. Or create java Timestamp values and pass those.
Maybe you are looking for
-
HP Photosmart C410a drivers cannot be found by windows/HP solution center.
Hi, HP Photosmart Premium Fax e-All-in-One Printer - C410a Product Number: CQ521A I updated my computers to Windows 7 64 bit and now my c410a is basically useless to both computers that have it installed. I want to start this with my girlfriend's
-
Permitted characters 'ALL_CAPITAL'
We need to accept a large number of unusual characters, and hit the limit on the number of characters we can enter. Note 173241 explains that you can use ALL_CAPITAL (on its own) to get round the limit. This seems to work fine, but I'd like to know
-
everytime i try to track using Mocha in my AE6, it comes up with this error message.. License Error: mocha AE CS6 must only be launched from After Effects Please visit our FAQ at http://www.imagineersystems.com/support/faq for further information. an
-
Hi, I was wondering if there's a way to eliminate duplicate artist in an Ipod Classic?
Hi, I was wondering if there's a way to eliminate duplicate artist in an Ipod Classic?
-
Older Macbook connects to Time Capsule, but not really
Problem: My wife's Macbook (Intel Core Duo) is able to connect to my new Time Capsule, but it quickly loses its connection. It doesn't really disconnect though - it still says that it is connected with full reception, but there is no internet, or tim