Instalace není nikterak težká, ale nainstalujte si tyto dva balíky, jinak se instalace provede, ale neprojde vám konfigurace databáze.
Instalace se provádí pod účtem root!
Instalace
yum install glibc
yum install libaio*

[root@vmsrv01 oracle]# cd /opt/
[root@vmsrv01 opt]# ls
linux.x64_11gR2_OracleXE.zip oracle-xe-univ-10.2.0.1-1.0.i386.rpm
[root@vmsrv01 opt]# 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.
Konfigurace

[root@vmsrv01 opt]# /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 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:

Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [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“

{phocagallery view=category|categoryid=1|imageid=197}
{phocagallery view=category|categoryid=1|imageid=198}

Změna hesla pro uživatele Oracle:

[root@vmsrv01 opt]# passwd oracle
Changing password for user oracle.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.

Přihlšení a nastavení prostředí:
login as: oracle
oracle@server’s password:
-bash-4.1$ id
uid=501(oracle) gid=501(dba) groups=501(dba) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

Databáze se automaticky nainstaluje do adresáře /usr/lib/oracle/xe/app/oracle/product/10.2.0/server

[root@vmsrv01 bin]# . /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh

-bash-4.1$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.1.0 – Production on Fri Aug 5 15:37:56 2011

Copyright (c) 1982, 2005, Oracle. All rights reserved.

Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 – Production

SQL> show parameter instance

NAME TYPE VALUE
———————————— ———– ——————————
active_instance_count integer
cluster_database_instances integer 1
instance_groups string
instance_name string XE
instance_number integer 0
instance_type string RDBMS
open_links_per_instance integer 4
parallel_instance_group string
parallel_server_instances integer 1



Komentáře