Oracle數(shù)據(jù)庫中常用的用戶
Oracle作為一種超大規(guī)模型的數(shù)據(jù)庫,所存儲數(shù)據(jù)的量和一般數(shù)據(jù)庫的相比要大的多,以下就是對Oracle數(shù)據(jù)庫的體系結(jié)構(gòu)的相關(guān)內(nèi)容的介紹,以下是文章的具體介紹,望你瀏覽完以下的內(nèi)容會有所收獲。
Oracle數(shù)據(jù)庫包括Oracle數(shù)據(jù)庫服務(wù)器和客戶端。
Oracle數(shù)據(jù)庫服務(wù)器:
Oracle Server是一個對象一關(guān)系數(shù)據(jù)庫管理系統(tǒng)。它提供開放的、全面的、和集成的信息管理方法。每個Server由一個 Oracle DB和一個 Oracle Server實例組成。它具有場地自治性(Site Autonomy)和提供數(shù)據(jù)存儲透明機(jī)制,以此可實現(xiàn)數(shù)據(jù)存儲透明性。每個 Oracle數(shù)據(jù)庫對應(yīng)唯一的一個實例名SID,Oracle數(shù)據(jù)庫服務(wù)器啟動后,
一般至少有以下幾個用戶:
Internal,它不是一個真實的用戶名,而是具有SYSDBA優(yōu)先級的Sys用戶的別名,它由DBA用戶使用來完成數(shù)據(jù)庫的管理任務(wù),包括啟動和關(guān)閉數(shù)據(jù)庫;Sys,它是一個 DBA用戶名,具有***的數(shù)據(jù)庫操作權(quán)限;System,它也是一個 DBA用戶名,權(quán)限僅次于 Sys用戶。
客戶端:
為數(shù)據(jù)庫用戶操作端,由應(yīng)用、工具、SQL* NET組成,用戶操作數(shù)據(jù)庫時,必須連接到一服務(wù)器,該數(shù)據(jù)庫稱為本地數(shù)據(jù)庫(Local DB)。在網(wǎng)絡(luò)環(huán)境下其它服務(wù)器上的 DB稱為遠(yuǎn)程數(shù)據(jù)庫(Remote DB)。用戶要存取遠(yuǎn)程 DB上的數(shù)據(jù)時,必須建立數(shù)據(jù)庫鏈。
Oracle數(shù)據(jù)庫的體系結(jié)構(gòu)包括物理存儲結(jié)構(gòu)和邏輯存儲結(jié)構(gòu)。由于它們是相分離的,所以在管理數(shù)據(jù)的物理存儲結(jié)構(gòu)時并不會影響對邏輯存儲結(jié)構(gòu)的存取。
Oracle修改表owner
- 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;
這樣的操作似乎只能在同一個數(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數(shù)據(jù)庫與Oracle修改表owner的部分內(nèi)容的介紹,望你能有所收獲。
【編輯推薦】