Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • eplan.sql Oracle
  • Monitor Long Running Job Oracle
  • Sample WW22 listener.ora Oracle
  • find_du.ksh to find # of files, their sizes in current folder and its subdolder Linux/Unix
  • First Entry in RAC Oracle
  • cold backup scripts to copy locally Linux/Unix
  • Find All internal Parameters Oracle
  • How To Transfer Passwords Between Databases (ref note: 199582.1) Oracle
  • Absolute file number and relative file number Oracle
  • Rollback force for distributed transactions Oracle
  • shutdown linux Linux/Unix
  • Building Our Own Namespaces with “Create Context” Oracle
  • Pending Transaction Neighbors Script Oracle
  • Remove DOS CR/LFs (^M) Linux/Unix
  • How to stop OCSSD Daemon 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

  • Windows based Command line mailing program like mailx (Sednmail for windows) PHP/MYSQL/Wordpress
  • PHP code to add WordPress posts in bulk programmatically PHP/MYSQL/Wordpress
  • newupload.html PHP/MYSQL/Wordpress
  • How to hide author name in WordPress BLOG PHP/MYSQL/Wordpress
  • upload.html PHP/MYSQL/Wordpress
  • My FTP Job Scheduling for www.pvmehta.com 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 (392)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • MYSQL and Oracle Comparison for Oracle DBA24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • good linux notes Linux/Unix
  • How to Use DBMS_STATS to Move Statistics to a Different Database Oracle
  • Validating ORACLE_SID againt oratab file. Linux/Unix
  • All About Trace Fils Oracle
  • ORA-3136 Oracle
  • Reading config file from other folder inside class Python/PySpark
  • replace alphabets using sed Linux/Unix
  • create database syntax Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme