I did it according to instructor Xiao Bu's tutorial. There was no error in his settings. If it was wrong, it was my (you) error. Just follow the settings he gave, if it is not convenient, you can read this article. I have successfully installed this setting and wish you a pleasant learning experience! (I have been installed for no more than 7 times. I have learned a little bit about it and hope it will help.) Considering the company's network situation, I use the host-only mode for vm. I need a fixed ip address to install the Oracle database, the IP address range of my host is 192.168.0.0, And the dhcp address of host-only is disabled.
I did it according to instructor Xiao Bu's tutorial. There was no error in his settings. If it was wrong, it was my (you) error. Just follow the settings he gave, if it is not convenient, you can read this article. I have successfully installed this setting and wish you a pleasant learning experience! (The installation is no less than 7 times, tears, lessons, a little bit of experience, hope to help)
Considering the company's network conditions, I use the host-only mode for VMS. to install the Oracle database, a fixed ip address is required. The host network segment I set is 192.168.0.0, and dhcp for host-only is disabled, in this way, ip addresses are directly set during linux installation, dhcp retrieval is disabled, and hostsname (which should be called this) is set to ×××. the com URL mode is better, because a service (sendmail) is affected after I set it to xxx, And the startup is slow. Just change it to the domain name. # Note: After the system is installed, we recommend that you ping the gateway (192.168.0.1 virtual network interface card 1 Address). We recommend that you disable the firewall. My network name is win7 and the firewall cannot ping the gateway, however, it's strange to ping my local ip address (192.168.1.100! You just need to turn off the firewall. #
After linux is installed, a copy of the virtual machine is copied for backup, and then oracle is installed. The upload tool is xftp that comes with xmanager3.0 Enterprise Edition, I heard that FileZilla is prone to errors if it is uploaded quickly (an error occurred at the beginning --!), Because the graphic interface of xmangager is used, xmanagere Enterprise Edition is used directly. You don't need to find other upload tools. It must be the Enterprise Edition. I just got started with a general version (I don't know what version) there is no xftp in it. I installed the Linux graphic interface, which may be used. Therefore, the first thing to do in the system is to change the Startup Mode vi/etc/inittab, 5 to 3 (if you want to enter the graphic interface, in text mode, enter: init 5 ). there is also a tool, secureCRT. It is much easier to use this command than it is in a virtual machine. It is strongly recommended!
Upload the oracle9i installation program to Linux and install 9i with patches. I have a total of 25 patches (several duplicates ), the patch is in the Linux installation disk (My RHEL4.7.iso \ RedHat \ RPMS) list is as follows:
Xorg-x11-deprecated-libs-6.8.2-1.EL.13.20.i386.rpm
Xorg-x11-libs-6.8.2-1.EL.13.20.i386.rpm
Xorg-x11-xfs-6.8.2-1.EL.13.20.i386.rpm
Alsa-lib-devel-1.0.6-5.RHEL4.i386.rpm
Fontconfig-devel-2.2.3-7.i386.rpm
Freetype-devel-2.1.9-1.i386.rpm
Libjpeg-devel-6b-33.i386.rpm
Libtiff-devel-3.6.1-8.i386.rpm
Libungif-devel-4.1.3-1.i386.rpm
Xorg-x11-6.8.2-1.EL.13.20.i386.rpm
Xorg-x11-deprecated-libs-devel-6.8.2-1.EL.13.20.i386.rpm
Xorg-x11-devel-6.8.2-1.EL.13.20.i386.rpm
Audiofile-devel-0.2.6-1.i386.rpm
Esound-devel-0.2.35-2.i386.rpm
Libaio-0.3.103-3.i386.rpm
Libaio-devel-0.3.103-3.i386.rpm
Openmotif21-2.1.30-11.RHEL4.4.i386.rpm
Openmotif-2.2.3-10.2.el4.i386
Glib-devel-1.2.10-15.i386.rpm
Gnome-libs-devel-1.4.1.2.90-44.1.i386.rpm
Gtk +-devel-1.2.10-33.i386.rpm
Imlib-devel-1.9.13-23.i386.rpm
ORBit-devel-0.5.17-14.i386.rpm
Patch: Go to the directory where the patch is located. I put the patch under/rpm and enter: rpm-ivh *. rpm to install it all. Then hit the oracle official website patch 2: compat-libcwait-2.1-1.i386.rpm and compat-oracle-rhel4-1.0-5.i386.rpm Google it will be good
The installation process is the same as above.
Add oracle groups and users after patching: create directory/u01/oracle,
Command: mkdir/u01
Mkdir/u01/oracle
Add group: groupadd oinstall
Groupadd dba
Add User: usradd-g oinstall-G dba-d/u01/oracle (-g main group,-G other group)
# The first error is that the oracle user's home directory is not specified, and various errors occur during later installation. This should be the problem #
Set Password: passwd oracle
Define the master group and user of/u01: chown-R oracle: oinstall/u01
After setting the user and home directory, set the environment variables,
Switch to oracle: su-oracle
Open. bash_profile: vi. bash_profile
Add the following content:
ORACLE_SID = oracle9
ORACLE_BASE =/u01
ORACLE_HOME =/u01/oracle
PATH = $ ORACLE_HOME/bin: $ PATH :.
LD_ASSUME_KERNEL = 2.4.19
LD_LIBRARY_PATH = $ ORACLE_HOME/lib: $ LD_LIBRARY_PATH
Export ORACLE_SID ORACLE_BASE ORACLE_HOME PATH LD_ASSUME_KERNEL LD_LIBRARY_PATH
Stty erase ^ h
---- Save and exit