Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Resolving RMAN Hung Jobs Oracle
  • Read CSV File using Python Python/PySpark
  • Move WordPress site from one hosting service to other. PHP/MYSQL/Wordpress
  • Find Command Linux/Unix
  • Jai Shree Ram Oracle
  • How to set Processes Parameter Oracle
  • SQL Tracker by SID sqltrackerbysid.sql Oracle
  • Search and replace editor command in vi Linux/Unix
  • Removing Blank lines from file using grep Linux/Unix
  • How do I get Oracle to automatically start when my server boots up? Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • find_cons.sql Oracle
  • ORA-1841 Error Connecting to Upgraded Database After Set PASSWORD_LIFE_TIME Oracle
  • move_arch_files.ksh /* Good One */ Linux/Unix
  • How to calculate PROCESSES parameter Oracle

For Perl DBI installation and testing program

Posted on 08-Jun-2006 By Admin No Comments on For Perl DBI installation and testing program

http://www.cedet.dk/perl/

#!c:perlbinperl

use DBI;

# Following line is necessary of you are using perl to write html in browser.

print “Content-type: text/htmlnn”;

print ““;

print “CGI Test“;

print ““;

print “

Newer Verion of File Management Operations !

“;

my $dbname = “pvmeh”; ## DB Name from tnsnames.ora

my $user = “pvmeh”;

my $passwd = “pvmeh”;

print “$dbname”;

print “
“;

#### Connect to the database and return a database handle

$dbh = DBI->connect(“dbi:Oracle:${dbname}”, $user, $passwd);

if($dbh){

print(“Connected as user $usern”);

} else {

print(“Failed to connect!n”);

exit;

}

print ““;

PHP/MYSQL/Wordpress

Post navigation

Previous Post: catting.sh
Next Post: How to find pinned objects from shared pool. (pinned via dbms_shared_pool.keep)

Related Posts

  • upload.html PHP/MYSQL/Wordpress
  • How to hide author name in WordPress BLOG PHP/MYSQL/Wordpress
  • PHP code to add WordPress posts in bulk programmatically PHP/MYSQL/Wordpress
  • Shuffle an array PHP/MYSQL/Wordpress
  • Jai Shree Ram PHP/MYSQL/Wordpress
  • Windows based Command line mailing program like mailx (Sednmail for windows) PHP/MYSQL/Wordpress

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • findx.sql /* Find Indexes on specified USER.TABLE_NAME */ Oracle
  • _B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade Oracle
  • currwaitobj.sql SQl_ID and SQL statement you can get from currwaitobj.sql Oracle
  • SQL Server: How to see current transactions or requests SQL Server
  • 272332.1 CRS 10g Diagnostic Collection Guide Oracle
  • ipcs -l Linux/Unix
  • Building Our Own Namespaces with “Create Context” Oracle
  • chk_space_SID.ksh Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme