Was given a linux server (SUSE 10.3) in work (Dell PowerEdge300SC 512MB RAM) and asked to install Oracle 10.2 XE (oracle-xe-10.2.01.1-1.0.i386.rpm)
Here's a list of some of the problems and solutions I encountered:
P1. Need to be root to perform the install.
S1. In your terminal window type "su -"
You will be prompted for your root password.
Provided you enter it correctly you will now be root.
P2. Now that you've changed user you may not be able to find where you downloaded everything!
S2. The home directory of your previous user is located at /home/username
So type cd /home/username to navigate to it.
P3. Some dependencies may not be present for the install to go ahead - i had the following issue
"Failed dependencies:
libaio >= 0.3.96 is needed by oracle-xe-10.2.01.1-1.0.i386.rpm
S3. Searched RPM repositories for this, got a higher version 0.3.104. I saved this in the same directory as the oracle install and ran
rpm -ivh libaio-0.3.104-74.i586.rpm
That ran successfully, so once again I tried to run the oracle installer
rpm -ivh oracle-xe-10.2.01.1-1.0.i386.rpm.
P4. Got another problem - insufficient swapsize (Machine's was set to 1019, needed 1024, so close but yet so far)
This system does not meet the minimum requirements for swap space. Based on the amount of physical memory available on the system, Oracle Database 10g Express Edition requires 1024 MB of swap space. This system has 1019 MB of swap space. Configure more swap space on the system and retry the installation.
error: %pre(oracle-xe-10.2.01.1-1.0.i386) scriplet failed, exit status 1
error: install: %pre scriptlet failed (2), skipping oracle-xe-10.2.01.1-1.0.
S4: It may suit you to alter the swap partition, ideally if you're installing SUSE / linux from scratch before reading this, make sure to read the advised swap file sizes - around double the size of your ram so 512 ram, 1024 swap.
This didn't suit me as the partitions on this particular machine were all over the place. After much trying to rejig the partitions I found this option:
Adding a swapfile (Thanks to http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/custom-guide/s1-swap-adding.html)
1. At a shell prompt as root, type the following command with count being equal to the desired block size:
dd if=/dev/zero of=/swapfile bs=1024 count=65536 (64MB swap file, I doubled that last number)
2. Setup the swap file with the command:
mkswap /swapfile
3. To enable the swap file immediately but not automatically at boot time:
swapon /swapfile
The red hat link suggests you can enable it at boottime (I havent done this yet, perhaps I'll need it when I reboot)
4. To enable it at boot time, edit /etc/fstab to include
/swapfile swap swap defaults 0 0
Thursday, July 24, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment