How to run stored procedure IC Data / to define according script logic file
We want to execute the stored procedure IC Data before the IC Booking. Could anybody tell me, how we have to define the script logic file in detail?
We try it with this code (that runs without any error, but 0 rows are calculated, 0 rows are updated)
*Run_stored_procedure=spicdata('%App%','%C_Category_Set%','%time_set%','','%entity_set%','','','Input','I','%logtable%','%scopetable%')
*commit
We also had tried with this code:
*Run_stored_procedure=spicdata('%App%','%C_Category_Set%','%time_set%','','%entity_set%','','','','','%logtable%','%scopetable%')
*commit
step 1.
Create a store procedure in back end.
step2.
Create a ssis package to execute the store procdure.
step3.
call this ssis pacakge in the data manager package and run the package.
Similar Messages
-
HOW TO CREATE STORED PROCEDURE IN DATA INTEGRATOR
Hi to every one,
Can any one help in giving me a solution for creating stored procedure in Data Integrator.
I m new to this fieldHi nath,
Firstly are you using MYSQL or Oracle as the database,if its oracle database then follow this
http://obiee101.blogspot.com/2008/01/obiee-using-oracle-stored-procedure-to.html
http://oraclebizint.wordpress.com/2008/02/20/oracle-bi-ee-101332-executing-stored-proceduresfunctions-before-reports-before-report-triggers-and-global-temporary-tables/
EXEC [DATABASE_NAME].[SCHEMA_NAME].[PROCEDURE_NAME][DATABASE_NAME] --> is the database name your creating your procedure
[SCHEMA_NAME]-->is the user with which your creating
[PROCEDURE_NAME] --> the name given to procedure
You dont know how to get those run this SQL in TOAD and see select sys_context('userenv','db_name'), sys_context('userenv','session_user') from dual
(OR) open you connection pool properties window in RPD,you will get the DB name and the user name as the schema name
hope answered your question.
CHeers,
KK -
How to run stored procedure in DOS command line????
Hi,
I want to run a stored procedure in DOS command line?
(My_Stored_Procedure is the stored procedure that I want to run )
This is what I did in DOS prompt
C:\>sqlplus scott/tiger exec lMy_Stored_Procedure <Return>
Obviously it is NOT working. Please send me the correct way to fix this.
Thanks so much in advance for helping.
CuongBilly Verreynne wrote:
BluShadow wrote:
True Billy, but even Windows hasn't completely got away from using the "DOS" word...Yeah - the command line/shell environment is based on that of the old DOS command interpreter. But Microsoft does not make the mistake of call it DOS.
In fact, with earlier versions of Windows NT, a 16bit DOS real-mode virtual machine was supported. This was very kewl.
Running a large BBS with multiple nodes back then required a DOS machine per node, an IPX network, and a Novell file server.Novell Netwars. ;)
Ahhhh! good old DOS... so many good programs written at that low level, outside the Windoze environment.Yeah.. cut my teeth on writing code for DOS. Still have all my old BIOS and assembler manuals for it. Wrote my own screen s/w (write to a buffer and then move it into the video buffer, instead of writing char wise to the video buffer via interrupts), mucking about with my own concurrent threading model (using very simplistic cooperative multitasking) and so on. Heck, wrote tons of s/w on DOS... :-)Yeah I've still got a copy of my old machine code programs for writing to buffers and screen memory switching for smooth animation. Run them nowadays and they run like sh!t off a shovel. And all my old coursework including writing an interpreted language and multi-window (dos based windows) editor, parser and the code to execute the language and display the output. Oooo, and so much other stuff.
Awesome back then as you got really intimate with the o/s and hardware. This is sorely lacking today in environments like Java. And I think the reason why so much code written today is less than optimal - to put it kindly.Exactly. Started for me on the Sinclair zx81 (writing Basic), then the Sinclair Spectrum (Basic and Assembly), then Sinclair QL (yes I really had one!) and then the BBC Master 128K (where I got to writing my own rom filing system and creating my own eproms, to integrate with the word processor for additional printing features etc. as well as storing games on rom for speedy loading - and I still have it and it still works!)
It's that level of working with the underlying memory and assembly language that gives you the understanding of how values are passed between code using the stack and registers, and how memory allocation and referencing is done etc. As you say... it's missed in a lot of todays teaching, which just seems too high level and misses the basic concepts of things such as datatypes and why they are different. I bet half the modern programmers wouldn't have a clue how to do multiplication or division of binary numbers using the carry flag. -
How to run stored procedure in run-time not in design
hello:
I have download the ODT software
and i installed VS 2003 environment
amd i have oracle 9i on the server and oralce client on my computer
and I know how to run the ODT inside the VS2003 and how to use it
I built a package and inside it a procedure that does not take any parameter
PROCEDURE "TEST1" IS
BEGIN
insert into emp (empno,ename)
values (3003,'jon');
END "TEST1";
this procedure is valid and I can run it in ODT (by right click over the procedure name and select "Run")
but when I drag it and drop this procedure on a form in application I have a dialog with errors that's not understandable
for example:
ORA-06550: line 1, column 27
PLS-00315: PL/SQL TABLE Declarations must currently use binary_integer indexes
and many other errors
ok I want to know how I can call the procedure in the code and give to it the in parameters and then get the out parameters
I hope to find replay
thank youHi,
You have to take care of certain measures other thatn just drag and drop the Oracle procedure to the .NET form.
Following is a simple code to call an Oracle procedure from the C#.Net form
============================================================
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Data;
using Oracle.DataAccess.Client;
using Oracle.DataAccess.Types;
namespace TEST1
public class CallingProcs : System.Web.UI.Page
protected System.Web.UI.WebControls.Button Button1;
protected System.Web.UI.WebControls.TextBox txtYear;
OracleConnection conn;
private void Page_Load(object sender, System.EventArgs e)
// Put user code to initialize the page here
string oradb = "Data Source=ORA1;User Id=SCOTT;Password=TIGER;";
conn = new OracleConnection(oradb);
conn.Open();
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
InitializeComponent();
base.OnInit(e);
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
this.Button1.Click += new System.EventHandler(this.Button1_Click);
this.Load += new System.EventHandler(this.Page_Load);
#endregion
private void Button1_Click(object sender, System.EventArgs e)
//OracleCommand dbcmd = new OracleCommand();
OracleCommand dbcmd = conn.CreateCommand ();
dbcmd.CommandType = CommandType.StoredProcedure;
dbcmd.CommandText = "TEST1";
try
dbcmd.ExecuteNonQuery ();
Response.Write("Excecuted succesfully");
catch(Exception ex)
Response.Write(ex.Message);
============================================================
Most of the above code is generated automatically. I am using Visual Studio .NET 2003 , C# for it.
The design view of the form contains a button named 'Button1' and the code is aimed to call the procedure 'TEST1' on clicking the button.
Hope this will give you a start to using oracle from .NET -
How to call stored procedure in data services?
Hi, all,
I'm a newbie and am trying to evaluate Flex for our
development environment. We use a lot of Oracle stored packages in
the database to process the business logic. However, I can't seem
to find a good example to call a stored procedure in flex data
services.
Here is a part of my data-management-config.xml:
<destination id="oracle2">
<adapter ref="java-dao" />
<properties>
<use-transactions>true</use-transactions>
<source>flex.data.assemblers.SQLAssembler</source>
<scope>application</scope>
<metadata>
<identity property="GKEY"/>
</metadata>
<network>
<session-timeout>20</session-timeout>
<paging enabled="false" pageSize="10" />
<throttle-inbound policy="ERROR" max-frequency="500"/>
<throttle-outbound policy="REPLACE"
max-frequency="500"/>
</network>
<server>
<database>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<url>jdbc:oracle:thin:xxxxxxxxxxx:1521/racdev</url>
<login-timeout>15</login-timeout>
</database>
<actionscript-class>History</actionscript-class>
<fill>
<name>by_nbr</name>
<sql>select to_char(POSTED,'dd-Mon-yyyy hh:mi:ssAM')
POSTED, GKEY, EQUSE_GKEY,WTASK_ID,VSL_ID,VOY_NBR,STATUS from
equipment_history where eq_nbr = #sNbr# order by posted
desc</sql>
</fill></server>
</properties>
</destination>
How do I call a stored procedure named
pk_equipment_history.get(eq_nbr varchar2, o_resultset out
sys_refcursor) in place of the sql select in the above file? The
o_resultset output parameter will return exactly the same result as
the sql. How do I bind the output parameter?
TIAHi,
Your question isn't related to Java Programming and should be asked in a [Hibernate forum|http://forum.hibernate.org/]
Kaj -
How to Run Stored Procedures from Teststand
I am trying to get teststand to run an SQL stored procedure but I always get the following error
Error executing substep 'Post'.
The following SQL command failed: 'EXECUTE cdt_st_test...'
Native error code -2147217900 0x80040e14
Microsoft OLE DB Provider for SQL Server:
Syntax error or access violation
It is a test stored procedure that doesn't pass any parameters.
Which steps must I use and how do I pass parameters.I have sussed it now. I was setting the "Command Type" to stored procedure instead of default. I changed it back and did "EXECUTE cdt_st_test" and it works. I have also added the parameters there as well.
-
How run stored procedure in Crystal report?
I have table from query in report, but first I need to run stored procedure in report.
How I need to do it?previous post not correct
this is correct
When I need to run my report
1) I need to run storeed procedure ( the stored procedure will update some tables)
I just used Add Command and added stored procedure in Database Fields, but I think the procedure doesn't work in report. Maybe I need add new commant and write there:
exec ProcedureName par1 par2
or
exec ProcedureName (par1={?parameter1} par2={?parameter2})
It's doesn't work. What I need to do?
2) I use some query in report
ex.
select t1.col1, t2.col2, t6.col3 t1.col7 t4.col1
from t1, t2, t6, t4, r4, ju, hh
where hh.col11={?parameter1}
and ju.col3=6
and r4.col3={?parameter2}
group by .....
order by ......
How I need to create me report? What I need to do first?
If parameter in stored procedure par1={?parameter1} in query
and par2={?parameter2} -
Is it possible to trigger an error so that the running stored procedure is stopped?
Hello all,
I want to run an existing stored procedure and then I want to manually trigger an error/abort/interruption so see what happens and do some testing with that.
Is it possible to manually trigger an error/abort/interruption on a running stored procedure so that it is stopped?
If yes, how can I do that?
I hope someone has an idea. For me it sounds not really difficult, but I just do not get the idea how to do it.
Kind regards
PeterHello Visakh,
I dont want to modify the existing procedure. I just want to run it and than stop it, but not with the button to stop it, but "kill" it somehow with an error (with not destroying the database).
Nope you cant simulate an intermediate failure inside procedure code from outside. For that you have to modify the actual sp code itself
Another way is by doing data manipulation in such a way which causes a error in procedure but for that you need to revisit the logic to ensure you do changes in such way as to cause an error
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
How to use Stored Procedures in form 6i Blocks
Dear Friends,
I would like to know how to use Stored Procedures while creating blocks in Data Block Wizard in forms 6i application.
Please send me sample code of stored procedure.
Regards,
Khader.The Data Block Wizard is not for creating stored procedures. It will allow you to use a stored procedure in your form. See the help documentation for how to use the wizard.
Here's an example of a simple procedure. If you search the database forum or the web, you will find many examples.
CREATE OR REPLACE PROCEDURE procedure_name (value OUT NUMBER ) AS
BEGIN
SELECT COUNT(*) INTO value
FROM your_table;
END;
Message was edited by:
Mark Roberts -
Can't Run Stored Procedure in Package
Hi,
I am trying to run a stored procedure that has multiple in and out paramaters. The procedure can only be viewed in my Connections panel by navigating Oher Users | <user> | Packages | <package> | <procedure>
If I right click <procedure>, the menu items are "Order Members By..." and "Create Unit Test" (greyed out). The ability to "Run" the procedure does not seem possible when it's accessed by user.
I have been trying to find an example of how to create an anonymous block so that I can run the procedure as a SQL file, but haven't found anything that works.
Does anyone know how I can execute this procedure from SQL Developer? I am using Version 2.1.1.64.
Thanks in advance!Thanks for replying. I did understand the basics of an anonymous block, but what I didn't understand was how to set the out parameters. I should have been more detailed in my question. However, I did get the answer here:
http://stackoverflow.com/questions/3991721/run-stored-procedure-in-sql-developer
Thanks again for replying. I appreciate you taking the time. -
How to implement Stored procedure in OBIEE
Hi experts
How to implement Stored Procedure in OBIEE..
My Input is Date..
Thanks in advance
Regards
FrndsDouble post :
Re: How to get the previous monthend data and currentdate data in OBIEE report
You don't need a stored procedure.
If you want the amount only for one date, you can use the filter option in the formula :
FILTER("Sales Facts"."Amount Sold" USING (Time.Day = '31 jan'))You can calculate the last day with the timestampdiff function
31Jan = 1 Feb - 1 dayIf you want the amount of the month see my post here :
Re: How to get the previous monthend data and currentdate data in OBIEE report -
Running stored procedures from HTML DB
Hello.
Is it possible to run stored procedures/functions from HTML DB? If yes, how to do it?
DavideIf the variable v_return_amount is a number, how can you assign a boolean to it? Are you sure your function is valid? I would write it slightly different:
CREATE OR REPLACE FUNCTION verify_amount (
v_invoices_pk IN NUMBER,
v_new_amount IN NUMBER
RETURN BOOLEAN
IS
CURSOR c_amount
IS
SELECT amount
FROM invoices
WHERE invoices.invoices_pk = v_invoices_pk;
CURSOR c_dist_amount
IS
SELECT SUM (cost_distribution.amount)
FROM cost_distribution
WHERE cost_distribution.invoices_pk = v_invoices_pk;
v_sum_amount NUMBER;
v_invoices_amount NUMBER;
BEGIN
OPEN c_dist_amount;
FETCH c_dist_amount
INTO v_sum_amount;
CLOSE c_dist_amount;
OPEN c_amount;
FETCH c_amount
INTO v_invoices_amount;
CLOSE c_amount;
IF (v_invoices_amount <= v_sum_amount + v_new_amount)
THEN
RETURN TRUE;
ELSE
RETURN FALSE;
END IF;
RETURN v_return_amount;
EXCEPTION
WHEN OTHERS
THEN
RETURN FALSE;
END;
Other than that, I am not sure about your cursors but I can't judge from here. The other thing is how you use the function in the validation process. Can you try to correct and tell if it worked out?
Denes Kubicek -
How to use Stored Procedure Call in Sender JDBC adapter
Hi All,
Could someone send me a blog on how to use Stored Procedure call in Sender JDBC adapter?
XierHi Xler
refer these links
/people/yining.mao/blog/2006/09/13/tips-and-tutorial-for-sender-jdbc-adapter
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
Also, you can check Sriram's blog for executing Stored Procedures,
/people/sriram.vasudevan3/blog/2005/02/14/calling-stored-procs-in-maxdb-using-sap-xi
/people/jegathees.waran/blog/2007/03/02/oracle-table-functions-and-jdbc-sender-adapter
This blog might be helpfull on stored procedures for JDBC
JDBC Stored Procedures
/people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures
Please go through these threads and see if it helps...
Re: How to execute Stored Procedure?
Re: Problem with JDBC stored procedure
Thnaks !! -
How to modify stored procedures in SQL Azure database in SQL server express 2012
Hi,
I want to modify stored procedures in SQL Azure database in SQL Server Express 2012. But when right click on the stored procedure in Object Explorer, there is no option "Modify" as for SQL Server database. I wonder how to modify stored procedures in SQL
Azure database in SQL Server Express 2012. Thanks.
YorkHi,
Not sure whay there is no modify..
As a workaround can you try this and see if you can modify proc..
Script Procedure As-> Alter To->New query window..
- Chintak (My Blog) -
HOW TO USE STORED PROCEDURES IN JASPERREPORTS(URJENT)
Hi,
i'm using jasperreports in struts based project. How to use stored procedures in jasperreports. pls send the solution urjent
Thanks in advance
rameshHi,
Refer the below link:
JDBC:
Receiver JDBC scenario MS access - /people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30 --> for jdbc receiver: file -JDBC
Stored Procedures-
/people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures
http://www.ics.com/support/docs/dx/1.5/tut6.html
/people/sriram.vasudevan3/blog/2005/02/14/calling-stored-procs-in-maxdb-using-sap-xi
http://www.ics.com/support/docs/dx/1.5/tut6.html
http://java.sun.com/docs/books/tutorial/jdbc/basics/sql.html
http://www.sqlteam.com/article/stored-procedures-an-overview
HI in the message mapping structure u need to specify the different action and also u need to specify the procedure name.
refer the below link which has all the associated action
http://help.sap.com/saphelp_nw04s/helpdata/en/22/b4d13b633f7748b4d34f3191529946/frameset.htm
Chirag
Maybe you are looking for
-
How do I use mulitple divices with one computer
How do I run muitple divices on one instance of ITunes
-
Multiple output condition type in same sales order.
08.10.2007 Hi friends, I have used two output condition types in my output determination procedure for printing. The problem is in the document by default only one condition type appears, if the user needs to use the alternative condition type this h
-
Kernel security level changes on its OWN?
Hi... using OS 10.3.9 on a G4 dual 533mhz with a gig of ram. It is wired into an Airport Extreme that firewalls for a wireless laptop as well, yes it is set encrypted and unauthorized NIC card addresses are excluded in the Airport Administration soft
-
Why won't certain cd's I imported sync to my phone?
Some songs that I imported from a CD will not sync to my phone. They can play on my computer and when I look at Whats on this phone on Itunes it says that the playlist is there, but it is all gray and doesnt actually show up on my phone. Can anyone h
-
Not able to connect DAC client after first time
Hi , I am installing OBI apps 7.9.6.2 . While configuring DAC , I was able to login to DAC client with Administrator/Administrator ( given by oracle) for the first time and started exporting the metadata . Unfortunately my machine got shut off in bet