In the morning, I spent the first Linux platform installation (: p, a bit shackled, only the first time), mainly
Http://www.oracle.com/technology/global/cn/pub/Articles/smiley_10GDB_INSTALL.HTML installation instructions. This article mainly introduces the installation of the Red Hat series, and Fedora Core can be said to be the open source desktop version of the Red Hat, which can be said to be universal. The following will be combined with my actual operation, the text is simple.
The installation of the Linux is no longer illustrated. The only thing to note is that all kinds of development packs are put down (the hard disk is large enough), which avoids back trouble. Fedora itself is easy to install and use, everything is a graphical interface, which should not be a problem.
Check the required RPM package (rpm -q --all | grep ...), mainly, as long as you can, the version is not less than the version number given, if the version is too high, maybe in the back The installation will be an error or warning, but from my practice, it is nothing to do (my GCC is 3.4.x, and it is 3.2):
# GCC-3.2.3-2
# MAKE-3.79
# binutils-2.11
# OpenMotiF-2.2.2-16
# setarch-1.3-1
# Compat-GCC-7.3-2.96.122
# Compat-GCC-C - 7.3-2.96.122
# Compat-libstDC - 7.3-2.96.122
# Compat-libstDC - DEVEL-7.3-2.96.122
# Compat-DB-4.0.14.5
If there is no installation, turn on the installation disk, usually there is in the RPM directory. The CP can come to RPM -I.
It is also very easy to download Oracle to Otn.Oracle.com, the only thing you need to pay attention to, some netizens said that I can't register your account now. I specially observed today. It seems that the registration link in the Chinese version is difficult to find, English version It is more obvious (just in the upper right corner), so since it is going to download the English interface, it is better to log in to the English homepage. For the download process, please refer to I am in cnoug.
http://www.cnoug.org/viewthread.php?tid=11039&h=1, I will update regularly, plus new downloads. The Linux version downloads are files in .cpio.gz format. Since the Win platform download software is more, I use flashget under WIN, basically can reach 80kb / s (each thread) so the speed is very fast. Files can be compressed as a CPIO file in WIN (WinRAR). This format is currently not discovered, so it can be engraved (ISO mode is better).
After root enters Linux, you can observe how many hard disk spaces, one DF -H can be. In general, the installation 10G requires 512M memory, 1G swap cache (SWAP), and 4.1g hard disk space. However, these or the AS is different, not a hard condition, memory and exchange partition a little bit wrong, the hard disk space is still still satisfied, otherwise it is easy to issue problems. You can look at the memory and swap partitioned:
GREP MEMTOTAL / PROC / MEMINFO
GREP SWAPTOTAL / PROC / MEMINFO
Since the entire preparation work is basically completed. Establish a related user group and user, use the statement in the reference article: / usr / sbin / groupadd oinstall
/ usr / sbin / groupadd dba
/ usr / sbin / useradd -m -m oinstall -g dba oracle
ID Oracle
Set the password:
Passwd Oracle
Create a directory:
MKDIR -P / U01 / App / Oracle
MKDIR -P / U02 / ORADATA
Chown -r Oracle: OINSTALL / U01 / App / Oracle / U02 / ORADATA
CHMOD -R 775 / U01 / APP / ORACLE / U02 / ORADATA
Here is a file system problem, Oracle supports multiple file system modes. In the example, it is the most common ordinary file system. If you need to select bare devices, OCFS, etc., you can refer to Installation Guide (in the Oracle Document Library).
Below you want to modify some kernel parameters:
CAT >> /etc/sysctl.conf << EOF
Kernel.shmall = 2097152
Kernel.shmmax = 2147483648
Kernel.shmmni = 4096
Kernel.sem = 250 32000 100 128
fs.file-max = 65536
Net.IPv4.ip_local_port_range = 1024 65000
EOF
/ SBIN / SYSCTL -P
Not every one needs to be modified, and it can be determined by the situation. So you may wish to CAT / Tc/sysctl.conf first, see if it is the same as the above parameters, and you can modify it. The last statement is to make the current revision take effect. Whether it can be taken through the instruction / sbin / sysctl -a.
In the article, it also gives the number of processes that can be used for each Linux account and the settings of the number of files that open. My system is playing, so I have no settings, everyone can refer to the original text.
Some environment variables need to be set, mainly Oracle_Base, Oracle_Home, Oracle_SID, and Path, you can set it in /root/.bash_profile as needed. Of course Oracle is installing the user, you need to set first. Sign in with Oracle (actually SU), modify /usr/racle/.bash_profile, add:
Oracle_base = / u01 / app / oracle; export oracle_base
Oracle_sid = DEMO1; Export Oracle_SID
Start installing below. It is best to restart and use Oracle to log in, and set the session as English (this is because the Chinese font is installed normally, and the cnoug has explained how to solve it, but the font problem has always been troublesome on Linux, so I still choose to escape : P), will be on the disc mount containing the CPIO file (Fedora is automatically), then establish a source file directory:
MKDIR 10g_db
CD 10g_db
Cpio -idmv
CD Disk1
./runinstaller
The following is basically the same as the Windows platform. In addition, I have seen that the system will be stagnant when installing 9i, I have not encountered this situation. The only difference is that there will be twice to pop up a window prompt to perform some scripts with root users. At this point, a terminal window can be opened, and the su - root is executed. After the latter script is executed, congratulations, basically complete. Finally, it is possible to use SQLPLUS after the installation is completed, mainly the environment variable problem, as long as the .bash_profile is added to the oracle bin directory path, then specify Oracle_home (pointing to the actual installation directory of Oracle, such as / .. ./oracle/10.1.0/db_1) After Export is OK.
I have met this, I need to set up SQLPLUS to get my own, I will want to enter the sqlplus directory to modify Glogin.sql.