使用sys sysdba登入sqlplus
建立表空間
create tablespace histdb1
datafile 'd:\oracle\product\10.2.0\oradata\orcl\histdb2.dbf'
size 200m
autoextend on next 10m maxsize unlimited;
建立使用者:
create user histdb3 identified by histdb4
default tablespace histdb1
temporary tablespace temp
指定角色:
grant connect,resource,dba to histdb3
注:histdb1 為表空間
histdb2 為表空間檔名
histdb3為使用者名稱
histdb4為使用者密碼
刪除:步驟一: 刪除user
drop user ×× cascade
說明: 刪除了user,只是刪除了該user下的schema objects,是不會刪除相應的tablespace的。
步驟二: 刪除tablespace
drop tablespace tablespace_name including contents and datafiles;
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使用者名稱 ...