Tuesday, March 11, 2014

ORACLE-XE installation

user@HOST:~$unzip oracle-xe-11.2.0-1.0.x86_64.rpm.zip
Archive:  oracle-xe-11.2.0-1.0.x86_64.rpm.zip
   creating: Disk1/
   creating: Disk1/upgrade/
  inflating: Disk1/upgrade/gen_inst.sql 
   creating: Disk1/response/
  inflating: Disk1/response/xe.rsp  
  inflating: Disk1/oracle-xe-11.2.0-1.0.x86_64.rpm 
user@HOST:~$ls -l
total 317872
-rw-r--r-- 1 user usersource   7277530 Nov 14 18:32 apache-tomcat-6.0.37.zip
-rw-r--r-- 1 user usersource   2318161 May  7  2013 bcprov-jdk15on-148.jar
drwxrwxr-x 4 user usersource      4096 Aug 29  2011 Disk1
-rw-r--r-- 1 user usersource 315891481 Nov 19 22:05 oracle-xe-11.2.0-1.0.x86_64.rpm.zip
-rw-r--r-- 1 user usersource      7426 May  7  2013 UnlimitedJCEPolicyJDK7.zip
user@HOST:~$cd Disk1/
user@HOST:~/Disk1$ls
oracle-xe-11.2.0-1.0.x86_64.rpm  response  upgrade
user@HOST:~/Disk1$rpm -ivh oracle-xe-11.2.0-1.0.x86_64.rpm
error: Failed dependencies:
    libaio >= 0.3.104 is needed by oracle-xe-11.2.0-1.0.x86_64
user@HOST:~/Disk1$rpm -Uvh oracle-xe-11.2.0-1.0.x86_64.rpm
error: Failed dependencies:
    libaio >= 0.3.104 is needed by oracle-xe-11.2.0-1.0.x86_64

root@HOST Disk1# ls -l
total 309892
-rw-rw-r-- 1 user usersource 317320273 Aug 29  2011 oracle-xe-11.2.0-1.0.x86_64.rpm
drwxr-xr-x 2 user usersource      4096 Aug 29  2011 response
drwxrwxr-x 2 user usersource      4096 Aug 29  2011 upgrade
root@HOST Disk1# rpm -ivh oracle-xe-11.2.0-1.0.x86_64.rpm
error: Failed dependencies:
    libaio >= 0.3.104 is needed by oracle-xe-11.2.0-1.0.x86_64
root@HOST Disk1# ls -l
total 309892
-rw-rw-r-- 1 user usersource 317320273 Aug 29  2011 oracle-xe-11.2.0-1.0.x86_64.rpm
drwxr-xr-x 2 user usersource      4096 Aug 29  2011 response
drwxrwxr-x 2 user usersource      4096 Aug 29  2011 upgrade
root@HOST Disk1# exit
user2@HOST:/home/user/Disk1$exit
user@HOST:~/Disk1$su
Password:
user@HOST:~/Disk1$
user@HOST:~/Disk1$su user2
Password:
user2@HOST:/home/user/Disk1$sudo su
root@HOST Disk1# yum install libaio-0.3.104
Loaded plugins: product-id, rhnplugin, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
This system is receiving updates from RHN Classic or RHN Satellite.
rhel-x86_64-server-6                                                                                                    | 1.8 kB     00:00    
Setting up Install Process
No package libaio-0.3.104 available.
Error: Nothing to do
root@HOST Disk1# yum install libaio
Loaded plugins: product-id, rhnplugin, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package libaio.x86_64 0:0.3.107-10.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================================
 Package                     Arch                        Version                               Repository                                 Size
===============================================================================================================================================
Installing:
 libaio                      x86_64                      0.3.107-10.el6                        rhel-x86_64-server-6                       21 k

Transaction Summary
===============================================================================================================================================
Install       1 Package(s)

Total download size: 21 k
Installed size: 0 
Is this ok [y/N]: y
Downloading Packages:
libaio-0.3.107-10.el6.x86_64.rpm                                                                                        |  21 kB     00:00    
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : libaio-0.3.107-10.el6.x86_64                                                                                                1/1
  Verifying  : libaio-0.3.107-10.el6.x86_64                                                                                                1/1

Installed:
  libaio.x86_64 0:0.3.107-10.el6                                                                                                              

Complete!
root@HOST Disk1# rpm -ivh oracle-xe-11.2.0-1.0.x86_64.rpm
Preparing...                                                          ########################################### [100%]
   1:oracle-xe                                                        ########################################### [100%]
Executing post-install steps...
You must run '/etc/init.d/oracle-xe configure' as the root user to configure the database.

root@HOST Disk1# /etc/init.d/oracle-xe configure

Oracle Database 11g Express Edition Configuration
-------------------------------------------------
This will configure on-boot properties of Oracle Database 11g 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]:8081

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 11g Express Edition to be started on boot (y/n) [y]:

Starting Oracle Net Listener...Done
Configuring database...
Done
Starting Oracle Database 11g Express Edition instance...Done
Installation completed successfully.
root@HOST Disk1#
root@HOST Disk1# service oracle-xe status

LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 19-NOV-2013 22:39:12

Copyright (c) 1991, 2011, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date                19-NOV-2013 22:35:20
Uptime                    0 days 0 hr. 3 min. 52 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Default Service           XE
Listener Parameter File   /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/HOST/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=8081))(Presentation=HTTP)(Session=RAW))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "XE" has 1 instance(s).
  Instance "XE", status READY, has 1 handler(s) for this service...
Service "XEXDB" has 1 instance(s).
  Instance "XE", status READY, has 1 handler(s) for this service...
The command completed successfully
root@HOST Disk1# su - oracle
-bash-4.1$ ps -ef | grep xe
oracle   28021     1  0 22:35 ?        00:00:00 /u01/app/oracle/product/11.2.0/xe/bin/tnslsnr LISTENER -inherit
oracle   29031     1  0 22:37 ?        00:00:00 xe_pmon_XE
oracle   29033     1  0 22:37 ?        00:00:00 xe_psp0_XE
oracle   29035     1  0 22:37 ?        00:00:00 xe_vktm_XE
oracle   29039     1  0 22:37 ?        00:00:00 xe_gen0_XE
oracle   29041     1  0 22:37 ?        00:00:00 xe_diag_XE
oracle   29043     1  0 22:37 ?        00:00:00 xe_dbrm_XE
oracle   29045     1  0 22:37 ?        00:00:00 xe_dia0_XE
oracle   29047     1  0 22:37 ?        00:00:00 xe_mman_XE
oracle   29049     1  0 22:37 ?        00:00:00 xe_dbw0_XE
oracle   29051     1  0 22:37 ?        00:00:00 xe_lgwr_XE
oracle   29053     1  0 22:37 ?        00:00:00 xe_ckpt_XE
oracle   29055     1  0 22:37 ?        00:00:00 xe_smon_XE
oracle   29057     1  0 22:37 ?        00:00:00 xe_reco_XE
oracle   29059     1  0 22:37 ?        00:00:00 xe_mmon_XE
oracle   29061     1  0 22:37 ?        00:00:00 xe_mmnl_XE
oracle   29063     1  0 22:37 ?        00:00:00 xe_d000_XE
oracle   29065     1  0 22:37 ?        00:00:00 xe_s000_XE
oracle   29067     1  0 22:37 ?        00:00:00 xe_s001_XE
oracle   29069     1  0 22:37 ?        00:00:00 xe_s002_XE
oracle   29071     1  0 22:37 ?        00:00:00 xe_s003_XE
oracle   29182     1  0 22:37 ?        00:00:00 xe_vkrm_XE
oracle   29184     1  0 22:37 ?        00:00:00 xe_qmnc_XE
oracle   29198     1  0 22:37 ?        00:00:00 xe_cjq0_XE
oracle   29232     1  0 22:37 ?        00:00:00 xe_q000_XE
oracle   29234     1  0 22:37 ?        00:00:00 xe_q001_XE
oracle   29282 29253  0 22:39 pts/1    00:00:00 grep xe
-bash-4.1$ exit
logout

No comments:

Post a Comment