Forums / Install & configuration / ezoracle extension - Error (932): ORA-00932: inconsistent datatypes: expected - got CLOB

ezoracle extension - Error (932): ORA-00932: inconsistent datatypes: expected - got CLOB

Author Message

Javier Cadenas

Thursday 02 September 2010 2:30:45 am

I've installed ezoracle extension to migrate an existing ezpublish site from mysql to oracle. I've followed the steps in the installation manual:

http://ez.no/doc/extensions/ez_publish_extension_for_oracle_r_database/1_8/installation

without errors but when I log in to the administration interface I get the next error message:

Error (932): ORA-00932: inconsistent datatypes: expected - got CLOB
Failed query at offset 19:
SELECT DISTINCT cc.*, ezcontentclass_name.name FROM ezcontentclass cc, ezcontentclass_classgroup ccg, ezcontentclass_name WHERE cc.version = 0      AND cc.id = ccg.contentclass_id      AND ccg.group_id NOT IN ( 2, 4 )      AND cc.id = ezcontentclass_name.contentclass_id AND
                                        cc.version = ezcontentclass_name.contentclass_version AND 
 ( bitand( ezcontentclass_name.language_id, cc.language_mask ) > 0 AND
 bitand( cc.language_mask - bitand( cc.language_mask, ezcontentclass_name.language_id ), 1 )
   + bitand( cc.language_mask - bitand( cc.language_mask, ezcontentclass_name.language_id ), 8 ) / 4   + bitand( cc.language_mask - bitand( cc.language_mask, ezcontentclass_name.language_id ), 4 )   + bitand( cc.language_mask - bitand( cc.language_mask, ezcontentclass_name.language_id ), 2 ) * 4   <
   bitand( ezcontentclass_name.language_id, 1 )
   + bitand( ezcontentclass_name.language_id, 8 ) / 4   + bitand( ezcontentclass_name.language_id, 4 )   + bitand( ezcontentclass_name.language_id, 2 ) * 4 ) 
 ORDER BY ezcontentclass_name.name ASC

Looking for the solution I've found the following in the oracle website:

http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10231/app_trblshoot.htm#CIHJJIHH

I'm using:

- eZPublish 4.3.0

- eZOracle 2.0.3

- Oracle 10i

Anyone knows how can I solve it? Is this an ezpublish bug?

Thanks!

Damien Pobel

Friday 03 September 2010 12:44:41 am

Hi Javi,

From what I read on http://projects.ez.no/ezoracle, you have to use ezoracle 1.8.2 with eZ Publish 4.0.x. Version 2.0.3 is for eZ Publish 4.1, 4.2 and 4.3.

Cheers

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

Javier Cadenas

Friday 03 September 2010 1:21:27 am

Hi Damien,

Sorry but I have an error in my message, I'm using eZPublish 4.3.0 (not 4.0.3), so that's not the problem.

Thanks!

Gaetano Giunta

Friday 03 September 2010 1:49:37 am

Hi Javi. Bugs/errors with oracle are best reported in the extension's own forums.

The error code you found is apparently for oracle application server. The exact definition of ora-00932 you can find at http://ora-00932.ora-code.com/.

I just ran the same query on my local install: eZP 4.2.0 + oracle 11.2. It works, and does even return a few rows.

I think that

1. either the code does not work on oracle 10 (but I'll have to install one before I can test)

2. or your db structures are a bit different from what they should be

In fact I suspect that point 2 is in effect: looking at table definitions in my schema, there's no trace of LOBs in either ezcontentclass, ezcontentclass_classgroup or ezcontentclass_name.

Could you:

1. try to reach the setup/upgrade check page and see if the db validation page gives you any hints

2. run a DESC statement on those 3 tables and paste here the results?

Principal Consultant International Business
Member of the Community Project Board

Gaetano Giunta

Friday 03 September 2010 2:25:08 am

PS: before running the db upgrade check page, please apply the patched file found in extension\ezoracle\patches\4.2.0\kernel\setup\ over the corresponding kernel file

[edit: nevermind! I re-read the op and you are actually on 4.3.0: no patching needed]

Principal Consultant International Business
Member of the Community Project Board

Javier Cadenas

Friday 03 September 2010 2:57:46 am

Hi Gaetano,

Thanks for your reply. I send you more information.

1. Try to reach the setup/upgrade check page and see if the db validation page gives you any hints:

The database is not consistent with the distribution database.

 

To synchronize your database with the distribution setup, run the following SQL commands:

 

DROP INDEX ezfind_elevate_configur00012_i;
CREATE INDEX ezfind_elevate_config_sq ON ezfind_elevate_configuration ( search_query );
DROP TABLE ezvideoflv;
DROP TABLE starrating;

2. Run a DESC statement on those 3 tables and paste here the results?

SQL> desc ezcontentclass;
Name Null? Type
----------------------------------------- -------- ----------------------------
ALWAYS_AVAILABLE NOT NULL NUMBER(38)
CONTENTOBJECT_NAME VARCHAR2(255)
CREATED NOT NULL NUMBER(38)
CREATOR_ID NOT NULL NUMBER(38)
ID NOT NULL NUMBER(38)
IDENTIFIER VARCHAR2(50)
INITIAL_LANGUAGE_ID NOT NULL NUMBER(38)
IS_CONTAINER NOT NULL NUMBER(38)
LANGUAGE_MASK NOT NULL NUMBER(38)
MODIFIED NOT NULL NUMBER(38)
MODIFIER_ID NOT NULL NUMBER(38)
REMOTE_ID VARCHAR2(100)
SERIALIZED_DESCRIPTION_LIST CLOB
SERIALIZED_NAME_LIST VARCHAR2(3100)
SORT_FIELD NOT NULL NUMBER(38)
SORT_ORDER NOT NULL NUMBER(38)
URL_ALIAS_NAME VARCHAR2(255)
VERSION NOT NULL NUMBER(38)

SQL> desc ezcontentclass_classgroup;
Name Null? Type
----------------------------------------- -------- ----------------------------
CONTENTCLASS_ID NOT NULL NUMBER(38)
CONTENTCLASS_VERSION NOT NULL NUMBER(38)
GROUP_ID NOT NULL NUMBER(38)
GROUP_NAME VARCHAR2(255)

SQL> desc ezcontentclass_name;
Name Null? Type
----------------------------------------- -------- ----------------------------
CONTENTCLASS_ID NOT NULL NUMBER(38)
CONTENTCLASS_VERSION NOT NULL NUMBER(38)
LANGUAGE_ID NOT NULL NUMBER(38)
LANGUAGE_LOCALE NOT NULL VARCHAR2(20)
NAME NOT NULL VARCHAR2(255)

Thanks!

Gaetano Giunta

Friday 03 September 2010 4:25:19 am

I think you might not be running ezoracle version 2.0.3 then... maybe 2.0.2?

Note that 2.0.2 does not support EZP 4.3.

In 2.0.3, the column ezcontentclass.SERIALIZED_DESCRIPTION_LIST is marked as VARCHAR2(3000). You should see it in extension/ezoracle/settings/dbschema.ini.append.php

I recommend that you upgrade to a proper 2.0.3 installation, then test again the setup/upgrade page - of course, do NOT apply the 'drop table' hints ;-)

Principal Consultant International Business
Member of the Community Project Board

Gaetano Giunta

Friday 03 September 2010 4:35:29 am

Btw:

- why are you using the starrating extension instead of the native ezstarrating one? ezstarrating is certified to support oracle

- the ezvideoflv extension from Damien Pobel might have trouble on Oracle - you have been warned... (you might of course either ask him or me for fixes, or even code them on your own and provide the patches)

Principal Consultant International Business
Member of the Community Project Board

Javier Cadenas

Friday 03 September 2010 5:50:45 am

I'm running ezoracle versiĆ³n 2.0.3 and I got this error before installing starrating and ezvideoflv extensions (I will use ezstarrating as you say).

Gaetano Giunta

Friday 03 September 2010 8:15:11 am

If you are using version 2.0.3, you should not have the behaviour you describe... (btw, the two extensions have nothing to do with your problems - I never said that)

I suggest you:

1. verify in extension/ezoracle/settings/dbschema.ini.append.php if you have a line mentioning ezcontentclass.serialized_description_list

2. download again the extension and check if it corresponds to what you have installed

Principal Consultant International Business
Member of the Community Project Board

Javier Cadenas

Monday 06 September 2010 4:12:37 am

Hello Gaetano,

In extension/ezoracle/settings/dbschema.ini.append.php I have this line:

ColumnTypeTranslation[ezcontentclass.serialized_description_list]=longtext;varchar(3000)

I have downloaded the extension version 2.0.3 and it's the same what I have installed.

Thanks!

Patrick Kaiser

Friday 17 September 2010 5:00:09 am

I had the same issue today. ENV: latest ez 4.3 + ezoracle 2.0.3

The line

ColumnTypeTranslation[ezcontentclass.serialized_description_list]=longtext;varchar(3000)

is present in extension/ezoracle/settings/dbschema.ini.append.php, but table is created as clob-type.

I had to modify mysql2oracle-schema.php unter extension/ezoracle/scripts and add a new array key to the $columnTypeTransTable (Line 41):

$columnTypeTransTable = array(
    'ezurlalias.source_url'      => 'VARCHAR2(3000)',
    'ezurl.url'      => 'VARCHAR2(3000)',
    'ezurlalias_ml.action' => 'VARCHAR2(3000)',
    'ezurlalias_ml.text' => 'VARCHAR2(3000)',
    'ezurlalias.destination_url' => 'VARCHAR2(3000)',
    'ezcontentobject_tree.path_identification_string' => 'VARCHAR2(3100)',
    'ezcontentobject_trash.path_identification_string' => 'VARCHAR2(3100)',
    'ezimagefile.filepath' => 'VARCHAR2(3000)',
    'eznotificationcollection.data_subject' => 'VARCHAR2(3100)',
    'ezrss_import.url' => 'VARCHAR2(3100)',
    'ezrss_import.import_description' => 'VARCHAR2(3100)',
    'ezcontentclass.serialized_name_list' => 'VARCHAR2(3100)',
    'ezcontentclass.serialized_description_list' => 'VARCHAR2(3000)',
    'ezcontentclass_attribute.serialized_name_list' => 'VARCHAR2(3100)',
    'ezpending_actions.param' => 'VARCHAR2(3000)'
    );

Only the line

'ezcontentclass.serialized_description_list' => 'VARCHAR2(3000)',

was added.. after that you can run all scripts ( with --drop) again and it works..


                            


Best regards,

Patrick

Gaetano Giunta

Saturday 18 September 2010 7:23:58 am

Thanks Patrick for spotting this; it will be fixed in 204 and later versions

Principal Consultant International Business
Member of the Community Project Board

Javier Cadenas

Monday 18 October 2010 8:11:21 am

It works!

Thank you,

Javi

eZ debug

Timing: Jan 29 2025 13:37:55
Script start
Timing: Jan 29 2025 13:37:55
Module start 'content'
Timing: Jan 29 2025 13:37:55
Module end 'content'
Timing: Jan 29 2025 13:37:55
Script end

Main resources:

Total runtime0.2616 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0089 588.5391180.7734
Module start 'content' 0.00900.0169 769.3125118.7422
Module end 'content' 0.02590.2357 888.0547548.0781
Script end 0.2615  1,436.1328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00411.5752200.0002
Check MTime0.00190.7321200.0001
Mysql Total
Database connection0.00160.619910.0016
Mysqli_queries0.159661.01861410.0011
Looping result0.00140.52701390.0000
Template Total0.235289.910.2352
Template load0.00110.433010.0011
Template processing0.234189.476010.2341
Override
Cache load0.00090.336710.0009
Sytem overhead
Fetch class attribute can translate value0.00110.427410.0011
XML
Image XML parsing0.00030.123010.0003
General
dbfile0.047518.1716200.0024
String conversion0.00000.001530.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs