search
HomeDatabaseMysql TutorialOracle 11g r2 Rac 安装

在大部分Linux发行版本中,sendmail这个古老的邮件系统包是默认安装的,装完系统后,重启时,不少兄弟遇到在启动过程中,到了启动

查看操作系统版本:

 [root@rac1 ~]# cat /etc/issue
Enterprise Linux Enterprise Linux AS release 4 (October Update 7)
Kernel \r on an \m

查看内核版本:

[root@rac1 ~]# cat /proc/version
Linux version 2.6.9-78.0.0.0.1.ELsmp (mockbuild@ca-build15.us.Oracle.com) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-10)) #1 SMP Fri Jul 25 14:41:56 EDT 2008

vi /etc/hosts


127.0.0.1       localhost
192.168.10.11   rac1
192.168.10.12   rac1-vip
10.10.10.11     rac1-priv

192.168.10.21   rac2
192.168.10.22   rac2-vip
10.10.10.21     rac2-priv

192.168.10.31 rac-cluster

groupadd -g 1000 oinstall
groupadd -g 1031 dba
useradd -u 1101 -g oinstall -G dba oracle
mkdir -p  /u01/app/11.2.0/grid
mkdir -p /u01/app/oracle
chown -R oracle:oinstall /u01
chmod -R 775 /u01/ 

Using any text editor, create or edit the /etc/sysctl.conf file, and add or edit lines similar to the following:

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. If any of the current values are larger than the minimum value, then specify the larger value.

view plaincopy to clipboardprint?

  • fs.aio-max-nr = 1048576  
  • 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. Oracle recommends that you set the value ofshmmax 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. 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

    Enter the following command to change the current values of the kernel parameters:

    # /sbin/sysctl -p


    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:

    view plaincopy to clipboardprint?

  • oracle              soft    nproc   2047  
  • oracle              hard    nproc   16384  
  • oracle              soft    nofile  1024  
  • oracle              hard    nofile  65536  
  • oracle              soft    stack   10240  
  • Sendmail是最重要的邮件传输代理程序。理解电子邮件的工作模式是非常重要的。一般情况下,我们把电子邮件程序分解成用户代理,传输代理和投递代理。 关闭Sendmail服务具体命令实现如下:

    关闭sendmail服务

    (1)[root@sample ~]# /etc/rc.d/init.d/sendmail stop  ← 关闭sendmail服务
    或者[root@sample ~]# service sendmail stop  ← 关闭sendmail服务
    Shutting down sendmail: [ OK ]
    Shutting down sm-client: [ OK ]

    (2)[root@sample ~]# chkconfig sendmail off  ← 关闭sendmail自启动

    (3)[root@sample ~]# chkconfig --list sendmail  ← 确认sendmail自启动已被关闭(都为off就OK)
    sendmail 0:off 1:off 2:off 3:off 4:off 5:off 6:off

    在大部分Linux发行版本中,sendmail这个古老的邮件系统包是默认安装的,装完系统后,重启时,不少兄弟遇到在启动过程中,到了启动sendmail服务的时候就停止了,没有耐性和经验的朋友这时候可能会以为系统出故障或者系统没有装好,其实既不是系统出故障,一般也不是系统没有安装好,而是系统启动sendmail的时候在查询你设置的主机名的A记录或反向域名记录,由于全球9台DNS根系统都在美国,,这个时候会去查询本机主机名对应的dns A记录。

    知道了问题的症结,就可以对症下药了,比如我们可以修改系统配置文件/etc/hosts

    让sendmaill绕过查询远程主机,这里给出一种最简单的方法

    修改/etc/hosts ,未修改之前

    127.0.0.1 localhost.localdomain localhost

    修改成

    127.0.0.1 localhost.localdomain localhost 主机名称

    上述操作要在root权限下执行,查看主机名命令:hostname。

    当我重新启动是发现sendmail和sm-client启动是秒级了。

    NTP

    To do this, on Oracle Linux, Red Hat Linux, and Asianux systems, edit the
    /etc/sysconfig/ntpd file to add the -x flag, as in the following example:
    # Drop root to id 'ntp:ntp' by default.
    OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid"
    # Set to 'yes' to sync hw clock after successful ntpdate
    SYNC_HWCLOCK=no
    # Additional options for ntpdate
    NTPDATE_OPTIONS=""
    Then, restart the NTP service.
    # /sbin/service ntp restart

     

    #/sbin/chkconfig ntpd on

    Linux 硬盘分区

    #fdisk -l

    #fdisk /dev/sdb

    #mkfs -t ext3 /dev/sdb1

    #mount /dev/sdb1 /u01

    #df -lh

    #vi /etc/fstab

      /dev/sdb1  /u01  ext3  defaults  1  2

    本案例中使用的是RedHat Enterprise AS 4 Update 2系统,内核版本为2.6.9-22.ELsmp,因此,
    需要下载的OCFS2内核模块(kernel module)也必须相应版本的:

    再下载OCFS2 tools(命令和启动脚本)以及 OCFS2 控制台:

    o2cb_ctl: Unable to access cluster service while creating node  

    Statement
    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
    Explain the InnoDB Buffer Pool and its importance for performance.Explain the InnoDB Buffer Pool and its importance for performance.Apr 19, 2025 am 12:24 AM

    InnoDBBufferPool reduces disk I/O by caching data and indexing pages, improving database performance. Its working principle includes: 1. Data reading: Read data from BufferPool; 2. Data writing: After modifying the data, write to BufferPool and refresh it to disk regularly; 3. Cache management: Use the LRU algorithm to manage cache pages; 4. Reading mechanism: Load adjacent data pages in advance. By sizing the BufferPool and using multiple instances, database performance can be optimized.

    MySQL vs. Other Programming Languages: A ComparisonMySQL vs. Other Programming Languages: A ComparisonApr 19, 2025 am 12:22 AM

    Compared with other programming languages, MySQL is mainly used to store and manage data, while other languages ​​such as Python, Java, and C are used for logical processing and application development. MySQL is known for its high performance, scalability and cross-platform support, suitable for data management needs, while other languages ​​have advantages in their respective fields such as data analytics, enterprise applications, and system programming.

    Learning MySQL: A Step-by-Step Guide for New UsersLearning MySQL: A Step-by-Step Guide for New UsersApr 19, 2025 am 12:19 AM

    MySQL is worth learning because it is a powerful open source database management system suitable for data storage, management and analysis. 1) MySQL is a relational database that uses SQL to operate data and is suitable for structured data management. 2) The SQL language is the key to interacting with MySQL and supports CRUD operations. 3) The working principle of MySQL includes client/server architecture, storage engine and query optimizer. 4) Basic usage includes creating databases and tables, and advanced usage involves joining tables using JOIN. 5) Common errors include syntax errors and permission issues, and debugging skills include checking syntax and using EXPLAIN commands. 6) Performance optimization involves the use of indexes, optimization of SQL statements and regular maintenance of databases.

    MySQL: Essential Skills for Beginners to MasterMySQL: Essential Skills for Beginners to MasterApr 18, 2025 am 12:24 AM

    MySQL is suitable for beginners to learn database skills. 1. Install MySQL server and client tools. 2. Understand basic SQL queries, such as SELECT. 3. Master data operations: create tables, insert, update, and delete data. 4. Learn advanced skills: subquery and window functions. 5. Debugging and optimization: Check syntax, use indexes, avoid SELECT*, and use LIMIT.

    MySQL: Structured Data and Relational DatabasesMySQL: Structured Data and Relational DatabasesApr 18, 2025 am 12:22 AM

    MySQL efficiently manages structured data through table structure and SQL query, and implements inter-table relationships through foreign keys. 1. Define the data format and type when creating a table. 2. Use foreign keys to establish relationships between tables. 3. Improve performance through indexing and query optimization. 4. Regularly backup and monitor databases to ensure data security and performance optimization.

    MySQL: Key Features and Capabilities ExplainedMySQL: Key Features and Capabilities ExplainedApr 18, 2025 am 12:17 AM

    MySQL is an open source relational database management system that is widely used in Web development. Its key features include: 1. Supports multiple storage engines, such as InnoDB and MyISAM, suitable for different scenarios; 2. Provides master-slave replication functions to facilitate load balancing and data backup; 3. Improve query efficiency through query optimization and index use.

    The Purpose of SQL: Interacting with MySQL DatabasesThe Purpose of SQL: Interacting with MySQL DatabasesApr 18, 2025 am 12:12 AM

    SQL is used to interact with MySQL database to realize data addition, deletion, modification, inspection and database design. 1) SQL performs data operations through SELECT, INSERT, UPDATE, DELETE statements; 2) Use CREATE, ALTER, DROP statements for database design and management; 3) Complex queries and data analysis are implemented through SQL to improve business decision-making efficiency.

    MySQL for Beginners: Getting Started with Database ManagementMySQL for Beginners: Getting Started with Database ManagementApr 18, 2025 am 12:10 AM

    The basic operations of MySQL include creating databases, tables, and using SQL to perform CRUD operations on data. 1. Create a database: CREATEDATABASEmy_first_db; 2. Create a table: CREATETABLEbooks(idINTAUTO_INCREMENTPRIMARYKEY, titleVARCHAR(100)NOTNULL, authorVARCHAR(100)NOTNULL, published_yearINT); 3. Insert data: INSERTINTObooks(title, author, published_year)VA

    See all articles

    Hot AI Tools

    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.

    Undress AI Tool

    Undress AI Tool

    Undress images for free

    Clothoff.io

    Clothoff.io

    AI clothes remover

    AI Hentai Generator

    AI Hentai Generator

    Generate AI Hentai for free.

    Hot Tools

    SecLists

    SecLists

    SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

    EditPlus Chinese cracked version

    EditPlus Chinese cracked version

    Small size, syntax highlighting, does not support code prompt function

    Zend Studio 13.0.1

    Zend Studio 13.0.1

    Powerful PHP integrated development environment

    SublimeText3 English version

    SublimeText3 English version

    Recommended: Win version, supports code prompts!

    PhpStorm Mac version

    PhpStorm Mac version

    The latest (2018.2.1) professional PHP integrated development tool