Oracle PLSQL

1、PLSQL免安装版

A.PLSQL V12

PLSQL.zip

B.PLSQL安装包和激活码工具 V8

PLSQL8.zip

注册激活

image.png

B.PLSQL V7

PLSQL英文免安装版.rar

2、Oracle客户端连接轻量版

instantclient-basic-windows.x64-19.3.0.0.0dbru.zip

3、在Docker的Oracle容器查看配置

A.Docker安装Oracle数据库的实例可参考

语雀内容

B.查看Docker服务器中Oracle实例的配置信息

  1. [root@fcant-hadoop001 ~]# docker exec -it oracle bash
  2. [oracle@dbcef03180fe /]$ cd /home/oracle/app/oracle/product/11.2.0/dbhome_2/network/admin
  3. [oracle@dbcef03180fe dbhome_2]$ cd /home/oracle/app/oracle/product/11.2.0/dbhome_2/network/admin
  4. [oracle@dbcef03180fe admin]$ ll
  5. total 20
  6. -rw-r--r-- 1 oracle oinstall 381 Dec 29 2015 listener.ora
  7. drwxr-xr-x 2 oracle oinstall 4096 Aug 23 2014 samples
  8. -rw-r--r-- 1 oracle oinstall 187 May 8 2007 shrept.lst
  9. -rw-r--r-- 1 oracle oinstall 239 Aug 23 2014 sqlnet.ora
  10. -rw-r----- 1 oracle oinstall 425 Jan 4 2016 tnsnames.ora
  11. [oracle@dbcef03180fe admin]$ cat listener.ora
  12. # listener.ora Network Configuration File: /home/oracle/app/oracle/product/11.2.0/dbhome_2/network/admin/listener.ora
  13. # Generated by Oracle configuration tools.
  14. LISTENER =
  15. (DESCRIPTION_LIST =
  16. (DESCRIPTION =
  17. (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
  18. (ADDRESS = (PROTOCOL = TCP)(HOST = )(PORT = 1521))
  19. )
  20. )
  21. ADR_BASE_LISTENER = /home/oracle/app/oracle
  22. [oracle@dbcef03180fe admin]$ cat tnsnames.ora
  23. # tnsnames.ora Network Configuration File: /home/oracle/app/oracle/product/11.2.0/dbhome_2/network/admin/tnsnames.ora
  24. # Generated by Oracle configuration tools.
  25. LISTENER_HELOWIN =
  26. (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
  27. HELOWIN =
  28. (DESCRIPTION =
  29. (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
  30. (CONNECT_DATA =
  31. (SERVER = DEDICATED)
  32. (SERVICE_NAME = helowin)
  33. )
  34. )
  35. [oracle@dbcef03180fe admin]$

image.png
image.png

4、配置Oracle客户端

A.在解压包下创建文件夹:[network/ADMIN]

image.png

B.在新建的ADMIN文件夹下添加配置文件tnsnames.ora

tnsnames.ora内容如下

  1. ORACLR_CONNECTION_DATA =
  2. (DESCRIPTION =
  3. (ADDRESS_LIST =
  4. (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
  5. )
  6. (CONNECT_DATA =
  7. (SID = helowin)
  8. (PRESENTATION = RO)
  9. )
  10. )
  11. HELOWIN =
  12. (DESCRIPTION =
  13. (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
  14. (CONNECT_DATA =
  15. (SERVER = DEDICATED)
  16. (SERVICE_NAME = helowin)
  17. )
  18. )

C.客户端配置数据依据服务端

左为客户端连接配置,右为服务端数据库配置信息,客户端的配置依据服务端
image.png

5、在PLSQL配置Oracle客户端

image.png

6、登录连接

image.png
image.png