Skip to content

Instantly share code, notes, and snippets.

@ysaito8015
Created September 20, 2017 17:45
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 ysaito8015/1e2b7e7bf4f0fe6e37bbbd6e0e003481 to your computer and use it in GitHub Desktop.
Save ysaito8015/1e2b7e7bf4f0fe6e37bbbd6e0e003481 to your computer and use it in GitHub Desktop.
Ubuntu 16.04 へ Oracle 11g Express Edition を入れてみた ref: http://qiita.com/ysaito8015@github/items/1b9b6c528671f6593f1f
sudo aptitude install alien libaio1 unixodbc unzip
unzip oracle-xe-11.2.0-1.0.x86_64.rpm.zip
update-rc.d oracle-xe defaults 80 01
rm ../data.tar.xz ../control.tar.gz
tar acvf ../control.tar.gz ./
cd ../tmp_data
tar acvf ../data.tar.gz ./ #xz 形式ではインストールの途中で止まった
cd ./
ar d ./oracle-xe_11.2.0-1.0.x86_64.deb data.tar.xz # 一旦消して
ar r ./oracle-xe_11.2.0-1.0.x86_64.deb data.tar.gz control.tar.gz # 追加
mv ./oracle-xe_11.2.0-1.0.x86_64.deb ./oracle-xe_11.2.0-1.0.x86_64_custom.deb
sudo dpkg -i ./oracle-xe_11.2.0-1.0.x86_64_custom.deb
sudo /etc/init.d/oracle-xe configure
vim ~/.profile
source /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh
source ~/.profile
sqlplus system@XE
cd Disk1/
sudo alien --to-deb --scripts oracle-xe-11.2.0-1.0.x86_64.rpm
mkdir ./tmp_deb # 作業用ディレクトリ
cp ./oracle-xe_11.2.0-1.0.x86_64.deb
cd ./tmp_deb
ar x ./oracle-xe_11.2.0-1.0.x86_64.deb
ls ./
control.tar.gz data.tar.xz debian-binary
mkdir ./tmp_data
cd ./tmp_data
tar axvf ../data.tar.xz ./
vim ./etc/init.d/oracle-xe
### BEGIN INIT INFO
# Provides: OracleXE
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Oracle 11g Express Edition
### END INIT INFO
if [ -z "$AWK" ]; then AWK=/usr/bin/awk; fi
:%s/subsys\///gc
cd ../
mkdir ./tmp_control
cd ./tmp_control
tar axvf ../control.tar.gz ./
vim ./postinst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment