Centos 6 Oracle 11G 超详细安装
Desktop Environment is not neccessary for Server usage, though. But Sometimes installation or using an application requires Desktop Environment, then build Desktop Environment as follwos. [root@dlp ~]#yum -y groupinstall X Window System [r
Desktop Environment is not neccessary for Server usage, though. But Sometimes installation or using an application requires Desktop Environment, then build Desktop Environment as follwos.[root@dlp ~]#yum -y groupinstall "X Window System"
[root@dlp ~]#yum -y groupinstall "Desktop"
Input a command like below after finishing installation of new packages. |
[2] | Install some packages first. |
[3] | Edit Kernel parameters. |
[root@db01 ~]#vi /etc/sysctl.conf
# comment out
#
net.bridge.bridge-nf-call-ip6tables = 0 # net.bridge.bridge-nf-call-iptables = 0 # net.bridge.bridge-nf-call-arptables = 0 # add follows to the end net.ipv4.ip_local_port_range = 9000 65500 fs.file-max = 6815744 kernel.shmall = 10523004 kernel.shmmax = 6465333657 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 net.core.rmem_default=262144 net.core.wmem_default=262144 net.core.rmem_max=4194304 net.core.wmem_max=1048576 fs.aio-max-nr = 1048576 [root@db01 ~]# sysctl -pnet.ipv4.ip_forward = 0 net.ipv4.conf.default.rp_filter = 1 net.ipv4.conf.default.accept_source_route = 0 kernel.sysrq = 0 kernel.core_uses_pid = 1 net.ipv4.tcp_syncookies = 1 net.ipv4.ip_local_port_range = 9000 65500 fs.file-max = 65536 kernel.shmall = 10523004 kernel.shmmax = 6465333657 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 net.core.rmem_default = 262144 net.core.wmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_max = 1048576 fs.aio-max-nr = 1048576 |
[4] | Create user and groups for Oracle Database. |
[root@db01 ~]#
groupadd -g 200 oinstall
[root@db01 ~]# groupadd -g 201 dba [root@db01 ~]# useradd -u 440 -g oinstall -G dba -d /usr/oracle oracle [root@db01 ~]# passwd oracle Changing password for user oracle. New password: Retype new password: passwd: all authentication tokens updated successfully. [root@db01 ~]#vi /etc/pam.d/login # near line 14: add session required pam_selinux.so open session required pam_namespace.so 로그인 후 복사 session required pam_limits.so 로그인 후 복사 session optional pam_keyinit.so force revoke session include system-auth -session optional pam_ck_connector.so 로그인 후 복사 # add follows to the end oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 [root@db01 ~]# vi /etc/profile # add follows to the end if [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi |
[5] | Switch to a user "Oracle" and configure some settings. |
[oracle@db01 ~]$ chmod 755 /usr/oracle
[oracle@db01 ~]$mkdir /usr/oracle/app
[oracle@db01 ~]$chmod 775 /usr/oracle/app
[oracle@db01 ~]$mkdir /usr/oracle/oradata
[oracle@db01 ~]$chmod 775 /usr/oracle/oradata
[oracle@db01 ~]$vi ~/.bash_profile # add follows to the end
umask 022
export ORACLE_BASE=/usr/oracle/app # create a temporary directory for installation
[oracle@db01 ~]$mkdir tmp
Install Oracle Database 11g R2. | |
[1] | Login and work with "oracle" user which you create in previous section. |
![]() |
[2] |
Download Oracle Databse 11g R2 for Linux and upload on your server.
http://www.oracle.com/technology/software/products/database/index.html |
[3] | After uploading Oracle files, move to a tmp directory and run an Installer like follows. |
[oracle@db01 ~]$
cd tmp
[oracle@db01 tmp]$ unzip linux.x64_11gR2_database_1of2.zip [oracle@db01 tmp]$ unzip linux.x64_11gR2_database_2of2.zip [oracle@db01 tmp]$ ./database/runInstaller |
[4] | Oracle Installer starts like follows. First, Set your email address and password for receiving some infomation from Oracle like security issues and so on. |
![]() |
[5] | On this example, Select "Install database software only". |
![]() |
[6] | On this example, Select "Single Instance Database ***". |
![]() |
[7] | Select your language. |
![]() |
[8] | Select which edition you install. |
![]() |
[9] | Specify the base directory and files for Oracle. On this example, keep default and proceed to next. |
![]() |
[10] | Specify the installed directory. On this example, keep default and proceed to next. |
![]() |
[11] | Specify the priviledged group. On this example, keep default and proceed to next. |
![]() |
[12] | Checking settings runs automatically for requirements of installing Oracle. Generally, some packages requirements failed like follows, but it's noplobmen because most of them are higher version packages than requirements. Ignore them if the result is the same to the follows. (For only "pdksh", it's not a big ploblem if it is not installed. ) |
![]() |
[13] | The summary is shown for configuration. Click "Finish" if it's OK all. |
![]() |
[14] | Installation starts. |
![]() |
[15] | Following screen is shown, then open a terminal and execute follwong commands with the root user. |
![]() |
[root@db01 ~]# /usr/oracle/oraInventory/orainstRoot.shChanging permissions of /usr/oracle/oraInventory. Adding read,write permissions for group. Removing read,write,execute permissions for world. Changing groupname of /usr/oracle/oraInventory to oinstall. The execution of the script is complete. [root@db01 ~]# 로그인 후 복사 Running Oracle 11g root.sh script... The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /usr/oracle/app/product/11.2.0/dbhome_1 Enter the full pathname of the local bin directory: [/usr/local/bin]: # Enter Copying dbhome to /usr/local/bin ... Copying oraenv to /usr/local/bin ... Copying coraenv to /usr/local/bin ... Creating /etc/oratab file... Entries will be added to the /etc/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of root.sh script. Now product-specific root actions will be performed. Finished product-specific root actions. |
[16] | Installation completed. Click "Close" button. |
![]() |
[17] | Configure some settings for Oracle user. |
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export PATH=$PATH:$ORACLE_HOME/bin [oracle@db01 ~]$ source ~/.bash_profile
[oracle@db01 ~]$rm -rf tmp
Create Oracle Net Listener that is a network service on Oracle. | |
[1]Login with the "oracle" user and input a command "netca" like follows. |
[oracle@db01 ~]$ netca |
[2] | Check a box "Listener Configuration" and go next. |
![]() |
[3] | Go next. |
![]() |
[4] | Set Listner's name. Input any one you like. |
![]() |
[5] | This example goes next with keeping default "TCP". |
![]() |
[6] | Set a port. This example goes next with keeping default. |
![]() |
[7] | If you'd like to create more Listeners, Answer "Yes". This example selects "No". |
![]() |
[8] | Configuration completed. |
![]() |
[9] | Click "Finish" to quit. After finishing, Confirm the status by "netstat" comand. Then you'll see "tnslsnr" listens 1521 port. |

Create a Database. | |
[1] | Login with the "oracle" user and input a command "dbca" like follows. |
[oracle@db01 ~]$ dbca |
[2] | Click "Next" to proceed. |
![]() |
[3] | Select "Create Database" and go next. |
![]() |
[4] | This example selects "General Purpose ***" and go next. |
![]() |
[5] | Set Grobal Database name and SID like follows. Input any one you like. |
![]() |
[6] | This example goes next with keeping default. |
![]() |
[7] | Set passwords. Please set a password for a user for security. |
![]() |
[8] | This example goes next with keeping default "File System". |
![]() |
[9] | Configure recovery settings. If you'd like to change it, Set it. |
![]() |
[10] | Configure sample schema and scripts. If you'd like to add them, Set them. |
![]() |
[11] | Configure memory settings. After setting, go to next tab. |
![]() |
[12] | Specify max processes. |
![]() |
[13] | Set Character setting. |
![]() |
[14] | Select a connection mode. If your server does not have many clients, Select Dedicated server mode. If your server has many clients, Select Shared server mode. |
![]() |
[15] | Confirm parameters for Storage settings. If you'd like to change, set them. |
![]() |
[16] | Configuration completed. Click "Finish" button to finish. |
![]() |
[17] | Confirm settings and Click "OK" if all are OK. |
![]() |
[18] | Database creation starts. |
![]() |
[19] | After completing to create a database, Click "Exit" to finish. |
![]() |
[20] | Access to the URL that is shown on finished screen above with web browser, then follwing screen is shown. Input a user name and password that you configured on the section [6]. |
![]() |
[21] | Just logined. It's possible to manage the database on here. |

Create an init Script to make Oracle start automatically on system booting. | |
[1] | Set environment variables for "oracle" user like follows. |
[oracle@db01 ~]$vi /etc/oratab
# end line: change
db01:/usr/oracle/app/product/11.2.0/dbhome_1: Y [oracle@db01 ~]$vi ~/.bash_profile # add follows to the end export ORACLE_SID=db01 |
[2] | Create an init Script with the root user. |
#!/bin/bash # oracle: Start/Stop Oracle Database 11g R2 # # chkconfig: 345 90 10 # description: The Oracle Database is an Object-Relational Database Management System. # # processname: oracle . /etc/rc.d/init.d/functions LOCKFILE=/var/lock/subsys/oracle ORACLE_HOME=/usr/oracle/app/product/11.2.0/dbhome_1 ORACLE_USER=oracle case "$1" in 'start') if [ -f $LOCKFILE ]; then echo $0 already running. exit 1 fi echo -n $"Starting Oracle Database:" su - $ORACLE_USER -c "$ORACLE_HOME/bin/lsnrctl start" su - $ORACLE_USER -c "$ORACLE_HOME/bin/dbstart $ORACLE_HOME" su - $ORACLE_USER -c "$ORACLE_HOME/bin/emctl start dbconsole" touch $LOCKFILE ;; 'stop') if [ ! -f $LOCKFILE ]; then echo $0 already stopping. exit 1 fi echo -n $"Stopping Oracle Database:" su - $ORACLE_USER -c "$ORACLE_HOME/bin/lsnrctl stop" su - $ORACLE_USER -c "$ORACLE_HOME/bin/dbshut" su - $ORACLE_USER -c "$ORACLE_HOME/bin/emctl stop dbconsole" rm -f $LOCKFILE ;; 'restart') $0 stop $0 start ;; 'status') if [ -f $LOCKFILE ]; then echo $0 started. else echo $0 stopped. fi ;; *) echo "Usage: $0 [start|stop|status]" exit 1 esac exit 0
[root@db01 ~]#chkconfig --add oracle
[root@db01 ~]#chkconfig oracle on

핫 AI 도구

Undresser.AI Undress
사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover
사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool
무료로 이미지를 벗다

Clothoff.io
AI 옷 제거제

AI Hentai Generator
AI Hentai를 무료로 생성하십시오.

인기 기사

뜨거운 도구

메모장++7.3.1
사용하기 쉬운 무료 코드 편집기

SublimeText3 중국어 버전
중국어 버전, 사용하기 매우 쉽습니다.

스튜디오 13.0.1 보내기
강력한 PHP 통합 개발 환경

드림위버 CS6
시각적 웹 개발 도구

SublimeText3 Mac 버전
신 수준의 코드 편집 소프트웨어(SublimeText3)

뜨거운 주제











CentOS에서 HDFS 성능 향상 : CentOS에서 HDFS (Hadoop 분산 파일 시스템)를 최적화하기위한 포괄적 인 최적화 안내서에는 하드웨어, 시스템 구성 및 네트워크 설정에 대한 포괄적 인 고려가 필요합니다. 이 기사는 HDFS 성능을 향상시키는 데 도움이되는 일련의 최적화 전략을 제공합니다. 1. 하드웨어 업그레이드 및 선택 리소스 확장 : 서버의 CPU, 메모리 및 저장 용량을 최대한 많이 늘립니다. 고성능 하드웨어 : 고성능 네트워크 카드 및 스위치를 채택하여 네트워크 처리량을 개선합니다. 2. 시스템 구성 미세 조정 커널 매개 변수 조정 : TCP 연결 번호, 파일 핸들 번호 및 메모리 관리와 같은 커널 매개 변수를 최적화하기 위해 /etc/sysctl.conf 파일을 수정합니다. 예를 들어 TCP 연결 상태 및 버퍼 크기를 조정하십시오

CentOS 종료 명령은 종료이며 구문은 종료 [옵션] 시간 [정보]입니다. 옵션은 다음과 같습니다. -H 시스템 중지 즉시 옵션; -P 종료 후 전원을 끕니다. -R 다시 시작; -대기 시간. 시간은 즉시 (현재), 분 (분) 또는 특정 시간 (HH : MM)으로 지정할 수 있습니다. 추가 정보는 시스템 메시지에 표시 될 수 있습니다.

Centos와 Ubuntu의 주요 차이점은 다음과 같습니다. Origin (Centos는 Red Hat, Enterprise의 경우, Ubuntu는 Debian에서 시작하여 개인의 경우), 패키지 관리 (Centos는 안정성에 중점을 둡니다. Ubuntu는 APT를 사용하여 APT를 사용합니다), 지원주기 (Ubuntu는 5 년 동안 LTS 지원을 제공합니다), 커뮤니티에 중점을 둔다 (Centos Conciors on ubuntu). 튜토리얼 및 문서), 사용 (Centos는 서버에 편향되어 있으며 Ubuntu는 서버 및 데스크탑에 적합), 다른 차이점에는 설치 단순성 (Centos는 얇음)이 포함됩니다.

CentOS에서 IP 주소를 구성하는 단계 : 현재 네트워크 구성보기 : IP Addr 네트워크 구성 파일 편집 : Sudo vi/etc/ifcfg-eths 스크립트/IFCFG-ETH-Scripts 변경 IP 주소 : iPaddr = 라인 변경 서브넷 마스크 및 게이트웨이 (옵션) (옵션) 네트워크 주소 : Su Systemctl CTL CTL CTLCTCTCTCTC TH SYSTEMCCTL

CentOS 시스템 하에서 Gitlab의 백업 및 복구 정책 데이터 보안 및 복구 가능성을 보장하기 위해 CentOS의 Gitlab은 다양한 백업 방법을 제공합니다. 이 기사는 완전한 GITLAB 백업 및 복구 전략을 설정하는 데 도움이되는 몇 가지 일반적인 백업 방법, 구성 매개 변수 및 복구 프로세스를 자세히 소개합니다. 1. 수동 백업 gitlab-rakegitlab : 백업 : 명령을 작성하여 수동 백업을 실행하십시오. 이 명령은 gitlab 저장소, 데이터베이스, 사용자, 사용자 그룹, 키 및 권한과 같은 주요 정보를 백업합니다. 기본 백업 파일은/var/opt/gitlab/backups 디렉토리에 저장됩니다. /etc /gitlab을 수정할 수 있습니다

CentOS 설치 단계 : ISO 이미지를 다운로드하고 부팅 가능한 미디어를 실행하십시오. 부팅하고 설치 소스를 선택하십시오. 언어 및 키보드 레이아웃을 선택하십시오. 네트워크 구성; 하드 디스크를 분할; 시스템 시계를 설정하십시오. 루트 사용자를 만듭니다. 소프트웨어 패키지를 선택하십시오. 설치를 시작하십시오. 설치가 완료된 후 하드 디스크에서 다시 시작하고 부팅하십시오.

CentOS 8에서 네트워크를 다시 시작하려면 다음 단계가 필요합니다. 네트워크 서비스를 중지하고 네트워크 모듈 (R8169)을 다시로드하고 네트워크 서비스 (NetworkManager)를 시작하고 네트워크 상태를 확인하고 (Ping 8.8.8.8) 네트워크 상태를 확인합니다.

Centos는 2024 년에 상류 분포 인 RHEL 8이 종료 되었기 때문에 폐쇄 될 것입니다. 이 종료는 CentOS 8 시스템에 영향을 미쳐 업데이트를 계속받지 못하게합니다. 사용자는 마이그레이션을 계획해야하며 시스템을 안전하고 안정적으로 유지하기 위해 Centos Stream, Almalinux 및 Rocky Linux가 포함됩니다.
