Install Oracle9i under Linux

xiaoxiao2021-03-06  70

There are several places that need to be noted before installation: your exchange partition is best to have a G or right, the second, your hard disk partition is best enough to have enough space.

Below my repost:

1. Create users and groups: [ROKO @ miniroko] Su -

[root @ miniroko] # groupadd oinstall [root @ miniroko] # groupadd dba [root @ miniroko] # UserAdd -g oinstall -g dba oracle [root @ miniroko] # Passwd Oracle

2, prepare the file directory:

[root @ miniroko] # mkdir -p /opt/ora9/Product/9.2[Root@miniroko]# mkdir / var / opt / oracle [root @ miniroko] # chown oracle.dba / var / opt / oracle [root @ miniroko ] # chown -r oracle.dba / OPT / ORA9

3. Adjust system kernel parameters and installation support packages: 3.1, first use commands RPM -QA | GREP COMPAT to view the following packages in the system:

Compat-GCC-7.3-2.96.118.i386.rpmcompat-libgcj-7.3-2.96.118.i386.rpmcompat-libgj-devel-7.3-2.96.118.i386.rpmnss_db-compat-2.2-20.i386.rpm

If not, please take out your installation disk and install the above package. Don't use the APT of the original article, you don't have a solve dependency problem with the unsatisfactory person.

3.2, set the kernel parameters, adjust the signal light and shared memory: [Root @ miniroko] # echo 250 32000 100 128> / proc / sys / kernel / sem [root @ miniroko] # echo 536870912> / proc / sys / kernel / shmmax [ Root @ miniroko] # echo 4096> / proc / sys / kernel / shmmmni [root @ miniroko] # echo 2097152> / proc / sys / kernel / shmall [root @ miniroko] # echo 65536> / proc / sys / fs / file -max [root @ miniroko] # echo 1024 65000> / proc / sys / net / ipv4 / ip_local_port_range

Of course, you can automatically set these parameters for a boot system, you can also change the file /etc/sysctl.conf file, add the following statement: kernel.shmmax = 536870912 Keernel.shmmmMall = 2097152kernel.sem = 250 32000 100 128fs.file-max = 65536Net.ipv4.ip_local_port_range = 1024 65000

After saving, you can. It is recommended not to change Net.IPv4.ip_local_port_range, you can use CAT / Proc / Sys / Net / IPv4 / IP_LOCAL_PORT_RANGE to see the red hat has been in line with this defined range, and the port range is smaller than this.

3.3, set Oracle to file requirements: Edit File: /etc/security/limits.conf Add the following statement: Oracle Soft Nofile 65536racle Hard Nofile 65536 Oracle Soft NPROC 16384Oracle Hard Nproc 16384 This requires the restart to take effect. But it doesn't matter when installing.

4, set the Oracle system environment: Log in as an Oracle user: Su Oracle

CD ~

Edit it. Bashrc file Add to Dongdong: #oracle 9IExport Oracle_Base = / OPT / ORA9EXPORT ORA9 / PRODUCT / 9.2EXPORT PATH = $ ORACLE_HOME / BIN: $ ORACLE_HOME / APACHE / APACHE / BIN: $ PATHEXPORT ORACLE_OWNER = oracleexport ORACLE_SID = ora9iexport ORACLE_TERM = vt100export LD_ASSUME_KERNEL = 2.4.1export THREADS_FLAG = nativeexport LD_LIBRARY_PATH = / opt / ora9 / product / 9.2 / lib: $ LD_LIBRARY_PATHexport PATH = / opt / ora9 / product / 9.2 / bin: $ PATH ## change this NLS settings to suit your country: # example: # german_germany.we8iso8859p15, american_america.we8iso8859p2 etc ## export NLS_LANG = 'croatian_croatia.ee8iso8859p2' (note that this stuff comment it out, because we use the Chinese system, however. In order to be able to display Chinese to the following line: export lc = en_us

Exit, prepare the three ISO files you downloaded. 5, decompress the files you downloaded: 5.1 Create a directory: mkdir /mnt/oracle5.2, copy three files to the new directory: CP ln_ * /mnt/oracle5.3, extract three files: CD / MNT / Oraclegunzip gunzip lnx_920_disk1.cpio.gzgunzip lnx_920_disk2.cpio.gzgunzip lnx_920_disk3.cpio.gzcpio -idmv

In the installation process, you will encounter a few errors: the first error message about this file INS_OEMAGENT.MK, do not depends it, choose ignoring, we will fix it in the following steps. Second Error Tip: Error In Invoking Target Install of Makefile $ Oracle_Home / CTX / LIB / INS_CTX.MK Don't choose to ignore this time, this time you have to open a terminal: log in to Oracle users, run the following Command: [Oracle @ miniroko Oracle] $ CD $ ORACLE_HOME / Install [Oracle @ miniroko install] $ tail make.log can see this, then there is an error message under which gcc -o ctxhx -l / opt / ora9 / Product / 9.2 / CTX / LIB / -L / OPT / ORA9 / PRODUCT / 9.2 / LIB / -L / OPT / ORA9 / Product / 9.2 / LIB / Stubs / /Opt/ora9/Product/9.2/ctx/lib/ctxhx .ol / OPT / ORA9 / PRODUCT / 9.2 / CTX / LIB / -LM -LSC_CA -LSC_FA -LSC_EX -LSC_DA -LSC_UT-LSC_CH -LSC_FI -LCTXHX -LC -WL, -RPATH, / OPT / ORA9 / PRODUCT / 9.2 / CTX / lib -lnls9-lcore9 -lnls9 -lcore9 -lnls9 -lxml9 -lcore9 -lunls9 -lnls9 we run the following command to modify it: [Oracle @ miniroko] $ CD $ ORACLE_HOME / BIN [Oracle @ miniroko bin] $ GCC - O CTXHX -L / OPT / ORA9 / Product / 9.2 / CTX / LIB / -L / OPT / ORA9 / Product / 9.2 / LIB / -L / OPT / ORA9 / PRODUCT / 9.2 / LIB / stubs // OPT / ORA9 / Product / 9.2 / CTX / lib / ctxhx.o -l / opt / ora9 / product / 9.2 / ctx / lib / -lm -lsc_ca -lsc_fa -lsc_ex -lsc_da -lsc_ut -lsc_ch -lsc_fi -lctxhx -lc-wl, Rpath, / OPT / ORA9 / Product / 9.2 / CTX / LIB -LNLS9 -LCORE9 -LNLS9 -LCORE9-LNLS9 -lxml9 -lcore9 -lunls9 -lnls9 -ldl also resets this place to compile the above place. Then return to the installation interface and select Ignore the error dialog. Continue to install it.

The third error will be wrong when starting and configuring the assistant program, do not take it, choose ignoring. Our steps will be picked up to the first error and the third error.

7. Modify the system: Log in as an Oracle user, perform the following command: [Oracle @ miniroko Oracle] $ CD $ ORACLE_HOME / NETWORK / LIB [Oracle @ miniroko lib] $ make -f INS_NET_CLIENT.MK INSTALL

Then edit this file: Oracle @ miniroko lib] $ VI $ ORACLE_HOME / CTX / lib / INS_CTX.mk Find line 13, line 14 row by CTXHX: $ (CTXHXOBJ) $ (LINK) $ (CTXHXOBJ) $ (INSO_LINK)

Change to: CTXHX: $ (CTXHXOBJ) $ (link) -ldl $ (ctxhxobj) $ (Inso_LINK) store exits, perform the following command: [Oracle @ miniroko lib] $ make -f $ oracle_home / ctx / lib / INS_CTX.MK Install now can restart Agents. [Oracle @ miniroko lib] /opt/ora9/product/9.2/bin/agentctl start

8, in order to facilitate management, you can write a startup script: enter the following script: #! / Bin / bash ## (c) Denis.klaric@in2.hr## name: /etc/rc.d/ Init.d / Ora9 # Description: Starts and Stops Oracle 9i Database, TNS Listener # http server, and fixes kernel parameters for oracle

#oracle environmentexport ORACLE_HOME = / opt / ora9 / product / 9.2export PATH = $ ORACLE_HOME / bin: $ ORACLE_HOME / Apache / Apache / bin: $ PATHexport NLS_LANG = 'croatian_croatia.ee8iso8859p2'export ORACLE_SID = tis

Export Display =: 0ORACLE_USER = Oracle

# See How We're Called

case $ 1 instart) # fix kernel parametersecho 250 32000 100 128> / proc / sys / kernel / semecho 536870912> / proc / sys / kernel / shmmaxecho 4096> / proc / sys / kernel / shmmniecho 2097152> / proc / sys / kernel / Shmallecho 65536> / proc / sys / kernel / fs / file-maxecho 1024 65000> / proc / sys / net / ipv4 / ip_local_port_range

# Start Listener, Apache and Databaseesu - "$ Oracle_user" << Eoolsnrctl Startapachectl Startsqlplus / NOLOG << EOSCONNECT / As SysdbastartupeoseOO ;;

STOP) #STOP Listener, Apache and Databaseesu - "$ Oracle_user" << EOOLSNRCTL Stopapachectl Stopsqlplus / NOLOG << EOSCONNECT / AS SYSDBASHUTDOWN IMMEDITEEOOO ;;

*) Echo "Usage: ORA9 [START | STOP]" ;;

ESAC

After the ORA9 is stored, then use CHMOD A X ORA9, you can run /tc/rc.d/init.d/ora9 start | stop in ROOT, manage Oracle startup and stop. If you want to join this script to the system so that it can be turned on, then you want to run the following command: ChkConfig --Level 3 (or 5) --Add ORA9.

转载请注明原文地址:https://www.9cbs.com/read-109007.html

New Post(0)