apt-get update
followed by a apt-get upgrade
will do the trick, although you may prefer using the GUI Synaptic Package Manager — it』s entirely up to you what method you choose. However, I much prefer to use the command line. usermod
command is needed since because when running, the installer looks for a user called nobody
which is part of a group named nobody
(in Ubuntu, the user nobody
it』s assigned to nogroup
by default).# sudo ln -s /usr/bin/awk /bin/awk #sudo ln -s /usr/bin/rpm /bin/rpm # sudo ln -s /usr/bin/basename /bin/basename
/etc/rc.d
directory structure of a Red Hat box. We do this with more symlinks:#sudo mkdir /etc/rc.d #sudo ln -s /etc/rc0.d /etc/rc.d/rc0.d #sudo ln -s /etc/rc1.d /etc/rc.d/rc1.d #sudo ln -s /etc/rc2.d /etc/rc.d/rc2.d #sudo ln -s /etc/rc3.d /etc/rc.d/rc3.d #sudo ln -s /etc/rc4.d /etc/rc.d/rc4.d #sudo ln -s /etc/rc5.d /etc/rc.d/rc5.d #sudo ln -s /etc/rc6.d /etc/rc.d/rc6.d #sudo ln -s /etc/init.d /etc/rc.d/init.d
/etc/redhat-release
and put only one line on it. The same can be achieved by issuing the following as root:echo "Red Hat Linux release 4" > /etc/redhat-release
/etc/sysctl.conf
and it should have these lines on it: cat /proc/sys/kernel/sem
or ipcs -ls
. On my machine, after the modifications on sysctl.conf
, these commands output:# cat /proc/sys/kernel/sem 250 32000 100 128 # ipcs -ls ------ Semaphore Limits -------- max number of arrays = 128 max semaphores per array = 250 max semaphores system wide = 32000 max ops per semop call = 100 semaphore max value = 32767
/etc/security/limits.conf
, letting the oracle
user use more resources than the defaults allowed. You may notice that all these values are a power of 2 minus one. When soft limits are exceeded, you』ll get a warning; the hard limits can』t be exceeded in any situation: you』ll get an error. I』m not completely sure, but I think these limits apply to each session/login (and since Oracle doesn』t exactly log in to the machine, my best guess is these limits apply per instance running).oracle soft nproc 2047 oracle hard nproc 16383 oracle soft nofile 1023 oracle hard nofile 65535
limits.conf
is being interpreted as the oracle
user logs in by adding these lines to /etc/pam.d/login
. You will want to make sure that is actually happening, since the defaults are way lower and you may get all sorts of problems. ulimit
and the RPM-related errors, since the limits don』t restrict the installer and since we actually don』t have a RPM database on the machine — we are running on Ubuntu, remember? oracle
user』s HOME
directory, the installer will issue a warning. I simply ignored it and continued with the installation./etc/profile
. Be careful, since these values are valid system-wide. So make sure the paths are set according to your particular setup (if you have been doing everything according to this text, you should be fine).export ORACLE_BASE=/opt/oracle export ORACLE_HOME=/opt/oracle/product/11.1.0/db_1 export ORACLE_SID=orcl export PATH=$PATH:/optp/oracle/product/11.1.0/du01/appb_1/bin
dba
group. You can use usermod
or just edit the /etc/groups
file and add your username at the end of the line that starts with dba
(my username is 『robert』):dba:x:1002:oracle,robert
netca
) and after that, create the starter database (also with netca
). If you chose to have the installer create a database for you, then you should be fine, since when doing that, it asks for a password for the default accounts (SYS
, SYSTEM
, and DBSNMP
, SYSMAN
if you choose to install it with the enterprise manager option selected).oracle
[火星人 ] Install Oracle(Two) - Oracle11g on Ubuntu Linux 8已經有670次圍觀