search
HomeSystem TutorialLINUXSeveral precautions for Oracle installation system swap drive! !

Several precautions for Oracle installation system swap drive! !

Apr 09, 2024 am 08:30 AM
oraclelinuxSystem installation

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!

Statement
This article is reproduced at:ITcool. If there is any infringement, please contact admin@php.cn delete
What are the main tasks of a Linux system administrator?What are the main tasks of a Linux system administrator?Apr 19, 2025 am 12:23 AM

The main tasks of Linux system administrators include system monitoring and performance tuning, user management, software package management, security management and backup, troubleshooting and resolution, performance optimization and best practices. 1. Use top, htop and other tools to monitor system performance and tune it. 2. Manage user accounts and permissions through useradd commands and other commands. 3. Use apt and yum to manage software packages to ensure system updates and security. 4. Configure a firewall, monitor logs, and perform data backup to ensure system security. 5. Troubleshoot and resolve through log analysis and tool use. 6. Optimize kernel parameters and application configuration, and follow best practices to improve system performance and stability.

Is it hard to learn Linux?Is it hard to learn Linux?Apr 18, 2025 am 12:23 AM

Learning Linux is not difficult. 1.Linux is an open source operating system based on Unix and is widely used in servers, embedded systems and personal computers. 2. Understanding file system and permission management is the key. The file system is hierarchical, and permissions include reading, writing and execution. 3. Package management systems such as apt and dnf make software management convenient. 4. Process management is implemented through ps and top commands. 5. Start learning from basic commands such as mkdir, cd, touch and nano, and then try advanced usage such as shell scripts and text processing. 6. Common errors such as permission problems can be solved through sudo and chmod. 7. Performance optimization suggestions include using htop to monitor resources, cleaning unnecessary files, and using sy

What is the salary of Linux administrator?What is the salary of Linux administrator?Apr 17, 2025 am 12:24 AM

The average annual salary of Linux administrators is $75,000 to $95,000 in the United States and €40,000 to €60,000 in Europe. To increase salary, you can: 1. Continuously learn new technologies, such as cloud computing and container technology; 2. Accumulate project experience and establish Portfolio; 3. Establish a professional network and expand your network.

What is the main purpose of Linux?What is the main purpose of Linux?Apr 16, 2025 am 12:19 AM

The main uses of Linux include: 1. Server operating system, 2. Embedded system, 3. Desktop operating system, 4. Development and testing environment. Linux excels in these areas, providing stability, security and efficient development tools.

Does the internet run on Linux?Does the internet run on Linux?Apr 14, 2025 am 12:03 AM

The Internet does not rely on a single operating system, but Linux plays an important role in it. Linux is widely used in servers and network devices and is popular for its stability, security and scalability.

What are Linux operations?What are Linux operations?Apr 13, 2025 am 12:20 AM

The core of the Linux operating system is its command line interface, which can perform various operations through the command line. 1. File and directory operations use ls, cd, mkdir, rm and other commands to manage files and directories. 2. User and permission management ensures system security and resource allocation through useradd, passwd, chmod and other commands. 3. Process management uses ps, kill and other commands to monitor and control system processes. 4. Network operations include ping, ifconfig, ssh and other commands to configure and manage network connections. 5. System monitoring and maintenance use commands such as top, df, du to understand the system's operating status and resource usage.

Boost Productivity with Custom Command Shortcuts Using Linux AliasesBoost Productivity with Custom Command Shortcuts Using Linux AliasesApr 12, 2025 am 11:43 AM

Introduction Linux is a powerful operating system favored by developers, system administrators, and power users due to its flexibility and efficiency. However, frequently using long and complex commands can be tedious and er

What is Linux actually good for?What is Linux actually good for?Apr 12, 2025 am 12:20 AM

Linux is suitable for servers, development environments, and embedded systems. 1. As a server operating system, Linux is stable and efficient, and is often used to deploy high-concurrency applications. 2. As a development environment, Linux provides efficient command line tools and package management systems to improve development efficiency. 3. In embedded systems, Linux is lightweight and customizable, suitable for environments with limited resources.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Atom editor mac version download

Atom editor mac version download

The most popular open source editor