RedHat7.2 (7.1) installation manual under Oracle8.17

zhaozj2021-02-11  269

REDHAT7.2 (7.1) Installation Manual in Oracle8.17. Software Configuration Procedure 1. Install GLIBC 2.1 Pack GLIBC2.1 (GNU C Library, 18M) Download Address: ftp://ftp.kernel.org/pub/software/libs/glibc/hjl/sdk/2.1/i386-glibc -2.1-Linux.tar.gz Downloads After the / Backup directory from the version of the redhat7.0, the installation is GLIBC2.2. Oracle 8i cannot compile using Glibc 2.2, and the SDK of Glibc2.1 is required. #SU - root #cd / #tar zxvf /backup/i386-glibc-2.1-linux.tar.gz Hide / USR / BIN directory GCC, CC, LD, to avoid using the Oracle Installer #CD / USR / BIN # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Mkdir Saved #mv GCC CC LD Saved #LN -S /USR/I386-GLIBC-2.1-Linux/bin/i386-glibc21-linux-gcc gcc #LN -S GCC CC #LN -S / USR / I386-GLIBC- 2.1-Linux / BIN / I386-GLIBC21-Linux-LD LD hidden / usr / lib directory Libc.so, libdl.so, libm.so and libpthread.so files, avoid being used by Oracle Installer to use #cd ../lib #mkdir saved #mv libc.so libdl.so libm.so libpthread.so saved #mv libc.a libdl.a libm.a libpthread.a saved Don't forget to return the file back after the installation is complete. (No recovery can also be).

2. Create users and groups to enter the system #Groupadd sysdba # groupadd sysopadd sysdba # groupadd sysopadd sysdba # groupadd sysopadd ing -d / usr / oracle -g oinstall -g sysdba, sysoper # passwd Oracle Enter Oracle User Password, Enter twice. #CHMOD 755 / USR / ORACLE # cd / usr # MKDIR ORAINVENTORY # chown ORACLE.OINSTALL ORAINVENTORY 3. Configure environment variables to enter the system with Oracle users to edit registration files: vi .bash_profile In this file last added: Display = local: 0.0export DisplayOracle_base = / usr / orainventoryExport Oracle_Baseoracle_Home = / usr / oracleexport Oracle_Homeracle_sid = TESTDB Note: Oracle_sID uses local names in each project point, plus the serial number. For example, the above is the SID: hangzhou1 for establishing the first system for Hangzhou. Export Oracle_sidPath = $ PATH: $ ORACLE_HOME / BINEXPORT PATH EXPORT LD_ASSUME_KERNEL = 2.2.5 Note: You can edit the file after the file is stored, exit the system as long as it is less than 2.4. 4. Copy media: Enter the system with Oracle users, put the CD of Oracle V8.17 in the CD-ROM drive, type command: $ mount / mnt / cdrom $ cp /mnt/cdrom/oracle.tar ./ ​​Note: This assumes Oracle The file name of V8.17 is Oracle.Tar $ tar xvf ./oracle.tar

5. Install the database in xwindows Enter the system with Oracle users, if Xwindows does not start, enter the command: $ startX to launch XWindows. One terminal is opened in XWindows, enter the command: $ CD Disk1 $. / RunInstaller Enter the installer. Second, the installation process 1, the Runinstaller starts the installation interface is running, the installation interface, the installation interface can not come out, this is mainly because Oracle's character set is set to Simplified Chinese, but the OS is English, so sometimes it does not come, write with Java Problems often have problems with character sets. At this point, the $ nls_lang variable is temporarily destroyed, Java will use the default character set, just fine. and so:

Unset $ nls_lang

You can also try

Unset $ lang × actually dbassist is sometimes not coming, so you can come out, but Netasst can't make it unclear, but you can modify lisner.ora and tnsnames.ora, so Netasst is not necessary.

Another possible reason is that glibc has not replaced, I found until JDK1.3.1_01, only support GLIBC2.2, previous version, including jdk1.3.0, GLIBC2.2, as long as it is running under glibc2.2, There is no response, the process seems to die, the Oracle installer is used by JRE1.1.8, so as long as GLIBC is still 2.2, the installation window will never come out. 2, click Next, in UNIX Group Name: OinsTall prompts to run /usr/oracle/orainstroot.sh under root users, use ALT-F1 (or F2, F3, etc.) to enter the other terminal, log in to the system in the ROOT user, Run the file. Then use the ALT-F7 to return to the installation interface. In Available Products: Select Oracle 8i Enterpise Edition 8.1.7.0.1

3. When filling in the genus genus, Database AdministaRroup: Fill in the SYSDBADATABASE Operator Group: Fill in the SYSOPER in Database Identification: Global Database Name: Testdb is good SID: Testdb, at the Database File Location file location: Destination address : / Usr / oracle starts copy files. Then prompt to run /usr/oracle/root.sh to run in root.

4, or choose the list of installation components, there is a button to select the language, add "Simplified Chinese"

5, ask if you create a database, "Yes", add the SID of the installation database. The storage directory of the database data file is "/ usr / oracle".

6. Start installing Oracle, installing copy files. There are a lot of people saying that when the copy file is finished, when the system library function, the Make error occurs, I think this will still replace GLIBC unsuccessful, I really didn't have this problem when I installed. Problem. I want to follow the steps I wrote, there should be no such problem.

7, automatically start NetAsSt, configure the listener, generally if you choose a typical configuration, just the typical configuration opens a 2481 port, is JServer, if you don't have JServer, you can do not need it, now you can now Take it, look back again. Listener.ora. 8, automatically start DBAssist, install the database, follow the prompt to do, according to your own situation, you can adjust the parameters when installing the database properly, and finally start to create the database, you can also select the first script, then exit DBAssist, separate Run creation script, so more flexible, you can change your script yourself, you can also study your script, there will be harvested.

Third, configure after installation

1. Sign in, modify / etc / oratab, change the last: orcl: /u01/app/oracle/Product/8.1.7: orcl: /u01/app/oracle/Product/8.1.7: Y This can be used to start and turn off the database with dbstart and dbshut, don't write SVRMGRL yourself.

2. Start the database and modify the kernel command in the system boot script (this can not be done)

Modify /etc/rc.d/rc.local, join:

#Modify kernel parameterecho 134217728> / proc / sys / kernel / shmmmax echo -e "250 32000 100 128"> / proc / sys / kernel / SEM

#start Oracle8.1.7su - Oracle-C 'Lsnrctl Start'su - Oracle-C' DBSTART '

I was lazy, did not write another script link into rc3.d, rc0.d.rc5.d, rc6.d, but rather directly on the rc.local, Oh noted that modify kernel parameters must start the database instance Previously, after starting the database, use the IPCS command to see the usage of shared memory, if there is no segmentation.

Another thing to explain is important to note that any way to read and write the database must obtain Oracle environment variables, otherwise it will not be able to join the database. This "-" in SU - in the script is very particular, it means to switch to Oracle users, and get Oracle environment variables. For example, if you want to start Apache to read and write the database, the command of Rc.local is to write: #start apache httpd server. / Etc / profile / usr / local / apache / bin / apachectl start

Because I put Oracle's environment variables in / etc / profile, I will force it to read / etc / profile before starting apache, obtain Oracle environment variables, so Apache's ServeraPi program can read and write the database.

3. Modify the NET8 configuration, you can use Netca, or you can modify $ Oracle_Home / Network / Admin / NetWork / Admin, Netasst seems to come.

4. If you create a second instance, you will use dbassist. If DBASSS is not coming, it is temporarily destroyed $ lang, $ nls_langunset $ nls_langunset $ lang can come out.

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

New Post(0)