Oracle建立表空間和使用者zz

2021-08-29 09:17:51 字數 676 閱讀 4582

建立表空間和使用者的步驟:

使用者

建立:create user 使用者名稱 identified by "密碼";

授權:grant create session to 使用者名稱;

grant create table to  使用者名稱;

grant create tablespace to  使用者名稱;

grant create view to  使用者名稱;

表空間

建立表空間(一般建n個存資料的表空間和乙個索引空間):

create tablespace 表空間名

datafile ' 路徑(要先建好路徑)\***.dbf  ' size *m

tempfile ' 路徑\***.dbf ' size *m

autoextend on  --自動增長

--還有一些定義大小的命令,看需要

default storage(

initial 100k,

next 100k,

);使用者許可權

授予使用者使用表空間的許可權:

alter user 使用者名稱 quota unlimited on 表空間;

或 alter user 使用者名稱 quota *m on 表空間;

Oracle建立表空間和使用者

oracle建立表空間和使用者 sql view plain copy 建立表空間和使用者的步驟 使用者 建立 create user 使用者名稱 identified by 密碼 授權 grant create session to 使用者名稱 grant create table to 使用者名...

Oracle建立表空間和使用者

oracle建立表空間和使用者 sql view plain copy 建立表空間和使用者的步驟 使用者 建立 create user 使用者名稱 identified by 密碼 授權 grant create session to使用者名稱 grant create table to使用者名稱 ...

Oracle建立表空間和使用者

oracle建立表空間和使用者 sql view plain copy 建立表空間和使用者的步驟 使用者 建立 create user 使用者名稱 identified by 密碼 授權 grant create session to使用者名稱 grant create table to使用者名稱 ...