PLSQL oracle database using a remote connection

Login Verification three ways:

First, the software is ready to download

1. Download the client PLSQL

https://download.csdn.net/download/qq_24357131/10901883

2. Download the client instantclient

  • instantclient (containing oracle database 11g, instantclient, are 64-bit)
https://pan.baidu.com/s/1-5lJl3CdJRF4zgjGSAj74Q 密码:snxr

3. Extract the instantclient copied to the directory PLSQL

  • And 13 \ instantclient_11_2 PLSQL Developer directory under the new NETWORK / ADMIN directory
    Here Insert Picture Description
    Here Insert Picture Description

Second, configure oracle monitor

#思考这个文件怎样获取?
1. 这个文件在oracle的容器中,首先进入oracle内部
2. 找到这个文件的目录
3. 将tnsnames.ora文件从容器内部复制到宿主机上(也就是咱们的linux服务器)
4. 再从linux服务器上将文件下载到windows本地
5. 将文件复制到NETWORK/ADMIN目录下面
6. 修改tnsnames.ora文件,配置oracle监听

2.1 First entering the oracle

#进入oracle容器的控制台
docker exec -it oracle_11g bash

Here Insert Picture Description

2.2. Locate the directory of the file

cd /home/oracle/app/oracle/product/11.2.0/dbhome_2/network/admin

Here Insert Picture Description

2.3. Tnsnames.ora file is copied from the interior of the container to the host

#将oracle_11g容器中的指定文件复制到宿主机上
#格式:docker cp 容器名称:容器目录/要复制的文件 宿主机上文件名
#(注如果宿主机上的文件名和容器附件名一致,代表复制文件;宿主机上文件名就会一样,就代表重命名)
#在宿主机上执行以下命令将容器内部的文件复制到宿主机上,在哪执行命令就会将附件复制到哪里。
docker cp oracle_11g:/home/oracle/app/oracle/product/11.2.0/dbhome_2/network/admin/tnsnames.ora tnsnames.ora

Here Insert Picture Description

2.4. To download files from linux to windows server on a local

I have here it is, like other tools, you can
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description

2.5. Copying files to NETWORK / ADMIN directory

Here Insert Picture Description

2.6. Tnsnames.ora modify files, configuration oracle monitor

Here Insert Picture Description
Here Insert Picture Description

Third, the Configuration chapter

3.1. Configuration Environment Variables

NLS_LANG: SIMPLIFIED CHINESE_CHINA.ZHS16GBK
TNS_ADMIN: C:\Program Files\PLSQL Developer 13\instantclient_11_2\network\ADMIN

Here Insert Picture Description
Here Insert Picture DescriptionHere Insert Picture Description
Here Insert Picture Description
After setting, save it

3.2. In the configuration PLSQL

Plsql Double-click the desktop shortcut icon, the pop-up page, select Cancel
Here Insert Picture Description
Here Insert Picture Description

C:\Program Files\PLSQL Developer 13\instantclient_11_2
C:\Program Files\PLSQL Developer 13\instantclient_11_2\oci.dll

Here Insert Picture Description
Configuration Click [OK] to restart, PLSQL client, log on again

Enter the following information, click [OK]

Username: system
Password: oracle
Database: helowin

Here Insert Picture Description

3.3. Enter the sql statement to see if the database is available

select * from v$version;

Here Insert Picture Description

Published 857 original articles · won praise 114 · views 170 000 +

Guess you like

Origin blog.csdn.net/weixin_40816738/article/details/104571238