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 http://oss.oracle.com/debian 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 http://oss.oracle.com/el4/RPM-GPG-KEY-oracle
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 help house. 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 http://zctya.blog.163.com/blog/static/120917820092444224337/