Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

EAV model related Query

989611Jun 13 2013 — edited Jun 13 2013

All,

I currently persist XML data (Trades) in my database (Trade table) as a CLOB column.

And each time this data needs to be match/analysed - with new trade there is a performance impact.

So I am considering EAV model.

At the simplest level my table looks like this

TRADE: (which we can assume is the Entity table)

COLUMN                DATATYPE    

--------------                -----------------              

ID                          NUMBER(19,0)    

TRADE_DATA        CLOB

with the EAV model, I am planing to have these 2 additional Tables

ATTRIBUTES

COLUMN               DATATYPE

--------------               ----------------

attribute_id               NUMBER(19,0)

name                       VARCHAR2(32 CHAR)

ATTRIBUTE_VALUES

COLUMN               DATATYPE

-------------               -------------------

value_id                    NUMBER

attribute_id               NUMBER

entity_id                    NUMBER

value                         VARCHAR2(32 CHAR)

attribute_id is foreign key for ATTRIBUTES table

entity_id is foreign key for TRADE table

The CLOB data will be normalized and stored in ATTRIBUTE_VALUES table.

I consider this design after reading the link

http://techportal.inviqa.com/2010/10/21/the-eav-data-model/

My concern is - this extendable - once I have other different Tables storing CLOB data?

i.e. would this design work with multiple entities table (the primary key in the other entity tables will be an auto-increment synthetic primary key)

Or

would I have need a Attributes/Attributes_values tables for each of my entity table? which sounds redundant.

regards

Deepak.

Comments

Timo Hahn

Have you tested the web service in the EM on the stand-alone server?
Maybe the server has a security-enabled you have not on your embedded sever. Have you talked to an admin about this?

Timo

Aniruddh Mishra-Oracle

I have tested the webservice in EM on the stand alone server. It's working.
If I test the webservice directly through the webservice endpoint url in the EM then it's working. I'm able to trigger the webservice and receive the result. However, when I try to consume the web service through Web Service data control it throws the above mentioned error.

Timo Hahn

Have you tried the web service with any other tool e.g. soapui?
The error you get points to a missing authorization or if you don't use security to a wrong configuration when you created the part of the app that should consume the web service.

Timo

Filip Huysmans

Hi everyone,

is here a solution for? I have the same issue, after upgrading from 11.1.1.7 to 12.2.1.4.
The webservice call worked correctly before and generates now this error.
Is there an extra security setting we need to set?

Thx

Timo Hahn

@filip-huysmans Please don't hijack an almost one year old thread. Open your own question providing all information about your environment.
Timo

1 - 5
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 11 2013
Added on Jun 13 2013
9 comments
1,191 views