Oracle 11g (Unix)/SQL 2008 (XP) Installation guide Installing Oracle 11g on UNIX Pre-installation requirements and configurations Hardware Requirements At least 1 GB of RAM If RAM between 1GB -2GB swap space should be 1.5 times the size of RAM. If RAM between 2GB – 16GB swap space should be equal to the size of RAM If RAM more than 16GB swap space should be 16GB. The size of the shared memory should be at least the greater of MEMORY_MAX_TARGET and MEMORY_TARGET Processor Type x86 or x86_x64 for each Oracle instance on the computer. At least 1 GB of disk space in the /tmp Enterprise Edition (x86) - 3.95GB Hard Disk Space for Software Files directory Standard Edition (x86) - 3.88GB Hard Disk Space for Software Files Enterprise Edition (x86) - 1.7GB Hard Disk Space for Data Files Standard Edition (x86) - 1.5GB Hard Disk Space for Data Files Enterprise Edition (x86_x64) - 4.35GB Hard Disk Space for Software Files Standard Edition (x86_x64) - 3.73GB Hard Disk Space for Software Files Enterprise Edition (x86_x64) - 1.68GB Hard Disk Space for Data Files Standard Edition (x86_x64) - 1.48GB Hard Disk Space for Data Files The minimum display requirement- resolution of 1024 x 768 or higher
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
� Recommended Hardware Requirement for SQL Developer
Software Requirements
Operating System requirement
� Asianux 2.0� Asianux 3.0� Oracle Enterprise Linux 4.0 Update 7 or later� Oracle Enterprise Linux 5.0� Red Hat Enterprise Linux 4.0 Update 7 or later� Red Hat Enterprise Linux 5.0� SUSE Linux Enterprise Server 10.0� SUSE Linux Enterprise Server 11.0
Kernel Requirement
� On Asianux 2.0, Oracle Enterprise Linux 4.0, and Red Hat Enterprise Linux 4.0:
2.6.9 Or later
� On Asianux 3.0, Oracle Enterprise Linux 5.0, and Red Hat Enterprise Linux 5.0:
2.6.18 or later
� On SUSE Linux Enterprise Server 10:
2.6.16.21 or later
� On SUSE Linux Enterprise Server 11:
2.6.27.19 or later
CPU Type and Speed Pentium IV 2 GHz or faster
Java SDK JDK 5.0 Update 6 or later for Linux
Memory 1 GB RAM
Display 65536 colors, set to at least 1024 X 768 resolution
Operating System RequirementAsianux 2.0, Oracle Enterprise Linux 4.0, and Red Hat Enterprise Linux 4.0
The following packages (or later versions) must be installed:binutils-2.15.92.0.2compat-libstdc++-33.2.3elfutils-libelf-0.97elfutils-libelf-devel-0.97gcc-3.4.6gcc-c++-3.4.6glibc-2.3.4-2.41glibc-common-2.3.4glibc-devel-2.3.4glibc-headers-2.3.4libaio-devel-0.3.105libaio-0.3.105libgcc-3.4.6libstdc++-3.4.6libstdc++-devel-3.4.6make-3.80pdksh-5.2.14sysstat-5.0.5unixODBC-2.2.11unixODBC-devel-2.2.11
Asianux 3.0, Oracle Enterprise Linux 5.0, and Red Hat Enterprise Linux 5.0
The following packages (or later versions) must be installed:binutils-2.17.50.0.6compat-libstdc++-33-3.2.3elfutils-libelf-0.125elfutils-libelf-devel-0.125elfutils-libelf-devel-static-0.125gcc-4.1.2gcc-c++-4.1.2glibc-2.5-24glibc-common-2.5glibc-devel-2.5glibc-headers-2.5kernel-headers-2.6.18ksh-20060214libaio-0.3.106libaio-devel-0.3.106libgcc-4.1.2
Operating System Requirementlibgomp-4.1.2libstdc++-4.1.2libstdc++-devel-4.1.2make-3.81sysstat-7.0.2unixODBC-2.2.11unixODBC-devel-2.2.11
SUSE Linux Enterprise Server 10 The following packages (or later versions) must be installed:binutils-2.16.91.0.5compat-libstdc++-5.0.7gcc-4.1.2gcc-c++-4.1.2glibc-2.5-24glibc-devel-2.4ksh-93r-12.9libaio-0.3.104libaio-devel-0.3.104libelf-0.8.5libgcc-4.1.2libstdc++-4.1.2libstdc++-devel-4.1.2make-3.80sysstat-8.0.4
SUSE Linux Enterprise Server 11 The following packages (or later versions) must be installed:binutils-2.19gcc-4.3gcc-c++-4.3glibc-2.9glibc-devel-2.9ksh-93tlibstdc++33-3.3.3libstdc++43-4.3.3_20081022libstdc++43-devel-4.3.3_20081022libaio-0.3.104libaio-devel-0.3.104libgcc43-4.3.3_20081022libstdc++-devel-4.3make-3.81sysstat-8.1.5
Operating System RequirementAsianux 2.0, Oracle Enterprise Linux 4.0, and Red Hat Enterprise Linux 4.0
The following packages (or later versions) must be installed:binutils-2.15.92.0.2compat-libstdc++-33-3.2.3compat-libstdc++-33-3.2.3 (32 bit)elfutils-libelf-0.97elfutils-libelf-devel-0.97expat-1.95.7gcc-3.4.6gcc-c++-3.4.6glibc-2.3.4-2.41glibc-2.3.4-2.41 (32 bit)glibc-common-2.3.4glibc-devel-2.3.4glibc-headers-2.3.4libaio-0.3.105libaio-0.3.105 (32 bit)libaio-devel-0.3.105libaio-devel-0.3.105 (32 bit)libgcc-3.4.6libgcc-3.4.6 (32-bit)libstdc++-3.4.6libstdc++-3.4.6 (32 bit)libstdc++-devel 3.4.6make-3.80pdksh-5.2.14sysstat-5.0.5unixODBC-2.2.11unixODBC-2.2.11 (32 bit)unixODBC-devel-2.2.11unixODBC-devel-2.2.11 (32 bit)
Asianux 3.0, Oracle Enterprise Linux 5.0, and Red Hat Enterprise Linux 5.0
The following packages (or later versions) must be installed:binutils-2.17.50.0.6compat-libstdc++-33-3.2.3compat-libstdc++-33-3.2.3 (32 bit)elfutils-libelf-0.125elfutils-libelf-devel-0.125gcc-4.1.2gcc-c++-4.1.2glibc-2.5-24glibc-2.5-24 (32 bit)
SUSE Linux Enterprise Server 10 The following packages (or later versions) must be installed:binutils-2.16.91.0.5compat-libstdc++-5.0.7gcc-4.1.0gcc-c++-4.1.2glibc-2.5-24glibc-devel-2.4glibc-devel-32bit-2.4ksh-93r-12.9libaio-0.3.104libaio-32bit-0.3.104libaio-devel-0.3.104libaio-devel-32bit-0.3.104libelf-0.8.5libgcc-4.1.2libstdc++-4.1.2libstdc++-devel-4.1.2make-3.80sysstat-8.0.4
SUSE Linux Enterprise Server 11 The following packages (or later versions) must be installed:binutils-2.19
Operating System Requirementgcc-4.3gcc-32bit-4.3gcc-c++-4.3glibc-2.9glibc-32bit-2.9glibc-devel-2.9glibc-devel-32bit-2.9ksh-93tlibaio-0.3.104libaio-32bit-0.3.104libaio-devel-0.3.104libaio-devel-32bit-0.3.104libstdc++33-3.3.3libstdc++33-32bit-3.3.3libstdc++43-4.3.3_20081022libstdc++43-32bit-4.3.3_20081022libstdc++43-devel-4.3.3_20081022libstdc++43-devel-32bit-4.3.3_20081022libgcc43-4.3.3_20081022libstdc++-devel-4.3make-3.81sysstat-8.1.5
Compiler Requirements
Intel C++ Compiler 10.1 or later and the version of GNU C and C++ compilers listed under "Package Requirements"
Depending on the components you want to use, you must ensure that the following software are installed:
are supported with Pro*C/C++, Oracle Call Interface, Oracle C++ Call Interface, and Additional Software Requirements
Web browsers must support Java Script, and the HTML 4.0 and CSS 1.0 standards. The following browsers meet these requirements for Oracle Enterprise Manager Database Control:
� Netscape Navigator 8.1� Netscape Navigator 9.0� Microsoft Internet Explorer 6.0 SP2� Microsoft Internet Explorer 7.0� Microsoft Internet Explorer 7.0 SP1� Microsoft Internet Explorer 8.0� Firefox 2.0� Firefox 3.0.7� Safari 3.0.4� Safari 3.1� Safari 3.2
Preinstallation Requirement for
If you want to install Oracle Database Vault, then set the
Oracle Database Vault
DB_BLOCK_SIZE initialization parameter to 4096 or larger. If the value is less than 4096, then you cannot change it. The only way to change the DB_BLOCK_SIZE
Configuration
value is by recreating the database.
To determine the RAM size, enter the following command:
# grep MemTotal /proc/meminfo
To determine the size of the configured swap space, enter the following command:
Install required packagers mentions in packager requirements using YUM command or RPM .if you using yum following commands install the particular libraries.
Ex: yum install <package name>
I used following shell script to install all the packages at once.
if you install oracle on fedora newest versions The release information in /etc/redhat-release is incorrect as far as the Oracle installer is concerned. It knows nothing about Fedora but does know about Red Hat. Therefore the release string needs to be modified as follows:
Next OUI checks that the installed software development and runtime packages are correct:
Some Fedora versions will fail all these checks. Just tick the check box Ignore All on the top right hand to ignore these errors. So long as you have the latest version of each of these packages installed, all will be fine. you do not need to install pdksh if you have ksh installed. Then click next.
Then installation wizard displays summary of the installation you are going to do. Best practice
During the installation, OUI will popup a dialog window advising you that an error has occurredwith ins_emagent.mk. See below:
This error is due to a change to GCC linker which first occurred in Fedora 13. The fix is to edit $ORACLE_HOME/sysman/lib/ins_emagent.mk, search for the line$(MK_EMAGENT_NMECTL) and replace the line with $(MK_EMAGENT_NMECTL) -lnnz11 asShown below.
After saving the changed file, select the Retry option and the install should successfully continue. Eventually you should see the Database Configuration Assistant screen followed shortly by aPassword Management screen as shown below:
Do not ignore the Password Management button; press it and change the passwords for SYS andSYSTEM.
After this you will be asked to run two shell scripts as root.
Just open up a root terminal window and execute these shell scripts. One script installs three scripts, coraenv, oraenv and dbhome in /usr/local/bin (or another user-specified directory) and the other creates /etc/oratab.
At this stage the installer has finished installing the Oracle database and you can press the FinishButton. The Oracle database does not need to be started; it is already up and running.
After finishing your installation restart your computer. After reboot yourComputer you have to execute some commands.
STEP 01: Edit the /etc/oratab file
This file setting the restart flag for each instance to Y:
TNSLSNR for Linux: Version 11.2.0.1.0 - ProductionSystem parameter file is /app/oracle/product/11.2.0/dbhome_1/network/admin/listener.oraLog messages written to /app/oracle/diag/tnslsnr/ultra/listener/alert/log.xmlListening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ultra.localhost.com)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))STATUS of the LISTENER------------------------Alias LISTENERVersion TNSLSNR for Linux: Version 11.2.0.1.0 - ProductionStart Date 06-AUG-2010 20:47:58Uptime 0 days 0 hr. 0 min. 0 secTrace Level offSecurity ON: Local OS AuthenticationSNMP OFFListener Parameter File /app/oracle/product/11.2.0/dbhome_1/network/admin/listener.oraListener Log File /app/oracle/diag/tnslsnr/fedora13/listener/alert/log.xmlListening Endpoints Summary...
Starting Oracle Enterprise Manager 11g Database Control ...... started.------------------------------------------------------------------Logs are generated in directory /app/oracle/product/11.2.0/dbhome_1/ultra.localhost.com_orcl/sysman/log$
$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Fri Aug 6 20:50:12 2010
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startupORACLE instance started.
Total System Global Area 839282688 bytesFixed Size 2217992 bytesVariable Size 524290040 bytesDatabase Buffers 306184192 bytesRedo Buffers 6590464 bytesDatabase mounted.Database opened.SQL> exitDisconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing options$
By entering URL you can go to your database management console web page.
To display above window Database instance, listener and agent connection to instanceshould be up. It above mentions conditions are true, it will display above window. You mustenter user name and password to login to database console. It one of that above mentionrequirement are missing, it will display fallowing window. For login for management consoleyou must fulfill those requirements.
If you successfully authenticate, it will display fallowing window
Start and stop the Oracle sever using Script
To shutdown our oracle database server, we develop small bash shell script. ByExecuting this shell script we can stop and start our oracle server without entering anyCommands.
#!/bin/bash##Run-level Startup script for the Oracle Instance and Listener## chkconfig: 345 91 19# description: Startup/Shutdown Oracle listener and instanceORA_HOME="/u01/app/oracle/product/11.2.0/db_1"ORA_OWNR="oracle"# if the executables do not exist -- display errorif [ ! -f $ORA_HOME/bin/dbstart -o ! -d $ORA_HOME ]thenecho "Oracle startup: cannot start"exit 1fi# depending on parameter -- startup, shutdown, restart# of the instance and listener or usage displaycase "$1" instart)# Oracle listener and instance startupecho -n "Starting Oracle: "su - $ORA_OWNR -c "$ORA_HOME/bin/lsnrctl start"su - $ORA_OWNR -c $ORA_HOME/bin/dbstarttouch /var/lock/subsys/oracleecho "OK";;
We create a file call oracle inside the /etc/init.d and paste above script into this file and save. Then you have to access permission for this file. For that we execute Chmod 777 oracleCommand as a root user.
After saving this file execute Chconfig oracle command to updating the run levelInformation.
You can directly execute fallowing command to stop and run oracle
You can simply start your stopped db server by clicking on the Startup button. Then itWill prompt to enter the username and password for host and db credentials.
Then it will ask “Are you sure you want to perform this action?” say yes.
After successfully start the database browser window as follow…
Client-Server Configuration
In the Oracle client/server architecture, the database application and the database areSeparated into two parts: a front-end or client portion, and a back-end or server portion. TheClient executes the database application that accesses database information and interacts witha user through the keyboard, screen, and pointing device such as a mouse. The server executes the Oracle software and handles the functions required for concurrent, shared data access to an Oracle database.
Although the client application and Oracle can be executed on the same computer, itMay be more efficient and effective when the client portion(s) and server portion are executedBy different computers connected via a network.
At the each and every time we start our PC, we have to execute our listener again andAgain. For that you can use fallowing command to start the listener
$ lsnrctl start
Shared Server Listener
Only thing we need to configure is set the SERVER value as “shared”. Then this dbServer becomes shared server.
Dedicated Server Listener
If we set server value as “dedicated”, that server become dedicated server.