Oracle修改表owner要用到的代碼有哪些
作者:佚名
以下的文章主要是介紹Oracle修改表owner的實(shí)際操作,如果你對其實(shí)際操作感興趣的話,你就可以點(diǎn)擊下面的文章了。
我們大家都知道Oracle的關(guān)系數(shù)據(jù)庫是全世界***支持SQL語言的相關(guān)數(shù)據(jù)庫。其有很多的用途,那么以下的文章主要是介紹Oracle修改表owner的實(shí)際操作,本文主要是以代碼的方式來引出其實(shí)際的相關(guān)的實(shí)際操作。
- create user test identified by test
- grant resource,connect to test;
- create table t1 (id number,name varchar2(20));
- insert into t1 values (1,'xx');
- commit;
- grant all on t1 to test1;
這樣的操作似乎只能在同一個(gè)數(shù)據(jù)庫中操作。
- create user test1 identified by test1
- grant resource,connect to test1;
- conn test1/test1
- create table temp(id number,name varchar2(20)) partition by range(id)
- (partition part0 values less than (-1),
- partition part1 values less than (maxvalue));
- create table t1(id number,name varchar2(20));
- alter table temp exchange partition part1 with table test.t1
- including indexes without validation;
- alter table temp exchange partition part1 with table t1 including indexes without validation;
以上的相關(guān)內(nèi)容就是對Oracle修改表owner的介紹,望你能有所收獲。
【編輯推薦】
責(zé)任編輯:佚名
來源:
互聯(lián)網(wǎng)