Oracle client installation method without graphical interface & amp; additional upgrade _ uninstallation _ deletion method

Source: Internet
Author: User

Operating System: SUSE Linux Enterprise Server 11 (i586)
Database Version: Oracle 10.2.0.1
Database Client Version: oracle10.2.0.1
Introduction: in the company's recent phase II project construction, the newly purchased PC server needs to be deployed on the oracle client to facilitate database access. We are naturally used to installing it on a graphical interface, which is easy to understand and convenient, we use the CRT tool for remote server maintenance. It is obvious that we cannot enable the graphical interface, but we can use an Xmanager-> Xbrowser tool to enable the graphical interface! Oh, I'm curious about everything. To put it bluntly, when I am./runInstaller, an error is reported: error no set display variable. This is not the DISPLAY environment variable configured!

[1. When the DISPLAY environment variable fails to be configured, "silent mode" is started "]
Export DISPLAY = 10.166.173.32: 0.0
Echo $ DISPLAY
Xhost + start the graphical installation Interface
Error: unable open display "10.166.173.32: 0.0" is too strange, no matter how I modify the configuration, this can be done, vaguely think of the previous "Silent Installation" mode, now I feel a little hate when I use the book. I need to check the official information. If I want to go home today, I will write down the installation process and add the upgrade and deletion methods for the client.
 
2. Create the users and user groups required for installation]
# Groupadd oinstall
# Groupadd dba
Mkdir/home/oracle SUSE 11 has a special feature: creating a home directory to create users; otherwise, users do not have a home directory.
Useradd oracle-g oinstall-G dba-d/home/oracle-p oracle create user oracle
-G MAIN GROUP
-G Secondary Group
-D specifies the home Directory of the user.
-P specifies the User Password
Cat/etc/passwd check whether oracle is already in the user list
Cat/etc/group check whether the owner list of the oinstall dba group is in
Oracle @ TJ-Unicom-Group-GiCol1: ~> Id
Uid = 1002 (oracle) gid = 106 (oinstall) groups = 106 (oinstall), 107 (dba)
User uid1002 unique identifier for user in Linux
User main group 106 oinstall-g refers to main group
User secondary group DBA-G refers to secondary group
Groups = 106 (oinstall), 107 (dba) User Group list, including primary group Secondary Group
Usermod-G oinstall oracle Use this command to modify the oracle user's secondary group oinstall. If the user already exists
Here I will give a brief review of linux user commands
 
Create the ORACLE_BASE directory
# Mkdir-p/u01/app/oracle
# Chown-R oracle: oinstall/u01/app/oracle recursively modify directory owner: Group
# Chmod-R 775/u01/app/oracle recursively modify directory permissions

Configure the. bash_profile file of an oracle user
# Su-oracle
# Password
# Vim ~ /. Bash_profile
Umask 022
Export ORACLE_BASE =/u01/app/oracle
Export ORACLE_HOME =/u01/app/oracle/product/10.2.0/client
Export LD_LIBRARY_PATH = $ ORACLE_HOME/lib: $ LD_LIBRARY_PATH
Export PATH = $ ORACLE_HOME/bin: $ PATH
The four environment variables must be written.
#.~ /. Reload bash_profile to make it take effect. source. bash_profile has the same effect.
 
[3. Upload and decompress the oracle10g Client installation file]
Use the rzcommand to upload the oracle10gclient Installation File 10201_client_linux32.zip to the oracle user's home directory and decompress it.
Attached unzip command 10201_client_linux32.zip
 
[4. Create an oraInst. loc file]
This file contains information about the oracle Inventory Directory, which records the installation/uninstallation records of oracle components, patches, and logs.
# Vim/etc/oraInst. loc
Inventory_loc =/u01/app/oracle/oraInventory list directory path
Inst_group = oinstall installation group information
# Chmod 775/etc/oraInst. loc authorization
 
Five Silent Installation of the oracle client]
# Cd/home/oracle/client/
#. /RunInstaller-silent-noconfig-responseFile/home/oracle/client/response/clientruntime. rsp UNIX_GROUP_NAME = "oinstall" ORACLE_HOME = "/u01/app/oracle/product/10.2.0/client" ORACLE_HOME_NAME = "maid"
-Silent indicates silent Installation Without any prompt
-Noconfig: no listening is run. The configuration assistant netca
-ResponseFile indicates which response file to use
Clientadmin. rsp is a management-type dedicated OEM, and will be attached with the installation of OEM Components
Clientruntime. rsp is run-type and exclusive to OEM
InstantClient. rsp is a fast client dedicated to non-bin directory
(The following parameters can also be edited in the response file clientadmin. rsp. These parameters are not required during installation)
UNIX_GROUP_NAME = "oinstall" Name of the group used by the oracle user to install software
ORACLE_HOME = "/u01/app/oracle/product/10.2.0/client" oracle Home directory path
ORACLE_HOME_NAME = "oracle10g_client" oracle client installation name
After the installation is complete, run the root. sh script under $ ORACLE_HOME as the root user (this is not required if the response file is instantClient)

  • 1
  • 2
  • 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.