Install Oracle10g in Fedora7

Source: Internet
Author: User
I have been listening to my tutor's lecture about Oracle these days. I always wanted to install one, but I didn't install it on my Fedora7. I tried it some time today. Refer to the online method, the installation is successful. Here are the specific methods. Rest assured that Fedora7 will certainly be able to install Oracle, and now I can prove that it is true, no problem, because I have installed it. 1. First try to prepare the software. Fedora7 lacks many things to install oracle. It is a comprehensive installation when I install Fedora7,

I have been listening to my tutor's lecture about Oracle these days. I always wanted to install one, but I didn't install it on my Fedora7. I tried it some time today. Refer to the online method, the installation is successful. Here are the specific methods.

Rest assured that Fedora7 will certainly be able to install Oracle, and now I can prove that it is true, no problem, because I have installed it.

1. First try to prepare the software. Fedora7 lacks a lot of things to install oracle. When I install Fedora7, it is a comprehensive installation, but it still lacks many things. The software required for testing is as follows:

$ Rpm-q gcc make binutils openmotif setarch compat-db
Compat-gcc-c ++ compat-libstdc ++-devel libaio
Gcc-4.1.2-12
Make-3.81-6.fc7
Binutils-2.17.50.0.12-4
Openmotif-2.3.0-0.3.fc7.ccrma
Setarch-2.0-4.fc7
Compat-db-4.3.29-2.fc7
Compat-gcc-8-3.3.4.2
Compat-gcc-c ++-8-3.3.4.2
Compat-libstdc ++-8-3.3.4.2
Compat-libstdc ++ devel-8-3.3.4.2
Libaio-0.3.106-3.2

After I tested it, I lacked a lot of things and then went to Google to search for it. I was relieved that I could find all of them, but they were not very big and easy to find. I just wanted to find the RPM, there are not many related things, so it is easy to implement. It took me about an hour, not too long. This is the case for linux installation. This is simple, it takes a long time to compile the source code. It is easier to use RPM or YUM.

2. To prepare an account, add a user to Oracle as follows:

Run the following command as the root user:

Create a user:
#/Usr/sbin/groupadd oinstall
#/Usr/sbin/groupadd dba
#/Usr/sbin/useradd-m-g oinstall-G dba oracle

Set the password for the oracle account:
# Passwd oracle

Create directory:
# Mkdir-p/opt/oracle
# Mkdir-p/opt/oracle/oradata
# Chown-R oracle: oinstall/opt/oracle/oradata
# Chmod-R 775/opt/oracle/oradata

3. now that the preparation conditions are ready, the next step is to install Oracle. The first problem encountered during Oracle installation is identified by the system. By default, Fedora7 cannot be installed, therefore, you need to change the configuration of system conditions. After the user and directory are created, the kernel parameters are followed. The following is a reference to the official Oracle Installation document. You can directly use gedit to modify the conf file and copy and add it to the end of the file.

Configure system parameters:
# Cat>/etc/sysctl. conf <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

Recommended Oracle configuration:
# Cat>/etc/security/limits. conf <oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
EOF

# Cat>/etc/pam. d/login <session required/lib/security/pam_limits.so
EOF

Configure the environment variables of Oracle users:

Add the following configuration to the end of the/home/oracle/. bash_profile file:
PATH = $ PATH: $ HOME/bin; export PATH
ORACLE_HOME =/opt/oracle/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_BASE =/opt/oracle; export ORACLE_BASE

ORACLE_SID = oradb; export ORACLE_SID

You need to modify the oraparam. ini file before starting. Otherwise, the operating system is not supported. Note the steps of operating system detection:

[Certified Versions]
Linux = RedHat-3, SUSE-9, redhat-4, UnitedLinux-1.0, asianux-1, asianux-2
Changed:
# [Certified Versions]
# Linux = redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1, asianux-2

4. The installation is started below. The installation interface can appear at this time, but garbled characters are displayed. google's solution, export LANG = C. This can be installed at this time. I removed it from the first record, so press enter and I will be OK. Go to the installation directory and run the command. In the meantime, an export ORACLE_SID = orcl is executed, and the connection will be available. Yes.

Now I am using it. In my opinion, I want to learn from new students. Start practicing now. In general, Fedora 7 can install Oracle. Don't worry.

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.