I need to use ORACLE stored procedure with input param and this input PARAM is coming from flow file and get output from that stored procedure. is any processor is available with run stored procedure and return the out put in avro schema or any other format? Please help me.
Related
Is it possible to encrypt stored procedures in Teradata?
I would like to hide the code of procedure from others and I have no idea if it is even possible.
Some ideas?
Thanks,
Cris
There's no need to encrypt the source code of a SP in Teradata, you can simply use the NO SPL option and then no source code is stored.
Either during creation using ODBC, CLI or BTEQ, e.g. in BTEQ
.COMPILE FILE 'mysp.spl' WITH NOSPL
But the common way is to CREATE it first and then run:
ALTER PROCEDURE mySP COMPILE WITH NO SPL;
I have done performance testing of normal select and update queries.
I want to know the procedure of testing a postgres stored procedure in JMeter 2.9.
Have a look at this tutorial:
http://jmeter.apache.org/usermanual/build-db-test-plan.html
And read the documentation of the involved components:
JDBC Connection configuration
JDBC Request
For stored procedure have a look at this:
How to use jmeter to test an Oracle Stored Procedure with sys_refcursor return type?
By the way you should upgrade to JMete 2.11.
A group in my company granted me access to execute a stored procedure, and the stored procedure, if executed from excel, gives me a table. I want to store this table in SQL via SSIS.
I tried this via:
Within DFT, I created a connection using SQL Server Native Client. And within source assissstant, I entered SQL command
EXEC [dbname].[storedprocedure]
But then it returns an error:
No column information was returned by the SQL command.
Is there anyway to make this work?
Add the proper data source and then connect it to the OLE DB Command. Under the Connection Manager tab, setup your connection. Under the Component Properties Tab in the SqlCommand line enter EXEC [Stored Procedure Name] ? use as many ?s for as many variables declared in your Stored Procedure. Under the Column Mappings tab you will map your variables from the Stored Procedure to the relevant columns in your SQL Server DB.
I want to know how to use the equivalent to :
SET ARITHABORT ON
AND
WITH RECOMPILE option
in informix stored procedure ?
SET ARITHABORT ON
Sql Server manual says : Terminates a query when an overflow or
divide-by-zero error occurs during query execution.
At Informix , by default, any error occurred during the execution of any UDR/SP (procedure or function) will trigger an exception and this will be automatically raised at user session level. This will include any arithmetic error.
What you can do inside of SPLs is the inverse , include a treatment to not allow this exception reach the scope of user session.
For this read about ON EXCEPTION
WITH RECOMPILE option
Sql Server manual says : Creating a stored procedure that specifies
the WITH RECOMPILE option in its definition indicates that SQL Server
does not cache a plan for this stored procedure; the stored procedure
is recompiled each time it is executed. Use the WITH RECOMPILE option
when stored procedures take parameters whose values differ widely
between executions of the stored procedure, resulting in different
execution plans to be created each time. Use of this option is
uncommon and causes the stored procedure to execute more slowly,
because the stored procedure must be recompiled each time it is
executed.
At Informix the similar solution is run : update statistics for procedure <your_proc>;
Check the explanation at Informix Manual here
How could we know which WLM job has picked my DB2 stored procedure call invoked. I see some set of jobs are running with DB2XWLM* where DB2X is database region. But how to check which particular job had taken my stored procedure call.
Hope I made clear, please let me know if something is not clear. Appreciate your interest.
By giving few 'unique display statements' in the Stored procedure and by making the display statements on , we can check which WLMjob has picked the Stored procedure.
Typically a stored procedure is assigned to a region when it's created.
If you are able to see the DDL for the CREATE PROCEDURE statement (perhaps through DB2 admin tool), there should be a line like:
WLM ENVIRONMENT DB2SP3
DB2SP3 would be the environment your stored procedure lives in. I'm not sure that it always works this way, but it's worth checking.
Go to the job output where you can see display statements of your SP. That JCL has WLM specified. Just search for WLM word and you can find it.
I realize this is an old post but here is the answer for future reference:
select schema ,owner ,name ,WLM_ENVIRONMENT
from SYSIBM.SYSROUTINES
where schema = 'yourschemaname'
and name = 'yourSPname'
WLM_environment is the column you are looking for.
(db2v11)