Fedora Core 3 Installation Oracle 10.1.0.3 brief process

Source: Internet
Author: User
Tags dba file system mkdir modify variables reference sqlplus linux
Core|oracle
Morning spent a little time to complete the first Linux platform installation (:P, a bit embarrassing to say, only the first time), mainly refer to the Http://www.oracle.com/technology/global/cn/pub/articles/smiley_ Installation instructions for 10gdb_install.html. This article is mainly about the installation of the Redhat series, and Fedora Core can be said to be Red Hat's open source desktop version, can be said to be universal. The following will be combined with my actual operation, the text is simple and regular.
Installing the Linux section no longer explains, the only thing to be aware of is to put all kinds of development packages as much as possible (hard enough), so as to avoid trouble behind. Fedora itself is easy to install and use, everything is a graphical interface, these should not be a problem.
Check the desired RPM package (Rpm-q--all | Grep... , the main is as follows, as long as there is, the version is not less than the given version number, if the version is too high, may be in the subsequent installation will be an error or warning, but from my practice look, it doesn't matter (my gcc is 3.4.x, and the list 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 it is not installed, open the installation disk, usually under the RPM directory. CP out Rpm-i on it.
It is also very easy to download Oracle to Otn.oracle.com, and the only thing to be aware of is that some netizens say that they cannot register their account now. I deliberately observed today, in the Chinese version of the site seems that the registration link is difficult to find, the English version of the more obvious (in the upper right corner), so since all are to be downloaded to the English interface, as straight Connect to the English homepage. For the download process is not clear, please refer to my cnoug collation of an article http://www.cnoug.org/viewthread.php?tid=11039&h=1, this article I will be updated regularly, plus the new download content. The Linux version is downloaded as a. cpio.gz format file. Because win platform download software is more, I am with FlashGet under win download, basic can reach 80kb/s (per thread) so the speed is very fast. The file can be decompressed under win to the Cpio file (winrar). This format is currently not found under win can be processed, so can be carved into a disc (ISO mode is better).
After the root into Linux to observe how much hard disk space, a df-h can be. Generally, installing 10g requires 512M memory, 1G swap cache (swap), and 4.1G hard disk space. But these and as different, not hard conditions, memory and swap partition a little bit small problem, hard disk space is best still meet, otherwise easy to problem. You can view memory and swap partitions in this way:
grep memtotal/proc/meminfo
grep swaptotal/proc/meminfo
The external preparations are basically complete. Create relevant user groups and users, and use the statements in the reference article:
/usr/sbin/groupadd Oinstall
/usr/sbin/groupadd DBA
/usr/sbin/useradd-m-G oinstall-g dba Oracle
ID Oracle
Set Password:
passwd Oracle
To 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
There is a file system problem, Oracle supports a variety of file system patterns, examples are the most common common file system, if you need to choose raw devices, OCFS, etc. can refer to installation Guide (Oracle document Library).
Here are some kernel parameters to modify:
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, depending on the situation. So might as well first cat the/etc/sysctl.conf, see if the same as the above parameters, modify the different on it. The last statement is to make the changes that you just made effective. You can see whether the entry takes effect through instruction/sbin/sysctl-a.
The reference article also gives a limit on the number of processes each Linux account can be used and the number of open files settings, my system is my own play, so there is no setting, you can refer to the original.
Some environment variables need to be set, mainly Oracle_base, Oracle_home, Oracle_sid and path, and you can set them in/root/.bash_profile as needed. Of course Oracle is the installation user and needs to be set first. Login with Oracle (in fact SU can), modify/usr/oracle/.bash_profile, add:
Oracle_base=/u01/app/oracle; Export Oracle_base
Oracle_sid=demo1; Export Oracle_sid

The installation begins below. It's best to reboot and log in with Oracle, and set the session to English (this is because in many cases the Chinese font installation is not normal to display, cnoug on how to solve, but the font problem on Linux has always been very troublesome, so I chose to escape: P), Mount the disc containing the Cpio file (Fedora is automatic), and then create a directory of source files:
mkdir 10g_db
CD 10g_db
CPIO-IDMV </media/cdrecorder/ship.db.cpio
CD Disk1
./runinstaller
The following are basically the same as the Windows platform. In addition, I have seen that the system will stagnate for a long time when installing 9i, I have not encountered this situation. The only difference is that there will be two pop-up windows prompts to execute some scripts with the root user, you can open a terminal window, Su-root. After the execution of the next script, congratulations, basically finished.
Finally, the installation may not be very smooth after the use of sqlplus, mainly environmental variables, as long as the path in the. Bash_profile plus the Oracle Bin directory path, and then specify Oracle_home (point to the Oracle actual installation directory, such as/ /oracle/10.1.0/db_1) after export is OK.
This is done, how to set the Sqlplus on their own, you can go into the Sqlplus directory to modify Glogin.sql.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.