oracle 基本操作

2021-06-01 03:04:36 字數 1106 閱讀 2572

1、使用者登入

sqlplus 帳號/密碼

2、檢視當前登入使用者

show user;

3、檢視所有的使用者

select username from all_users;

4、建立臨時表空間

create temporary tablespace test_temp

tempfile 'd:\oracle\oradata\testserver\test_temp01.dbf'

size 32m

autoextend on

next 32m maxsize 2048m

extent management local;

5、建立資料表空間

create tablespace test_data

logging

datafile 'd:\oracle\oradata\testserver\test_data01.dbf'

size 32m

autoextend on

next 32m maxsize 2048m

extent management local;

6、建立使用者並指定表空間

create user tb_test identified by tb_test

default tablespace test_data

temporary tablespace test_temp

quota unlimited on test_data

account unlock;

7、使用者角色授權

grant connect,dba, resource to tb_test

8、刪除使用者

drop user tb_test cascade

9、匯出資料

exp.exe tb_test/tb_test@test owner=tb_test file="d:\daochu.dmp" compress=n

10、匯入資料

imp tb_test/tb_test@test full = y file="d:\daochu.dmp" ignore=y log=e:\log.txt

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基本操作

oralce基本操作說明 一 建立表空間 sys使用者在cmd下以dba身份登陸 在cmd中打sqlplus nolog 然後再conn as sysdba 注意點 1.如果在pl sql 等工具裡開啟的話,直接修改下面的 中 斜體加粗部分 執行2.確保路徑存在,比如 d oracle oradat...