当前位置:网站首页>oracle 远程连接数据库
oracle 远程连接数据库
2022-08-02 05:13:00 【赟文武】
准备条件
- 两台电脑均在同一局域网内
- 两台电脑防火墙均关闭
准备连接
首先,我们用一台电脑去ping一下另一条电脑(被远程连接的电脑)的ip,查看是否能ping通。步骤如下:
(1)win+r打开命令提示符

(2)输入ping ip地址,出现如下图片则视为成功
注:如果ping不通请尝试关闭远程连接的电脑的公有网络的防火墙
网络ping通后使用tnsping测试与远程连接的数据库服务是否可以正常连接:
连接方案1(通过net manager连接)
(1)win+q搜索net manager回车进入如下页面


(2)选中服务命名文件夹点击左上角绿色加号添加
注:
网络用户名用户自由定义

协议默认即可

主机名即远程连接的电脑的IP地址

服务名一般为oracle数据库实例名

点击测试,更改登录输入相关密码账户



点击文件,保持网络配置

打开pl/sql插件测试


至此,远程登录成功
连接方案2(通过修改文件连接)
(1)找到tnsnames.ora文件,我的文件位置如下E:\app\WY204\product\11.2.0\dbhome_1\NETWORK\ADMIN
(2)添加如下内容
(3)登录插件测试即可
边栏推荐
- C语言基础知识梳理总结:零基础入门请看这一篇
- Double for loop case (use js jiujiu printing multiplication table)
- VMTK环境配置记录
- 51 MCU peripherals: DS18B20
- 软件测试在职2年跳槽4次,你还在怪老板不给你涨薪?
- flex layout (flexible layout)
- Differences between i++ and ++i in loops in C language
- Install and use Google Chrome
- eggjs controller层调用controller层解决方案
- What are the ways to improve software testing capabilities?After reading this article, it will take you up a notch
猜你喜欢

pytorch基本操作:使用神经网络进行分类任务

APP Bluetooth connection test of test technology

C language: Check for omissions and fill in vacancies (3)

无代码生产新模式探索

腾讯大咖分享 | 腾讯Alluxio(DOP)在金融场景的落地与优化实践

Google notes cut hidden plug-in installation impression

How much does a test environment cost? Start with cost and efficiency

The Go language learning notes - dealing with timeout - use the language from scratch from Context

Redis-----非关系数据库

Introduction and use of apifox (1).
随机推荐
聪明人的游戏提高篇:第三章第二课:“桐桐数”(number)
kubernetes affinity, anti-affinity, taint, tolerance
Timing task library in the language use Cron, rounding
深度学习——CNN实现MNIST手写数字的识别
Automated operation and maintenance tools - ansible, overview, installation, module introduction
golang generics
5年在职经验之谈:2年功能测试、3年自动化测试,从入门到不可自拔...
家用 NAS 服务器(4)| MergerFS和SnapRaid数据定时备份
coredns介绍
nacos registry
Detailed installation and configuration of golang environment
leetcode每天5题-Day04
Constructors, member variables, local variables
保证家里和企业中的WIFI安全-附AC与AP组网实验
Cyber Security Learning - Intranet Penetration 4
51单片机外设篇:点阵式LCD
金山云团队分享 | 5000字读懂Presto如何与Alluxio搭配
51 MCU peripherals: DS18B20
字节面试题:如何保证缓存和数据库的一致性
An advanced method for solving palindromes