linux下安装Oracle Database 10g Express Universal Edition
1、首先,上传oracle-xe-univ-10.2.0.1-1.0.i386.rpm到相应的目录,
例如:/home/oracle
2、执行安装
[oracle@mylinux ~]$ rpm -ivh oracle-xe-univ-10.2.0.1-1.0.i386.rpm
error: Failed dependencies:
libaio >= 0.3.96 is needed by oracle-xe-univ-10.2.0.1-1.0.i386
Suggested resolutions:
libaio-0.3.102-1.i386.rpm
切换到root用户,
[root@mylinux oracle]# rpm -ivh libaio-0.3.96-7.i386.rpm
warning: libaio-0.3.96-7.i386.rpm: V3 DSA signature: NOKEY, key ID 025e513b
Preparing… ########################################### [100%]
1:libaio ########################################### [100%]
[root@mylinux oracle]# rpm -ivh oracle-xe-univ-10.2.0.1-1.0.i386.rpm
Preparing… ########################################### [100%]
1:oracle-xe-univ ########################################### [100%]
Executing Post-install steps…
You must run ‘/etc/init.d/oracle-xe configure’ as the root user to
configure the database.
[root@mylinux oracle]# /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]:8080
Specify a port that will be used for the database listener [1521]: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:
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"
You have new mail in /var/spool/mail/root
[oracle@mylinux ~]$ $ORACLE_HOME/bin/sqlplus
SQL*Plus: Release 10.2.0.1.0 – Production on Wed Mar 16 16:16:14 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter user-name: hr@xe
Enter password:
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 – Production
SQL>
SQL> select table_name from user_tables;
TABLE_NAME
——————————
REGIONS
LOCATIONS
DEPARTMENTS
JOBS
EMPLOYEES
JOB_HISTORY
COUNTRIES
7 rows selected.
SQL>
留声机