文档库 最新最全的文档下载
当前位置:文档库 › oracle 11g for linux 64 安装文档

oracle 11g for linux 64 安装文档

oracle 11g for linux 64 安装文档
oracle 11g for linux 64 安装文档

Oracle? Database

Quick Installation Guide

11g Release 2 (11.2)for Linux x86-64

E16768-06

June 2011

This guide describes how to quickly install Oracle Database 11g Release 2 (11.2) on

Linux x86-64 systems. It includes information about the following:

■Reviewing Information About This Guide

■Logging In to the System as root

■Checking the Hardware Requirements

■Checking the Software Requirements

■Creating Required Operating System Groups and Users

■Configuring Kernel Parameters

■Creating Required Directories

■Configuring the oracle User’s Environment

■Mounting the Product Disc

■Installing Oracle Database

■Installing Oracle Database Examples

■What to Do Next?

■Additional Information

■Documentation Accessibility

1Reviewing Information About This Guide

This guide describes how to install Oracle Database by using the default installation

options.

Tasks Described in This Guide

The procedures in this guide describe how to:

■Configure your system to support Oracle Database

■Install Oracle Database on a local file system by using the Typical Installation

option

■Configure a general-purpose Oracle Database installation that uses the local file

system for database file storage

Results of a Successful Installation

After you successfully install Oracle Database:

■The database that you created and the default Oracle Net listener process run on the system.

■Oracle Enterprise Manager Database Control run on the system and can be accessed by using a Web browser.

Tasks Not Described in This Guide

This guide covers the Typical Installation scenario and does not describe how to complete the following tasks:

■Using the Advanced Installation option to install the software

■Installing the software on a system that has an existing Oracle software installation ■Installing Oracle Clusterware and Oracle Real Application Clusters on a cluster

■Enabling Enterprise Manager e-mail notifications or automated backups

■Enabling core file creation

■Verifying UDP and TCP kernel parameters

■Using alternative storage options such as Oracle Automatic Storage Management ■Installing and configuring Oracle Grid Infrastructure

Where to Get Additional Installation Information

For more information about installing Oracle Database, including information about the tasks not described in this guide, refer to one of the following guides:

■If you want to install the software on a single system, then refer to Oracle Database Installation Guide for Linux.

■If you want to install Oracle Grid Infrastructure for a standalone server, then refer to the "Oracle Grid Infrastructure" chapter in Oracle Database Installation Guide for Linux.

■If you want to perform an Oracle Real Application Clusters installation, then refer to Oracle Grid Infrastructure Installation Guide for Linux and Oracle Real Application Clusters Installation Guide for Linux and UNIX. These guides describe how to install Oracle Clusterware and Oracle Real Application Clusters. Oracle Clusterware is a prerequisite for Oracle Real Application Clusters installations.

All these guides are available on the product disc. To access them, use a Web browser to open the welcome.htm file located in the top-level directory of the media. Platform-specific documentation is available in PDF and HTML formats in the Documentation section..

2Logging In to the System as root

Before you install the Oracle software, you must complete several tasks as the root user. To log in as the root user, complete one of the following procedures:

Note:You must install the software from an X Window System

workstation, an X terminal, or a PC or other system with X server

software installed

■Following are the steps for installing the software from an X Window System workstation or X terminal:

1.

Start a local terminal session, for example, an X terminal (xterm ).2.If you are not installing the software on the local system, then enter the

following command to enable the remote host to display X applications on the

local X server:

$ xhost fully_qualified_remote_host_name

For example:

$ xhost https://www.wendangku.net/doc/d02403889.html,

3.If you are not installing the software on the local system, then use the ssh ,

rlogin , or telnet command to connect to the system where you want to

install the software:

$ telnet fully_qualified_remote_host_name

4.If you are not logged in as the root user, then enter the following command

to switch user to root :

$ sudo sh

password:

#

■Following are the steps for installing the software from a PC or other system with X server software:

1.

Start the X server software.2.

Configure the security settings of the X server software to permit remote hosts to display X applications on the local system.3.

Connect to the remote system where you want to install the software and start a terminal session on that system, for example, an X terminal (xterm ).4.If you are not logged in as the root user on the remote system, then enter the

following command to switch user to root :

$ sudo sh

password:

#

3Checking the Hardware Requirements

The system must meet the following minimum hardware requirements:

Memory Requirements ■

System Architecture ■Disk Space Requirements

Note:If necessary, refer to your X server documentation for more

information about completing this procedure. Depending on the X

server software that you are using, you may need to complete the tasks

in a different order.

3.1Memory Requirements

The following are the memory requirements for installing Oracle Database 11g Release 2 (11.2):

■Minimum : 1 GB of RAM

Recommended : 2 GB of RAM or more

To determine the RAM size, enter the following command:

# grep MemTotal /proc/meminfo

If the size of the RAM is less than the required size, then you must install more memory before continuing.

■The following table describes the relationship between installed RAM and the configured swap space recommendation:

■To determine whether the system architecture can run the software, enter the following command:

# uname -m

To determine the size of the configured swap space, enter the following command:# grep SwapTotal /proc/meminfo

If necessary, refer to the operating system documentation for information about how to configure additional swap space.

To determine the available RAM and swap space, enter the following command:# free

Note:On Linux, the HugePages feature allocates non-swappable

memory for large page tables using memory-mapped files. If you

enable HugePages, then you should deduct the memory allocated to

HugePages from the available RAM before calculating swap space.

Available RAM

Swap Space Required Between 1 GB and 2 GB

1.5 times the size of the RAM Between 2 GB and 16 GB

Equal to the size of the RAM More than 16 GB

16 GB Note:This command displays the processor type. Verify that the

processor architecture matches the Oracle software release that you

want to install. If you do not see the expected output, then you cannot

install the software on this system.

Automatic Memory Management

Starting with Oracle Database 11g , the Automatic Memory Management feature

requires more shared memory (/dev/shm)and file descriptors. The shared memory should be sized to be at least the greater of MEMORY_MAX_TARGET and MEMORY_TARGET for each Oracle instance on that computer.

To determine the amount of shared memory available, enter the following command:# df -h /dev/shm/

3.2System Architecture

To determine whether the system architecture can run the software, enter the following command:

# uname -m

3.3Disk Space Requirements

The following are the disk space requirements for installing Oracle Database 11g Release 2 (11.2):

■At least 1 GB of disk space in the /tmp directory

To determine the amount of disk space available in the /tmp directory, enter the following command:

# df -h /tmp

If there is less than 1 GB of free disk space available in the /tmp directory, then complete one of the following steps:

■Delete unnecessary files from the /tmp directory to meet the disk space requirement.

IMPORTANT:

■Oracle recommends that you take multiple values for the available RAM and swap space before finalizing a value. This is because the

available RAM and swap space keep changing depending on the

user interactions with the computer.

Contact your operating system vendor for swap space allocation guidance for your server. The vendor guidelines supersede the

swap space requirements listed in this guide.Note:

MEMORY_MAX_TARGET and MEMORY_TARGET cannot be used

when LOCK_SGA is enabled or with HugePages on Linux.Note:This command displays the processor type. Verify that the

processor architecture matches the Oracle software release that you

want to install. If you do not see the expected output, then you cannot

install the software on this system.

■Set the TMP and TMPDIR environment variables when setting the oracle user’s environment.

■Extend the file system that contains the /tmp directory. If necessary, contact the system administrator for information about extending file systems.

■To determine the amount of free disk space on the system, enter the following command:

# df -h

■The following tables describe the disk space requirements for software files, and data files for each installation type on Linux x86-64:

Additional disk space, either on a file system or on an Oracle Automatic Storage

Management disk group is required for the fast recovery area if you choose to

configure automated backups.

4Checking the Software Requirements

Depending on the products that you intend to install, verify that the following

softwares are installed on the system.

Operating System Requirements ■

Kernel Requirements ■

Package Requirements ■

Compiler Requirements ■Additional Software Requirements

4.1Operating System Requirements

The following or later versions of the operating system are required for Oracle

Database 11g Release 2 (11.2):

See Also:

"Configuring the oracle User’s Environment" for more

information about setting TMP and TMPDIR Installation Type Requirement for Software Files (GB)

Enterprise Edition 4.35

Standard Edition

3.73Installation Type

Requirement for Data Files (GB)Enterprise Edition

1.68Standard Edition 1.48

Note:Oracle Universal Installer performs checks on the system to

verify that it meets the listed requirements. To ensure that these checks

pass, verify the requirements before you start Oracle Universal

Installer.

Asianux Server 3 SP2■

Oracle Linux 4 Update 7■

Oracle Linux 5 Update 2■

Oracle Linux 5 Update 5 (only if using Oracle Unbreakable Enterprise Kernel)■

Red Hat Enterprise Linux 4 Update 7■

Red Hat Enterprise Linux 5 Update 2■Red Hat Enterprise Linux 5 Update 5 (only if using Oracle Unbreakable Enterprise Kernel)

■SUSE Linux Enterprise Server 10 SP2

SUSE Linux Enterprise Server 11Starting with Oracle Database 11g Release 2 (11.2), the Security Enhanced Linux (SE Linux) feature is supported for Oracle Linux 4, Red Hat Enterprise Linux 4, Oracle Linux 5, and Red Hat Enterprise Linux 5.

To determine the distribution and version of Linux installed, enter the following

command:

# cat /proc/version

4.2Kernel Requirements

The following are the kernel requirements for Oracle Database 11g Release 2 (11.2):■On Oracle Linux 4 and Red Hat Enterprise Linux 4

2.6.9 or later

On Oracle Linux 5 Update 5 with the Unbreakable Enterprise Kernel for Linux Note:For Asianux Server, Oracle Linux, and Red Hat Enterprise

Linux, system requirements are identical by kernel version.

Specifically:

■Oracle Linux 4 and Red Hat Enterprise Linux 4 requirements are the same.

■Asianux Server 3, Oracle Linux 5, and Red Hat Enterprise Linux 5 requirements are the same.

Oracle Unbreakable Enterprise Kernel for Linux 5 Update 5 (2.6.32), available for x86-64 systems, contains several additional

features and performance enhancements not available either with

Oracle Linux or with other supported Linux distributions. This

kernel can be installed on either Oracle Linux or Red Hat

Enterprise Linux distributions. Before installing the Unbreakable

Enterprise Kernel, you must have Oracle Linux 5 Update 5 or

RHEL5 Update 5 installed on an x86-64 server.Note:Only the distributions and versions listed in the earlier list are

supported. Do not install the software on other versions of Linux.

2.6.32-100.0.19 or later

See Also: "About Oracle Unbreakable Enterprise Kernel for Linux" section in

Oracle Database Installation Guide for Linux

■On Red Hat Enterprise Linux 5 Update 5 with the Unbreakable Enterprise Kernel for Linux

2.6.32 or later

See Also: "About Oracle Unbreakable Enterprise Kernel for Linux" section in

Oracle Database Installation Guide for Linux

■On Oracle Linux 5 Update 2

2.6.18 or later (compatible with Red Hat Enterprise kernel)

■On Asianux Server 3, Oracle Linux 5 Update 2, and Red Hat Enterprise Linux 5 Update 2

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

To determine whether the required kernel is installed, enter the following command:

# uname -r

The following is a sample output displayed by running this command on an Oracle Linux 5.0 system:

2.6.18-128.el5PAE

In this example, the output shows the kernel version (2.6.18) and errata level

(-128.el5PAE) on the system.

If the kernel version does not meet the requirement specified earlier in this section, then contact the operating system vendor for information about obtaining and installing kernel updates.

4.3Package Requirements

The following are the list of packages required for Oracle Database 11g Release 2 (11.2):

The following or later version of packages for Oracle Linux 4 and Red Hat Enterprise Linux 4 should be installed:

binutils-2.15.92.0.2

compat-libstdc++-33-3.2.3

compat-libstdc++-33-3.2.3 (32 bit)

elfutils-libelf-0.97

elfutils-libelf-devel-0.97

expat-1.95.7

gcc-3.4.6

gcc-c++-3.4.6

glibc-2.3.4-2.41

glibc-2.3.4-2.41 (32 bit)

glibc-common-2.3.4

glibc-devel-2.3.4

glibc-headers-2.3.4

libaio-0.3.105

libaio-0.3.105 (32 bit)

libaio-devel-0.3.105

libaio-devel-0.3.105 (32 bit)

libgcc-3.4.6Note:

■Oracle recommends that you install your Linux operating system with the default software packages (RPMs), unless you

specifically intend to perform a minimal installation, and follow

the directions for performing such an installation to ensure that

you have all required packages for Oracle software.

■Oracle recommends that you do not customize RPMs during a default operating system installation. A default installation

includes most required packages, and will help you to limit

manual checks of package dependencies.

■If you did not perform a default Linux installation, you intend to use LDAP , and you want to use the scripts odisrvreg , oidca , or

schemasync , then install the Korn shell RPM for your Linux

distribution.

■You must install the packages (or later versions) listed in the following table. Also, ensure that the list of RPMs and all the

prerequisites for these RPMs are installed.

If you are using Oracle Unbreakable Enterprise Kernel, then all required kernel packages are installed as part of the Oracle

Unbreakable Enterprise Kernel installation.IMPORTANT:

Starting with Oracle Database 11g Release 2 (11.2.0.2),

all the 32-bit packages, except for gcc-32bit-4.3, listed in the

following table are no longer required for installing a database on

Linux x86-64. Only the 64-bit packages are required. However, for any Oracle Database 11g release prior to 11.2.0.2, both

the 32-bit and 64-bit packages listed in the following table are

required.

libgcc-3.4.6 (32-bit)

libstdc++-3.4.6

libstdc++-3.4.6 (32 bit)

libstdc++-devel 3.4.6

make-3.80

numactl-0.6.4.x86_64

pdksh-5.2.14

sysstat-5.0.5

■The following or later version of packages for Asianux 3, Oracle Linux 5, and Red Hat Enterprise Linux 5 should be installed:

binutils-2.17.50.0.6

compat-libstdc++-33-3.2.3

compat-libstdc++-33-3.2.3 (32 bit)

elfutils-libelf-0.125

elfutils-libelf-devel-0.125

gcc-4.1.2

gcc-c++-4.1.2

glibc-2.5-24

glibc-2.5-24 (32 bit)

glibc-common-2.5

glibc-devel-2.5

glibc-devel-2.5 (32 bit)

glibc-headers-2.5

ksh-20060214

libaio-0.3.106

libaio-0.3.106 (32 bit)

libaio-devel-0.3.106

libaio-devel-0.3.106 (32 bit)

libgcc-4.1.2

libgcc-4.1.2 (32 bit)

libstdc++-4.1.2

libstdc++-4.1.2 (32 bit)

libstdc++-devel 4.1.2

make-3.81

numactl-devel-0.9.8.x86_64

sysstat-7.0.2

■The following or later version of packages for SUSE Linux Enterprise Server 10 should be installed:

binutils-2.16.91.0.5

compat-libstdc++-5.0.7

gcc-4.1.0

gcc-c++-4.1.2

glibc-2.4-31.63

glibc-devel-2.4-31.63

glibc-devel-32bit-2.4-31.63

ksh-93r-12.9

libaio-0.3.104

libaio-32bit-0.3.104

libaio-devel-0.3.104

libaio-devel-32bit-0.3.104

libelf-0.8.5

libgcc-4.1.2

libstdc++-4.1.2

libstdc++-devel-4.1.2

make-3.80

numactl-0.9.6.x86_64

sysstat-8.0.4

■The following or later version of packages for SUSE Linux Enterprise Server 11 should be installed:

binutils-2.19

gcc-4.3

gcc-32bit-4.3

gcc-c++-4.3

glibc-2.9

glibc-32bit-2.9

glibc-devel-2.9

glibc-devel-32bit-2.9

ksh-93t

libaio-0.3.104

libaio-32bit-0.3.104

libaio-devel-0.3.104

libaio-devel-32bit-0.3.104

libstdc++33-3.3.3

libstdc++33-32bit-3.3.3

libstdc++43-4.3.3_20081022

libstdc++43-32bit-4.3.3_20081022

libstdc++43-devel-4.3.3_20081022

libstdc++43-devel-32bit-4.3.3_20081022

libgcc43-4.3.3_20081022

libstdc++-devel-4.3

make-3.81

sysstat-8.1.5

To determine whether the required packages are installed, enter commands similar to the following:

# rpm -q package_name

If a package is not installed, then install it from the Linux distribution media or download the required package version from the Linux vendor’s Web site.

4.4Compiler Requirements

Intel C++ Compiler 10.1 or later and the version of GNU C and C++ compilers listed under "Package Requirements" are supported with these products.

4.5Additional Software Requirements

Depending on the components you want to use, you must ensure that the following software are installed:

Oracle ODBC Drivers ■Oracle JDBC/OCI Drivers

Note:Intel Compiler v10.1 can be used only with the standard

template libraries of the gcc versions mentioned in the Package

Requirements section, to build Oracle C++ Call Interface (OCCI)

applications.

Oracle XML Developer's Kit is supported with the same compilers as

OCCI.

■Linux-PAM Library

■Oracle Messaging Gateway

■Programming Languages

■Browser Requirements

4.5.1Oracle ODBC Drivers

You should install ODBC Driver Manager for UNIX. You can download and install the Driver Manager from the following URL:

https://www.wendangku.net/doc/d02403889.html,

To use ODBC, you must also install the following additional ODBC RPMs, depending on your operating sytem:

■On Oracle Linux 4 and Red Hat Enterprise Linux 4:

-unixODBC-2.2.11 (32-bit) or later

-unixODBC-devel-2.2.11 (64-bit) or later

-unixODBC-2.2.11 (64-bit) or later

■On Asianux Server 3, Oracle Linux 5, and Red Hat Enterprise Linux 5: -unixODBC-2.2.11 (32-bit) or later

-unixODBC-devel-2.2.11 (64-bit) or later

-unixODBC-2.2.11 (64-bit) or later

■On SUSE 10:

-unixODBC-32 bit-2.2.11 (32-bit) or later

-unixODBC-2.2.11 (64-bit) or later

-unixODBC-devel-2.2.11 (64-bit) or later

■On SUSE 11:

-unixODBC-2.2.12 or later

-unixODBC-devel-2.2.12 or later

-unixODBC-32bit-2.2.12 (32-bit) or later

4.5.2Oracle JDBC/OCI Drivers

Use JDK 6 (Java SE Development Kit 1.6.0_21) or JDK 5 (1.5.0_24) with the JNDI extension with the Oracle Java Database Connectivity and Oracle Call Interface drivers. However, these are not mandatory for the database installation. Note that IBM JDK 1.5 is installed with this release.

4.5.3Linux-PAM Library

Install the latest Linux-PAM (Pluggable Authentication Modules for Linux) library to enable the system administrator to choose how applications authenticate users.

4.5.4Oracle Messaging Gateway

Oracle Messaging Gateway supports the integration of Oracle Streams Advanced Queuing (AQ) with the following software:

■IBM WebSphere MQ V6.0, client and server, with corrective service diskette 5 (CSD05) or later:

MQSeriesClient

MQSeriesServer

MQSeriesRuntime

■TIBCO Rendezvous 7.3

If you require a CSD for WebSphere MQ, then refer to the following Web site for download and installation information:

https://www.wendangku.net/doc/d02403889.html,/support/entry/portal/Downloads/Software/W ebSphere/WebSphere_MQ

4.5.5Programming Languages

The following products are certified for use with:

■Pro* COBOL

Micro Focus Server Express 5.1

4.5.6Browser Requirements

Web browsers must support Java Script, and the HTML 4.0 and CSS 1.0 standards. The following Web browsers are supported 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 SP1

■Microsoft Internet Explorer 8.0

■Firefox 2.0

■Firefox 3.0.7

■Firefox 3.5

■Firefox 3.6

■Safari 3.0.4

■Safari 3.1

■Safari 3.2

■Safari 4.0.x

■Google Chrome 3.0

■Google Chrome 4.0

See Also:Chapter 2, "Oracle Application Express Installation

Requirements" and "Recommended Pre-installation Tasks" in Oracle

Application Express Installation Guide

5Creating Required Operating System Groups and Users

The following local operating system groups and users are required if you are installing Oracle Database:

■The Oracle Inventory group (typically, oinstall)

■The OSDBA group (typically, dba)

■The Oracle software owner (typically, oracle)

■The OSOPER group (optional. Typically, oper)

To determine whether these groups and users already exist, and if necessary, to create them, follow these steps:

1.To determine whether the oinstall group exists, enter the following command:

# more /etc/oraInst.loc

If the output of this command shows the oinstall group name, then the group already exists.

If the oraInst.loc file exists, then the output from this command is similar to the following:

inventory_loc=/u01/app/oraInventory

inst_group=oinstall

The inst_group parameter shows the name of the Oracle Inventory group,

oinstall.

2.To determine whether the dba group exists, enter the following command:

# grep dba /etc/group

If the output from this commands shows the dba group name, then the group already exists.

3.If necessary, enter the following commands to create the oinstall and dba

groups:

# /usr/sbin/groupadd oinstall

# /usr/sbin/groupadd dba

4.To determine whether the oracle user exists and belongs to the correct groups,

enter the following command:

# id oracle

If the oracle user exists, then this command displays information about the

groups to which the user belongs. The output should be similar to the following, indicating that oinstall is the primary group and dba is a secondary group: uid=440(oracle) gid=200(oinstall) groups=201(dba),202(oper)

5.If necessary, complete one of the following actions:

■If the oracle user exists, but its primary group is not oinstall or it is not a member of the dba group, then enter the following command:

# /usr/sbin/usermod -g oinstall -G dba oracle

■If the oracle user does not exist, enter the following command to create it:

# /usr/sbin/useradd -g oinstall -G dba oracle

This command creates the oracle user and specifies oinstall as the

primary group and dba as the secondary group.

6.Enter the following command to set the password of the oracle user:

# passwd oracle

6Configuring Kernel Parameters

Verify that the kernel parameters shown in the following table are set to values greater than or equal to the minimum value shown. The procedure following the table describes how to verify and set the values.

Note:The kernel parameter and shell limit values in this section are

minimum values only. For production database systems, Oracle

recommends that you tune these values to optimize the performance

of the system. Refer to your operating system documentation for more

information about tuning kernel parameters.

Parameter Minimum Value File

semmsl semmns semopm semmni 250

32000

100

128

/proc/sys/kernel/sem

shmall2097152/proc/sys/kernel/shmall shmmax A maximum value of half

the size of physical memory

(in bytes).

Default: 536870912

See My Oracle Support Note

567506.1 for additional

information about

configuring shmmax.

/proc/sys/kernel/shmmax

shmmni4096/proc/sys/kernel/shmmni file-max6815744/proc/sys/fs/file-max

ip_local_ port_range Minimum: 9000

Maximum: 65500

/proc/sys/net/ipv4/ip_

local_port_range

rmem_ default 262144/proc/sys/net/core/rmem_

default

rmem_max4194304/proc/sys/net/core/rmem_

max

wmem_ default 262144/proc/sys/net/core/wmem_

default

wmem_max1048576/proc/sys/net/core/wmem_

max

To view the current value specified for these kernel parameters, and to change them if necessary:

■Enter commands similar to the following to view the current values of the kernel parameters:

■If the value of any kernel parameter is different from the recommended value, then complete the following steps:

https://www.wendangku.net/doc/d02403889.html,ing any text editor, create or edit the /etc/sysctl.conf file, and add or

edit lines similar to the following:

fs.aio-max-nr = 1048576

aio-max-nr Maximum: 1048576

Note : This value limits concurrent outstanding requests and should be set to avoid I/O subsystem failures./proc/sys/fs/aio-max-nr

Note:If the current value of any parameter is higher than the value

listed in this table, then do not change the value of that parameter.

Note:Make a note of the current values and identify any values that

you must change.

Parameter

Command semmsl , semmns ,

semopm , and

semmni

# /sbin/sysctl -a | grep sem This command displays the value of the semaphore parameters in the order listed.shmall , shmmax ,

and shmmni

# /sbin/sysctl -a | grep shm file-max

# /sbin/sysctl -a | grep file-max ip_local_port_

range

# /sbin/sysctl -a | grep ip_local_port_range rmem_default

# /sbin/sysctl -a | grep rmem_default rmem_max

# /sbin/sysctl -a | grep rmem_max wmem_default

# /sbin/sysctl -a | grep wmem_default wmem_max # /sbin/sysctl -a | grep wmem_max

Note:Include lines only for the kernel parameter values that you want

to change. For the semaphore parameters (kernel.sem ), you must

specify all four values. However, if any of the current values are larger

than the minimum value, then specify the larger value.

Parameter

Minimum Value File

fs.file-max = 6815744

kernel.shmall = 2097152

kernel.shmmax = 536870912

kernel.shmmni = 4096

kernel.sem = 250 32000 100 128

net.ipv4.ip_local_port_range = 9000 65500

net.core.rmem_default = 262144

net.core.rmem_max = 4194304

net.core.wmem_default = 262144

net.core.wmem_max = 1048586

Note:The minimum value required for shmmax is 0.5 GB. However,

Oracle recommends that you set the value of shmmax to 2.0 GB for

optimum performance of the system.

By specifying the values in the /etc/sysctl.conf file, they persist when you restart the system. However, on SUSE Linux Enterprise Server systems, enter the following command to ensure that the system reads the

/etc/sysctl.conf file when it restarts:

# /sbin/chkconfig boot.sysctl on

2.Enter the following command to change the current values of the kernel

parameters:

# /sbin/sysctl -p

Review the output from this command to verify that the values are correct. If the values are incorrect, edit the /etc/sysctl.conf file, then enter this command again.

3.Enter the command /sbin/sysctl -a to confirm that the values are set

correctly.

4.On SUSE systems only, enter the following command to cause the system to

read the /etc/sysctl.conf file when it restarts:

# /sbin/chkconfig boot.sysctl on

5.On SUSE systems only, you must enter the GID of the oinstall group as the

value for the parameter /proc/sys/vm/hugetlb_shm_group. Doing this grants members of oinstall a group permission to create shared memory

segments.

For example, where the oinstall group GID is 501:

# echo 501 > /proc/sys/vm/hugetlb_shm_group

After running this command, use vi to add the following text to

/etc/sysctl.conf, and enable the boot.sysctl script to run on system restart:

vm.hugetlb_shm_group=501

6.After updating the values of kernel parameters in the /etc/sysctl.conf

file, either restart the computer, or run the command sysctl -p to make the changes in the /etc/sysctl.conf file available in the active kernel

memory.

Check Resource Limits for the Oracle Software Installation Users

For each installation software owner, check the resource limits for installation, using the following recommended ranges:

To check resource limits:

1.

Log in as an installation owner.2.Check the soft and hard limits for the file descriptor setting. Ensure that the result

is in the recommended range. For example:

$ ulimit -Sn

4096

$ ulimit -Hn

65536

3.Check the soft and hard limits for the number of processes available to a user.

Ensure that the result is in the recommended range. For example:

$ ulimit -Su

2047

$ ulimit -Hu

16384

4.Check the soft limit for the stack setting. Ensure that the result is in the

recommended range. For example:

$ ulimit -Ss

10240

$ ulimit -Hs

32768

5.Repeat this procedure for each Oracle software installation owner.

If necessary, update the resource limits in the /etc/security/limits.conf configuration file for the installation owner. For example, add the following lines to the /etc/security/limits.conf file:

Note:Only one group can be defined as the vm.hugetlb_shm_

group .

Table 1Installation Owner Resource Limit Recommended Ranges

Resource Shell Limit Resource

Soft Limit Hard Limit Open file descriptors nofile at least 1024

at least 65536Number of processes available to a single user nproc at least 2047

at least 16384Size of the stack segment of the process stack

at least 10240 KB at least 10240 KB, and at most 32768 KB

oracle soft nproc 2047

oracle hard nproc 16384

oracle soft nofile 1024

oracle hard nofile 65536

oracle soft stack 10240

7Creating Required Directories

Create directories with names similar to the following, and specify the correct owner, group, and permissions for them:

The Oracle base directory ■An optional Oracle data file directory

The Oracle base directory must have 3 GB of free disk space, or 4 GB of free disk space if you choose not to create a separate Oracle data file directory.

To create the Oracle base directory:

1.Enter the following command to display information about all mounted file

systems:

# df -k

This command displays information about all the file systems mounted on the system, including:

The physical device name ■

The total amount, used amount, and available amount of disk space ■The mount point directory for that file system

2.

From the display, identify either one or two file systems that meet the disk space requirements mentioned earlier in this section.3.Note the name of the mount point directory for each file system that you

identified.

Note:

■The values mentioned in this example are illustrative and not actual values that need to be added.

When the limits.conf file is changed, these changes take effect immediately. However, if the grid or oracle users are logged in,

then these changes will not take effect until you log these users

out and log them back in. You must do this before you attempt to

use these accounts to install.Note:If you do not want to create a separate Oracle data file

directory, then you can install the data files in a subdirectory of the

Oracle base directory. However, this is not recommended for

production databases.

4.Enter commands similar to the following to create the recommended

subdirectories in the mount point directory that you identified and set the

appropriate owner, group, and permissions on them:

# mkdir -p /mount_point/app/

# chown -R oracle:oinstall /mount_point/app/

# chmod -R 775 /mount_point/app/

For example:

# mkdir -p /u01/app/

# chown -R oracle:oinstall /u01/app/

# chmod -R 775 /u01/app/

8Configuring the oracle User’s Environment

You run Oracle Universal Installer from the oracle account. However, before you start Oracle Universal Installer, you must configure the environment of the oracle user. To configure the environment, you must:

■Set the default file mode creation mask (umask) to 022 in the shell startup file.

■Set the DISPLAY environment variable.

To set the oracle user’s environment:

1.Start a new terminal session, for example, an X terminal (xterm).

2.Enter the following command to ensure that X Window applications can display

on this system:

$ xhost fully_qualified_remote_host_name

For example:

$ xhost https://www.wendangku.net/doc/d02403889.html,

3.If you are not already logged in to the system where you want to install the

software, then log in to that system as the oracle user.

4.If you are not logged in as the oracle user, then switch user to oracle:

$ su - oracle

5.To determine the default shell for the oracle user, enter the following command:

$ echo $SHELL

6.To run the shell startup script, enter one of the following commands:

■Bash shell:

$ . ./.bash_profile

■Bourne or Korn shell:

$ . ./.profile

■ C shell:

% source ./.login

7.If you are not installing the software on the local computer, then run the following

command on the remote machine to set the DISPLAY variable:

windows环境下配置连接oracle数据库的方法及步骤

配置oracle连接 怎么在windows环境下配置连接oracle数据库? 步骤如下: 一、安装PL/SQL: 1、获取PL/SQL安装包;(PL/SQL是连接oracle的客户端) 2、安装PL/SQL; (1)双击PL/SQL安装程序,安装PL/SQL; (2)选择“I Agree”进行安装;

(3)选择安装路径(一般选择默认路径);点击【Next】按钮; (4)默认选择,点击【Next】按钮; (5)默认选择,点击【Finish】按钮,开始安装;

(6)安装进度显示 (7)窗口提示“PL/SQL Developer installed successfully”,安装完成,点击【Close】按钮。

二、配置连接 1、获取oci.dll文件(该文件是用来连接数据库的文件),将该文件及其所在的文件夹放置在一个不含有中文的路径下(如:F:\instantclient); 2、双击打开PL/SQL客户端,点击【Cancel】按钮; 3、跳转到PL/SQL页面,如下图所示。选择【Tool】—>Preferences; 4、按下图进行选择,在“Oracle Home(enpty is autodetect)”栏中选择oci.dll文件所在的目录;在“OCI library(enpty is autodetect)”栏中选择oci.dll文件

5、点击【OK】按钮即可完成 6、退出PL/SQL页面,重新登录。双击PL/SQL客户端,在Oracle Logon窗口中填写数据库的用户名、密码、数据库名和连接方式;点击【OK】按钮即可查询数据库。 完毕!谢谢!

Oracle 11g静默安装最全文档

Oracle 11g静默安装过程——linux环境 一、硬件环境 1.操作系统及Oracle版本 Linux版本:Redhat 6.4 Oracle版本:Oracle Database 11g Release 2 (11.2.0.1.0) for Linux x86-64 (linux.x64_11gR2_database_1of2.zip、linux.x64_11gR2_database_2of2.zip) 上传到/home下 2.硬件检测: 物理内存不少于1G 硬盘可以空间不少于5G swap分区空间不少于2G 支持256色以上显卡 cpu主频不小于550mHZ cat /etc/issue uname -r grep MemTotal /proc/meminfo grep SwapTotal /proc/meminfo grep "model name" /proc/cpuinfo free df -k /tmp df -k 二、安装操作系统依赖的具体包 以下为Asianux 3, Oracle Linux 5, Red Hat Enterprise Linux 5, CentOS 5 操作系统依赖的包 binutils-2.20.51.0.2-5.11.el6 (x86_64) compat-libcap1-1.10-1 (x86_64) compat-libstdc++-33-3.2.3-69.el6 (x86_64) compat-libstdc++-33-3.2.3-69.el6.i686 gcc-4.4.4-13.el6 (x86_64)

gcc-c++-4.4.4-13.el6 (x86_64) glibc-2.12-1.7.el6 (i686) glibc-2.12-1.7.el6 (x86_64) glibc-devel-2.12-1.7.el6 (x86_64) glibc-devel-2.12-1.7.el6.i686 ksh libgcc-4.4.4-13.el6 (i686) libgcc-4.4.4-13.el6 (x86_64) libstdc++-4.4.4-13.el6 (x86_64) libstdc++-4.4.4-13.el6.i686 libstdc++-devel-4.4.4-13.el6 (x86_64) libstdc++-devel-4.4.4-13.el6.i686 libaio-0.3.107-10.el6 (x86_64) libaio-0.3.107-10.el6.i686 libaio-devel-0.3.107-10.el6 (x86_64) libaio-devel-0.3.107-10.el6.i686 make-3.81-19.el6 sysstat-9.0.4-11.el6 (x86_64) 1.上传依赖包 mkdir /home/rpm 安装依赖包,把Linux安装盘中的rpm包文件传到/home/rpm,Redhat中是Packages文件下。 cd /home/rpm 2.检查安装依赖系统包 rpm -ivh glibc-common*.rpm rpm -ivh kernel-headers*.rpm rpm -ivh libgcc*.rpm rpm -ivh glibc-*.rpm rpm -ivh libgomp-*.rpm rpm -ivh nscd*.rpm rpm -ivh glibc-headers*.rpm rpm -ivh glibc-devel-*.rpm rpm -ivh mpfr*.rpm rpm -ivh ppl*.rpm rpm -ivh cloog-ppl*.rpm rpm -ivh cpp*.rpm rpm -ivh gcc-*.rpm rpm -ivh libstdc++*.rpm rpm -ivh libstdc++-devel*.rpm

oracle数据库安装及其配置规范标准v0

Oracle数据库系统安装及配置规范 2015-10

目录 1. 数据库物理设计原则 (5) 1.1. 数据库环境配置原则 (5) 1.1.1. 操作系统环境 (5) 1.1.2. 内存要求 (5) 1.1.3. 交换区设计 (5) 1.1.4. 其他 (6) 1.2. 数据库设计原则 (6) 1.2.1. 数据库SID (6) 1.2.2. 数据库全局名 (6) 1.2.3. 数据库类型选择 (6) 1.2.4. 数据库连接类型选择 (7) 1.2.5. 数据库SGA配置 (7) 1.2.6. 数据库字符集选择 (8) 1.2.7. 数据库其他参数配置 (9) 1.2.8. 数据库控制文件配置 (9) 1.2.9. 数据库日志文件配置 (10) 1.2.10. 数据库回滚段配置 (10) 1.2.11. 数据库临时段表空间配置 (11) 1.2.12. 数据库系统表空间配置 (11) 1.3. 数据库表空间设计原则 (11) 1.3.1. 表空间大小定义原则 (11) 1.3.2. 表空间扩展性设计原则 (12) 1.4. 裸设备的使用 (12) 2. 数据库逻辑设计原则 (13) 2.1. 命名规范 (13) 2.1.1. 表属性规范 (13) 2.1.2. 索引 (14) 2.1.3. 视图 (15) 2.1.4. 实体化视图 (15) 2.1.5. 存储过程 (15) 2.1.6. 触发器 (15) 2.1.7. 函数 (16) 2.1.8. 数据包 (16) 2.1.9. 序列 (16) 2.1.10. 表空间 (16) 2.1.11. 数据文件 (16) 2.1.12. 普通变量 (16) 2.1.13. 游标变量 (17) 2.1.14. 记录型变量 (17) 2.1.15. 表类型变量 (17)

Oracle数据库的安装

Oracle 10g 在window 下的安装概述 1.数据库概述 Oracle 应用服务器10g 是集成的、基于标准的软件平台,Oracle Application Server 10g 是继Oracle9i Application Server (Oracle9iAS) Release 2.0 version 9.0.2 和version 9.0.3 之后的最新版本Oracle 应用服务器。 2.安装类型 3.硬件要求 4.软件要求

5.数据库安装 插入光盘后如果安装程序没有自动启动,双击光盘中的setup.exe 文件图标即可启动安装程序(如下图) 基本安装是用于常规的数据安装方法。 全局数据库名:是用于标识数据库的名称。 数据库口令:数据库管理员(sys,system,sysman)的口令(不能为空)。 高级安装用于特定数据库的安装。 选择高级安装,点击下一步 在选择了安装方法(高级安装)之后点击下一步,进入选择数据库安装类型界面(如图)

选择了数据库的安装类型之后,下一步(如图)指定Oracle 目录信息 名称是用于安装完数据库之后在开始菜单程序中显示的名称。路径是用于保存数据库的路径(建议默认)下一步 开始数据库安装条件的查询,当检查完成之后点击下一步(时间较长)

创建数据库是在安装完数据库软件之后就自动开始创建数据库。仅安装数据库,是仅安装数据实例并不创建数据库(在安装完之后再进行创建数据库)。选择创建数据库,点击下一步(如 图)

根据数据库的使用情况选择数据库的配置,并下一步(如图) 输入数据库名及SID。

Oracle 10g安装教程带图片

ORACLE 10g 安装教程 刚刚接触ORACLE的人来说,从那里学,如何学,有那些工具可以使用,应该执行什么操作,一定回感到无助。所以在学习使用ORACLE之前,首先来安装一下ORACLE 10g,在来掌握其基本工具。俗话说的好:工欲善其事,必先利其器。我们开始吧! 首先将ORACLE 10g的安装光盘放入光驱,如果自动运行,一般会出现如图1安装界面: 图1

单击“开始安装”,就可以安装ORACLE 10g,一般会检查系统配置是否符合要求,然后出现“Oracle DataBase 10g安装”对话框,如图2所示: 图2

在安装Oracle DataBase 10g时可以选择“基本安装”和“高级安装”两种方法。选择“基本安装”时,“Oracle主目录位置”用于指定Oracle DataBase 10g软件的存放位置;“安装类型”用于指定Oracle产品的安装类型(企业版、标准版和个人版)。如果选择“创建启动数据库”,那就要指定全局数据库名称和数据库用户的口令。 选择“高级安装”,单击“下一步”,会出现“指定文件对话框”,在源路径显示的是安装产品所在的磁盘路径;目标名称用于资定Oracle主目录所对应的环境变量,目标路径用于指定安装Oracle软件的目标安装路径。设置目标名称为:OraDb10g_home1,目标路径为:D:oracleproduct10.1.0db1。如图3: 图3

单击“下一步”,会加载Oracle产品列表,然后出现“选择安装类型”对话框;如图4: 图4

选择安装类型时一般选择“企业版”,单击“下一步”,会出现“选择数据库配置”对话框,如图5 : 图5

Linux系统(X64)安装Oracle11g完整安装教程

Linux系统(X64)安装Oracle11g完整安装图文教程1修改操作系统核心参数(Root用户) 1)修改用户的SHELL的限制,修改 /etc/security/ 文件 输入命令:vi /etc/security/,按i键进入编辑模式,将下列内容加入该文件。 oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 编辑完成后按Esc键,输入“:wq”存盘退出 2)修改/etc/login 文件,输入命令:vi /etc/login,按i键进入编辑模式,将下列内容加入该文件。 session required /lib/security/ session required 编辑完成后按Esc键,输入“:wq”存盘退出 3)修改linux内核,修改/etc/文件,输入命令: vi /etc/ ,按i键进入编辑模式,将下列内容加入该文件 = 6815744 = 1048576 = 2097152 = 48 = 4096 = 250 32000 100 128 = 1024 65500 = 4194304 = 4194304 = 262144 = 1048576 编辑完成后按Esc键,输入“:wq”存盘退出。 注意: = 9000 65500 网络默认9000 65500 4)要使 /etc/ 更改立即生效,执行以下命令。输入:sysctl -p显示如下: linux:~ # sysctl -p = 1 = 1 = 6815744 = 1048576 = 2097152 = 48 = 4096 = 250 32000 100 128 = 1024 65500

oracle11g安装图解

Oracle11G安装图解 进入oracle安装界面,我们选择高级安装 出现选择安装类型,我们选择企业版,至于语言我们不用选择

Oracle 基目录:用于安装各种与ORACLE软件和配置有关的文件的顶级目录。 软件位置:用于存放安装具体ORACLE产品的主目录和路径。在此我们使用默认的配置。 在此ORACLE会选择剩余空间最多的盘作为基目录和安装目录的所在盘。 可以输入一个电子邮件或是metalink接收安全问题通知,在此我直接输入一个 电子邮件,当然也可以是metalink用户信息!

在此是因为我的内存不足,所以会报此提示,那么我们在此调整内存,以满足条件后再继续安装。

装到这个界面,这个问题直接选是,不会影响之后的安装,出现这个问题的原因是因为我的电脑没连接到网络 在此选择安装数据库。 如果是“配置自动存储管理”,则自动存储管理(ASM)可用来自动化和简化对数据文件、控制文件和日志文件的优化布局。自动存储管理(ASM)将每个文件切割成许多小扩展文件,并将它们平均分散在一个磁盘组的所有磁盘上。一旦自动存储管理(ASM)磁盘组建立,创建和删除文件的时候,Oracle数据库都会从磁盘组自动分配存储空间。如果是“仅安装软件”,则只安装ORACLE软件,

在安装之后还需要再运行数据库配置助手创建数据库。 一般用途/事务处理:适合各种用途的预配置数据库。 数据仓库:创建适用于特定需求并运行复杂查询环境。常用于存储并快速访问大量记录数据。 高级:安装结束后运行ORACLE DBCA后,用户才可以配置数据库。 在此我们选择“一般用途/事务处理” 步骤8:单独下一步后,出现“指定数据库配置选项”

Oracle11g及PLSQL安装过程1.0.

一、Oracle 下载 注意Oracle分成两个文件,下载完后,将两个文件解压到同一目录下即可。路径名称中,最好不要出现中文,也不要出现空格等不规则字符。 官方下地址: https://www.wendangku.net/doc/d02403889.html,/technetwork/database/enterprise-edition/downloads/i ndex.html以下两网址来源此官方下载页网。 win 32位操作系统下载地址: https://www.wendangku.net/doc/d02403889.html,/otn/nt/oracle11g/112010/win32_11gR2_databas e_1of2.zip https://www.wendangku.net/doc/d02403889.html,/otn/nt/oracle11g/112010/win32_11gR2_databas e_2of2.zip win 64位操作系统下载地址: https://www.wendangku.net/doc/d02403889.html,/otn/nt/oracle11g/112010/win64_11gR2_databas e_1of2.zip https://www.wendangku.net/doc/d02403889.html,/otn/nt/oracle11g/112010/win64_11gR2_databas e_2of2.zip 二、Oracle安装 1. 解压缩文件,将两个压缩包一起选择,鼠标右击-> 解压文件如图 2.两者解压到相同的路径中,如图:

两个压缩包没有关联,要全部解压,解压之后文件的大小为2.12G。 3. 到相应的解压路径上面,找到可执行安装文件【setup.exe 】双击安装。如图: 4. 安装第一步:配置安全更新,这步可将自己的电子邮件地址填写进去(也可以不填写,只是收到一些没什么用的邮件而已)。取消下面的“我希望通过My Oracle Support接受安全更新(W)”。如图:(不要填写自己的电子邮件地址,否则它会自动联网,可能会拖慢安装进度)

orcle数据库安装详细教程(图解)

刚刚接触ORACLE的人来说,从那里学,如何学,有那些工具可以使用,应该执行什么操作,一定回感到无助。所以在学习使用ORACLE之前,首先来安装一下ORACLE 10g,在来掌握其基本工具。俗话说的好:工欲善其事,必先利其器。我们开始吧! 首先将ORACLE 10g的安装光盘放入光驱,如果自动运行,一般会出现如图1安装界面: 图1 单击“开始安装”,就可以安装ORACLE 10g,一般会检查系统配置是否符合要求,然后出现“Oracle DataBase 10g安装”对话框,如图2所示:

图2 在安装Oracle DataBase 10g时可以选择“基本安装”和“高级安装”两种方法。选择“基本安装”时,“Orac le主目录位置”用于指定Oracle DataBase 10g软件的存放位置;“安装类型”用于指定Oracle产品的安装类型(企业版、标准版和个人版)。如果选择“创建启动数据库”,那就要指定全局数据库名称和数据库用户的口令。 选择“高级安装”,单击“下一步”,会出现“指定文件对话框”,在源路径显示的是安装产品所在的磁盘路径;目标名称用于资定Oracle主目录所对应的环境变量,目标路径用于指定安装Oracle软件的目标安装路径。设置目标名称为:OraDb10g_home1,目标路径为: D:oracleproduct10.1.0db1。如图3:

图3 单击“下一步”,会加载Oracle产品列表,然后出现“选择安装类型”对话框;如图4:

图4 选择安装类型时一般选择“企业版”,单击“下一步”,会出现“选择数据库配置”对话框,如图5 :

Linux之oracle数据库安装操作手册

Linux之oracle数据库安装操作手册 在Linux操作系统下安装oracle数据库与在windows下安装大不相同,在windows下,我们只需要oui直接安装,不需要任何的配置操作。但Linux则不一样,在安装数据库前需要很多的系统配置和前期准备工作。 一、查看系统参数 查看系统参数是为了检查系统是否满足数据库安装要求,以避免在安装过程中出现因磁盘不足等原因导致的数据库安装失败; 系统要求说明 内存必须高于1G的物理内存 交换空间一般为内存的2倍,例如:1G的内存可以设置swap 分区为3G大小 硬盘5G以上 以下为查看系统参数的相关命令: # cat /etc/redhat-release 查看Linux安装版本 # uname -rm 查看操作系统内核版本 # df -Bm 查看磁盘空间 # lvdisplay 查看逻辑卷

# cat /proc/cpuinfo|grep process 查看CPU数 # cat /proc/meminfo 查看内存 二、查看系统安装的包 在查看系统参数后,需要查看系统支持oracle数据库安装的一些包,如下所示:所列包需要逐一检查,以免后期安装失败。如果发现有包没有安装,需要手动安装好缺少的包后再进行后续操作。 查询命令为:# rpm -qa|grep 包名 需要注意的是,上述这些包的版本与操作系统内核版本有关,所以在查的时候只需要

查询包名字母回车即可; 如果缺少包的话需要挂载Linux对应内核版本的ISO镜像文件到虚拟机中并找到这些包然后安装。 步骤: 1、打开虚拟机后,右下角,点击光盘图标,选“设置”; 2、挂载ISO文件(前提是在本地计算机中已经拷贝了相应的ISO文件),此处示例为: 然后点击浏览,将该ISO文件选中并确定; 3、右下角,点击光盘图标,然后选“连接”;这样,就将镜像文件挂载好了。 4、挂载好后运行相关命令找到包:

oracle11g客户端for-linux安装文档

oracle11g client for linux x64 安装文档 1、以root用户登录服务器,新建oinstall组和oracle用户,并为oracle用户设置密码. #groupadd -g 1000 oinstall #useradd -u 1000 -g 1000 -s /bin/csh -d /opt/oracle oracle 2、将客户端安装包linux.x64_11gR1_client.zip上传至服务器剩余空间较大的目录下,解压后的目录为 client,通过root用户授予oracle读取此文件夹的权限。 3、修改服务器配置,以便xmanager登陆. a)用户rcxdm命令查看xdmcp状态是否running # rcxdm status b)编辑“/etc/opt/kde3/share/config/kdm/kdmrc”文件: 在[XDMCP]节中,将“Enable=false”改为“Enable=true”;并且将“port=177”前的屏蔽取消。 c)编辑文件“/etc/sysconfig/displaymanager”: 将DISPLAYMANAGER_REMOTE_ACCESS=“no” 改为DISPLAYMANAGER_REMOTE_ACCESS=“yes”; d)在suse8中需要新建文件/etc/rc.config,在文件中添加一行: ROOT_LOGIN_REMOTE="yes" e)而在suse9中,编辑文件“/etc/sysconfig/displaymanager”: 将DISPLAYMANAGER_ROOT_LOGIN_REMOTE=“no” 改为DISPLAYMANAGER_ROOT_LOGIN_REMOTE=“yes” f)重新启动xdmcp服务 #rcxdm restart g)需要注意:更改登录的上面4、5两条不一样。 4、修改oracle用户环境变量 export ORACLE_BASE=/opt/oracle export ORACLE_HOME=$ORACLE_BASE/product/11g export ORACLE_SID=icd export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/rdbms/lib:/lib:/usr/lib export PATH=$PATH:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/lib/java/bin:/usr/local/bin/:$ORACLE_HOME/bin:$ORACL E_HOME/OPatch export TNS_ADMIN=$ORACLE_HOME/network/admin export ORA_CRS_HOME=$ORACLE_HOME/crs export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlib export NLS_LANG="SIMPLIFIED CHINESE_CHINA.ZHS16GBK" export LANG=en_US export DISPLAY=远程xmanager运行主机:0.0 5、以oracle通过xmanager登陆服务器,进入client安装目录

oracle数据库安装文档

oracle数据库安装文档

概述 内蒙古中行数据库安装:平台red hat 6.6,数据库版本11.2.0.4,升级psu。

一、环境准备 1、安装前准备 1.1编辑/etc/security/limits.conf文件 vi /etc/security/limits.conf oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 1.2配置内核参数(Configure Kernel Parameters) vi /etc/sysctl.conf #kernel.shmmax = 68719476736 #kernel.shmall = 4294967296 fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152 kernel.shmmax = 4294967295 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default = 262144 net.core.rmem_max = 4194304

net.core.wmem_default = 262144 net.core.wmem_max = 1048586 1.3关闭防火墙并重启系统 vi /etc/selinux/config 1.4创建用户组 1.创建组和用户: groupadd -g 600 oinstall groupadd -g 601 dba groupadd -g 602 oper useradd -m -u 601 -g oinstall -G dba,oper oracle 2.修改用户口令:

linux下oracle数据库安装步骤

数据库安装步骤 1.创建oracle用户和组 [root@hostname ~]# groupadd oinstall [root@hostname ~]# groupadd dba [root@hostname ~]# useradd -g oinstall -G dba oracle [root@hostname ~]# passwd oracle 输入两次密码 2.修改oracle用户的环境变量 oracle用户下,在/home/oracle/.bash_profile文件中添加如下参数 [oracle@hostname ~]$ vim .bash_profile 文档最后添加: # For Oracle export DISPLAY=:0.0 export TMP=/tmp; export TMPDIR=$TMP; export ORACLE_BASE=/home/oracle/app/oracle; export ORACLE_HOME=$ORACLE_BASE/product/12.1.0/db_1; export ORACLE_SID=ipms; export ORACLE_TERM=xterm; export PATH=/usr/sbin:$PATH export PATH=$ORACLE_HOME/bin:$PATH; export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; 3.root用户下执行 [root@hostname ~]# export DISPLAY=:0.0 [root@hostname ~]# xhost + 4.oracle用户下执行 [oracle@hostname ~]$ export DISPLAY=192.168.1.1:0.0

Oracle 11g安装及验证图文攻略

服务器磁盘分配 一般C盘100G装系统、D盘80G放ORACLE基目录和软件位置、E盘剩余空间(最大)放数据库目录。 Oracle 11g安装图文攻略 注意用administrator用户登录 一、Oracle 下载注意Oracle分成两个文件,下载完后,将两个文件解压到同一目录下即可。路径名称中,最好不要出现中文,也不要出现空格等不规则字符。二、Oracle安装1. 解压缩文件,将两个压缩包一起选择,鼠标右击- 解压文件如图2.两者解压到相同的 一、Oracle 下载 注意Oracle分成两个文件,下载完后,将两个文件解压到同一目录下即可。路径名称中,最好不要出现中文,也不要出现空格等不规则字符。 二、Oracle安装 1. 解压缩文件,将两个压缩包一起选择,鼠标右击-> 解压文件如图 2.两者解压到相同的路径中,如图:

3. 到相应的解压路径上面,找到可执行安装文件【setup.exe 】双击安装。如图: 4. 安装第一步:配置安全更新,这步可将自己的电子邮件地址填写进去(也可以不填写,只是收到一些没什么用的邮件而已)。取消下面的“我希望通过My Oracle Support接受安全更新(W)”。如图:

5. 安全选项,直接选择默认创建和配置一个数据库(安装完数据库管理软件后,系统会自动创建一个数据库实例)。如图:

6. 系统类,直接选择默认的桌面类就可以了。(若安装到的电脑是,个人笔记本或个人使用的电脑使用此选项) 服务器类直接点击这里跳转如图:

7. 典型安装。重要步骤。建议只需要将Oracle基目录更新下,目录路径不要含有中文或其它的特殊字符。全局数据库名可以默认,且口令密码,必须要牢记。密码输入时,有提示警告,不符合Oracel建议时不用管。(因Oracel建议的密码规则比较麻烦,必须是大写字母加小写字母加数字,而且必须是8位以上。麻烦,可以输入平常自己习惯的短小密码即可) 如图:

Linux操作系统中Oracle11g数据库安装步骤

Linux操作系统中Oracle11g数据库安装步骤 Linux操作系统中Oracle11g数据库安装规范 一:数据库安装软件(含补丁)的下载说明 Oracle数据库安装软件获得途径: 1、可以通过ftp的方式上传至服务器 2、Oracle官方网站下载:(从11.2.0.2开始ORACLE不再提供升级patch,只提供完整的安装包) 二:数据库版本规定 本安装规范所针对的Oracle数据库版本为:Oracle 11.2.0.3.0 三:安装环境需求 1、系统硬件需求 系统必须满足下列最小硬件要求 内存需求 系统架构要求 磁盘空间需求 显示需求 硬件系统基本需求参照表

2、操作系统版本及补丁矩阵 Oracle 11gR2要求OS至少为RHEL4.7,内核为Kernel 2.6.9 作为生产系统,我们要求使用RHEL 5.6 64位版本,即: Red Hat Enterprise Linux AS release 5 Update 5 x86_64 需要安装以下RPM软件包(加32bit括号注解的是该软件包32位版本,对应同名未加注解的则是该软件包64位版本。在64位版本平台上,两种版本都要安装): 1 binutils-2.17.50.0.6

2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 compat-libstdc++-33-3.2.3 compat-libstdc++-33-3.2.3 (32 bit) elfutils-libelf-0.125 elfutils-libelf-devel-0.125 gcc-4.1.2 gcc-c++-4.1.2 glibc-2.5-24 glibc-2.5-24 (32 bit) glibc-common-2.5 glibc-devel-2.5 glibc-devel-2.5 (32 bit) glibc-headers-2.5 ksh-20060214 libaio-0.3.106 libaio-0.3.106 (32 bit) libaio-devel-0.3.106 libaio-devel-0.3.106 (32 bit) libgcc-4.1.2 libgcc-4.1.2 (32 bit) libstdc++-4.1.2 libstdc++-4.1.2 (32 bit) libstdc++-devel 4.1.2 make-3.81 sysstat-7.0.2

Linux系统最全Oracle11g安装文档

Linux系统(X64)安装Oracle11g基本操作 一、修改操作系统核心参数 在Root用户下执行以下步骤: 1)修改用户的SHELL的限制,修改/etc/security/limits.conf文件,输入命令:vi /etc/security/limits.conf,按i键进入编辑模式,将下列内容加入该文件。 oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 2)修改/etc/pam.d/login 文件,输入命令:vi /etc/pam.d/login,按i键进入编辑模式,将下列内容加入该文件。(用户限制配置文件。要使 /etc/security/limits.conf 文件配置生效,必须要确保 PAM验证模块 pam_limits.so 文件被加入到启动文件中。查看 /etc/pam.d/login 文件中有:session required /lib/security/pam_limits.so,64位地址是: /lib64/security/pam_limits.so 否则本地即使输入正确密码也无法登陆。)(PS我们平常登陆实际上是运行一个程序login来判断我们是不是这个用户,如果是的话就给我们shell;不是的话就进不去。而/etc/pam/login这件文件就是我们验证过程中需要经过哪些模块的认证。根据设定来叛断我们的帐号密码是不是正确,当这个文件有问题的时候,验证就会出错,尽管我的帐号密码是正常的,也进不去。) session required /lib/security/pam_limits.so session required pam_limits.so 编辑完成后按Esc键,输入“:wq”存盘退出 3)修改linux内核,修改/etc/sysctl.conf文件,输入命令: vi /etc/sysctl.conf ,按i键进入编辑模式,将下列内容加入该文件 fs.file-max = 6815744 fs.aio-max-nr = 1048576 kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128

Oracle数据库安装及运维工作指南(完整资料).doc

【最新整理,下载后即可编辑】 Oracle数据库安装及运维工作指南 金蝶软件(中国)有限公司 K3 CLOUD 基础系统部 2017-04-10 张华福 本文主要强调ORACLE 数据库服务器环境的安装软件及版本,以及安装完成后的后续完善工作。以确保数据库以比较完善的状态投入生产,尽可能避免已知的问题影响生产库的运营。文章不涉及到软件的安装方法步骤。

1 服务器系统软件,数据库版本安装推荐: 1 数据库服务器的操作系统,推荐使用ORACLE LINUX6.8。 2 数据库软件版本,要求安装11204,单节点或RAC环境均可,推荐使用RAC。 2 数据库安装创建完毕后,需要进行下列的完善工作, 1 打上最新的补丁集,如:ORACLE 11204,截止至2017年4月,ORACLE11204 数据库, 当前最新版本的补丁集为20161018 日发布的, p2*******_112040_Linux-x86-64_GI_20161018.zip --rac 版本, p2*******_112040_Linux-x86-64_DB_20161018.zip --纯数据库版。 请按照补丁集上的readme.html,把补丁集打到GI, 数据库上。 2 初始化参数,下面的参数值,只是通常情况下的设置(或可根据服务器的硬件条件自行修改配置),要想系统效率最优,得依据数据库实际的运行情况逐步作微调(注意,下面的命令,在RAC和单节点环境下,稍有不同)。 alter profile default LIMIT PASSWORD_LIFE_TIME UNLIMITED; alter system set processes=500 scope=spfile sid='*'; alter system set control_file_record_keep_time=21 scope=spfile sid='*'; alter system set open_cursors=300 scope=spfile sid='*'; alter system set session_cached_cursors=300 scope=spfile sid='*';

Oracle11g数据库基础教程-参考答案资料

第1章Oracle 11g数据库安装与配置 1.简答题 (1) 企业版数据库服务器包含所有的数据库组件,主要针对高端的应用环境,适用于安全性和性能要求较高的联机事务处理(OLTP)、查询密集型的数据仓库和要求较高的Internet应用程序:标准版数据库服务器提供大部分核心的数据库功能和特性,适合于工作组或部门级的应用程序:个人版数据库服务器只提供基本数据库管理功能和特性,适合单用户的开发环境,为用户提供开发测试平台。 (2) 常用数据库类型包括事务处理类、数据仓库类以通用类型。其中事务处理类型主要针对 具有大量并发用户连接,并且用户主要执行简单事务处理的应用环境。事务处理数据库的典型应用有银行系统数据库、Internet电子商务数据库、证券交易系统数据库等。对于需要较 高的可用性和事务处理性能、存在大量用户并行访问相同数据以及需要较高恢复性能的数据 库环境,事务处理类型的配置可以提供最佳性能;数据仓库类型的数据库主要针对有大量的 对某个主题进行复杂查询的应用环境。数据仓库的典型应用有客户订单研究、支持呼叫、销售预测、采购模式以及其他战略性业务问题的历史数据研究。对于需要对大量数据进行快速 访问,以及复杂查询的数据库环境,数据仓库类型配置是最佳选择;通用类型配置的数据库是事务处理数据库与数据仓库配置的折衷方案。既可以支持大量并发用户的事务处理,又可以快速对大量历史数据进行复杂的数据扫描和处理。 (3) 数据库名可以由字母、数字、下划线(_)、#和美元符号($)组成,且必须以字母开头,长度不超过30个字符。在单机环境中,可以不设置域名,域名长度不能超过128个字符。Oracle服务标识符(SID)是一个Oracle实例的唯一名称标识,长度不能超过12个字符。(4) OracleServiceORCL:数据库服务(数据库实例),是Oracle核心服务,是数据库启 动的基础,只有该服务启动,Oracle数据库才能正常启动。(必须启动) OracleOraDb11g_home1TNSListener:监听器服务,该服务只有在远程访问数据库时 才需要(无论远程计算机还是本地计算机,凡是通过Oracle Net网络协议连接数据 库都属于远程访问)。(必须启动) OracleOraDb11g_home1ConfigurationManager:配置Oracle启动时的参数的服务。(非必须启动) OracleOraDb11g_home1ClrAgent:提供对.NET支持的Oracle数据库扩展服务。(非必须启动) OracleJobSchedulerORCL:数据库作业调度服务。(非必须启动) OracleDBConsoleorcl:Oracle控制台服务,即企业管理器服务。只有该服务启动了, 才可以使用Web方式的企业管理器管理数据库。(非必须启动) OracleVssWriterORCL:是Oracle对VSS提供支持的服务。(非必须启动) OracleMTSRecoveryService:是允许数据库充当一个微软事务服务器、COM/COM+对象和分布式环境下的事务资源管理器的服务。

Oracle 11g安装图解

Oracle 11g安装 安装图解 图解 图解 下载 Oracle e下载 一、Oracl 注意:Oracle分成两个文件,下载完后,将两个文件解压到同一目录下即可。 路径名称中,最好不要出现中文,也不要出现空格等不规则字符。 官方下地址: win 32位操作系统 下载地址: https://www.wendangku.net/doc/d02403889.html,/otn/nt/oracle11g/112010/win32_11gR2_databa se_1of2.zip https://www.wendangku.net/doc/d02403889.html,/otn/nt/oracle11g/112010/win32_11gR2_databa se_2of2.zip win 64位操作系统 下载地址: https://www.wendangku.net/doc/d02403889.html,/otn/nt/oracle11g/112010/win64_11gR2_databa se_1of2.zip https://www.wendangku.net/doc/d02403889.html,/otn/nt/oracle11g/112010/win64_11gR2_databa se_2of2.zip 安装 二、Oracle安装 1. 解压缩文件,将两个压缩包一起选择, 鼠标右击 -> 解压文件 如图1所示。 图1 解压文件

2.两者解压到相同的路径中,如图2所示。 图2 解压路径 3. 到相应的解压路径上面,找到可执行安装文件【 setup.exe 】双击安装。如图3所示。 图3 安装文件 4. 安装第一步:配置安全更新(电邮可填可不填)。取消下面的“我希望通过My Oracle Support接受安全更新(W)”,如图4所示。

Linux操作系统中Oracle11g数据库安装步骤详细图解

Linux 操作系统中Oracle11g 数据库安装步骤详细图解 来源:Ask Oracle 社区/栏目:基础教程/时间:2013-03-19/阅读:5009次 Linux 操作系统中Oracle11g 数据库安装规范 一 :数据库安装软件(含补丁)的下载说明 Oracle 数据库安装软件获得途径: 1、可以通过ftp 的方式上传至服务器 2、Oracle 官方网站下载:(从11.2.0.2开始ORACLE 不再提供升级patch ,只提供完整的安装包) 二:数据库 Linux 操作系统中Oracle11g 数据库安装规范 一:数据库安装软件(含补丁)的下载说明 Oracle 数据库安装软件获得途径: 1、可以通过ftp 的方式上传至服务器 2、Oracle 官方网站下载:(从11.2.0.2开始ORACLE 不再提供升级patch ,只提供完整的安装包) 二:数据库版本规定 本安装规范所针对的Oracle 数据库版本为:Oracle 11.2.0.3.0 三:安装环境需求 1、系统硬件需求 系统必须满足下列最小硬件要求 ? 内存需求 ? 系统架构要求 ? 磁盘空间需求 ? 显示需求 硬件系统基本需求参照表 2、操作系统版本及补丁矩阵 Oracle 11gR2要求OS 至少为RHEL4.7,内核为Kernel 2.6.9 作为生产系统,我们要求使用RHEL 5.6 64位版本,即: Red Hat Enterprise Linux AS release 5 Update 5 x86_64 需要安装以下RPM 软件包(加32bit 括号注解的是该软件包32位版本,对应同名未加注解的则是该软件包64位版本。在64位版本平台上,两种版本都要安装): 1 2 3 4 binutils-2.17.50.0.6 compat-libstdc++-33-3.2.3 compat-libstdc++-33-3.2.3 (32 bit) elfutils-libelf-0.125

相关文档
相关文档 最新文档