- Oracle database 11g ��� linux
- Topics
- Viewing Screenshots
- Overview
- Installing Oracle Database 11g on Linux
- Testing Your Installation
- How I Simplified Oracle Database Installation on Oracle Linux 5
- Introducing the oracle-validated RPM for Oracle Linux
- Installing the oracle-validated RPM
- Final Thoughts
- See Also
- About the Author
Oracle database 11g ��� linux
In this tutorial, you learn how to install Oracle Database 11g on Linux.
Note: This OBE was tested on production software however some of the screenshots may still refer to the beta software.
Topics
This tutorial covers the following topics:
Overview | ||
Installing Oracle Database 11g on Linux | ||
Testing Your Installation | ||
Summary |
Viewing Screenshots
Place the cursor over this icon to load and view all the screenshots for this tutorial. (Caution: This action loads all screenshots simultaneously, so response time may be slow depending on your Internet connection.)
Note: Alternatively, you can place the cursor over an individual icon in the following steps to load and view only the screenshot associated with that step. You can hide an individual screenshot by clicking it.
Overview
Using the Oracle Universal Installer, you install the Oracle Database 11g software and create a database.
Installing Oracle Database 11g on Linux
To install the Oracle software, you must use the Oracle Universal installer.
For this installation, you need either the DVDs or a downloaded version of the DVDs. In this tutorial, you install from the downloaded version. From the directory where the DVD files were unzipped, open a terminal window and enter the following:
The product you want to install is Oracle Database 11g. Make sure the product is selected and click Next.
You will perform a basic installation with a starter database. Enter orcl for the Global Database Name and oracle for Database Password and Confirm Password. Then, click Next.
You need to specify your Inventory directory. The location should be set to /u01/app/oracle/oraInventory. Accept the default Operating System group name, oinstall. Then, click Next.
The installer now verifies that the system meets all the minimum requirements for installing and configuring the chosen product. Please correct any reported errors before continuing. When the check successfully completes, click Next.
Oracle Configuration Manager allows you to associate your configuration information with your Metalink account. You can choose to enable it on this window. Then, click Next.
Review the Summary window to verify what is to be installed. Then, click Install.
The progress window appears.
The Configuration Assistants window appears.
Your database is now being created.
When the database has been created, you can unlock the users you want to use. Click OK.
You need to execute orainstRoot.sh and root.sh as the root user.
Open a terminal window and enter the following commands. Follow the prompts as instructed.
Switch back to the Universal Installer and click OK.
Click Exit. Click Yes to confirm exit.
Testing Your Installation
To test that your installation completed successfully, perform the following steps:
Open a browser and enter the following URL:
https:// :1158/em
where hostname > should be changed to your machine name, IP address, or localhost.
Because Enterprise Manager Database Control is a secure site, you need a certificate. Select the Accept this certificate permanently option, and then click OK.
Enter system as the User Name and oracle as the Password, and then click Login.
The Database Control Home Page appears. Your installation was successful.
Summary
In this tutorial, you learned how to install and test the Oracle Database 11g installation on Linux.
Источник
How I Simplified Oracle Database Installation on Oracle Linux 5
by Ginny Henningsen
Published September 2011
Ginny Henningsen simplifies the installation of Oracle Database 11g by automatically preconfiguring Oracle Linux with the required software packages and correct kernel parameters.
Introducing the oracle-validated RPM for Oracle Linux
Note: This article applies to Oracle Linux 5. A subsequent article, «How I Simplified Oracle Database 11g and 12c Installation on Oracle Linux 6,» covers performing a similar task on versions of Oracle Linux 6.
Before installing Oracle Database 10g or 11g on a system, you need to preconfigure the operating environment since the database requires certain software packages, package versions, and tweaks to kernel parameters. (Be sure to review the appropriate Oracle Database installation guide to familiarize yourself with hardware, software, and operating system requirements.) On Oracle Linux, I discovered that there is a remarkably easy way to address these installation prerequisites: First install an RPM package called oracle-validated . This RPM performs a number of preconfiguration steps, including:
- Causing the download and installation of various software packages and specific versions needed for database installation, with package dependencies resolved via yum or up2date capabilities
- Creating the user oracle and the groups oinstall and dba , which are used during database installation
- Modifying kernel parameters in /etc/sysctl.conf to change settings for shared memory, semaphores, the maximum number of file descriptors, and so on
- Setting hard and soft shell resource limits in /etc/security/limits.conf , such as the locked-in memory address space, the number of open files, the number of processes, and core file size
- Setting numa=off in the kernel for x86_64 machines
Note that oracle-validated parses the existing /etc/sysctl.conf and /etc/security/limits.conf files and updates values only as needed for database installation. Any precustomized settings not related to database installation are left as is.
The oracle-validated RPM package is accessible through the Oracle Unbreakable Linux Network (ULN, which requires a support contract), from the Oracle Linux distribution media, or from the Oracle public yum repository. Thus, whether or not your system is registered with ULN to access Oracle patches and support, you can use oracle-validated to simplify database installation on Oracle Linux. Keep in mind, however, that the Oracle public yum repository is not updated with security updates and bug fixes, so the best way to maintain up-to-date and secure systems is with a ULN subscription.
Installing the oracle-validated RPM
The remainder of this article steps through the procedure that I used for installing oracle-validated on Oracle Linux via the Oracle public yum repository. I started with a system running Oracle Linux Release 5 Update 7 for x86_64, a 64-bit version of Oracle Linux that I downloaded from the Oracle software delivery cloud (requires registration or login). First, I set up a yum configuration file that pointed to the correct repository, and then I installed the oracle-validated RPM from that repository.
Here are the steps for preconfiguring a system for Oracle Database installation using oracle-validated :
- 1. As an authorized user (for example, root ), retrieve the file that configures repository locations:
Listing 1 is an excerpt of public-yum-el5.repo with the changed line in boldface.
Listing 1. Excerpt of public-yum-el5.repo file.
Because the target system is running Oracle Linux Release 5 Update 7 for x86_64, there is one repository to enable, [ol5_u7_base] . For some distributions that include the Oracle Unbreakable Enterprise Kernel (specifically Oracle Linux 5.5 and 5.6), the repository [el5_addons] is also needed to resolve a dependency for kernel-uek-headers .
3. Next, install the oracle-validated RPM using the yum install command.
The output in Listing 2 shows how the installation checks dependencies and then downloads and installs the required packages.
Listing 2. Installing the oracle-validated RPM.
The yum installation logs messages about kernel changes in the file /var/log/oracle-validated/results/orakernel.log , and it makes backups of current system settings in the directory /var/log/oracle-validated/backup .
4. At this point, the system is ready for the installation of Oracle Database. For example, to install Oracle Database 11g Release 2, follow the directions in Chapter 4, Installing Oracle Database, of the Database Installation Guide for Linux.
The directions instruct you to do the following:
- a. As root , create a parent directory in a file system that has sufficient space to be the target location for the downloaded files:
The amount of disk space needed in the file system varies according to the specific installation type, but roughly twice the size of the zip archives, or 5 GB, is enough to house the software and data files.
The Oracle Universal Installer performs a number of checks, verifying that the necessary OS packages and versions are installed. In addition, it checks kernel parameters set by the oracle-validated installation. During the kernel settings check, the Installer might flag a few settings as «failed,» and you should investigate these failures. In some cases, you still might be able to continue with the database installation. If you check kernel settings in /etc/sysctl.conf , you’ll see that oracle-validated recommends different settings for Oracle Database 10g than for Oracle Database 11g. If necessary, you can (as root ) edit the file /etc/sysctl.conf to specify a setting manually, for example:
The Oracle Universal Installer performs additional checks, such as verifying the glibc version, sufficient disk space, environmental variable and path settings, and sufficient physical memory and swap space. Generally, installing oracle-validated takes care of the prerequisites so that you can proceed directly with installing the database.
Final Thoughts
Installing the oracle-validated RPM can save time when installing Oracle Database 10g or 11g on Oracle Linux. The RPM addresses most Oracle Database installation prerequisites and greatly simplifies the installation process.
See Also
Here are the resources referenced earlier in this document:
And here are some additional resources from the Oracle Database Documentation Library (http://docs.oracle.com/cd/E11882_01/index.htm). Relevant subsections from the Oracle Database Installation Guide 11g Release 2 (11.2) for Linux with currently valid URLs are as follows:
Also see these related blog entries:
About the Author
Ginny Henningsen has worked for the last 15 years as a freelance writer developing technical collateral and documentation for high-tech companies. Prior to that, Ginny worked for Sun Microsystems, Inc. as a Systems Engineer in King of Prussia, PA and Milwaukee, WI. Ginny has a BA from Carnegie-Mellon University and a MSCS from Villanova University.
Источник