The below is a piece of code what we have in the environment
#!/usr/bin/perl
use DBI;
use Date::Manip;
#use String::Substrings;
use Fcntl; #The Module
$ENV{'ORACLE_HOME'}="/u01/app/oracle/product/10.2.0/client_1";
$ENV{'LD_LIBRARY_PATH'}="/u01/app/oracle/product/10.2.0/client_1/lib";
print "content-type: text/html \n\n";
print "<font face=verdana size=3><b>Netcool : Historical Report Versio
+n 2.0</b></font><hr size=1 noshade color=white>";
##-----------database connection ####################
$dbh = DBI->connect('dbi:Oracle:orcl','username','password', { RaiseEr
+ror => 1, AutoCommit => 0 }) or die "\n----------Unable for connect t
+o server $DBI::errstr\n";
I am using https protocol for accessing the url
https://servername.com:16316/ibm/console/webtop/cgi-bin/oracle_reporter2.cgi.
Please suggest any modification to be done.
20100706 Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
|
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
|
|