Need help on how to use Perl DBI script to poll logs from oracle databases?
Discuss Need help on how to use Perl DBI script to poll logs from oracle databases? in the Perl Programming forum on Dev Shed. Need help on how to use Perl DBI script to poll logs from oracle databases? Perl Programming forum discussing coding in Perl, utilizing Perl modules, and other Perl-related topics. Perl, the Practical Extraction and Reporting Language, is the choice for many for parsing textual information.
The ASP Free website provides in-depth information on the latest developer tools available from Microsoft. Our cadre of writers, highly experienced industry experts, reveals the best ways to use established technologies as well as new and emerging technologies. Our coverage of Microsoft's development and administration technologies is among the most respected in the IT industry today.
ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month! Download and Activate to enter!
Intel® Graphics Performance Analyzers is a powerful tool suite for analyzing and optimizing your games, media, and graphics-intensive applications. Used by some of the best developers on the planet, Intel GPA lets you maximize your app’s performance.
Posts: 1
Time spent in forums: 48 m 36 sec
Reputation Power: 0
Need help on how to use Perl DBI script to poll logs from oracle databases?
Hi,
Am not sure if this has anything to do with perl programming but would like to seek your advice.
I have 2 separate servers each with oracle database installed.I am trying to pull oracle logs from these 2 databases to my main linux server using perl DBI. On this linux server I have 1 dbipoll.pl script and 2 wrapper scripts that pass in parameters to dbipoll.pl.
The scripts I've used are found here:
Here is the sample wrapper script that I've used to call dbipoll.pl(separate script with different parameters for each databases used):
As you can see,the script should retrieve logs and write to oracledb1.log and update the countfile1 with the latest timestamp.The wrapper scripts are scheduled to run at 5mins interval.
The first wrapper script,which I've named as call_dbipoll1.sh runs fine. I am able to retrieve events and both oracledb1.log and countfile1 are successfully updated.
However,the second wrapper script,call_dbipoll2.sh is successful only for the first run. For subsequent runs,I've noticed that countfile2 does not get updated with the latest timestamp(ie. the file returns to blank) and oracledb2.log returns to blank as well. Therefore,am unable to pull new events then. Unable to determine what went wrong here..
Here is sample of my second wrapper script that tries to retrieve events from the 2nd database:
Posts: 1,051
Time spent in forums: 3 Weeks 5 Days 44 m 28 sec
Reputation Power: 915
Please use the code tags whenever you post code. Using the code tags will retain the indentation which makes it much easier for use to read/follow what your code is doing.