您好,登錄后才能下訂單哦!
oracle創建表空間,授權,創建用戶,導入dmp文件,具體詳解如下所示:
1.創建表空間
Create tablespace bpm datafile 'D:\ORACLE11\ORADATA\ORCL\BPM.DBF' size 400M autoextend on Create tablespace lyoa datafile 'D:\ORACLE11\ORADATA\ORCL\LYOA.DBF' size 400M autoextend on Create tablespace kdb datafile 'D:\ORACLE11\ORADATA\ORCL\KDB.DBF' size 400M autoextend on
2-- 創建用戶
2.創建LYOA用戶
create user LYOA identified by LYOA default tablespace LYOA temporary tablespace TEMP profile DEFAULT; -- Grant/Revoke role privileges grant connect to LYOA; grant resource to LYOA; -- Grant/Revoke system privileges grant create database link to LYOA; grant create public database link to LYOA; grant create view to LYOA;
3 創建KDB用戶
create user KDB identified by KDB default tablespace KDB temporary tablespace TEMP profile DEFAULT; -- Grant/Revoke role privileges grant connect to KDB; grant resource to KDB;
4 把LYOA下的表授權給KDB用戶
grant all on lyoa.oa_public_address_book to KDB; grant all on lyoa.oa_public_address_book_group to KDB; grant all on bpm.bpm_orgdeptlist to KDB; grant all on bpm.bpm_orguserdeptmap to KDB; grant all on bpm.bpm_orguserlist to KDB; -- Grant/Revoke system privileges grant create view to KDB; grant unlimited tablespace to KDB; -- Create the user create user BPM identified by BPM default tablespace BPM temporary tablespace TEMP profile DEFAULT; -- Grant/Revoke role privileges grant connect to BPM; grant resource to BPM; -- Grant/Revoke system privileges grant create database link to BPM; grant create public database link to BPM; grant create view to BPM; grant drop public database link to BPM; grant unlimited tablespace to BPM; grant all on lyoa.ly_im_news_2 to bpm; grant all on lyoa.oa_system_message to bpm;
1.在orac數據中,給scott用戶connect resource sysdb的權限 創建三個用戶
登錄 SYS/ AS SYSDBA
2.登錄每個用戶導入對應用戶的表
導入用戶的表 給與lyoa用戶dba的權限 grant dba to lyoa
imp lyoa/lyoa@localhost/orcl file=F:\lyoa.dmp full=y
3.用戶沒有授權需要登錄 SYS/ AS SYSDBA 之后 sysdba為密碼進行授權
以上所述是小編給大家介紹的oracle創建表空間、授權、創建用戶、導入dmp文件,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復大家的。在此也非常感謝大家對億速云網站的支持!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。