lunes, diciembre 01, 2003
| Oracle 8i release 3 (version 8.1.7) Step-by-step Install Which dist of Linux will work? RedHat 7.0 issues All information about this fix can be found at ftp.kernel.org/pub/software/libs/glibc/hjl/ WARNING! WARNING! WARNING! The machine I used to install Oracle What's in this doc Initial Install A. Partitioning 2) Partition the drive to your preferences. I ignored the OFA-compliance and just made one mount point (/u01). You can also fake OFA by making four directories, but you won't gain any performance from this. You'll gain some performance by creating four distinct partitions (/u01, /u02, /u03,/u04) and you'll gain the most performance by having each of these mount points on four distinct drives, as Oracle recommends. These directions assume only one mount point. B. X Windows C. Install options
Make sure you have your kernel source somewhere on your computer. Kernel memory params Oracle will run fine without changing any of the kernel parameters.This is because nearly all the parameters are already above Oracle's recommendation. Here's my take on changing the kernel params: If you're just setting up a personal database so you can develop on it, don't worry about changing the kernel. Everything will work fine for your needs. If, on the other hand, you're putting this into production, consider making the appropriate changes. The only parameter you MIGHT have to worry about is the SHMMAX setting, and you should only worry about this one if your machine has more than 64 megs RAM, and you are really going to do some heavy database work. If you feel like you MUST change it, here's how: WARNING! Changing memory params
2) A little further down is a line that says "#define SHMMAX 0x2000000." The 0x2000000 is hex for 32 megs. Oracle says this value should be one-half of your installed memory. Change it to the appropriate value. For example, I have 128 megs RAM in my machine, so Oracle suggests I change this setting to 0x4000000, or slightly above 64 megs. Other values: 0x4000000 = 67108854 0x6000000 = 100663296 0x8000000 = 134217728 0x10000000 = 268435456 0x20000000 = 536870912 3) Save the file. 4) You're now ready to proceed with the process of recompiling the kernel. Recompile it, then continue below. Stuff you have to download before installing The Oracle file Go to technet.oracle.com and download linux817ee.tar. That's all you need from Oracle. It's quite big at 500 mb. You can also order a CD from oracle with the same thing on it.
Java SDK Oracle 8i release 3 requires JDK 1.1.8 to be installed. It looks for the jdk at /usr/local/java. We'll put the jdk at /usr/local and create a link. 1) Login as root and use a web browser to go to http://www.blackdown.org 2) Click on the downloads link. 3) Pick an FTP site that is geographically near you. 4) The file to look for is jdk118_v3-glibc-2.1.3.tar.bz2. Do NOT download a newer version as it may not work. 5) Download this file to /usr/local. 6) Open a terminal window. We'll now extract the file and create a symbolic link so the Oracle Installer can find it. Run the following commands:
7) That's all there is to it! Oracle Set up Oracle account and group 1) If you are not already logged in as root, log in now. 2) If you don't have a terminal window already open, open one. 3) In the terminal window, create your groups. oinstall is used to install
4) Create the oracle user with oinstall as the primary group and dba and oper as the secondary groups.
5) If you didn't make mount points with disk partitioning, make a directory for oracle, such as /u01.
6) Change owner and group permissions on these mount points.
7) Log out. Setting up the oracle user's environment 2) If you don't have a terminal window open, open one now. 3) Verify umask is 022 by typing umask [enter]. If it is, great. If not, you'll need to put it in .bash_profile, which we edit in the next step. 4) Use your favorite editor to edit the .bash_profile file in your oracle account's home directory. Put the following lines in this file:
5) There is one more environment variable you might need to add to your .bash_profile. If you are NOT using US English, you will need to add the ORA_NLS33 and the NLS_LANG variables. ORA_NLS33 is the same value for all languages. NLS_LANG depends on which language set you want to use. Here are the available values (use the quotes in your NLS_LANG variable if they appear below): In my case, if I decided to add them for US English anyway, I would
6) Log out, then back in as oracle. Open a terminal window again if one isn't open and type env to see if all the above variables now appear in your environment. 7) Also make sure all the following paths are in your path statement,in addition to the Oracle path you specified above: /bin, /usr/bin, /usr/local/bin. 8) If everything isn't there, double-check your spelling, etc. in your .bash_profile. If everything is there, great! We're ready to move on. Oracle Install 1) Make sure your logged in as oracle. 2) In a terminal window, change to the directory containing the Oracle software.
2) Start the installer
3) A GUI window appears. Welcome to the Java-based Oracle installer. 4) Click the Next button. 5) Verify that the Source path says /usr/src/Disk1/stage/products.jar 6) The Destination path should be the same as your $ORACLE_HOME environment variable. 7) Click Next. 8) At the Unix Group Name window, enter "oinstall" as the group, then click Next. 9) A window will now pop up asking you to run the orainstRoot.sh script. Here is how to do that:
11) You will now get the Available Products screen. Select Oracle 8i Enterprise Edition 8.1.7.0.0 and click Next. 12) On the next screen, select Typical, then Next. 13) You will then be prompted for a global database name. This usually consists of a name you create, followed by your domain name. If you're just a home user, this might be something like oracle.localdomain. Since my domain here at work is fortwayne.com and this will be for web work, I'll name it oraweb.fortwayne.com. The one limit to the global database name is that the name itself must be eight characters or less. 14) Verify the ORACLE_SID is correct, then click Next. 15) The next prompt asks for a db files location. If you just created one mount point, this will be /u01. Enter it in here and click Next. 16) You will then be asked for the JDK home directory. Make sure it says /usr/local/java, then click Next. 17) Finally, at the summary window, Click the Install button. 18) The software begins installing! Woo-woo! 19) After files have been copied and linked, you will get another pop-up asking you to run the root.sh script.
20) Return to that pop-up window and hit OK. 21) The Oracle Net8 Configuration now starts. All you need to do is check the box marked "Perform typical configuration" and hit Next. 22) The Database Configuration Assistant now starts. Nothing to do here except hit OK when it says the database configuration is complete. 23) When the Database Configuration Assistant finishes, Oracle will start the webserver on port 7777. Again, you don't need to do anything here. 24) You are now at the End of Installation screen. Hit Exit. 25) Confirm that you want to exit. 26) All the software you need is now on the machine. If you want to do the optional post-install stuff, move on. Otherwise, you're set to go! IMPORTANT! Default passwords Oracle post-install (optional) These steps will get the TNS listener up and running and will also install the sample tables. Do them only if you want or need to. 1) Use the same terminal window that you used to run the installer. 2) If you want to access the Oracle server with the GUI management
3) The Oracle Server should be running. If not, you can start it with the following commands:
4) If you want to set up the sample tables for user scott/tiger, you can do it this way:
5) Now start SQLPlus and login as user scott and password tiger. Do a select * from emp and you should get some records back. Everthing is up and running! |
GeoURL