Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2003
    Posts
    294

    Lightbulb Unanswered: Tables Mirroring

    Hello, I have a db user called 'A' and another one called 'B'.

    'A' has many tables and I have to keep a mirror of SOME of them in 'B' (But not all the columns), could you please tell me a method to do this ??? I was thinking about triggers, But I don't know If there's something better...

    Thanks

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    Code:
    CREATE VIEW
    or
    CREATE SYNONYM
    & not bother with actually duplicating the data
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  3. #3
    Join Date
    Jun 2003
    Posts
    294
    Good Idea, But I should have the possibility to modify some data or even to add data to B user tables...

  4. #4
    Join Date
    Jan 2004
    Location
    Croatia, Europe
    Posts
    4,094
    Provided Answers: 4
    You could create a table in user B's schema which would contain columns you are interested in. Create a PL/SQL procedure which will copy data from A to B and, possibly, do the computing you've mentioned. Submit this procedure for execution using DBMS_JOB.

  5. #5
    Join Date
    Jun 2003
    Posts
    294

    Lightbulb

    Quote Originally Posted by Littlefoot
    You could create a table in user B's schema which would contain columns you are interested in. Create a PL/SQL procedure which will copy data from A to B and, possibly, do the computing you've mentioned. Submit this procedure for execution using DBMS_JOB.

    mmmm... The same that a trigger, but offline... Data must be online !!

    Thank you !

  6. #6
    Join Date
    May 2004
    Location
    Dominican Republic
    Posts
    721
    Mmm.. so, user 'B' should be able to modify its own copy of the data.. so, in a situation where B modifies data in table X, columns a, b and c, and user A modifies the same table and same columns afterwards.. which data is the data should be in schema 'B' ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •