---
title: "How to connect Oracle from UNIX"
description: "The series of commands help you connect Oracle database from UNIX. Read more."
url: https://srinimf.com/2017/02/11/how-to-connect-oracle-from-unix/
date: 2017-02-11
modified: 2026-10-10
author: "Srini"
image: https://i0.wp.com/srinimf.com/wp-content/uploads/2017/02/unix-to-oralce-establish-connection.jpg?fit=1200%2C900&ssl=1
categories: ["UNIX"]
tags: ["UNIX macros", "UNIX to database"]
type: post
lang: en
---

# How to connect Oracle from UNIX

The following commands [help you](https://srinimf.com/2016/01/02/hot-it-skills-you-need-for-digital-business/) establish a connection between UNIX and ORACLE.

Related[How to Write Echo Command Correctly in Linux](https://srinimf.com/2022/12/03/how-to-write-echo-command-correctly-in-linux/)

## **Top Commands to Establish Connection Between UNIX and ORACLE**

echo “connecting to database”

Related[Connecting Python to Oracle Database: 4 Neat Approaches](https://srinimf.com/2023/11/08/connecting-python-to-oracle-database-4-neat-approaches/)

sqlplus -s   /nolog   EOF

connect myid/mypwd;

Select * from all_users;

exit;

EOF

echo “disconnected”

In the end you need to give exit command to come out.

**Related posts**

- [Tuning of Oracle SQL](https://docs.oracle.com/cd/E11882_01/server.112/e41573/part4.htm)

### Share this:

-
- [Tweet](https://twitter.com/share)
- [![](https://i0.wp.com/assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png)](https://www.pinterest.com/pin/create/link/?url=https%3A%2F%2Fsrinimf.com%2F2017%2F02%2F11%2Fhow-to-connect-oracle-from-unix%2F&media=https%3A%2F%2Fi0.wp.com%2Fsrinimf.com%2Fwp-content%2Fuploads%2F2017%2F02%2Funix-to-oralce-establish-connection.jpg%3Ffit%3D1200%252C900%26ssl%3D1&description=How%20to%20connect%20Oracle%20from%20UNIX)
-
- [Share on Tumblr](https://www.tumblr.com/share)
- [Share on WhatsApp (Opens in new window) WhatsApp](https://srinimf.com/2017/02/11/how-to-connect-oracle-from-unix/?share=jetpack-whatsapp)
- [More](#)
-

- [Print (Opens in new window) Print](https://srinimf.com/2017/02/11/how-to-connect-oracle-from-unix/?share=print)
- [Share on Reddit (Opens in new window) Reddit](https://srinimf.com/2017/02/11/how-to-connect-oracle-from-unix/?share=reddit)
- [Share on Telegram (Opens in new window) Telegram](https://srinimf.com/2017/02/11/how-to-connect-oracle-from-unix/?share=telegram)
- [Email a link to a friend (Opens in new window) Email](mailto:?subject=%5BShared%20Post%5D%20How%20to%20connect%20Oracle%20from%20UNIX&body=https%3A%2F%2Fsrinimf.com%2F2017%2F02%2F11%2Fhow-to-connect-oracle-from-unix%2F&share=email)
-

### Like this:

Like Loading…
