Oracle 8i9i Install for Linux

xiaoxiao2021-03-06  17

Oracle 8.1.7 Installation Contents 1. Things you need before the installation 2. Pre-install actions 2.1 Installing compatibility packages 2.2 Installing Java Development Kit 2.3 Binutils downgrade 2.4 User oracle, groups and software mount points 2.5 Copy patch file to $ ORACLE_HOME 2.6 Setting the environment for oracle account 3. Running the installer 4. Running the database for the first time 5. Starting the Listener 6. Starting the Apache Web Server 7. How to launch Enterprise Manager Components 1. Things you need before the installation before you start installing Oracle, you need to have the following packages that do not come with the Oracle817.tar file: The Backwards Compatibility compat Libs - Search returned by Synaptic Package Manager compat-gcc-7.3-2.96.118.i386.rpm compat-libgcj- 7.3-2.96.118.i386.rpm compat-libgcj-debg-7.3-2.96.118.i386.rpm nss_db-compat-2.2-20.i386.rpm / * Methinks this is for 9i - test yourself - does not hurt * / and one more i discovered by When Apache Woul DN't Start: Compat-DB-3.3.11-4 Different Compat-Libs Than Used with redhat 7.x: The Versions of these Packages Are Not The Same on RH 9 as They WERE ON Previous Versions of Rh. Redhat 7. . x installs require RH 6.2 compatibility packages RH 9 compat packages are available through up2date or Synaptic The Synaptic method is virtually painless If your system has required dependencies Synaptic will ever so kindly inform you before performing the installation jdk-1.1.8_v3... - BlackDown Linux Port of Sun '

s Java Development Kit. You can find it at www.blackdown.org The Official Patch from Oracle glibc-2.1.3-stubs Oracle has created a set of stub libraries which are used at linkinstall-time only to mimic the contents of glibc- 2.1.3 shared object. See Oracle patch ReadMe for general details. Copy the patch to Oracle Home before launching the installer, but do not run it until install is almost complete. Although it does not mention it in the documentation, I had success with copying the patch file to $ ORACLE_HOME. Untarring it. And running sh setup_stubs.sh after the linking errors but before running the second root.sh. After 100% install but before Network Assistant or Create Database Assistant. And everthing worked! Go ahead ! And you can run the assistants through Installer you read it here first Note:!! There is a handy pause in the installation when Setup wants you to run a final shell script, you can run the patch then 2.Pre-install actions. 2.1 Installing Compatibility Packages if Yo u choose the Synaptic method search on compat-gcc compat-libgcj compat-libgcj-devel nss_db-compat compat-db Done If you prefer RedHat Package Manager:! rpm -Uvh compat-gcc-7.3-2.96.118.i386.rpm rpm -UVH Compat-GCC-7.3-2.96.118.i386.rpm rpm -uvh compat-libgcj-7.3-2.96.118.i386.rpm rpm -uvh compat-libgcj-debg-7.3-2.96.118.i386.rpm rpm -UVH NSS_DB-COMPAT-2.2-20.i386.rpm rpm -UVH Compat-DB-3.3.11-4 Done! 2.2 Installing Java Development Kit Install JDK IN / USR / LOCAL [root] # TAR-XVJF JDK-1.1. 8_v3.tar.bz2 -c / usr / local note the 'j'

For a .bz2 type file. Create a symbolic link to the directory jdk118_v3 because oracle expert / java: [root] # ln -s / usr / local / jdk118_v3 / usr / local / java Note That it is not necessary to add this link to the PATH environment variable, so you can safely keep whatever jdk or jre version you may already have. 2.3 Binutils downgrade Skip this bit! This method not required for RedHat 9 2.4 User oracle, groups and software mount points We need to create two groups for the user oracle:. oinstall and dba The oinstall group will own all the installation files The dba group will have SYSDBA and SYSOPER privileges granted Note that all linux users (accounts) that are in group.. dba will also get these privileges. [root @ frodo] # groupadd oinstall [root @ frodo] # groupadd dba [root @ frodo] # useradd -g oinstall -G dba oracle [root @ frodo] # passwd oracle Changing password for user oracle NEW Password: BAD Password: It is based on a Dictionary Word Retype New Password: Passwd :.. All authentication tokens updated successfully [root @ frodo 817InstallFiles] # Create directories in which product files will reside Oracle recommends OFA - Optimal Flexible Architecture (see oracle installation guide), ie / u01 / oracle / product On that note I also want To try "service configuration: raw devices". hmmm. I shop do this before I start the install ... not today. [root @ frodo u01] $ mkdir / u01 / oracle / product [root @ frodo u01] $ CD / U01 / Oracle / Product [Root @ frodo u01] $ mkdir 8.1.7 [root @

frodo u01] $ chown -R oracle.oinstall / u01 / oracle / * 2.5 Copy patch file to $ ORACLE_HOME Copy the patch file to $ ORACLE_HOME, but do not run it yet. 2.6 Setting the environment for oracle account Now login as the newly created oracle user and append to your .bash_profile: [oracle @ frodo oracle] $ vi .bash_profile # Stuff for 8.1.7 Install export LD_ASSUME_KERNEL = 2.2.5 export ORACLE_BASE = / u01 / oracle export ORACLE_HOME = $ ORACLE_BASE / product / 8.1. 7 export PATH = $ PATH: $ ORACLE_HOME / bin unset LANG # Java DEVELOPMENT Kit for 8.1.7 JAVA_HOME = / usr / local / java; export JAVA_HOME CLASSPATH = $ {JAVA_HOME} /lib/classes.zip; export CLASSPATH #Need to point to init * .ora ORACLE_SID = frodo; export ORACLE_SID # Need shared libraries ie for lsnrctl if [ "$ {LD_LIBRARY_PATH: -}" == ""]; then LD_LIBRARY_PATH = $ {ORACLE_HOME} / lib: / usr / lib: / usr / local / lib else ld_library_path =

$ {ORACLE_HOME} / lib: $ {LD_LIBRARY_PATH} fi export LD_LIBRARY_PATH The first line modifies your environment so that gcc and ld look for glibc 2.1.3 compatibility headers and libraries The .bash_profile should now be sourced in order to initialize these variables.: #. /HOME/Orcle/.bash_profile or we can just log off and thank ON as user than Bash (tcsh, sh, ...) all of those variables shouth be set acid to syntax of your shell and put in script that automatically executes at user login 3. Running the installer Oracle installer must be run from Xwindows by user oracle Start Xwindows and from terminal window mount Oracle 8i CD-ROM and start the installer:.. $ / mnt / cdrom / runInstaller or if you have downloaded linux81701.tar from Oracle, untar it somewhere (eg under / u01 / 817InstallFiles), and then run the installer: [oracle @ frodo 817InstallFiles] $ tar -xvf linux81701.tar [oracle @ frodo Disk1] $ ./runinstaller now Installer Should Work and You CAN . Install the software If there is a problem launching installer first check LD_ASSUME_KERNEL = 2.2.5 Installer Options There are a few choices to be made from within installer For the most part default options are set by environment variables Source:... / U01 / 817InstallFiles / Disk1 / Stage / Products.jar Destination: /u01/oracle/Product/8.1.7 Loading Product List. Please wait ... UNIX Group name: OinsTall You Will Be PROMPTED TO Run A Script as root. [Root @

. Frodo 8.1.7] # sh orainstRoot.sh Creating Oracle Inventory pointer file (/etc/oraInst.loc) Changing groupname of / u02 / oracle / oraInventory to oinstall Select product to install: Oracle Enterprise Installation Types: Typical (837MB) Verify JDK Home Directory: (not necessary for 8.1.6 install, must be available for 8.1.7) / usr / local / java Database Identification: name.domain frodo.athlone.com SID:.. typically default value Max 8 chars Tip: Be sure SID matches the entry in Oracle User's .bash_profile Installing Files: First the extracting part: you can find a log of this install session at: /u01/oracle/oraInventory/logs/installActions.log If you install another product, the above Log Will Be copied to: /u01/oracle/orainventory/logs/installactions2003-09-27_10-37-06-pm.log lineing files: here comes the linking part. link pending ... it's going to break 5 errors by 78 % - to do with INS_ AND Make IE Can't Find Directory Ott Just Ignore Them. We'll Run The Official Oracle Patch To FIX THEM. CON tinue Towards the end of install. Maybe an hour later .. Before building the database, there is a script to be run. (as root) But first apply the patch! I got the great !? idea of ​​running the patch before returning to Setup: [root @ frodo 8.1.7] # SH setup_stubs.sh setting up patch files ... done. Patching makefiles as necessary: ​​checking file '/u01/oracle/product/8.1.7/rdbms/demo/demo_rdbms.mk '... ok. Checking file' /u01/oracle/product/8.1.7/rdbms/demo/ociucb.mk'...ok. Checking file '/u01/oracle/Product/8.1.7/rdbms/lib /ins_rdbms.mk'...ok. Checking file '/u01/racle/product/8.1.7/rdbms/lib/env_rdbms.mk'...ok. checking file' /u01/oracle/Product/8.1.7 /NETWORK/LIB/INS_NET_CLIENT.MK '

... ok. Checking file '/u01/oracle/product/8.1.7/neetwork/lib/env_network.mk'...ok. Checking file' /u01/oracle/Product/8.1.7/Network/LIB/ INS_CMAN.MK '... OK. Checking file' /u01/oracle/product/8.1.7/network/lib/ins_names.mk'...ok. Checking file '/u01/oracle/Product/8.1.7/ Network / lib / INS_OEMAGENT.MK '... OK. Checking file' /u01/oracle/product/8.1.7/network/lib/env_oemagent.mk'...ok. Checking file '/ u01 / oracle / product / 8.1.7 / network / lib / INS_NET_SERVER.MK '... OK. Checking file' /u01/oracle/product/8.1.7/network/lib/ins_nau.mk'...ok. Checking file '/ u01 / Oracle / Product / 8.1.7 / PLSQL / LIB / ENV_PLSQL.MK '... OK. Checking file' /u01/oracle/product/8.1.7/plsql/lib/ins_plsql.mk'...ok. Checking File '/u01/oracle/product/8.1.7/plsql/demo/demo_plsql.mk'...ok. checking file' /u01/oracle/product/8.1.7/precomp/lib/ins_precomp.mk '... Ok. Checking file '/u01/oracle/product/8.1.7/precomp/lib/env_precomp.mk'...ok. Checking file' /u01/oracle/Product/8.1.7/ldap/lib/env_ldap.mk '... ok. Checking file' /u01/oracle/product/8.1 .7 / ldap / lib / INS_LDAP.MK '... OK. Checking file' /u01/oracle/Product/8.1.7/ldap/demo/demo_ldap.mk'...ok. Checking file '/ u01 / oracle /Product/8.1.7/sqlplus/lib/env_sqlplus.mk'...ok. checking file '/u01/oracle/product/8.1.7/sqlplus/lib/ins_sqlplus.mk'...ok. checking file' /u01/oracle/product/8.1.7/ord/im/lib/env_ordim.mk'...ok. Checking file '/u01/oracle/product/8.1.7/ord/img/demo/demo_ordimg.mk' ... ok. Checking file '/u01/oracle/product/8.1.7/ord/ts/demo/oci/src/demo_ordts.mk'...ok. Checking file' /u01/oracle/product/8.1. 7 / ORD / TS / DEMO / PROC / SRC / DEMO_ORDTS.MK '

... ok. Checking file '/u01/oracle/Product/8.1.7/ord/ts/lib/env_ordts.mk'...ok. Checking file' /u01/oracle/Product/8.1.7/md/ Demo / Examples / Demo_SDO.MK '... OK. Checking file' /u01/oracle/product/8.1.7/md/demo/unix/motif/src/demo_motif.mk'...ok. Checking file '/ U01 / Oracle / Product / 8.1.7 / Md / DEMO / UNIX / MOTIF / SRC / DB_SRC / DEMO_DBSRC.MK '... OK. Checking file' /u01/oracle/product/8.1.7/md/demo/unix /motif/src/main_src/demo_mainsrc.mk'...ok. Checking file '/u01/oracle/product/8.1.7/otrace/demo/atmoci.mk'...ok. Checking file' / u01 / oracle /product/8.1.7/otrace/lib/env_otrace.mk'...ok. checking file '/u01/oracle/product/8.1.7/oTRACL/LIB/INS_OTRACE.MK'...ok. Checking file' /u01/oracle/product/8.1.7/ctx/lib/env_ctx.mk'...ok. Checking file '/u01/oracle/product/8.1.7/ctx/lib/ins_ctx.mk'...ok Rebuilding Client Shared Library ... CP: Cannot Stat `/ Discard / ': No Such File or Directory Done. Renning Executables: Running' INS_RDBMS.MK '... DONE. Running' INS_NET_CLIENT.MK '... DONE. Running 'INS_CMAN.MK' ... DONE. Runni Ng 'INS_NAMES.MK' ... DONE. Running 'INS_OEMAGENT.MK' ... DONE. Running 'INS_NET_SERVER.MK' ... DONE. Running 'INS_NAU.MK' ... DONE. Running 'INS_PLSQL.MK' ... done. Running 'INS_PRECOMP.MK' ... DONE. Running 'INS_LDAP.MK' ... DONE. Running 'INS_SQLPLUS.MK' ... DONE. Running 'INS_OTRACE.MK' ... DONE. Running 'INS_CTX.MK' ... DONE. DONE. The Links Have Been fixed! Run Script root.sh now run the script as root. [root @ frodo 8.1.7] # sh Root.sh Running Oracle8 root.sh script. .. root.sh: command substitution: line 1: Unexpected EOF While Looking for Matching `''

root.sh: command substitution: line 2: syntax error: unexpected end of file root.sh: line 157: [:! =: unary operator expected / nThe following environment variables are set as: ORACLE_OWNER = oracle ORACLE_HOME = / u01 / oracle /product/8.1.7 oracle_sid = frodo enter the full pathname of the local bin directory: [/ usr / local / bin]: / ncreating / etc / oracle ... Entry Will Be Added to the / etc / oracability Database Configuration Assistant when a database is created Finished running generic part of root.sh script. Now product-specific root actions will be performed. Solution to fix the syntax errors. root.sh repairs Thanks Kenta! Net 8 configuration Net 8 configuration. Launches Net 8 Configuration Assistant: I select perform typical configuration (It can be changed later ...) --Just want / need a listener to start Net8 Configuration Assistant - success Oracle Database Configuration Assistant Oracle Database Configuration Assistant Creating and starting..! Oracle Instance Copying Database Files I nitializing database Database creation complete This whole ordeal has taken over two hours. it is now 01:01 Sun Sep 28 I still want to create a custom database, but no doubt that will have to wait for another day. I've put down my . book "Bachelor Brother's Bed & Breakfast" This last bit is exciting, and I want to watch Maybe I have defined the definitive steps in installing 8.1.7 on Redhat 9. Database creation completed Database Information:!. global database name: frodo. Athlone.com Database System Identifier (SID): frodo sys account password: change_on_install system account password: manager [ok] :) if you installed the package compat-db-3.3.11-4 you won '

t see this error message: Web Server Configuration: failure Starting web server in non-SSL mode on port 7777 failed (see details) /u01/oracle/product/8.1.7/Apache/Apache/bin/httpd: error while loading shared Libraries: libdb.so.3: cannot Open Shared Object File: No Such file or directory /u01/racle/product/8.1.7/apache/apache/bin/apachectl start: httpd could not be start [root @ frodo lib] # Find. -name libdb.so * -print ./stubs/libdb.so time for a Google Search for libdb.so.3 rpm resource libdb.so.3. Provided by. Compat-DB-3.3.11-3. I386, The Berkeley DB Database Library for Red Hat Linux 7.x Compatibility. Rawhide 1.0 for i386. ... www.hklpg.org/rpm/libdb.so.3.html - 8k - cached - Similar Pages Synaptic Lists Compat- db-3.3.11-4 The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides embedded database support for both traditional and client / server applications. This package contains various versions of Berkeley DB which were included in previous releases of Red Hat ... Linux That should do it Retry Web Server Configuration: Success /u01/oracle/product/8.1.7/Apache/Apache/bin/apachectl start:!! Httpd started :) Yipeee End of Installation The installation of Oracle8i Enterprise Edition . was successful [Exit] 1:56 AM Finished running Oracle Installer 4. running the database for the first time [oracle @ frodo oracle] $ svrmgrl Oracle Server Manager Release 3.1.7.0.0 - Production Copyright (c) 1997, 1999, Oracle Corporation. ALL Rights Reserved. Oracle8i Enterprise Edition Release 8.1.7.0.1 - Production with The Partitioning Option JServer Release 8.1.7.0.1 - Production SVRMGR> Connect Internal Connected. SVRMGR>

startup ORACLE instance started. Total System Global Area 72704160 bytes Fixed Size 73888 bytes Variable Size 55681024 bytes Database Buffers 16777216 bytes Redo Buffers 172032 bytes Database mounted. Database opened. 5. Starting the Listener [oracle @ frodo 8.1.7] $ lsnrctl start LSNRCTL For Linux: Version 8.1.7.0.0 - Production on 29-APR-2004 09:34:25 (C) Copyright 1998 Oracle Corporation. All Rights Reserved. Starting /u01/oracle/Product/8.1.7/bin/tnslsnr: Please wait ... TNSLSNR for Linux: Version 8.1.7.0.0 - Production System Parameter File IS /U01/Oracle/Product/8.1.7/neetwork/admin/listener.ora listening on: (deScription = (Address = (Protocol = TCP) (host = frodo.athlone.com) (port = 1521))) Connecting to (deSCription = (protocol = tcp) (host = frodo.atlone.com) (port = 1521)) status of The Listener ------------------------ Alias ​​Listener Version TNSLSNR for Linux: Version 8.1.7.0.0 - Production Start Date 29-APR-2004 09: 34:25 uptime 0 days 0 hr. 0 min. 0 Sec TRACE LEVEL OFF Security Off SNMP O FF Listener Parameter File /u01/oracle/product/8.1.7/network/admin/listener.ora Services Summary ... PLSExtProc has 1 service handler (s) frodo has 1 service handler (s) The command completed successfully If you are Having Problems With The Listener See The Two Tips In: Tips, Snippets, And Answers 6. Starting The Apache Web Server Root User Will Start httpd. [root @

FRODO /] @81/oracle/product/8.1.7/apache/apache/bin/apachectl start ./apachectl start: httpd started launching web browser http://frodo.athlone.com:7777/ ----- -------------------------------------------------- ------------------------- Oracle HTTP Server Components Apache JSERV (DEMO) Oracle JSP (DEMOS) MOD_SSL OPENSSL MOD_PERL MOD_PLSQL BC4J XDK MOD_OSE ---- -------------------------------------------------- --------------------------------------- -------------------------------------------------- --------------- Success !!! What's next? You're Still Reading. Hopefully it's to find more rather Than Trying to Solve Install Problems. You? YOUNSOBLES. YOU should now be able to run Oracle Enterprise Manager, DBA Studio and a bunch of nifty Packs. Go see for yourself! I'll confess at this point (running on a single machine) I broke down and bought a 256K memory stick. Not that IT Wouldn't / Couldn't Work. 7. How to Launch EN terprise Manager Components EM Command Summary and Tips Enterprise Manager Configuration Assistant OMS Intelligent Agent Listener Console DBA Studio Blackout using Command-Line If you are having problems with any of the tools also see: Tips, Snippets, and Answers Oracle 9i Installation> I have not personally installed 9i yet From what I understand the only difference in libraries is the one compat library:.. nss_db-compat which is 9i specific If that is the case then compat-db will probably not be required that's what I'm going to. Try. Start with: compat-gcc compat-libgcj compat-libgcj-debgcj compat-libgcj-debgcj compat-limited don't know means you '

d think not, but then again ... The LD_ASSUME_KERNEL is up a couple versions too For excellent documentation on Linux and Oracle please see:.. Werner's Home Page But just in case you get the message "not supported by Oracle", doesn ' t mean you should give up I would not put it in to production, but for home development;.!! I support pick your own :) Larry would agree Starting the Oracle Database 9i to start the Oracle Database, you must be the Oracle . user; normally oracle you change to the oracle user using the command "su - oracle" This will change your user and also update the environment for this user After you change to the Oracle user, you may invoke sqlplus to start the Oracle instance. . Following the database startup, the network listener needs to be started Finally you should change users back to the previous user Note:.. If you are already logged on as the Oracle user, you do NOT need to use the "su" command to Become the Oracle User, Nor The "exit" at the last line of the examp le This example is for 9i # su -... oracle # cd $ ORACLE_HOME / bin # sqlplus' / as sysdba'SQL> startup ORACLE instance started Total System Global Area 235999352 bytes Fixed Size 450680 bytes Variable Size 201326592 bytes Database Buffers 33554432 bytes Redo buffers 667648 BYTES DATABASE MOUNTED. DATABASE OPENED. SQL> EXIT # lsnrctl Start Lsnrctl for Linux: Version 9.2.0.1.0 - Production on 25-Jun-2003 21:50:37 Copyright (C) 1991, 2002, Oracle Corporation. All rights reserved Starting / home / oracle / Oracle92 // bin / tnslsnr: please wait ... tNSLSNR for Linux:. Version 9.2.0.1.0 - Production (snip) The command completed successfully # exit Tips, Snippets, and Answers>

DBA procedure - DB and Listener startup checks Know Your glibc Command line: netasst Client Connection All that Java - Which JRE - Which JDK Example:? .Bash_profile DataBase Start lsnrctl: command not found Example: 1 lsnrctl: command not found Example:?? 2 root.sh repairs Reinstall DBA procedure - DB and Listener startup checks The following procedure explains the process to be followed to check if databases and listeners are up and running This procedure is applicable to all Unix Oracle installations, but can easily be modified for. other platforms as well. Find the databases that are supposed to be up and running from the / etc / oratab or / var / opt / oracle / oratab file. Look for entries that are suffixed by a "Y". Check if the database background processes are up and running (ps -ef | grep smon) Change the environment and connect to each of these databases to ensure they are opened (oraenv; sqlplus username / password.) Find all the listeners in the listener.ora file This file. IS located in either / etc, / var / opt / oracle or $ ORACLE_HOME / network / admin directories Make sure each of them is running (lsnrctl status LISTENER_NAME) Connect to databases via all their listeners to ensure that the listeners are functioning (sqlplus username / passwprd @

dbdescriptor). Connecting to the db via their listeners should be done from a node different than the one on which the listener is running to make 100% sure that there is remote connectivity. Check the database alert log files as sometimes a database might be up ... and running, but the alert log reports critical errors If a machine only has one listener, please do not accept that they all have only one listener When in doubt please read the manuals or ask somebody The following manuals are relevant: - Chapter 5 of the oracle8 concepts guide. See section "Database and instance startup and shutdown". - Chapter 8 of the net8 administrator's guide. See section "Starting a listener" and "test a listener"

. It is also helpful to write some scripts to help you check that everything is up and running. Example scripts could be obtained from the http://www.orafaq.net/ web site. Where applicable, other services like Web Servers, Names Servers, LDAP servers, and so forth must also be checked If in doubt, get advice from an experienced DBA Know Your glibc The C library used in the GNU system Linux software uses a library called glibc GNU C library Summary.....: The GNU libc libraries Description:. The glibc package contains standard libraries which are used by multiple programs on the system in order to save disk space and memory, as well as to make upgrading easier, common system code is kept in one place and shared. between programs This particular package contains the most important sets of shared libraries:.. the standard C library and the standard math library Without these two libraries, a Linux system will not function Different versions of Linux distros ship different versions of gl. ibc Check your version of glibc using the following command:. ls / lib / libc- * * glibc 2.3 - Red Hat 9.0, Mandrake 9.1 * glibc 2.2 - Red Hat 7.0 through 8.0, Mandrake 8.0 through 9.0, SuSE 8.x, Debian 3.0 * Glibc 2.x, SUSE 7.X, Debian 2.x, SUSE 7.X, Debian 2.x Command Line: Netasst Normal Install (and glibc213 patch), The Netca and Dbasst Can Work, But Netasst Does Not Work TO FIX This Problem, You CAN VI $ Oracle_Home / Bin / Netasst and Modify The Line 110 from "$ jre -classpath $ ClassPath ...." to "$ jre -nojit -classpath $ classpath ....... This can make it work. Thanks Xkwang. You WERE RIGHT! IT Runs Just Fine from Command Line As Well :) BTW: Forget About Oracle Names, IT '

s been dropped in 9i in favour of OpenSource! Client Connection How do I access the Client Tools? I've installed the Oracle9i client. How do I start the applications. Use "netca" for Network Configuration "oemapp Worksheet "for client. if you don't find the command Go to

/ bin and execute. ./netca all this java # Which jre? 8i Oracle bundles the ibm jre 1.1.8 in oracle 8.1.6 and 8.1.7. Before what, for oracle 8.1.5 You NEED Blackdown JRE 1.1.6V5. If you have 8.1.6 or 8.1.7, you do not reed to do anything, oracle knows where it's ion in jre is already! In Particular, Do Not Change the path to point to any particular jre, do not install Any Other Jre () DO NOT INSTALL ANY OSTHER JRE it does not hurt if you do, it's just not necessary), and do nOT set any CLASSPATHs or other Java stuff 9i:. Oracle bundles several different JREs with different Oracle 9i products Oracle 9i R2 for example bundles the Sun JRE 1.3.1. . The tips above for 8i apply (ie you do not need any additional Java package) -.?.. Which JDK This is something different from the above, which is just the Java Runtime Environment The JDK is a Java DEVELOPMENT Kit It is needed For Java Development. The Jre Should Still Be Used to Run The Oracle GUI Tools. Oracle Usees The JDK 1.1.8. You can Use the IBM JDK 1.1.8 or the Blackdown O Ne. EXAMPLE: .BASH_PROFILE # .bash_profile # get the aliases and functions if [-f ~ / .bashrc]; Then. ~ / .bashrc Fi # user specific Environment and Startup Programs Path = $ PATH: $ HOME / BIN EXPORT PATH unset USERNAME # Stuff for 8.1.7 Install export LD_ASSUME_KERNEL = 2.2.5 export ORACLE_BASE = / u01 / oracle export ORACLE_HOME = $ ORACLE_BASE / product / 8.1.7 export PATH = $ PATH: $ ORACLE_HOME / bin unset LANG # Java DEVELOPMENT Kit for 8.1.7 JAVA_HOME = / usr / local / java; export JAVA_HOME CLASSPATH = $ {JAVA_HOME} /lib/classes.zip; export CLASSPATH #Need to point to init * .ora ORACLE_SID = frodo; export ORACLE_SID # Need shared libraries ie for LSNRCTL IF ["$ {ld_library_path: -}" == ""];

then LD_LIBRARY_PATH = $ {ORACLE_HOME} / lib: / usr / lib: / usr / local / lib else LD_LIBRARY_PATH = $ {ORACLE_HOME} / lib: $ {LD_LIBRARY_PATH} fi export LD_LIBRARY_PATH Error with database startup I thought install set ORACLE_SID Apparently?. Not all of the time. if you see could not open parameter file '? /dbs/init@.ora' ... [Oracle @ frodo oracle] $ SVRMGRL Oracle Server Manager Release 3.1.7.0.0 - Production CopyRight (C) 1997, 1999, Oracle Corporation All Rights Reserved Oracle8i Enterprise Edition Release 8.1.7.0.1 - Production With the Partitioning option JServer Release 8.1.7.0.1 - Production SVRMGR> connect internal Connected SVRMGR> startup LRM-00109:... could not open parameter file ORA-01078 '/dbs/init@.ora?':. failure in processing system parameters SVRMGR> exit Server Manager complete [oracle @ frodo oracle] $ export ORACLE_SID = frodo Add ORACLE_SID to .bash_profile lsnrctl: command not found Example: 1 [Oracle @ frodo oracle] $ LSNRCTL Status Bash: Lsnrctl: Command Not Found [Oracle @ frodo oracle] $ echo $ Path / usr / local / bin: / bin: / usr / bin: / us / oracle / bin: /u01/oracle/Product/8.1.7/bin [Oracle @ frodo oracle] $ echo $ LD_LIBRARY_PATH [oracle @ frodo oracle] $ [oracle @ frodo oracle] $ export LD_LIBRARY_PATH = $ {ORACLE_HOME} / lib: / usr / lib: / usr / local / lib [oracle @ frodo oracle] $ echo $ LD_LIBRARY_PATH / u01 / Oracle/Product/8.1.7/lib:/usr/lib:/usr/local/lib [Oracle @ frodo oracle] $ LSNRCTL Status Lsnrctl for Linux: Version 8.1.7.0.0 - Production On 28-Sep-2003 11 : 11: 31 (C) Copyright 1998 Oracle Corporation. All Rights Reserved. Connecting To (deScription = (Protocol = IPC) (key =

EXTPROC))) TNS-12541: TNS: no listener TNS-12560: TNS: protocol adapter error TNS-00511: No listener Linux Error: 2: No such file or directory Connecting to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (Host = frodo.athlone.com) (port = 1521))) TNS-12541: TNS: No Listener TNS-12560: TNS: Protocol Adapter Error TNS-00511: No Listener Linux Error: 111: Connection Refused Which is Okay, if you have not started the listener yet lsnrctl:. command not found Example: 2 [oracle @ frodo oracle] $ lsnrctl status bash: lsnrctl: command not found So you checked the LD_LIBRARY_PATH and still no listener Sometimes files in the $ ORACLE_HOME? / bin do not get initialised properly. Check to see if lsnrctl exists. [oracle @ frodo 8.1.7] $ find -name lsnrctl * -depth -print ./bin/lsnrctlO I have had success with copying the file xxxxxO to xxxxx And trying again. root.sh repairs fixing those darn errors in root.sh RMF = / bin / rm -f is change to rmf = "/ bin / rm -f" and line 156 ruid = `/ usr / bin / id | $ Awk -f / ('{Print $ 2}' | $ awk -f /) '{print $ 1} `is change to ruid =` / usr / bin / id | $ awk -f / ('{print $ 2}' | $ awk -f /) '{Print $ 1}' `execute the script root.sh as user root:. Reinstall Reinstalling Oracle is tricky on NT There are even some registry entries you have to trick to remove It's easy on Linux Delete / etc / or * and /u01/oracle/product/8.1.7 Check Oracle user's .bash_profile.. Tools: Hardware and Such> this first box '


New Post(0)