oracle 基本操作

2021-07-31 16:51:39 字數 703 閱讀 8125

在命令列提示符(cmd)中輸入sqlplus /nolog

出現sql> 提示輸入

# 使用system使用者連線,admin123為密碼,資料庫為orcl

conn system/admin123@orcl

# 建立user1使用者並設定密碼123

create user user1 identified by 123;

# 授權user1為資料庫管理員

grant dba to user1;

# 刪除使用者

drop user user1;

# 退出鏈結

exit;

# 匯入資料file為資料的路徑

imp db/user1@orcl file=d:/expdata1.dmp full=y

# 匯出自己的方案

exp db/user1@orcl owner=user1 file=d:\tdt.dmp

# 檢視表空間

select tablespace_name,status from dba_tablespaces;

# 建立表空間

create tablespace ittbank datafile 'd:/oracle/oradata/orcl/ittbank.dbf' size 300m autoextend on;

Oracle基本操作

1.建立表空間 create tablespacetestdatafile c test.dbf size 10m 名字不要為數字 2.建立使用者 create user username identified by password 不要為數字 3.給使用者授權 grant dba to user...

Oracle 基本操作

在這裡詳述 oracle 基本操作。新增使用者 隨著使用者的建立,自動產生與使用者同名的schema create user tester profile default identified by tester default tablespace testdata temporary table...

oracle 基本操作

1 使用者登入 sqlplus 帳號 密碼 2 檢視當前登入使用者 show user 3 檢視所有的使用者 select username from all users 4 建立臨時表空間 create temporary tablespace test temp tempfile d oracl...