Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword or section
Like this
4Activity

Table Of Contents

Who Should Read This Book?
Introduction to Oracle
Databases and Instances
Tablespaces
Schemas and Users
Introduction to PHP
GETTING STARTED WITH PHP
Creating and Editing PHP Scripts
PHP Syntax Overview
Debugging PHP Scripts
PHP ORACLE EXTENSIONS
PHP Oracle Extensions
Oracle Extension
OCI8 Extension
PDO Extension
PHP Database Abstraction Libraries
ADOdb
PEAR DB
PEAR MDB2
Getting the OCI8 Extension
OCI8 and Oracle Installation Options
Getting the PDO Extension
Zend Core for Oracle
The PHP Release Cycle
INSTALLING ORACLE DATABASE 10G EXPRESS EDITION
Oracle Database Editions
Oracle Database XE
Installing Oracle Database XE on Linux
Installing Oracle Database XE on Debian, Ubuntu, and Kubuntu
Installing Oracle Database XE on Windows
Testing the Oracle Database XE Installation
Configuring Oracle Database XE
Setting the Oracle Database XE Environment Variables on Linux
Enabling Database Startup and Shutdown from Menus on Linux
Starting and Stopping the Listener and Database
Starting and Stopping the Listener and Database on Linux
Enabling Remote Client Connection
USING ORACLE DATABASE
Oracle Application Express
Logging In To Oracle Application Express
Unlocking the HR User
Creating Database Objects
Working with SQL Scripts
Creating a PL/SQL Procedure
Creating a Database User
Monitoring Database Sessions
Database Backup and Recovery
Oracle SQL*Plus
Starting SQL*Plus
Executing SQL and PL/SQL Statements in SQL*Plus
Controlling Query Output in SQL*Plus
Running Scripts in SQL*Plus
Information On Tables in SQL*Plus
Accessing the Demonstration Tables in SQL*Plus
Oracle SQL Developer
Creating a Database Connection
Creating a Table
Executing a SQL Query
Editing, Compiling and Running PL/SQL
Running Reports
Creating Reports
INSTALLING APACHE HTTP SERVER
Installing Apache HTTP Server on Linux
Starting and Stopping Apache HTTP Server
Configuring Apache HTTP Server on Linux
Installing Apache HTTP Server on Windows
Installing PHP with OCI8 on Linux
Installing OCI8 Using a Local Database
Installing OCI8 Using Oracle Instant Client
Upgrading PHP with PECL OCI8 on Linux
Upgrading OCI8 as a Static Library on Linux
Upgrading OCI8 on Linux Using the PECL Channel
Upgrading OCI8 as a Shared Library on Linux
Installing PHP With OCI8 on Windows
Installing OCI8 Using a Local Database on Windows
Installing OCI8 with Instant Client on Windows
Upgrading OCI8 on Windows
Installing OCI8 with Oracle Application Server on Linux
Installing PHP With PDO
Installing PDO on Linux
Installing PDO on Windows
Checking OCI8 and PDO_OCI Installation
INSTALLING ZEND CORE FOR ORACLE
Installing Zend Core for Oracle
Installing Zend Core for Oracle on Linux
Testing the Zend Core for Oracle Installation on Linux
Installing Zend Core for Oracle on Windows
Testing the Zend Core for Oracle Installation on Windows
Configuring Zend Core for Oracle
CONNECTING TO ORACLE USING OCI8
Oracle Connection Types
Standard Connections
Multiple Unique Connections
Persistent Connections
Oracle Database Name Connection Identifiers
Easy Connect String
Database Connect Descriptor String
Database Connect Name
Common Connection Errors
Setting Oracle Environment Variables for Apache
Closing Oracle Connections
Close Statement Resources Before Closing Connections
Transactions and Connections
Session State with Persistent Connections
Optional Connection Parameters
●Connection character set
Connection Character Set
Connection Session Mode
Changing the Database Password
Changing Passwords On Demand
Changing Expired Passwords
Tuning Oracle Connections in PHP
Use the Best Connection Function
Pass the Character Set
Do Not Set the Date Format Unnecessarily
Managing Persistent Connections
Maximum Number of Persistent Connections Allowed
Timeout for Unused Persistent Connections
Pinging for Closed Persistent Connections
Apache Configuration Parameters
Reducing Database Server Memory Used By Persistent Connections
Oracle Net and PHP
Connection Rate Limiting
Setting Connection Timeouts
Configuring Authentication Methods
Detecting Dead PHP Apache Sessions
Other Oracle Net Optimizations
Tracing Oracle Net
Connection Management in Scalable Systems
SQL Statement Execution Steps
Query Example
Oracle Datatypes
Fetch Functions
Fetching as a Numeric Array
Fetching as an Associative Array
Fetching as an Object
Defining Output Variables
Fetching and Working with Numbers
Fetching and Working with Dates
Insert, Update, Delete, Create and Drop
Transactions
Autonomous Transactions
The Transactional Behavior of Connections
PHP Error Handling
Handling OCI8 Errors
Tuning SQL Statements in PHP Applications
Using Bind Variables
Tuning the Prefetch Size
Tuning the Statement Cache Size
Using the Server and Client Query Result Caches
Limiting Rows and Creating Paged Datasets
Auto-Increment Columns
Getting the Last Insert ID
Exploring Oracle
Case Insensitive Queries
Analytic Functions in SQL
PL/SQL Overview
Blocks, Procedures, Packages and Triggers
●Anonymous block
Anonymous Blocks
Stored or Standalone Procedures and Functions
Packages
Triggers
Creating PL/SQL Stored Procedures in PHP
End of Line Terminators in PL/SQL with Windows PHP
Calling PL/SQL Code
Calling PL/SQL Procedures
Calling PL/SQL Functions
Binding Parameters to Procedures and Functions
Array Binding and PL/SQL Bulk Processing
PL/SQL Success With Information Warnings
Using REF CURSORS for Result Sets
Closing Cursors
Converting from REF CURSOR to PIPELINED Results
Oracle Collections in PHP
Using PL/SQL and SQL Object Types in PHP
Using OCI8 Collection Functions
Using a REF CURSOR
Binding an Array
Using a PIPELINED Function
Getting Output with DBMS_OUTPUT
PL/SQL Function Result Cache
Using Oracle Locator for Spatial Mapping
Inserting Locator Data
Queries Returning Scalar Values
Selecting Vertices Using SDO_UTIL.GETVERTICES
Using a Custom Function
Scheduling Background or Long Running Operations
Reusing Procedures Written for MOD_PLSQL
USING LARGE OBJECTS IN OCI8
Working with LOBs
Inserting and Updating LOBs
Fetching LOBs
Temporary LOBs
LOBs and PL/SQL procedures
Other LOB Methods
Working with BFILEs
USING XML WITH ORACLE AND PHP
Fetching Relational Rows as XML
Fetching Rows as Fully Formed XML
Using the SimpleXML Extension in PHP
Fetching XMLType Columns
Inserting into XMLType Columns
Fetching an XMLType from a PL/SQL Function
XQuery XML Query Language
Accessing Data over HTTP with XML DB
Database Resident Connection Pooling
How DRCP Works
PHP OCI8 Connections and DRCP
When to use DRCP
Sharing the Server Pool
Using DRCP in PHP
Configuring and Enabling the Pool
Configuring PHP for DRCP
Application Deployment for DRCP
Monitoring DRCP
V$PROCESS and V$SESSION Views
DBA_CPOOL_INFO View
V$CPOOL_STATS View
V$CPOOL_CC_STATS View
High Availability with FAN and RAC
Configuring FAN Events in the Database
Configuring PHP for FAN
Application Deployment for FAN
RAC Connection Load Balancing with PHP
Establishing the Environment Between Oracle and PHP
Manipulating Strings
Determining the Locale of the User
Encoding HTML Pages
Specifying the Page Encoding for HTML Pages
Specifying the Encoding in the HTTP Header
Specifying the Encoding in the HTML Page Header
Specifying the Page Encoding in PHP
Organizing the Content of HTML Pages for Translation
Strings in PHP
Static Files
Data from the Database
Presenting Data Using Conventions Expected by the User
Oracle Number Formats
Oracle Date Formats
Oracle Linguistic Sorts
Oracle Error Messages
TESTING PHP AND THE OCI8 EXTENSION
Running OCI8 Tests
Running a Single Test
Tests that Fail
Creating OCI8 Tests
OCI8 Test Helper Scripts
Configuring the Database For Testing
Enabling OCI8 Debugging output
Oracle and OCI8 Comparison
General Information and Forums
Selected PHP and Oracle Books
Software and Source Code
BFILE
BLOB
Easy Connect
0 of .
Results for:
No results containing your search query
P. 1
The Underground PHP and Oracle Manual

The Underground PHP and Oracle Manual

Ratings: (0)|Views: 2,222|Likes:
Published by silviupirvu

More info:

Published by: silviupirvu on Nov 18, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

11/07/2011

pdf

text

original

You're Reading a Free Preview
Pages 4 to 17 are not shown in this preview.
You're Reading a Free Preview
Pages 19 to 290 are not shown in this preview.

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->