|
楼主 |
发表于 2004-9-15 14:22:30
|
显示全部楼层
问题已经解决
kao 找了 2个多小时终于在 一个不起眼儿的外国oracle小论坛找到了 链接!!苦
大家分享
Installing Oracle 10gR1 on SuSE SLES-9
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The first step before starting to install Oracle 10gR1 on SuSE SLES-9 is to
edit "/boot/grub/menu.lst" and add "hugepages=50" to the kernel line, and
reboot the system and check /proc/meminfo shows HugePages_Total of 50.
The entry for "Linux" should look something like the following, but will depend
on course on your SLES-9 installation. Only add "hugepages=50" to whatever is
there already.
title Linux
kernel (hd0,1)/boot/vmlinuz root=/dev/sda2 vga=0x311 selinux=0 hugepages=50 splash=silent resume=/dev/sda1 elevator=cfq showopts
initrd (hd0,1)/boot/initrd
The second thing that needs to be done is to allow the SHM_HUGETLB flag (04000)
in the shmget() call for non-root users, by doing, as root:
echo "1" > /proc/sys/vm/disable_cap_mlock
This will make the change valid until the next reboot. If you prefer to make
it permanent, then use the sysctl utility:
sysctl -w vm.disable_cap_mlock="1"
or edit /etc/sysctl.conf and add the following:
vm.disable_cap_mlock = 1
The next step, which will save quite a lot of typing, is to install the
"orarun" package from SuSE SLES-9 CD3, either using YaST or using:
rpm -i /media/cdrom/suse/i586/orarun-1.8-109.5.i586.rpm \
/media/cdrom/suse/i586/libaio-devel-0.3.98-18.3.i586.rpm
After installing the "orarun" package, the account for the oracle user is
normally disabled. To enable it, change the shell for the "oracle" user from
"/bin/false" to "/bin/bash", either using YaST user administration, or by
editing the file "/etc/passwd". Also, give the "oracle" user a password, and
add the "oracle" user to the new "oinstall" and "dba" groups, as follows:
/usr/sbin/usermod -g oinstall -G dba oracle
Another thing to do while you're running as "root" is to remove the following
two lines from "/etc/services":
net8-cman 1830/tcp # Oracle Net8 CMan Admin
net8-cman 1830/udp # Oracle Net8 CMan Admin
You can put them back in after the Oracle install is complete, this step is
just a workaround to help the installer make a valid entry for EMD_URL in
the file $ORACLE_HOME/`hostname -f`_$ORACLE_SID/sysman/config/emd.properties.
Now login as the new "oracle" user, and copy the contents of "/etc/skel" to
"/opt/oracle", which is the default $HOME for the oracle user, using perhaps:
(cd /etc/skel && find . -print|cpio -pdmvu /opt/oracle)
Let's have a look at the configuration files of the "orarun" package:
rpm -ql orarun
As we're using bash here, let's edit the configuration file:
/etc/profile.d/oracle.sh
You might like to modify the entries for "ORACLE_SID" and "ORACLE_BASE" to
your taste, but certainly it will be fun to modify the default setting for
"ORACLE_HOME" from the default:
ORACLE_HOME=$ORACLE_BASE/product/9ir2
to what Oracle 10gR1 will expect, which is:
ORACLE_HOME=$ORACLE_BASE/product/10.1.0/db_1
It might be simplest at this point to restart your window manager as the new
"oracle" user, or perhaps launch a new session and login as the "oracle" user,
as the remainder of this document will assume that you're running as "oracle",
and that the environment settings from /etc/profile.d/oracle.sh are in effect.
Mount the Oracle 10gR1 installation media, and launch the oracle installer
as the new "oracle" user, as follows:
mount /media/cdrom
(cd $HOME && /media/cdrom/runInstaller -ignoreSysPrereqs)
Wait for the Oracle Universal Installer graphical screen to appear, and follow
the usual steps in the installation guide. Once the installation is complete,
the installer should have created a sample database, and started up some
services. If it is not already started, start up the "dbconsole" using:
emctl start dbconsole
and connect using a browser such as Mozilla to the following URL:
http://localhost:5505/em
Pretty much all the routine database administration tasks, and many
performance tuning tasks can be done via this "dbconsole" browser interface,
without ever going back to the command line. Enjoy
--------------------------------------------------------------------------------
Latest version of this document will be maintained at:
http://america.us.oracle.com:778 ... c/installfest_guide
Current version:
$Header: /tpc/tpcr2/home/pknaggs/cvs/hints/hints/suse/sls9/doc/installfest_guide,v 1.7 2004/08/23 18:37:30 pknaggs Exp $ |
|