动态网站制作指南 [  QQ表情  ]
[ 投票调查 ]
[ 企业邮箱 ]
[ 网站空间 ]
网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
ASP源码 | .Net源码 | PHP源码 | JSP源码 | JAVA源码 | CGI源码 | VB源码 | C++源码 | Delphi源码 | PB源码 | VF源码 | 汇编 | 服务器
电脑书籍下载:程序设计书籍 | 数据库教程书籍 | 平面与多媒体书籍 | 网络通讯书籍 | 系统管理书籍 | 网络安全书籍 | 认证考试书籍
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 网络编程 > 数据库 > Oracle教程
Tag:注入,存储过程,分页,安全,优化,xmlhttp,fso,jmail,application,session,防盗链,stream,无组件,组件,md5,乱码,缓存,加密,验证码,算法,cookies,ubb,正则表达式,水印,索引,日志,压缩,base64,url重写,上传,控件,Web.config,JDBC,函数,内存,PDF,迁移,结构,破解,编译,配置,进程,分词,IIS,Apache,Tomcat,phpmyadmin,Gzip,触发器,socket
数据库:数据库教程,数据库技巧,Oracle教程,MySQL教程,Sybase教程,Access教程,DB2教程,数据库安全,数据库文摘
文章搜索服务
邮件订阅
输入你的邮件地址,
你将不会错过任何关于:
[ Oracle教程 ]的信息



本月文章推荐
.Oracle 数据库 10g:数据库技术的.
.oracle数据库 exp/imp命令详解.
.Oracle9i新特性:iSQLPLUS.
.配置shark与oracle的连接.
.讲解Oracle数据库应用程序中RAID.
.ORACLE数据库的启动和关闭.
.Oracle Database 10g:自动共享内.
.设置 XFree86 激活档 ( .xinitrc.
.ORACLE SQL性能优化系列(三).
.logminer使用步骤一(在oracle加载.
.ORACLE常见错误代码的分析与解决.
.讲解Oracle系统中用户权限的赋予.
.ORACLE备份策略(ORACLE BACKUP S.
.终于以一种奇怪的方式搞定了Orac.
.Oracle数据库共享连接和专用连接.
.Oracle诊断案例:Job任务停止执行.
.在RedHat7.0下安装Oracle的经历.
.ORACLE用户自定义备份与恢复笔记.
.Ellison:Oracle将在技术圈地中胜.
.10gR2使用RMAN恢复临时表空间的增.

Oralcle 10g Fedora Core X上快速安装指南

发表日期:2008-2-9 |



  
Home -> Oracle -> Oracle 10g release 1 (10.1.0.2) on Fedora core 1
Oracle Database 10g release 1 (10.1.0.2) installation on Fedora core 1
Please note that Oracle Database 10g is not certified to run on Fedora Linux, therefore you should not use this combination on a prodUCtion server. You can examine Oracle certification matrix at Metalink
Contents
1. Downloading and unpacking installation files
2. Preparing your system
2.1 Steps to perform as root user
2.2 Steps to perform as oracle user
3. Running the installer
4. Post-installation steps
4.1 Starting database services
4.2 Shutting down database services
4.3 Automating oracle startup and shutdown
1. Downloading and unpacking installation files
Download Oracle Database 10g from Oracle Technology Network. Four files are available:

ship.ccd.cpio.gz - Oracle 10g Companion CD
ship.client.cpio.gz - Oracle 10g Client
ship.crs.cpio.gz - Oracle 10g Cluster Ready Services
ship.db.cpio.gz - Oracle 10g Database
Only ship.db.cpio.gz is required in order to install the database.
Once you downloaded the file, unpack it:
gunzip ship.db.cpio.gz
cpio -idmv<ship.db.cpio
All four installation files unpack to Directory named "Disk1", so rename directory before you eventually unpack another file.
You may want to create Oracle installation CD set from unpacked installation files. As I don't have a CD-burner on any of my linux boxes, I created ISO images using
mkisofs -JR -l -o ship.db.iso Disk1/
and burned CDs on Windows machine.
2. Preparing your system
2.1 Steps to perform as root user
Install following fedora packages using rpm -ivh package_name:
From Fedora-core Disk 1:

setarch-1.0-1.i386.rpm
From Fedora-core Disk 2:

openmotif-2.2.2-16.1.i386.rpm
From Fedora-core Disk 3:

compat-libstdc++-7.3-2.96.118.i386.rpm
compat-db-4.0.14-2.i386.rpm
compat-gcc-7.3-2.96.118.i386.rpm
compat-libgcj-7.3-2.96.118.i386.rpm
compat-libstdc++-devel-7.3-2.96.118.i386.rpm
compat-libgcj-devel-7.3-2.96.118.i386.rpm
Now we have to make Oracle installer think that we have one of the supported distributions: Create a backup of your /etc/redhat-release file, an change its contents:
# cp /etc/redhat-release /etc/redhat-release.orig
# echo "Red Hat Enterprise Linux AS release 3 (Taroon)" >
/etc/redhat-release
Change kernel parameters by adding the following lines in /etc/sysctl.conf:
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 32768 65000
Update kernel configuration:
[root@fedora root]# sysctl -e -p /etc/sysctl.conf
Add the following lines to /etc/security/limits.conf file:
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536
Add the following line to the /etc/pam.d/login file, if it does not already exist:

session required /lib/security/pam_limits.so
Create user and groups that will own oracle installation. In this exaple the username will be oracle:
[root@fedora]# groupadd oinstall
[root@fedora]# groupadd dba
[root@fedora]# useradd -g oinstall -G dba oracle
[root@fedora]# passwd oracle
Create directories in which oracle software will be installed. Oracle recommends OFA - Optimal Flexible Architecture (see oracle installation guide), but in this example everything will be installed under /home/oracle:
[root@fedora]# mkdir -p /home/oracle/product/10g
[root@fedora]# chown -R oracle.oinstall /home/oracle/*
2.2 Steps to perform as oracle user
Make gcc296 default compiler for user oracle by creating symbolic link. It is important that the directory containing the link (/home/oracle/bin) is listed in the PATH variable before /usr/bin.
[oracle@fedora oracle]$ mkdir /home/oracle/bin
[oracle@fedora oracle]$ cd /home/oracle/bin
[oracle@fedora bin]$ ln -s /usr/bin/gcc296 gcc
Put the following lines in oracle user .bash_profile
eXPort ORACLE_BASE=/home/oracle
export ORACLE_HOME=/home/oracle/product/10g
export ORACLE_SID=orcl
export ORACLE_TERM=xterm
export PATH=$HOME/bin:$ORACLE_HOME/bin:$PATH
ulimit -u 16384 -n 65536
#
# change this NLS settings to suit your country:
# example:
# german_germany.we8iso8859p15, american_america.we8iso8859p1 etc.
#
export NLS_LANG='croatian_croatia.ee8iso8859p2'
Since I am from Croatia, I use Croatian national language support (NLS_LANG, NLS_DATE_LANGUAGE, NLS_SORT and NLS_DATE_FORMAT). You should set these variables to suit your needs.
Listing of valid Oracle NLS Data parameters including supported languages, territories and storage character sets can be found here.
In this example ORACLE_SID=orcl. You will be prompted by installer to specify SID and global database name, and you should replace the SID in .bash_profile with your own SID.
Update environment to include new variables:

[oracle@fedora]$ source /home/oracle/.bash_profile
Everything is now ready to start the oracle installer.
3. Running the installer
If you have Oracle 10g Database CD, login as root and mount it:
[root@fedora]# mount /mnt/cdrom
Oracle installer needs to be run from Xwindows, so start Xwindows and login as user oracle.
Make sure that your envionment is correctly set up:
[oracle@fedora oracle]$ setgrep ORACLE
ORACLE_BASE=/home/oracle
ORACLE_HOME=/home/oracle/product/10g
ORACLE_SID=orcl
ORACLE_TERM=xterm
[oracle@fedora oracle]$ gcc --version
2.96
Start the installer:
[oracle@fedora oracle]$ /mnt/cdrom/runInstaller
Note: if you get thew following error when running the installer from CD-ROM
bash: /mnt/cdrom/runInstaller: /bin/sh: bad interpreter: Permission denied
you should check how your CD-ROM was mounted. It should be mounted by user root, and the information about the filesystem in /etc/fstab sohuld look similar to this:
/dev/cdrom /mnt/cdrom auto exec,noauto,owner,kudzu,ro 0 0
Now the installer should be up and running.
4. Post-installation steps
First we want to change back the /etc/redhat-release file:
[root@fedora]# cp /etc/redhat-release.orig /etc/redhat-release
Next, modify the /etc/oratab file in order to use database startup and shutdown scripts provided by oracle. Find the line in /etc/oratab that looks similar to this:
*:/home/oracle/product/10g:N
Entries are of the form: $ORACLE_SID:$ORACLE_HOME:<
NY>
Change the last field (N) to Y, and you will be able to start the database using dbstart utility.
4.1. Starting database services
Note: If you just installed Oracle, the database, TNS listener and enterprise manager are already running.
Start TNS Listener:

[oracle@fedora oracle]$ lsnrctl start
You can start the database via dbstart utility:
[oracle@fedora oracle]$ dbstart
or via SQL*Plus:
[oracle@fedora oracle]$ sqlplus / as sysdba

SQL*Plus: Release 10.1.0.2.0 - Production on Sat Feb 21 18:05:43 2004

Copyright (c) 1982, 2004, Oracle. All rights reserved.

Connected to an idle instance.

SQL> startup
ORACLE instance started.

Total System Global Area 188743680 bytes
Fixed Size 778036 bytes
Variable Size 162537676 bytes
Database Buffers 25165824 bytes
Redo Buffers 262144 bytes
Database mounted.
Database opened.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 -
Production With the Partitioning, OLAP and Data Mining options
[oracle@fedora oracle]$
Start Enterprise manager server:
[oracle@fedora oracle]$ emctl start dbconsole
4.2. Stopping database services
Stop Enterprise manager server:
[oracle@fedora oracle]$ emctl stop dbconsole
You can stop the database via dbshut utility:
[oracle@fedora oracle]$ dbshut
or via SQL*Plus:
[oracle@fedora oracle]$ sqlplus / as sysdba

SQL*Plus: Release 10.1.0.2.0 - Production on Sat Feb 21 18:11:23 2004

Copyright (c) 1982, 2004, Oracle. All rights reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 -
Production With the Partitioning, OLAP and Data Mining options

SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 -
Production With the Partitioning, OLAP and Data Mining options
[oracle@fedora oracle]$
Stop TNS listener:
[oracle@fedora oracle]$ lsnrctl stop
4.3 Automating oracle startup and shutdown
To automatically start/shut oracle database during system startup/shutdown you need to write a script in /etc/rc.d/init.d directory. You can view or Download an example script.
Copy the script to /etc/rc.d/init.d as root user, edit environment variables to match your settings and modify its permissions:
[root@fedora root]# chown root.root /etc/rc.d/init.d/ora10
[root@fedora root]# chmod 755 /etc/rc.d/init.d/ora10
The script I wrote uses chkconfig utility to simplify service management. It is configured to start oracle services in runlevels 3 and 5,with start priority 95 and stop priority 1.
Initialize new service:
[root@fedora root]# chkconfig ora10 reset
[root@fedora root]# chkconfig --list ora10
ora10 0:off 1:off 2:off 3:on 4:off 5:on 6:off
Now oracle services will be automatically started when entering runlevels 3 and 5, and shut down when entering any other runlevel. For more information on chkconfig utility refer to its man page.
To manually start/stop oracle services you can use
[root@fedora root]# service ora10 start
and
[root@fedora root]# service ora10 stop
Hope this helps.
Denis.
Home ->
oracle -> Oracle 10g release 1 (10.1.0.2) on Fedora core 1




--------------------
HAPPYMENG
上一篇:ORACLE之常用FAQ V1.0 (3) 人气:322
下一篇:ORACLE之常用FAQ V1.0 (5) 人气:336
浏览全部Oracle教程的内容 Dreamweaver插件下载 常用网页广告代码全集
  最新网站源码 最新软件下载
2008-7-25 WikyBlog v1.7.0.1 多国语言版
2008-7-25 乐彼网上开店系统(56770 Eshop)
2008-7-25 赛特网站管理系统sitecms v3.6.0
2008-7-25 Modoer多功能点评系统 v1.0.1 Bu
2008-7-25 Shangducms Teamsuit! v1.1.0 开
2008-7-25 幻影动漫网视频系统(Ppdong) v1.
2008-7-25 acteecompany企业网站建设系统 v
2008-7-25 恒浪整合管理系统 ims v4.1 ACCE
2008-7-25 艺术图库系统 v1.0 beta
2008-7-19 UltraEdit 简体中文增强版 14.10
2008-7-19 CentOS 5.2 i386 LiveCD
2008-7-19 Snapture多功能相机 v1.4
2008-7-19 iAcces中文输入法 v1.0Build016
2008-7-19 Cookbook烹饪秘籍 v2.5
2008-7-19 苹果专用DVD转换工具 v1.1.59汉化
2008-7-19 Modem修复软件ZiPhone修改版04.0
2008-7-19 AgileMessenger即时通讯工具美化
2008-7-19 Sketches画图软件 v0.7b6破解版


  发表评论
姓 名: 验证码:
内 容:
[ 汉字翻译拼音 ] [ 广告代码 ] [ 符号对照表 ] [ 进制转换 ] [ 经典小工具 ] [ 个税计算 ] [ 汉字简繁转换 ] [ 普通单位换算 ] [ 公制单位换算 ]
[ 生辰老黄历 ] [ 国内电话区号 ] [ 国家代码与域名缩写 ] [ 文字加密解密 ] [ 健康查询 ] [ 万年历 ] [ 手机号码查询 ] [ ip搜索 ] [ Google PR查询 ]
业务联系 | 广告刊登 | 频道合作 | 投稿荐稿 | 联系方式 | 加入收藏 | RSS订阅
Copyright © 2000-2008 www.knowsky.com All rights reserved | 网络实名:动态网站制作指南 | 沪ICP备05001343号