oracle 建立使用者 建立臨時表空間 賦予許可權

2021-05-24 07:25:33 字數 396 閱讀 8890

//建立臨時表空間,如果已經有,就不需要建立

create temporary tablespace tempts01 tempfile 'c:/oracle/product/10.2.0/oradata/orcl/tempts01.dbf' size 100m;   

//建立使用者

create user xuebin identified by xuebin

profile default

default tablespace users

temporary tablespace tempts01

account unlock;

grant resource to xuebin;

grant connect to xuebin;

Oracle 建立臨時表

oracle 儲存過程中不像sqlserver 中 在儲存過程中用 就可以建立臨時表,用來快取需要處理的資料。oracle主要需要物理建立臨時表結構,用到global temporary table 關鍵字。語法如下 create table create global temporary tabl...

Oracle 建立臨時表

分類 oracle 22 在oracle8i或以上版本中,可以建立以下兩種臨時表 1。會話特有的臨時表 create global temporary on commit preserve rows 2。事務特有的臨時表 create global temporary on commit delet...

Oracle 建立使用者,臨時表空間,表空間,授權

建立使用者需要制訂預設表空間及臨時表空間,如果忽略,system表空間將成為預設表空間,這樣並不好。所以我們在建立使用者之前,先建立表空間。首先使用sys賬號使用sysbda方式登陸 建立臨時表空間 create temporary tablespace mydataspace temp tempf...