oracle 11.2.0.4的官方文檔認證了suse 12 sp1,但sp3並未作認證
如要在sp3上安裝,除了常規的linux上安裝外,其餘不一樣點參考以下步驟:
1 服務管理
/usr/sbin/rc*
systemctl list-unit-files|grep -i firewall
#修改主機名
hostnamectl set-hostname suse12
#禁用一些服務
systemctl disable bluetooth.service
systemctl disable dbus-org.opensuse.Network.DHCP6.service
systemctl disable wickedd-dhcp6.service
#關閉防火牆
linux-6x6d:~ # systemctl stop SuSEfirewall2.service
linux-6x6d:~ # systemctl list-unit-files|grep -i firewall
SuSEfirewall2.service enabled
SuSEfirewall2_init.service enabled
SuSEfirewall2_setup.service enabled
linux-6x6d:~ # systemctl disable SuSEfirewall2.servicelinux
2 啓動管理
suse 取消/etc/inittab(CENTOS 7保留了這個文件,寫了說明)c++
# multi-user.target: analogous to runlevel 3 # graphical.target: analogous to runlevel 5
查看運行模式:
linux-6x6d:~ # systemctl get-default
graphical.target
linux-6x6d:~ # runlevel
N 5
修改啓動模式
linux-6x6d:~ # systemctl set-default multi-user.target
Removed symlink /etc/systemd/system/default.target.
Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/multi-user.target
#改爲runlevel 3
systemctl set-default multi-user.target
systemctl set-default graphical.target
或者
修改文件/boot/grub2/grub.cfg ,在133行左右,修改自啓動模式:
kernel /boot/vmlinuz-3.7.10-1.11-desktop root=/dev/disk/by-uuid/e897cb88-948a-4d13-8f79-06cc03d3d5cd devfs=mount,dall resume=/dev/disk/by-id/ata-WDC_WD1600AAJS-22WAA0_WD-WCAS24704151-part6 splash=silent quiet showopts vga=0x317 init 3 sql
3調整分辨率
修改文件/boot/grub2/grub.cfg ,在133行左右,圖中位置添加 vga=0x365,保存後推出,重啓可將系統分辨率修改成1024*768,還需調大用以下辦法:
3.1 備份系統初始的配置文件:
linux-p71j:~ # cd /etc/X11/xorg.conf.d/
linux-p71j:/etc/X11/xorg.conf.d # cp 50-device.conf 50-device.conf.bak
linux-p71j:/etc/X11/xorg.conf.d # cp 50-screen.conf 50-screen.conf.bak
linux-p71j:/etc/X11/xorg.conf.d # cp 50-monitor.conf 50-monitor.conf.bak
3.2 在50-device.conf文件中添加以下內容:oracle
Section "Device" Identifier "Default Device" Driver "vesa" EndSection
3.3 在50-screen.conf文件中添加以下內容:app
Section "Screen" Identifier "Default Screen" Device "Default Device" Monitor "Default Monitor" EndSection
3.4 在50-monitor.conf文件中添加以下內容:編輯器
Section "Monitor" Identifier "Default Monitor" HorizSync 28-85 VertRefresh 50-100 Option "DPMS" "off" EndSection
4 安裝軟件包
rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' binutils \
gcc \
gcc48 \
glibc \
glibc-32bit \
glibc-devel \
glibc-devel-32bit \
libaio1 \
libaio-devel \
libcap1 \
libstdc++48-devel \
libstdc++48-devel-32bit \
libstdc++6 \
libstdc++6-32bit \
libstdc++-devel \
libstdc++-devel-32bit \
libgcc_s1 \
libgcc_s1-32bit \
mksh-50f \
make \
sysstat \
xorg-x11-driver-video \
xorg-x11-server \
xorg-x11 \
xorg-x11-Xvnc \
xorg-x11-fonts-core \
xorg-x11 \
xorg-x11-server-extra \
xorg-x11-libs \
xorg-x11-fonts |grep -i "not installed"|awk '{print $2}'|xargs zypper install -yide
5 更改hosts
cat /etc/hosts
192.168.56.105 suse12
127.0.0.1 localhost
6 安裝86%會報錯
%86時出現報錯 Error in invoking target 'agent nmhs' of makefile
解決方案
在makefile中添加連接libnnz11庫的參數
修改$ORACLE_HOME/sysman/lib/ins_emagent.mk,將
$(MK_EMAGENT_NMECTL)修改成:$(MK_EMAGENT_NMECTL) -lnnz11
建議修改前備份原始文件
[oracle@ysserver ~]$ cd $ORACLE_HOME/sysman/lib
[oracle@ysserver lib]$ cp ins_emagent.mk ins_emagent.mk.bak
[oracle@ysserver lib]$ vi ins_emagent.mk
進入vi編輯器後 命令模式輸入/NMECTL 進行查找,快速定位要修改的行
在後面追加參數-lnnz11 第一個是字母l 後面兩個是數字1ui
7 安裝samples
/app/oracle/product/11.2.0/dbhome_1/demo/schema/mk_plug.sql3d
官方參考參見:docs.oracle.com/cd/E11882_01/install.112/e24326/toc.htm#CEGHBFHBcode