---
title: "Script to Install Oracle"
description: "Simple hack to install oracle on Ubuntu sudo sh -c ’echo ’deb unstable main non-free’ /etc/apt/sources.list’ wget in JS fast."
url: "https://h3manth.com/scribe/script-install-oracle/"
canonical_url: "https://h3manth.com/scribe/script-install-oracle/"
markdown_url: "https://h3manth.com/scribe/blog/script-install-oracle.md"
publishDate: "2010-03-12T00:00:00.000Z"
author: "Hemanth HM"
category: "linux"
tags: ["ubuntu","bash","web"]
word_count: 67
reading_time_minutes: 1
x_markdown_tokens: 233
content_signal: "ai-train=yes, search=yes, ai-input=yes"
---

# Script to Install Oracle

> Simple hack to install oracle on Ubuntu sudo sh -c ’echo ’deb unstable main non-free’ /etc/apt/sources.list’ wget in JS fast.

**Simple hack to install oracle on Ubuntu** ``

## !/bin/bash

sudo sh -c 'echo "deb http://oss.oracle.com/debian unstable main non-free" >> /etc/apt/sources.list' wget http://oss.oracle.com/el4/RPM-GPG-KEY-oracle -O- | sudo apt-key add - sudo apt-get update sudo apt-get install oracle-xe sudo /etc/init.d/oracle-xe configure cat >> $HOME/.bashrc << 'EOF' ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server PATH=$PATH:$ORACLE_HOME/bin export ORACLE_HOME export ORACLE_SID=XE EOF **To test if its working fine** **Log in as database admin** : _sqlplus sys as sysdba_
