国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數(shù)據(jù)庫 > Oracle > 正文

oracle創(chuàng)建表空間、授權(quán)、創(chuàng)建用戶、導(dǎo)入dmp文件

2020-07-26 14:06:25
字體:
供稿:網(wǎng)友

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 onCreate tablespace lyoa datafile 'D:/ORACLE11/ORADATA/ORCL/LYOA.DBF' size 400M autoextend onCreate tablespace kdb datafile 'D:/ORACLE11/ORADATA/ORCL/KDB.DBF' size 400M autoextend on

2-- 創(chuàng)建用戶

2.創(chuàng)建LYOA用戶

create user LYOAidentified by LYOAdefault tablespace LYOAtemporary tablespace TEMPprofile DEFAULT;-- Grant/Revoke role privilegesgrant connect to LYOA;grant resource to LYOA;-- Grant/Revoke system privilegesgrant create database link to LYOA;grant create public database link to LYOA;grant create view to LYOA;

3 創(chuàng)建KDB用戶

create user KDBidentified by KDBdefault tablespace KDBtemporary tablespace TEMPprofile DEFAULT;-- Grant/Revoke role privilegesgrant 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 privilegesgrant create view to KDB;grant unlimited tablespace to KDB;-- Create the usercreate user BPMidentified by BPMdefault tablespace BPMtemporary tablespace TEMPprofile DEFAULT;-- Grant/Revoke role privilegesgrant connect to BPM;grant resource to BPM;-- Grant/Revoke system privilegesgrant 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.用戶沒有授權(quán)需要登錄 SYS/ AS SYSDBA 之后 sysdba為密碼進(jìn)行授權(quán)

以上所述是小編給大家介紹的oracle創(chuàng)建表空間、授權(quán)、創(chuàng)建用戶、導(dǎo)入dmp文件,希望對(duì)大家有所幫助,如果大家有任何疑問請給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)武林網(wǎng)網(wǎng)站的支持!

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 石景山区| 佛山市| 塔城市| 漠河县| 镇平县| 福清市| 广灵县| 荔浦县| 石屏县| 交城县| 西乌珠穆沁旗| 桓台县| 宝鸡市| 皮山县| 德昌县| 景洪市| 淮北市| 广丰县| 繁峙县| 沙湾县| 闸北区| 陇南市| 东港市| 清丰县| 姜堰市| 察哈| 滨州市| 合阳县| 普定县| 墨玉县| 綦江县| 平果县| 肇源县| 平顺县| 茂名市| 天峻县| 土默特左旗| 错那县| 错那县| 名山县| 宾阳县|