Forums / General / ezoracle extension

ezoracle extension

Author Message

Amer Azzaz

Tuesday 06 December 2005 7:13:08 am

i installed the ezoracle extension. Can anyone help in how to use it ? my goal is to display data in a page and these data should be retrieved from orcale db.

what are the benefits of using ezoracle extension instead of using PHP to connect and fetch data from oracle db.

Vadym Savchuk

Tuesday 06 December 2005 7:25:37 am

Hi Amer.

"i installed the ezoracle extension. Can anyone help in how to use it ? my goal is to display data in a page and these data should be retrieved from orcale db."

First, please read INSTALL file. It explains how to install the extension and make eZ publish use Oracle.

"what are the benefits of using ezoracle extension instead of using PHP to connect and fetch data from oracle db."

eZ publish does not use database directly. Instead, the interaction is done with ezdb library providing generic database access API. ezoracle contains a driver for ezdb that makes it possible to migrate an eZ publish site to Oracle.
If your site is running on an other DBMS and you just need to execute a couple of Oracle queries, there's no need to use ezoracle.

Amer Azzaz

Tuesday 06 December 2005 7:36:29 am

If i just want to fetch some data from Oracle database for some pages on an ezpublish site. Do you advice to use ezoracle extension ? (it means i will keep mysql and connect to oracle to fetch these data only).

Vadym Savchuk

Tuesday 06 December 2005 7:51:35 am

No, I think you don't need ezoracle much in this case.

Amer Azzaz

Tuesday 06 December 2005 11:58:17 pm

ok, i won't use the ezoracle extension. Can i use ezDB class to connect to oracle DB ? if yes please could you explain how can i pass the parameters ?

Vadym Savchuk

Wednesday 07 December 2005 5:18:37 am

"ok, i won't use the ezoracle extension. Can i use ezDB class to connect to oracle DB ? if yes please could you explain how can i pass the parameters ?"

:-) Sure you can. But if you're using ezdb to connect to Oracle that implies using ezoracle as Oracle driver for ezdb.
Usage of ezdb over Oracle doesn't differ from using it over MySQL.
Please see the INSTALL file.

Amer Azzaz

Wednesday 07 December 2005 6:21:40 am

the idea is that i will still use the mysql connection as a master connection, and for a specific case i want to use the oracle driver to connect to the oracle database to retreive some data for display.

how can i configure ezdb to use the ezoracle extension to do so?

the installation guide shows how to use the oracle connection as a master database connection and not as an oxiliary connection.

thanks for your help.

Vadym Savchuk

Wednesday 07 December 2005 7:19:39 am

"the idea is that i will still use the mysql connection as a master connection, and for a specific case i want to use the oracle driver to connect to the oracle database to retreive some data for display."
Yes, I understood.

"how can i configure ezdb to use the ezoracle extension to do so?
the installation guide shows how to use the oracle connection as a master database connection and not as an oxiliary connection. "

You must pass some extra parameters to eZDB::instance() in this case.
Example:

$parameters = array( 'server' => 'localhost',
                     'user' => 'scott',
                     'password' => 'tiger',
                     'database' => 'orcl' );
$db =& eZDB::instance( 'ezoracle', $parameters, true );

$result = $db->arrayQuery( 'SELECT * FROM tab' );
foreach ( $result as $row )
    echo $row['tname'] . "\n";

eZ debug

Timing: Jan 18 2025 19:35:50
Script start
Timing: Jan 18 2025 19:35:50
Module start 'content'
Timing: Jan 18 2025 19:35:50
Module end 'content'
Timing: Jan 18 2025 19:35:50
Script end

Main resources:

Total runtime0.6723 sec
Peak memory usage4,096.0000 KB
Database Queries209

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 588.7031180.8516
Module start 'content' 0.00680.5417 769.5547530.2109
Module end 'content' 0.54850.1238 1,299.7656337.8047
Script end 0.6723  1,637.5703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.5903210.0002
Check MTime0.00150.2161210.0001
Mysql Total
Database connection0.00090.132310.0009
Mysqli_queries0.604289.86412090.0029
Looping result0.00170.25192070.0000
Template Total0.644395.820.3222
Template load0.00170.256420.0009
Template processing0.642695.575820.3213
Template load and register function0.00020.027510.0002
states
state_id_array0.00080.125510.0008
state_identifier_array0.00080.115220.0004
Override
Cache load0.00150.2248360.0000
Sytem overhead
Fetch class attribute can translate value0.00140.214730.0005
Fetch class attribute name0.00110.158280.0001
XML
Image XML parsing0.00060.084930.0002
class_abstraction
Instantiating content class attribute0.00000.002180.0000
General
dbfile0.00280.4124210.0001
String conversion0.00000.000930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 28
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs