on 12-16-2011 10:45 PM
Hi All,
I want to know where the operating system command runs when used in jdbc sender adapter , In PI or in the database after executing the sql queries? I am wondering if i can use a Stored procedure through a script in database. Any help appreciated .And forgive me for my ignorance Thanks.
Have you seen this link?
http://help.sap.com/saphelp_nw04/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would recommend you to handle stored procedure through script in the database level. you just create jdbc message structure as PI recommends and connect to database.
something similar to below ...
<StatementName>
<storedProcedureName action=u201D EXECUTEu201D>
<table>realStoredProcedureeName</table>
<param1 [isInput=u201Dtrueu201D] [isOutput=true] type=SQLDatatype>val1</param1>
</storedProcedureName >
</StatementName>
, but the thing which is bothering me is in JDBC SENDER ADAPTER the option RUN OPERATING SYSTEM COMMAND is executed in the PI server or the JDBC server where PI is attacking to fetch the data
Executed on PI server not data base, Sedner Adapter pick sup the data based on your configuration(Data base tables),but script also picks up the data based on logic u writen in script. it can pull the data from FTP .
What you can do is :
Create a multi Mapping.
JDBC Sender DT - JDBC Receiver STored Procedure DT and
JDBC Sender DT - Actual Receiver .
Key points to remember is , on Interface Determination .. maintain order runtime ..... this will help to execute first Stored procedure then your actual target , if stored procedure fails then other interface will also not execute as maintain runtime order is checked.
REgards
PS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.