免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1229 | 回复: 0
打印 上一主题 下一主题

Oracle Database10g Installation in Linux AS3 Updat [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-03-14 16:42 |只看该作者 |倒序浏览
****************************************
Execute the following commands as root:
****************************************
查询主机内存
grep MemTotal /proc/meminfo
1.增加用户组和用户
/usr/sbin/groupadd oinstall
/usr/sbin/groupadd dba
/usr/sbin/useradd -m -g oinstall -G dba oracle
id oracle
2.修改用户名
passwd oracle
3.创建安装目录
mkdir -p /u01/app/oracle
chown -R oracle:oinstall /u01/app/oracle
chmod -R 775 /u01/app/oracle
4.修改系统配置文件
cat >> /etc/sysctl.conf
5. 修改硬件配置文件
cat >> /etc/security/limits.conf > /etc/pam.d/login



*********************************************
Execute the following commands as oracle.
*********************************************
7.创建存放数据库安装文件的目录
mkdir 10gR2_db
8.解压数据库安装文件
cd 10gR2_db
unzip 10201_database_linux32.zip
                     *************************************
8_1.修改用户配置文件(可选:否则每次启动数据库必须手工导入)
                     *************************************
vi .bash_profile
export ORACLE_BASE=/home/10gR2_db
export ORACLE_HOME=/home/oracle/oracle/product/10.2.0/db_1
export ORACLE_SID=ydeip
export PATH=$PATH:$ORACLE_HOME/bin:$HOME/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib:/usr/lib:/usr/local/lib
export NLS_LANG="Simplified Chinese_china".ZHS16GBK
source $HOME/.bash_profile
9. 开始安装数据库
启动VNC
vncserver
cd /home/oracle/10gR2_db/database
./runInstaller
10.数据库的启动和关闭方法(必须全部启动)
*****************下面的必须启动**************************************
Starting and Stopping the Database:
/home/oracle/oracle/product/10.2.0/db_1/bin/sqlplus
Enter user-name: / as sysdba
SQL> startup
ORACLE instance started.
SQL> shutdown
Database closed.
SQL> exit
Starting and Stopping the Listener:
/home/oracle/oracle/product/10.2.0/db_1/bin/lsnrctl start
/home/oracle/oracle/product/10.2.0/db_1/bin/lsnrctl stop
Starting and Stopping iSQL*Plus:
/home/oracle/oracle/product/10.2.0/db_1/bin/isqlplusctl start
/home/oracle/oracle/product/10.2.0/db_1/bin/isqlplusctl stop
*******************下面的可选********************************************
Starting and Stopping Oracle Enterprise Manager Database Control:
/home/oracle/oracle/product/10.2.0/db_1/bin/emctl start dbconsole
/home/oracle/oracle/product/10.2.0/db_1/bin/emctl stop dbconsole


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/12347/showart_85227.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP