Home >System Tutorial >LINUX >Several precautions for Oracle installation system swap drive! !
Interpretation of steps to install oracle under linux
Required software environment: linuxAS3U2, ORACLE9.2.0.4, upgrade package. The hardware environment requires at least 512M of video memory, a large enough swap space of at least 400M, and an installation space of at least 800M. If you need a CD to install, you also need a floppy drive.
1. Preparation
①. Before installing Oracle, it is best to have a clean Linux environment, set up the swap space, and do not install a firewall later (install it if necessary after installing the database).
②. Create a folder containing the Oracle installation files in the usr directory under Linux and name it ora9i, and then copy the installation files here. Ship_9204_linux_disk1.cpio, ship_9204_linux_disk2.cpio, ship_9204_linux_disk3.cpio and the upgrade package patch are copied here.
③. Start doing some installation settings. First, Oracle9i requires at least 512M of video memory space. Use the following command to check the size of the host video memory:
grepMemTotal/proc/meminfo
MemTotal:900252kB
Among them, 900252kB is the video memory size of your system.
④. The swap drive usually requires twice the video memory, at least 400M. In fact, the bigger the better, use the following command to check the size of the system swap drive:
/sbin/swapon–s
FilenameTypeSizeUsedPriority
/dev/sda6partition105221686976-1
105221 is the size of your system's swap drive.
⑤. If you are installing using a hard disk, you need to install an 8X cdrom on your host. The downloaded installation file we use here is not necessary.
⑥. Install JDK. The JDK version we need is 1.3.1 (some information says that you can ignore linux find, or you can use the JDK that comes with Oracle, but when installing here, it is best to follow the information. Come up and do it) Copy JDK1.3.1 to /local and then create a JDK directory.
2. Set parameters
①. Log in as root user and set the kernel parameters of Oracle9i. Kernel settings are the key to successful installation.
Go into the /proc/sys/kernel directory and run the catsem command
The result is: 2503200032128
Among them, 250 is the value of parameter SEMMSL, 32000 is the value of parameter SEMMNS, 32 is the value of parameter SEMOPM, and 128 is the value of parameter SEMMNI. Use the following commands to change the parameters. Note that the order here cannot be exchanged.
EchoSEMMSL_valueSEMMNS_valueSEMOPM_valueSEMMNI_value>sem
②. Use the following command to set up shared video memory
echo4294967295>shmmax
Note: My video memory here is 512M, so the value here is: 4294967295. If it is 1G, it is: 8589934590
③、Add a special user for Oracle installation
First we create a user group. Here we use dba as the user group here.
After logging in as root user, use the following command:
groupaddoinstall
groupadddba
useraddoracle–glinstall–Gdba
passwdoracle (enter the login password twice)
④. Create the installation directory, but assign the permissions of the directory to the user:
cd/usr
mkdiroracle
chownoracle.dba/usr/oracle
chmod775/usr/oracle
⑤. Use the newly built Oracle user to log in to the system and set the environment variables:
ORACLE_BASE=/usr/oracle/app/oracle;exportORACLE_BASE
ORACLE_HOME=/usr/oracle/app/oracle/product/9.2.0.4;exportORACLE_HOME
ORACLE_SID=lnxdbs;exportORACLE_SID (the SID here can be modified by yourself)
ORACLE_TERM=xterm;exportORACLE_TERM
TNS_ADMIN=/home/oracle/config/9.2.0.4;exportTNS_ADMIN
NLS_LANG=American_america.ZHS16GBK;exportNLS_LANG
ORA_NLS33=/usr/oracle/app/oracle/product/9.2.0.4/ocommon/nls/admin/data;exportORA_NLS33
PATH=$PATH:/usr/oracle/app/oracle/product/9.2.0.4;exportPATH
CLASSPATH=:/usr/oracle/app/oracle/product/9.2.0.4/jdbc/lib/classes111.zip;exportCLASSPATH
LD_LIBRARY_PATH=/usr/oracle/app/oracle/product/9.2.0.4/lib;exportLD_LIBRARY_PATH
exportLD_ASSUME_KERNEL=2.4.1
PATH=$PATH:/usr/local/java/bin
After saving, exit and log in again as the oracle user to make the settings effective.
⑥. After logging in to the system as the root user, decompress the three files, upgrade packages and patches. The products Disk1, Disk2, Disk3 and 3006854 will appear, and a 9204_lnx32_release.cpio file will appear. You need to decompress this cpio file before installation. Oracle installation under LinuxLinux software engineers use cpio9204_lnx32_release.cpio, which is the .sh file under the 3006854 file after upgrading the file and before running runIstaller, for packaging.
⑦Run runIstaller and the installation dialog box will appear
The specific Oracle installation process is as follows:
Step1: Set the location of OracleInventory
First you must specify the directory where OracleInventory is located. OracleInventory is used to record the list of all installed Oracle products. If there are no special requirements, please follow the default directory /opt/oracle/oraInventory.
Step2: Set the operating system group that can update Oracle software
The group set here is used to update Oracle software. If you decide to only allow root users to have the power to update Oracle software, do not specify any group name.
Since the oracle account is manually added to the oinstall group after SuSELinux is installed, the UnixGroupName array first displays oinstall. Press [Next] to continue!
Step3: Build OracleInventory
OracleUniversalInstaller has prepared a complete orainstRoot.sh file used by OracleInventory (the location is /tmp/orainstRoot.sh), but this file needs to be executed with the root identity. At this time, you can open another terminal window to execute the file oracle installation under linux, as shown in Figure 9. After the execution is completed, return to the figure
Press [Continue] in the eight window.
Step4: Specify the directory where the Oracle installation program source and destination are located
OracleHome is the main directory where the Oracle database system is located. Since ORACLE_HOME has been set to /opt/oracle/product/9.0.1 in /etc/profile.d/oracle.sh, the set value of ORACLE_HOME will appear in the Path array of Destination below. No changes are needed here either.
Step5: Select the type of Oracle9i product to be installed
Please check [Oracle9iDatabase9.0.1.0.0] here and press [Next].
(The picture of Oracle9.2.0.4 we have here is a copied picture)
Step6: Select Oracle9i database version
If you are installing the Oracle database system for the first time, it is recommended that you select [EnterpriseEdition] or [StandardEdition]. Readers who already have installation experience can choose the [Custom] method to decide which package to install.
Step7: Determine the basic configuration of the database
Assuming that your previous step was to select EnterpriseEdition or StandardEdition, the DatabaseConfiguration window will appear. You can choose the best configuration based on the actual use of the Oracle database. For example, if you are building an online analysis environment for data warehousing, you can choose to use the [DataWarehouse] option. Here we first select the general purpose [GeneralPurpose].
Step8: Set the identification data of the Oracle database
Oracle database versions from 8i onwards use GlobalDatabaseName to uniquely identify each Oracle database. It is recommended that you set the name of the database to OracleSID name.domain name. For example, if I set OracleSID to ora901 (in our case, it is lnxdbs), the database name can be set to .tw.
Step9: Specify the character set used by the database.
You can use the default project directly for this item, or you can define the specific location of the character set yourself.
After pressing [Next], OracleUniversalInstaller will display a summary of the Oracle9i product to be installed. After confirming that it is correct, press [Install] to start file copying and installation.
1. Depending on the hardware environment you are using, the installation may take dozens of minutes or even one or two hours.
Step11: Configuration settings after system installation
After the installation program copies all files to the system, the installation program will ask you again to execute the root.sh program as root (located in the directory pointed to by ORACLE_HOME, such as /opt/oracle/product/9.0.1).
At this time, you can execute root.sh in another terminal window (note that the identity needs to be switched to root). The program will ask you for the location of the bin directory. If it is the same as the default value, please press the [Enter] key directly. Otherwise, you need to enter the correct bin directory location. After executing root.sh, return to the window in Figure 19 and press [OK] to continue the subsequent setting work.
Step12: Execute Oracle database configuration tool
The last stage of system installation will manually execute the database configuration tool program, which contains two special assistant wizards: Oracle Network Configuration Assistant Wizard (OracleNetConfigurationAssistant) and Oracle Database Construction Assistant Wizard (OracleDatabaseConfigurationAssistant).
The second step will install OracleWebServer on port7777. After completion, the most important Oracle database configuration wizard (OracleDatabaseConfigurationAssistant, referred to as DBCA) will be activated. This step is necessary because currently OracleUniversalInstaller has only installed the Oracle9i database server in your system and has not yet built any Oracle database! (It feels a bit like building a library, but there are no books on it! Can this library be used?)
I won’t write the rest of the database creation part, you are all familiar with it.
The above is the detailed content of Several precautions for Oracle installation system swap drive! !. For more information, please follow other related articles on the PHP Chinese website!