Oracle 11g使用者建立 授權和匯入dmp檔案

2021-09-02 15:39:59 字數 619 閱讀 6422

匯入dmp檔案,需要知道這個dmp檔案建立的使用者。因此需要先建立使用者,並授權給它。

(1)使用者的建立

首先,以system使用者登入oracle sql developer

其次,在sql工作表(可以用快捷鍵ctrl+shift+w)中輸入:

create user thomas identified by 123456;

接著就是執行這句話,只要出現如下圖所示的執行時間,就成功建立了乙個使用者。

(2)使用者的授權,命令如下所示:(三個系統角色都給了這個使用者)

grant connect, resource,dba to thomas;

(3)在cmd下輸入匯入命令:具體命令如下

imp          thomas/123456@orcl      file=d:\student.dmp      full=y

(其中thomas是你的使用者名稱,123456是密碼,@是必須要寫的命令,orcl是你的資料庫例項,d:\student.dmp是你的匯入的資料庫檔案,full=y是必須要寫的引數

同時要注意:第乙個斜槓 / 與 第二個斜槓 \ 是不一樣的)

輸入完成後,回車,oracle回有提示,按照提示輸入即可。

oracle11g 建立使用者並授權

oracle建立使用者並給使用者授權查詢指定表或檢視的許可權 用sys賬戶登入資料庫進行如下操作 create user northbound identified by northbound default tablespace tbs dninmsv31 temporary tablespace...

oracle11g建立表空間 使用者及授權

1 安裝完oracle資料庫之後,首先在windows執行中,輸入 sqlplus as sysdba 出現如下提示表示成功連線到資料庫 2 建立表空間 輸入 create tablespace test temp datafile test temp.ora size 1000m test tem...

Oracle 11g建立表空間,並授權使用者

分為四步 第1步 建立臨時表空間 create temporary tablespace 臨時表空間名稱 tempfile d oracledata 臨時表空間名稱 編號 如01 dbf size 50m autoextend on next 50m maxsize unlimited extent...