10g Installation on RHEL-5 and iSQL Plus

October 12, 2017 | Author: G.R.THIYAGU ; Oracle DBA | Category: Oracle Database, Sql, Databases, Linux, Web Application
Share Embed Donate


Short Description

Download 10g Installation on RHEL-5 and iSQL Plus...

Description

Oracle 10g Installation on Redhat Enterprise Linux | RHEL - 5 Oracle 10g (R2) on Redhat Enterprise Linux 5 This document prepared just for informative and learning purposes for beginners. This is based on a server installation with a minimum of 2G swap. #



root and $  oracle_user, vi /etc/selinux/config SELINUX = disabled

Oracle 10g Installation Requirements Following Package and Groups should be Installed  GNOME Desktop Environment  Editors  Graphical Internet  Text-based Internet  Development Libraries  Development Tools  Legacy Software Development  Server Configuration Tools  Development Tools  Legacy Software Support  Administration Tools  System Tools  X Window System Should add the package 'sysstat' by clicking on the Details link and selecting "sysstat”. Alternative installations may require more packages to be loaded. Before Installing Just check what is in the file # vi /etc/redhat-release or # cat /etc/issue Replace the release Information (RedHat Enterprise Linux Server release 5 (Tikanga)) to redhat -4. Successful People in life seem to like LINUX

Page 1 of 15

Oracle 10g Installation on Redhat Enterprise Linux | RHEL - 5 Unpack Oracle Software # unzip 10201_database_linux32.zip Moved the Unzip file somewhere else where oracle user can access and begin installation as follows. I moved database to /u01 . # mv -f database/ /u01/ Commands to find ( Memory , Swap, temp)  To determine RAM size # grep MemTotal /proc/meminfo  To determine the size of the swap space, # grep SwapTotal /proc/meminfo  To determine the available RAM and swap space, # free  To determine the space available in the /tmp dir, # df -h /tmp , # df /tmp At least Minimum Hardware Requirements  Minimum 1 GB RAM (RECOMENDED).  Minimum 1.5 GB of Swap space.  Minimum 500 MB to 1000 MB disk space in the /tmp directory.  Minimum 2 - 4 GB disk space for the Oracle software Oracle Requirement for Swap space RAM SIZE

SWAP SPACE REQUIRED

Between 1 GB and 2 GB

Double size of the RAM

Between 2 GB and 8 GB

Equal to the size of the RAM

More than 8 GB

.75 times the size of the ram

Configuring the Linux Kernel Parameters To see all kernel parameters # sysctl -a Successful People in life seem to like LINUX

Page 2 of 15

Oracle 10g Installation on Redhat Enterprise Linux | RHEL - 5 Oracle 10g Required Kernel Parameter Settings In this location "/etc/sysctl.conf" file kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 # semaphores: semmsl, semmns, semopm, semmni kernel.sem = 250 32000 100 128 fs.file-max = 65536 net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default=262144 net.core.rmem_max=262144 net.core.wmem_default=262144 net.core.wmem_max=262144 Run the following command ; to set the current kernel parameters. /sbin/sysctl -p Increase the shell limits /etc/security/limits.conf *

soft nproc 2047

*

hard nproc 16384

*

soft nofile 1024

*

hard nofile 65536

Add the line below in “/etc/pam.d/login “ file: session required pam_limits.so

Successful People in life seem to like LINUX

Page 3 of 15

Oracle 10g Installation on Redhat Enterprise Linux | RHEL - 5 Installing Required Packages The Oracle Universal Installer (OUI) performs checks our machine during installation to verify that it meets the appropriate OS package requirements. We have to verify and install all packages (RPMs) required by Oracle Database 10g. An easier method is to run the #rpm -Uvh

.

Required Packages for Oracle 10g R2 on the i386 (32-bit). Login as “root” user and execute package installation command on terminal. Check appropriate disc (If more than one disc) - to set required packages. # cd /media/cdrom/Redhat/RPMS # rpm -Uvh setarch-2* # rpm -Uvh make-3* # rpm -Uvh glibc-2* # rpm -Uvh libaio-0* # rpm -Uvh compat-libstdc++-33-3* # rpm -Uvh compat-gcc-34-3* # rpm -Uvh compat-gcc-34-c++-3* # rpm -Uvh gcc-4* # rpm -Uvh libXp-1* # rpm -Uvh openmotif-2* # rpm -Uvh compat-db-4* # cd / eject It is possible to query each individual package to determine which ones are missing and need to be installed , Check the following command. Successful People in life seem to like LINUX

Page 4 of 15

Oracle 10g Installation on Redhat Enterprise Linux | RHEL - 5 Checking whether all RPM's are Installed or not # rpm -qa | grep setarch-2* # rpm -qa | grep make-3* # rpm -qa | grep glibc-2* # rpm -qa | grep libaio-0* # rpm -qa | grep compat-libstdc++-33-3* # rpm -qa | grep compat-gcc-34-3* # rpm -qa | grep compat-gcc-34-c++-3* # rpm -qa | grep gcc-4* # rpm -qa | grep openmotif-2* # rpm -qa | grep compat-db-4* # rpm -qa | grep libXp-1* Create the new groups for oracle user # groupadd oinstall # groupadd dba # groupadd oper  (optional) # useradd -g oinstall -G dba oracle # passwd oracle Create the directories , Oracle software will be installed. # mkdir -p /u01/app/oracle/product/10.2.0/db_1 # chown -R oracle.oinstall /u01 # chmod -R 775 /u01/app/oracle/ # xhost +  Xhost is server access control program for X.  xhost + means is Access is granted to everyone. Successful People in life seem to like LINUX

Page 5 of 15

Oracle 10g Installation on Redhat Enterprise Linux | RHEL - 5 To set the environment variables for oracle user $ su - oracle $ vi .bash_profile # Oracle Settings TMP=/tmp; export TMP TMPDIR=$TMP; export TMPDIR ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME ORACLE_SID=TSH1; export ORACLE_SID ORACLE_TERM=xterm; export ORACLE_TERM PATH=/usr/sbin:$PATH; export PATH PATH=$ORACLE_HOME/bin:$PATH; export PATH LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbm s/jlib; export CLASSPATH #LD_ASSUME_KERNEL=2.4.1; export LD_ASSUME_KERNEL if [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi Successful People in life seem to like LINUX

Page 6 of 15

Oracle 10g Installation on Redhat Enterprise Linux | RHEL - 5 Run bash_profile as Oracle user $ . . bash_profile After saving .bash_profile file check it $ su - oracle $ echo $TMP $ echo $TMPDIR $ echo $ORACLE_HOSTNAME $ echo $ORACLE_BASE $ echo $ORACLE_HOME $ echo $ORACLE_SID $ echo $PATH Installing Oracle Database 10g on Linux $ su - oracle $ cd /u01/database $ ./runInstaller Start the Oracle Universal Installer (OUI)

by Issuing the ./runInstaller

command in the database directory as $ oracle. Proceed with user friendly installation from rapiz wizard. Good Lock

..

Installation of Oracle Database 10g completed successfully! Congratulations! Now reboot the server and login as oracle user and start DATABASE creation. OS “oracle” user account created which owns the Oracle Software.

- That’s it !! Successful People in life seem to like LINUX

Page 7 of 15

Oracle 10g Installation on Redhat Enterprise Linux | RHEL - 5 POINTS TO REMEMBER : If packages are not installed , use the rpm command with -i option install. If anyone wants to upgrade it to the new version, use -U option  Upgrade.  # rpm -ivh setarch-1* and # rpm -Uvh setarch-1* To improve the performance of the software on

Linux systems, should

increase shell limits for the oracle user In limits.conf file . Here , “nproc" is the max no of processes available to the user and "nofiles" is the no of open file descriptors. Finally make sure that there is an entry in /etc/hosts file for your machine like IP

HOSTNAME.DOMAIN

ALIAS

127.0.0.1 192.168.2.15

localhost.localdomain rhel5.linuxserver

localdomain rhelserv

Machine gets started, it will need to know the mapping of some hostnames to IP addresses before DNS can be referenced. This mapping is kept in

the /etc/hosts file. Environment Variable Setup for linux # echo $dispaly # echo env | more or env The string 0.0 identifies a server number and an optional screen number. In $ DISPLAY=localhost:0.0 ; export DISPLAY 0.0 refers to screen zero , on server 0 on the current system. 3.1 would be screen 1 on server three on system "anothermachine".

Successful People in life seem to like LINUX

Page 8 of 15

Oracle 10g Installation on Redhat Enterprise Linux | RHEL - 5 xhost

-

Server access control program for X.

The xhost program is used to add and delete host (computer) names (user names) to the list of machines and users are allowed to make connections to the X server. If access control is enabled ; xhost Access control enabled , only authorized clients can connect

If access control is disabled ; xhost Access control disabled, clients can connect from any host

To disable the access control ; xhost + Allows any host to access X Server.

To enable the access control ; xhost only authorized clients/hosts are allowed.

xhost + hostname Adds hostname to X server access control list. xhost - hostname Removes hostname from X server access control list.

Successful People in life seem to like LINUX

Page 9 of 15

Oracle 10g Installation on Redhat Enterprise Linux | RHEL - 5 Browser based tools in Oracle 10g Oracle 10g comes with two browser-operated database administration features namely Enterprise Manager and iSQL*PLUS. These are automatically installed during Oracle 10g installation. ISQL*Plus iSQL*Plus is a component of the SQL*Plus product. It is a web-based utility similar to the SQL*Plus command line utility for executing SQL and PL/SQL commands. It means a browser-based interface to SQL*Plus. iSQL*Plus is used to write SQL and PL/SQL commands to ,  Enter, edit, run and save SQL commands and PL/SQL blocks.  Calculate, and print query results.  List column definitions for any table.  Access and copy data between databases.  Perform database administration. To Start/Stop iSQL*Plus  $ isqlplusctl start  $ /u01/app/oracle/product/10.2.0/db_1/bin/isqlplusctl start  $ isqlplusctl stop We can invoke iSQL*Plus as a normal user, or with SYSDBA or SYSOPER privileges. When connecting iSQL*Plus to use connect identifier (specifying for which database we want to connect it ). Successful People in life seem to like LINUX

Page 10 of 15

Oracle 10g Installation on Redhat Enterprise Linux | RHEL - 5 Let’s check iSQL*Plus Login Screen Who wants to connect to oracle database via iSQL*Plus

should need a

username and password that identifies as an authorized user. Who wants to connect as sysdba in iSQL*Plus  http://localhost:port/isqlplusdba  Only for sysdba  http://localhost:port/isqlplus  Normal users like scott , hr etc .. Example URLS  SQL*Plus URL  (Normal users)  http://rhel5.myserver:5560/isqlplus  iSQL*Plus DBA URL:  (SYSDBA)  http://rhel5.myserver:5560/isqlplus/dba ISQL*Plus LOGIN PAGE

Successful People in life seem to like LINUX

Page 11 of 15

Oracle 10g Installation on Redhat Enterprise Linux | RHEL - 5 Example for DML Operations in iSQL*Plus

The iSQL*Plus Work Screen

Successful People in life seem to like LINUX

Page 12 of 15

Oracle 10g Installation on Redhat Enterprise Linux | RHEL - 5 iSQL*PLUS Navigations There are number of ways to navigate in iSQL*Plus (Preferences, icons Help, Tabs, Menus, Footerlinks, Logout,) etc ..

Password Changing Screen

Successful People in life seem to like LINUX

Page 13 of 15

Oracle 10g Installation on Redhat Enterprise Linux | RHEL - 5 Starting iSQL*Plus $ isqlplusctl start iSQL*Plus 10.2.0.4.0 Copyright (c) 2003, 2005, Oracle. All rights reserved. Starting iSQL*Plus ... iSQL*Plus started. I don’t know how to find iSQL*Plus URL .. How Can I get it ? The iSQL*Plus URL looks like http://machine_name.domain:port/isqlplus http://oel.linuxserver:5560/isqlplus/ http://myserver:5560/isqlplus/ Enter the iSQL*Plus URL in web browser's Location or Address field POINTS TO NOTE iSQL*Plus uses HTTP port 5560 by default. If iSQL*Plus is not available on port 5560, read the $ORACLE_HOME/install/portlist.ini file on the computer running the iSQL*Plus Application Server to find the port on which iSQL*Plus is running. POINTS TO REMEMBER Oracle decided to desupport

iSQL*Plus with the Oracle 11g

release. Users should migrate to SQL Developer instead. Successful People in life seem to like LINUX

Page 14 of 15

Oracle 10g Installation on Redhat Enterprise Linux | RHEL - 5 Installing SQL*Plus Instant Client SQL*Plus is a command line interface to the Oracle Database. SQL*Plus allows to define and manipulate data in oracle database. SQL*Plus is a basic oracle database utility used by Admins/Developers. SQL*Plus recognizes SQL commands and sends these commands to Oracle server for execution. SQL*PLUS OPERATIONS Listing definations of tables. Accessing and transferring data between databases. Execution of SQL commands (Editing/Saving/Loading) and PLSQL blocks. Formatting, saving, printing, calculations on the results of a query in the form of reports. Functions for Oracle database managing like users administration, tablespaces, operations management of archiving and recovery. To Install SQL*Plus Instant Client, we need two Packages: 1 ) SQL*Plus Instant Client package. 2 ) Basic OCI Instant Client package.

(or)

3) The lightweight OCI Instant Client Package.

Please refer Oracle official documents to get more information .

Successful People in life seem to like LINUX

Page 15 of 15

View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF