標籤:oracle建立使用者
--首先建立暫存資料表空間create temporary tablespace test_temptempfile ‘路徑‘size 32Mautoextend onnext 32M maxsize 2048Mextend management local;--建立資料表空間create tablespace test_dataloggingdata ‘路徑‘size 32Mautoextend onnext 32M maxsize 2048Mextend management local;--建立使用者,分配資料表空間create tuser test identified by ‘123456‘default tablespace test_datatemporary table tablespace test_temp;--使用者授權grant create view,resource,dba,connect to test;---------------直接使用系統預設資料表空間建立使用者-------------------create user test identified by "123456" default tablespace users temporary tablespace temp;--常用命令--匯出資料庫,注意在dos中最後不加";"exp test/123456 file=‘路徑/test.dmp‘ owner=test--匯入資料庫imp test/123456 file=‘路徑‘ fromuser=test--解鎖使用者alter user test account unlock;--修改密碼alter user test identified by ‘123456‘--刪除當前串連使用者select username,sid,serial# from v$session where username = ‘test‘ alter system kill session ‘1156,37035‘
oracle建立使用者及常用命令