資料庫使用者建立

2021-09-30 06:57:00 字數 479 閱讀 5888

今天需要導乙個新庫熟悉工程**。想當然的以為

create user$username$identified by$password$ ;

建立乙個使用者之後,再用imp命令匯入就可以了。沒想到系統報錯,提示使用者不可見。

拿pl/sql訪問的時候也報錯說,使用者無法連線。糾結啊.....

心想,為什麼orcl的預設賬戶scott直接就可以連,我新建立的使用者就不靈呢?我的用

戶比系統使用者短在哪一塊兒呢?

於是用scott使用者登入,仔細對比了一下這兩個使用者的區別,問題終於定位到了。

scott使用者建立時,附上了這麼乙個命令

grant connect to scott;

敢情連線是一種許可權,也是可配置的。這次長見識了........

建立資料庫使用者

建立表空間 create tablespace 表空間名 datafile d 表空間名.dbf size 20m autoextend on next 10m 建立臨時表空間 create temporary tablespace 臨時表空間名 tempfile d myself.ldf size...

mysql建立資料庫,建立使用者

建立資料庫 create database test use test 建立使用者 create user test identified by test 給使用者賦權 grant all on test.to test 建立資料庫 命令 create database databasename 例...

建立oracle資料庫使用者

查詢表空間 select tablespace name,file id,file name,round bytes 1024 1024 0 total space from dba data files order by tablespace name 1.建立表空間 create tablesp...