Install Oracle-XE-Client on Ubuntu

Source: Internet
Author: User
The first time I wrote something in my blog on Ubuntu, I haven't updated it for a long time. Let's install oracle-xe-client today. The first thing we need to consider is whether the swap partition is large enough.

The first time I wrote something in my blog on Ubuntu, I haven't updated it for a long time. Let's install oracle-xe-client today. The first thing we need to consider is whether the swap partition is large enough.

I wrote something in my blog on Ubuntu for the first time. I haven't updated it for a long time. Come here today.

The first thing we need to consider when installing Oracle-xe-client is whether the swap partition is large enough,
This system does not meet the minimum requirements for swap space. based on the amount of physical memory available on the system, Oracle Client 10g Express Edition requires 1024 MB of swap space. this system has 951 MB of swap space. configure more swap space on the system and retry the installation.
Oracle-xe-client requires MB of swap space. How can I check the size of swap space in Ubuntu?
First, run the free-m command to check the number of swap instances in the system.
Free-m

Total used free shared buffers cached
Mem: 1002 964 38 0 21 410
-/+ Buffers/cache: 532 470
Swap: 951 32 929
We know that swap is 951 M and does not meet the Oracle-xe-client installation conditions of 1024 M.

Create a swap folder
Sudo mkdir swap
Cd swap
Sudo dd if =/dev/zero of = swapfile bs = 1024 count = 100000
The following message is displayed. The count in the preceding command indicates the swap file size.

Recorded 100000 + 0 reads
Records 100000 + 0 writes
102400000 bytes (102 MB) Copied, 0.74704 seconds, 137 MB/second
Convert the generated file to a swap file
Sudo mkswap swapfile
The prompt is as follows:
Setting up swapspace version 1, size = 102395 kB
No label, UUID = 09fde987-5567-498a-a60b-477e302a988b

Now let's activate this swap file.
Sudo swapon swapfile
View the free-m result again.

Total used free shared buffers cached
Mem: 1002 967 34 0 22 410
-/+ Buffers/cache: 534 467
Swap: 1053 32 1021

Swap space expanded successfully.
If you need to uninstall the swap file, you can enter the created swap file directory. Run the following command.
Sudo swapoff swapfile
If you need to keep this swap, you can write it into the/etc/fstab file.
Swapfilepath swap ults 0 0

Now let's install oracle-xe-client

Oracle has set up a dedicated apt source server for Ubuntu users. You only need to add a line in/etc/apt/source. list:
Deb unstable main non-free

In this case, do not rush to update. Add the public key of the source server to the local keystore. Download the public key first:
Sudo wget

After the download is complete, add it to the keystore.
Sudo apt-key add RPM-GPG-KEY-oracle
Now we can execute the update command.
Sudo apt-get update
Synchronize the software package index file. After synchronization is complete, we can check what files have been updated.
Sudo apt-cache seaarch oracle

We can see three related files at the bottom of the command execution.
Oracle-xe-Oracle Database 10g Express Western European Edition
Oracle-xe-client-Oracle Client 10g Express Edition
Oracle-xe-universal-Oracle Database 10g Express Universal Edition

For Development, you only need to install the oracle client and install the oracle-xe-client package.
Run
Sudo apt-get install oracle-xe-client
After the installation is successful, an Oracle client 10g Express Edition is displayed on the application"

Installation successful !~

Disclaimer: This article only represents the author's personal opinion and has nothing to do with the Linux community. Its originality, as well as the statement text and content in this article have not been confirmed by this site, this article and all or part of the content, the authenticity, integrity, timeliness of this site do not make any warranty or commitment, for your reference only, please verify the relevant content on your own.

From

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.