_覓 | 覦覈襦 | 豕蠏手 | 殊螳 | 譯殊碁 |
FrontPage › OracleInstall
|
|
[edit]
2 cd襯 j #
[edit]
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 譯殊: 覲企 朱 蟆 れ 譯殊伎 .
/sbin/sysctl -p [edit]
5 襴 #vi /etc/security/limits.conf
れ 豢螳
oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 [edit]
6 SELINUX 伎 #
[edit]
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*
[edit]
9 る狩 蠏碁9螻 螻 #groupadd oinstall
groupadd dba groupadd oper groupadd asmadmin useradd -g oinstall -G dba,oper,asmadmin oracle passwd oracle [edit]
11 れ 襴 螻螻 蠏碁9 覿 #chown -R oracle.oinstall /opt/oracle
chown -R oracle.oinstall /opt/oraInventory chmod -R 755 /opt/oracle [edit]
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 [edit]
13 れ xwindow 讌 #
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 beforecontinuing 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 [edit]
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"
鏤
|
企 殊 り 螳螻 れ 蠏瑚 蠍 り れ螻 蟆企. (ろ朱語) |