How to install Oracle 9i for linux

Source: Internet
Author: User

In front of this article, a lot of such articles are searched on the Internet. Why should we write it out? The reason is that most articles on Oracle 9i on the Internet are incorrect, and no matter what the sender is, the installation method mentioned below is available, if a software installation has no technical content, why should we hide it? But I declare in advance: the best way to install it is to use JRE instead of the JDK shown in the article, this ensures that all OEM products are available, but Oracle OEM products are not easy to use, and all functions of SqlPlus can be achieved, so almost no one uses OEM for management, to save unnecessary trouble, we recommend that you use JDK for beginners. Although it cannot ensure that all OEM products are available, there is no difference in database performance and functions, therefore, the methods described in this article are fully used to build servers in reality.
Log on as a root user
1. groupadd sysdba
2. groupadd sysoper
3. groupadd oinstall
4. useradd oracle-d/usr/oracle-g oinstall-G sysdba, sysoper
5. passwd oracle
6. chmod 755/usr/oracle
7. cd/usr
8. mkdir oraInventory // directory for saving database files
9. chown oracle. oinstall oraInventory // assign the owner of this directory to the oracle user. It turns out to be a root user.
10. umask
11. log on to oracle and edit. bash_profile.
DISPLAY = localhost: 0.0
Export DISPLAY
ORACLE_BASE =/usr/oraInventory;
Export ORACLE_BASE
ORACLE_HOME =/usr/oracle
Export ORACLE_HOME
ORACLE_SID = db
Export ORACLE_SID
JAVA_HOME =/usr/java/jdk1.3.1 _ 02
Export JAVA_HOME
PATH = $ PATH: $ ORACLE_HOME/bin: $ JAVA_HOME
Export PATH
Note: The above are general environment variables, and the following are environment variables of proC.
CLASSPATH = $ ORACLE_HOME/jre: $ ORACLE_HOME/jlib: $ ORACLE_HOME/rdbms/jlib
CLASSPATH = $ CLASSPATH: $ ORACLE_HOME/network/jlib
Export CLASSPATH
# Export LD_ASSUME_KERNEL = 2.4.1
LD_LIBRARY_PATH = $ ORACLE_HOME/lib
Export LD_LIBRARY_PATH
NLS_LANG = AMERICAN_AMERICA.ZHS16GBK
Export NLS_LANG
12. rpm-iv jdk-1.3.1_02.i386.rpm (copied and installed as root users)

  • 1
  • 2
  • 3
  • Next Page

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.