Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Overview
Introduction
Welcome, and thank you for choosing Oracle University. This technical document describes the necessary steps to follow in order to replicate the technical environment for which this course was designed. Before proceeding, you may find it helpful to print this document for ease of reference. The setup for this course is the one that corresponds to the normal setup resulting from a typical Oracle Database10g installation followed by the creation of a database using DBCA. The only addition for this setup are mainly a special setup for the ASM and Oracle Secure Backup labs as well as the addition of the lab and solution files.
Alternative Configurations
We strongly recommend following the exact configurations described in this document. However, we realize that with the abundance of hardware, software, and networking configurations it will not always be possible to follow these steps to the letter. As a result, here is a brief overview of some additional configurations that may work. Please be sure to test these configurations thoroughly and discuss them in detail with your Oracle University Representative before utilizing them to support the course. By following a typical Oracle Database 10g installation that includes Enterprise Manager Database control, you should be able to run this course. Note however that we do not provide any Windows-based setup instructions.
Required Files
The following files are needed for the purposes of completing this setup. If you are missing all or part of these files, please contact your Oracle University Representative: D17092GC30_labs.zip
Glossary of Terminology
Application Server Middle Tier in a 3-Tier or N-Tier architecture. Could consist of the Oracle HTTP Server, Forms Service, Reports Service and Discoverer Server. Client Workstation The computer where client software is installed. Client software might include SQL*Plus, Oracle Forms and Reports Developer, Oracle Designer, Jdeveloper, Procedure Builder and an HTML browser. In a 3-Tier or N-Tier architecture this would be the Client Tier. In the training environment, this is sometimes known as the student machine. Database - Collection of data that is treated as a unit. The purpose of a database is to store and retrieve related information. The database consists of operating system files: data files, control files and redo log files. Database Instance - Every time a database is started, a system global area (SGA) is allocated and Oracle background processes are started. The system global area is an area of memory used for database information shared by the database users. The combination of the background processes and memory buffers is called an Oracle instance. Database Server - Computer where database is created. In a 3-Tier or N-Tier architecture this would be the Database Tier. DMP files files created buy the Oracle Export utility. These DMP files are then used by the Oracle Import utility to import a database, a specific database users objects or a specific set of tables. Intelligent Agent (IA) - A process running on the server that accepts and runs job requests from the Oracle Enterprise Manager Console. Oracle Enterprise Manager (OEM) - a Graphical User Interface tool used to manage oracle databases. OEM Repository - database that stores information about resources managed through OEM. Oracle Management Server - provides a scaleable middle tier for processing system management tasks. It is the optional middle tier of Oracle Enterprise Manager (OEM) n-tier architecture. ORACLE_BASE operating system variable that specifies the BASE of the Oracle directory structure for OFAcompliant databases. ORACLE_HOME - operating system variable that points to the directory where oracle has been installed ORACLE_SID operating system variable that determines the instance an Oracle application connects to by default.
Setup Instructions
Hardware Requirements for Workstation
Minimum Operating System CPU Memory Hard Drive Video Monitor CD-ROM Ethernet Browser Red Hat Linux AS 2.1 2.4.9-e.25 1.0 GHz
Recommended Red Hat Linux EL 3.0 2.4.21-4.EL 1.7 GHz 1 Gig 15 Gig Or Higher Or Higher Or faster Or faster Mozilla1.4
512 Meg 15 Gig 1024x768 resolution, 256 color, 70Hz refresh 17 1024 x 768 resolution at 70MHz 4x CD-ROM SCSI or EIDE 16 bits 10 Base T twisted pair Mozilla 1.4
Plugin
4. Enter the following command to set the password of the oracle user:
/usr/sbin/passwd oracle
5. With an editor of your choosing edit /home/oracle/.bash_profile to include the following entries:
umask 022 PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin LD_LIBRARY_PATH=/usr/lib:/usr/X11R6/lib ORACLE_BASE=/u01/app/oracle ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1 ORACLE_SID=orcl LD_LIBRARY_PATH=$ORACLE_HOME/jdk/jre/lib/i386: $ORACLE_HOME/jdk/jre/lib/i386/server: $ORACLE_HOME/rdbms/lib:$ORACLE_HOME/lib:$LD_LIBRARY_PATH PATH=$ORACLE_HOME/bin:$PATH export PATH LD_LIBRARY_PATH export ORACLE_BASE ORACLE_HOME ORACLE_SID
6. Create the directory for the software installation and assign ownership to oracle:oinstall.
mkdir -p /u01/app/oracle chown -R oracle:oinstall /u01/app chmod -R 775 /u01/app
7. Open the /etc/sysctl.conf file in any text editor and add lines similar to the following:
kernel.sem = 250 32000 100 128 kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 fs.file-max = 65536 net.ipv4.ip_local_port_range = 1024 65000
10. Connect as oracle in a Xterm enabled window to begin the installation. Mount the Oracle Database 10g CD. Execute the script /mnt/cdrom/runInstaller from oracle's home directory, /home/oracle.
/mnt/cdrom/runInstaller
11. At the Welcome window, click Next. 12. You need to specify your Inventory Directory. The location should be set to /u01/app/oracle/oraInventory. Operating System Group Name, oinstall. Click OK. 13. A window will appear requesting orainstRoot.sh be executed. Leave this window open and open a new terminal window. 14. You need to execute orainstRoot.sh as the root user. Open a terminal window and enter the following commands:
su <rootpassword> cd /u01/app/oracle/oraInventory ./orainstRoot.sh exit exit
15. In the Oracle Universal Installer window and click Continue. 16. In the Specify File Locations window, verify the path is /u01/app/oracle/product/10.2.0/db_1 then click Next. 17. Make sure the Installation Type Enterprise Edition is selected and click Next. 18. The installer will now verify the system meets all the minimum requirements for installing and configuring the chosen product. Correct any reported issues before continuing. This may require you to stop the installation make the changes then start again. When the check successfully completes click Next. 19. You want to create a starter database. Make sure Create a starter database and General Purpose is selected then click Next. 20. Enter orcl.oracle.com as the Global Database Name, and select the check box to Create database with example schemas. Select Unicode standard UTF-8 AL32UTF8 as the Database Character set. Click Next. 21. The Database Management Options screen allows you to choose between Database Control or Grid Control of your database. In this example, you will accept the default which is Database Control. Click Next. 22. Specify the Database file location as /u01/app/oracle/oradata and click Next. 23. At the Backup and Recovery Options screen, do not enable automated backups. Accept the default and click Next. 24. Enter a password and confirm password for all accounts and click Next. Use password oracle. 25. At the Summary screen, review what will be installed and click Install. 26. You will see the progress window. 27. The Configuration Assistants Window will appear.
28. The Database Configuration Assistant (DBCA) will start. 29. Once the database is created the DBCA Password window will appear, click OK. 30. When the Setup Privileges window appears, open a new terminal window. 31. Execute root.sh as the root user. In the open terminal window and enter the following commands:
cd $ORACLE_BASE/product/10.2.0/db_1 su <rootpassword> ./root.sh exit exit
32. End of installation summary. Click OK. 33. Click Yes to exit. 34. Unlock and assign passwords to all locked schemas in the database. Open a text editor and create a text file named unlock.sh which contains (cut and paste):
sqlplus -S /nolog <<ENDSQL connect / as sysdba SET LINESIZE 132 SET PAGESIZE 0 SET TERMOUT OFF SET NEWPAGE 0 SET SPACE 0 SET ECHO OFF SET FEEDBACK OFF SET HEADING OFF SPOOL x.sql SELECT 'ALTER USER '||username||' IDENTIFIED BY '||username||' ACCOUNT UNLOCK;' FROM dba_users WHERE account_status LIKE '%LOCK%'; SPOOL OFF @x.sql !rm x.sql exit <<ENDSQL
35. Change permissions on file unlock.sh to make it executable, then execute it.
chmod u+x unlock.sh ./unlock.sh
37. Create five 400MB files that will be used as ASM disks. Create those files in /u01/asmdisks.
cd dd dd dd dd dd /u01/asmdisks if=/dev/zero of=asm_disk1 if=/dev/zero of=asm_disk2 if=/dev/zero of=asm_disk3 if=/dev/zero of=asm_disk4 if=/dev/zero of=asm_disk5 bs=1024k bs=1024k bs=1024k bs=1024k bs=1024k count=400 count=400 count=400 count=400 count=400
38. Make sure that the asm_disk files are associated to raw devices, and have the right permissions: 7
chmod 777 asm_disk* losetup losetup losetup losetup losetup raw raw raw raw raw /dev/loop1 /dev/loop2 /dev/loop3 /dev/loop4 /dev/loop5 asm_disk1 asm_disk2 asm_disk3 asm_disk4 asm_disk5 /dev/loop1 /dev/loop2 /dev/loop3 /dev/loop4 /dev/loop5 /dev/raw/raw1 /dev/raw/raw2 /dev/raw/raw3 /dev/raw/raw4 /dev/raw/raw5
39. Make sure that you stage the Oracle Secure Backup software in the /stage/OSB directory: You should grab ob-4.1cdrom050705 first. Contact your OU representative for more information.
su mkdir /stage cd /stage mkdir OSB cd OSB
40. Then you need to patch the EM software for Oracle Secure Backup links to appear. For that step, you need to replace. For this step, you need to contact your OU representative. 41. As user oracle create the labs and solutions directory in $HOME
cd mkdir labs mkdir solutions
42. As oracle user, extract D17092GC30_labs.zip in $HOME. First, you need to ftp D17092GC30_labs.zip to $HOME in binary mode. Once done, move all the files located into $HOME/D17092GC30_labs/labs into $HOME/labs. Then, move all the files located into $HOME/D17092GC30_labs/solutions into $HOME/solutions. Then, remove the $HOME/D17092GC30_labs directory and the D17092GC30_labs.zip.
cd unzip -a D17092GC30_labs.zip mv $HOME/D17092GC30_labs/labs/* $HOME/labs mv $HOME/D17092GC30_labs/solutions/* $HOME/solutions rm -Rf D17092GC30_labs rm D17092GC30_labs.zip
43. Change permissions to 777 on all the files locates into $HOME/labs and $HOME/solutions:
cd $HOME/labs chmod 777 * cd $HOME/solutions chmod 777 *
Non-Oracle software: 8
Mozilla 1.4 with these plugins configured: - Adobe SVG Viewer 3.01 Beta (Build 88) - Adobe Acrobat Reader 5.08 - Java Runtime Environment 1.4.2_03 These plugins and the installation instructions are available from Mozilla(http://plugindoc.mozdev.org/linux.html)
Software Test Instructions Testing Oracle*Net: To test the listener and tnsnames are configuration do the following to force an Oracle*Net connection. As the oracle os user in a terminal window:
sqlplus /nolog set instance orcl connect sys/oracle as sysdba
Testing DB Control: Start Mozilla 1.4 and point to http://hostname:1158/em. Verify the port location in $ORACLE_HOME/install/portlist.ini.
user: sys pass: oracle as: sysdba
This will bring up the licensing agreement and then take you into DB Control. Testing iSQLPlus: Start Mozilla 1.4 and point to http://hostname:5560/isqlplus. Verify the port location in $ORACLE_HOME/install/portlist.ini.
user: sh pass: sh sid: orcl
10
Clean Up
Server Clean-Up
Related Courses
We hope your Oracle University training experience was a positive one! For information on additional training services and opportunities within , please visit us at http://education.oracle.com. We look forward to serving you again in the future.
11