[Home] [Credit Search] [Category Browser] [Staff Roll Call] | The LINUX.COM Article Archive |
Originally Published: Friday, 8 June 2001 | Author: Marcelo Pham |
Published to: develop_articles/Development Articles | Page: 2/6 - [Printable] |
Introduction to Cross Platform Integration (Part 2 of 2)
In part two of this detailed look at platform integration, software architecture and networking issues with Linux, consultant
Marcelo Pham concludes his exclusive Linux.com article series with a complete overview and code walk-through of application and
database integration strategies for cross-platform data integration in a business environment.
|
<< Page 2 of 6 >> | |
3.c. Integration Levels
Depending on the database engine, you can use database tools to update the data from both applications, ensuring integrity and consistency: Server-side functions: Also called stored procedures, these are functions or procedures that are executed from the database server instead of from the user application. A server-side function can be written in the native PL/SQL itself (ideally) or through Perl, C, C++, Tcl/Tk, Python or PHP as well.
The Perl script:
(This SQL statement is customized for PostgreSQL. Please refer to your preferred database enginePL/SQL manual to find out more about advanced queries) The scheduled job in your /usr/spool/cron/tabs/root file -or /usr/spool/cron/crontabs/root in Unix- (every weekday at 11:00 PM) using:
00 23 * * 1-5 ./home/taz/upd.cgi
Assuming that upd.cgi is located under /home/taz and has correct permissions to read and execute, this line must be added to your root crontab file, please refer to your Unix or Linux man pages for more information (man crontab).
| |
<< Page 2 of 6 >> |