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連接並創建表

 

 

 

 

 

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