Created
September 20, 2017 17:45
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo aptitude install alien libaio1 unixodbc unzip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unzip oracle-xe-11.2.0-1.0.x86_64.rpm.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update-rc.d oracle-xe defaults 80 01 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo dpkg -i ./oracle-xe_11.2.0-1.0.x86_64_custom.deb | |
sudo /etc/init.d/oracle-xe configure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vim ~/.profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source ~/.profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sqlplus system@XE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd Disk1/ | |
sudo alien --to-deb --scripts oracle-xe-11.2.0-1.0.x86_64.rpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls ./ | |
control.tar.gz data.tar.xz debian-binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir ./tmp_data | |
cd ./tmp_data | |
tar axvf ../data.tar.xz ./ | |
vim ./etc/init.d/oracle-xe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -z "$AWK" ]; then AWK=/usr/bin/awk; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:%s/subsys\///gc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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