Oracle: Create table from Snapshot

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1483
Joined: Fri Aug 29, 2003 8:39 pm

Oracle: Create table from Snapshot

Post by ^rooker »

[PROBLEM]
Imagine 2 databases with a working snapshot replication - so the data can not be written in both DBs.

...now what to do if one of those databases is lost due to a crash or whatever?


[SOLUTION]
It is possible to create tables and fill them with the content from snapshots:

Code: Select all

CREATE TABLE myuser.mytable AS SELECT * FROM myuser.mytable@linkToOtherDB;
...where "linkToOtherDB" is a database link to the "still running" database.
Post Reply