oracle創(chuàng)建表空間、授權(quán)、創(chuàng)建用戶、導(dǎo)入dmp文件
oracle創(chuàng)建表空間,授權(quán),創(chuàng)建用戶,導(dǎo)入dmp文件,具體詳解如下所示:
1.創(chuàng)建表空間
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-- 創(chuàng)建用戶
2.創(chuàng)建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 創(chuàng)建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下的表授權(quán)給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數(shù)據(jù)中,給scott用戶connect resource sysdb的權(quán)限 創(chuàng)建三個(gè)用戶
登錄 SYS/ AS SYSDBA
2.登錄每個(gè)用戶導(dǎo)入對(duì)應(yīng)用戶的表
導(dǎo)入用戶的表 給與lyoa用戶dba的權(quán)限 grant dba to lyoa
imp lyoa/lyoa@localhost/orcl file=F:\lyoa.dmp full=y
3.用戶沒(méi)有授權(quán)需要登錄 SYS/ AS SYSDBA 之后 sysdba為密碼進(jìn)行授權(quán)
以上所述是小編給大家介紹的oracle創(chuàng)建表空間、授權(quán)、創(chuàng)建用戶、導(dǎo)入dmp文件,希望對(duì)大家有所幫助,如果大家有任何疑問(wèn)請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)腳本之家網(wǎng)站的支持!
- Oracle新建用戶、角色,授權(quán),建表空間的sql語(yǔ)句
- oracle創(chuàng)建刪除用戶示例分享(oracle刪除用戶命令及授權(quán))
- Oracle給用戶授權(quán)truncatetable的實(shí)現(xiàn)方案
- Oracle數(shù)據(jù)庫(kù)的兩種授權(quán)收費(fèi)方式詳解
- oracle數(shù)據(jù)庫(kù)如何給用戶授權(quán)查詢權(quán)限
- Oracle數(shù)據(jù)庫(kù)中的用戶授權(quán)、取消權(quán)限方式
- Oracle數(shù)據(jù)庫(kù)創(chuàng)建本地用戶、授予權(quán)限、創(chuàng)建表并插入數(shù)據(jù)實(shí)例代碼
相關(guān)文章
EF 配置Oracle數(shù)據(jù)庫(kù)的具體操作方法
下面小編就為大家?guī)?lái)一篇EF 配置Oracle數(shù)據(jù)庫(kù)的具體操作方法。小編覺(jué)得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧2017-04-04如何把Oracle?數(shù)據(jù)庫(kù)從?RAC?集群遷移到單機(jī)環(huán)境
這篇文章主要介紹了把?Oracle?數(shù)據(jù)庫(kù)從?RAC?集群遷移到單機(jī)環(huán)境,內(nèi)容包括系統(tǒng)環(huán)境搭建,源數(shù)據(jù)庫(kù)的操作及目標(biāo)數(shù)據(jù)庫(kù)的操作,本文給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2022-08-08oracle數(shù)據(jù)庫(kù)定時(shí)任務(wù)dbms_job的用法詳解
這篇文章給大家詳細(xì)介紹了dbms_job的用法,用于安排和管理作業(yè)隊(duì)列,通過(guò)使用作業(yè),可以使ORACLE數(shù)據(jù)庫(kù)定期執(zhí)行特定的任務(wù)。有需要的朋友們可以參考借鑒。2016-09-09ORACLE出現(xiàn)錯(cuò)誤1033和錯(cuò)誤ORA-00600的解決方法
這篇文章主要介紹了ORACLE出現(xiàn)錯(cuò)誤1033和錯(cuò)誤ORA-00600的解決方法,需要的朋友可以參考下2014-07-07windows下oracle 11g r2 安裝過(guò)程與卸載詳細(xì)圖解
這篇文章主要介紹了windows下oracle 11g r2 安裝過(guò)程與卸載詳細(xì)圖解,需要的朋友可以參考下2016-04-04Oracle數(shù)據(jù)完整性和鎖機(jī)制簡(jiǎn)析
事務(wù)不是程序,事務(wù)和程序分屬兩個(gè)概念,事務(wù)控制語(yǔ)句稱為TCL,一般包括Commit和Rollback,需要了解的朋友可以參考下2012-11-11Oracle存儲(chǔ)過(guò)程和自定義函數(shù)詳解
本篇文章主要介紹了Oracle存儲(chǔ)過(guò)程和自定義函數(shù)詳解,有需要的可以了解一下。2016-11-11