您现在的位置是:网站首页> 编程资料编程资料
oracle创建表空间、授权、创建用户、导入dmp文件_oracle_
2023-05-27
526人已围观
简介 oracle创建表空间、授权、创建用户、导入dmp文件_oracle_
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文件,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对网站的支持!
您可能感兴趣的文章:
相关内容
- Oracle触发器实例代码_oracle_
- Oracle生成单据编号存储过程的实例代码_oracle_
- Windows Sever 2012下Oracle 12c安装配置方法图文教程_oracle_
- Oracle数据库的字段约束创建和维护示例_oracle_
- Oracle用户密码过期和用户被锁的解决方法_oracle_
- Linux 7下脚本安装配置oracle 11g r2教程_oracle_
- Oracle高级队列(Advanced Queue)简单实例_oracle_
- oracle11g 通过修改配置文件方式连接远程数据库的方法_oracle_
- Oracle ASM数据库故障数据恢复解决方案_oracle_
- oracle插入字符串数据时字符串中有'单引号问题_oracle_
