简介:
演示在Ubuntu-11.4环境上安装体验版Oracle 10g的全过程。
文中用红色字体标出全过程所有需要执行的命令,很少的说。
说明:
Ubuntu版本:11.4
Oracle版本:体验版10.2.0.1-1.0
Oracle安装文件:oracle-xe-universal_10.2.0.1-1.0_i386.deb
参考资料:Ubuntu上Oracle10g安装指南
一、修改Swap分区大小
chenfeng@chenfeng-VirtualBox:~/MySoft$ sudo dpkg -i oracle-xe-universal_10.2.0.1-1.0_i386.deb
如果内存大小或Swap分区大小达不到要求,安装都会失败,并提示,
要增大内存必须通过虚拟机来设置,而增大Swap分区大小则通过一下步骤实现:
第一步,当然是建立一个img文件,大小为512M,需要1024的话就把count=500000改成1000000,这样我们才能访问它。
root@chenfeng-VirtualBox:/# dd if=/dev/zero of=swap.img bs=1024 count=1000000
记录了1000000+0 的读入
记录了1000000+0 的写出
1024000000字节(1.0 GB)已复制,18.6654 秒,54.9 MB/秒
第二步,当然是对它进行格式化,不要担心,格式化的只是这个文件,不用sudo。
root@chenfeng-VirtualBox:/# mkswap swap.img
mkswap: swap.img: warning: don't erase bootbits sectors
on whole disk. Use -f to force.
Setting up swapspace version 1, size = 999996 KiB
no label, UUID=7b4f0631-8402-4c7d-9ef4-ad47e84a6287
root@chenfeng-VirtualBox:/# mkswap -f swap.img
Setting up swapspace version 1, size = 999996 KiB
no label, UUID=68fd2d90-30ff-4472-a19b-5c0b25046faa
第三步,当然是激活它,使它可用。
root@chenfeng-VirtualBox:/# sudo swapon swap.img
第四步,查看交换分区大小
root@chenfeng-VirtualBox:/# free -m
total used free shared buffers cached
Mem: 960 914 46 0 9 692
-/+ buffers/cache: 211 749
Swap: 1486 0 1486
二、安装依赖的软件包libaio、libaio1等
chenfeng@chenfeng-VirtualBox:~/MySoft$ sudo dpkg -i oracle-xe-universal_10.2.0.1-1.0_i386.deb
[sudo] password for chenfeng:
(正在读取数据库 ... 系统当前共安装有 130796 个文件和目录。)
正在解压缩 oracle-xe-universal (从 oracle-xe-universal_10.2.0.1-1.0_i386.deb) ...
dpkg:依赖关系问题使得 oracle-xe-universal 的配置工作不能继续:
oracle-xe-universal 依赖于 libaio (>= 0.3.96) | libaio1 (>= 0.3.96);然而:
未安装软件包 libaio。
未安装软件包 libaio1。
dpkg:处理 oracle-xe-universal (--install)时出错:
依赖关系问题 - 仍未被配置
正在处理用于 bamfdaemon 的触发器...
Rebuilding /usr/share/applications/bamf.index...
正在处理用于 desktop-file-utils 的触发器...
正在处理用于 python-gmenu 的触发器...
Rebuilding /usr/share/applications/desktop.zh_CN.utf8.cache...
正在处理用于 man-db 的触发器...
正在处理用于 ureadahead 的触发器...
ureadahead will be reprofiled on next reboot
正在处理用于 python-support 的触发器...
在处理时有错误发生:
oracle-xe-universal
chenfeng@chenfeng-VirtualBox:~/MySoft$ sudo apt-get -f install
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
正在更正依赖关系... 完成
将会安装下列额外的软件包:
libaio1
下列【新】软件包将被安装:
libaio1
升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 249 个软件包未被升级。
有 1 个软件包没有被完全安装或卸载。
需要下载 6,150 B 的软件包。
解压缩后会消耗掉 81.9 kB 的额外空间。
您希望继续执行吗?[Y/n]Y
获取:1 http://cn.archive.ubuntu.com/ubuntu/ natty/main libaio1 i386 0.3.107-7ubuntu2 [6,150 B]
下载 6,150 B,耗时 2秒 (2,989 B/s)
选中了曾被取消选择的软件包 libaio1。
(正在读取数据库 ... 系统当前共安装有 133390 个文件和目录。)
正在解压缩 libaio1 (从 .../libaio1_0.3.107-7ubuntu2_i386.deb) ...
正在设置 libaio1 (0.3.107-7ubuntu2) ...
正在设置 oracle-xe-universal (10.2.0.1-1.0) ...
update-rc.d: warning: /etc/init.d/oracle-xe missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
Executing Post-install steps...
-e You must run '/etc/init.d/oracle-xe configure' as the root user to configure the database.
正在处理用于 libc-bin 的触发器...
ldconfig deferred processing now taking place
三、安装
chenfeng@chenfeng-VirtualBox:~/MySoft$ sudo dpkg -i oracle-xe-universal_10.2.0.1-1.0_i386.deb
(正在读取数据库 ... 系统当前共安装有 133397 个文件和目录。)
正预备替换 oracle-xe-universal 10.2.0.1-1.0 (使用 oracle-xe-universal_10.2.0.1-1.0_i386.deb) ...
正在解压缩将用于更替的包文件 oracle-xe-universal ...
正在设置 oracle-xe-universal (10.2.0.1-1.0) ...
update-rc.d: warning: /etc/init.d/oracle-xe missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
Executing Post-install steps...
-e You must run '/etc/init.d/oracle-xe configure' as the root user to configure the database.
正在处理用于 bamfdaemon 的触发器...
Rebuilding /usr/share/applications/bamf.index...
正在处理用于 desktop-file-utils 的触发器...
正在处理用于 python-gmenu 的触发器...
Rebuilding /usr/share/applications/desktop.zh_CN.utf8.cache...
正在处理用于 man-db 的触发器...
正在处理用于 ureadahead 的触发器...
正在处理用于 python-support 的触发器...
四、配置
chenfeng@chenfeng-VirtualBox:~/MySoft$ sudo /etc/init.d/oracle-xe configure
Oracle Database 10g Express Edition Configuration
-------------------------------------------------
This will configure on-boot properties of Oracle Database 10g Express
Edition. The following questions will determine whether the database should
be starting upon system boot, the ports it will use, and the passwords that
will be used for database accounts. Press <Enter> to accept the defaults.
Ctrl-C will abort.
Specify the HTTP port that will be used for Oracle Application Express [8080]:
Specify a port that will be used for the database listener [1521]:
Specify a password to be used for database accounts. Note that the same
password will be used for SYS and SYSTEM. Oracle recommends the use of
different passwords for each database account. This can be done after
initial configuration:
Confirm the password:
Passwords do not match. Enter the password:
Confirm the password:
Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]:y
Starting Oracle Net Listener...Done
Configuring Database...Done
Starting Oracle Database 10g Express Edition Instance...Done
Installation Completed Successfully.
To access the Database Home Page go to "http://127.0.0.1:8080/apex"
OK~ 安装完毕!
相关推荐
Ubuntu系统安装oracle10g教程图文教程 制作U盘ubuntu启动工具universal-usb-installer.exe 包含所需ubuntu10.04迅雷下载种子 oracle for linux 下载链接 缺失文件compat-libstdc++-33-3.2.3-47.3.i386.rpm
ubuntu8.04 下安装 oracle10g
在ubuntu上安装oracle11g,其中有些小细节,不注意是会出问题的,当时我费了不少力的。
ubuntu-20.04-desktop-amd64(百度网盘) (ISO)(百度网盘)(百度网盘)
非常详细的 Ubuntu 10.10安装Oracle 10g 教程
ubuntu-18.04.6-server-arm64.iso ubuntu arm64 aarch64位系统 ubuntu for arm64 ubuntu for aarch64
ubuntu-22.04-live-server-arm64.iso https://releases.ubuntu.com/jammy/
Ubuntu_10安装Oracle_10g手记
ubuntu-7.10-jeos-i386最小的精简版系统,针对虚拟机进行优化,只有151M大小,完整一个包下载,不是分卷
下载**clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-16.04** LLVM下载地址:http://releases.llvm.org/download.html#8.0.0 放置到`openarkcompiler/tools`目录,打开`openarkcompiler/build/config/BUILDCONFIG.gn`...
Oracle 11g for ubuntu 安装教程
ubuntu-16.04.3 镜像种子(ubuntu-16.04.3-desktop-amd64.zip)
百度云资源下载ubuntu-14.04-desktop-amd64.iso;
百度承不欺我,ubuntu-16.04.6-desktop-amd64.iso镜像文件,挣点积分换流量
点击桌面上的“Install Ubuntu XXX”的快捷方式,将会弹出一个完全图形化的向导安装,最后完成后会提示重启电脑,重启后你会发现多了一个操作系统选择界面,选择咱们刚刚装好的Ubuntu(第一个)进入即可看到下面的...
ubuntu-14.04.5-desktop-i386 版本的 迅雷 下载 torrent
ubuntu-18.04.1-desktop-amd64.iso百度网盘下载地址,自己整理,诚不欺人。
ubuntu-20.04.3-desktop-amd64,共2部分,此为第1部分。
ubuntu-20.04.5-desktop-amd64.iso 使用rufud将镜像刻录到U盘里 将刻录的U盘插入到物理机上,开机并进入到BIOS中,设置U盘优先启动,或者开机按下F9进入到引导菜单栏,选择U盘,然后点击Ubuntu进行安装 安装设置
亲自实践的完整的ORACLE10安装过程