- Oracle Database XE 11gR2 Jump Start Guide
- Asif Momen
- 266字
- 2021-08-13 18:28:13
Remote database connections
Establishing a connection remotely means running the SQL command-line utility on a different host other than the Oracle Database 11g XE machine and initiating a database connection command using the valid database credentials over the network using a connect
string.
The following screenshot is taken from Oracle Database 11g XE on Windows, and demonstrates establishing a remote database connection to the database:

As discussed earlier, a connect
string defines which database server to connect to, on what port, and using what protocol. In the preceding example, xe
is the name of the connect
string.
Alternatively, we can connect to the database by providing the database host name and port as shown in the following screenshot:

The database hostname name and port information is basically encapsulated in the connect
string.
Using the local sqlplus
utility we can connect to the database via listener; thus, simulating remote client connections. To achieve this, we need to configure the tnsnames.ora
file and make sure that the listener is running.
The remote host initiating database connection should have Oracle Client software installed. It is through this client software that the Oracle command-line utilities connect to the database.
You can download Oracle Database 11g R2 Client software for Windows from http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-win32soft-098987.html. To download the software you have to log in and accept the license agreement.
Tip
Downloading the example code
You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.
- Vue 3移動(dòng)Web開發(fā)與性能調(diào)優(yōu)實(shí)戰(zhàn)
- Java系統(tǒng)分析與架構(gòu)設(shè)計(jì)
- 架構(gòu)不再難(全5冊)
- Android Application Development Cookbook(Second Edition)
- 趣學(xué)Python算法100例
- FFmpeg入門詳解:音視頻流媒體播放器原理及應(yīng)用
- C語言程序設(shè)計(jì)
- Java程序設(shè)計(jì)與計(jì)算思維
- C語言程序設(shè)計(jì)
- Modern JavaScript Applications
- WebRTC技術(shù)詳解:從0到1構(gòu)建多人視頻會(huì)議系統(tǒng)
- Getting Started with NativeScript
- Visual C#通用范例開發(fā)金典
- 零基礎(chǔ)學(xué)C語言第2版
- 寫給程序員的Python教程