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

首頁 > 數據庫 > Oracle > 正文

Oracle 9i Installation on Red Hat Linux

2024-08-29 13:49:26
字體:
來源:轉載
供稿:網友

  
 

1, UncomPRess and unpack downloaded files

 

One step procedure (uses less disk space and is faster):
  zcat lnx_920_disk1.cpio.gz cpio -idmv
  zcat lnx_920_disk2.cpio.gz cpio -idmv
  zcat lnx_920_disk3.cpio.gz cpio -idmv

Two step procedure:
  # Uncompress
       gunzip lnx_920_disk1.cpio.gz lnx_920_disk2.cpio.gz lnx_920_disk3.cpio.gz   linux9i_Disk3.cpio.gz  
  # Unpack the downloaded files: 
  cpio -idmv < lnx_920_disk1.cpio 
  cpio -idmv < lnx_920_disk2.cpio 
  cpio -idmv < lnx_920_disk3.cpio

 

Now you should have 3 Directories containing installation files:
Disk1
Disk2
Disk3

 

2, Swap space

In order to perform a typical Oracle 9i installation and to create a simple prototype database, Oracle says that you need a minimum of 512MB of RAM for the Oracle9i (9.0.1) Server, and the amount of disk space (swap space) should be equal to twice the amount of RAM or at least 400 MB, whichever is greater.

Check your memory by executing:
grep MemTotal /proc/meminfo

Check swap space by executing:
cat /proc/swaps  or  swapon –s

You can also add temporary swap space by creating a temporary swap file instead of using a raw device. Here is the procedure:

As root:
dd if=/dev/zero of=tmpswap bs=1k count=900000
chmod 600 tmpswap
mkswap tmpswap
swapon tmpswap

To disable the temporary swap space execute the following commands:

As root:
swapoff tmpswap
rm tmpswap

3, Shared Memory

I increased the shmmax setting for the kernel by executing the following command:

As root:
# cat /proc/sys/kernel/shmmax
33554432
# echo `eXPr 1024 /* 1024 /* 1024` > /proc/sys/kernel/shmmax

 

It is recommended to increase the shmmax setting permanently for Oracle. So if you want to increase the maximum shared memory size permanently, add the following line to the /etc/sysctl.conf file:
kernel.shmmax=1073741824

4,/tmp Space

The Oracle Universal Installer requires up to 400 MB of free space in the /tmp directory. If you do not have enough space in the /tmp directory,  you can temporarily create a tmp directory in another filesystem. Here is how you can do this:

As root:
mkdir /<AnotherFilesystem>/tmp
chown root.root /<AnotherFilesystem>/tmp
chmod 1777 /<AnotherFilesystem>/tmp
export TEMP=/<AnotherFilesystem>/tmp      # used by Oracle
export TMPDIR=/<AnotherFilesystem>/tmp     # used by Linux programs like the linker "ld"
 
When you are done with your Oracle installation, shutdown Oracle and remove the temporary directory:
rmdir /<AnotherFilesystem>/tmp
unset TEMP
unset TMPDIR

5,Oracle Disk Space

You will need about 2.5 GB for the database software. If you perform a typical database installation and not a customized database installation, then you will need about 3.5 GB of disk space.

6,"binutils" Issue   (if you fond following error )

Q: "Error invoking target install of makefile /opt/oracle/prodUCt/9.0.1/plsql/lib/ins_plsql.mk" 

A: This obviates the need to change binutils

download the following binutil RPM version and downgrade binutil on the Oracle server:
FTP://ftp.redhat.com/pub/redhat/linux/7.0/en/os/i386/RedHat/RPMS/binutils-2.10.0.18-1.i386.rpm
As root:
rpm -Uvh --force --nodeps binutils-2.10.0.18-1.i386.rpm
When you are done with the Oracle installation, you upgrade your binutil RPM back to the version you had before you downgraded:
E.g. on a Red Hat 7.2 server:
rpm -Uvh --force --nodeps binutils-2.11.90.0.8-9.i386.rpm

7,Development Packages (RPMs)

You will need the following RPM development packages for the Oracle installer to compile the Oracle modules etc.:
gcc
cpp
glibc-devel
compat-libstdc++
kernel-headers (on RH 7.1, 7.2, 2.1AS)
glibc-kernheaders (on RH 7.3, 8.0)
binutils

Otherwise you'll get an error message like:
Error in invoking target ntcontab.o of makefile /opt/oracle/product/9.2.0/network/lib/ins_net_client.mk

To find out if you have these development packages installed, execute the following command:
# rpm -q gcc cpp glibc-devel kernel-headers binutils

8,JDK

I successfully installed Oracle9iR2 without installing JDK on the system.Oracle comes now with its own java. This means that you don't have to follow these steps which were required for older Oracle versions:

    Download JDK 1.3.1 or Blackdown 1.1.8_v3: (I usually used Blackdown)
      http://www.blackdown.org
      http://java.sun.com

    According to JDK documentation, install JDK under /usr/local .
       Then create a symbolic link to the JDK under /usr/local/java :

    As root:
    bzip2 -dc jdk118_v3-glibc-2.1.3.tar.bz2 tar xf - -C /usr/local
    ln -s /usr/local/jdk118_v3 /usr/local/java

9,Create Oracle User Accounts

As root:

groupadd dba
groupadd oinstall
useradd -g oinstall -G dba oracle
passwd oracle

Oinstall is not needed when the same people will be maintaining the software and the database.  In this situation, it will create more work and add an extra layer of complexity to the maintenance of the installation. 

Recommendation:  if you don't need the oinstall group for added security, 
just install using the dba group. 

10,Create Oracle Directories

In this example, make sure that the /opt filesystem is large enough. If /opt is not on a separate filesystem, then make sure the root filesystem "/" has enough space.

As root:

mkdir /opt/oracle
mkdir /opt/oracle/product
mkdir /opt/oracle/product/9.2.0
chown -R oracle.oinstall /opt/oracle

mkdir /var/opt/oracle
chown oracle.dba /var/opt/oracle
chmod 755 /var/opt/oracle

11,Set Oracle Environments

Set the following Oracle environment variables before you start runInstaller.

As the oracle user execute the following commands: 

# Oracle Environment
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=/opt/oracle/product/9.2.0
export ORACLE_SID=test
export ORACLE_TERM=xterm
#export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. are not in $ORACLE_HOME/network/admin
export NLS_LANG=AMERICAN  #export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK;(if you use Chinese)
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH

# Set shell search paths
export PATH=$PATH:$ORACLE_HOME/bin

# I successfully installed Oracle9iR2 WITHOUT setting the following CLASSPATH environment variable:
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib
export CLASSPATH

export TMPDIR=/tmp

You can put these environment settings at the end of the ~oracle/.bash_profile file if you use bash.

12,Start runInstaller

Oracle no longer supports a character mode installer. Therefore, in order to execute runInstaller directly from a console of a machine you are logged into (in this example the node name where Oracle is running is called "oracleserver"), you need to set the DISPLAY environment variable.

From the console of your Oracle server "oracleserver " you are logged into, execute the following command as user " oracle ":
oracleserver:oracle$ export DISPLAY=yourlocalIP:0.0

13,Running Oracle Installation

       This is how I answered the questions in the runInstaller:

What would you like as the base directory (Inventory Location):
/opt/oracle/oraInventory

UNIX Group Name (permission for updating Oracle software):
oinstall
You could also use "dba" which I do not recommend for security reasons.(refer to step 9)

Full path name for Oracle Home:
/opt/oracle/product/9.2.0

Oracle Home Name:
OUIHome

14,You might get the following installation problems when you install Oracle 9i (9.2.0):

l         First check always the error logs in /tmp/OraInstall for 9.2.0, e.g /tmp/OraInstall2002-07-04_09-50-19PM, and in /tmp/OraInstall for 9.0.1. When you get make problems check also $ORACLE_HOME/install/make.log.

 

l         Q:"Error in invoking target install of makefile /opt/oracle/product/9.2.0/ctx/lib/ins_ctx.mk"

A:Edit $ORACLE_HOME/ctx/lib/env_ctx.mk and go to "INSO_LINK =", add a "$(LDLIBFLAG)dl" to the line and save it.

Here is the full line with the added "$(LDLIBFLAG)dl" flag:
INSO_LINK = -L$(CTXLIB) $(LDLIBFLAG)m $(LDLIBFLAG)dl $(LDLIBFLAG)sc_ca $(LDLIBFLAG)sc_fa $(LDLIBFLAG)sc_ex $(LDLIBFLAG)sc_da $(LDLIBFLAG)sc_ut $(LDLIBFLAG)sc_ch $(LDLIBFLAG)sc_fi $(LLIBCTXHX) $(LDLIBFLAG)c -Wl,-rpath,$(CTXHOME)lib $(CORELIBS) $(COMPEOBJS)

l         Q:"Error invoking target install of makefile /opt/oracle/product/9.0.1/plsql/lib/ins_plsql.mk"
"Error invoking target install of makefile /opt/oracle/product/9.0.1/precomp/lib/ins-precomp.mk"
"Error invoking target install of makefile /opt/oracle/product/9.0.1/precomp/lib/ins-net-client"
"Error invoking target install of makefile /opt/oracle/product/9.0.1/precomp/lib/ins-oemagent"

A:Edit the file $ORACLE_HOME/bin/genclntsh and change the following line (people have sent me emails pointing out that this also works for Mandrake 8.1 and Mandrake 8.2):
LD_SELF_CONTAINED="-z defs"
to read:
LD_SELF_CONTAINED=""

Then run the script $ORACLE_HOME/bin/genclntsh as the user "oracle" and not as the user "root". Also make sure you have all the Oracle environments set!


$ su - oracle
$ $ORACLE_HOME/bin/genclntsh
Created /opt/oracle/product/9.0.1/lib/libclntst9.a
$

l         Q:Can't find init file for Database "SID".

A:I saw this error only in connection with Oracle 9i R2 (9.2.0) when It tried to start the database with dbstart.

I copied the init file for my SID "test" from /opt/oracle/admin/test/pfile to $ORACLE_HOME/dbs to get dbstart and dbshut working:
cp /opt/oracle/admin/test/pfile/inittest.ora.642002224936 $ORACLE_HOME/dbs/inittest.ora

l         Q:"Error in setting permissions of file/directory /opt/oracle/jre/1.1.8/bin/i686/native_threads/.extract_args"

A:While the error dialog is open, manually find and copy the .extract_args file from your installed jre to where runInstaller complains it is missing.

l         Q:"jre was not found in /tmp/OraInstall/jre/bin/i586/green_threads/jre"

A:You are probably running runInstaller on a 586 machine, or your AMD CPU gets recognized as 586 (e.g. AMD K6-III-400). You can check your machine (hardware) type by executing uname -m .
To rectify this problem, create a link for lib and bin from i586 to i686 and make the i686 directories read only:
E.g.
ln -s /tmp/OraInstall/jre/bin/i686 /tmp/OraInstall/jre/bin/i586
ln -s /tmp/OraInstall/jre/lib/i686 /tmp/OraInstall/jre/lib/i586
chmod u-w /tmp/OraInstall/jre/bin/i686 /tmp/OraInstall/jre/lib/i686
Now restart runInstaller.

If you are not running on a 586 or AMD machine, try to link jre to java and see if this solves your problem.

l         Do not cd to /mnt/cdrom to run ./runInstaller!
If you do so, the installation will fail because you won't be able to change the CDs.

l         If you forgot to set the DISPLAY environment variable (e.g. export DISPLAY=oracleserver:0.0) , or if you forgot to give the remote console - your Oracle Server - authority to display X information on your desktop PC (e.g. xhost +oracleserver ), you will get the following error:
Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to Server
In this case, I always had to kill runInstaller which was still running in the background! If you don't do this, runInstaller will not completely come up any more and you will not see any error messages that runInstaller is having problems.
You might also want to clean up /tmp/OraInstall (9.0.1):
rm -rf /tmp/OraInstall

l         When runInstaller starts to configure the tools ("Configuration Tools"), the "Oracle Net Configuration Assistant" will sometimes hang. Simply stop the Assistant and restart it, or continue the installation. When the rest of the installation is finished, do a "Retry" for "Oracle Net Configuration Assistant". This always worked for me.


        When the system stops to respond during the Oracle installation, in particular during the database creation, then it is probably because you don't have enough RAM or enough swap space. I noticed that the whole system will not respond (or "hang") for several minutes when I did not have enough swap space. If this happens, simply wait until the system starts to respond again.

l         The Oracle installation also runs make etc. In a production environment you might not have compilers and other development packages installed. Therefore make sure you have temporarily the following packages installed: gcc, cpp, egcs, egcs-c++, glibc-devel, kernel-headers. (I'm not sure though if all of these packages have to be on the system during the Oracle installation.)

l         If for any reason the Oracle installation didn't finish successfully, you might want to clean up the following files and directories before you restart over again:
rm -rf /etc/oraInst.loc /etc/oratab /tmp/OraInstall
/tmp/<OtherOracleOwnedFiles>
$ORACLE_BASE/*

15,Startup and Shutdown of Oracle 9i Database

       sqlplus:

svrmgrl is not supported any more. You can now do everything with sqlplus.

E.g., to startup the database, execute the following commands:
       dba$ sqlplus /nolog
       SQL> connect / as sysdba
       SQL> startup

The slash connects you to the schema owned by SYS.  So in this example we are saying that we want to connect to the schema owned by SYS with the privilege SYSDBA. SYSDBA gives you the following privileges:
 sysoper privileges WITH ADMIN OPTION
 create database
 recover database until

$ORACLE_HOME/bin/dbstart and $ORACLE_HOME/bin/dbshut :

You can also use $ORACLE_HOME/bin/dbstart to startup the database, and $ORACLE_HOME/bin/dbshut to shutdown the database. You can place $ORACLE_HOME/bin/dbstart into the /etc/rc.d/rc.local boot script to automatically bring up the database at system boot time. To get $ORACLE_HOME/bin/dbstart and $ORACLE_HOME/bin/dbshut working, you need to change the third field for your Oracle SID in /etc/oratab from "N" to "Y".

E.g. for the Oracle SID "test" I changed the line in /etc/oratab from
test:/opt/oracle/product/9.2.0:N
to read
test:/opt/oracle/product/9.2.0:Y

For 9.2.0, I also had to copy the init file for my SID "test" from /opt/oracle/admin/test/pfile to $ORACLE_HOME/dbs to get dbstart and dbshut working:
cp /opt/oracle/admin/test/pfile/inittest.ora.642002224936 $ORACLE_HOME/dbs/inittest.ora
But first check if your init file already exists in $ORACLE_HOME/dbs.

 


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb
亚洲一区二区三区四区在线播放| 最好看的2019的中文字幕视频| 国产日韩欧美在线视频观看| 欧美精品18videos性欧美| 亚洲国模精品一区| 日韩av电影在线免费播放| 欧美黑人xxx| 中文字幕亚洲图片| 日韩精品免费视频| 亚洲精品91美女久久久久久久| 国产日韩欧美电影在线观看| 91精品久久久久久久久久入口| 国产日韩在线看| 高清一区二区三区日本久| 亚洲精品视频网上网址在线观看| 久久夜色精品亚洲噜噜国产mv| 久久99国产综合精品女同| 亚洲跨种族黑人xxx| 国产一区二区三区免费视频| 91高潮精品免费porn| 国产在线观看91精品一区| 在线观看日韩av| 中文字幕日韩综合av| 亚洲欧美三级在线| zzjj国产精品一区二区| 亚洲天堂av综合网| 久久好看免费视频| 久久成人精品视频| 国产成人一区二区三区电影| 精品久久中文字幕| 性色av一区二区三区免费| 曰本色欧美视频在线| 精品国内自产拍在线观看| 欧美极品少妇xxxxⅹ免费视频| 国产精品久久久久久久久久久不卡| 国产精品自产拍在线观看| 亚洲激情久久久| 2018中文字幕一区二区三区| 久久av中文字幕| 久久国产精品久久久久久久久久| 神马国产精品影院av| 国产日产亚洲精品| 国产成人在线播放| 久久影视三级福利片| 91免费在线视频| 日韩在线视频观看正片免费网站| 4438全国亚洲精品在线观看视频| 国产精品嫩草影院一区二区| 日韩高清av一区二区三区| 最近2019中文字幕一页二页| 亚洲国产精品久久精品怡红院| 97热在线精品视频在线观看| 久久亚洲精品成人| 欧美国产日韩中文字幕在线| 久久久亚洲精品视频| 日本一欧美一欧美一亚洲视频| 久久av资源网站| 国产精品一二三在线| 在线观看视频亚洲| 91在线观看免费| 97视频人免费观看| 久久久成人精品| 日本中文字幕成人| 欧美视频中文字幕在线| 国产欧美最新羞羞视频在线观看| 久久视频在线播放| 欧美日韩国产综合新一区| 亚洲精品suv精品一区二区| 国产一区二区在线免费| 亚洲女同精品视频| 国产日韩欧美成人| 国内精品久久久久久久| 亚洲一级黄色av| 久久久久久这里只有精品| 国产欧美最新羞羞视频在线观看| 综合久久五月天| 欧美日韩成人在线视频| 中日韩午夜理伦电影免费| 91成人在线观看国产| 亚洲精品国精品久久99热| 国产一区二区三区三区在线观看| 亚洲天堂第一页| 欧美性猛交xxxx偷拍洗澡| 欧美性xxxxxx| 国产一区二区日韩| 成人久久一区二区三区| 欧美精品在线免费观看| 午夜精品一区二区三区视频免费看| 欧美午夜激情在线| 欧美日韩成人在线播放| 亚洲美女av电影| 亚洲精品日韩丝袜精品| 亚洲成色777777在线观看影院| 97精品视频在线播放| 日本人成精品视频在线| 欧美一区二三区| 一区二区三区久久精品| 亚洲最新视频在线| 欧美激情一区二区三区在线视频观看| 亚洲成人激情小说| 777国产偷窥盗摄精品视频| 欧美在线不卡区| 亚洲2020天天堂在线观看| 揄拍成人国产精品视频| 69av视频在线播放| 日韩av手机在线| 成人免费淫片aa视频免费| 成人免费福利在线| 91国产美女视频| 国产精品亚洲自拍| 久久久之久亚州精品露出| 日韩av日韩在线观看| 在线精品播放av| 日韩精品在线视频观看| 中文字幕日韩高清| 国内精品一区二区三区| 成人激情春色网| 中文字幕亚洲字幕| 成人欧美一区二区三区在线湿哒哒| 欧美丰满少妇xxxx| 欧美一级淫片aaaaaaa视频| 热久久美女精品天天吊色| 九九精品在线视频| 欧美午夜片欧美片在线观看| 欧美激情视频网址| 91精品国产高清| 中文字幕欧美国内| 欧美一区二区视频97| 色777狠狠综合秋免鲁丝| 国产欧美日韩91| xxxxxxxxx欧美| 欧美影院在线播放| 亚洲色图25p| 91精品国产91久久久久久| 欧美高清在线视频观看不卡| 亚州欧美日韩中文视频| 久久精品国产成人精品| 狠狠色香婷婷久久亚洲精品| 日韩在线观看免费全集电视剧网站| 国产成人在线一区二区| 国产精品高潮呻吟久久av野狼| 最新日韩中文字幕| 成人精品一区二区三区电影黑人| 欧美极品在线视频| 欧美成人午夜影院| 456亚洲影院| 亚洲欧美日韩精品久久亚洲区| 成人精品一区二区三区电影黑人| 国产国语刺激对白av不卡| 日韩免费电影在线观看| 久久久999成人| 亚洲一区二区三区视频播放| 亚洲一区二区三区视频| 色综久久综合桃花网| 亚洲欧洲日产国产网站| 亚洲天堂男人天堂女人天堂| 国产精品69精品一区二区三区| 亚洲专区国产精品| 97av视频在线| 国产精品久久久久久久午夜| 成人欧美一区二区三区在线湿哒哒| 亚洲精品之草原avav久久| 久久久久久有精品国产| 亚洲色在线视频|