I recently installed LinuxMint13ldquo; Mayardquo; XfceRC, but because it is based on Xubuntu12.04, it should be applicable to both XUbuntu and Ubuntu 12.04.
My newly installed Linux Mint 13 ldquo; Mayardquo; Xfce RC, but because it is based on Xubuntu 12.04, it should be suitable for both XUbuntu and Ubuntu 12.04.
My newly installed Linux Mint 13 "Maya" Xfce RC, but because it is based on XUbuntu 12.04, it should be applicable to both XUbuntu and Ubuntu 12.04
1. Click here to download the installation media for Oracle express
Oracle Database Express Edition 11g Release 2 for Linux x64
2. Convert to deb package
Because the rpm package ubuntu cannot be directly used, alien is required for conversion.
Sudo apt-get install alien
Sudo alien-d -- scripts oracle-xe-11.2.0-1.0.x86_64.rpm
Get the oracle-xe_11.2.0-2_amd64.deb installation file after successful conversion
3. Install deb
Double-click deb to install the package. The package is successfully installed, but we will get an error saying/sbin/chkconfig does not exist.
We want to modify the/var/lib/dpkg/info/oracle-xe.postinst script
If [-f/etc/SUSE-release]
Then
Cp-f/u01/app/oracle/product/11.2.0/xe/config/scripts/oracle-xe.sles/etc/init. d/oracle-xe
/Usr/lib/lsb/install_initd/etc/init. d/oracle-xe>/dev/null 2> & 1
/Sbin/insserv/etc/init. d/oracle-xe>/dev/null 2> & 1
/Sbin/SuSEconfig>/dev/null 2> & 1
# Else
#/Sbin/chkconfig -- add oracle-xe
Fi
Comment out else And/sbin/chkconfig -- add oracle-xe, and then execute
Sudo/var/lib/dpkg/info/oracle-xe.postinst.
You will be prompted to run/etc/init. d/oracle-xe configure for configuration. But don't worry. We need some further steps.
4. Install the dependency package
Sudo apt-get install libaio1
5. Solve the Problem of ORA-00845: MEMORY_TARGET
Since oracle is looking for/dev/shm, Ubuntu has been replaced with/run/shm (although there is a link or a problem), there will be a ORA-00845 problem during initialization, the solution is as follows:
Log On with root
Sudo su-
Paste the downloaded code to the command line to create an oracle-shm
Cat>/etc/init. d/oracle-shm <-EOF
#! /Bin/sh
#/Etc/init. d/oracle-shm
#
#
Case "\ $1" in
Start)
Echo "Starting script/etc/init. d/oracle-shm"
# Run only once at system startup
If [-e/dev/shm/. oracle-shm]; then
Echo "/dev/shm is already mounted, nothing to do"
Else
Rm-f/dev/shm
Mkdir/dev/shm
# Mount-B/run/shm/dev/shm
Mount-t tmpfs shmfs-o size = 2048 m/dev/shm
Touch/dev/shm/. oracle-shm
Fi
;;
Stop)
Echo "Stopping script/etc/init. d/oracle-shm"
Echo "Nothing to do"
;;
*)
Echo "Usage:/etc/init. d/oracle-shm {start | stop }"
Exit 1
;;
Esac
#
### BEGIN INIT INFO
# Provides: oracle-shm
# Required-Start: $ remote_fs $ syslog
# Required-Stop: $ remote_fs $ syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Bind/run/shm to/dev/shm at system startup.
# Description: Fix to allow Oracle 11g use AMM.
### END INIT INFO
EOF
Install oracle-shm
Chmod 755/etc/init. d/oracle-shm
Update-rc.d oracle-shm defaults 01 99
Restart reboot
6. Configure oracle xe
Sudo/etc/init. d/oracle-xe configure
Select web Management port 8080 by default
Select listening port 1521 by default
Enter the administrator password and confirm the password (sys password)
Finally, ask if you want to automatically start the default y
7. web Console
Select Other-> Get Started with Oracle Database 11g Express Edition from the menu