亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

oracle 11gR2 linux下命令行安裝

發布時間:2020-03-26 14:38:41 來源:網絡 閱讀:3414 作者:shenfly231 欄目:關系型數據庫

寫給自己:linux運維路,自己動手趟一遍

參考:http://www.cnblogs.com/yingsong/p/6031235.html
----------------------------
準備工作:
內存及swap要求
1-2G物理內存時 swap是1.5倍
2-16G物理內存時 swap相等
大于16G物理內存時 swap 16G

硬盤空間 >20G

關閉防火墻及SELINUX

修改內核參數:

#vi/etc/sysctl.conf  
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 100128 
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
# sysctl -p

修改用戶限制文件

#vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 102405

創建用戶及組

#groupadd dba 
#useradd -m -g dba oracle
#passwd oracle

創建安裝目錄

#mkdir -p /ora11/product/11.2.0/db_1

數據文件存放目錄

#mkdir -p /ora11/oradata

數據恢復目錄

#mkdir -p /ora11/recovery_data

數據庫創建及使用過程中的日志目錄

#mkdir -p /ora11/oraInventory

修改安裝目錄權限

#chown -R oracle:dba /ora11
#chmod -R 775 /ora11

登錄oracle用戶,設置環境變量

#su - oracle
$vim .bash_profile
export ORACLE_BASE=/ora11
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib64:/usr/lib64:/usr/local/lib64
export ORACLE_SID=rac1
export PATH=$PATH:$ORACLE_HOME/bin
$source .bash_profile   //使設置生效

安裝依賴包
自己整理了一下(全部在這里了)

#yum install binutils compat-libcap1 compat-libstdc++-33 compat-libstdc++-33.i686 \
  elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc.i686 glibc-devel\
   glibc-devel.i686 ksh libgcc libgcc.i686 libstdc++ libstdc++.i686 libaio \
   libaio.i686 libaio-devel libaio-devel.i686 make sysstat

---------------------------------------
將安裝包上傳到oracle用戶的home目錄

鏈接:http://pan.baidu.com/s/1bNvf22 密碼:zxmv

linux.x64_11gR2_database_1of2.zip
linux.x64_11gR2_database_2of2.zip
#unzip linux.x64_11gR2_database_1of2.zip
#unzip linux.x64_11gR2_database_1of2.zip
#cd database
#su - oracle

數據庫安裝配置 文件
/database/response/db_install.rsp 安裝應答配置文件
/database/response/dbca.rsp 創建數據庫應答
/database/response/netca.rsp 建立監聽、本地服務名等網絡設置應答

修改配置文件db_install.rsp,并安裝 (實例名為rac1,密碼為12345678)

#vim /home/oracle/database/response/db_install.rsp
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
oracle.install.option=INSTALL_DB_AND_CONFIG
ORACLE_HOSTNAME=centos6-1
UNIX_GROUP_NAME=dba
INVENTORY_LOCATION=/ora11/oraInventory
SELECTED_LANGUAGES=en,zh_CN
ORACLE_HOME=/ora11/product/11.2.0/db_1
ORACLE_BASE=/ora11
oracle.install.db.InstallEdition=EE
oracle.install.db.isCustomInstall=false
oracle.install.db.customComponents=oracle.server:11.2.0.1.0,oracle.sysman.ccr:10.2.7.0.0,oracle.xdk:11.2.0.1.0,oracle.rdbms.oci:11.2.0.1.0,oracle.network:11.2.0.1.0,oracle.network.listener:11.2.0.1.0,oracle.rdbms:11.2.0.1.0,oracle.options:11.2.0.1.0,oracle.rdbms.partitioning:11.2.0.1.0,oracle.oraolap:11.2.0.1.0,oracle.rdbms.dm:11.2.0.1.0,oracle.rdbms.dv:11.2.0.1.0,orcle.rdbms.lbac:11.2.0.1.0,oracle.rdbms.rat:11.2.0.1.0
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=dba
oracle.install.db.config.starterdb.type=GENERAL_PURPOSE
oracle.install.db.config.starterdb.globalDBName=rac1
oracle.install.db.config.starterdb.SID=rac1
oracle.install.db.config.starterdb.characterSet=AL32UTF8
oracle.install.db.config.starterdb.memoryOption=true
oracle.install.db.config.starterdb.memoryLimit=400
oracle.install.db.config.starterdb.installExampleSchemas=false
oracle.install.db.config.starterdb.enableSecuritySettings=true
oracle.install.db.config.starterdb.password.ALL=12345678
oracle.install.db.config.starterdb.control=DB_CONTROL
oracle.install.db.config.starterdb.dbcontrol.enableEmailNotification=false
oracle.install.db.config.starterdb.automatedBackup.enable=false
oracle.install.db.config.starterdb.storageType=FILE_SYSTEM_STORAGE
oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=/ora11/oradata
oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=/ora11/recovery_data
DECLINE_SECURITY_UPDATES=true

登錄oracle用戶,執行安裝

#su - oracle
$./runInstaller -silent -ignorePrereq -responseFile /home/oracle/database/response/db_install.rsp

其中-silent指的是靜默安裝,-ignorePrereq忽略prerequisite的檢查結果,responseFile是安裝文件。

安裝過程中,如果提示[WARNING]不必理會,此時安裝程序仍在進行,如果出現[FATAL],則安裝程序已經停止了。
打開另一個終端,執行命令

#tail -100 f /u01/app/oracle/oraInventory/logs/installActions......log

可以實時跟蹤查看安裝日志,了解安裝的進度。
---------------------------------------------
出錯后,需要刪除已經創建的目錄,再次安裝

rm -rf /ora11/*
mkdir -p /ora11/product/11.2.0/db_1 /ora11/oradata /ora11/recovery_data /ora11/oraInventory
chown -R oracle:dba /ora11
chmod -R 775 /ora11

-----------------------------------------------------------
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB.   Actual 7910 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 1631 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2017-04-22_09-18-14PM. Please wait ...[oracle@centos6-1 database]$ [WARNING] [INS-32055] The Central Inventory is located in the Oracle base.
   CAUSE: The Central Inventory is located in the Oracle base.
   ACTION: Oracle recommends placing this Central Inventory in a location outside the Oracle base directory.
[WARNING] [INS-30011] The password entered does not conform to the Oracle recommended standards.
   CAUSE: Oracle recommends that the ADMIN password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
   ACTION: Provide a password that conforms to the Oracle recommended standards.
[WARNING] [INS-32055] The Central Inventory is located in the Oracle base.
   CAUSE: The Central Inventory is located in the Oracle base.
   ACTION: Oracle recommends placing this Central Inventory in a location outside the Oracle base directory.
[WARNING] [INS-30011] The password entered does not conform to the Oracle recommended standards.
   CAUSE: Oracle recommends that the ADMIN password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
   ACTION: Provide a password that conforms to the Oracle recommended standards.
You can find the log of this install session at:
 /ora11/oraInventory/logs/installActions2017-04-22_09-18-14PM.log
The following configuration scripts need to be executed as the "root" user.
 #!/bin/sh
 #Root scripts to run

/ora11/oraInventory/orainstRoot.sh
/ora11/product/11.2.0/db_1/root.sh
To execute the configuration scripts:
         1. Open a terminal window
         2. Log in as "root"
         3. Run the scripts
         4. Return to this window and hit "Enter" key to continue  

出現這個的話,說明已安裝成功,則需要按提示操作,操作完返回Enter成功

以root用戶執行下面這二條腳本

/ora11/oraInventory/orainstRoot.sh
/ora11/product/11.2.0/db_1/root.sh

https://192.168.88.61/em 用戶名sys 密碼12345678 連接身份SYSDBA

oracle 11gR2 linux下命令行安裝

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

浑源县| 和硕县| 洪江市| 迭部县| 开鲁县| 正蓝旗| 凤山市| 东兴市| 长兴县| 靖边县| 乐安县| 元氏县| 滁州市| 宽甸| 桦川县| 邢台县| 广水市| 伽师县| 丽水市| 双峰县| 巴东县| 隆回县| 夏河县| 阿瓦提县| 乐东| 高邑县| 正定县| 沙湾县| 遵义市| 忻城县| 乐安县| 潞城市| 旺苍县| 勃利县| 裕民县| 怀化市| 读书| 武冈市| 定州市| 漯河市| 呼图壁县|