oracle 12c 创建能用navicat 远程登录的帐号


当前模式是在cdb模式,navicat工具能连接。sqlplus用下面账户也能连接。

查看当前模式,如果不是cdb,请切换。(上一篇有讲)
创建表空间
create tablespace my_space
datafile '/usr/local/yrm/oracle_data/my_space.dbf'
size 50M
autoextend on next 50m maxsize 2048m
extent management local;
创建临时表空间
create temporary tablespace my_space_temp
tempfile '/usr/local/yrm/oracle_data/my_space_temp.dbf'
size 32m
autoextend on next 32m maxsize 1024m
extent management local;
创建用户
create user c##my_user_1 identified by 123456 default tablespace my_space
temporary tablespace my_space_temp;

创建角色
create role c##myroles container = all;
grant dba to c##myroles container = all;
授权
grant c##myroles to C##MY_USER_1 container = all;
#grant connect,resource to c##myroles;
grant restricted session to c##myroles;
alter user c##MY_USER_1 account unlock identified by 123456;


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM