Cover | Table of Contents | Colophon
http://www.perl.com
http://www.perl.org
http://www.activestate.com (for Win32)
http://www.perl.com
http://www.perl.org
http://learn.perl.org
http://history.perl.org
http://www.wall.org
http://www.perl.com
http://www.perl.org
http://www.perl.com
http://www.perl.org
http://www.activestate.com
http://dbi.perl.org.
#!perl -w
use strict;
use DBI;
# Connect to Oracle database, making sure AutoCommit is
# turned off and potential errors are raised.
my $dbh = DBI->connect( 'dbi:Oracle:orcl', 'scott', 'tiger',
{ RaiseError => 1, AutoCommit => 0 } );
# Create the SQL.
my $sql = qq{ SELECT 'Hello World' FROM DUAL };
# Prepare the SQL and execute.
my $sth = $dbh->prepare( $sql );
$sth->execute( );
# Fetch output rows into array, plus prepare a
# print formatter for the results.
while ( my($helloWorldString) = $sth->fetchrow_array) {
# Print out the result.
print $helloWorldString, "\n";
}
$dbh->disconnect( ); # Disconnect
#!perl -w
use strict;
use DBI;
my $dbh = DBI->connect( 'dbi:Oracle:orcl', 'scott', 'tiger',
{ RaiseError => 1, AutoCommit => 0 } );
print $dbh->selectrow_array(qq{ SELECT 'Hello World' FROM DUAL });
$dbh->disconnect( );
http://www.lehigh.edu/~sol0/ptk/ptk.html
http://www.perltk.org
http://www.oreilly.com/catalog/mastperltk
http://www.cpan.org/authors/id/TIMB/
$ perl ora_explain.PL
$ perl ora_explain
http://www.cpan.org/authors/id/A/AN/ANDYDUNC
http://sourceforge.net/projects/ddl-oracle
http://www.cpan.org/authors/id/R/RV/RVSUTHERL
$ gzip -d DDL-Oracle-1.10.tar.gz $ tar xvf DDL-Oracle-1.10.tar $ cd DDL-Oracle-1.10 $ vi README
$ perl Makefile.PL $ make $ make test $ make install
$ perldoc DDL::Oracle
SourceForge.net and FreshMeat.net are based upon it. In this
section we'll take a look at one of these tools,
Alistair Orchard's SchemaDiff program, which you can
use to compare different Oracle
schemas.
http://sourceforge.net/projects/schemadiff
DROP TABLE EMP;
CREATE TABLE EMP
(EMPNO NUMBER(4) CONSTRAINT PK_EMP PRIMARY KEY,
ENAME VARCHAR2(10),
JOB VARCHAR2(9),
SSN VARCHAR2(50),
MGR NUMBER(4),
HIREDATE DATE,
SAL NUMBER(7,2),
COMM NUMBER(7,2),
DEPTNO NUMBER(2) CONSTRAINT FK_DEPTNO REFERENCES DEPT);
DROP TABLE EMP2;
CREATE TABLE EMP2
(EMPNO NUMBER(4) CONSTRAINT PK_EMP2 PRIMARY KEY,
ENAME VARCHAR2(10),
JOB VARCHAR2(9),
MGR NUMBER(4),
HIREDATE DATE,
SAL NUMBER(7,2),
COMM NUMBER(7,2),
DEPTNO NUMBER(2) CONSTRAINT FK_DEPTNO2 REFERENCES DEPT);
http://sourceforge.net/projects/senora
$ gzip -d senora-0.3.tgz $ tar xvf senora-0.3.tar $ cd senora $ vi README.txt
$ perl Senora.pm scott/tiger@orcl
SEN*Ora: Release 0.4.0.0.4 - Production on Mon Dec 31 21:53:26 CET 2001 (c) Copyright 2001 Miracle Exploration. No rights reserved. Connected to: Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production PL/SQL Release 8.1.7.0.0 - Production ... 0:scott@orcl>
http://dbman.linux.cz), also written in
Perl/Tk. (The SchemaView-Plus tool also uses the Perl DBIx extension,
DBIx::SystemCatalog.)
|
C library/Perl module
|
Description/download address
|
|---|---|
|
expat
|
XML parser C library
http://sourceforge.net/projects/expat
|
|
XML::Parser
|
Parses XML
http://www.cpan.org/authors/id/C/CO/COOPERCL
|
|
XML::Dumper
|
http://sourceforge.net/projects/open-perl-ide
C:\OpenPerlIDE\Open_Perl_IDE_0.9.8.168a.zip
$ perldoc perldebug $ perldoc perldiag
|
GUI
|
Description
|
|---|---|
|
perldbgui
|
A GUI for the standard Perl debugger:
http://members.tripod.com/~CurtMcKelvey/perldbgui
|
|
ptkdb
|
This can work with Apache Perl scripts and is shown in Figure 3-17:
http://www.cpan.org/authors/id/A/AE/AEPAGE
|
|
Open Perl IDE
|
This IDE, described in the previous section, can help write and debug
Perl programs:
http://sourceforge.net/projects/open-perl-ide
|
http://www.apache.org/
http://www.apache.org/
http://httpd.apache.org/
http://httpd.apache.org/dist/httpd/
http://httpd.apache.org/docs/window