64-bit installation of 32-bit oracle

12-19-2023

64-bit operating system has become a common option for modern computers, but some applications may still need 32-bit libraries to run. Oracle database is one example. Even the 64-bit version is available, but in some cases it is still necessary to install the 32-bit version. This article will introduce how to install 32-bit Oracle on a 64-bit operating system.

Step 1: Check the 64-bit system.

First, you need to confirm that you are using a 64-bit operating system. You can open a terminal and enter the following command:

uname -m

If the output result is x86_64, it means that you are using a 64-bit system. If there is no output, it means that you need to check whether the system is using a 64-bit system. If the output result is i386 or i686, it means that a 32-bit system is being used.

Step 2: Determine Oracle Version and Requirements

After confirming the operating system version, you need to select the Oracle version to install. Oracle is available in two versions: 32-bit and 64-bit. If you confirm that you need to install the 32-bit version, you also need to confirm whether the operating system meets the minimum requirements of Oracle.

When installing Oracle 11g, you need at least 4GB of RAM and 5GB of space. For Oracle 12c, at least 8GB of RAM and 10GB of space are required. In addition, several dependencies and library files need to be installed. The complete list can be found in the official documentation of Oracle.

Step 3: Install the required dependencies and library files.

Before installing 32-bit Oracle, you need to install some necessary dependencies and library files. You can install them in the console using the following command:

sudo apt-get install gcc libaio1 glibc

This will install GNU C compiler, AIO library and GNU C library.

Step 4: Create an installation folder and download files.

Next, use the following command to create a folder named oracle (or another name):

sudo mkdir /media/oracle

Then, download the 32-bit Oracle installer from Oracle's official website. The name of the installer is similar to oracle-XE-11.2.0-1.0.x86 _ 64.rpm.zip, and it needs to be downloaded to the newly created Oracle folder.

Step 5: Unzip the file.

After downloading and moving the installer to the oracle folder, you need to extract the file. You can use the following command to extract the zip file into the oracle folder:

unzip /media/oracle/oracle-xe-11.2.0-1.0.x86_64.rpm.zip -d /media/oracle

After decompression, you can see a folder named Disk1. This folder contains the installer.

Step 6: Install Oracle

After completing all the above steps, you can now start installing Oracle. You can use the following command to run the installer in the console:

sudo rpm -ivh Disk1/oracle-xe-11.2.0-1.0.x86_64.rpm --nodeps --force

This command installs the installer into the system. Make sure to use the correct Oracle version and folder path.

The installer will prompt for Oracle installation details, such as user name, password and SID. You can provide the required information according to the prompts. When entering a password, make sure to use a strong password to protect the database.

During installation, the installer will prompt you to enter a folder path named, which is the download configuration folder path of ORACLE_HOME, and it will be used for installation settings. Make sure that the path of the ORACLE_HOME folder provided is /usr/lib/oracle/11.2/client (or other paths) so that Oracle can be installed correctly.

Step 7: Confirm the installation

After successful installation, you need to confirm that Oracle is installed correctly and running. You can start Oracle services with the following command:

sudo service oracle-xe start

If the command runs successfully, it means that Oracle is properly installed and running.

Step 8: Test the database.

Finally, you can test whether the Oracle database is running. You can use the following command to connect to the database:

sqlplus sys as sysdba

This will prompt you for the Oracle password. If the password is correct, an SQL command prompt will open. At this point, you have successfully installed 32-bit Oracle into a 64-bit operating system.

conclusion

Although 64-bit operating systems are very common in modern computers, some applications still need 32-bit libraries to run normally. For Oracle databases, the 32-bit version is still a necessity. Through the steps provided in this article, you can successfully install 32-bit Oracle on a 64-bit operating system.

Copyright Description:No reproduction without permission。

Knowledge sharing community for developers。

Let more developers benefit from it。

Help developers share knowledge through the Internet。

Follow us