最佳答案以管理員身份登入:
1.首先,建立(新)使用者:
create user username identified by password;
username:新使用者名稱的使用者名稱
password: 新使用者的密碼
也可以不建立新使用者,而仍然用以前的使用者,如:繼續利用scott使用者
2.建立表空間:
create tablespace tablespacename datafile 'd:\data.dbf' size ***m;
tablespacename:表空間的名字
d:\data.dbf':表空間的儲存位置
***表空間的大小,m單位為兆(m)
3.將空間分配給使用者:
alert user username default tablespace tablespacename;
將名字為tablespacename的表空間分配給username
4.給使用者授權:
grant create session,create table,unlimited tablespace to username;
5.然後再以樓主自己建立的使用者登入,登入之後建立表即可。
conn username/password;
建立錶用create table.
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...
建立Oracle資料庫
root localhost su oracle oracle localhost sqlplus nolog sql conn as sysdba sql show user user is sys sql select name from v datafile 建立臨時表空間 create te...