linux下oracle 10g数据库的安装

教程发布:风哥 教程分类:ITPUX技术网 更新日期:2022-02-12 浏览学习:155

安装oracle

准备工作:1. user || group
group:oinstall dbagroupadd oinstallgroupadd dba
user: oracleuseradd -g oinstall -G dba oracle
1-1 /tmp <-- ( 500 m free ) <-- 1777 chown 777 /tmp1-2 yum install -y libXp-*1-3 mkdir /u1/oracle/product/10g -pchown oracle:oinstall /u1 -R 2. sysctl.conf/etc/sysctl.conffs.file-max = 65536kernel.sem = 250 32000 100 128net.ipv4.ip_local_port_range = 1024 65000net.core.rmem_default = 262144net.core.rmem_max = 262144net.core.wmem_default = 262144net.core.wmem_max = 262144 sysctl -p3. install java/share/rhel_source/source/lamp/tomcat_source/jdk-6u18-ea-bin-b02-linux-i586-09_sep_2009.bin1.cp jdk-6u18-ea-bin-b02-linux-i586-09_sep_2009.bin /usr/2. chmod 755 jdk-6u18-ea-bin-b02-linux-i586-09_sep_2009.bin3. ./jdk-6u18-ea-bin-b02-linux-i586-09_sep_2009.bin4. mv jdk1.6.... /usr/java------------------------> confirm /u1 --> signal partitiondf -h -->/dev/sda5 48G 180M 45G 1% /u1----------------------
4. system envvi /etc/profileJAVA_HOME=/usr/javaORACLE_SID=gzdb# oracle ( name ) == ORACLE_SIDORACLE_BASE=/u1/oracleORACLE_HOME=/u1/oracle/product/10gORACLE_BIN=$ORACLE_HOME/binNLS_LAN="AMERICAN_AMERICA.AL32UTF8"NLS_LANG="AMERICAN_AMERICA.AL32UTF8"PATH=$PATH:$ORACLE_BINUTIME=999999999999999999999export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC JAVA_HOME ORACLE_SID ORACLE_HOME ORACLE_BASE NLS_LAN NLS_LANG---> source /etc/profile
5. ---> open 6000 port [打开远程登录端口,远程安装]vi /etc/gdm/custom.conf[security]
DisallowTCP=falsegdm-restart
6. install oracle[root@station10 ~]# xhost + 10.1.1.10 /share/oracle/10201_database_linux32.zip <- install source unzip 10201_database_linux32.zip -d /usr/src/ [最好固定IP] a. su - oracleb. english language c. cd /usr/src/databased. export LANG=en_US; export LANGUAGE=en_US;e. DISPLAY=10.1.1.10:0 ./runInstaller &[也可以本地重启图形界面 gdm-restart 以oracle用户,英文环境登录,直接./runInstaller] 安装过程中: 打开 scott hr 设个密码123 123并按提示执行二行命令,以root身份执行 -over-notice:[oracle@station10 database]$ Starting Oracle Universal Installer...Checking installer requirements...Checking operating system version: must be redhat-3, SuSE-9, redhat-4, redhat-5, UnitedLinux-1.0, asianux-1 or asianux-2 Passed <---- no passed -->/etc/redhat-release [redhat5.5 需要修改此处才能安装]
Red Hat Enterprise Linux Server release 4 (Tikanga)
-----------------------------

listener control user --> oracle --> lsnrctl [ start || stop ] --> 1521 compile --> sqlplus patch /share/oracle/rlwrap-0.30.tar.gztar xvf /share/oracle/rlwrap-0.30.tar.gz -C /usr/src/./configure && make && make installvi /etc/bashrcalias sqlplus='/usr/local/bin/rlwrap /u1/oracle/product/10g/bin/sqlplus'source /etc/bashrctest admin login into oraclesqlplush /nologinsqlplus / as sysdbacp ftp:login.sql --> /home/oracle/

本文标签:
网站声明:本文由风哥整理发布,转载请保留此段声明,本站所有内容将不对其使用后果做任何承诺,请读者谨慎使用!
【上一篇】
【下一篇】