Oracle 9i Database Getting Started
Oracle 9i Database Getting Started
Oracle9i Database Getting Started, Release 2 (9.2) for Windows Part No. A95490-01 Copyright 1996, 2002 Oracle Corporation. All rights reserved. Primary Author: Craig B. Foch Mark Kennedy, Tamar Rothenberg, and Helen Slattery
David Collelo
The Programs (which include both the software and documentation) contain proprietary information of Oracle Corporation; they are provided under a license agreement containing restrictions on use and disclosure and are also protected by copyright, patent and other intellectual and industrial property laws. Reverse engineering, disassembly or decompilation of the Programs, except to the extent required to obtain interoperability with other independently created software or as specified by law, is prohibited. The information contained in this document is subject to change without notice. If you find any problems in the documentation, please report them to us in writing. Oracle Corporation does not warrant that this document is error-free. Except as may be expressly permitted in your license agreement for these Programs, no part of these Programs may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without the express written permission of Oracle Corporation. If the Programs are delivered to the U.S. Government or anyone licensing or using the programs on behalf of the U.S. Government, the following notice is applicable: Restricted Rights Notice Programs delivered subject to the DOD FAR Supplement are "commercial computer software" and use, duplication, and disclosure of the Programs, including documentation, shall be subject to the licensing restrictions set forth in the applicable Oracle license agreement. Otherwise, Programs delivered subject to the Federal Acquisition Regulations are "restricted computer software" and use, duplication, and disclosure of the Programs shall be subject to the restrictions in FAR 52.227-19, Commercial Computer Software - Restricted Rights (June, 1987). Oracle Corporation, 500 Oracle Parkway, Redwood City, CA 94065. The Programs are not intended for use in any nuclear, aviation, mass transit, medical, or other inherently dangerous applications. It shall be the licensee's responsibility to take all appropriate fail-safe, backup, redundancy, and other measures to ensure the safe use of such applications if the Programs are used for such purposes, and Oracle Corporation disclaims liability for any damages caused by such use of the Programs. Oracle is a registered trademark, and Oracle Store, Oracle7, Oracle8, Oracle8i, Oracle9i, OracleMetaLink, Oracle Names, PL/SQL, Pro*C/C++, Pro*COBOL, and SQL*Plus are trademarks or registered trademarks of Oracle Corporation. Other names may be trademarks of their respective owners.
Contents
Send Us Your Comments ................................................................................................................... xi Preface........................................................................................................................................................... xiii
Audience ............................................................................................................................................... xiv Organization......................................................................................................................................... xiv Related Documentation ...................................................................................................................... xvi Conventions......................................................................................................................................... xvii Documentation Accessibility ............................................................................................................ xxii
Introduction
Document Plan .................................................................................................................................... 1-2 Task Mapping ...................................................................................................................................... 1-2
iii
Hot Backups ......................................................................................................................................... Initialization Parameters: Multiple Database Writers ................................................................. Install Accounts and Groups ............................................................................................................ Installation ........................................................................................................................................... Memory Resources ............................................................................................................................. Microsoft Transaction Server............................................................................................................ Multiple Oracle Homes and OFA .................................................................................................... Processes and Threads ....................................................................................................................... Raw Partitions ..................................................................................................................................... Services .................................................................................................................................................
2-4 2-4 2-5 2-5 2-5 2-6 2-6 2-7 2-7 2-8
iv
Oracle Real Application Clusters Guard................................................................................. 4-13 Other Sources of Information ........................................................................................................ 4-13
vi
ORACLE_HOME Directory....................................................................................................... ADMIN Directory....................................................................................................................... ORADATA Directory................................................................................................................. DB_NAME Directory ................................................................................................................. OFA and Multiple Oracle Home Configurations....................................................................... Specifying an ORACLE_HOME Directory.............................................................................. Installing a Default OFA Database: Example......................................................................... Installing a Nondefault OFA Database: Example 1............................................................... Installing a Nondefault OFA Database: Example 2............................................................... Increasing Reliability and Performance....................................................................................... Disk Mirroring ............................................................................................................................ Disk Striping................................................................................................................................ Using Raw Partitions for Tablespaces ..................................................................................... Comparison Between OFA on Windows NT and UNIX ........................................................... Directory Naming....................................................................................................................... ORACLE_BASE Directory ......................................................................................................... Support for Symbolic Links on Windows NT ........................................................................
6-17 6-17 6-18 6-18 6-18 6-19 6-19 6-20 6-21 6-23 6-23 6-23 6-24 6-24 6-24 6-25 6-25
vii
MSHELP_TOOLS ..................................................................................................................... NLS_LANG ............................................................................................................................... ORA_CWD ............................................................................................................................... .. ORA_SID_AUTOSTART ......................................................................................................... ORA_SID_PFILE ................................................................................................................... ORA_SID_SHUTDOWN............................................................................................................ ORA_SID_SHUTDOWN_TIMEOUT ........................................................................................ ORA_SID_SHUTDOWNTYPE .................................................................................................. ORA_TZFILE .......................................................................................................................... ORACLE_AFFINITY .............................................................................................................. ORACLE_BASE........................................................................................................................ ORACLE_GROUP_NAME ......................................................................................................... ORACLE_HOME........................................................................................................................ ORACLE_HOME_KEY .............................................................................................................. ORACLE_HOME_NAME............................................................................................................ ORACLE_PRIORITY .............................................................................................................. ORACLE_SID .......................................................................................................................... RDBMS_ARCHIVE ................................................................................................................... OSAUTH_PREFIX_DOMAIN .................................................................................................. OSAUTH_X509_NAME............................................................................................................ RDBMS_CONTROL ................................................................................................................... SQLPATH ............................................................................................................................... .. HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE........................................................................ INST_LOC ............................................................................................................................... OO4O ............................................................................................................................... ......... HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\ALL_HOMES............................................... DEFAULT_HOME ..................................................................................................................... HOME_COUNTER ..................................................................................................................... LAST_HOME ............................................................................................................................ IDx............................................................................................................................... ............ HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services ............................ Parameters for Oracle Performance Monitor for Windows NT ................................... Parameters for Oracle Services .......................................................................................... Oracle Real Application Clusters Registry Parameters............................................................. HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\OSD9I .......................................................
9-4 9-4 9-4 9-4 9-5 9-5 9-5 9-5 9-5 9-6 9-6 9-6 9-6 9-7 9-7 9-7 9-7 9-7 9-8 9-8 9-8 9-8 9-8 9-8 9-8 9-9 9-9 9-9 9-9 9-9 9-9 9-10 9-11 9-12 9-12
viii
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\OSD9I\CM ................................................ HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\OSD9I\IPC ............................................. Parameter Data Types and Default Values............................................................................. Modifying a Registry Value with regedt32.................................................................................. Adding a Registry Parameter with regedt32................................................................................ Adding or Modifying Registry Parameters with Oracle Administration Assistant for Windows NT ...................................................................................................................................... Starting Oracle Administration Assistant for Windows NT................................................ Adding Oracle Home Parameters ............................................................................................ Editing Oracle Home Parameters............................................................................................. Deleting Oracle Home Parameters .......................................................................................... Modifying Oracle Performance Monitor for Windows NT Parameters ................................ Using OPERFCFG Utility .......................................................................................................... Using Oracle Administration Assistant for Windows NT ...................................................
9-12 9-13 9-14 9-14 9-16 9-17 9-18 9-20 9-21 9-22 9-22 9-23 9-24
10
ix
Task 5: Executing an External Procedure .............................................................................. Debugging External Procedures .................................................................................................. Using Package DEBUG_EXTPROC ....................................................................................... Accessing Web Data with Intercartridge Exchange.................................................................. Configuring Intercartridge Exchange .................................................................................... Using Intercartridge Exchange ............................................................................................... Packaged Function UTL_HTTP.REQUEST ................................................................... Packaged Function UTL_HTTP.REQUEST_PIECES.................................................... UTL_HTTP Exception Conditions ......................................................................................... UTL_HTTP.REQUEST ...................................................................................................... UTL_HTTP.REQUEST_PIECES ...................................................................................... Exception Conditions and Error Messages ...........................................................................
10-12 10-13 10-13 10-14 10-15 10-16 10-17 10-17 10-18 10-19 10-19 10-19
Error Messages
Logging Error Messages .................................................................................................................... A-2 ORA-09275: CONNECT INTERNAL No Longer Supported ..................................................... A-2 OSD-04000 to OSD-04599: Windows NT-Specific Oracle Messages ........................................ A-2 File I/O Errors: OSD-04000 to OSD-04099 ................................................................................ A-6 Memory Errors: OSD-04100 to OSD-04199 ............................................................................. A-10 Process Errors: OSD-04200 to OSD-04299 ............................................................................... A-12 Loader Errors: OSD-04300 to OSD-04399................................................................................ A-16 Semaphore Errors: OSD-04400 to OSD-04499 ........................................................................ A-16 Miscellaneous Errors: OSD-04500 to OSD-04599 ................................................................... A-17 DIM-00000 to DIM-00039: ORADIM Command Syntax Errors............................................... A-19 Database Connection Issues ........................................................................................................... A-26
Glossary Index
Oracle Corporation welcomes your comments and suggestions on the quality and usefulness of this document. Your input is an important part of the information used for revision.
s s s s s
Did you find any errors? Is the information clearly presented? Do you need more information? If so, where? Are the examples correct? Do you need more examples? What features did you like most?
If you find any errors or have any other suggestions for improvement, please indicate the document title and part number, and the chapter, section, and page number (if available). You can send comments to us in the following ways:
s s s
Electronic mail: ntdoc_us@oracle.com FAX: (650) 506-7365 Attn: Oracle Database for Windows Documentation Postal service: Oracle Corporation Oracle Database for Windows Documentation Manager 500 Oracle Parkway, Mailstop 1op6 Redwood Shores, CA 94065 USA
If you would like a reply, please give your name, address, telephone number, and (optionally) electronic mail address. If you have problems with the software, please contact your local Oracle Support Services.
xi
xii
Preface
This guide is your primary source of introductory and reference information for Oracle9i for Windows for both client and server. Differences between product versions are noted where appropriate. This guide describes only the features of Oracle9i for Windows software that apply to the Windows NT, Windows 2000, Windows XP, and Windows 98 operating systems. Information on Oracle9i Personal Edition software on Windows 98 is not covered in this guide. This preface contains these topics:
s
xiii
Audience
Oracle9i Database Getting Started for Windows is intended for:
s
Database administrators Network administrators Security specialists Developers who use the Oracle9i database
Oracle-certified Windows operating system software installed and tested Knowledge of object-relational database management concepts
Organization
This document contains: "Whats New in Oracle9i for Windows" Oracle9i release 2 (9.2) adds support for very large memory configurations and User Migration Utility, a new command-line tool. Oracle9i release 1 (9.0.1) added support for Windows XP Professional Edition, enhanced integration with Windows, and improvements in Database Configuration Assistant and Oracle Internet Directory administration. Server Manager and CONNECT INTERNAL were desupported in Oracle9i release 1 (9.0.1). Chapter 1, "Introduction" This chapter explains how different groups of users can use this document together with Oracle9i Database Administrators Guide for Windows and Oracle9i Security and Network Integration Guide. Chapter 2, "Oracle9i Windows/UNIX Differences" This chapter compares features of Oracle9i Database for Windows and UNIX. This information may be helpful to Oracle developers and database administrators moving from UNIX to Windows platforms. Chapter 3, "Using Oracle9i on Windows 2000" This chapter highlights differences between Windows 2000 and Windows NT, with emphasis on procedures for common database tasks.
xiv
Chapter 4, "Oracle9i Architecture on Windows" This chapter describes how Oracle9i architecture takes advantage of some of the more advanced services in the Windows operating system. Chapter 5, "Database Tools Overview" This chapter provides a list of preferred and optional tools you can use to perform common database administration tasks. Chapter 6, "Multiple Oracle Homes and Optimal Flexible Architecture" This chapter describes how to use multiple Oracle homes and an Optimal Flexible Architecture (OFA) configuration for placement of database files. Chapter 7, "Oracle9i Services on Windows" This chapter describes Windows services in general and Oracle9i Database Windows services in particular. Chapter 8, "Oracle9i Default Accounts and Passwords" This chapter describes usernames and passwords included in the starter Oracle9i Database. Chapter 9, "Configuration Parameters and the Registry" This chapter describes the use of the registry for various Oracle components. In addition, this chapter lists the recommended values and ranges for configuration parameters. Chapter 10, "Developing Applications for Windows" This chapter points to sources of information on developing applications for Windows and outlines a procedure for building and debugging external procedures. Appendix A, "Error Messages" This appendix lists error messages, causes, and corrective actions that are specific to the operation of Oracle9i for Windows. Appendix B, "Getting Started with Your Documentation" This appendix describes the contents of your Oracle documentation set. Glossary
xv
Related Documentation
This guide is part of a set for developers and database administrators using Oracle9i on Windows. The other guides in the set are:
s
Oracle9i Database Administrators Guide for Windows Oracle9i Security and Network Integration Guide
For information on the components available in your Oracle9i installation type, see your Oracle9i Database Installation Guide for Windows. For Oracle product information that is applicable to all operating systems, see your Oracle9i Online Documentation Library CD-ROM for Windows. Many of the examples in the documentation set use the sample schemas of the seed database, which is installed by default when you install Oracle. Refer to Oracle9i Sample Schemas for information on how these schemas were created and how you can use them yourself. If you are not familiar with object-relational database management concepts, see Oracle9i Database Concepts. In North America, printed documentation is available for sale in the Oracle Store at
http://oraclestore.oracle.com/
Customers in Europe, the Middle East, and Africa (EMEA) can purchase documentation from
http://www.oraclebookshop.com/
Other customers can contact their Oracle representative to purchase printed documentation. To download free release notes, installation documentation, white papers, or other collateral, please visit the Oracle Technology Network (OTN). You must register online before using OTN; registration is free and can be done at
http://otn.oracle.com/admin/account/membership.html
If you already have a username and password for OTN, then you can go directly to the documentation section of the OTN Web site at
http://otn.oracle.com/docs/index.htm
xvi
Conventions
This section describes the conventions used in the text and code examples of this documentation set. It describes:
s
Conventions in Text Conventions in Code Examples Conventions for Windows Operating Systems
Conventions in Text
We use various conventions in text to help you more quickly identify special terms. The following table describes those conventions and provides examples of their use.
Convention Bold Meaning Example
Bold typeface indicates terms that are When you specify this clause, you create an defined in the text or terms that appear in index-organized table. a glossary, or both. Italic typeface indicates book titles or emphasis. Oracle9i Database Concepts Ensure that the recovery catalog and target database do not reside on the same disk. You can specify this clause only for a NUMBER column. You can back up the database by using the BACKUP command. Query the TABLE_NAME column in the USER_ TABLES data dictionary view. Use the DBMS_STATS.GENERATE_STATS procedure.
Italics
Uppercase monospace typeface indicates elements supplied by the system. Such elements include parameters, privileges, datatypes, RMAN keywords, SQL keywords, SQL*Plus or utility commands, packages and methods, as well as system-supplied column names, database objects and structures, usernames, and roles.
xvii
Meaning Lowercase monospace typeface indicates executables, filenames, directory names, and sample user-supplied elements. Such elements include computer and database names, net service names, and connect identifiers, as well as user-supplied database objects and structures, column names, packages and classes, usernames and roles, program units, and parameter values.
Example Enter sqlplus to open SQL*Plus. The password is specified in the orapwd file. Back up the datafiles and control files in the /disk1/oracle/dbs directory. The department_id, department_name, and location_id columns are in the hr.departments table. Set the QUERY_REWRITE_ENABLED initialization parameter to true.
Note: Some programmatic elements use a mixture of UPPERCASE and lowercase. Connect as oe user. Enter these elements as shown. The JRepUtil class implements these methods.
lowercase Lowercase italic monospace font italic represents placeholders or variables. monospace (fixed-width) font
You can specify the parallel_clause. Run Uold_release.SQL where old_ release refers to the release you installed prior to upgrading.
The following table describes typographic conventions used in code examples and provides examples of their use.
Convention [ ] { } | Meaning Brackets enclose one or more optional items. Do not enter the brackets. Example DECIMAL (digits [ , precision ])
Braces enclose two or more items, one of {ENABLE | DISABLE} which is required. Do not enter the braces. A vertical bar represents a choice of two {ENABLE | DISABLE} or more options within brackets or braces. [COMPRESS | NOCOMPRESS] Enter one of the options. Do not enter the vertical bar.
xviii
Convention ...
Example CREATE TABLE ... AS subquery; SELECT col1, col2, ... , coln FROM employees;
That we have omitted parts of the code that are not directly related to the example That you can repeat a portion of the code
. . .
Vertical ellipsis points indicate that we have omitted several lines of code not directly related to the example.
SQL> SELECT NAME FROM V$DATAFILE; NAME -----------------------------------/fsl/dbs/tbs_01.dbf /fs1/dbs/tbs_02.dbf . . . /fsl/dbs/tbs_09.dbf 9 rows selected. acctbal NUMBER(11,2); acct CONSTANT NUMBER(4) := 3; CONNECT SYSTEM/system_password DB_NAME = database_name SELECT last_name, employee_id FROM employees; SELECT * FROM USER_TABLES; DROP TABLE hr.employees;
Other notation
You must enter symbols other than brackets, braces, vertical bars, and ellipsis points as shown. Italicized text indicates placeholders or variables for which you must supply particular values. Uppercase typeface indicates elements supplied by the system. We show these terms in uppercase in order to distinguish them from terms you define. Unless terms appear in brackets, enter them in the order and with the spelling shown. However, because these terms are not case sensitive, you can enter them in lowercase. Lowercase typeface indicates programmatic elements that you supply. For example, lowercase indicates names of tables, columns, or files. Note: Some programmatic elements use a mixture of UPPERCASE and lowercase. Enter these elements as shown.
Italics
UPPERCASE
lowercase
SELECT last_name, employee_id FROM employees; sqlplus hr/hr CREATE USER mjones IDENTIFIED BY ty3MU9;
xix
File and Directory File and directory names are not case c:\winnt"\"system32 is the same as Names sensitive. The special characters <, >, :, ", C:\WINNT\SYSTEM32 /, |, and - are not allowed. The special character \ is treated as an element separator, even when it appears in quotes. If the file name begins with \\, Windows assumes it uses the Universal Naming Convention. C:\> Represents the Windows command prompt of the current hard disk drive. The escape character in a command prompt is "^". Your prompt reflects the subdirectory in which you are working. Referred to as the command prompt in this guide. C:\oracle\oradata>
Special characters The backslash special character (\) is sometimes required as an escape character for the double quote (") special character at the Windows command prompt. Parentheses and the single quote special character () do not require an escape character. See your Windows operating system documentation for more information on escape and special characters. HOME_NAME Represents the Oracle home name. The home name can be up to 16 alphanumeric characters. The only special character allowed in the home name is the underscore.
C:\>exp scott/tiger TABLES=emp QUERY=\"WHERE job=SALESMAN and sal<1600\" C:\>imp SYSTEM/password FROMUSER=scott TABLES=(emp, dept)
xx
Convention
Meaning In releases prior to Oracle8i release 8.1.3, when you installed Oracle components, all subdirectories were located under a top level ORACLE_HOME directory that by default was:
s s
or whatever you called your Oracle home. This release complies with Optimal Flexible Architecture (OFA) guidelines. All subdirectories are not under a top level ORACLE_HOME directory. There is a top level directory called ORACLE_BASE that by default is C:\oracle. If you install the latest Oracle release on a computer with no other Oracle software installed, then the default setting for the first Oracle home directory is C:\oracle\orann where nn is the latest release number. The Oracle home directory is located directly under ORACLE_BASE. All directory path examples in this guide follow OFA conventions. See Chapter 6, "Multiple Oracle Homes and Optimal Flexible Architecture" for additional information on OFA compliance and for information on installing Oracle products in non-OFA compliant directories.
xxi
Documentation Accessibility
Our goal is to make Oracle products, services, and supporting documentation accessible, with good usability, to the disabled community. To that end, our documentation includes features that make information available to users of assistive technology. This documentation is available in HTML format, and contains markup to facilitate access by the disabled community. Standards will continue to evolve over time, and Oracle Corporation is actively engaged with other market-leading technology vendors to address technical obstacles so that our documentation can be accessible to all of our customers. For additional information, visit the Oracle Accessibility Program Web site at http://www.oracle.com/accessibility/.
Accessibility of Code Examples in Documentation JAWS, a Windows screen reader, may not always correctly read the code examples in this document. The conventions for writing code require that closing braces should appear on an otherwise empty line; however, JAWS may not always read a line of text that consists solely of a bracket or brace. Accessibility of Links to External Web Sites in Documentation This documentation may contain links to Web sites of other companies or organizations that Oracle Corporation does not own or control. Oracle Corporation neither evaluates nor makes any representations regarding the accessibility of these Web sites.
xxii
Oracle9i Release 2 (9.2) New Features Oracle9i Release 1 (9.0.1) New Features
xxiii
"Manually Migrating Users" in Oracle9i Security and Network Integration Guide for Windows "Migrating Local or External Users to Enterprise Users" in Oracle Advanced Security Administrators Guide
Windows XP Support Windows Integration Database Configuration Assistant Improvements Oracle Internet Directory Administration Improvements Using Oracle9i on Windows 2000 CONNECT INTERNAL Not Supported Server Manager Not Supported
Windows XP Support
Oracle9i release 1 (9.0.1.1.1) for Windows is certified on the 32-bit version of Windows XP Professional Edition. Oracle Corporation provides support information for components on various platforms, lists compatible client and database versions, and identifies patches and workaround information. Find the latest certification information at:
http://metalink.oracle.com/
You must register online before using OracleMetaLink. After logging into OracleMetaLink, select Product Lifecycle from the left-hand column.
Windows Integration
Oracle9i supports enhanced integration with Microsoft Transaction Services and Internet Information Services. Public key infrastructure and Single Sign-On capabilities in Oracle9i have also been integrated with Windows 2000, Active Directory, and Microsoft Certificate Store. Oracle9i integration with Windows security supports Oracle Wallets in the registry and Active Directory, and it allows Oracle products to use Microsoft Certificate Store.
xxiv
Synchronization between Active Directory and Oracle Internet Directory facilitates centralized scheduling and configuration of Oracle and third party meta-directory components.
xxv
xxvi
1
Introduction
This chapter briefly describes the Oracle9i for Windows documentation set and shows how the three guides in the set relate to common database administration tasks. This chapter contains these topics:
s
Introduction 1-1
Document Plan
Document Plan
Documentation for Oracle9i for Windows is divided into three parts. This guide contains information with the widest possible relevance. Whatever your database management role, you will probably find something of interest here. The other two guides concentrate on tasks usually associated with the different realms of management required by a large database with many users. The three guides are titled:
s
Oracle9i Database Getting Started for Windows Oracle9i Database Administrators Guide for Windows Oracle9i Security and Network Integration Guide for Windows
Task Mapping
We recognize that this division cannot be perfect for everyone. What one organization calls database administration, another will call a network problem; and only parts of this guide or its companions are relevant to particular tasks. So in this first chapter we provide a table that maps specific tasks to specific chapters and appendixes in the three guides. Table 11 lists common database tasks, grouped into three categories:
s
For each task, the columns labeled Getting Started, Administrator, and Network/Security show chapters and appendixes in each of the three guides which contain information relevant to that task.
1-2
Task Mapping
Table 11
Task Category Database Administration Back Up and Recover Create or Delete Database Create Objects Export, Import, or Load Data Find Files (Directory Structure) Install or Configure Manage Processes Manage Resources Manage Services Migrate or Upgrade Monitor Performance Startup or Shutdown Network and Security Accounts and Groups Authenticate Users Connectivity Information Create Users Application Development Application Programmatic Interfaces External Procedures Microsoft Transaction Server Oracle Real Application Clusters
2, 4, 5, 9 3, 5 5 5 2, 4, 5, 6, 9 2, 5, 6, 9 2, 3, 4, 5, 6, 7, 9, A 2, 3, 5, 6, A 2, 5, 6, 7, A 5, 6 2, 3, 4, 5, 7, 9, A 2, 5, 9, A
6 1 1 1, 2 1, 2, 5, 7 4 3, 5, 7, A 1, 3, 5 4, 5 1, 3
1, 2 -
2, 3, 5, 9 2, 4, 5, 9 3, 4, 5, 6, 7, 9, 10, A 2, 3, 5
3, 5 -
1, 2, 3 1, 2, 3, 4 1, 2, A 1, 2, 3
4, 5, 10 10 2, 4, 10 2, 7, 9
Introduction 1-3
Task Mapping
1-4
2
Oracle9i Windows/UNIX Differences
This chapter lists major differences between Oracle9i on Windows and UNIX. For Oracle developers and database administrators moving from a UNIX platform to Windows, this information can be helpful in understanding Windows features that are relevant to Oracle9i. This chapter contains these topics:
s
Automatic Startup and Shutdown Background Processing and Batch Jobs Diagnostic and Tuning Utilities Direct Writes to Disk Dynamic Link Libraries (DLLs) Hot Backups Initialization Parameters: Multiple Database Writers Install Accounts and Groups Installation Memory Resources Microsoft Transaction Server Multiple Oracle Homes and OFA Processes and Threads Raw Partitions Services
To start the listener automatically, set services startup type to automatic. For automatic shutdown on Windows, set registry parameters ORA_SHUTDOWN and ORA_SID_SHUTDOWN to stop the relevant OracleServiceSID and shut down. Set registry parameter ORA_SID_SHUTDOWNTYPE to control shutdown mode (default is i, or immediate).
See Also:
s
Oracle9i Database Administrators Guide "Administering a Database" in Oracle9i Database Administrators Guide for Windows
2-2
Oracle Performance Monitor displays key Oracle database information. This tool is the same in appearance and operation as Windows Performance Monitor, except it has been preloaded with Oracle9i database performance elements. Event Viewer displays system alert messages, including Oracle startup/shutdown messages and audit trail. Task Manager on Windows displays currently running processes and their resource usage, similar to the UNIX ps -ef command or OpenVMS SHOW SYSTEM. But Task Manager is easier to interpret and the columns can be customized.
See Also:
s
Chapter 5, "Database Tools Overview" "Monitoring a Database" in Oracle9i Database Administrators Guide for Windows
Hot Backups
Modifying executable images on Windows reduces the chances of running out of virtual memory when using a large SGA or when supporting thousands of connections. However, Oracle Corporation recommends doing this only under the guidance of Oracle Support Services.
See Also:
Hot Backups
A (manual) hot backup is equivalent to backing up a tablespace that is in offline backup mode. Backup strategy on UNIX is as follows: put the tablespace into backup mode, copy the files to the backup location, and bring the tablespace out of backup mode. Windows supports the same backup strategy, but you cannot copy files in use with normal Windows utilities. Use Oracle utility OCOPY to copy open database files to another disk location. Then use a utility to copy the files to tape.
See Also:
s
Oracle9i Database Administrators Guide for Windows Oracle9i Backup and Recovery Concepts
2-4
Memory Resources
Installation
The following manual setup tasks, all required on UNIX, are not required on Windows:
s
Set environment variables Create a DBA group for database administrators Create a group for users running Oracle Universal Installer Create an account dedicated to installing and upgrading Oracle components
See Also:
Memory Resources
The resources provided by the UNIX default kernels are often inadequate for a medium or large Oracle database. The maximum size of a shared memory segment (SHMMAX) and maximum number of semaphores available (SEMMNS) may be too low for Oracle recommendations.
On Windows, fewer resources are needed for interprocess communication (IPC), because the Oracle relational database management system is thread-based and not process-based. These resources, including shared memory and semaphores, are not adjustable by the user.
See Also:
2-6
Raw Partitions
See Also:
s
Oracle Administration Assistant for Windows NT online help Chapter 4, "Oracle9i Architecture on Windows"
Raw Partitions
Datafiles for tablespaces may be stored on a file system or on raw partitions. A raw partition is a portion of a physical disk that is accessed at the lowest possible level. UNIX supports raw partitions (logical drives). There is no limitation on the number of disk drives.
Services
Windows is limited to using drive letters A-Z, but creating raw partitions lets you bypass the disk drive limitation and divide disks into smaller sections. Use Windows NT Disk Administrator to create an extended partition on a physical drive. An extended partition points to raw space on the disk that can be assigned multiple logical partitions for database files. An extended partition avoids the four-partition limit on Windows by allowing you to define large numbers of logical partitions to accommodate applications using Oracle9i database. Logical partitions can then be given symbolic link names to free up drive letters.
Note: Raw partitions are necessary for shared datafiles in an Oracle Real Application Clusters environment, available on Windows. Oracle Real Application Clusters, in which Oracle instances run on all nodes simultaneously, provides clustering and high availability. Oracle Real Application Clusters is not supported on Windows XP.
Services
Windows services are similar to UNIX daemons. Oracle registers a database instance as a service (OracleServiceSID). Services start background processes. To connect to and use an Oracle instance, an Oracle service is created during database creation and associated with the Oracle database. Once a service is created with the Oracle database, the service can run even while no user is logged on. By default, services run under the SYSTEM account. Choose Start > Settings > Control Panel > Services to access the Services dialog box.
See Also: "Administering a Database" in Oracle9i Database Administrators Guide for Windows
2-8
3
Using Oracle9i on Windows 2000
This chapter highlights differences between Windows 2000 and Windows NT, with emphasis on procedures for common database tasks. This chapter contains these topics:
s
How to Perform Common Tasks in Windows NT and Windows 2000 Other Differences Between Windows NT and Windows 2000
3-1
User Manager Server Manager Choose Start > Programs > Administrative Tools > Server Manager
Add a computer to a domain Create or manage trust relationships Manage account policy Manage user rights
Active Directory Users & Computers Active Directory Domains & Trusts Active Directory Users & Computers Active Directory Users & Computers: Edit the Group Policy object for the domain or organizational unit containing the computers to which the users rights apply. Active Directory Users & Computers: Edit the Group Policy object assigned to the Domain Controllers organizational unit. Group Policy, accessed through Active Directory Sites & Services
User Manager
System Policy Editor Choose Start > Programs > Administrative Tools > System Policy Editor System Policy Editor
3-2
Table 31 (Cont.) How to Perform Common Tasks in Windows NT and Windows 2000
Task Set policies on users and computers in an organizational unit Windows NT Not applicable Windows 2000 Group Policy, accessed through Active Directory Users & Computers Edit the permissions entry for Apply Group Policy on the security tab of the Group Policy Object properties sheet Choose Start > Programs > Configuration and Migration Tools > Oracle for Windows NT Performance Monitor Choose Start > Settings > Control Panel > Administrative Tools > Services
Use Security Groups to filter Not applicable the scope of policy Start Oracle Performance Monitor for Windows NT Choose Start > Programs > Configuration and Migration Tools > Oracle for Windows NT Performance Monitor Choose Start > Settings > Control Panel > Services
Choose Start > Control Panel > System > Network Identification > More > Primary DNS. Enter a domain name, for example, us.oracle.com.
3-3
Raw Partitions
In Windows NT, use Disk Administrator to create raw partitions required for Oracle Real Application Clusters. In Windows 2000, use Computer Management to create basic disks (compatible with raw partitions on Windows NT). Choose Start > Programs > Administrative Tools > Computer Management.
Services Autostart
Oracle services autostart on Windows NT 4.0. After upgrading to Windows 2000, you may find that services start but the database does not start. The solution is to use ORADIM utility to delete and re-create the services. To delete an instance using ORADIM, enter:
ORADIM -DELETE -SID SIDA, SIDB, SIDC, ... ORADIM -DELETE -SVRC SVRCA, SVRCB, SVRC, ...
where:
s
SIDA, SIDB, SIDC are values of the SIDs to delete. SVRCA, SVRCB, SVRC are values of the services to delete.
3-4
During upgrading, the disk is converted to NTFS 5, and a different access authorization is used. The new services autostart under the same account, but they no longer hold the same Windows permissions as before.
3-5
3-6
4
Oracle9i Architecture on Windows
This chapter describes how Oracle9i architecture takes advantage of some of the more advanced services in the Windows operating system. This chapter contains these topics:
s
Oracle9i on Windows Architecture Oracle9i Scalability on Windows Oracle9i Integration with Windows Other Sources of Information
Thread-Based Architecture
The internal process architecture of Oracle9i database is thread-based. Threads are objects within a process that run program instructions. Threads allow concurrent operations within a process so that a process can run different parts of its program simultaneously on different processors. A thread-based architecture provides the following advantages:
s
Faster context switching Simpler System Global Area allocation routine, because it does not require use of shared memory Faster spawning of new connections, because threads are created more quickly than processes Decreased memory usage, because threads share more data structures than processes
Internally, the code to implement the thread model is compact and separate from the main body of Oracle code. Exception handlers and routines track and de-allocate resources. They add robustness, with no downtime because of resource leaks or an ill-behaved program. Oracle9i database is not a typical Windows process. On Windows, an Oracle instance (threads and memory structures) is a Windows service: a background process registered with the operating system. The service is started by Windows and requires no user interaction to start. This enables the database to open automatically at startup. When running multiple Oracle instances on Windows, each instance runs its own Windows service with multiple component threads. Each thread may be required
4-2
for the database to be available, or it may be optional and specific to certain platforms. Examples of optional and required threads on Windows are listed in Table 41.
Table 41 Required and Optional Oracle Threads
Description database writer log writer process monitor system monitor checkpoint process (or thread on Windows) that runs by default on Windows archive process (or thread on Windows) distributed recovery background process Required/Optional Required Required Required Required Optional Optional Optional
Note: You can view running background processes by issuing the following query:
SQL> select * from v$bgprocess where paddr <> 00 ;
Figure 41 Oracle architecture on Windows. The background processes read and write from the various datafiles, depending on your configuration.
Client process
Oracle Instance
Shadow Thread
Memory Structures
Recoverer (RECO)
Checkpoint (CKPT)
Archiver (ARC0)
4-4
Oracle9i for Windows is supplied as a set of executables and dynamic link libraries (DLLs). Executable images can be modified using ORASTACK utility to change the size of the stack used by the threads of the Oracle process. (Oracle Corporation recommends you use this tool only under the guidance of Oracle Support Services.)
Support for Very Large Memory (VLM) Configurations 4 GB RAM Tuning (4GT) Large User Populations
Specifically, Oracle9i release 2 (9.2) uses Address Windowing Extensions (AWE) built into Windows 2000 and Windows XP to access more than 4 GB of RAM. The requirements for taking advantage of this support are:
1. 2.
More than 4 GB of RAM must be present in the server on which Oracle9i release 2 (9.2) will run. The user account under which Oracle9i release 2 (9.2) runs (typically the local SYSTEM account), must have the "Lock memory pages" Windows 2000 and Windows XP privilege. USE_INDIRECT_DATA_BUFFERS=TRUE must be present in the initialization parameter file for the database instance that will use VLM support. If this parameter is not set, then Oracle9i release 2 (9.2) behaves in exactly the same way as previous releases. Initialization parameters DB_BLOCK_BUFFERS and DB_BLOCK_SIZE must be set to values you have chosen for Oracle9i database.
3.
4.
4-6
Note: The total number of bytes of database buffers (that is, DB_ BLOCK_BUFFERS multiplied by DB_BLOCK_SIZE) is no longer limited to 3 GB.
5.
Registry parameter AWE_WINDOW_MEMORY must be created and set in the appropriate key for your Oracle home. This parameter is specified in bytes and has a default value of 1 GB. AWE_WINDOW_MEMORY tells Oracle9i release 2 (9.2) how much of its 3 GB address space to reserve for mapping in database buffers. This memory comes from the 3 GB virtual address space in Oracle9i release 2 (9.2), so its value must be less than 3 GB. Setting this parameter to a large value has the effect of using more of the address space for buffers and using less AWE memory for buffers. However, since accessing AWE buffers is somewhat slower than accessing virtual address space buffers, Oracle recommends that you tune these parameters to be as large as possible without adversely limiting database operations. In general, the higher AWE_WINDOW_MEMORY is set, the fewer connections and memory allocations will be possible for Oracle9i release 2 (9.2). The lower AWE_ WINDOW_MEMORY is set, the lower the performance.
6.
Once this parameter is set, Oracle9i release 2 (9.2) database can be started and will function exactly the same as before except that more database buffers are available to the instance. In addition, disk I/O may be reduced because more Oracle data blocks can be cached in the SGA.
Note: Registry parameter VLM_BUFFER_MEMORY, which enabled VLM configurations in Windows NT in Oracle8i release 2 (8.1.6), is not supported in Oracle9i release 2 (9.2).
Note: Oracle9i release 2 (9.2) VLM configurations do not support multiple database block sizes.
AWE_WINDOW_MEMORY, a new registry parameter specific to VLM, defaults to a value of 1 GB, which should be suitable for most installations. This parameter tells Oracle9i database how much of its address space to reserve for mapping in database buffers. Increasing this value will improve performance, but it will also limit the amount of memory available for other Oracle threads (like foreground threads). Clients may see "out of memory" errors if this value is set too large. Having a large cache in a VLM configuration may also slow down database writer (DBWR) threads. Having more DBWR threads will distribute work required to identify and write buffers to disk and will distribute I/O loads among threads. Initialization parameter DB_WRITER_PROCESSES enables you to configure multiple database writer threads. A large cache can also introduce contention on the LRU (least recently used) latch. On symmetric multiprocessor (SMP) systems, Oracle9i sets the number of LRU latches to a value equal to one half the number of processors on the system. You can reduce contention on such configurations by increasing the number of LRU latches to twice (or four times) the number of processors on the system.
See Also: Oracle9i Database Performance Tuning Guide and Reference for more information on instance tuning
4-8
Oracle Shared Server Process, which limits the number of threads needed in the Oracle database process, supports over 10,000 simultaneous connections to a single database instance. Oracle Net multiplexing and connection pooling features allow a large configuration to connect more users to a single database instance. Oracle Real Application Clusters raises connection counts dramatically by allowing multiple server computers to access the same database files, increasing the number of user connections by tens of thousands, as well as increasing throughput.
Note: Oracle Real Application Clusters is not supported on Windows XP.
Oracle PKI Integration Active Directory ORACLEMTSRecoveryService Oracle Fail Safe Oracle Real Application Clusters Guard
Oracle Wallet Manager creates an encrypted Oracle Wallet, used for digital certificates. Oracle Enterprise Login Assistant creates the obfuscated decrypted Oracle Wallet, used by Oracle applications for Secure Sockets Layer (SSL) encryption. The Oracle Wallet is then stored on the file system or Oracle Internet Directory.
Active Directory
Oracle customers with large user populations often require enterprise-level security and schemas management. Oracle security and administration are integrated with Windows 2000 through Active Directory, Microsofts directory service. Oracle9i provides native authentication and single sign-on through Windows 2000 authentication mechanisms. Native authentication uses Kerberos security protocols on Windows 2000 and allows the operating system to perform user identification for Oracle databases. With native authentication enabled, users can access Oracle applications simply by logging into Windows. Single sign-on eliminates need for multiple security credentials and simplifies administration. Oracle native authentication also supports Oracle9i enterprise users and roles. Traditionally, administrators must create a database user on every database for each Windows user. This often equates to thousands of different database users. Oracle enterprise user mappings allow many Windows users to access a database as a single global database user. These enterprise user mappings are stored in Active Directory. For example, entire organizational units in Active Directory can be mapped to one database user. Oracle also stores enterprise role mappings in Active Directory. With such roles, a database privilege can be managed at the domain level through directories. This is accomplished by assigning Windows 2000 users and groups to Oracle enterprise roles registered in Active Directory. Enterprise users and roles reduce administrative overhead while increasing scalability of database solutions.
4-10
ORACLEMTSRecoveryService
Microsoft Transaction Server is used in the middle tier as an application server for COM/COM+ objects and transactions in distributed environments. ORACLEMTSRecoveryService allows Oracle9i databases to be used as resource managers in Microsoft Transaction Server-coordinated transactions, providing strong integration between Oracle solutions and Microsoft Transaction Server. ORACLEMTSRecoveryService can operate with Oracle9i databases running on any operating system. Oracle takes advantage of a native implementation and also stores recovery information in Oracle9i database itself. ORACLEMTSRecoveryService allows development in all industry-wide data access interfaces, including Oracle Objects for OLE (OO4O), Oracle Call Interface (OCI), ActiveX Data Objects (ADO), OLE DB, and Open Database Connectivity (ODBC). The Oracle APIs, OO4O and OCI, offer greatest efficiency.
See Also: Your Oracle Fail Safe documentation set, available on separate media in the Oracle CD-ROM package
4-12
Optional automatic restarts of a failed instance or listener in a cluster Detection and resolution of instance hangs Elimination of connect-time failover TCP/IP timeout delays for new connection requests Use of user-written scripts after database state (online/offline) changes
Note: Oracle Real Application Clusters Guard is not supported on Windows XP.
Oracle9i Database Administrators Guide for Windows and Oracle9i Security and Network Integration Guide for Windows, on using new Oracle9i features described in this chapter Chapter 2, "Oracle9i Windows/UNIX Differences" Chapter 5, "Database Tools Overview", for Oracle9i integration with Windows tools Chapter 10, "Developing Applications for Windows", for more Oracle9i integration with Windows features
4-14
5
Database Tools Overview
Oracle9i for Windows includes various tools to perform database functions. This chapter describes preferred tools to perform common database administration tasks and explains how tools can be started. Unless otherwise noted, features described in this guide are common to Oracle9i Enterprise Edition, Oracle9i Standard Edition, and Oracle9i Personal Edition. This chapter contains these topics:
s
Choosing a Database Tool Starting Database Tools Using SQL*Loader Using Windows Tools Optional Windows Diagnostic and Tuning Utilities
Database Tools Application Development SQL*Plus (SQLPLUS)1 Pro*C/C++ Pro*COBOL Object Type Translator (OTT) ORACLEMTSRecoveryService Oracle Portal (formerly Oracle WebDB)2
5-2
Windows NT/2000/XP
Windows 98
Oracle Performance Monitor for Windows NT Migration Utilities Oracle Data Upgrade Assistant Oracle Migration Workbench5 Oracle Utilities from the Command Line Migration Utility (MIG) DBVERIFY (DBVERF) Export Utility (EXP) Import Utility (IMP) OCOPY ORADIM6 Password Utility (ORAPWD)7 Recovery Manager (RMAN) SQL*Loader (SQLLDR) TKPROF OPERFCFG User Migration Utility Network Administration Oracle Net Manager Oracle Net Configuration Assistant
Yes Yes
No Yes
Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes
Yes Yes
Yes Yes
Windows NT/2000/XP
Windows 98
2 3
5 6 7 8 9
ORADEBUG utility can be used through SQL*Plus to send debug commands to Oracle processes. See "Using ORADEBUG Utility" in Oracle9i Database Administrators Guide for Windows. Available on a separate CD-ROM. Oracle Enterprise Manager and its optional management packs have additional integrated tools to assist in managing databases. See Oracle Enterprise Manager Concepts Guide for more information. Includes Oracle Enterprise Login Assistant and Oracle Wallet Manager. Available only with Oracle9i Enterprise Edition and Oracle9i Personal Edition, and not Oracle9i Standard Edition. See your installActions.log at C:\program files\Oracle\Inventory\logs. Available on a separate CD-ROM. ORADIM operates only on local databases. ORAPWD does not work on password files for remote databases. Windows NT only. Must be obtained from Microsoft Corporation for use with Windows NT 4.0; automatically included with Windows 2000.
Note: The VOLSIZE parameter for Export and Import utilities is not supported on Windows NT. If you attempt to use the utilities with the VOLSIZE parameter, then error LRM-00101 occurs. For example:
D:\> exp system/manager full=y volsize=100m; LRM-00101: unknown parameter name volsize EXP-00019: failed to process parameters, type EXP HELP=Y for help EXP-00000: Export terminated unsuccessfully
5-4
Database Administration Task Create a database Delete database services Start a database Shut down a database
ORADIM1 None Migration Utility (MIG) Run provided scripts in SQL*Plus4 Export Utility (EXP) Import Utility (IMP)
Oracle Enterprise Manager Export Wizard Oracle Enterprise Manager Import Wizard
Oracle Enterprise Manager Load Wizard SQL*Loader (SQLLDR) Oracle Enterprise Manager Backup Wizard5 Oracle Enterprise Manager Recovery Wizard Oracle Enterprise Manager Console Recovery Manager (RMAN) OCOPY Recovery Manager (RMAN) OCOPY SQL*Plus or SQL*Plus Worksheet Windows operating system Oracle Administration Assistant for Windows NT
Recover database
SQL*Plus
4 5
ORADIM can only set a password when none was previously set. If a password has been previously set, then ORADIM can change it only by deleting and re-creating Oracle9i services. User Migration Utility can migrate local or external users to enterprise users. For more information, see "Migrating Local or External Users to Enterprise Users" in Oracle Advanced Security Administrators Guide. Oracle Data Upgrade Assistant can upgrade the following databases to the current release: Oracle7 release 7.3.4, Oracle8 release 8.0.6, Oracle8i releases 8.1.5, 8.1.6, and 8.1.7, and Oracle9i release 1 (9.0.1). It cannot be used to upgrade an earlier Oracle7 database release to a later Oracle7 database release. See your Oracle7 for Windows NT documentation for information on how to upgrade from one Oracle7 database to another. Required when upgrading Oracle Real Application Clusters systems. If you back up files while you are shutting down the database, then your backup will be invalid. You cannot use an invalid backup to restore files at a later date. See Oracle9i Database Administrators Guide for guidelines on creating database objects.
Starting Database Tools in Multiple Oracle Homes Starting Database Tools from the Start Menu Starting Database Tools from the Command Line Starting Oracle Enterprise Manager Console Starting Windows Tools
You will be referred back to this section for database tool startup procedures as you use this guide.
5-6
Starting Tools from Oracle8 Release 8.0.4 and Later 8.0.x Multiple Oracle Homes
If you are using multiple Oracle homes, then the command to start a tool from any home other than the first includes a HOME_NAME, where HOME_NAME indicates the name of that Oracle home. The first Oracle home created on your computer does not have HOME_NAME appended to the group. For example: To start Oracle Administration Assistant from the first Oracle home, choose: Start > Programs > Oracle > Configuration and Migration Tools > Administration Assistant for Windows NT To start Oracle Administration Assistant from an additional Oracle home, choose: Start > Programs > Oracle - HOME_NAME > Configuration and Migration Tools > Administration Assistant for Windows NT
Starting Tools from Oracle8i Release 8.1.3 and Later Multiple Oracle Homes
Beginning in Oracle8i release 8.1.3, each Oracle home, including the first Oracle home you create on your computer, has a unique HOME_NAME. To start Oracle Administration Assistant from any Oracle home, choose: Start > Programs > Oracle - HOME_NAME > Configuration and Migration Tools > Administration Assistant for Windows NT
Table 53
Tool
Oracle Administration Assistant for Windows NT Oracle Data Upgrade Assistant Database Configuration Assistant
Start > Programs > Oracle - HOME_NAME > "Administering External Users and Roles" in Configuration and Migration Tools > Oracle9i Security and Network Integration Administration Assistant for Windows NT Guide for Windows Start > Programs > Oracle - HOME_NAME > Oracle9i Database Migration Configuration and Migration Tools > Data Upgrade Assistant Start > Programs > Oracle - HOME_NAME > "Using Database Configuration Assistant" in Configuration and Migration Tools > Oracle9i Database Administrators Guide for Database Configuration Assistant Windows
Oracle Enterprise Start > Programs > Oracle - HOME_NAME > Oracle Advanced Security Administrators Login Assistant Integrated Management Tools > Enterprise Guide Login Assistant Oracle Enterprise Start > Programs > Oracle - HOME_NAME > Oracle Enterprise Manager Configuration Guide Manager Configuration and Migration Tools > Configuration Enterprise Manager Configuration Assistant Assistant Oracle Enterprise Start > Programs > Oracle - HOME_NAME > Oracle Enterprise Manager Administrators Manager Console Enterprise Manager Console Guide Oracle INTYPE File Assistant Oracle Locale Builder Microsoft ODBC Administrator Oracle Migration Workbench Start > Programs > Oracle - HOME_NAME > Oracle INTYPE File Assistant online help Application Development > INTYPE File Assistant Start > Programs > Oracle - HOME_NAME > Oracle9i Database Globalization Support Guide Configuration and Migration Tools > Locale Builder Start > Programs > Oracle - HOME_NAME > Microsoft ODBC Administration online help Configuration and Migration Tools > Microsoft ODBC Administration Start > Programs > Oracle - HOME_NAME > Oracle Migration Workbench Release Notes Configuration and Migration Tools > Oracle Migration Workbench Reference Guide for Migration Workbench Microsoft SQL Server and Sybase Adaptive Server Migrations Oracle Migration Workbench Reference Guide for Microsoft Access 2.0, 95, 97, 2000 Migrations Oracle Net Configuration Assistant Start > Programs > Oracle - HOME_NAME > Oracle9i Net Services Administrators Guide Configuration and Migration Tools > Net Configuration Assistant
5-8
Start > Programs > Oracle - HOME_NAME > Oracle9i Net Services Administrators Guide Configuration and Migration Tools > Net Manager Start > Programs > Oracle - HOME_NAME > Oracle Internet Directory Administrators Guide Integrated Management Tools > Oracle Directory Manager Start > Programs > Oracle - HOME_NAME > Oracle9i Database Administrators Guide for Configuration and Migration Tools > Oracle Windows for Windows NT Performance Monitor Start > Programs > Oracle - HOME_NAME > Pro*C/C++ Precompiler Programmers Guide Application Development > Pro*C/C++ Start > Programs > Oracle - HOME_NAME > SQL*Plus Users Guide and Reference Application Development > SQL*Plus "Starting and Shutting Down a Database with SQL*Plus" in Oracle9i Database Administrators Guide for Windows Start > Programs > Oracle - HOME_NAME > Oracle Enterprise Manager Administrators Application Development > SQL*Plus Guide Worksheet Start > Programs > Oracle - HOME_NAME > Integrated Management Tools > SQL*Plus Worksheet
SQL*Plus Worksheet
Start > Programs > Oracle - HOME_NAME > ORACLE_BASE\ORACLE_HOME\ Apache\Apache\htdocs\index.htm Oracle HTTP Server > Start HTTP Server powered by Apache
Stop HTTP Server Start > Programs > Oracle - HOME_NAME > ORACLE_BASE\ORACLE_HOME\ Apache\Apache\htdocs\index.htm Oracle HTTP Server > Stop HTTP Server powered by Apache Oracle Wallet Manager Start > Programs > Oracle - HOME_NAME > Oracle Advanced Security Administrators Integrated Management Tools > Wallet Guide Manager
Oracle Enterprise C:\> oemapp console Manager Console DBVERIFY C:\> dbv DBVERIFY starts and prompts you for a filename parameter. To obtain a list of parameters, enter: C:\> dbv help=y Export Utility C:\> exp username password EXP starts and prompts you for parameters. To obtain a list of these parameters, enter: C:\> exp help=y Import Utility C:\> imp username password IMP starts and prompts you for parameters. To obtain a list of these parameters, enter: C:\> imp help=y Migration Utility C:\> mig To obtain a list of parameters, enter: C:\> mig help=y OCOPY C:\> ocopy
Oracle9i Database Utilities for instructions on use of Export Utility Oracle9i Database Error Messages for information on error messages Oracle9i Database Utilities Oracle9i Database Error Messages
"Backing Up Files with OCOPY Utility" in Oracle9i Database Administrators Guide for Windows "Modifying Oracle Performance Monitor for Windows NT Parameters" on page 9-22 "Using ORADIM Utility to Administer an Oracle Instance" in Oracle9i Database Administrators Guide for Windows
OPERFCFG ORADIM
C:\> operfcfg C:\> oradim parameters To get a complete listing of ORADIM parameters, enter either of the following: C:\> oradim C:\> oradim -? | -h | -help
5-10
Oracle9i Database Administrators Guide for Windows Oracle9i Recovery Manager Users Guide
C:\> sqlplus
SQL*Plus Users Guide and Reference "Starting and Shutting Down a Database with SQL*Plus" in Oracle9i Database Administrators Guide for Windows
SQL*Loader (SQLLDR)
C:\> sqlldr SQL*Loader displays a Help screen with available keywords and default values. C:\> tkprof C:\> umu parameters To get a list of parameters, enter: C:\> umu help=yes
Oracle9i Database Utilities Oracle9i Database Error Messages "Starting Windows Tools" on page 5-16 Oracle9i Database Performance Tuning Guide and Reference "Migrating Local or External Users to Enterprise Users" in Oracle Advanced Security Administrators Guide
Note: Three special conditions apply when running Export or Import utilities on Windows. First, default values for BUFFER and RECORDLENGTH parameters are 4 KB and 2 KB respectively. This default RECORDLENGTH parameter does not depend on the value of BUFSIZ defined in the system header file. If you specify a value larger than USHRT_MAX (64 KB), you will get a warning message. Second, the VOLSIZE parameter is not supported. Third, to export an entire database, you must use the EXP_FULL_DATABASE role.
Choose Start > Programs > Oracle - HOME_NAME > Enterprise Manager Console. At the command line, enter: C:\> oemapp console
You are prompted to choose between logging in to a Management Server or starting in standalone mode.
Choose standalone when you want to connect directly to your database(s) to perform administrative tasks. The first time Enterprise Manager is started in standalone mode, the Add Database To Tree dialog appears, allowing you to add your database(s) to Enterprise Managers navigation tree. For more information, see "Standalone" in Oracle Enterprise Manager Configuration Guide.
5-12
In Standalone mode you will not have access to functionality typically available through Management Server and Intelligent Agent, however, because they are not required in standalone mode. These unavailable features include:
s
Management of several different target types Sharing data among several administrators Advance warning of potential problems Automation of repetitive tasks Backup and data management tools Reports customization, scheduling, and publishing Running the client from a Web browser
These features are all available when you choose to log in to a Management Server, which is automatically installed and configured during standard Oracle9i Database installation types. If you performed a custom database installation, however, you may need to install and configure a Management Server. For installation instructions, see your Oracle9i Database Installation Guide for Windows. For configuration instructions, see "Configuring and Controlling the Management Server" in Oracle Enterprise Manager Configuration Guide. If this is your first login to a Management Server, you must enter the default Enterprise Manager administrator name sysman and its password oem_temp. The Management Server on the node you select or enter must already be configured with the repository you want to access. For more information, see "Configuring the Console When Connected to a Management Server" in Oracle Enterprise Manager Configuration Guide.
Oracle Internet Application Server, release 1.0 and higher Apache, release 1.3.9 and higher Microsoft Internet Information Server (IIS), release 4.0 and higher
1.
Start your Web browser and enter the following URL regardless of which Web server you have installed.
http://webserver_hostname:port number/
where webserver_hostname is the name of the Web server computer, and port number is whatever the Web server is configured for. The port number of the default preconfigured Oracle HTTP Server is 3339. The Enterprise Manager page appears, allowing you to start Oracle Enterprise Manager Console, view previously published Enterprise Manager reports, or link to other sites.
2. 3.
To start Oracle Enterprise Manager Console, enter the name of the Oracle Management Server to which you want to connect and click Launch Console. If you are logging in to Oracle Enterprise Manager for the first time, then type in the default credentials (administrator name and password). Administrator = sysman Password = oem_temp These credentials are for the default super administrator account. The first time you start Enterprise Manager, you must log in as the super administrator. After other administrator accounts have been created using the super administrator account, you can log in as a different administrator.
Note: Enterprise Manager must be configured before the reports access feature will work. See Oracle Enterprise Manager Configuration Guide for information on:
s
Configuration tasks How to connect to an Oracle database Installing Oracle Enterprise Manager Web Site Installing the Web server
5-14
Choose Start > Programs > Your Microsoft operating system documentation Oracle - HOME_NAME > Configuration and Migration Tools > Administration Assistant for Windows NT Choose Start > Programs > Oracle - HOME_NAME > Configuration and Migration Tools > Oracle for Windows NT Performance Monitor At the command prompt on Windows NT and 2000, enter: C:\> regedt32 At the command prompt on Windows 98, enter: C:\> regedit "Using Oracle Performance Monitor for Windows NT" in Oracle9i Database Administrators Guide for Windows Your Microsoft operating system documentation
"Registry Editor" on page 5-22 Chapter 9, "Configuration Parameters and the Registry" Your Microsoft operating system documentation
Task Manager
User Manager
Choose Start > Programs > Administrative Tools > User Manager
"User Manager" on page 5-23 "Authenticating Database Users with Windows" in Oracle9i Security and Network Integration Guide for Windows Your Microsoft operating system documentation
5-16
Using SQL*Loader
Using SQL*Loader
This section describes Windows-specific information for using SQL*Loader (SQLLDR).
You can also specify the record terminator in hex, by specifying "str x0a" (assuming an ASCII-based character set). For example:
INFILE mydata.dat "str x0a"
Note that the "0" (zero) before the "a" is required. If you are using SQL with an access parameter list to create the external table, then you must specify \n in a RECORDS DELIMITED BY clause. For example:
RECORDS DELIMITED BY \n
Using SQL*Loader
You can also use a hex string in this case. For example:
RECORDS DELIMITED BY 0x0a
Note that in this case, the "0" (zero) before the "x" and the "0" (zero) before the "a" are both required.
"FIX n"
Fixed record format in which each record is exactly n bytes long. Record terminators are not required with fixed record format. If the record includes a record terminator, then the record terminator bytes are included in the number of bytes n.
"VAR n"
Variable record format in which the length of each record in a character field is included at the beginning of each record in the datafile. Record terminators are not required with the variable record format. This format provides some added flexibility over the fixed record format and a performance advantage over the stream record format. You can specify a datafile that is to be interpreted as being in variable record format as follows:
INFILE "mydata.dat" "var n"
In this example, n specifies the number of bytes in the record length field. If n is not specified, SQL*Loader assumes a length of 5 bytes. Specifying n larger than 40 will result in an error. Lengths are always interpreted in bytes, even if character-length semantics are in effect for the file. This is necessary because the file could contain a mix of fields, some processed with character-length semantics and others processed with byte-length semantics.
5-18
Using SQL*Loader
The default listed is correct if INTEGER is specified without a size. But INTEGER(n) is also allowed. In that case, n specifies the size of the INTEGER field in bytes.
See Also: Oracle9i Database Utilities for a complete list of options and instructions on using SQL*Loader
Event Viewer Microsoft Management Console Oracle Performance Monitor for Windows NT Registry Editor Task Manager User Manager
Event Viewer
Event Viewer lets you monitor events in your system. An event is an important occurrence in the system or application (such as your Oracle database) that requires user notification. While messages for major events can appear on-screen as you work at your computer, events not requiring your immediate attention are recorded by Windows in the Event Viewer log file. You can then view this information at your convenience. Event Viewer can be used to monitor Oracle database events, such as:
s
Initialization of System Global Area for active instance Initialization of Program Global Area (PGA) for background processes of active instance Connection to Oracle9i database using AS SYSDBA
5-20
Configure Oracle database administrators, operators, users, and roles so the Windows operating system can authenticate them Configure OracleServiceSID Modify registry parameters for all Oracle homes on the computer Modify the computer hostname, username, and password for the database being monitored by Oracle Performance Monitor for Windows NT View and terminate an Oracle thread
Library cache Buffer cache Data dictionary cache Redo log buffer cache Thread activity
Registry Editor
Oracle9i database stores its configuration information in a structure known as the registry. You can view and modify this configuration information through Registry Editor. The registry contains configuration information for your computer and must not be accessible for editing by inexperienced users. Only experienced administrators should view and change this information. Registry Editor displays configuration information in a format similar to Windows Explorer. In the left-hand window is a tree-like format consisting of keys (or folders). When one of these keys is highlighted, parameters and values assigned to that key are displayed in the right-hand window. When you install products from your CD-ROM, configuration parameters are automatically entered in the registry. These parameters are read each time your Windows computer is restarted and whenever an Oracle product is started. These parameters include settings for:
s
Oracle home directory Language Company name Oracle home subdirectories for individual products Individual products such as SQL*Plus Services
See Also: Chapter 9, "Configuration Parameters and the Registry" for definitions of Oracle database configuration parameters and specific instructions on using the registry to modify Oracle9i database configuration parameters
Task Manager
Task Manager has three display options:
s
Applications option displays what applications are running. This is useful for identifying and ending unresponsive tasks. (Oracle does not appear as an application because it runs as a service.) Processes option displays details of currently running processes and their resource usage. Columns are customizable. Performance option graphically displays real-time CPU and memory usage, which is useful for spotting sudden changes.
5-22
User Manager
User Manager enables you to manage Windows computer security and create user accounts on Windows NT. With User Manager, you can:
s
Grant Oracle database roles Use operating system authentication for user accounts (For example, you can grant DBA access to an NT user.) Create an NT user account that enables you to make secure client connections to Oracle9i database without a password
See Also: Manually Administering External Users and Roles" in Oracle9i Security and Network Integration Guide for Windows for specific instructions on using User Manager to perform Oracle database administration
Distinguishes between time spent in user mode and kernel mode Imposes low overhead on the system (unlike Performance Monitor) Shows a continuous display, rather than just a snapshot Opens a window with more details when you double-click a process
Process Viewer summarizes resource usage by a process. Process Explode provides a detailed display of resource usage by a process. Task List displays resource usage and other details of a process when its processor identifier or process name is given as an argument. This tool also displays a list of executables and DLLs associated with a process.
See Also:
s
"Administering a Database" in Oracle9i Database Administrators Guide for Windows for OracleServiceSID configuration tasks "Authenticating Database Users with Windows" in Oracle9i Security and Network Integration Guide for Windows for authentication tasks "Monitoring a Database" in Oracle9i Database Administrators Guide for Windows for thread management tasks Chapter 3, "Using Oracle9i on Windows 2000" Chapter 9, "Configuration Parameters and the Registry" and "Monitoring a Database" in Oracle9i Database Administrators Guide for Windows for Oracle Performance Monitor for Windows NT tasks Oracle9i Database Installation Guide for Windows for components available for installation
5-24
6
Multiple Oracle Homes and Optimal Flexible Architecture
This chapter describes multiple Oracle homes and Optimal Flexible Architecture for Oracle9i for Windows. This chapter contains these topics:
s
Introduction to Multiple Oracle Homes and OFA Multiple Oracle Homes Overview Changing the Value of PATH Exiting Oracle Universal Installer After Entering Name and PATH Setting Variables in the Environment or the Registry Optimal Flexible Architecture Overview Differences Between Directory Trees by Release OFA Directory Naming Conventions OFA and Multiple Oracle Home Configurations Increasing Reliability and Performance Comparison Between OFA on Windows NT and UNIX
Structured organization of directories and files and consistent naming used for database files simplify database administration. Distribution of I/O across multiple disks prevents performance bottlenecks caused by multiple read or write commands issued simultaneously to a single drive. Distribution of applications across multiple disks safeguards against database failures. Login home directories are not at risk when database administrators add, move, or delete Oracle home directories. Multiple versions of application software can execute concurrently. Software upgrades can be tested in an Oracle home in a separate directory from the Oracle home where your production database is located.
What Is an Oracle Home? Benefit of Using Multiple Oracle Homes Multiple Oracle Home Functionality in Different Releases One-Listener Support of Multiple Oracle Homes Multiple Oracle Home Environments
Note: All Oracle7 products and all Oracle8 release 8.0.3 products are non-multiple Oracle home products. Oracle9i Database Installation Guide for Windows has a list of products supporting single or multiple Oracle homes.
6-2
Location of installed product files (for example, C:\orant or C:\oracle\ora92) PATH variable pointing to binary files of installed products Registry entries Service names Program groups
Oracle homes also have a name associated with them, which you specify along with their location during installation.
You cannot install any release from Oracle8i release 8.1.3 to Oracle9i release 2 (9.2) into an Oracle home that was created using the old installer. (The old installer was called Oracle Installer and was used for installations before Oracle8i release 8.1.3; the new Java-based installer is called Oracle Universal Installer.) You cannot install releases prior to Oracle8i release 8.1.3 into an Oracle home that was created by any release from Oracle8i release 8.1.3 to Oracle9i release 2 (9.2). Releases from Oracle8i release 8.1.3 to Oracle9i release 2 (9.2) must be installed in separate Oracle homes. You cannot have more than one release installed in each Oracle home.
You should enable process mode external procedures for Oracle9i release 2 (9.2) if you want to spawn a connection to a Oracle8 release 8.0.3 database. You must install Oracle8 release 8.0.4.0.3 (or later) patch for Oracle Net. You cannot enable shared sockets.
6-4
Note: Multiple Oracle homes functionary works only with Oracle8 releases 8.0.4 and later. For example, if you have Oracle7 release 7.3.3 products already installed on your computer, then it does not work. You cannot install Oracle7 release 7.3.4 products in a separate Oracle home.
Table 61
Element
Service Names
Program Groups
Oracle for Windows - HOME_NAME Oracle home name appended to the program group.
Registry Entries
Located in HKEY_LOCAL_ Subkeys for each Oracle home are added under HKEY_ MACHINE\SOFTWARE\ORACLE LOCAL_MACHINE\SOFTWARE\ORACLE subkey (HOME0, HOME1, HOME2, and so on). For more information on registry keys and subkeys, see Chapter 9, "Configuration Parameters and the Registry". Automatically named ORCL Only the first starter database on your computer is called ORCL. Additional starter databases use the naming convention ORCx or ORxx where x is a number appended to ensure the SID is unique.
For Oracle8i releases 8.1.3 through 9.0, the SID can be a maximum of 64 alphanumeric characters in length. For all Oracle for Windows releases prior to 8.1.3, the SID is a maximum of 4 alphanumeric characters.
6-6
Specifying the full directory path name to the release of the product you want to use at the command prompt Changing to the directory that contains the executable you want to use Changing your PATH so that the first entry points to binary files for the product release you want to use
You can change the value of PATH by using one of the following methods:
s
Using Oracle Home Selector At the System Level on Windows NT You can assign a new value at the system level. The new value exists until you change the value of PATH again.
At the Command Prompt You can assign a new value at the command prompt. The new value reverts to its previous value when you quit the session.
Note: The first two methods of changing the value of PATH are only valid if you are a member of the Administrators group. After you have changed the value of PATH, you must open a new command prompt window to make it active. The change is not reflected in already-opened windows.
Choose Start > Programs > Oracle Installation Products > Home Selector. The Oracle Home Selector window appears.
2. 3.
Select the Oracle home that you want as the primary Oracle home from the list. Click OK.
Choose Start > Settings > Control Panel. The Control Panel window appears.
2.
3.
4. 5.
Edit the value of PATH in the Value field and choose Set. Click OK.
Open the autoexec.bat file. Edit the value of the PATH statement. Restart your computer.
In some cases on Windows 98, Oracle Home Selector fails to switch entries in the PATH environment variable as desired. This occurs where the PATH is defined in multiple places in the file autoexec.bat.
6-8
then an attempt to switch the order of D:\oracle\ora817 with D:\oracle\ora816 in the PATH using Oracle Home Selector fails. To work around this limitation, modify autoexec.bat so that the PATH is defined in one location in the file. Using the previous example, modify autoexec.bat to read:
PATH D:\oracle\ora817;D:\oracle\ora816;C:\windows
If you then attempt to use Oracle Home Selector to switch the order of Oracle homes in the PATH, it will succeed.
where PATHNAME is the full path to binary files for the products you want to use. This change is valid for the current session only. If you want to change the value of your PATH permanently, then use Oracle Home Selector or change the value of PATH at the system level. Both methods are described earlier in this section.
Read the value of parameter ORACLE_HOME_NAME for each HOMEID subkey in key HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE until you find the value that matches the name of the Oracle home you must delete. Delete subkey HOMEID you just located. Delete appropriate IDx subkey in key HKEY_LOCAL_ MACHINE\SOFTWARE\ORACLE\ALL_HOMES, where x has the same value as ID in HOMEID. For example, if subkey HOMEID for the home name you want to delete is HOME1, then the appropriate IDx subkey is ID1.
See Also: Chapter 9, "Configuration Parameters and the Registry" for more information on registry keys and subkeys
2. 3.
ORACLE_HOME
Oracle Corporation recommends that you never set the ORACLE_HOME environment variable, because it is not required for Oracle products to function properly. If you set the ORACLE_HOME environment variable, then Oracle Universal Installer will unset it for you. Oracle products find the value of ORACLE_HOME at the location specified by the ORACLE_BASE\ORACLE_HOME\bin\oracle.key file. If you must set ORACLE_HOME in the environment for another reason, then you must take care to run software only from that Oracle home when the variable is set. When you run an Oracle application from the command prompt, the first executable by that name found in the directory path runs. For example, C:\> sqlplus. Alternately, if you specify a full directory path, then the specified application runs. For example, C:\oracle\ora82> sqlplus.
6-10
If you modify the value of PATH using any of the four methods described in the previous section, then you can choose which release of an application is run from the command prompt. In sum, modifying the value of PATH indicates from which Oracle home to run executables at the command prompt, when no full directory path is specified. Once an Oracle application starts, it looks for all environment variables first in the current environment and second in the registry key for the Oracle home from which the application is running. The application knows where it is running from by calling Windows to obtain the executables path name and then parsing the path name to get the directory from which it is running. In the ORACLE_BASE\ORACLE_HOME\bin directory where the executable resides, there is a file called oracle.key. This file specifies where in the registry to look for variables when applications from that particular Oracle home are run. For example, if you run C:\oracle\ora82\bin\sqlplus.exe, then sqlplus.exe looks in C:\oracle\ora82\bin\oracle.key to find out where to look for its registry variables. If the oracle.key file does not exist (for version 7 and some version 8 Oracle homes), then Oracle uses HKEY_LOCAL_ MACHINE\SOFTWARE\ORACLE to locate the registry variables. In a typical case, there are no Oracle variables (that is, ORACLE_HOME) set in the environment. Any applications run from an Oracle8 release 8.0.5 or later Oracle home look in the oracle.key file in that Oracle home and find their variables (including ORACLE_HOME) in the correct registry key. Likewise for Oracle9i release 2 (9.2), the Oracle home that gets priority depends on the PATH, but regardless of the PATH setting, all software works correctly.
6-11
for all variables before looking at its oracle.key file. So an application run from your Oracle9i release 2 (9.2) Oracle home runs with ORACLE_HOME=C:\orant. Therefore, anything that the application uses ORACLE_HOME for will be looked for in C:\orant, where it may not exist. Examples include message files (*.msb), SQL scripts (.sql), and any other files opened by the application and based off ORACLE_HOME. Note that the same behavior occurs on UNIX. If you run an application from Oracle home number 1 with ORACLE_HOME=OracleHome number 2 in the environment, then the same behavior can be observed.
TNS_ADMIN
Oracle software looks for TNS_ADMIN in one location in the registry (depending upon the type of Oracle home installed). If you installed software into the default Oracle home, then any software running from that Oracle home will look in HKEY_ LOCAL_MACHINE\SOFTWARE\ORACLE. If you installed a new-style (8.0.4 or later) multiple Oracle home, then the Oracle software looks in HKEY_LOCAL_ MACHINE\SOFTWARE\ORACLE\HOMEID. (Key ALL_HOMES is used by the installer and plays no role when translating variables.) The environment always overrides the registry, so if TNS_ADMIN is set in the environment, then that takes precedence over the TNS_ADMIN setting in the registry. No variables should be set in the environment by Oracle Home Selector except for PATH.
Easier maintenance of Oracle software and databases through standard file organization
6-12
Greater reliability through data spanning multiple physical drives Higher performance through decreased I/O contention for disks
For example, Oracle Universal Installer now separates Oracle software executables from database files. Previously, database files were placed in ORACLE_ HOME\database, a subdirectory of the Oracle home directory that also contained Oracle software. Using OFA, Oracle Universal Installer puts Oracle software in ORACLE_ BASE\ORACLE_HOME and database files in ORACLE_BASE\oradata. Now when you upgrade a database to the latest release, the new Oracle software executables will be placed in a different Oracle home directory. After you judge the upgrade successful, you can easily remove the old Oracle home directory and reclaim space, because the database does not reside there.
Easier database administration and management of database growth File system organization simplifies locating specific database files and adding database files as the database grows.
Fewer performance bottlenecks Disk contention decreases, because Oracle administration files, binary files, and datafiles that used to be on one disk can now reside in separate directories on separate disks.
Safeguards against disk failures By spreading files across more than one disk, disk failures impact as little data as possible.
Multiple releases of application software can run simultaneously, enabling testing and use of a new release of an application before abandoning the previous release. Transferring to a new release after an upgrade is simple for the database administrator and transparent for the user.
Independent subdirectories Categories of files are separated into independent subdirectories so that files in one category are minimally affected by operations on files in other categories.
Consistent naming conventions for database files Database files are easily distinguishable from all other files. Files of one database are easily distinguishable from files of another database. Datafiles, redo log files, and control files are easily identifiable. Datafiles are clearly associated with a particular tablespace.
Integrity of Oracle home directories You can add, move, or delete Oracle home directories without having to revise applications that refer to them.
Separation of administrative information for each database The ability to distinguish administrative information about one database from that of another ensures a reasonable structure for the organization and storage of administrative data.
Separation of tablespace contents Tablespace free space fragmentation and I/O request contention are minimized, while administrative flexibility is maximized.
Tuning I/O loads across all disks I/O loads are tuned across all disks, including disks storing Oracle data in raw devices, if needed.
6-14
ORACLE_BASE contains \ORACLE_HOME directories, \oradata directories (for database files), and \admin directories (for database administration files).
Database Filenames
In Oracle8i release 8.1.3 and earlier releases, database files have the SID in the database filename. For example, the first control file is named ctl1SID.ora. Beginning with Oracle8i release 8.1.4, database files no longer have the SID in the database filename. For example, the first control file is named control01.ctl. There is no need for the presence of the SID in the filename, because all the database files for a particular database are placed in \oradata under a directory called DB_ NAME that is named for that database.
.ctl for control files, .log for log files .dbf for datafiles.
ORACLE_BASE Directory ORACLE_HOME Directory ADMIN Directory ORADATA Directory DB_NAME Directory
ORACLE_BASE Directory
ORACLE_BASE is the root of the Oracle directory tree. If you install an OFA-compliant database using Oracle Universal Installer defaults, then ORACLE_ BASE is X:\oracle where X is any hard drive. For example, C:\oracle.
If you are installing Oracle9i for Windows on a computer with no other Oracle software installed, then you can change ORACLE_BASE before running Oracle Universal Installer. Most users will not need or want to do this. Do not change the value of ORACLE_BASE after you run Oracle Universal Installer for the first time. If there is an existing ORACLE_BASE and you change it, then there will be a conflict of Oracle base directories. If you create another ORACLE_BASE when the original ORACLE_BASE already exists, then certain tools and the database will not be able to find previously created files. They will look for them in the new ORACLE_BASE instead of the original ORACLE_BASE.
Choose Start > Settings > Control Panel. The Control Panel window appears.
2.
3.
6-16
4. 5.
Select ORACLE_BASE. Type a new value for ORACLE_BASE in the Value text box, then click OK to exit.
Open the autoexec.bat file, using a text editor. Edit the value of the ORACLE_BASE statement. Restart your computer.
Note: An ORACLE_BASE registry key exists for every Oracle home. Ideally, the value of the ORACLE_BASE registry key will be identical for each Oracle home.
ORACLE_HOME Directory
\ORACLE_HOME directory is located beneath X:\ORACLE_BASE and contains subdirectories for Oracle software executables and network files. If you install Oracle9i for Windows on a computer with no other Oracle software installed and you use default settings, then the first Oracle home directory that you create is called \ora92.
ADMIN Directory
Database administration files are stored in subdirectories of ORACLE_BASE \admin\DB_NAME. Names and brief descriptions of some of these subdirectories are:
\bdump \cdump \create \exp \pfile \udump --background process trace files --core dump files --database creation files --database export files --initialization parameter files --user SQL trace files
ORADATA Directory
Database files are stored in ORACLE_BASE\ORADATA\DB_NAME. Names and brief descriptions of these files are:
control01.ctl control02.ctl control02.ctl oemrep03.dbf system01.dbf rbs01.dbf indx01.dbf temp01.dbf users01.dbf redo01.log redo02.log redo03.log --control file 1 --control file 2 --control file 3 --Oracle Enterprise Manager repository tablespace datafile --SYSTEM tablespace datafile --RBS tablespace datafile --INDX tablespace datafile --TEMP tablespace datafile --USERS tablespace datafile --redo log file group one, member one --redo log file group two, member one --redo log file group three, member one
Note: This directory structure allows for disk striping only on UNIX platforms. See "Support for Symbolic Links on Windows NT" on page 6-25.
DB_NAME Directory
DB_NAME is the unique name for a particular database and has the same value as parameter DB_NAME in the initialization parameter file (init.ora). When you create a database, DB_NAME can be no more than eight characters long and can contain only the following characters:
s
Alphabetic characters Numbers Underscores (_) Pound sign (#) Dollar sign ($)
6-18
where:
s
X:\ is any hard drive. For example, C:\ [PATHNAME] is an optional directory path name \oracle is a mandatory directory path name, unless you changed the value of registry key ORACLE_BASE before performing the installation
C:\test\oracle\ora92 D:\oracle\ora92
Install Oracle8i for Windows release 8.l.6 on a computer with no other Oracle software installed and accept default Oracle Universal Installer settings for the first Oracle home (C:\oracle\ora81) in the path: field. Complete the installation. Install Oracle9i for Windows release 2 (9.2) and accept default Oracle Universal Installer settings for the first Oracle home (C:\oracle\ora92) in the path: field.
2. 3.
ORACLE_BASE
Oracle home 1 Oracle home 2
Install Oracle8i for Windows release 8.1.6 and change default Oracle Universal Installer settings for the first Oracle home from C:\oracle\ora81 in the path: field to X:\xyz. Complete the installation. Install Oracle9i for Windows release 2 (9.2) and change default Oracle Universal Installer settings for the second Oracle home from C:\oracle\ora92 in the path: field to Y:\abc.
2. 3.
ORACLE_BASE
6-20
Y:abc \admin \DB_NAME1 \DB_NAME2 \bin \network \oradata \DB_NAME1 control01.ctl control02.ctl control03.ctl indx01.dbf rbs01.dbf system01.dbf temp01.dbf users01.dbf redo01.log redo02.log redo03.log \DB_NAME2
Install Oracle8i for Windows release 8.1.6 and change default Oracle Universal Installer settings for the first Oracle home from C:\oracle\ora81 in the path: field to X:\xyz\oracle\abc. Complete the installation. Install Oracle9i for Windows release 2 (9.2) and change default Oracle Universal Installer settings for the second Oracle home from C:\oracle\ora92 to X:\pqr.
2. 3.
ORACLE_BASE
X:\xyz\oracle\abc X:\pqr
6-22
Disk Mirroring
Oracle log files and database files can be separated and treated with different levels of hardware reliability. Oracle log files are highly reliable to start with, because they are stored redundantly. Creating similar reliability for database files may require you to duplicate all of your data, using disk mirrors. Disk mirroring usually involves two or more identical drives and either a hardware controller or Windows Disk Administrator. If one disk fails, then the other disk(s) can be used to recover data that would otherwise be lost. Using one of the disks to recover lost data may involve "breaking" the mirror. If the mirror breaks, then you must build a new mirror. Disk mirroring is part of some levels of Redundant Array of Independent Disks (RAID) configurations, provided by the disk controller. The RAID level determines the amount of redundancy. Some RAID levels can use the "hot swapping" feature, which means that you can replace a bad disk with a good one without turning off the computer or losing functionality.
Disk Striping
How you set up disks for use in a database depends on the number of disks and the type of hard disk controllers available. If the hard disk controllers support both striping and mirroring, then Oracle Corporation recommends you configure the controllers to support striping. Some controllers are configured at system startup time by issuing a keyboard sequence that brings up configuration programs written by the controller manufacturer. One goal is to stripe as many drives together as possible by configuring the controllers. Each stripe shows up as one logical device. Striping provides significant performance advantages. All the space from the striped drives appears as a single logical drive. Furthermore, the space is used by interlacing "stripes" of space from all of the disks in the stripe. This means that a large file uses some space from the first disk, then some from the second disk and so
on to the last disk and then starting back at the first disk again. Each file can be spread over all of the striped disks. Data in such a file may be accessed randomly by more than one CPU without contention. Controllers that support striping usually provide caching as well. This means that data can be written to the controller and cached and saved for a time in storage not on the disk. Data that is read can be cached on the controller in a similar fashion. Read caching is not necessary for Oracle databases, because all database reads are cached already in the System Global Area. The value of the DB_BLOCK_BUFFERS parameter in the initialization parameter file (init.ora) determines the number of buffers that can be used in the SGA. This value also configures Oracle9i database on startup.
Directory Naming
Top-level names of the OFA directory tree differ between Windows NT and UNIX. However, main subdirectory and filenames are the same on both operating systems.
6-24
ORACLE_BASE Directory
On Windows, ORACLE_BASE is associated with an Oracle home directory. ORACLE_ BASE is defined in the registry (for example, in HKEY_LOCAL_ MACHINE\SOFTWARE\ORACLE\HOME0). On UNIX, ORACLE_BASE is associated with a UNIX users environment.
C:\ contains an Oracle home and database administration files. F:\ contains redo log files. (F:\ drive could also represent two physical drives that have been striped to increase performance.) G:\ contains one of the control files and all tablespace files. (G:\ drive could also use a RAID Level-5 configuration to increase reliability.) H:\ contains the second control file.
6-26
7
Oracle9i Services on Windows
This chapter describes Windows services in general and Oracle9i Database Windows services in particular. This chapter contains these topics:
s
Introduction to Oracle9i Services Oracle9i Services Available on Windows Using Oracle9i Services
7-1
7-2
OracleCMService9i
Used for Cluster Manager for Oracle Real Application Clusters.
OracleDirectoryService_SID
Responsible for starting and shutting down all Oracle Internet Directory (OID) servers (oidldapd, oidrepld, and oidmetad). Also monitors all OID servers once they are up and running. If an OID server goes down, then OracleDirectoryService_SID restarts it.
OracleEXTPRC
Used for external naming methods (Novell Directory Services and Network Information Service).
OracleGSDService
Global Services Daemon (GSD) receives requests from SRVCTL to execute an administrative job task, such as startup or shutdown. The task is executed locally on all nodes, and results are sent back to SRVCTL. This service is installed with Real Application Clusters.
OracleHOME_NAMEAgent
Part of Oracle Enterprise Manager product suite. Intelligent Agent is required for execution of jobs and performance monitoring of Oracle services or targets such as listeners, databases, Oracle HTTP Server, and Oracle Applications. Intelligent Agent also collects statistical data for Capacity Planner and Performance Manager, which are data-collecting applications available in Oracle Diagnostics Pack.
7-3
OracleHOME_NAMEClientCache
Used for Client Cache Service, a networking product.
OracleHOME_NAMECMAdmin
Performs administrative functions, including answering requests sent from Oracle Connection Manager Control utility, monitoring registered listeners, and communicating address information to Oracle Names servers.
OracleHOME_NAMECMan
Listens for incoming client connection requests. It also provides session multiplexing, access control, and protocol conversion functions.
OracleHOME_NAMEHTTPServer
Starts Oracle HTTP Server. Used as Web server with browser-based Oracle Enterprise Manager.
OracleHOME_NAMEManagementServer
Management Server is the middle tier of Oracle Enterprise Manager. It maintains centralized intelligence and distributed control between clients and managed nodes.
OracleHOME_NAMEPagingServer
Oracle Enterprise Manager Paging Server allows Enterprise Manager administrators to receive paging notifications concerning registered events and scheduled jobs.
OracleHOME_NAMETNSListener
Listens for and accepts incoming connection requests from client applications. Automatically starts when the Windows computer restarts. If it is not started, then the following error message appears when attempting to connect with username/password@net_service_name:
ORA-12541 TNS: no listener
OracleMSCSService
Created and configured during installation of Oracle Fail Safe and Oracle Real Application Clusters Guard. Required on all Windows clusters nodes where these components are installed. OracleMSCSService is under the control of Microsoft Cluster Server and should be set to manual startup.
7-4
OracleMTSRecoveryService
Helps Oracle databases recover in-doubt Oracle transactions that were started on behalf of Microsoft Transaction Server (MTS) transactions originating from Windows NT and Windows 2000 computers. There is only one such service for each Windows NT or Windows 2000 computer having Oracle Services for MTS installed.
Oracle NAMES
Used for the distributed naming service developed for Oracle environments.
OracleServiceSID
Created for the database instance system identifier, where SID is the value you entered for the database name during Oracle9i installation. This service is mandatory. If is it not started, then the following ORA-12560 error message appears when you attempt to use any Oracle9i Utilities, such as SQL*Plus:
ORA-12560 TNS: protocol adapter error
OracleSNMPPeerEncapsulator
See OracleSNMPPeerMasterAgent. Encapsulator is only required when you have more than one SNMP sub-agent installed and configured on the system.
OracleSNMPPeerMasterAgent
Simple Network Management Protocol (SNMP) is a standard internet protocol enabling certain nodes in a network to query other network components or applications for information concerning their status and activities. All requests sent to a given network node are handled by the same Master Agent, which redirects requests to appropriate managed elements on the node, in some cases using subagents.
OraFenceService
A kernel mode service to provide I/O fencing. Restarts a node in case the node hangs in kernel mode for a defined amount of time. The service is installed on all nodes with OracleCMService9i.
Note: Oracle Fail Safe and Oracle Real Application Clusters Guard are not supported on Windows XP.
7-5
All Oracle services begin with "Ora". Use the Services dialog box to start or stop each of the Oracle services available on the computer. Services are found in the registry under:
HKEY_LOCAL_MACHINE\SYSTEM\CURRENTCONTROLSET\SERVICES.
See Also:
s
Chapter 6, "Multiple Oracle Homes and Optimal Flexible Architecture" for information on multiple, active Oracle home directories on a single computer, which affects naming conventions for Oracle services "Administering a Database", in Oracle9i Database Administrators Guide for Windows for details on managing Oracle services
7-6
8
Oracle9i Default Accounts and Passwords
This chapter describes Oracle9i database default accounts and passwords. This chapter contains these topics:
s
Overview Unlocking and Changing Passwords Granting Limited SYS Database Role Privileges Reviewing Accounts and Passwords
8-1
Overview
Overview
Oracle9i installs with a number of default accounts. Database Configuration Assistant locks and expires all default database accounts upon successful installation with the following exceptions:
s
You must unlock all other accounts before using them. Oracle Corporation recommends changing all user passwords immediately after installation.
Note: If installing Oracle Internet Directory, then change passwords for SYS and SYSTEM only after Oracle Internet Directory installation is complete.
At a minimum, Database Configuration Assistant creates SYS, SYSTEM, and DBSNMP accounts in all databases. Additional accounts are created depending on components installed. Unlock accounts and change passwords before using them. Table 82 describes accounts and passwords.
See Also:
s
Oracle9i Security and Network Integration Guide for Windows and Oracle Advanced Security Administrators Guide for information on Oracle security procedures and security best practices Oracle Enterprise Manager Administrators Guide for information on security management
8-2
2. 3.
Select a username and clear the check mark. Enter a new password and confirm the new password for each username.
Note: If you unlock a password, but do not specify a new password, then the password is expired until the next time you access that account.
Alternatively, use SQL*Plus to unlock accounts and change passwords any time after installation. To change a password after installation:
1.
Start SQL*Plus:
C:\> sqlplus /NOLOG
2.
Connect as SYSDBA:
SQL> CONNECT / AS SYSDBA
8-3
3.
Table 81
Action
Change password of an unlocked account ALTER USER username IDENTIFIED BY password; Change password of a locked account ALTER USER username IDENTIFIED BY password ACCOUNT UNLOCK;
Note: For information on Oracle Enterprise Manager accounts and passwords, see "Parameters for Oracle Performance Monitor for Windows NT" on page 9-10 and "Modifying Oracle Performance Monitor for Windows NT Parameters" on page 9-22.
8-4
Table 82
Username SYSTEM1
Oracle9i Database Administrators Guide Not applicable Oracle Text Reference Oracle Intelligent Agent Users Guide
Oracle Label Security administrator username. Oracle Label Security Administrators Guide Oracle Spatial and Oracle Locator administrator username. Oracle Spatial Users Guide and Reference
Includes CONNECT, OLAP_DBA, and RESOURCE Oracle9i OLAP Users database roles Guide Oracle interMedia Audio and Video username Oracle interMedia Users with CONNECT and RESOURCE database roles. Guide and Reference Allows non-native plug-in formats for one session. Oracle interMedia Audio, Video, Locator, and Oracle interMedia Users Image administrator username with CONNECT, Guide and Reference JAVAUSERPRIV, and RESOURCE database roles. Centrally manages metadata associated with stored outlines. Supports plan stability, which maintains the same execution plans for the same SQL statements. Includes CONNECT and RESOURCE database roles. Includes CONNECT and RESOURCE database roles. Oracle9i Database Concepts Oracle9i Database Performance Tuning Guide and Reference Oracle9i Database Administrators Guide for Windows
ORDSYS
ORDSYS
OUTLN
OUTLN
SCOTT
TIGER
8-5
WMSYS
WMSYS
XDB
CHANGE_ON_ INSTALL
If installing Oracle Internet Directory, then change passwords for SYS and SYSTEM only after Oracle Internet Directory installation is complete. If installing Oracle Internet Directory, then change passwords for SYS and SYSTEM only after Oracle Internet Directory installation is complete. SYS includes the following database roles: AQ_ADMINISTRATOR_ROLE, AQ_USER_ROLE, CONNECT, CTXAPP, DBA, DELETE_CATALOG_ROLE, EXECUTE_CATALOG_ROLE, EXP_FULL_DATABASE, GATHER_ SYSTEM_STATISTICS, HS_ADMIN_ROLE, IMP_FULL_DATABASE, JAVA_ADMIN, JAVADEBUGPRIV, JAVA_DEPLOY, JAVAIDPRIV, JAVAUSERPRIV, JAVASYSPRIV, LOGSTDBY_ADMINISTRATOR, OEM_MONITOR, OLAP_DBA, RECOVERY_ CATALOG_OWNER, RESOURCE, SELECT_CATALOG_ROLE, and WKUSER SQL statement must include the privilege AS SYSDBA or AS SYSOPER.
See Also:
s
"The Oracle Database Administrator" in Oracle9i Database Administrators Guide "Administering External Users and Roles" in Oracle9i Security and Network Integration Guide for Windows
8-6
9
Configuration Parameters and the Registry
This chapter describes use of the registry for various Oracle9i for Windows components. It also lists recommended values and ranges for configuration parameters. This chapter contains these topics:
s
About Configuration Parameters Registry Overview Registry Parameters Oracle Real Application Clusters Registry Parameters Modifying a Registry Value with regedt32 Adding a Registry Parameter with regedt32 Adding or Modifying Registry Parameters with Oracle Administration Assistant for Windows NT Modifying Oracle Performance Monitor for Windows NT Parameters
9-1
Registry Overview
Oracle9i for Windows stores its configuration information in a repository (the registry) that is organized in a tree format. The tree format consists of keys in the registry and parameter values for the keys. Keys and parameter values can be viewed and modified in Registry Editor. Keys are folders that appear in the left pane of a Registry Editor window. A key contains subkeys or parameters.
Caution: Although Registry Editor lets you view and modify registry keys and parameter values, you normally are not required to do so. In fact, you can render your system useless if you make incorrect changes. Therefore, only advanced users should edit the registry! Back up your system before making any changes in the registry.
For example, parameter ORACLE_SID can have the following entry in the registry:
ORACLE_SID:reg_sz:orcl1
9-2
Registry Parameters
String value with a REG_SZ, REG_EXPAND_SZ (for an expandable string), or a REG_MULTI_SZ (for multiple strings) prefix to identify a parameter value entry as a data string Binary value with a REG_DWORD prefix to identify a value entry as a dword (hexadecimal data) entry
Most Oracle9i for Windows parameter values are string types. Use Oracle Universal Installer defaults when a type is not given.
Registry Parameters
This section describes Oracle9i for Windows registry parameters for the following keys. Other products, such as Oracle Enterprise Manager, have additional keys and parameters that are not described in this chapter.
s
To modify these registry values, see "Modifying a Registry Value with regedt32" on page 9-14.
Note: This chapter describes how to use regedt32 to edit your registry. If you are using Windows 98, then you must use regedit, which operates slightly differently than regedt32. See your Windows 98 documentation for instructions.
9-3
Registry Parameters
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOMEID
Each time you install Oracle products into a new Oracle home on your computer, HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOMEID is created and ID is incremented. This subkey contains parameter values for most Oracle products.
Note: See Chapter 6, "Multiple Oracle Homes and Optimal Flexible Architecture" for details on the PATH variable and registry values when you are working with multiple Oracle homes.
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOMEID includes the following parameters for an Oracle home directory. Depending on products you install, additional parameters can also be created. See your Windows development manuals.
MSHELP_TOOLS
Specifies the location of Windows help files. Default value is ORACLE_ BASE\ORACLE_HOME\mshelp.
NLS_LANG
Specifies supported language, territory, and character set. This parameter specifies the language in which messages appear, the territory and its conventions for calculating week and day numbers, and the character set displayed. Oracle Universal Installer sets this value during installation based on the language setting of the operating system. See Oracle9i Database Globalization Support Guide for a list of values.
ORA_CWD
Specifies current working directory. For example, if you set this parameter and then use ORADIM, a log file called oradim.log is created in this directory. This parameter must be manually set.
ORA_SID_AUTOSTART
Starts Oracle9i database when OracleServiceSID service is started. Default value is true.
9-4
Registry Parameters
ORA_SID_PFILE
Specifies full path to initialization parameter file (init.ora). Default value is ORACLE_BASE\admin\DB_NAME\pfile\init.ora
ORA_SID_SHUTDOWN
When set to true, the default value, this parameter shuts down the Oracle database identified by SID when OracleServiceSID is stopped.
ORA_SID_SHUTDOWN_TIMEOUT
Sets maximum time (in seconds) to wait for shutdown to complete before the service for a particular SID stops. Default value is 30.
ORA_SID_SHUTDOWNTYPE
Specifies mode in which Oracle9i database is shut down when you stop OracleServiceSID. Valid values are a (abort), i (immediate), and n (normal). Default value is i.
ORA_TZFILE
Specifies location of time zone file. Each file contains:
s
Valid time zone names Offset from UTC Abbreviation for standard time Abbreviation for daylight savings time
Default is ORACLE_BASE\ORACLE_HOME\oracore\zoneinfo\timezone.dat. It contains most commonly used time zones and is smaller for better database performance. The optional file, timezlrg.dat, includes time zones not defined in the default; but its use may affect database performance. To enable use of the optional file, the database administrator must:
1. 2. 3.
Shut down Oracle9i database. Set ORA_TZFILE to the full path name of the location of timezlrg.dat file. Restart Oracle9i database.
To view time zone names, use SQL*Plus to make the following query:
SELECT * from v$timezone_names
9-5
Registry Parameters
Once the larger file is used, it must stay in use unless the user is sure that no data uses one of the added time zones. Also, all databases that share information must use the same time zone file.
ORACLE_AFFINITY
Specifies Windows NT processor affinity of each thread within the Oracle process. This parameter must be manually added. Oracle Corporation recommends consulting Oracle Support Services before changing this parameter. The format is:
name1:cpumask1;name2:cpumask2
Each name setting must be the name of a background thread, user for non-background (shadow) threads, or def for any thread type not handled specifically. The name mask sets the affinity mask of the Oracle process. Valid background thread names include DBW0, LGWR, PMON, SMON, ARCH, RECO, CKPT, TRWR, SNP0 through SNP9, P000 through P481, and any other name found in the NAME column of the v$bgprocess data dictionary view. Each affinity setting must be a valid affinity mask (or its numeric equivalent) for the corresponding name. Process affinity masks are used only when Oracle services are first started. Each threads affinity is set only when the individual thread is started (for example, at database startup time for the background threads).
ORACLE_BASE
Specifies the top-level Oracle directory (for example, C:\oracle) that contains ORACLE_HOME, \admin, and \oradata. Default is ORACLE_BASE.
ORACLE_GROUP_NAME
Specifies the name of the group containing icons of the Oracle products installed. The parameter is added to your registry when you first install Oracle products, even if Oracle Universal Installer does not create a program group for Oracle products you have installed (for example, if you have installed only Oracle Net software). Default value is Oracle - HOME_NAME.
ORACLE_HOME
Specifies Oracle home directory in which Oracle products are installed. This directory is immediately beneath the Oracle base directory in the Oracle directory hierarchy. Default value is drive letter and name that you specify during installation.
9-6
Registry Parameters
ORACLE_HOME_KEY
The HKEY_LOCAL_MACHINE location of Oracle parameters. Default value is software\oracle\HOMEID.
ORACLE_HOME_NAME
Specifies home name of Oracle home directory in which Oracle products are installed. Default value is name that you specify during installation.
ORACLE_PRIORITY
Determines Windows NT scheduling priorities of threads within the Oracle database management system process. The format is:
name1:priority1;name2:priority2 . . .
The name class sets the priority class of the Oracle process. Threads can be assigned priority either collectively or individually. The collective name user designates non-background (shadow) threads; the collective name def designates any thread type not handled specifically. Valid individual background thread names include DBW0, LGWR, PMON, SMON, ARCH0, RECO, CKPT, TRWR, SNP0 through SNP9, and any other name found in the NAME column of the v$bgprocess data dictionary view. Default value is class:normal; def:normal.
Note: ORACLE_PRIORITY is not automatically created for you in the registry. When it is not defined in the registry, Windows NT default values are used for thread priorities.
ORACLE_SID
Specifies name of Oracle9i database instance on host computer. The value of this parameter is the SID for the instance. Default value is specified by entry in the Database Identification window of Oracle Universal Installer.
RDBMS_ARCHIVE
Specifies location of backup database files. Default value is ORACLE_ BASE\ORACLE_HOME\database\archive.
9-7
Registry Parameters
OSAUTH_PREFIX_DOMAIN
Enables user authentication. When set to true, enables server to differentiate between one username and another, whether they are local users, domain users, or domain users on another domain in your network. When set to false, domain is ignored, and the local user becomes the default value of the operating system user returned to server. Default value is false.
OSAUTH_X509_NAME
Enables client users to access Oracle9i database as X.509-compliant enterprise users. This parameter is required only if you want to use enterprise users and roles in an Oracle9i database computer running in a Windows 2000 domain. Default value is false.
RDBMS_CONTROL
Specifies location of backup database control files. Default value is ORACLE_ BASE\ORACLE_HOME\database.
SQLPATH
Specifies location of SQL scripts. Default value is ORACLE_BASE\ORACLE_ HOME\dbs.
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE
This subkey contains the following parameters:
INST_LOC
Specifies location of Oracle Universal Installer files. Default value is System Drive:\program files\oracle\inventory.
OO4O
Specifies location of Oracle Objects for OLE message files. Default value is ORACLE_ BASE\ORACLE_HOME\oo4o\mesg.
9-8
Registry Parameters
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\ALL_HOMES
This subkey provides general information on each Oracle home directory on a computer.
DEFAULT_HOME
Specifies default Oracle home name (that is, the first Oracle home installed on your computer). Default value is name that you specify during installation. You can also use an Oracle tool to change the default home name. See "Using Oracle Home Selector" on page 6-8.
HOME_COUNTER
Specifies the number of installed Oracle homes. Default value is 1.
LAST_HOME
Displays ID number of most recently installed Oracle home. For example, if HOME0 was most recently installed Oracle home, then number 0 appears. Default value is 0.
IDx
This subkey corresponds to HOMEID of the same number (for example, HOME0 for the first installation, HOME1 for the second installation, and so on). IDx contains NAME and PATH parameters. Values that appear are determined by what you enter during installation in the File Locations window of Oracle Universal Installer.
s
NAME specifies home name of the Oracle home for IDx. This is the value that you specify during installation when prompted for an Oracle home name. PATH specifies Oracle home directory for IDx. Default value is ORACLE_ BASE\ORACLE_HOME.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet contains four keys:
s
9-9
Registry Parameters
The first three are used by the operating system. You can edit only the Services subkey, which contains:
s
Parameters for Oracle Performance Monitor for Windows NT Parameters for Oracle Services
For Oracle Performance Monitor to display information for Oracle performance objects, it must log in to the database. Modify the following parameters if the default information is not applicable or if you want to access another database:
s
Hostname displays the SID of the database that Oracle Performance Monitor for Windows NT will connect to. Default value is blank, causing Oracle Performance Monitor to connect to the default database on the computer. If you specify a different SID, you must also add a connect descriptor for that SID to your tnsnames.ora file. Oracle Corporation recommends that you use Oracle Net Configuration Assistant, but you can also copy, paste, and modify the following example:
SERVICE_NAME = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = HOST_NAME)(PORT = 1521)) ) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = SERVICE_NAME) ) )
9-10
Registry Parameters
Password displays the encrypted password for the username to access the database. Default value is MANAGER (encrypted). Username displays the username to access the database. Default value is SYSTEM.
Oracle Performance Monitor for Windows NT requires the following parameters as entry points:
s
Close specifies the close entry point for the DLL. Default value is CloseOracle9PerformanceData. Collect specifies the collect entry point for the DLL. Default value is CollectOracle9PerformanceData. Library specifies the name of the Oracle Performance Monitor DLL. Default value is oraperf.dll Open specifies the open entry point for the DLL. Default value is OpenOracle9PerformanceData.
The following parameters specify Oracle Performance Monitor for Windows NT log file and object configuration files:
s
LOGFILE specifies the name of the Oracle Performance Monitor log file. This log file reports any errors, such as Oracle objects not appearing or database access problems. Default value is ORACLE_BASE\ORACLE_ HOME\dbs\operf90.log. PERF_FILE_NAME specifies the location of the perf.ora file, which contains all performance objects displayed by Oracle Performance Monitor. Default value is ORACLE_BASE\ORACLE_HOME\dbs\perf90.ora
DisplayName specifies the service name of the instance whose SID is SID. Default value is the name of the service. For example, OracleServiceORCL1, where ORCL1 is the SID.
ImagePath specifies the fully qualified path name of the executable started by the service and any command-line arguments passed into the executable at runtime. Default value is the path to the executable file of the product. ObjectName specifies the logon user account and computer to which the service should log on. Default value is LocalSystem.
Registry values are first listed and described (where necessary). Data types and default values are displayed in Table 91, " Oracle Real Application Clusters Registry Parameters"
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\OSD9I
This subkey contains the following required and optional values:
s
CMDLL specifies the full path of the Cluster Manager (CM) DLL. IODLL specifies the full path of the I/O DLL. IPCDLL specifies the full path of the Inter-Process Communication (IPC) DLL. STARTDLL specifies the full path of the Startup DLL.
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\OSD9I\CM
This subkey contains Cluster Manager registry values. These values are updated when Oracle OSD clusterware is installed.
s
9-12
CmHostName is for public host names used by the local Cluster Manager. Useful in a multihost environment, when more than one network is available on the node. DefinedNodes specifies names for the nodes in a private network. Oracle OSD clusterware uses these addresses for its interconnect traffic. MissCount defines the number of check-in intervals that can be missed before a Cluster Manager and its related node are declared down by the cluster. PollInterval defines the check-in time among Cluster Managers on different nodes. Each Cluster Manager is expected to send at least one status packet to all other nodes for each poll interval. PublicNames specifies public node names in the public network (known as DNS host names). ServiceName
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\OSD9I\IPC
This subkey contains Inter-Process Communication (IPC) registry values. These values are updated when Oracle OSD clusterware is installed.
s
DeviceNic is for use with Virtual Interface Architecture (VIA) hardware. Nic refers to Network Interface Card. InstanceID contains VIA MAC addresses of all nodes.
hostname hostname
3 1000 (milliseconds)
hostname
nic0 not applicable
Choose Start > Run, enter regedt32 in the Open field, and click OK.
9-14
Note: Use regedit to edit the registry on Windows 98. The dialog boxes for adding a registry parameter using regedit are slightly different from those for regedt32. See your Windows 98 documentation for specific instructions.
Navigate to the values you want to view or modify by double-clicking appropriate keys. The left-hand side of the window shows the hierarchy of registry keys, and the right-hand side of the window shows various values associated with a key.
3.
Double-click the parameter to edit. The String Editor dialog box appears:
4. 5. 6.
Make any necessary edits. Click OK. Choose Exit from the Registry Editor menu.
Choose Start > Run, enter regedt32 in the Open field, and click OK.
Note: Use regedit to edit the registry on Windows 98. The dialog boxes for adding a registry parameter using regedit are slightly different than those described in the following steps for regedt32. See your Windows 98 documentation for specific instructions.
Navigate to the key to which you want to add the new value. Choose Add Value from the Edit menu. The Add Value dialog box appears:
4.
In the Value Name text box, type the name of the value that you want to add to the currently selected key.
9-16
Adding or Modifying Registry Parameters with Oracle Administration Assistant for Windows NT
5.
In the Data Type list, select the data type that you want to assign to the added value:
s
REG_SZ, REG_EXPAND_SZ (for an expandable string), or REG_MULTI_SZ (for multiple strings) for a data string Binary value with a REG_DWORD prefix to identify a value entry as a DWORD (hexadecimal data) entry
6.
7. 8.
Type the value for the parameter. Click OK. Registry Editor adds the parameter.
9.
Adding or Modifying Registry Parameters with Oracle Administration Assistant for Windows NT
Instead of using regedt32 to add, edit, and delete parameters for an Oracle home, you can use Oracle Home Configuration snap-in, one of several snap-ins included as part of Oracle Administration Assistant for Windows NT. You must have Microsoft Management Console on your computer to use this product. Oracle home parameters are located in key HKEY_LOCAL_ MACHINE\SOFTWARE\ORACLE\HOMEID. See "HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOMEID" on page 9-4 for more information about Oracle home parameters.
Adding or Modifying Registry Parameters with Oracle Administration Assistant for Windows NT
Choose Start > Programs > Oracle - HOME_NAME > Configuration and Migration Tools > Administration Assistant for Windows NT. Oracle Administration Assistant for Windows NT starts.
2. 3.
Expand Oracle Homes. Right-click the Oracle home that you want to modify.
9-18
Adding or Modifying Registry Parameters with Oracle Administration Assistant for Windows NT
4.
Adding or Modifying Registry Parameters with Oracle Administration Assistant for Windows NT
Click Add in the Properties dialog box. The Add Value dialog box appears.
2. 3. 4. 5.
Enter the name in the Parameter Name text box. Enter the value in the Parameter Value text box. Click OK. Click Apply.
Note: With Oracle Administration Assistant for Windows NT, you can add parameters only with a datatype of REG_SZ. Use regedt32 to add parameters with a datatype of REG_EXPAND_ SZ, REG_MULTI_SZ, or REG_DWORD.
9-20
Adding or Modifying Registry Parameters with Oracle Administration Assistant for Windows NT
Select the parameter in the Other Settings text box in the Properties dialog box. Click Edit.
3. 4. 5.
Select the parameter in the Other Settings text box in the Properties dialog box. Click Delete.
9-22
where:
s
username is the username registry parameter value that Oracle Performance Monitor uses to log in to the database. You must have a DBA privilege on this database. password is the password registry parameter value for username. database_name is the net service name that Oracle Performance Monitor uses to connect to the database. It affects the Hostname registry parameter. The net service name corresponds to the SID of the database that you want to monitor. The -D command can be specified without providing a database name value.
The -U, -P, and -D commands are all optional. The following examples illustrate use of OPERFCFG utility. First, to change username to dba_admin, password to frank, and leave database name at its current value, you would enter:
C:\> operfcfg -U dba_admin -P frank
To change username to dba_admin, password to frank, and database name to prod, you would enter:
C:\> operfcfg -U dba_admin -P frank -D prod
To change password to frank for the current username and database name, you would enter:
C:\> operfcfg -P frank
In the final example, you change Hostname to a blank value, causing Oracle Performance Monitor to connect to the default database on the computer. The current username and password must be valid user accounts on this database. Enter:
C:\> operfcfg -D
Choose Start > Programs > Oracle - HOME_NAME > Configuration and Migration Tools > Administration Assistant for Windows NT. Oracle Administration Assistant for Windows NT starts.
2. 3.
Right-click Performance Monitor. Click Properties. The Performance Monitor Properties dialog box appears.
4. 5.
Modify the text in the Username, Password, or Database text boxes. Click Apply.
9-24
10
Developing Applications for Windows
This chapter points to sources of information on developing applications for Windows and outlines a procedure for building and debugging external procedures. This chapter contains these topics:
s
Finding Information on Application Development for Windows Developing Windows Applications Building External Procedures Debugging External Procedures Accessing Web Data with Intercartridge Exchange
Java Enhancements
Oracle9i includes an integrated Java Virtual Machine and JServer Accelerator. Oracle also provides Oracle Java Database Connectivity (JDBC) Drivers. For more information, see Oracle9i Java Developers Guide.
XML Support
Oracle's XML products include XML Developers Kit (XDK) and Oracle XML SQL Utility. For more information:
s
Oracle9i XML Developers Kits Guide - XDK Oracle9i XML API Reference - XDK and Oracle XML DB
Oracle Portal Installation Guide and Tutorial Oracle Enterprise Manager Configuration Guide
Note: Oracle Portal is available on a separate CD-ROM and included with Oracle9i for Windows.
Application Wizards
Oracle Application Wizards allow developers to create database applications easily and quickly. They improve ease-of-use and reduce development time by generating much of the code for database connectivity. For information and downloads:
s
http://technet.oracle.com/software/
10-2
Oracle COM Automation Feature Developers Guide Oracle Objects for OLE
ORACLEMTSRecoveryService
Oracle9i for Windows permits enhanced deployment of COM/COM+ components in Microsoft Transaction Server, using an Oracle database as the resource manager. For more information:
s
Pro*C/C++ Precompiler Getting Started for Windows Pro*COBOL Precompiler Getting Started for Windows Oracle Call Interface Getting Started for Windows
OLE DB
s
Select Oracle ODBC Drivers from the Select a Utility or Driver list.
Wide variety of data access methods for Windows and internet applications Wizards and assistants to speed application development COM/COM+/DCOM integration through two APIs: Oracle Objects for OLE or Oracle Provider for OLE DB Microsoft Transaction Server integration: ORACLEMTSRecoveryService Platform extensions for internet application development
Developers are able to deploy their database applications more quickly by using the data access method with which they are familiar, rather than having to learn a new one. An Oracle database server can communicate with Windows clients in a variety of methods, as described in Table 101
Table 101
Development Environment
Java COM/COM+
Oracle Objects for OLE (OO4O) Oracle Provider for OLE DB COM/COM+ Automation Feature
By using Oracle data access interfaces, developers can take advantage of specific Oracle9i features. These interfaces also offer flexibility and adherence to open standards.
10-4
OO4O can be used from any programming environment that supports Microsoft COM/COM+ technology, such as Visual Basic, Visual C++, VBA in Excel, Active Server Pages, PowerBuilder, Delphi, Internet Information Server (IIS), and Microsoft Transaction Server. OO4O is developed specifically for use with Oracle database servers. Oracle Provider for OLE DB gives ActiveX Data Objects (ADO) developers high performance and efficient access to Oracle databases. A native OLE DB provider, it offers data access optimizations and access to Oracle-specific database features. COM/COM+ Automation Feature APIs make it easy for PL/SQL developers to incorporate COM/COM+ objects into their routines. A new extension of this feature, Oracle COM/COM+ Integration, enables Java stored procedures and COM/COM+ developers to load COM/COM+ objects through OLE Automation or custom COM/COM+ interfaces from Oracle9i database.
Any browser Windows or Macintosh client FTP client Database client COM/COM+ client E-mail client
Oracle data access interfaces and development tools, along with Microsoft Transaction Server integration, can be used to build internet applications, as illustrated in Figure 101, "Microsoft Transaction Server and Oracle Database Integration".
Application Server Host (Windows NT / 2000) Oracle MTS Recovery Service Database Oracle Net
Microsoft Transaction Server Local Area Network (LAN)-based client connections Database COM Oracle Net
COM Internet browser (through HTTP) connections HTTP Internet Information Server (IIS) Oracle Net
Database
Tier 2 - Business Logic Multiple Windows NT/2000 Machines running MTS and IIS
Tier 3 - Data Elements Computer running Windows NT/2000, Solaris or another operating system with Oracle Server 8.0.6 or higher
10-6
extern.c Code example shown in "Task 2: Writing an External Procedure" make.bat Batch file that builds the dynamic link library extern.sql Automates the instructions described in "Task 4: Registering an External Procedure" and "Task 5: Executing an External Procedure"
Performance, because some tasks are performed more efficiently in a third-generation language than in PL/SQL, which is better suited for SQL transaction processing Code re-usability, because dynamic link libraries (DLLs) can be called directly from PL/SQL programs on the server or in client tools such as Oracle Forms
Solving scientific and engineering problems Analyzing data Controlling real-time devices and processes
To create and use an external procedure, perform the following sequential steps:
s
Task 1: Installing and Configuring Task 2: Writing an External Procedure Task 3: Building a DLL
Attention: You can combine the instructions described in the fourth and fifth tasks into one SQL script that automates the task of registering and executing your external procedure. For an example of a SQL script that combines these steps, see
ORACLE_BASE\ORACLE_HOME\rdbms\extproc\extern.sql
Oracle9i Enterprise Edition, Oracle9i Standard Edition, or Oracle9i Personal Edition. Each type contains PL/SQL, from which external procedures are called, and the PL/SQL external procedure program (EXTPROC), which runs external procedures. Oracle Net Services Oracle Protocol Support
10-8
When an application calls an external procedure, Oracle Net Listener starts an external procedure agent called EXTPROC. Using a network connection established by the listener, the application passes the following information to EXTPROC:
s
EXTPROC then loads the DLL, runs the external procedure, and passes back any values returned by the external procedure. If you overwrite default listener.ora and tnsnames.ora files, then you must manually configure the following files for the external procedure behavior described previously to occur:
s
ORACLE_BASE\ORACLE_HOME\network\admin\listener.ora ORACLE_BASE\ORACLE_HOME\network\admin\tnsnames.ora
Caution: Additional security may be required for the listener in a production environment. See Oracle9i Net Services Administrators Guide for more information.
long y, short y_indicator, short *ret_indicator) { /* It can be tricky to debug DLLs that are being called by a process that is spawned only when needed, as in this case. Therefore try using the DebugBreak(); command. This will start your debugger. Uncomment the line with DebugBreak(); in it and you can step right into your code. */ /* DebugBreak(); */ /* First check to see if you have any nulls. */ /* Just return a null if either x or y is null. */ if ( x_indicator==NullValue || y_indicator==NullValue) { *ret_indicator = NullValue; return(0); } else { *ret_indicator = 0; /* Signify that return value is not null. */ if (x >= y) return x; else return y; } }
Start SQL*Plus:
C:\> sqlplus
2. 3.
Connect to the database with appropriate username and password. Create the PL/SQL library using the CREATE LIBRARY command:
SQL> CREATE LIBRARY externProcedures AS C:\oracle\ora92\rdbms\ extproc\extern.dll;
where externProcedures is an alias library (essentially a schema object in the database), and C:\oracle\ora92\rdbms\extproc\extern.dll is the path to the Windows operating system dllextern.dll. This example uses C:\oracle as your Oracle base and \ora92 as your Oracle home.
Note: The DBA must grant the EXECUTE privilege on the PL/SQL library to users who want to call the librarys external procedure from PL/SQL or SQL.
4.
Create a PL/SQL program unit specification. Do this by writing a PL/SQL subprogram that uses the EXTERNAL clause instead of declarations and a BEGIN...END block. The EXTERNAL clause is the interface between PL/SQL and the external procedure. The EXTERNAL clause identifies the following information about the external procedure:
s
Name DLL alias Programming language in which it was written Calling standard (defaults to C if omitted)
In the following example, externProcedures is a DLL alias. You need the EXECUTE privilege for this library. The external procedure to call is find_max. If enclosed in double quotation marks, it becomes case-sensitive. The LANGUAGE term specifies the language in which the external procedure was written.
CREATE OR REPLACE FUNCTION PLS_MAX( x BINARY_INTEGER, y BINARY_INTEGER) RETURN BINARY_INTEGER AS EXTERNAL LIBRARY externProcedures NAME "find_max" LANGUAGE C PARAMETERS ( x long, -- stores value of x x_INDICATOR short, -- used to determine if x is a NULL value y long, -- stores value of y y_INDICATOR short -- used to determine if y is a NULL value RETURN INDICATOR short ); -- need to pass pointer to return values -- indicator variable to determine if NULL -- This means that my function will be defined as: -- long max(long x, short x_indicator, -- long y, short y_indicator, short * ret_indicator)
Anonymous blocks Standalone and packaged subprograms Methods of an object type Database triggers SQL statements (calls to packaged functions only)
In "Task 4: Registering an External Procedure", PL/SQL function PLS_MAX registered external procedure find_max. Follow these steps to run find_max:
1.
SET SERVER OUTPUT ON CREATE OR REPLACE PROCEDURE UseIt AS a integer; b integer; c integer; BEGIN a := 1; b := 2; c := PLS_MAX(a,b); dbms_output.put_line(The maximum of ||a|| and ||b|| is END; 2.
||c);
From Windows Task Manager, in the Processes dialog, select ExtProc.exe. Right click, and select Debug. Select OK in the message box. If you have built your DLL in a debug fashion with Microsoft Visual C++, then Visual C++ is activated.
4.
In the Visual C++ window, select Edit > Breakpoints. Use the breakpoint identified in dbgextp.sql in the PL/SQL demo directory.
See Also:
s
ORACLE_BASE\ORACLE_HOME\rdbms\extproc\readme.doc (explains how to run the sample and provides debugging advice)
PL/SQL Users Guide and Reference Oracle9i Java Developers Guide "Calling External Procedures" in Oracle9i Application Developers Guide - Fundamentals Oracle9i Data Cartridge Developers Guide
Configuring Intercartridge Exchange Using Intercartridge Exchange UTL_HTTP Exception Conditions Exception Conditions and Error Messages
Add HTTP_PROXY to the registry subkey of the Oracle home directory that you are using. The location of this parameter is determined by how many Oracle home directories are on your computer. If you have only one home directory, add HTTP_PROXY to
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOME0.
where ID is incremented for each additional Oracle home directory on your computer.
3.
Choose Add Value from the Edit menu. The Add Value dialog box appears.
4. 5. 6.
Type HTTP_PROXY in the Value Name text box and REG_SZ in the Data Type text box. Click OK. Type www-proxy.your-site in the String text box,
In this example, the Web site is marketing.com. You will enter the domain name of your actual Web site.
Access data on the Internet Call Oracle Web Application Server cartridges
UTL_HTTP contains two similar entry points, known as packaged functions, that turn PL/SQL and SQL statements into HTTP callouts:
s
UTL_HTTP.REQUEST UTL_HTTP.REQUEST_PIECES
Take a string universal resource locator (URL) of a site Contact that site Return data (typically HTML) obtained from that site
Declarations to use with both packaged functions are described in the following subsections.
which returns:
UTL_HTTP.REQUEST(HTTP://WWW.ORACLE.COM/) -----------------------------------------------------<html> <head><title>Oracle Corporation Home Page</title> <!--changed Jan. 16, 19 1 row selected.
A call to REQUEST_PIECES can look like this example. Note the use of PL/SQL table method COUNT to discover the number of pieces returned; it can be zero or more:
declare pieces utl_http.html_pieces; begin pieces := utl_http.request_pieces(http://www.oracle.com/); for i in 1 .. pieces.count loop .... -- process each piece end loop; end;
The second argument to UTL_HTTP.REQUEST_PIECES (MAX_PIECES) is optional. MAX_PIECES is the maximum number of pieces (each 2000 characters in length, except for the last, which can be shorter) that UTL_HTTP.REQUEST_PIECES returns. If provided, that argument is usually a positive integer. For example, the following block retrieves up to 100 pieces of data (each 2000 bytes, except perhaps the last) from the URL. The block prints the number of pieces retrieved and the total length, in bytes, of the data retrieved.
set serveroutput on declare x utl_http.html_pieces; begin x := utl_http.request_pieces(http://www.oracle.com/, 100); dbms_output.put_line(x.count || pieces were retrieved.); dbms_output.put_line(with total length ); if x.count < 1 then dbms_output.put_line(0); else dbms_output.put_line ((2000 * (x.count - 1)) + length(x(x.count))); end if; end; which displays: Statement processed. 4 pieces were retrieved. with total length 7687
Elements of the PL/SQL table returned by UTL_HTTP.REQUEST_PIECES are successive pieces of data obtained from the HTTP request to that URL.
UTL_HTTP.REQUEST
PRAGMA RESTRICT_REFERENCES enables display of exceptions:
create or replace package utl_http is function request (url in varchar2) return varchar2; pragma restrict_references (request, wnds, rnds, wnps, rnps);
UTL_HTTP.REQUEST_PIECES
PRAGMA RESTRICT_REFERENCES enables display of exceptions:
create or replace package utl_http is type html_pieces is table of varchar2(2000) index by binary_integer; function request_pieces (url in varchar2, max_pieces natural default 32767) return html_pieces; pragma restrict_references (request_pieces, wnds, rnds, wnps, rnps);
If the HTTP call fails due to failure of the HTTP daemon or because the argument to REQUEST or REQUEST_PIECES cannot be interpreted as a URL (because it is NULL or has non-HTTP syntax), then exception UTL_HTTP.REQUEST_FAILED is raised:
request_failed exception;
Unless explicitly caught by an exception handler, these first two exceptions are reported by a generic message that shows them as "user-defined" exceptions, even though they are defined in this system package:
ORA-06510: PL/SQL: unhandled user-defined exception
If any other exception is raised during processing of the HTTP request (for example, an out-of-memory error), then function UTL_HTTP.REQUEST or UTL_ HTTP.REQUEST_PIECES reraises that exception.
If no response is received from a request to the given URL, because the function made no contact with a site corresponding to that URL, then a formatted HTML error message may be returned:
<HTML> <HEAD> <TITLE>Error Message</TITLE> </HEAD> <BODY> <H1>Fatal Error 500</H1> Cant Access Document: http://home.nothing.comm. <P> <B>Reason:</B> Cant locate remote host: home.nothing.comm. <P> <P><HR> <ADDRESS><A HREF="http://www.w3.org"> CERN-HTTPD3.0A</A></ADDRESS> </BODY> </HTML>
If UTL_HTTP.REQUEST or UTL_HTTP.REQUEST_PIECES raises an exception or returns an HTML-formatted error message, yet you believe that the URL argument is correct, try contacting that same URL with a browser to verify network availability from your computer.
A
Error Messages
This appendix lists error messages, causes, and corrective actions that are specific to operation of Oracle9i for Windows. This appendix also includes database connection issues. This appendix contains these topics:
s
Logging Error Messages ORA-09275: CONNECT INTERNAL No Longer Supported OSD-04000 to OSD-04599: Windows NT-Specific Oracle Messages DIM-00000 to DIM-00039: ORADIM Command Syntax Errors Database Connection Issues
Note: The ora.hlp file, which was shipped in previous releases, is no longer available. See this Appendix, Oracle9i Database Error Messages, and Oracle Enterprise Manager Messages Manualfor information on error messages.
With this command line, file1.log receives standard output from Export utility, while file2.err receives standard error messages.
File I/O Errors: OSD-04000 to OSD-04099 Memory Errors: OSD-04100 to OSD-04199 Process Errors: OSD-04200 to OSD-04299 Loader Errors: OSD-04300 to OSD-04399 Semaphore Errors: OSD-04400 to OSD-04499 Miscellaneous Errors: OSD-04500 to OSD-04599
File I/O Errors: 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026
OSD-04000 to OSD-04099 Logical block size mismatch Invalid logical block size Unable to open file Unable to read file header block Invalid file header SetFilePointer() failure, unable to read from file ReadFile() failure, unable to read from file Truncated read WriteFile() failure, unable to write to file Truncated write <create> option specified, file already exists GetFileInformationByHandle() failure, unable to obtain file info File size mismatch Unable to read line from file Unable to close file An asynchronous I/O request returned an error Error queuing an asynchronous I/O request Unable to open the specified RAW device Unable to access the specified directory or device Unable to set file pointer Unable to set eof file marker Unable to read file Unable to write file SleepEx() failure, unable to Sleep Unable to delete file Invalid question asked Invalid parameter passed
Memory Errors: 4100 4101 4102 4103 4104 4105 4106 4107 4108
OSD-04100 to OSD-04199 malloc() failure, unable to allocate memory Invalid SGA: SGA not initialized Unable to open/create file for shared memory object Unable to attach to SGA: SGA does not exist Unable to map shared memory (SGA) into the address space Shared memory (SGA) mapped to wrong address Unable to allocate memory with VirtualAlloc Unable to deallocate memory with VirtualFree Unable to protect memory with VirtualProtect
Process Errors: 4200 4201 4202 4203 4204 4205 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218
OSD-04200 to OSD-04299 Unable to begin another thread No pid structure supplied to spdcr() DosSetPriority() failure, unable to set process priority DosKillProcess() failure, unable to kill process Invalid pid CreateProcess() failure, unable to spawn process Invalid priority specified in CONFIG parameter ORACLE_PRIORITY OpenProcess() failure, unable to open process handle Incorrect or unknown backgound image name given to spdcr() Timeout waiting for thread semaphore Thread information not found Maximum number of ORACLE threads reached ORACLE thread unable to DuplicateHandle() ORACLE thread unable to CreateEvent() Bad function code supplied to ssthreadop Unable to find file handle for that thread Unable to retrieve system username for current user Cannot post thread
OSD-04200 to OSD-04299 Bad thread list semaphore Target thread is currently busy Unable to get the threads context Unable to set the threads context Unable to suspend the target thread Unable to resume the target thread
OSD-04300 to OSD-04399 Unable to read complete record from datafile Record size too large Invalid record type, load options, or both
OSD-04400 to OSD-04499 Unable to acquire internal semaphore for process WaitForSingleObject() failure, unable to obtain semaphore
Miscellaneous Errors: 4500 4501 4502 4503 4505 4506 4510 4511 4512 4513 4514 4515
OSD-04500 to OSD-04599 Illegal option specified Internal buffer overflow Translations nested too deep Text contains no translatable elements stdin not responding Unable to spawn process via system() Operating system roles are not supported Unable to get date and time from the operating system Unable to translate the USERNAME config.ora variable on server remote_os_authent init.ora variable not set to true The Windows Group name is too long for internal buffer This command is not implemented at this time
OSD-04005 SetFilePointer() failure, unable to read from file Cause: There was an unexpected return from Windows NT system service SetFilePointer(). Action: Check operating system error code and consult Windows NT documentation. OSD-04006 ReadFile() failure, unable to read from file Cause: There was an unexpected return from Windows NT system service ReadFile(). Action: Check operating system error code and consult Windows NT documentation. OSD-04007 Truncated read Cause: System encountered an unexpected end-of-file, which is due to damaged media. Action: Verify that file is not damaged. OSD-04008 WriteFile() failure, unable to write to file Cause: There was an unexpected return from Windows NT system service WriteFile(). Action: Check operating system error code and consult Windows NT documentation. OSD-04009 Truncated write Cause: Destination device is full, or media is damaged. Action: Verify that device has free space and that file is not damaged. OSD-04010 <create> option specified, file already exists Cause: File you attempted to create already exists. Action: Delete existing file or use REUSE option in SQL statement.
OSD-04011 GetFileInformationByHandle() failure, unable to obtain file info Cause: There was an unexpected return from Windows NT system service GetFileInformationByHandle(). Action: Check operating system error code and consult Windows NT documentation. OSD-04012 File size mismatch Cause: File to be re-used is either too large or too small. Action: Specify correct file size or delete existing file. OSD-04013 Unable to read line from file Cause: This error is caused by an operating system error or by damaged media. Action: Check operating system error code (if available) and consult Windows NT documentation. If no operating system error code is presented, then verify that media is not damaged. OSD-04014 Unable to close file Cause: Media has been damaged. Action: Recover file, if necessary, and verify that Windows NT is functioning correctly. OSD-04015 Asynchronous I/O request returned an error Cause: There was an unexpected return from Windows NT system service. Action: Check operating system error code and consult Windows NT documentation. OSD-04016 Error queuing an asynchronous I/O request Cause: There was an unexpected return from Windows NT system service. Action: Check operating system error code and consult Windows NT documentation.
OSD-04017 Unable to open the specified RAW device Cause: An invalid path or filename was specified, or device is full. Action: Make sure file exists and device is not full; verify that operating system is functioning correctly. OSD-04018 Unable to access the specified directory or device Cause: An invalid path name was specified. Action: Make sure directory or device exists and is accessible. OSD-04019 Unable to set file pointer Cause: This error is caused by an operating system error or by damaged media. Action: Check operating system error code (if available) and consult Windows NT documentation. If no operating system error code is presented, then verify that media is not damaged. OSD-04020 Unable to set eof file marker Cause: This error is caused by an operating system error or by damaged media. Action: Check operating system error code (if available) and consult Windows NT documentation. If no operating system error code is presented, then verify that media is not damaged. OSD-04021 Unable to read file Cause: This error is caused by an operating system error or by damaged media. Action: Check operating system error code (if available) and consult Windows NT documentation. If no operating system error code is presented, then verify that media is not damaged. OSD-04022 Unable to write file Cause: This error is caused by an operating system error or by damaged media. Action: Check operating system error code (if available) and consult Windows NT documentation. If no operating system error code is presented, then verify that media is not damaged.
OSD-04023 SleepEx() failure, unable to Sleep Cause: There was an unexpected return from Windows NT system service. Action: Check operating system error code and consult Windows NT documentation. OSD-04024 Unable to delete file Cause: This error is caused by an operating system error or by damaged media. Action: Check operating system error code (if available) and consult Windows NT documentation. If no operating system error code is presented, then verify that media is not damaged. OSD-04025 Invalid question asked Cause: This is an internal error, not normally expected to occur. Action: Contact Oracle Support Services. OSD-04026 Invalid parameter passed Cause: This is an internal error, not normally expected to occur. Action: Contact Oracle Support Services.
A-10
OSD-04102 Unable to open/create file for shared memory object Cause: There was an unexpected return from Windows NT system service CreateFile(). Action: Check operating system error code and consult Windows NT documentation. OSD-04103 Unable to attach to SGA: SGA does not exist Cause: SGA does not exist. Action: Start up an Oracle instance. OSD-04104 Unable to map shared memory (SGA) into the address space Cause: There was an unexpected return from Windows NT system service MapViewOfFileEx(). Action: Check operating system error code and consult Windows NT documentation. OSD-04105 Shared memory (SGA) mapped to wrong address Cause: There was an unexpected return from Windows NT system service MapViewOfFileEx(). Action: Check operating system error code and consult Windows NT documentation. OSD-04106 Unable to allocate memory with VirtualAlloc Cause: Program is out of memory. Action: Shut down all unnecessary processes or install more memory in the computer. OSD-04107 Unable to deallocate memory with VirtualFree Cause: There was an unexpected return from Windows NT system service VirtualFree(). Action: Check operating system error code and consult Windows NT documentation.
Error Messages
A-11
OSD-04108 Unable to protect memory with VirtualProtect Cause: There was an unexpected return from Windows NT system service VirtualProtect(). Action: Check operating system error code and consult Windows NT documentation.
A-12
OSD-04205 CreateProcess() failure, unable to spawn process Cause: There was an unexpected return from Windows NT system service CreateProcess(). Action: Check operating system error code and consult Windows NT documentation. OSD-04207 Invalid priority specified in CONFIG parameter ORACLE_PRIORITY Cause: Priority specified is invalid or out of range. Action: Specify a valid setting for ORACLE_PRIORITY. OSD-04208 OpenProcess() failure, unable to open process handle Cause: There was an unexpected return from Windows NT system service OpenProcess(). Action: Check operating system error code and consult Windows NT documentation. OSD-04209 Incorrect or unknown background image name given to spdcr() Cause: There was an unexpected background name given to spdcr(). Action: Contact Oracle Support Services. OSD-04210 Timeout waiting for thread semaphore Cause: An Oracle database thread died holding the semaphore. Action: Restart Oracle database instance. OSD-04211 Thread information not found Cause: An Oracle database thread died without deleting its information. Action: Restart Oracle database instance.
Error Messages
A-13
OSD-04212 Maximum number of Oracle threads reached Cause: Maximum number of Oracle database threads for the instance is reached. Action: Wait until some connections exit before trying again. OSD-04213 Oracle thread unable to DuplicateHandle() Cause: This is an internal error, not normally expected to occur. Action: Contact Oracle Support Services. OSD-04214 Oracle thread unable to CreateEvent() Cause: This is an internal error, not normally expected to occur. Action: Contact Oracle Support Services. OSD-04215 Bad function code supplied to ssthreadop Cause: This is an internal error, not normally expected to occur. Action: Contact Oracle Support Services. OSD-04216 Unable to find file handle for that thread Cause: This is an internal error, not normally expected to occur. Action: Contact Oracle Support Services. OSD-04217 Unable to retrieve system username for current user Cause: This is an internal error, not normally expected to occur. Action: Contact Oracle Support Services. OSD-04218 Cannot post thread Cause: This is an internal error, not normally expected to occur. Action: Contact Oracle Support Services.
A-14
OSD-04219 Bad thread list semaphore Cause: This is an internal error, not normally expected to occur. Action: Contact Oracle Support Services. OSD-04221 Target thread is currently busy Cause: Target thread is processing an oradebug command. Action: Wait and resend command. OSD-04222 Unable to get the threads context Cause: Check operating system error code. Action: Remedy operating system error. OSD-04223 Unable to set the threads context Cause: Check operating system error code. Action: Remedy operating system error. OSD-04224 Unable to suspend the target thread Cause: Check operating system error code. Action: Remedy operating system error. OSD-04225 Unable to resume the target thread Cause: Check operating system error code. Action: Remedy operating system error.
Error Messages
A-15
A-16
Error Messages
A-17
OSD-04510 Operating system roles are not supported Cause: An attempt was made to use an operating system role. Action: Only use roles that were created IDENTIFIED BY PASSWORD as opposed to IDENTIFIED EXTERNALLY. OSD-04511 Unable to get date and time from the operating system Cause: There was an unexpected return from GetLocalTime() call. Action: Verify that system time is correct on the computer. OSD-04512 Unable to translate the USERNAME config.ora variable on server Cause: USERNAME configuration parameter variable on host is not properly set. Action: Verify USERNAME variable is set. OSD-04513 remote_os_authent init.ora variable not set to TRUE Cause: For remote operating system logon to function, REMOTE_OS_AUTHENT parameter must be set to TRUE. Action: Shut down and start up instance with REMOTE_OS_AUTHENT = TRUE in initialization parameter file. OSD-04514 The Windows NT Group name is too long for internal buffer Cause: Windows NT Group name is too long. Action: Use a shorter Windows NT group name.
A-18
Oradim Errors 00000 00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023
DIM-0000 to DIM-0039 ORADIM completed with no errors ORADIM: <command> [options]. Please refer to the manual. Valid commands are: -DELETE, -EDIT, -NEW, -STARTUP, and -SHUTDOWN An argument is missing for the parameter Either a SID or service name is mandatory. Please enter a valid SID or service name You have entered a SID with more than 64 characters You have entered an empty SID Missing or invalid -STARTMODE parameter. Valid -STARTMODE parameter is AUTO or MANUAL A valid service name is OracleService appended with a SID SID name is mandatory. Please enter a valid SID name SYSTEM\CurrentControlSet\Services\OracleService key does not exist The service does not exist You did not enter a pfile for autostart capability The service start mode could not be set in the registry Cannot open the Windows NT Service Control Manager Cannot start already-running ORACLE - shut it down first Missing or invalid -SHUTTYPE parameter. A valid -SHUTTYPE parameter is SRVC or INST Instance shutdown mode must be one of the following: a for abort, i for immediate or n for normal Failed to stop Oracle Service Create Service Error A service for this SID is already created. Please enter a different SID name. No action has been taken RegOpenkeyEx failed Please enter one of the following commands Create an instance by specifying the following parameters:
Error Messages
A-19
Oradim Errors 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039
DIM-0000 to DIM-0039 -NEW -SID sid | -SRVC service [-INTPWD password] [-MAXUSERS number] [-STARTMODE a|m] [-PFILE file] [-TIMEOUT secs] Edit an instance by specifying the following parameters: -EDIT -SID sid [-NEWSID sid] [-INTPWD passwd] [-STARTMODE a|m] [-PFILE file] [-SHUTMODE a|i|n] [-SHUTTYPE srvc|inst] Delete instances by specifying the following: -DELETE -SID sid | -SRVC service name Startup services and instance by specifying the following parameters: -STARTUP -SID sid [-USRPWD password] [-STARTTYPE srvc|inst|srvc,inst] [-PFILE filename] Shutdown services and instance by specifying the following parameters: -SHUTDOWN -SID sid [-USRPWD password] [-SHUTTYPE srvc|inst|srvc,inst] [-SHUTMODE a | i | n] Query for help by specifying the following parameters: -? | -h | -help You have entered an invalid option for the -NEW command You have entered an invalid option for the -EDIT command You have entered an invalid option for the -DELETE command You have entered an invalid option for the -STARTUP command You have entered an invalid option for the -SHUTDOWN command Internal logic error in ORADIM
DIM-00000 ORADIM completed with no errors Cause: ORADIM has completed without any errors. Action: None. DIM-00001 ORADIM: <command> [options]. Please refer to the manual. Cause: Command-line arguments could not be recognized. Action: Usage: ORADIM <command> [options]
A-20
To edit an instance:
-EDIT -SID sid [-NEWSID sid][-INTPWD password][-STARTMODE auto [-PFILE filename]| manual]
To delete an instance:
-DELETE -SID sid | -SRVC service name
DIM-00002 Valid commands are: -DELETE, -EDIT, -NEW, -STARTUP, and -SHUTDOWN Cause: You have not entered one of the referenced commands. Action: Use valid commands. DIM-00003 An argument is missing for the parameter Cause: You have entered an invalid argument. Action: Use a valid argument and start program again. DIM-00004 Either a SID or service name is mandatory. Please enter a valid SID or service name Cause: You have not entered the SID following -SID. Action: Enter a valid SID of 64 characters and try again.
Error Messages
A-21
DIM-00005 You have entered SID with more than 64 characters Cause: You have entered a SID with more than 64 characters. Action: Change it to 64 or fewer characters and make sure that there is no other service with this name. DIM-00006 You have entered an empty SID Cause: Enter a SID with 64 characters and make sure that there is no service with this SID on your system. Action: Fill in the SID and rerun program. DIM-00007 Missing or invalid -STARTMODE parameter. Valid -STARTMODE parameter is AUTO or MANUAL Cause: You have not entered valid start mode (AUTO or MANUAL). Action: Enter valid start mode and try again. DIM-00008 A valid service name is OracleService appended with a SID Cause: You have entered a service name other than OracleService(SID). Action: Correct name of service and try again. DIM-00009 SID name is mandatory. Please enter a valid SID name Cause: You did not enter a SID. Action: Enter the SID and try again. DIM-00010 SYSTEM\CurrentControlSet\Services\OracleService key does not exist Cause: Referenced key is not in the registry. Action: Try reinstalling. If problem persists, then contact Oracle Support Services.
A-22
DIM-00011 The service does not exist Cause: You have tried to edit a service which does not exist, or there is an error trying to access the registry. Action: Verify service/SID name used and try again. Restart if necessary or contact Oracle Support Services. DIM-00012 You did not enter a pfile for autostart capability Cause: You did not provide the parameter file for starting the database. Action: Enter the parameter file used to start the database and retry. DIM-00013 The service start mode could not be set in the registry Cause: Start mode entry in the registry for the service could not be set. Action: Try again later, restart, or call Oracle Support Services. DIM-00014 Cannot open the Windows NT Service Control Manager Cause: Service Control Manager could not be opened. Action: Restart or call Oracle Support Services. DIM-00015 Cannot start already-running ORACLE - shut it down first Cause: Instance is already started; shut it down first. Action: Stop database before restarting. DIM-00016 Missing or invalid -SHUTTYPE parameter. A valid -SHUTTYPE parameter is SRVC or INST Cause: You did not enter a valid shuttype parameter (Service or Instance). Action: Enter parameter to shut down instance or service and try again.
Error Messages
A-23
DIM-00017 Instance shutdown mode must be one of the following: a for abort, i for immediate or n for normal Cause: You did not enter the correct mode for shutting down the database. Action: Enter correct mode and try again. DIM-00018 Failed to stop Oracle Service Cause: Failed to stop Oracle Service. Action: Retry. If error persists, then look at system error or call Oracle Support Services. DIM-00019 Create Service Error Cause: Service could not be created. Action: Look at detail error. DIM-00020 A service for this SID is already created. Please enter a different SID name. No action has been taken Cause: Service with this name already exists. Action: Retry with a different SID. DIM-00021 RegOpenkeyEx failed Cause: This is a system error due to service not existing or Windows error. Action: Retry, restart, or call Oracle Support Services. DIM-00022 Please enter one of the following commands: DIM-00023 Create an instance by specifying the following parameters: DIM-00024 -NEW -SID sid | -SRVC service [-INTPWD password] [-MAXUSERS number] [-STARTMODE a|m] [-PFILE file] [-TIMEOUT secs] DIM-00025 Edit an instance by specifying the following parameters:
A-24
DIM-00026 -EDIT -SID sid [-NEWSID sid] [-INTPWD passwd] [-STARTMODE a|m] [-PFILE file] [-SHUTMODE a|i|n] [-SHUTTYPE srvc|inst] DIM00027 Delete instances by specifying the following: DIM-00028 -DELETE -SID sid | -SRVC service name DIM-00029 Startup services and instance by specifying the following parameters: DIM-00030 -STARTUP -SID sid [-USRPWD password] [-STARTTYPE srvc|inst|srvc,inst] [-PFILE filename] DIM-00031 Shutdown services and instance by specifying the following parameters: DIM-00032 -SHUTDOWN -SID sid [-USRPWD password] [-SHUTTYPE srvc|inst|srvc,inst] [-SHUTMODE a | i | n] DIM-00033 Query for help by specifying the following parameters: -? | -h |-help DIM-00034 You have entered an invalid option for the -NEW command DIM-00035 You have entered an invalid option for the -EDIT command DIM-00036 You have entered an invalid option for the -DELETE command DIM-00037 You have entered an invalid option for the -STARTUP command DIM-00038 You have entered an invalid option for the -SHUTDOWN command DIM-00039 Internal logic error in ORADIM
Error Messages
A-25
A-26
ORA-06512 at "APPLICATIONS.TEST", line 4 Cause: tnsnames.ora and listener.ora files have not been correctly configured to use external procedures. Action: Reconfigure services. ORA-06512 at line 2 Cause: tnsnames.ora and listener.ora files have not been correctly configured to use external procedures. Action: Reconfigure services. ORA-01031 and LCC-00161 Both codes appear at startup Cause: Parameter file (init.ora) or Windows services are damaged. These errors usually appear when the parameter file cannot be read by Oracle at database startup. Action: Delete and re-create the SID and services. Make sure you are logged on as the user Administrator, or a user within the Windows Administrators Group with full administrative rights. At the command prompt, enter: oradim -delete -sid sid where: sid is the name of your database (for example, orcl). Re-create the sid and services by entering: oradim -new -sid sid -intpwd password -startmode auto -pfile full path to init.ora
See Also: Oracle9i Net Services Administrators Guide
Error Messages
A-27
A-28
B
Getting Started with Your Documentation
Your Oracle documentation set is provided in both HTML and PDF formats on two CDs, both included in your CD Pack and labeled as follows:
s
Oracle9i Online Documentation Library CD-ROM for Windows Oracle9i Online Documentation Library CD-ROM for Windows Installation CD
Use the first CD-ROM to browse the library from the CD or copy files directly to a local system. Use the second CD-ROM to install the documentation library with Oracle Universal Installer. The contents of the library are the same on both discs. The library includes a Web-based search tool that enables you to search for information about a particular product, parameter, file name, procedure, error message, or other area of interest. The search tool also makes it possible to construct a "virtual book" drawn from the complete documentation library, but consisting only of topics and procedures relevant to your needs. The library also includes a comprehensive Master Index, as well as lists of SQL and PL/SQL keywords, initialization parameters, catalog views, and data dictionary views. Instructions for installing the library and viewing its contents are in three README files at the root level of the documentation CD-ROMs:
s
The contents of the three files are identical; only the format differs.
The following guides are not included on Oracle9i Online Documentation Library CD-ROM for Windows:
s
Oracle9i Database Installation Guide for Windows and Oracle9i Database Release Notes for Windows To access these documents before installation, open start_here.htm in the \doc directory on the component CD-ROM. To access these documents after installation, choose Start > Programs > Oracle - HOME_NAME > Release Documentation or open start_here.htm in the ORACLE_BASE\ORACLE_ HOME\doc directory on your hard drive.
Oracle Migration Workbench documentation The latest version can be viewed at: http://otn.oracle.com/.
Oracle Fail Safe and Oracle Real Application Clusters Guard documentation These documents are on the Oracle Fail Safe and Oracle Real Application Clusters Guard product CD-ROM.
Note: Oracle Fail Safe and Oracle Real Application Clusters Guard are not supported on Windows XP.
Glossary
Active Directory Oracle security and administration are integrated with Windows 2000 through Active Directory, Microsofts directory service. Oracle uses Active Directory for enterprise-level security and schema management. authenticate To verify the identity of a user, device, or other entity in a computer system, often as a prerequisite for allowing access to resources in a system. authorization Permission given to a user, application, or process to access an Oracle database or operating system. backup A representative copy of data. This copy includes important parts of your database such as control files, redo log files, and datafiles. A backup is a safeguard against unexpected data loss; if you lose your original data, then you can use the backup to make the data available again. A backup is also a safeguard against an application error; if an application makes incorrect changes, then you can restore the backup. COM/COM+ Microsofts Component Object Model is an object-oriented programming architecture and a set of operating system services. These services notify running application components of significant events and ensure that they are authorized to run. COM/COM+ is intended to make it relatively easy to create business
Glossary-1
applications that work well with Microsoft Transaction Server in Windows NT and Windows 2000. connect string See net service name. control files Files that record the physical structure of a database and contain the database name, the names and locations of associated databases and online redo log files, the time stamp of the database creation, the current log sequence number, and checkpoint information. data dictionary A set of read-only tables that provide information about a database. DLL See dynamic link library. downgrade To convert the data in an Oracle database into an earlier release. See upgrade and migrate. dynamic link library An executable file that a Windows application can load when needed. external procedures Functions written in a third-generation language (C, for example) and callable from within PL/SQL or SQL as if they were PL/SQL functions or procedures. external user The Windows operating system can authenticate a user, who can then access the Oracle database without being prompted for a password. External users are typically regular database users (non-database administrators) to whom you assign standard database roles (such as CONNECT and RESOURCE), but do not want to assign the SYSDBA (database administrator) or SYSOPER (database operator) privilege.
Glossary-2
Globalization Support The Oracle architecture that ensures that database utilities, error messages, sort order, date, time, monetary, numeric, and calendar conventions automatically adapt to the native language and locale. HOMEID Represents a unique registry subkey for each Oracle home directory in which you install products. A new HOMEID is created and the ID counter incremented each time you install products to a different Oracle home directory on one computer. Each HOMEID contains its own configuration parameter settings for installed Oracle products.
HOME_NAME
Represents the name of an Oracle home. In Oracle9i release 2 (9.2), all Oracle homes have a unique HOME_NAME. initialization parameter file (init.ora) An ASCII text file that contains information needed to initialize a database and instance. instance Every running Oracle database is associated with an Oracle instance. When a database is started on a database server (regardless of the type of computer), Oracle allocates a memory area called the System Global Area and starts one or more Oracle processes. This combination of the System Global Area and Oracle processes is called an instance. The memory and processes of an instance manage the associated databases data efficiently and serve the users of the database. latch A simple, low-level serialization mechanism to protect shared data structures in the System Global Area. listener The Oracle server process that listens for and accepts incoming connection requests from client applications. The listener process starts up Oracle database processes to handle subsequent communications with the client; then it goes back to listening for new connection requests.
Glossary-3
listener.ora A configuration file that describes one or more Transparent Network Substrate (TNS) listeners on a server. Microsoft Management Console An application that serves as a host for administrative tools called snap-ins. By itself, Microsoft Management Console does not provide any functionality. Microsoft Transaction Server A transaction processing system based on COM/COM+ that runs on an Internet or network server. migrate To upgrade or downgrade an Oracle database or convert the data in a non-Oracle database into an Oracle database. mount To associate a database with an instance that has been started. MTS See Microsoft Transaction Server multiple Oracle homes The capability of having more than one Oracle home on a computer. net service name The name used by clients to identify an Oracle Net server and the specific system identifier or database for the Oracle Net connection. A net service name is mapped to a port number and protocol. Also known as a connect string, database alias, host string, or service name. This also identifies the specific SID or database to which the connection is attaching, not just the Oracle Net server. network listener A listener on a server that listens for connection requests for one or more databases on one or more protocols. See listener.
Glossary-4
network service In an Oracle application network, a service performs tasks for its service consumers. For example, a Names Server provides name resolution services for clients. obfuscated Protected by a process often used by companies for intellectual property written in the form of Java programs. The obfuscation process mixes up Java symbols found in the code. It leaves the original program structure intact, allowing the program to run correctly, while changing the names of the classes, methods, and variables in order to hide the intended behavior. Although it is possible to decompile and read non-obfuscated Java code, obfuscated Java code is sufficiently difficult to decompile to satisfy U.S. government export controls. OCI See Oracle Call Interface. OFA See Optimal Flexible Architecture. OID See Oracle Internet Directory. Optimal Flexible Architecture A set of file naming and placement guidelines for Oracle software and databases. Oracle Call Interface An application programming interface that enables you to manipulate data and schemas in an Oracle database. You compile and link an Oracle Call Interface application in the same way that you compile and link a non-database application. There is no need for a separate preprocessing or precompilation step. Oracle Internet Directory An Oracle database-based LDAP V3 directory server, used for centralizing database user, Oracle Net network connector, and database listener parameters. Oracle Net The Oracle network interface that enables Oracle tools running on network workstations and servers to access, modify, share, and store data on other servers.
Glossary-5
Oracle Net Naming Oracle Net Naming with Active Directory stores and resolves names through Active Directory. Oracle PKI Oracle Advanced Security includes Oracle PKI (public key infrastructure) integration for authentication and single sign-on. Oracle-based applications are integrated with the PKI authentication and encryption framework, using Oracle Wallet Manager and Oracle Enterprise Login Assistant. Oracle Protocol Support A product that maps the functions of a given network protocol into Oracle Transparent Network Substrate (TNS) architecture. This process translates TNS function calls into requests to the underlying network protocol. This allows TNS to act as an interface among all protocols. Oracle Net requires Oracle Protocol Support. Oracle services Windows services that are associated with particular Oracle components.
ORACLE_BASE
ORACLE_BASE is the root of the Oracle directory tree. If you install an OFA-compliant database using Oracle Universal Installer defaults, then ORACLE_ BASE is X:\oracle where X is any hard drive (for example, C:\oracle).
ORACLE_HOME
Corresponds to the environment in which Oracle products run. This environment includes the location of installed product files, the PATH variable pointing to the binary files of installed products, registry entries, net service names, and program groups. If you install an OFA-compliant database, using Oracle Universal Installer defaults, then Oracle home (known as \ORACLE_HOME in this guide) is located beneath X:\ORACLE_BASE. It contains subdirectories for Oracle software executables and network files. PL/SQL Oracle Corporations procedural language extension to SQL. PL/SQL enables you to mix SQL statements with procedural constructs. You can define and run PL/SQL program units such as procedures, functions, and packages.
Glossary-6
precompiler A programming tool that enables you to embed SQL statements in a high-level source program. privilege A right to run a particular type of SQL statement or to access another users object. process A mechanism in an operating system that can run an executable. (Some operating systems use the terms job or task.) A process normally has its own private memory area in which it runs. On Windows a process is created when an application runs (such as Oracle or Microsoft Word). In addition to an executable program, all processes consist of at least one thread. The Oracle master process contains hundreds of threads. raw partitions Portions of a physical disk that are accessed at the lowest possible disk (block) level. recovery To restore a physical backup is to reconstruct it and make it available to the Oracle server. To recover a restored backup is to update it using redo records (that is, records of changes made to the database after the backup was taken). Recovering a backup involves two distinct operations: rolling back all changes made in uncommitted transactions to their original state, and rolling forward to a more current time by applying redo data. redo log buffer A circular buffer in the System Global Area that contains information about changes made to the database. redo log files Files that contain a record of all changes made to data in the database buffer cache. If an instance failure occurs, then the redo log files are used to recover the modified data that was in memory. registry A Windows repository that stores configuration information for a computer. remote database A database on a computer other than the local database.
Glossary-7
replication The process of copying and maintaining database objects in multiple databases that make up a distributed database system. roles Named groups of related privileges. You can grant roles to users or other roles. schemas Named collections of objects, such as tables, views, clusters, procedures, and packages, associated with particular users. services Executable processes installed in the Windows registry and administered by Windows. Once services are created and started, they can run even when no user is logged on to the computer. service name See net service name. SGA See System Global Area. Shared Server Process A server configuration which allows many user processes to share very few server processes. The user processes connect to a dispatcher background process, which routes client requests to the next available shared server process. SID See system identifier. snap-ins Administrative tools that run within Microsoft Management Console. snapshot (1) Information stored in rollback segments to provide transaction recovery and read consistency. Rollback segment information can be used to re-create a snapshot of a row before an update. (2) A point-in-time copy of a master table located on a remote site. Read-only snapshots can be queried, but not updated. Updateable snapshots can be queried
Glossary-8
and updated. They are periodically refreshed to reflect changes made to the master table, and at the snapshot site. starter database A preconfigured, ready-to-use database that requires minimal user input to create. SYSDBA A special database administration role that contains all system privileges with the ADMIN OPTION, and the SYSOPER system privilege. SYSDBA also permits CREATE DATABASE actions and time-based recovery. SYSOPER A special database administration role that permits a database administrator to perform STARTUP, SHUTDOWN, ALTER DATABASE OPEN/MOUNT, ALTER DATABASE BACKUP, ARCHIVE LOG, and RECOVER, and includes the RESTRICTED SESSION privilege. System Global Area A group of shared memory structures that contain data and control information for an Oracle instance. system identifier A unique name for an Oracle instance. To switch between Oracle databases, users must specify the desired system identifier. The system identifier is included in the CONNECT DATA parts of the connect descriptors in a tnsnames.ora file, and in the definition of the network listener in a tnsnames.ora file. SYSTEM One of two standard database administrator usernames automatically created with each database. (The other username is SYS.). The SYSTEM username is the preferred username for database administrators to use for database maintenance. tablespace A database is divided into one or more logical storage units called tablespaces. Tablespaces are divided into logical units of storage called segments, which are further divided into extents. thread An individual path of execution within a process. Threads are objects within a process that run program instructions. Threads allow concurrent operations within
Glossary-9
a process so that a process can run different parts of its program simultaneously on different processors. A thread is the most fundamental component that can be scheduled on Windows. tnsnames.ora A file that contains connect descriptors mapped to net service names. The file can be maintained centrally or locally, for use by all or individual clients. trace file Each server and background process can write to an associated trace file. When a process detects an internal error, it dumps information about the error to its trace file. Some of the information written to a trace file is intended for the database administrator, while other information is intended for Oracle Support Services. Trace file information is also used to tune applications and instances. upgrade To convert the data in an Oracle database into a later release. See downgrade and migrate. username A name that can connect to and access objects in a database. view A selective presentation of the structure and data of one or more tables. Views can also be based on other views.
Glossary-10
Index
A
admin directory, explained, 6-17 application development and data access, 10-4 database tools, 5-2 finding information, 10-2 architecture thread-based, 4-2 audit trail operating system, 5-20
D
Database Configuration Assistant operating system compatibility, 5-3 preferred tools, 5-5 starting, 5-8 database connection error messages, A-26 database roles granting limited SYS privileges, 8-4 of default accounts, 8-5 database tools administration, 5-3 operating system compatibility, 5-2 starting from the command line, 5-10 starting from the Start Menu, 5-7 starting in multiple Oracle Homes, 5-7 DB_NAME directory, explained, 6-18 multiple Oracle homes, 6-6 DBVERIFY operating system compatibility, 5-3 starting, 5-10 debugging external procedures, 10-13 developing applications for Windows, 10-2 diagnostic and tuning utilities for Windows, 5-24 disk striping, 6-23 DLLs compared to UNIX shared libraries, 2-3 displaying with Task List, 5-24 external procedures, 10-10 Oracle Performance Monitor, 9-11
B
background processes querying, 4-3 backup control files, 9-8 tools, 5-5 Backup Wizard preferred tools, 5-5
C
configuration parameters defined, 9-2 registry, defined, 9-2 CONNECT INTERNAL replacement, 5-2 CREATE LIBRARY command, 10-11
Index-1
E
environment variables ORACLE_HOME, 6-10 TNS_ADMIN, 6-12 error messages DIM-00000 to DIM-00039, A-19 Intercartridge Exchange, 10-19 logging, A-2 ORA-12547 TNS, 7-4 ORA-12560, A-26 OSD-04000 to OSD-04099, A-6 OSD-04100 to OSD-04199, A-10 OSD-04200 to OSD-04299, A-12 OSD-04300 to OSD-04399, A-16 OSD-04400 to OSD-04499, A-16 OSD-04500 to OSD-04599, A-17 OSD-09275, A-2 Event Viewer defined, 5-20 integration with Oracle9i database, 5-20 logging operating system audit trail, 5-20 operating system compatibility, 5-4 exception conditions, Intercartridge Exchange, 10-18 executable images modifying, 4-5 EXECUTE privileges, on a PL/SQL library, 10-11 Export Utility operating system compatibility, 5-3 preferred tools, 5-5 redirecting output, A-2 starting, 5-10 Export Wizard preferred tools, 5-5 EXTERNAL clause, 10-11 external procedures building a DLL, 10-10 creating a PL/SQL library, 10-11 debugging, 10-13 EXTERNAL clause, 10-11 granting EXECUTE privileges, 10-11 registering with Oracle database, 10-11
using EXTPROC, 10-9 writing, 10-9 EXTPROC example, 10-9 explained, 10-8 responsibilities, 10-9
F
features 4GT tuning, 4-8 large user populations, 4-9 Oracle PKI, 4-10 file I/O enhancements, 4-5 files oracle.key, 6-10 size limitations, 4-5
I
ICX. See Intercartridge Exchange Import Utility operating system compatibility, preferred tools, 5-5 Import Wizard preferred tools, 5-5 initialization parameters path in registry, 9-5 instance Oracle, 4-2 integration with Windows 4GT tuning, 4-8 Active Directory, 4-10 Oracle Fail Safe, 4-12 Oracle Net Naming, 4-11 Oracle PKI, 4-10 Oracle Services for MTS, 4-11 Intercartridge Exchange accessing Web data, 10-14 configuring, 10-15 error messages, 10-19 exception conditions, 10-18 packaged functions, 10-16 stored packages, 10-16 using, 10-16 5-3
Index-2
internet applications developing, 10-5 IPC DeviceNic registry value, 9-13 InstanceID registry value, 9-13
O
Object Type Translator operating system compatibility, 5-2 OCOPY and raw files, 4-5 operating system compatibility, 5-3 preferred tools, 5-5 starting, 5-10 operating systems audit trail, 5-20 OPERFCFG operating system compatibility, 5-3 starting, 5-10 syntax examples, 9-23 Optimal Flexible Architecture benefits, 6-13 characteristics of a database, 6-14 default OFA database, 6-19 differences since previous releases, 6-15 introduction, 6-2 nondefault OFA database 1, 6-20 nondefault OFA database 2, 6-21 overview, 6-12 Windows and UNIX differences, 6-24 ORA-12560 TNS, 7-5 Oracle Administration Assistant for Windows NT operating system compatibility, 5-3 starting, 5-8 using, 9-17, 9-24 using the Oracle Home Configuration snap-in, 9-17 using the Performance Monitoring snap-in, 9-24 Oracle Advanced Security operating system compatibility, 5-3 Oracle Data Upgrade Assistant operating system compatibility, 5-3 preferred tools, 5-5 starting, 5-8 Oracle Directory Manager starting, 5-9 Oracle Enterprise Login Assistant preferred tools, 5-5 security, 4-10 starting, 5-8
K
keys defined, 9-2
L
Load Wizard preferred tools, 5-5 logging error messages, A-2
M
Microsoft Management Console defined, 5-21 integration with Oracle9i database, 5-21 starting, 5-16 Microsoft ODBC Administration starting, 5-8 Migration Utility operating system compatibility, 5-3 preferred tools, 5-5 starting, 5-10 MMC. See Microsoft Management Console monitoring Oracle events, 5-21 multiple Oracle homes ALL_HOMES registry subkey, 9-9 benefits, 6-3 environment, 6-5 functionality in different releases, 6-3 introduction, 6-2 overview, 6-2 program groups, 6-6 registry entries, 6-6 service names, 6-6 system identifier, 6-6 use of one listener for spawning, 6-5
Index-3
Oracle Enterprise Manager Configuration Assistant starting, 5-8 Oracle Enterprise Manager Console operating system compatibility, 5-3 preferred tools, 5-5 starting, 5-8 starting from a Web browser, 5-13 starting tools, 5-12 Oracle home new-style, defined, 6-12 Oracle Home Configuration snap-in using, 9-17 Oracle Home Selector changing PATH value, 6-8 Oracle INTYPE File Assistant starting, 5-8 Oracle Locale Builder starting, 5-8 Oracle Migration Workbench operating system compatibility, 5-3 starting, 5-8 Oracle Net configuring for external procedures, 10-8 Oracle Net Configuration Assistant operating system compatibility, 5-3 starting, 5-8 Oracle Net Manager operating system compatibility, 5-3 starting, 5-9 Oracle Net Naming with Active Directory, 4-11 Oracle Performance Monitor defined, 5-21 integration with Oracle9i database, 5-21 integration with Windows, 2-3 monitoring specific Oracle events, 5-21 operating system compatibility, 5-3 parameters, 9-10 starting, 3-3, 5-9, 5-16 using, 9-24 Oracle Portal operating system compatibility, 5-2 Oracle Real Application Clusters registry values, 9-12 Oracle Wallet Manager, 4-10
preferred tools, 5-5 starting, 5-9 ORACLE_BASE explained, 6-16 ORACLE_HOME directory structure, 6-17 environment variable, 6-10, 6-11 specifying, 6-19 oracle.key file, 6-10, 6-11 ORACLEMTSrecoveryservice operating system compatibility, 5-2 ORADATA directory, explained, 6-18 ORADIM command syntax errors, A-19 operating system compatibility, 5-3 preferred tools, 5-5 starting, 5-10 ORAPWD operating system compatibility, 5-3 preferred tools, 5-5 starting, 5-11
P
packaged functions Intercartridge Exchange, 10-16 UTL_HTTP.REQUEST, 10-17 UTL_HTTP.REQUEST_PIECES, 10-17 parameters DEFAULT_HOME, 9-9 DisplayName, 9-11 HOME_COUNTER, 9-9 Hostname, 9-10 ImagePath, 9-12 INST_LOC, 9-8 LAST_HOME, 9-9 LOGFILE, 9-11 MSHELP_TOOLS, 9-4 NAME, 9-9 NLS_LANG, 9-4 ObjectName, 9-12 OO4O, 9-8 ORA_AFFINITY, 9-6 ORA_CWD, 9-4 ORA_SID_AUTOSTART, 9-4
Index-4
ORA_SID_PFILE, 9-5 ORA_SID_SHUTDOWN, 9-5 ORA_SID_SHUTDOWN_TIMEOUT, 9-5 ORA_SID_SHUTDOWNTYPE, 9-5 Oracle Performance Monitor, 9-22 ORACLE_BASE, 9-6 ORACLE_GROUP_NAME, 9-6 ORACLE_HOME, 9-6 ORACLE_HOME_KEY, 9-7 ORACLE_HOME_NAME, 9-7 ORACLE_PRIORITY, 9-7 ORACLE_SID, 9-7 OSAUTH_PREFIX_DOMAIN, 9-8 OSAUTH_X509_NAME, 9-8 PATH, 9-9 PERF_FILE_NAME, 9-11 RDBMS_ARCHIVE, 9-7 RDBMS_CONTROL, 9-8 SQLPATH, 9-8 TNS_ADMIN, 6-12 Username, 9-11 PARFILE, using, A-2 partition raw, 6-24 Password parameter, 9-11 Password Utility operating system compatibility, 5-3 passwords changing, 8-2, 8-3 for default accounts, 8-5 PATH, changing the value of, 6-7 PERFORMANCE key, 9-10 performance, increasing, 6-23 PL/SQL Embedded Gateway, 10-2 PRAGMA RESTRICT_REFERENCES, with Intercartridge Exchange, 10-18 Pro C-C++ starting, 5-9 Pro*C/C++ operating system compatibility, 5-2 Pro*COBOL operating system compatibility, 5-2 Process Explode, 5-24 Process Viewer, 5-24 program groups
6-6
Q
QuickSlice, 5-24
R
RAID. See Redundant Array of Independent Disks raw files using, 4-5 raw partitions defined, 6-24 Recovery Manager operating system compatibility, 5-3 preferred tools, 5-5 Recovery Wizard preferred tools, 5-5 Redundant Array of Independent Disks, 6-23 registering an external procedure, 10-11 registry adding parameters, 9-16 ALL_HOMES subkey, 9-9 and multiple Oracle homes, 6-6 and Oracle Real Application Clusters, 9-12 Cluster Manager, 9-12 ClusterID, 9-12 ClusterName, 9-12 CmDiskFile, 9-12 CMDLL, 9-12 CmHostName, 9-13 configuration parameters, defined, 9-2 DEFAULT_HOME, 9-9 DefinedNodes, 9-13 DeviceNic, 9-13 DisplayName, 9-11 editor, 9-2 editor, starting, 5-16 HOME_COUNTER, 9-9 Hostname, 9-10 ImagePath, 9-12 INST_LOC, 9-8 InstanceID, 9-13 Inter-Process Communication, 9-13 IODLL, 9-12
Index-5
IPCDLL, 9-12 keys, defined, 9-2 LAST_HOME, 9-9 LOGFILE, 9-11 MissCount, 9-13 modifying values, 9-14 MSHELP_TOOLS, 9-4 NAME, 9-9 NLS_LANG, 9-4 ObjectName, 9-12 OO4O, 9-8 ORA_AFFINITY, 9-6 ORA_CWD, 9-4 ORA_SID_AUTOSTART, 9-4 ORA_SID_PFILE, 9-5 ORA_SID_SHUTDOWN, 9-5 ORA_SID_SHUTDOWN_TIMEOUT, ORA_SID_SHUTDOWNTYPE, 9-5 ORACLE_BASE, 9-6 ORACLE_GROUP_NAME, 9-6 ORACLE_HOME, 9-6 ORACLE_HOME_KEY, 9-7 ORACLE_HOME_NAME, 9-7 ORACLE_PRIORITY, 9-7 ORACLE_SID, 9-7 OSAUTH_PREFIX_DOMAIN, 9-8 OSAUTH_X509_NAME, 9-8 Password, 9-11 PATH, 9-9 PERF_FILE_NAME, 9-11 PERFORMANCE key, 9-10 PollInterval, 9-13 PublicNames, 9-13 RDBMS_ARCHIVE, 9-7 RDBMS_CONTROL, 9-8 REG_DWORD, 9-3, 9-17 REG_EXPAND_SZ, 9-3, 9-17 REG_MULTI_SZ, 9-3, 9-17 REG_SZ, 9-3, 9-17 REGEDT32, 9-14, 9-16 ServiceName, 9-13 SQLPATH, 9-8 STARTDLL, 9-12 Username, 9-11 using OPERFCFG, 9-23
S
Server Manager replacement, 5-2 service names multiple Oracle homes, 6-6 services defined, 7-2 Oracle Object Service, 7-2 Oracle OLAP Agent, 7-3 Oracle OLAP Services 9.0.1.1.0, 7-3 OracleCMan, 7-4 OracleCMService, 7-3 OracleDirectoryService_SID, 7-3 OracleEXTPRC, 7-3 OracleGSDService, 7-3 OracleHOME_NAMEAgent, 7-3 OracleHOME_NAMEClientCache, 7-4 OracleHOME_NAMEManagementServer, 7-4 OracleHOME_NAMEPaging Server, 7-4 OracleHOME_NAMEServer, 7-4 OracleMSCSService, 7-4 OracleMTSRecoveryService, 7-5 OracleNAMES, 7-5 OracleORACLE_HOMECMAdmin, 7-4 OracleORACLE_HOMETNSListener, 7-4 OracleServiceSID, 7-5 OracleSNMPPeerEncapsulator, 7-5 OracleSNMPPeerMasterAgent, 7-5 OraFenceService, 7-5 using, 7-6 Shared server process, 4-9 snap-ins Oracle Home Configuration, 9-17 Oracle Performance Monitoring, 9-24 SQL*Loader control file conventions, 5-19 direct path option, 5-18 operating system compatibility, 5-3 preferred tools, 5-5 starting, 5-11
9-5
Index-6
SQL*Plus operating system compatibility, 5-2, 5-3 preferred tools, 5-5 starting, 5-9, 5-11 SQL*Plus Worksheet preferred tools, 5-5 starting, 5-9 Start HTTP Server starting, 5-9 Stop HTTP Server starting, 5-9 stored packages, Intercartridge Exchange, 10-16 striping disks, 6-23 symbolic links, 6-25 system identifier multiple Oracle homes, 6-6
T
Task List, 5-24 Task Manager starting, 5-16 using, 5-22 threads and Microsoft Management Console, 5-21 and multiple Oracle instances, 4-2 and Oracle services, 7-2 and ORASTACK, 4-5 and shared server process, 4-9 and UNIX processes, 2-7 defined, 4-2 optional and required, 4-3 process errors, A-4 processor affinity, 9-6 scheduling priority, 9-7 TKPROF operating system compatibility, 5-3 starting, 5-11 tools, starting Database Configuration Assistant, 5-8 DBVERIFY, 5-10 Event Viewer, 5-16 Export Utility, 5-10 Microsoft Management Console, 5-16 Microsoft ODBC Administration, 5-8
Migration Utility, 5-10 OCOPY, 5-10 OPEFCFG, 5-10 Oracle Administration Assistant for Windows NT, 5-8 Oracle Data Upgrade Assistant, 5-8 Oracle Directory Manager, 5-9 Oracle Enterprise Login Assistant, 5-8 Oracle Enterprise Manager Configuration Assistant, 5-8 Oracle Enterprise Manager Console, 5-8 Oracle INTYPE File Assistant, 5-8 Oracle Locale Builder, 5-8 Oracle Migration Workbench, 5-8 Oracle Net Configuration Assistant, 5-8 Oracle Net Manager, 5-9 Oracle Performance Monitor, 5-9, 5-16 Oracle Wallet Manager, 5-9 Pro C-C++, 5-9 Recovery Manager, 5-11 SQL*Plus, 5-9 SQL*Plus Worksheet, 5-9 Start HTTP Server, 5-9 Stop HTTP Server, 5-9 Task Manager, 5-16 TKPROF, 5-11 User Manager, 5-16 troubleshooting ORA-12560 error, A-26 ORA-28575 error, A-26 TNS-12203 error, A-26
U
UNIX and Optimal Flexible Architecture, 6-24 and Windows, Oracle9i differences, 2-1 User Manager defined, 5-23 integration with Oracle9i database, 5-23 preferred tools, 5-5 starting, 5-16 usernames changing, 8-3 of administrative accounts, 8-5
Index-7
W
Web browser running Oracle Enterprise Manager, 5-13 Web data, Intercartridge Exchange, 10-14 Windows and UNIX, Oracle9i differences, 2-1 diagnostic and tuning utilities, 5-24 extensions for internet development, 10-5 tools operating system compatibility, 5-4
Index-8