How to connect to Oracle 11g database remotely(如何远程连接Oracle 11g数据库)
问题描述
我在计算机 A 上安装了 Oracle 11g XE.我可以使用 connect username/password> 命令通过 sql 命令行进行连接.我也可以向Demo数据库发送SQL指令:Select * from demo_customers;
数据库在计算机 A 的本地主机上运行.
我希望计算机 B 连接到本地主机上计算机 A 的数据库.我该怎么做?
您需要在服务器 A 上运行 lsnrctl 实用程序以启动侦听器.然后,您将使用以下语法从计算机 B 进行连接:
sqlplus 用户名/密码@hostA:1521/XE如果使用默认值 1521,则端口信息是可选的.
此处为侦听器配置文档.此处为远程连接文档.>
I have Oracle 11g XE installed on computer A. I can connect through the sql command line using the command connect username/password. I also can send SQL instructions to the Demo database: Select * from demo_customers;
The database is running on localhost of computer A.
I want computer B to connect to computer A's database on localhost. How can I do that?
You will need to run the lsnrctl utility on server A to start the listener. You would then connect from computer B using the following syntax:
sqlplus username/password@hostA:1521 /XE
The port information is optional if the default of 1521 is used.
Listener configuration documentation here. Remote connection documentation here.
这篇关于如何远程连接Oracle 11g数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何远程连接Oracle 11g数据库
基础教程推荐
- ORA-01830:日期格式图片在转换整个输入字符串之前结束/选择日期查询的总和 2021-01-01
- while 在触发器内循环以遍历 sql 中表的所有列 2022-01-01
- 带更新的 sqlite CTE 2022-01-01
- 带有WHERE子句的LAG()函数 2022-01-01
- 使用 VBS 和注册表来确定安装了哪个版本和 32 位 2021-01-01
- 如何在 CakePHP 3 中实现 INSERT ON DUPLICATE KEY UPDATE aka upsert? 2021-01-01
- CHECKSUM 和 CHECKSUM_AGG:算法是什么? 2021-01-01
- MySQL 5.7参照时间戳生成日期列 2022-01-01
- MySQL根据从其他列分组的值,对两列之间的值进行求和 2022-01-01
- 从字符串 TSQL 中获取数字 2021-01-01
