oracle 使用pl sql建立使用者和表空間

2021-07-02 17:27:05 字數 707 閱讀 5182

/*分為四步,複製全部並儲存為.sql格式的文件,在pl/sql中間操作區右鍵-開啟-sql指令碼進行執行即可建立 */

/*第1步:建立臨時表空間nhdj_temp */

create temporary tablespace nhdj_temp

size 50m

autoextend on

next 50m maxsize 20480m

extent management local;

/*第2步:建立資料表空間nhdj_data */

create tablespace nhdj_data

logging

size 50m

autoextend on

next 50m maxsize 20480m

extent management local;

/*第3步:建立使用者並指定表空間 賬號nhdj 密碼nhdj */

create user nhdj identified by nhdj

default tablespace nhdj_data

temporary tablespace nhdj_temp;

/*第4步:給使用者授予許可權 */

grant connect,resource,dba to nhdj

用PLSQL建立Oracle使用者

具體步驟 1.首先以你安裝oracle的時候設定的sysdba 使用者 登陸到plsql 2.右鍵urse new 在彈出的視窗中 general中 填寫 name跟password 3.切換到role privileges role選擇connet 勾選default 4.切換到 system p...

使用pl sql來Oracle建立表空間和建立使用者

建立臨時表空間 create temporary tablespace test temp tempfile e oracle product 10.2.0 oradata testserver test temp01.dbf size 32m autoextend on next 32m maxs...

oracle配置使用PL SQL

一般在使用plsql時,會結合oracle客戶端來使用,這樣方便把資料庫連線資訊新增到plsql中。不過oracle客戶端軟體有點龐大,安裝起來不太方便,所以在網上找到一種不依賴oracle客戶端來使用plsql的方法。2 具體操作步驟 2 在解壓目錄下新建 network 目錄,然後在networ...