Unix Technical Forum

Replication of Oracle9i spatial tables as materialized views

This is a discussion on Replication of Oracle9i spatial tables as materialized views within the Oracle Database forums, part of the Database Server Software category; --> All - Is it even possible to replicate tables that contains one or more columns of type mdsys.sdo_geometry? I ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-23-2008, 08:32 AM
Thomas Gaines
 
Posts: n/a
Default Replication of Oracle9i spatial tables as materialized views

All -

Is it even possible to replicate tables that contains one
or more columns of type mdsys.sdo_geometry? I read in chapter 6
of the Oracle9i Advanced Replication guide under "Datatype
Considerations" that Oracle supports the replication of
a "user-defined datatype", and I assume that that category
includes the type mdsys.sdo_geometry. I'll be attempting
this very soon, but as I think ahead, a few issues come up:

1. Is it recommended to replicate the information
in the Oracle spatial metadata tables? The spatial metadata
views user/all/dba_sdo_geom_metadata (and many others) are
based upon permanent tables in the mdsys schema, and I generally
consider these "system"-type schemas to be off-limits as far
as replication is concerned. Perhaps I need to change my
thinking in this area.

2. I know that I'll have to replicate the spatial indexes as well
as the accompanying spatial index tables. Is there anything here
that I need to be aware of?

Thanks for your time. Do you have any other recommendations as I
attempt this replication of my Oracle spatial tables?

Thanks,
Tom
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-23-2008, 08:33 AM
Pedro Lopes
 
Posts: n/a
Default Re: Replication of Oracle9i spatial tables as materialized views

Hi,
I've already tried replication with an sdo_geometry column and there are
no problems.

I've just replicate one table, but not the indexes nor the metadata
tables. In my experince I have a subset of the information on the
updatable materialized view site (so the extents will be different too)
so I decided not to replicate the index. I don't know if this is the
best approach but it worked out. I have just kept it simple.

I suggest you to read the Oracle Spatial Best Practices on

http://otn.oracle.com/products/spati..._practices.pdf


bye,
Pedro


Thomas Gaines wrote:
> All -
>
> Is it even possible to replicate tables that contains one
> or more columns of type mdsys.sdo_geometry? I read in chapter 6
> of the Oracle9i Advanced Replication guide under "Datatype
> Considerations" that Oracle supports the replication of
> a "user-defined datatype", and I assume that that category
> includes the type mdsys.sdo_geometry. I'll be attempting
> this very soon, but as I think ahead, a few issues come up:
>
> 1. Is it recommended to replicate the information
> in the Oracle spatial metadata tables? The spatial metadata
> views user/all/dba_sdo_geom_metadata (and many others) are
> based upon permanent tables in the mdsys schema, and I generally
> consider these "system"-type schemas to be off-limits as far
> as replication is concerned. Perhaps I need to change my
> thinking in this area.
>
> 2. I know that I'll have to replicate the spatial indexes as well
> as the accompanying spatial index tables. Is there anything here
> that I need to be aware of?
>
> Thanks for your time. Do you have any other recommendations as I
> attempt this replication of my Oracle spatial tables?
>
> Thanks,
> Tom

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-23-2008, 08:34 AM
Thomas Gaines
 
Posts: n/a
Default Re: Replication of Oracle9i spatial tables as materialized views

Pedro -

Thanks for your response. I'm quite familiar with the Best Practices
doc that you mentioned, and it makes just a passing reference
to replication of a spatial table.

My desire is to be able to consider a fully functional spatial table
(by this, I mean having the ability to perform a spatial query against
that table, thus requiring the presence of the metadata and spatial
index) on one database and then replicate the table and its required
"accessories" to another database and do the same spatial query over there.

If I am to have many read-only materialized views on the destination
database, then I have to replicate all of the pieces, right? Connecting
to the destination database and creating and maintaining the indexes
and metadata there is not an option for me.

Any thoughts? I am seeing nothing at all in the official Oracle docs
regarding this topic.

Thanks again,
Tom
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:38 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com