How to call DB2 functions in Informatica ETL?
Only used views in ETL before, have no idea how to do so for the functions, anyone got any idea?
#MarekGrzenkowicz is correct, it is the same as envoke stored procedures.
Related
I am new to Lambda Function and need some help with writing a Lambda Function, which will access Glue Catalog Database Metadata and dump that into a RDS PostgreSQL database table.
Please let me know if there is any Python code for Lambda that can support this use case.
Thanks in advance.
We're doing Windows development against a DB2 database with QMF v9.1. We hard-code many of our SQL queries directly into our applications, even though they are already stored in QMF.
However, I was told that a built-in stored procedure exists that is able to return results from a QMF query or procedure. But the person could not tell me the name of the stored procedure.
Would anyone be able to share their experience in regards to the above? Many thanks in advance.
I think what you're looking for is Q.DSQQMFSP. The QMF Stored Proc interface has to be enabled, so it's not a "default" option.
Once that's done, it should be like calling any other stored proc from .NET
I am new to db2. I have written procedures in oracle.
I need to convert those procedures from oracle to db2.
I want to know how the procedures in db2 will be created and compiled.
Thanks in advance.
A good walkthrough can be found here.
But then you always have the redbooks that IBM puts out such as this or this.
It is worth pointing out this migration tool that you might find useful.
I'm working with an ETL tool, Business Objects Data Services, which has the capability of specifying parallel execution of functions. The documentation says that before you can do this, you have to make sure that your database, which in our case is Postgres, allows "a stored procedure to run in parallel". Can anyone tell me if Postgres does that?
Sure. Just run your queries in different connections, and they will run in parallel transactions. Beware of locking though.
You can also call different stored procedures from the same connection (and effectively still run them in parallel) by using DBLink.
See this SO answer to see an example.
Is it possible to write a stored procedure or trigger that will be executed automatically inside of a database on particular time without any calls from application? If yes, then could anybody give me an example or link to some resource where I can read how to do that.
Check out pgAgent. If that doesn't work for you, there's always cron in Unix/Linux and the Task Scheduler service in Windows.
I don't think there's anything built-in, but you might want to check out
pgjobs or pgAgent.
You can use Stored Procedures. Stored Procedure is a set of statements, which allow ease and flexibility for a programmer because stored procedure is easy to execute than reissuing the number of individual SQL statements but they need to perform the same database operations.Using the stored procedure less information needs to be sent between the server and the client.
You can visit These links :-
Postgres Procedures
Best way to use stored Procedures