On Sat, 14 Aug 2010, Thomas Kellerer wrote:
Quote:
I need to move data from the preparation schema to the live schema.
Essentially, i want to do a perfectly straightforward "insert into
livetable (a, b, c) select a, b, c from preptable where ...", but where
livetable and preptable are in different schemas.
How do i do this? Is it as simple as prefixing the table names with the
schema names?
Yes. |
Excellent. For some reason, i'd been thinking this would be very
complicated.
The application logs into the two schemas with different usenames and
passwords. Presumably, i can somehow give one of the usernames access to
both schemas, right? Or rather, i can ask my DBA to do that.
Quote:
Another option would be to use exp/imp (or expdb/impdb) to move a
consistent snapshot of the data from one schema (or server) to another. |
Good point. And i can do an expdp with a query, although i don't know if
it'll do arbitrary ones, so that covers that angle.
tom
--
One horse laugh is worth a thousand syllogisms. -- H. L. Mencken