Use of Fedora9 to install Oracle

Source: Internet
Author: User
Oracle estimates that this is the last software I need to install in Fedora9. It took me five hours to install it. It is not easy to write this document and configure the relevant diagram !! Preparation: I have not studied these tasks carefully. I copied them. I checked them online and explained everything I understood. To make the installation smooth, avoid unnecessary trouble to install the following package: libXp. i3860: 1.0.0-11. fc9unixODBC-2.2.12-7.fc9.i386comp

Oracle estimates that this is the last software I need to install on Fedora 9. It took me five hours to install it. It is not easy to write this document and configure the relevant diagram !!

Preparation: I have not studied these tasks carefully. I copied them. I checked them online and explained everything I understood.

To make the installation smooth, you need to install the following packages to avoid unnecessary troubles:

LibXp. i386 0. 0.0-11. fc9 unixODBC-2.2.12-7.fc9.i386 compat-libstdc +-296-2.96-140.i386 compat-libgcc-296-2.96-140.i386 compat-gcc-34-3.4.6-9.i386 compat-db-4.5.20-5.fc9.i386 compat-gcc-34-c + +-3.4.6-9. i386 compat-libstdc + +-33-3.2.3-63.i386

I installed software development tools when installing the system. These packages are my test results. The installation process is described in detail. If you do not select a software development tool, you may need to install the following packages:
Binutils-2. * elfutils-libelf-0. * glibc-2. * glibc-common-2. * libgcc-4. * libstdc ++-4. * make-3. * elfutils-libelf-devel-0. * glibc-devel-2. * gcc-4. * gcc-c ++-4. * libstdc ++-devel-4. *

Configure the system kernel parameters, modify the parameters in the/etc/sysctl. conf file, and add the following parameters to the file:
Sudo vi/etc/sysctl. conf
Add the following content:
Kernel. shmall = 2097152
Kernel. shmmax = 536870912
Kernel. shmmni = 4096
Kernel. sem = 250 32000 100 128
Fs. file-max = 65536
Net. ipv4.ip _ local_port_range = 1024 65000
Net. core. rmem_default = 262144
Net. core. rmem_max = 262144
Net. core. wmem_default = 262144
Net. core. wmem_max = 262144
Run the/sbin/sysctl-p command to make the kernel change take effect immediately.

Set Oracle file requirements:
Add the following statement to sudo vi/etc/security/limits. conf:
Oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
Sudo vi/etc/pam. d/login ):
Session required/lib/security/pam_limits.so
Here I am.
Session required/lib/security/pam_limits.so
Session optional pam_ck_connector.so is the last one.

Modifying/etc/RedHat-release joining the redhat-4 oracle will detect the installation environment, only redhat-3, SUSE-9, redhat-4, UnitedLinux-1.0, asianux-1, several versions can not do this step.
Vi/etc/redhat-release
Modify to redhat-4, is modified, to delete the original.
There are still two ways to check online
First, modify the oracle Installation File so that the installer does not detect the operating system.
In the extracted database/install/oraparam. ini oracle parameter configuration file, comment
[Certified Versions]
Linux = redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1, asianux-2 these two lines, is added in front.
I think this is not the version of all kinds of operating systems. Then I added Fedora release 9 (Sulphur) to check whether the test was successful. The installation prompt is that the installation file is corrupt and depressing, why is the comment not damaged? Test it. The result shows that the annotation is acceptable, but it cannot be added.
Second, run runInstaller-ignoreSysPrereqs. Adding this parameter will skip the check and will not be tested.

Create a user because only Oracle users can install it.
Sudo groupadd oinstall
Sudo groupadd dba
Sudo useradd-m-g oinstall-G dba oracle
Set the sudo passwd oracle password.
The id oracle is shown as follows:
Uid = 501 (oracle) gid = 501 (oinstall) groups = 501 (oinstall), 502 (dba)

Create an installation directory (for reference only, you can choose one ):
Sudo mkdir-p/opt/oracle/product/10g
Sudo mkdir/opt/oracle/database

Modify the Directory and Its Permissions
Sudo chown-R oracle. oinstall/opt/oracle
Sudo chmod 755-R/opt/oracle

Log on with an Oracle user
There is a small problem in configuring the environment variables of Oracle users. Today, I used gedit for configuration errors, but I don't know why it was copied or why. In short, the source will be wrong. Open it with vi and find that each row is followed by a ^ M symbol.
Vi. bash_profile:
The following three lines are not fixed formats for reference:
Export ORACLE_BASE =/opt/oracle/
Export ORACLE_HOME =/opt/oracle/product/10g
Export ORACLE_SID = oradb
Export PATH = $ ORACLE_HOME/bin: $ PATH
After configuration, use the source. bash_profile command to make the configuration take effect.
These environment variables will not be mentioned, and oracle should be known.

These are found on the Internet. I did not use them, and some settings were not clear. I found them after a long time.
Export TMP =/tmp # used to store temporary files
Export TMPDIR = $ TMP # I feel that one of the two is redundant and the directories are the same.
Export DISPALY = "localhost: 0.0" # This statement is particularly important and directly affects subsequent installation processes. localhost can be replaced by an IP address or host name. This is the original sentence I copied, but I personally think this sentence is useless. The default environment variable configuration of the system is available. localhost and default are empty, which means the local machine, you can check whether it is DISPALY =: 0.0. It is your personal opinion. If it is incorrect, please correct it.
Export ORA_NLS33 = $ ORACLE_HOME/ocommon/nls/admin/data # Character Set directory. After installation, check whether it is $ ORACLE_HOME/nls/data, I wonder whether the directory will change due to the setting of environment variables.
Export LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/lib # Library File
Export CLASSPATH = $ ORACLE_HOME/JRE: $ ORACLE_HOME/jlib: $ ORACLE_HOME/rdbms/jlib class path. I learned this when I used java in F8, I put these configurations in the global configuration file. If the file cannot be found when the java command is executed, I forgot to set this when installing oracle. Later, I added it to the front.: solved (the current directory ).
Export TNS_ADMIN = $ ORACLE_HOME/network/admin # character set. Check the nlb files of many sub-files.

Decompress the Installation File
Switch su to root
Cd/tmp
Unzip/root/10201_database_linux32.zip
Chown-R oracle: oinstall database
Exit

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.