_ | 覦覈襦 | 豕蠏手 | 殊螳 | 譯殊碁
FrontPage › OracleInstall

Contents

1 れ URL CentOS-6.3-x86_64-netinstall.iso れ企
2 cd襯 j
3 語ろ碁 覲蟆
4 貉る襷り覲 誤
5
6 SELINUX 伎
7 襦蠏語 れ
8 れ れ
9 る狩 蠏碁9螻 螻
10 れ 襴
11 れ 襴 螻螻 蠏碁9 覿
12 る狩 螻 蟆 れ
13 れ xwindow 讌
14 GUI襦 れ覃伎 る 襷一 炎碓襴覃 れ -> れ 襭
15 る狩 れ
16 る狩


1 れ URL CentOS-6.3-x86_64-netinstall.iso れ企 #

2 cd襯 j #

3 語ろ碁 覲蟆 #

vi /etc/hosts

れ 豢螳
  192.168.0.200 oraserver

4 貉る襷り覲 誤 #

vi /etc/sysctl.conf

れ 豢螳
# Controls for Oracle 11g R2
kernel.shmmni = 4096
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586

譯殊: 覲企 朱 蟆 れ 譯殊伎 .
  • kernel.shmall = 2097152
  • kernel.shmmax = 536870912


/sbin/sysctl -p

5 #

vi /etc/security/limits.conf

れ 豢螳
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536

6 SELINUX 伎 #

  • vi /etc/selinux/config
  • SELINUX=enforcing 朱 る SELINUX=disabled 襦 覲蟆
  • SELINUX 覲伎螳 襦蠏碁([http]谿瑚)

7 襦蠏語 れ #

vi /etc/pam.d/login

れ 豢螳
session    required     pam_limits.so

8 れ れ #

yum -y install binutils-2* compat-libstdc++-33* elfutils-libelf* gcc-4.* gcc-c++-4.* glibc-2.* glibc-common-2.* glibc-devel-2.* glibc-headers-2.* ksh* libaio-0.* libaio-devel-0.* libgomp-4.* libgcc-4.* libstdc++-4.* libstdc++-devel-4.* make-3.* sysstat-7.* unixODBC-2.* unixODBC-devel-2.* pdksh*

9 る狩 蠏碁9螻 螻 #

groupadd oinstall
groupadd dba
groupadd oper
groupadd asmadmin
useradd -g oinstall -G dba,oper,asmadmin oracle
passwd oracle

10 れ 襴 #

mkdir -p /opt/oracle/product/11gr2
mkdir -p /opt/oraInventory

11 れ 襴 螻螻 蠏碁9 覿 #

chown -R oracle.oinstall /opt/oracle
chown -R oracle.oinstall /opt/oraInventory
chmod -R 755 /opt/oracle

12 る狩 螻 蟆 れ #


su - oracle
vi .bash_profile

れ 豢螳
# Oracle 11g R2 environment
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/opt/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11gr2; export ORACLE_HOME
ORACLE_SID=ordb; export ORACLE_SID
PATH=$ORACLE_HOME/bin:/usr/sbin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib:/lib:/usr/local/lib; export LD_LIBRARY_PATH

if [ $USER = "oracle" ]; then
        if [ $SHELL = "/bin/ksh" ]; then
                ulimit -p 16384
                ulimit -n 65536
        else
                ulimit -u 16384 -n 65536
        fi
fi

13 れ xwindow 讌 #

  • GNOME oracle 襦 襦蠏語誤.
  • 襴 れ 語企ゼ 蠍襦 れ 蟆曙 : export LANG=C

su - oracle
unzip linux.x64_11gR2_database_1of2.zip
unzip linux.x64_11gR2_database_2of2.zip
cd database
./runInstaller


蟆朱 れ 蟆曙 螳 螳 .
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB. Actual 44130 MB Passed
Checking swap space: must be greater than 150 MB. Actual 10047 MB Passed
Checking monitor: must be configured to display at least 256 colors
Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<<

Some requirement checks failed. You must fulfill these requirements before

continuing with the installation,

Continue? (y/n) [n] y


Ignoring required pre-requisite failures. Continuing...
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-03-08_07-23-53PM. Please wait ...oracle@orclserver database$ Exception in thread "main" java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at java.awt.Toolkit$2.run(Toolkit.java:821)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804)
at com.jgoodies.looks.LookUtils.isLowResolution(Unknown Source)
at com.jgoodies.looks.LookUtils.<clinit>(Unknown Source)
at com.jgoodies.looks.plastic.PlasticLookAndFeel.<clinit>(PlasticLookAndFeel.java:122)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1783)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:480)
at oracle.install.commons.util.Application.startup(Application.java:758)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:164)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:181)
at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:265)
at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:114)
at oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:132)

蟆朱 れ 螳 覦覃 螳 ろ
root@orclserver ~# xhost +
root@orclserver ~# su - oracle
oracle@orclserver ~# export DISPLAY=192.xxx.xxx.110:0.0 (れ pc IP 譯殊)
oracle@orclserver ~# unzip linux.x64_11gR2_database_1of2.zip
oracle@orclserver ~# unzip linux.x64_11gR2_database_2of2.zip
oracle@orclserver ~# cd database
oracle@orclserver database# ./runInstaller


14 GUI襦 れ覃伎 る 襷一 炎碓襴覃 れ -> れ 襭 #

Enterprise Manager Database Control URL - (ordb) :
https://orclserver:1158/em


15 る狩 れ #

su - oracle
vi /etc/oratab

れ螻 螳
ordb:/opt/oracle/product/11gr2:Y

su - root
vi /etc/rc.d/rc.local

れ 豢螳
su - oracle -c /opt/oracle/product/11gr2/bin/dbstart
su - oracle -c /opt/oracle/product/11gr2/bin/"lsnrctl start"
su - oracle -c /opt/oracle/product/11gr2/bin/"emctl start dbconsole"

16 る狩 #

su - oracle
lsnrctl start
lsnrctl status
sqlplus "/ as sysdba"
startup
exit
emctl start dbconsole
蠍 蠍郁鍵..
企: : るジ讓曙 襦螻豺 企Ν 譯殊語. 襦螻豺
EditText : Print : Mobile : FindPage : DeletePage : LikePages : Powered by MoniWiki : Last modified 2018-04-13 23:12:54

炎概 覲伎レ 讌襷 譟一姶 讌 蟇 ろ襯 覲伎ロ 蠍語企. れ 覦朱 瑚 殊 . (jungim)