Skip to content

Instantly share code, notes, and snippets.

@jniltinho
Last active March 29, 2024 23:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jniltinho/327266096f9a4e6169a806c09e10a039 to your computer and use it in GitHub Desktop.
Save jniltinho/327266096f9a4e6169a806c09e10a039 to your computer and use it in GitHub Desktop.
Install Oracle XE Debian/Ubuntu
#!/bin/bash
## Links
## Ubuntu|Debian
# http://www.ccl.net/cca/software/UNIX/oracle/RH6.2/README2.html
# https://openacs.org/xowiki/oracle-install
# https://www.vivaolinux.com.br/dica/Instalacao-e-Configuracao-do-Oracle-Express-Edition-e-SQL-Developer-no-Ubuntu
# https://docs.oracle.com/cd/E16529_01/doc/server.112/e10839.pdf
# https://openacs.org/doc/oracle
# https://kenny-chlim.medium.com/oracle-18c-xe-installation-debian-10-4-buster-9cbf7f957d9f
# https://github.com/oracle/docker-images/tree/main/OracleDatabase/SingleInstance
# https://www.comp.nus.edu.sg/~oradoc/doc/solaris.817/a85349/ch1.htm
# https://www.oracle.com/database/technologies/xe18c-downloads.html
# https://www.oracle.com/database/technologies/xe-downloads.html
# https://www.oracle.com/database/free/get-started/
sudo apt-get update
sudo apt-get install alien libaio1 unixodbc wget procps libc-bin net-tools
## Converta o pacote RPM para DEB e instale-o:
wget https://download.oracle.com/otn-pub/otn_software/db-express/oracle-database-xe-18c-1.0-1.x86_64.rpm
sudo alien --scripts -d oracle-database-xe-18c-*.rpm
sudo dpkg -i oracle-database-xe-18c_*.deb
## Configure o Oracle XE:
sudo /etc/init.d/oracle-xe-18c configure
## Adicione as variáveis de ambiente:
echo 'export ORACLE_HOME=/opt/oracle/product/18c/dbhomeXE' >> ~/.bashrc
echo 'export PATH=$PATH:$ORACLE_HOME/bin' >> ~/.bashrc
echo 'export ORACLE_SID=XE' >> ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment