⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 1781.html

📁 著名的linux英雄站点的文档打包
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<br>
<br>
Development Packages (RPMs)<br>
<br>
You will need the following RPM development packages for the Oracle installer to compile the Oracle modules etc.:<br>
gcc<br>
cpp<br>
glibc-devel<br>
kernel-headers (on RH 7.1, 7.2, 2.1AS)<br>
glibc-kernheaders (on RH 7.3, 8.0)<br>
binutils<br>
<br>
Otherwise you'll get an error message like:<br>
Error in invoking target ntcontab.o of makefile /opt/oracle/product/9.2.0/network/lib/ins_net_client.mk<br>
<br>
To find out if you have these development packages installed, execute the following command:<br>
<br>
# rpm -q gcc cpp glibc-devel kernel-headers binutils<br>
<br>
For instance, these packages will be missing when you installed RedHat 2.1 Advanced Server and you did not select the "Software Development" package. For the RedHat 2.1 Advanced Server I executed the following commands to install the missing RPMs from the two CDs:<br>
<br>
rpm -ivh cpp-2.96-108.1.i386.rpm <br>
glibc-devel-2.2.4-26.i386.rpm <br>
kernel-headers-2.4.9-e.3.i386.rpm <br>
gcc-2.96-108.1.i386.rpm <br>
binutils-2.11.90.0.8-12.i386.rpm<br>
<br>
<br>
JDK<br>
<br>
I successfully installed Oracle9iR2 without installing JDK on the system.<br>
Oracle comes now with its own Java. This means that you don't have to follow these steps which were required for older Oracle versions:<br>
<br>
  Download JDK 1.3.1 or Blackdown 1.1.8_v3: (I usually used Blackdown)<br>
  http://www.blackdown.org<br>
  http://java.sun.com<br>
<br>
  According to JDK documentation, install JDK under /usr/local .<br>
  Then create a symbolic link to the JDK under /usr/local/java :<br>
<br>
  As root:<br>
  bzip2 -dc jdk118_v3-glibc-2.1.3.tar.bz2 | tar xf - -C /usr/local<br>
  ln -s /usr/local/jdk118_v3 /usr/local/java<br>
  <br>
<br>
Create Oracle User Accounts<br>
<br>
As root:<br>
<br>
groupadd dba<br>
groupadd oinstall<br>
useradd -g oinstall -G dba oracle<br>
passwd oracle<br>
For more information on the "oinstall" group account, see When to use "OINSTALL" group during install of oracle.<br>
 <br>
<br>
Create Oracle Directories<br>
<br>
In this example, make sure that the /opt filesystem is large enough. If /opt is not on a separate filesystem, then make sure the root filesystem "/" has enough space.<br>
<br>
As root:<br>
<br>
mkdir /opt/oracle<br>
mkdir /opt/oracle/product<br>
mkdir /opt/oracle/product/9.2.0<br>
chown -R oracle.oinstall /opt/oracle<br>
<br>
mkdir /var/opt/oracle<br>
chown oracle.dba /var/opt/oracle<br>
chmod 755 /var/opt/oracle<br>
 <br>
<br>
Set Oracle Environments<br>
<br>
Set the following Oracle environment variables before you start runInstaller.<br>
<br>
As the oracle user execute the following commands: <br>
<br>
# Oracle Environment<br>
export ORACLE_BASE=/opt/oracle<br>
export ORACLE_HOME=/opt/oracle/product/9.2.0<br>
export ORACLE_SID=test<br>
export ORACLE_TERM=xterm<br>
#export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. are not in $ORACLE_HOME/network/admin<br>
export NLS_LANG=AMERICAN;<br>
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data<br>
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib<br>
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib<br>
export LD_LIBRARY_PATH<br>
<br>
# Set shell search paths<br>
export PATH=$PATH:$ORACLE_HOME/bin<br>
<br>
# I successfully installed Oracle9iR2 WITHOUT setting the following CLASSPATH environment variable:<br>
  CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib<br>
  CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib<br>
  export CLASSPATH<br>
You can put these environment settings at the end of the ~oracle/.bash_profile file if you use bash. By this way you don't have to set the environment variables again when you login as "oracle" or when you switch to the user "oracle" by executing "su - oracle".<br>
<br>
 <br>
Start runInstaller<br>
<br>
Before you continue, make sure you have set the Oracle environment variables, see above.<br>
<br>
Oracle no longer supports a character mode installer. Therefore, in order to execute runInstaller directly from a console of a machine you are logged into (in this example the node name where Oracle is running is called "oracleserver"), you need to set the DISPLAY environment variable. Before you do that, make sure you also allow runInstaller on " oracleserver " to display X information to your Linux desktop machine (in this example, the PC name where you are running X Windows like KDE or GNOME is called " yourdesktop ") , because programs running on remote machines cannot display information to your screen unless you give them the authority to do so. Note that the X display relink mechanism does not work for NT desktop machines unless you use Exceed.<br>
If you install Oracle on your desktop PC and not on a remote node, then you can skip step 1 and 2.<br>
<br>
Step 1: E.g. allow "oracleserver" to display X information to your desktop PC "yourdesktop":<br>
yourdesktop:user$ xhost +oracleserver<br>
<br>
Step 2: From the console of your Oracle server "oracleserver " you are logged into, execute the following command as user " oracle ":<br>
oracleserver:oracle$ export DISPLAY=yourdesktop:0.0<br>
<br>
Step 3a: From your burned CD Disk 1, execute runInstaller (do not cd to /mnt/cdrom !):<br>
As root:<br>
oracleserver:root# mount /mnt/cdrom<br>
As oracle:<br>
# Before starting runInstaller, try maybe to execute e.g. 'xterm' to see if your X setup is really working!<br>
oracleserver:oracle$ /mnt/cdrom/runInstaller<br>
<br>
Step 3b: Or wherever you unpacked your downloaded files:<br>
oracleserver:oracle$ Disk1/runInstaller<br>
 <br>
<br>
Running Oracle Installation<br>
<br>
This is how I answered the questions in the runInstaller:<br>
What would you like as the base directory (Inventory Location):<br>
/opt/oracle/oraInventory<br>
<br>
UNIX Group Name (permission for updating Oracle software):<br>
oinstall<br>
You could also use "dba" which I do not recommend for security reasons. For more information on the "oinstall" group account, see When to use "OINSTALL" group during install of oracle.<br>
<br>
Full path name for Oracle Home:<br>
/opt/oracle/product/9.2.0<br>
<br>
Oracle Home Name:<br>
OUIHome<br>
<br>
etc.<br>
<br>
NOTE:<br>
Keep in mind that you might get the following installation problems when you install Oracle 9i (9.2.0):<br>
- A shared memory problem: "unable to attach to shared memory segment"<br>
- A makefile problem: e.g. "Error in invoking target install of makefile /opt/oracle/product/9.2.0/ctx/lib/ins_ctx.mk"<br>
See Oracle Installation Errors for more information.<br>
<br>
Startup and Shutdown of Oracle 9i Database<br>
<br>
sqlplus:<br>
<br>
svrmgrl is not supported any more. You can now do everything with sqlplus.<br>
<br>
E.g., to startup the database, execute the following commands:<br>
 dba$ sqlplus /nolog<br>
 SQL&gt; connect / as sysdba<br>
 SQL&gt; startup<br>
<br>
The slash connects you to the schema owned by SYS.  So in this example we are saying that we want to connect to the schema owned by SYS with the privilege SYSDBA. SYSDBA gives you the following privileges:<br>
 sysoper privileges WITH ADMIN OPTION<br>
 create database<br>
 recover database until<br>
<br>
$ORACLE_HOME/bin/dbstart and $ORACLE_HOME/bin/dbshut :<br>
<br>
You can also use $ORACLE_HOME/bin/dbstart to startup the database, and $ORACLE_HOME/bin/dbshut to shutdown the database. You can place $ORACLE_HOME/bin/dbstart into the /etc/rc.d/rc.local boot script to automatically bring up the database at system boot time. To get $ORACLE_HOME/bin/dbstart and $ORACLE_HOME/bin/dbshut working, you need to change the third field for your Oracle SID in /etc/oratab from "N" to "Y".<br>
E.g. for the Oracle SID "test" I changed the line in /etc/oratab from<br>
test:/opt/oracle/product/9.2.0:N<br>
to read<br>
test:/opt/oracle/product/9.2.0:Y<br>
<br>
For 9.2.0, I also had to copy the init file for my SID "test" from /opt/oracle/admin/test/pfile to $ORACLE_HOME/dbs to get dbstart and dbshut working:<br>
cp /opt/oracle/admin/test/pfile/inittest.ora.642002224936 $ORACLE_HOME/dbs/inittest.ora<br>
But first check if your init file already exists in $ORACLE_HOME/dbs.<br>
<br>
If you want to properly integrate Oracle9i into the Red Hat Linux 7 SysV init process, check out http://www.gurulabs.com/downloads.html. "Oracle9i RHL Run Package" is based on a GPLd RPM provided by SuSE, but has been heavily modified to fit as seamlessly into Red Hat Linux as possible.<br>
 <br>
<br>
Oracle Installation Problems, Important Tips and Hints<br>
Some of these problems may only apply to 9.0.1!<br>
<br>
    * Do not cd to /mnt/cdrom to run ./runInstaller!<br>
      If you do so, the installation will fail because you won't be able to change the CDs.<br>
    *   If you forgot to set the DISPLAY environment variable (e.g. export DISPLAY=oracleserver:0.0) , or if you forgot to give the remote console - your Oracle Server - authority to display X information on your desktop PC (e.g. xhost +oracleserver ), you will get the following error:<br>
      Xlib: connection to ":0.0" refused by server<br>
      Xlib: Client is not authorized to connect to Server<br>
      In this case, I always had to kill runInstaller which was still running in the background! If you don't do this, runInstaller will not completely come up any more and you will not see any error messages that runInstaller is having problems.<br>
      You might also want to clean up /tmp/OraInstall (9.0.1):<br>
      rm -rf /tmp/OraInstall<br>
<br>
    * When runInstaller starts to configure the tools ("Configuration Tools"), the "Oracle Net Configuration Assistant" will sometimes hang. Simply stop the Assistant and restart it, or continue the installation. When the rest of the installation is finished, do a "Retry" for "Oracle Net Configuration Assistant". This always worked for me.<br>
<br>
    * When the system stops to respond during the Oracle installation, in particular during the database creation, then it is probably because you don't have enough RAM or enough swap space. I noticed that the whole system will not respond (or "hang") for several minutes when I did not have enough swap space. If this happens, simply wait until the system starts to respond again.<br>
<br>
    * The Oracle installation also runs make etc. In a production environment you might not have compilers and other development packages installed. Therefore make sure you have temporarily the following packages installed: gcc, cpp, egcs, egcs-c++, glibc-devel, kernel-headers. (I'm not sure though if all of these packages have to be on the system during the Oracle installation.)<br>
<br>
    * If for any reason the Oracle installation didn't finish successfully, you might want to clean up the following files and directories before you restart over again:<br>
      rm -rf /etc/oraInst.loc /etc/oratab /tmp/OraInstall<br>
      /tmp/&lt;OtherOracleOwnedFiles&gt;<br>
$ORACLE_BASE/*<br>
<br>
    * Other Problems:<br>
      You might want to check out the Linux Discussion Group or the Linux Forum at http://www.oracle.com/forums/forum.jsp?forum=135.<br>
<br>
<br>
Oracle Installation Errors<br>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -