/*第1步:登入 */
以sys/sys超級使用者登入pl/sql
/*第2步:建立臨時表空間 */
create temporary tablespace user_temp
tempfile 'e:\oracle\product\10.2.0\oradata\wu\user_temp.dbf'
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;
/*第3步:建立資料表空間 */
create tablespace user_data
logging
datafile 'e:\oracle\product\10.2.0\oradata\wu\user_data.dbf'
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;
/*第4步:建立使用者並指定表空間 */
create user wu identified by wu
default tablespace user_data
temporary tablespace user_temp;
/*第5步:給使用者授予許可權 */
grant connect,resource,dba to wu;
注意上面的路徑是針對本地資料庫的,如果連遠端的資料庫會提示找不到路徑
oracle建立資料庫後建立自己的使用者
oracle建立 資料庫後建立自己的使用者 sql 第1步 登入 以sys sys超級使用者登入pl sql 第2步 建立臨時表空間 create temporary tablespace user temp tempfile e oracle product 10.2.0 oradata wu u...
oracle 建立資料庫
檢驗是否存在 存在的話刪除 drop tablespace tbs epet 建立表空間 create tablespace tbs epet datafile c epet space.dbf size 5m 建立使用者 create user epet identified by epet de...
Oracle建立資料庫
使用者 作業系統使用者 root登陸 切換到oracle 資料庫使用者 sys system scott 命令 作業系統的命令 id pwd sqlplus的命令 前導命令必須熟悉 id 查詢當前使用者 ls l 顯示當前目錄下的檔案或資料夾 pwd 顯示當前所在的目錄 cd 改變當前目錄 more...