install oracle 11g for linux
prepare an oracle install document
some , as vi.... that copy from document
but in this document some parameters are wrong , such as /etc/sysctl.conf net.core.rmem_default = 4194304(this is right)
[root@centos4 /]# groupadd oinstall
[root@centos4 /]# groupadd dba
[root@centos4 /]# useradd oracle
[root@centos4 /]# passwd oracle
Changing password for user oracle.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@centos4 /]# cd /
[root@centos4 /]# mkdir -p /myusr1/oracle
[root@centos4 /]# userdel oracle
[root@centos4 /]# useradd -g oinstall -G dba -d /myusr1/oracle oracle
[root@centos4 /]# passwd oracle
Changing password for user oracle.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@centos4 /]#
[root@centos4 /]# chown -R oracle:oinstall myusr1
[root@centos4 /]# id nobody
uid=99(nobody) gid=99(nobody) groups=99(nobody) ----檢查預設nobody是否存在
[root@centos4 /]# vi /etc/sysctl.conf
##內容如下
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 262144
net.ipv4.tcp_wmem = 262144 262144 262144
net.ipv4.tcp_rmem = 4194304 4194304 4194304
[root@centos4 /]# /sbin/sysctl -p ---reboot sysctl profile
[root@centos4 /]# vi /etc/security/limits.conf ---參考安裝文件
[root@centos4 /]# su - oracle
[oracle@centos4 ~]$ pwd
/myusr1/oracle
[oracle@centos4 ~]$ ls -la
[oracle@centos4 ~]$ vi .bash_profile ---增加
ORACLE_BASE=/myusr1
ORACLE_HOME=/myusr1/oracle
ORACLE_SID=wangke
PATH=$ORACLE_HOME/bin/:$PATH
export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH
[oracle@centos4 ~]$ exit
logout
[root@centos4 /]# su - oracle
[oracle@centos4 ~]$ env | grep ORA
ORACLE_SID=wangke
ORACLE_BASE=/myusr1
ORACLE_HOME=/myusr1/oracle
[root@centos4 myusr1]# chown -R oracle:oinstall oraInventory
[root@centos4 myusr1]# chmod 770 oraInventory
[oracle@centos4 ~]$ su - root
Password:
[root@centos4 ~]# /myusr1/oraInventory/orainstRoot.sh
[root@centos4 myusr1]# /myusr1/oraInventory/orainstRoot.sh
Changing permissions of /myusr1/oraInventory to 770.
Changing groupname of /myusr1/oraInventory to oinstall.
The execution of the script. is complete
[root@centos4 myusr1]# /myusr1/oracle/root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /myusr1/oracle
Enter the full pathname of the local bin directory: [/usr/local/bin]:
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.
[root@centos4 myusr1]#
install software over
-------------------------------------
configure listener
[root@centos4 myusr1]# netca
>>>>>> DEFAULT NEXT
[root@centos4 myusr1]# dbca
>>>>>> character sets choose unicode(al32utf8)
start oracle service
lsnrctl start
sqlplus /nolog
sql>connect / as sysdba
sql>startup
shutdown oracle service
lsnrctl stop
sqlplus /nolog
sql>connect / as sysdba
sql>shutdown immediate
shutdown normal/shutdown immediate/shutdown abort
su - oracle edit .bash_profile add stty erase ^H
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12801008/viewspace-557744/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 11g RAC Silent Install For NFSOracleNFS
- Oracle Linux 7.1 silent install 19cOracleLinux
- Oracle Linux 6.7 靜預設安裝Oracle 11gOracleLinux
- Oracle Linux 7.1 silent install 19C RACOracleLinux
- 【OCP最新題庫解析(052)--題9】You want to install Oracle 11g databaseOracleDatabase
- Oracle之11g DataGuardOracle
- Windows oracle 11g rman備份恢復到linux系統WindowsOracleLinux
- Mysql 5.7.21 install for LinuxMySqlLinux
- Oracle 11G 安裝文件Oracle
- benchmark 壓測Oracle 11gOracle
- sysbench壓測Oracle 11gOracle
- linux之--install超時Linux
- 02. Install redis on LinuxRedisLinux
- Centos7.2_Oracle12.1.0.2_RAC_installCentOSOracle
- How to Install EMC PowerPath on Oracle VM 3.4Oracle
- Oracle 11G 安裝 bbed 工具Oracle
- oracle 11g data guard維護Oracle
- oracle 11g OEM在哪裡找到???Oracle
- oracle 11g 常用命令Oracle
- Oracle 11g刪除庫重建Oracle
- Oracle 11G 修改scan_ipOracle
- Oracle 11G RAC叢集安裝(3)——安裝OracleOracle
- Oracle 11g RAC 監聽日常管理Oracle
- Oracle 11g 052題庫解析1Oracle
- oracle 11g datagurd主從切換Oracle
- ORACLE10G升級11GOracle
- Oracle 11g RAC手動新增serviceOracle
- Oracle 11g dg broker自動failoverOracleAI
- Automatic Diagnostic Repository (ADR) with Oracle Net for 11gOracle
- Oracle 11g關閉開啟AWROracle
- oracle 11g 系統審計功能Oracle
- Oracle:Redhat 7 + Oracle RAC 11g 安裝 bug 總結OracleRedhat
- 【Oracle】Linux7安裝11g 86%報錯:Error in invoking target 'agent nmhs' of makefileOracleLinuxError
- Install linux mint apt to Ubuntu 18.04 LTSLinuxAPTUbuntu
- Linux下python pip install失敗LinuxPython
- install java javac on kali linux, raspberry piJavaLinux
- Oracle 11g 重新建立控制檔案Oracle
- Oracle Data Pump 11G 資料泵元件Oracle元件
- Oracle 11g dataguard 配置簡約步驟Oracle