国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Home Database Mysql Tutorial RedHat Linux下Oracle 10g 安裝說明

RedHat Linux下Oracle 10g 安裝說明

Jun 07, 2016 pm 04:55 PM
oracle

2.1 操作系統(tǒng),redhat ES/AS 2.1(x86),redhat ES/AS 3(x86)我的是redhat AS 4.1. 可以使用以下命令檢查cat /etc/issue2.2 需要安

1.硬件要求

1.1 內存至少512M,使用下面的命令檢查

grep MemTotal /proc/meminfo

1.2 交換分區(qū) 至少1G

grep SwapTotal /proc/meminfo

1.3 /tmp 目錄空閑區(qū) 至少400M

df -k /tmp 400M

1.4 硬盤空閑區(qū) 至少4G

df -k

2. 軟件要求

2.1 操作系統(tǒng),RedHat ES/AS 2.1(x86),redhat ES/AS 3(x86)

我的是redhat AS 4.1.? 可以使用以下命令檢查

cat /etc/issue

2.2 需要安裝了以下軟件包

Gnu gcc package 至少是gcc-3.2.3-2

make-3.79· binutils-2.11· openmotif-2.2.2-16· setarch-1.3-1 ·

compat-db-4.0.14.5· compat-gcc-7.3-2.96.122· compat-gcc-c++-7.3-2.96.122·

compat-libstdc++-7.3-2.96.122· compat-libstdc++-devel-7.3-2.96.122

可以使用以下命令檢查:

rpm -q package_name

注意這里的package_name不帶任何版本號,例如檢查make-3.79

rpm -q make

如果以上軟件沒有安裝,請安裝. 啟動xwindow,打開 應用程序/系統(tǒng)設置/添加刪除程序

2.3? 防火墻軟件

如果你不知道具體怎么配置,請禁用. 如何禁用:

打開? 應用程序/系統(tǒng)設置/安全級別

3. 創(chuàng)建安裝Oracle 所需的組和用戶

需要的用戶是oracle,組是dba,oinstall

可以用界面的方式添加,也可以用命令行的方式

groupadd osintall

groupadd dba

useradd –g oinstall –G dba oracle

passwd oracle

4. 創(chuàng)建安裝安裝所需的目錄

4.1 Oracle Base 目錄/u01/app/oracle

mkdir –p /u01/app/oracle

chown –R oracle:oinstall /u01/app/oracle

chmod –R 755 /u01/app/oracle

4.2 Oracle數(shù)據(jù)庫文件存放目錄. 這個可以沒有的. 一般設置為/u02/oradata

mkdir –p /u02/oradata

chown –R oracle:oinstall /u02/oradata

chmod –R 755 /u02/oradata

5. 配置內核參數(shù)

5.1 用文本編輯器,創(chuàng)建或者編輯/etc/sysctl.conf文件,添加或修改如下的行

kernel.shmall = 2097152

kernel.shmmax = 2147483648

kernel.shmmni = 4096

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

5.2 改變當前內核參數(shù)的值

sysctl -p

6. 檢查您的/etc/host.conf 是否含有下面的條目

127.0.0.1 localhost

如果沒有的話, oracle 的監(jiān)聽器無法啟動

7.為了提高在linux系統(tǒng)上運行軟件的性能,必須對oracle用戶設置下列shell 限定。

7.1 打開文件數(shù)和進程數(shù)的限制

加入下面的行到文件/etc/security/limits.conf

  ?????? * soft nproc 2047

  ?????? * hard nproc 16384

  ?????? * soft nofile 1024

  ?????? * hard nofile 65536

* 是指對所有的用戶和組的限制, Oracle官方文檔是這樣要求的,我建議將*替換成oracle,

表示只針對oracle用戶. 因為如果設置成*,會可能對其他的服務造成影響(例如對我的Sybase服務)

7.2 加入下面的行到文件/etc/pam.d/login ,假如它不存在的話

session required /lib/security/pam_limits.so

Oracle 官方網(wǎng)站如此說,但是已經(jīng)有人發(fā)現(xiàn)這個也會造成影響.

我的操作系統(tǒng)版本是Redhat AS 4.1,去掉這一行完全沒有問題.

7.3 根據(jù)oracle 用戶的默認shell,對默認 shell start-up文件作如下改變.

如果是Bourne, Bash, or Korn shell,,修改環(huán)境變量/etc/profile文件如下:

if [ \$USER = "oracle" ]; then

  ??????? if [ \$SHELL = "/bin/ksh" ]; then

  ??????????? ulimit -p 16384

  ??????????? ulimit -n 65536

  ??????? else

ulimit -u 16384 -n 65536

fi

fi

如果是c shell,則環(huán)境變量文件 /etc/csh.login的修改值如下:

if ( $USER == "oracle" ) then

  ??????? limit maxproc 16384

  ??????? limit descriptors 65536

endif

8. 為oracle用戶設置環(huán)境變量,注意以下命令為,必需以oracle用戶身分登錄

  ●Bash shell,更改.bash_profile,添加以下行

  ??? ORACLE_BASE=/u01/app/oracle

ORACLE_SID=**********

  ??? export ORACLE_BASE ORACLE_SID

  ●c shell,更改.login文件,添加以下行

  ???? setenv ORACLE_BASE /u01/app/oracle

  ???? setenv ORACLE_SID **********

9. 確認ORACLE_HOME and TNS_ADMIN 的環(huán)境變量不被用戶設置

千萬不要因為安裝過程中的其他錯誤,而設置這些值

●Bash shell

  ? unset ORACLE_HOME

  ? unset TNS_ADMIN

  ●c shell

unsetenv ORACLE_HOME

 ? unsetenv TNS_ADMIN

10. 準備好安裝介質

10.1 一般我想是網(wǎng)上下載的. 先要解壓,保證解壓后的目錄,擁有者是oracle:oinstall,并且有執(zhí)行權限

10.2 如果光盤的,要mount上, 一般操作系統(tǒng)是自動mount的.

11. 以oracle身分登陸xwindow,運行安裝目錄下的runInstaller

12. 安裝過程中,指定數(shù)據(jù)庫用戶的密碼,警告大家千萬不要含有"@"符號, 在我的博客里有詳細的說明為什么.

13. 安裝的最后階段,一定要的按照oui的指示,以root用戶身分運行那兩個腳本文件.

linux

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to uninstall MySQL and clean residual files How to uninstall MySQL and clean residual files Apr 29, 2025 pm 04:03 PM

To safely and thoroughly uninstall MySQL and clean all residual files, follow the following steps: 1. Stop MySQL service; 2. Uninstall MySQL packages; 3. Clean configuration files and data directories; 4. Verify that the uninstallation is thorough.

Oracle's Role in the Business World Oracle's Role in the Business World Apr 23, 2025 am 12:01 AM

Oracle is not only a database company, but also a leader in cloud computing and ERP systems. 1. Oracle provides comprehensive solutions from database to cloud services and ERP systems. 2. OracleCloud challenges AWS and Azure, providing IaaS, PaaS and SaaS services. 3. Oracle's ERP systems such as E-BusinessSuite and FusionApplications help enterprises optimize operations.

How to create cursors in oracle loop How to create cursors in oracle loop Apr 12, 2025 am 06:18 AM

In Oracle, the FOR LOOP loop can create cursors dynamically. The steps are: 1. Define the cursor type; 2. Create the loop; 3. Create the cursor dynamically; 4. Execute the cursor; 5. Close the cursor. Example: A cursor can be created cycle-by-circuit to display the names and salaries of the top 10 employees.

What steps are required to configure CentOS in HDFS What steps are required to configure CentOS in HDFS Apr 14, 2025 pm 06:42 PM

Building a Hadoop Distributed File System (HDFS) on a CentOS system requires multiple steps. This article provides a brief configuration guide. 1. Prepare to install JDK in the early stage: Install JavaDevelopmentKit (JDK) on all nodes, and the version must be compatible with Hadoop. The installation package can be downloaded from the Oracle official website. Environment variable configuration: Edit /etc/profile file, set Java and Hadoop environment variables, so that the system can find the installation path of JDK and Hadoop. 2. Security configuration: SSH password-free login to generate SSH key: Use the ssh-keygen command on each node

MongoDB vs. Oracle: Understanding Key Differences MongoDB vs. Oracle: Understanding Key Differences Apr 16, 2025 am 12:01 AM

MongoDB is suitable for handling large-scale unstructured data, and Oracle is suitable for enterprise-level applications that require transaction consistency. 1.MongoDB provides flexibility and high performance, suitable for processing user behavior data. 2. Oracle is known for its stability and powerful functions and is suitable for financial systems. 3.MongoDB uses document models, and Oracle uses relational models. 4.MongoDB is suitable for social media applications, while Oracle is suitable for enterprise-level applications.

What to do if the oracle log is full What to do if the oracle log is full Apr 12, 2025 am 06:09 AM

When Oracle log files are full, the following solutions can be adopted: 1) Clean old log files; 2) Increase the log file size; 3) Increase the log file group; 4) Set up automatic log management; 5) Reinitialize the database. Before implementing any solution, it is recommended to back up the database to prevent data loss.

MongoDB vs. Oracle: Choosing the Right Database for Your Needs MongoDB vs. Oracle: Choosing the Right Database for Your Needs Apr 22, 2025 am 12:10 AM

MongoDB is suitable for unstructured data and high scalability requirements, while Oracle is suitable for scenarios that require strict data consistency. 1.MongoDB flexibly stores data in different structures, suitable for social media and the Internet of Things. 2. Oracle structured data model ensures data integrity and is suitable for financial transactions. 3.MongoDB scales horizontally through shards, and Oracle scales vertically through RAC. 4.MongoDB has low maintenance costs, while Oracle has high maintenance costs but is fully supported.

How to configure the database connection of weblogic on centos How to configure the database connection of weblogic on centos Apr 14, 2025 pm 02:06 PM

Configuring WebLogic database connection on a CentOS system requires the following steps: JDK installation and environment configuration: Make sure that the server has installed a JDK that is compatible with the WebLogic version (for example, WebLogic14.1.1 usually requires JDK8). Correctly set JAVA_HOME, CLASSPATH and PATH environment variables. WebLogic installation and decompression: Download the WebLogic installation package for CentOS system from the official Oracle website and unzip it to the specified directory. WebLogic user and directory creation: Create a dedicated WebLogic user account and set a security password

See all articles