Oracle中使用者之間複製表資料

來源:互聯網
上載者:User

Oracle相同使用者下的表複製,也叫表的備份,雖然叫法不一樣但本質都是一樣的:

文法:create table ab as select * from b

意思是全部複製表b建立表ab

不同使用者之間的表複製需要在有dba許可權的使用者下才能實現:

例如在system使用者下:

在user使用者中建立表orders_back,達到備份scott使用者中表orders的備份

create table user.orders_back as select * from scott.orders;

下面兩張是,都是在同一個使用者下,system使用者下的就沒弄,原理都一樣,大家有興趣的話就自己研究吧

Oracle誤刪除表資料後的的快速回複功能

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.