Heim  >  Artikel  >  Datenbank  >  CentOS 4.4安装Oracle 10g创建帐户与配置Linux内核参数

CentOS 4.4安装Oracle 10g创建帐户与配置Linux内核参数

WBOY
WBOYOriginal
2016-06-07 16:58:421022Durchsuche

给大家推荐一款很不错的CentOS 4.4安装oracle 10g系统很有学习价值,这里我主要讲解安装oracle 10g系统的应用,包括介绍安装orac

给大家推荐一款很不错的CentOS 4.4安装Oracle 10g系统很有学习价值,这里我主要讲解安装oracle 10g系统的应用,,包括介绍安装oracle 10g知识等方面。CentOS4.4安装oracle 10g R2 笔记 安装内存及硬盘空间需求内存512MB,SWAP1GB, Oracle 10g2.5G,数据库1.2GB ,tmp400M.

1.创建 oracle 10g 组和用户帐户
usrsbingroupadd oinstall
usrsbingroupadd dba
usrsbinuseradd -m -g oinstall -G dba oracle
id oracle
passwd oracle

2.创建目录(根据需要)
mkdir -p personu01apporacle
mkdir -p personu02oradata
chown -R oracleoinstall personu01apporacle personu02oradata
chmod -R 775 personu01apporacle personu02oradata

3.oracle 10g配置 Linux 内核参数
vi etcsysctl.conf #增加或修改
#add for oraclekernel.shmall = 2097152kernel.shmmax = 2147483648kernel.shmmni = 4096
# semaphores semmsl, semmns, semopm, semmnikernel.sem = 250 32000 100 128fs.file-max = 65536net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144
sbinsysctl -p

4.oracle 10g用户的环境变量
su - oraclevi  .bash_profile ,添加
export ORACLE_BASE=personu01apporacle
export ORACLE_HOME=personu01apporacleproduct10.2.0
export ORACLE_SID=orcl
export PATH=$PATH$ORACLE_HOMEbin
bash_profile

5.oracle 10g软件下载
1).进入xWindows
2).另外如果Linux版本不对的话,也需要修改cat etcRedHat-release,以下给出一个可用的参考
Red Hat Enterprise Linux AS release 3 (Taroon) #后注,10gR2已支持AS4
3).Download the software
打开http下载软件,

6. oracle 10g软件安装
oracle 10g软件解压相关压缩包,cd ..runInstaller#如出现Xlib connection to 0.0 refused by server错误,可以运行xhost + ,如果不是在本地安装,可能还需要指定DISPLAY=IP0.0 & export DISPLAY安装时根据说明操作即可,在选择字符集时,可选Unicode standard utf-8 al32utf8,并选择Create database with sample schemas; 另外在Specify database schema passwords处,选择Use the same password for all the accounts(根据需要)#如出现usrliblibstdc++.so.5 No such file or directory错误,可以安装compat-libstdcxxx.rpm

7.oracle 10g创建数据库
#dbac根据提示操作即可.另外在Database file localtions处,选择第二项,并指定文件夹位置,并在下一对话框中选中Enable Archiving,并在后面选
择Sample Schemas

8.启动Enterprise Manager dbconsole
emctl start dbconsole #启动emctl status dbconsole #查看状态#如果报错OC4J Configuration issue. personu01apporacleproduct10.1.0db_1oc4jj2eeOC4J_DBConsole_localhost.localdomain_orcl10g not found. #需要确认安装时用的 ORACLE_SID和系统 ORACLE_SID变量相同,这个应该在前面的.bash_profile中已经设置了打开 httpip5500emusersystempassword前面安装时有设置#从windows下用IE浏览器登录 10g 的em, 按钮是口口这样的方框.#解决办法如下打开IE浏览器, 选择'工具–Internet选项–常规, 选择 语言, 默认只有 中文, 选择  添加 , 加入 英语(美国) , 调整顺序, 把“英语(美国)”移动到最上面。再重新打开 httpip1158em 即可

linux

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn