不能xwindows的,在字符界面上就行。 下面是一个简单的过程:(817 for linux) Step 1. (root) ----------------------------------------------- Create opt/oracle directory in /usr. Copy 3 files into /usr/opt/oracle: linux81701.tar jdk118_v3-glibc-2.1.3.tar.bz2 glibc-2.1.3-stubs.tar.gz
Unpack oracle file first. cd /usr/opt/oracle/ tar xf linux81701.tar Do not unpack the other 2 files yet. Step 2 - Install Pre-requisites (root) ----------------------------------------------- Since RedHat 7 comes with glibc 2.2 and Oracle needs glibc 2.1, you'll need to download compat versions of the various libraries: You may need to register first. Just follow Redhat's Instruction to register. Make sure PC is able to connect to Redhat.com. up2date -u compat-glibc up2date -u compat-egcs up2date -u compat-libstdc++ up2date -u compat-libs Step 3 - Setup Users and Directory Permissions (root) ----------------------------------------------------- Create the Oracle user and groups: groupadd dba groupadd oracle groupadd oinstall useradd oracle -g oinstall -G dba,oracle Create the directory where Oracle will be installed and give it appropriate permissions: mkdir /usr/oracle chown oracle.dba /usr/oracle
Step 4 - Setup Environment Variables (oracle) --------------------------------------------------- Copy the .bash_profile to /home/oracle. Step 5 - Symlink to Compat GCC (oracle) ----------------------------------------------------- We need to symlink out to the correct GCC to make Oracle uses it when it compiles anything. mkdir $ORACLE_BASE/product mkdir $ORACLE_HOME cd $ORACLE_HOME mkdir bin cd bin ln -s /usr/bin/i386-glibc21-linux-gcc cc ln -s /usr/bin/i386-glibc21-linux-gcc gcc Step 6 - Install JDK1.1.8 (root) --------------------------------------------------------
cd /usr/opt/oracle tar jxvf jdk118_v3-glibc-2.1.3.tar.bz2 mv jdk118_v3 /usr/local cd /usr/local ln -s jdk118_v3 java Step 7 - Install Oracle (oracle) --------------------------------------------------------- Use XConfigurator KDE window terminal. (CTL_ALT_F7)
cd /usr/opt/oracle/Disk1 ./runInstaller There will be a error mesg : Error invoking target install of makefile /usr/oracle8i/product/8.1.7/ctx/lib/ins_ctxmk.
Hit Ignore and continue with the installation: Near the end of the installation, the installer will prompt you to run $ORACLE_HOME/root.sh as root. This file has 3 errors in it, so before you run it make the following changes: Change line 98 from: SED=/usr/local/bin/sed to: SED=/bin/sed Change line 102 from: RMF=/bin/rm -f to: RMF="/bin/rm -f" Change line 156 from: RUID=`/usr/bin/id|$AWK -F\( '{print $2}'|$AWK -F\) '{print $1}` to: RUID=`/usr/bin/id|$AWK -F\( '{print $2}'|$AWK -F\) '{print $1}'` At the end of the installation, the installer will try to run three configuration wizards: the Net8 Configuration Assistant, the Oracle Database Configuration Assistant, and the Apache Web Server Configuration Assistant. You should stop all of them. You will run them later. After this your installer is done and you should exit it. Step 8 - Install GLIBC Stubs (oracle) ----------------------------------------------------------
Now, you should install the glibc stubs: cd $ORACLE_HOME tar xfz /usr/opt/oracle/glibc-2.1.3-stubs.tar.gz ./setup_stubs.sh cd bin relink all
This may take awhile, do not abort!!! Step 9 - Modify /bin/df (root) ---------------------------------------------------------- Oracle 8.1.7 can't cope with LVM long partition names. When creating a new database, dbassist checks if there is enough diskspace by doing a /bin/df. With long partition names, the actual free diskspace is listed on a new line, and this causes dbassist to crash. What to do: mv /bin/df /bin/df.orig cat << EOF > /bin/df #!/bin/sh /bin/df.orig -P \$@ EOF chmod +x /bin/df After you create your database, move /bin/df.orig back to /bin/df. Step 10 - Run the Various Assistants (oracle) ------------------------------------------------------------ Do a system reboot and run the Net8 Configuration Assistant and the Database Configuration Assistant (KDE Window)
$ORACLE_HOME/bin/netca $ORACLE_HOME/bin/dbassist Note: -------------------------------------------------------------- To re-install, delete the following:
Make sure PC is able to connect to Redhat.com. up2date -u compat-glibc up2date -u compat-egcs up2date -u compat-libstdc++ up2date -u compat-libs 还要连上网?? 不是吧。
下面是一个简单的过程:(817 for linux)
Step 1. (root)
-----------------------------------------------
Create opt/oracle directory in /usr.
Copy 3 files into /usr/opt/oracle:
linux81701.tar
jdk118_v3-glibc-2.1.3.tar.bz2
glibc-2.1.3-stubs.tar.gz
Unpack oracle file first.
cd /usr/opt/oracle/
tar xf linux81701.tar Do not unpack the other 2 files yet. Step 2 - Install Pre-requisites (root)
-----------------------------------------------
Since RedHat 7 comes with glibc 2.2 and Oracle needs glibc 2.1, you'll need to download
compat versions of the various libraries: You may need to register first. Just follow Redhat's Instruction to register.
Make sure PC is able to connect to Redhat.com. up2date -u compat-glibc
up2date -u compat-egcs
up2date -u compat-libstdc++
up2date -u compat-libs Step 3 - Setup Users and Directory Permissions (root)
-----------------------------------------------------
Create the Oracle user and groups: groupadd dba
groupadd oracle
groupadd oinstall
useradd oracle -g oinstall -G dba,oracle Create the directory where Oracle will be installed and give it appropriate permissions: mkdir /usr/oracle
chown oracle.dba /usr/oracle
Step 4 - Setup Environment Variables (oracle)
---------------------------------------------------
Copy the .bash_profile to /home/oracle. Step 5 - Symlink to Compat GCC (oracle)
-----------------------------------------------------
We need to symlink out to the correct GCC to make Oracle uses it when it compiles anything. mkdir $ORACLE_BASE/product
mkdir $ORACLE_HOME
cd $ORACLE_HOME
mkdir bin
cd bin
ln -s /usr/bin/i386-glibc21-linux-gcc cc
ln -s /usr/bin/i386-glibc21-linux-gcc gcc Step 6 - Install JDK1.1.8 (root)
--------------------------------------------------------
cd /usr/opt/oracle
tar jxvf jdk118_v3-glibc-2.1.3.tar.bz2
mv jdk118_v3 /usr/local
cd /usr/local
ln -s jdk118_v3 java
Step 7 - Install Oracle (oracle)
---------------------------------------------------------
Use XConfigurator KDE window terminal. (CTL_ALT_F7)
cd /usr/opt/oracle/Disk1
./runInstaller
There will be a error mesg : Error invoking target install of makefile
/usr/oracle8i/product/8.1.7/ctx/lib/ins_ctxmk.
Hit Ignore and continue with the installation: Near the end of the installation, the installer will prompt you to run $ORACLE_HOME/root.sh as root.
This file has 3 errors in it, so before you run it make the following changes: Change line 98 from:
SED=/usr/local/bin/sed
to:
SED=/bin/sed
Change line 102 from:
RMF=/bin/rm -f
to:
RMF="/bin/rm -f" Change line 156 from:
RUID=`/usr/bin/id|$AWK -F\( '{print $2}'|$AWK -F\) '{print $1}`
to:
RUID=`/usr/bin/id|$AWK -F\( '{print $2}'|$AWK -F\) '{print $1}'` At the end of the installation, the installer will try to run three configuration wizards:
the Net8 Configuration Assistant, the Oracle Database Configuration Assistant,
and the Apache Web Server Configuration Assistant. You should stop all of them.
You will run them later. After this your installer is done and you should exit it. Step 8 - Install GLIBC Stubs (oracle)
----------------------------------------------------------
Now, you should install the glibc stubs: cd $ORACLE_HOME
tar xfz /usr/opt/oracle/glibc-2.1.3-stubs.tar.gz
./setup_stubs.sh
cd bin
relink all
This may take awhile, do not abort!!! Step 9 - Modify /bin/df (root)
---------------------------------------------------------- Oracle 8.1.7 can't cope with LVM long partition names. When creating a new database,
dbassist checks if there is enough diskspace by doing a /bin/df. With long partition names,
the actual free diskspace is listed on a new line, and this causes dbassist to crash. What to do: mv /bin/df /bin/df.orig
cat << EOF > /bin/df
#!/bin/sh
/bin/df.orig -P \$@
EOF chmod +x /bin/df After you create your database, move /bin/df.orig back to /bin/df. Step 10 - Run the Various Assistants (oracle)
------------------------------------------------------------
Do a system reboot and run the Net8 Configuration Assistant
and the Database Configuration Assistant (KDE Window)
$ORACLE_HOME/bin/netca
$ORACLE_HOME/bin/dbassist Note:
--------------------------------------------------------------
To re-install, delete the following:
/etc/oratab
/etc/oraInst.loc
$ORACLE_HOME
$ORACLE_BASE
up2date -u compat-egcs
up2date -u compat-libstdc++
up2date -u compat-libs
还要连上网?? 不是吧。