酷知百科網

位置:首頁 > 遊戲數碼 > 電腦

oracle怎樣創建表空間和用戶

電腦1.26W

本文介紹使用plsql創建表空間和用戶的方法。

操作方法

(01)開啓oracle服務,開啟plsql工具,使用管理員帳戶登入

oracle怎樣創建表空間和用戶

(02)點左上角的新建SQL視窗。

oracle怎樣創建表空間和用戶 第2張

(03)創建表空間。在sql視窗中輸入create tablespace test datafile 'D:' size 1000m;這裏的test爲表空間名稱,路徑自己來命名。然後點執行按鈕。

oracle怎樣創建表空間和用戶 第3張

(04)執行成功後,繼續創建用戶。輸入create user test identified by test default tablespace test quota 500m on users;  這裏第一個test爲用戶名,第二個test爲密碼,第三個test爲表空間名。然後執行。

oracle怎樣創建表空間和用戶 第4張

(05)成功創建用戶後,進行授權。輸入grant all privileges to test; 執行該語句給test用戶授權,此時test用戶就可以登入了。

oracle怎樣創建表空間和用戶 第5張

(06)接下來使用test用戶登入,就可以建表了。

標籤:oracle