亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb

首頁 > 開發 > 綜合 > 正文

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

2024-07-21 02:40:33
字體:
來源:轉載
供稿:網友

  
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

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb
亚洲日本欧美中文幕| 欧美中文字幕在线观看| 岛国视频午夜一区免费在线观看| 亚洲国产精品人久久电影| 欧美日韩国产丝袜美女| 国产精品天天狠天天看| 97免费中文视频在线观看| 日韩精品视频免费专区在线播放| 疯狂欧美牲乱大交777| 国产在线观看一区二区三区| 亚洲国产欧美一区二区丝袜黑人| 精品国产户外野外| 国产mv免费观看入口亚洲| 精品视频9999| 欧美电影免费观看大全| 欧美视频一二三| 国产成人涩涩涩视频在线观看| 97精品欧美一区二区三区| 亚洲国产天堂久久综合| 欧美二区乱c黑人| 亚洲精品456在线播放狼人| 精品少妇v888av| 国产精品视频白浆免费视频| 成人性生交大片免费看小说| 亚洲欧美国产另类| 九九热在线精品视频| 国产色婷婷国产综合在线理论片a| 国产成人免费av| 亚洲无线码在线一区观看| 97视频在线观看免费高清完整版在线观看| 国产精品久久视频| 亚洲成人久久一区| 欧美一区二区大胆人体摄影专业网站| 欧美中文字幕在线观看| 久久精品视频在线| 国产欧美一区二区三区四区| 国产亚洲欧美另类中文| 美日韩丰满少妇在线观看| 日本免费在线精品| 91大神在线播放精品| 国产69精品久久久久99| 亚洲欧美一区二区三区情侣bbw| 欧美成人免费va影院高清| 色偷偷亚洲男人天堂| 亚洲国产精品热久久| 亚洲精品之草原avav久久| 91社区国产高清| 九九久久久久久久久激情| 成人在线视频网站| 日韩午夜在线视频| 日韩h在线观看| 在线日韩欧美视频| 欧美三级欧美成人高清www| 国产一区二区三区网站| 久久久国产一区二区三区| 国产日本欧美在线观看| 欧洲一区二区视频| 另类美女黄大片| 欧美日韩加勒比精品一区| 日韩成人在线视频观看| 超碰日本道色综合久久综合| 欧美在线观看视频| 久久影视电视剧免费网站清宫辞电视| 欧美xxxx综合视频| 国产精品美女无圣光视频| 日韩中文字幕免费| 亚洲精品免费av| 欧美成人免费在线观看| 98精品国产高清在线xxxx天堂| 欧美有码在线观看视频| 久久夜色撩人精品| 国产精品久久久久99| 日韩成人在线播放| 国模私拍视频一区| 欧美日韩电影在线观看| 91精品国产色综合| 亚洲第一视频网站| 精品欧美aⅴ在线网站| 91在线视频一区| 亚洲成人av片在线观看| 日韩欧美国产黄色| 久久精品亚洲国产| 日韩精品中文字幕在线播放| 欧美日韩激情视频| 韩国欧美亚洲国产| 国产成人久久久精品一区| 精品久久久久久中文字幕一区奶水| 精品国产老师黑色丝袜高跟鞋| 欧美高清视频免费观看| 国产精品高潮呻吟视频| 在线观看亚洲视频| 国产三级精品网站| 91夜夜未满十八勿入爽爽影院| 91在线无精精品一区二区| 亚洲欧洲日产国产网站| 国模叶桐国产精品一区| 日本成人黄色片| 亚洲精品日韩欧美| 亚洲男人天堂2019| 亚洲激情在线观看视频免费| 国产欧美婷婷中文| 久久久精品久久久| 亚洲成**性毛茸茸| 性欧美xxxx视频在线观看| 成人精品网站在线观看| 成人性教育视频在线观看| 永久免费看mv网站入口亚洲| 国产精品爱啪在线线免费观看| 成人黄色片网站| 成人黄色片网站| 黄色一区二区在线观看| 国产精品久久久久久av福利软件| 日韩经典中文字幕| 欧美精品情趣视频| 在线观看欧美www| 国产一区在线播放| 国产91精品久久久| 久久久久亚洲精品| 91精品国产高清自在线看超| 91免费看国产| 日本欧美在线视频| 久久久亚洲精选| 亚洲91精品在线观看| 国产精品成人在线| 成人黄色在线免费| 日本午夜在线亚洲.国产| 中文字幕亚洲综合久久| 91在线网站视频| 欧美精品videossex88| 久久久精品在线观看| 国产精品久久久久久久美男| 国产精品1区2区在线观看| 美日韩精品免费视频| 在线看日韩av| 久久福利网址导航| 国产精品欧美一区二区三区奶水| 九九热这里只有精品6| 91成品人片a无限观看| 福利一区福利二区微拍刺激| 一区二区在线视频播放| 亚洲第一网中文字幕| 亚洲精品视频网上网址在线观看| 欧美午夜精品久久久久久人妖| 午夜精品免费视频| 91黑丝在线观看| 成人天堂噜噜噜| 91精品久久久久久久久青青| 日韩欧美亚洲成人| 精品视频在线导航| 日本精品va在线观看| 成人免费看吃奶视频网站| 国a精品视频大全| 日韩在线观看免费全| 精品亚洲国产成av人片传媒| 欧美巨猛xxxx猛交黑人97人| 亚洲韩国日本中文字幕| 国产丝袜视频一区| 亚洲理论电影网| 亚洲国产精品yw在线观看| 国产91色在线播放| 国产91精品久久久久久| 国产日产欧美a一级在线| 欧美激情欧美激情在线五月| 亚洲国产日韩欧美在线动漫|