Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: local copy of remote database -- how to solve this case?

Re: local copy of remote database -- how to solve this case?

From: <sybrandb_at_hccnet.nl>
Date: Fri, 01 Jun 2007 00:06:39 +0200
Message-ID: <8ghu53ldabjjagdm52r4gf67e6bk2voa9f@4ax.com>


On Thu, 31 May 2007 21:31:04 +0200, T-BAG <T-BAG_at_prisonbreak.invalid.com> wrote:

>Guys, thanks for all the input in this thread. I think I'll try
>materialized view approach.
>
>I created a query that "generates" the script which i can run locally:
>
>select 'CREATE MATERIALIZED VIEW ' || t.TABLE_NAME || ' AS SELECT * FROM
>' || t.TABLE_NAME || '@DBLINK;' || chr(10) from all_tables t where
>t.OWNER = 'ABC' and t.NUM_ROWS > 0
>
>and now I am stuck with indexes. is there a similar solution to write a
>query that could "generate" the script used to create indexes locally as
>they appear on the remote database?
>
>and my second question is about LONG type columns: will the appear
>properly in the materialized view or creating materialized view will be
>impossible with such colums?
>
>I would greatly appreciate your help.
>
>thanks,
>T-BAG
1 Oracle recommends against using the * wildcard in views. This is because the * will be resolved on view creation 2 Use dbms_metadata may be in conjunction with a decent editor, supporting regular expressions
3 Obviously LONG won't make it in a view, as they have been desupported in the previous century.

-- 

Sybrand Bakker
Senior Oracle DBA
Received on Thu May 31 2007 - 17:06:39 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US