oracle配置远程连接,创建表空间、用户、授权

目录

1、oracle配置远程连接

1、修改文件tnsnames.ora

2、修改配置

3、重启服务

4、连接测试

2、oracle创建用户、表空间、表、授权

1、创建表空间

2、临时表空间

3、创建用户、并指定表空间

4、授权、登录、dba权限等

5、navicat连接并创建表


1、oracle配置远程连接

 

1、修改文件tnsnames.ora

D:\app\oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN

 

将localhost:换成你服务器的ip地址

 

2、修改配置

打开

 

 

 

3、重启服务

 

 

4、连接测试

 

 

2、oracle创建用户、表空间、表、授权

1、创建表空间

create tablespace tb_txglj
    logging
    datafile 'D:\app\tablespace\tb_txglj.dbf'
    size 1000m
    autoextend on
    next 100m maxsize 2048m
    extent management local;

 

2、临时表空间

create temporary tablespace tb_txglj_temp
   tempfile 'D:\app\tablespace\tb_txglj_temp.dbf'
   size 100m
   autoextend on
   next 100m maxsize 2048m
   extent management local;

表空间文件截图

 

3、创建用户、并指定表空间

create user ssgluser  identified by 123456
  default tablespace tb_txglj
  temporary tablespace tb_txglj_temp;

 

4、授权、登录、dba权限等

grant connect,resource,dba to ssgluser;
grant unlimited tablespace to ssgluser;

 

5、navicat连接并创建表

 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章