Documente Academic
Documente Profesional
Documente Cultură
D12619GC10
Terminology
Site Administrator Point of contact responsible for setting up and testing classroom environment. The administrator is also responsible for explaining setup and login procedures to the instructor. Client/Server Course Course conducted with client/server architecture. Database server resides on the CLASSROOM SERVER and client software resides on each CLASSROOM WORKSTATION. Currently, most language courses (Introduction to Oracle: SQL and PL/SQL 8i, Introduction to Oracle for Experienced SQL Users 8i, Advanced SQL 8i, etc.) are client/server courses. CLASSROOM SERVER This is the database server for most language courses. Some courses may require middle tier software to be installed. CLASSROOM WORKSTATION - A PC used by a student to perform practice labs. For the language courses, the client must have all necessary software installed and running locally. For standalone courses, both client and server software must be locally. Some courses may require middle tier software to be installed. N-Tier Course Course conducted with database on CLASSROOM SERVER, client software installed on CLASSROOM WORKSTATION and middle tier installed on the CLASSROOM SERVER or the CLASSROOM WORKSTATION. Several courses require an N-Tier configuration. Currently all language courses (Oracle9i: Introduction to SQL, Oracle9i: Program with PL/SQL, etc ) are N-Tier courses. Standalone Course - Course conducted with database server, middle tier server (if required) and client software residing on each CLASSROOM WORKSTATION. Currently all DBA courses (Oracle9i Database Administration Fundamentals I and II, and Oracle9i Database Performance Tuning) are standalone courses. Oracle 9i Data Guard Administration is also a standalone course.
Specific software requirements for this course can be found in the section titled Course Specific Description and Information. Unless noted otherwise, the CLASSROOM SERVER can be used as the Instructors WORKSTATION.
Documentation
Documentation can be found at the Oracle University On-Site and Partner web site. Individual course setup documents are also available at this site. These documents provide step by step course setup instructions and tests that verify the setup. This documentation is intended primarily for the site administrators. In addition, there are instructor read me files on how to conduct each course on Windows NT. These files are intended for instructors, but site administrators should also review them. These read me files include corrections to demo, labs, and solution files.
Multiple ORACLE_HOMEs
The software that you have installed determines the number of ORACLE_HOMEs created. The following table is provided as an example.
Location c:\oracle\ora92
A description of the ORACLE_HOMEs required for this specific course can be found in the section titled Course Specific Description and Information.
NT Services
Running Oracle on the NT platform requires you to be familiar with NT services. Prior to starting an instance, an NT service must be started. The ORADIM Utility creates the NT-service that allows the instance to be started. Almost every Oracle executable runs as an NT Service including the Listener, Intelligent Agent, Names Server, Connect Manager and Oracle Management Server, etc., all run as NT services. Most of these services are created upon installing the software. To view, start, and stop services go to Start > Settings > Control Panel > Services.
The Instructor CLASSROOM WORKSTATION and each student CLASSROOM WORKSTATION will have Oracle9i DB EE 9.2.0.1.0 installed. On the Instructor CLASSROOM WORKSTATION and each student CLASSROOM WORKSTATION one ORACLE HOME will exist.
Location c:\oracle\ora92
Two databases will be created DBAA and ORCL. Running a DOS command file will create the DBAA Database. The students to perform practices exercises use the DBAA Database. It is commonly know as the managed database. The ORCL Database, will be created using the Enterprise Manager Configuration Assistant. ORCL will be the repository for the Oracle Management Server (OMS).
Hardware Requirements Instructor CLASSROOM WORKSTATION and each Student CLASSROOM WORKSTATION
Recommended
CPU
Pentium II 233
Memory
512M
1G
Hard Drive
8 GB NTFS
Video
Monitor
CD-ROM
Ethernet
Location c:\oracle\ora92
Two databases will be created DBAA and ORCL. Running a DOS command file will create the DBAA database. The students to perform practices exercises use the DBA database. It is commonly know as the managed database. The ORCL database will be created using the Enterprise Manager Configuration Assistant. ORCL will be the repository for the Oracle Management Server (OMS).
1a. NT Setup
Overview: In this phase you will create an NT group, create an NT user, add rights and set user environment variables. Duration: 10 minutes
Task: Create NT group, users and rights Log into the CLASSROOM WORKSTATION as the administer. Go to Start Menu, Programs, Administrative Tools (Common), and open User Manager for Domains. Select User -New Local Group in the Menu Bar and enter "ORA_DBA" in the Group Name dialogue box. Add Administrator to the group ORA_DBA. Select User -New User in the Menu Bar. Enter "dba" for the Username and "oracle" for the Password. Ensure that "User Must Change Password at Next Login" and "Account Disabled" are not checked. Ensure that "User Cannot Change Password" and "Password Never Expires" are checked. Add the "dba" user to the "Administrators", "ORA_DBA" and "Users" Groups. Select Policies - User Rights. In the User Rights Policy screen check "Show Advanced Rights". In the "Right" drop down box select "Act as part of the operating system". Click the "Add" button. In the "Add Users and Groups" screen highlight the "Administrators" and the "ORA_DBA" groups and click "Add". Repeat this process for the following Advanced Rights, "Increase quotas", "Log on as a service", "Log on as a batch job" and "Replace a process level token". The end result is the Administrator and ORA_DBA groups should have the following Advanced Rights: Act as part of the operating system Increase quotas Log on as a batch job Log on as a service Replace a process level token Task: Setup User Environment Variables Log into the CLASSROOM WORKSTATION as the user "dba" with a password of "oracle". Set CLASS_HOME as a user environment variable with a value of the location of course lab/demo/solution files. The recommended and default location is c:\oraclass. To set a system variable access the System Properties property sheet by either right clicking on My Computer and selecting Properties or via the Control Panel System icon. Select the Environment tab and highlight any of the variables in the User Variables window then in the Variable text field enter CLASS_HOME and in the Value text field enter c:\oraclass. Click Apply to save the changes. Set ORACLE_HOME as a user environment variable. The recommended and default location is c:\oracle\ora92. To set a system variable access the System Properties property sheet by either right clicking on My Computer and selecting Properties or via the Control Panel System icon. Select the Environment tab and highlight any of the variables in the User Variables window then in the Variable text field enter ORACLE_HOME and in the Value text field enter c:\oracle\ora92. Click OK to save the changes.
Overview: In this phase you will install Oracle9i Database. During testing better results were achieved by copying all files from all 3 CDs to a staging area on the CLASSROOM WORKSTATION. Folders were created c:\temp\disk1, c:\temp\disk2 and c:\temp\disk3. Files were copied from each CD to these folders.
Duration: 40 minutes Task: Install Oracle9i Database Log into the CLASSROOM WORKSTATION as the administrator. Place the Oracle9i Database Release 2 9.2.0.1.0 CD (Part # A91798-01) into the CD-ROM or start the installer by double-clicking Setup. In the Welcome screen select "Next". In the File Location screen enter the Name and Path of the Oracle9i ORACLE_HOME then select Next Name: OraHome92 Path: c:\oracle\ora92 In the Available Products screen select "Oracle9i Database 9.2.0.1.0 then select "Next". In the "Installation Types" screen select "Enterprise Edition (2.86GB)" then select "Next". In the "Database Configuration" screen select "Software Only" then select "Next". In the Oracle Services for Microsoft Transaction Server screen select Next. In the Oracle Services for Microsoft Transaction Server Oracle MTS Recovery Service Configuration screen take the default Port Number (2030) then select Next. In the "Summary" screen select "Install". In the "End of Installation" screen select "Exit". Reboot the CLASSROOM WORKSTATION.
Overview: In this phase you will configure a Listener and service names. Duration: 10 minutes Task: Configure Listener Copy c:\oracourse\network\listener.ora to c:\oracle\ora92\network\admin. Edit c:\oracle\ora92\network\admin\listener.ora and replace all occurrences of XXXXX with the name of the CLASSROOM_WORKSTATION. Edit the ORACLE_HOME for each instance. DBA should have an ORACLE_HOME where 9.2.0.1.0 is installed (c:\oracle\ora92 is the default location). Go to a DOS prompt and type the following: C:\lsnrctl start LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 23-SEP-2002 10:52:01 Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved. Starting tnslsnr: please wait... TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Production System parameter file is c:\oracle\ora92\network\admin\listener.ora Log messages written to c:\oracle\ora92\network\log\listener.log Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=aoec-work)(PORT=1521))) Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=AOECWORK)(PORT=1521))) STATUS of the LISTENER -----------------------Alias LISTENER Version TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Production Start Date 23-SEP-2002 10:52:03 Uptime 0 days 0 hr. 0 min. 2 sec Trace Level off Security OFF SNMP OFF Listener Parameter File c:\oracle\ora92\network\admin\listener.ora Listener Log File c:\oracle\ora92\network\log\listener.log Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=aoec-work)(PORT=1521))) Services Summary... Service "DBAA.WORLD" has 1 instance(s). Instance "DBAA", status UNKNOWN, has 1 handler(s) for this service... Service "ORCL.WORLD" has 1 instance(s). Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service... The command completed successfully
Task: Configure Net8 Service Names Copy c:\oracourse\network\tnsnames.ora to c:\oracle\ora92\network\admin. Edit c:\oracle\ora92\network\admin tnsnames.ora and replace all occurrences of CLASSROOM_WORKSTATION with the name of the CLASSROOM_WORKSTATION. Copy c:\oracourse\network\sqlnet.ora to c:\oracle\ora92\network\admin.
Task: Create DBA Database At a dos prompt change directories to location of DOS command file and run 9idgR2.cmd C:\ C:\>cd oracourse\setup C:\Oracourse\Setup>\9idgR2.cmd NOTE Check c:\oraclass\admin\create\credb.log, credb1.log and credb2.log for any errors.
Task: Test Setup At a DOS Prompt type the following: C:\Oracourse\Setup>sqlplus system/manager@DBAA SQL*Plus: Release 9.2.0.1.0 - Production on Mon Sep 23 14:29:48 2002 Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production With the Partitioning, OLAP and Oracle Data Mining options JServer Release 9.2.0.1.0 - Production SQL>
Task: Test Setup (continued) SQL> select username 2 from dba_users order by 1; USERNAME -----------------------------DBSNMP HR MDSYS OE OUTLN SYS SYSTEM 7 rows selected. SQL> select tablespace_name 2 from dba_tablespaces; TABLESPACE_NAME -----------------------------SYSTEM UNDOTBS TEMP EXAMPLE SQL> connect hr/hr@DBAA Connected. SQL> select table_name 2 from user_tables; TABLE_NAME -----------------------------COUNTRIES DEPARTMENTS EMPLOYEES JOBS JOB_HISTORY LOCATIONS REGIONS 7 rows selected.
2. 3. 4. 5. 6. 7. 8. 9.
10. Enter oracle as the password for SYS and SYSTEM. Click OK. 11. When processing is complete, click Close.
Task: Stop and Start Oracle Intelligent Agent Start > Settings > Control Panel > Services Select the OracleOraHome92Agent, then select Stop. Select the OracleOraHome92Agent, then select Start.
Task: Update Registry Log into the CLASSROOM SERVER as the administrator. Set ORACLE_SID and SQLPATH in the Registry. To accomplish this invoke DOS and type regedt32 or click Start Menu -> Run and type regedt32 (or regedit). Navigate to HKEY_LOCAL_MACHINE>SOFTWARE>ORACLE>HOMEX (ORACLE_HOME where Oracle9i installed) Select the Value ORACLE_SID, in the String box type replace the existing string with DBAA then click OK. Select the Value SQLPATH, in the String box type replace the existing string with c:\oraclass\demo;c:\oraclass\student\labs;c:\oraclass\student\solns then click OK. Close registry editor.
Instructor Notes
Oracle 9i Database: Data Guard Administration D12619GC10 Production 1.0 September 2002 A Standalone course on NT
NT Log In Accounts Students and instructors log into their NT CLASSROOM WORKSTATION with the following User Name: Password: dba oracle
NT Services Before starting the class ensure the following NT services are Started and set to start Automatically on each student and instructor workstation. Stop all other Oracle services and set them to start manually. OracleOraHome92Agent OracleOraHomeHTTPServer OracleOraHome92TNSListener OracleOraHome92ManagementServer OracleServiceDBAA OracleServiceORCL
Instructor Notes
Oracle 9i Database: Data Guard Administration D12619GC10 Production 1.0 September 2002 A Standalone course on NT Location of Course Files c:\oraclass\admin\bdumpA c:\oraclass\admin\bdumpB c:\oraclass\admin\bdumpC c:\oraclass\admin\cdumpA c:\oraclass\admin\cdumpB c:\oraclass\admin\cdumpC c:\oraclass\admin\create c:\oraclass\admin\pfile c:\oraclass\admin\udumpA c:\oraclass\admin\udumpB c:\oraclass\admin\udumpC c:\oraclass\backup\ c:\oraclass\demo c:\oraclass\donttouch c:\oraclass\oradataa\archive1 c:\oraclass\oradataa \archive2 c:\oraclass\oradataa\u01 c:\oraclass\oradataa\u02 c:\oraclass\oradataa\u03 c:\oraclass\oradataa\u04 c:\oraclass\oradataa\u05 c:\oraclass\oradataa\u06 c:\oraclass\oradatab\archive1 c:\oraclass\oradatab\archive2 c:\oraclass\oradatab\u01 c:\oraclass\oradatab\u02 c:\oraclass\oradatab\u03 c:\oraclass\oradatab\u04 c:\oraclass\oradatab\u05 c:\oraclass\oradatab\u06 c:\oraclass\oradatac\archive1 c:\oraclass\oradatac\archive2 c:\oraclass\oradatac\u01 c:\oraclass\oradatac\u02 c:\oraclass\oradatac\u03 c:\oraclass\oradatac\u04 c:\oraclass\oradatac\u05 c:\oraclass\oradatac\u06 c:\oraclass\student\labs c:\oraclass\student\solns
Instructor Notes
Oracle 9i Database: Data Guard Administration D12619GC10 Production 1.0 September 2002 A Standalone course on NT Lesson, Demo, Lab and Solution Corrections Note: Location of course files and variables Demo files: Practice files: Solution files: CLASS_HOME: Note: c:\oraclass\demo c:\oraclass\student\labs c:\oraclass\student\solns c:\oraclass
Primary Database Information ORACLE_SID: Service Name: NT Service: Parameter file: Password file: DBAA DBAA.WORLD OracleServiceDBAA %ORACLE_HOME%\database\initDBA.ora with the one parameter ifile=c:\oraclass\admin\pfile\initdba.ora %ORACLE_HOME%\database\pwddba.ora
Note: Repository Database Information ORACLE_SID: Service Name: NT Service: ORCL ORCL.WORLD OracleServiceORCL
The student guides were written for UNIX servers. The CLASS_HOME variable on NT is the equivalent of $HOME on UNIX.
Practice 4: Creating a Physical Standby Database with Data Guard Manager GUI 2. After discovery two databases will been seen, DBAA.WORLD and ORCL.WORLD. 3.c. OS username is dba and password is oracle. 4. Listener service OracleOraHome92TNSListener should be started but is not needed for the backup. Student to run c:\oraclass\student\labs\backup.cmd.
Instructor Notes
Oracle 9i Database: Data Guard Administration D12619GC10 Production 1.0 September 2002 A Standalone course on NT Lesson, Demo, Lab and Solution Corrections (continued) Practice 4: Creating a Physical Standby Database with Data Guard Manager GUI 6. Configuration Name: Primary database name: Primary database site: Standby database name: Standby database site: Datafile location: DBAA_config1 DBAA site_a DBAB site_b c:\oraclass\oradataB\u0*
Standby archive location: c:\oraclass\oradataB\archive2 Note: Clean up for the workshop expects the physical standby database instance to be named DBAB. Note: To see the standby in the Console, stop and start the agent and perform discovery on the node. Practice 8: Creating a Logical Standby Database with Data Guard Manager GUI 2. Configuration Name: Primary database name: Primary database site: Standby database name: Standby database site: Datafile location: DBAA_config2 DBAA site_a DBAC site_c c:\oraclass\oradataC\u0*
Standby archive location: c:\oraclass\oradataC\archive2 Note: Clean up for the workshop expects the logical standby database instance to be named DBAC. Note: To see the standby in the Console, stop and start the agent and perform discovery on the node.
Instructor Notes
Oracle 9i Database: Data Guard Administration D12619GC10 Production 1.0 September 2002 A Standalone course on NT Lesson, Demo, Lab and Solution Corrections (continued) Practice 11 Workshop To setup for the workshops use the instructions under the following headings on page 11-10 and page 1125. For any classroom No changes, follow use written. For a non-Oracle classroom All steps can be accomplished manually by the students, or scripts are provided for each bullet point. All scripts are are located in c:\oraclass\student\labs. To shutdown and remove NT services for all standby instances/databases students can run del_instances.cmd. To delete all datafiles, redo log files, standby redo logs, parameter files, spfiles, and password files for standby databases students can run del_dbfiles.cmd. To delete Data Guard monitor configuration files students can run del_configs.cmd. To restore the Primary database backup taken in Practice 4 students can run restore.cmd. This script will take a cold backup the Primary in its current configuration and place it in c:\oraclass\backup. This is a safety backup taken prior to restoring the backup taken in Practice 4.
To help conserve memory it advised that you set the set the following parameters on the s ORCL instance. SHARED_POOL_SIZE JAVA_POOL_SIZE LARGE_POOL_SIZE DB_CACHE_SIZE 20M 0 0 4M
Workshop Part II When cleaning up the database after the first workshop you will need to reboot the machines or you may run into error ORA-16524 on the process LSP0 and you will not be able to create the Logical standby.