Skip Headers

Oracle9i Personal Edition Getting Started
Release 1 (9.0.1.1.0) for Windows 98

Part Number A95907-01
Go To Table Of Contents
Contents
Go To Index
Index

Go to previous page Go to next page

4
Database Tools Overview

Oracle9i Personal Edition for Windows 98 includes various tools to perform database functions. This chapter describes the preferred tools to perform common database administration tasks.

This chapter contains these topics:

Choosing a Database Tool

Database tools is a collective term for tools, utilities, and assistants that you can use to perform database administration tasks. Some database tools perform similar tasks, though no one database tool performs all database administration tasks. The following sections indicate which database tools can be used on particular operating systems and the preferred tools to use for common database administration tasks.


Note:

  • Oracle Server Manager is no longer shipped from of this release. All Server Manager text and examples have been replaced with SQL*Plus equivalents.

  • Additionally, connecting to the database as CONNECT INTERNAL is no longer supported.

    SQL> CONNECT INTERNAL/password@tnsalias
    

    has been replaced by:

    SQL> CONNECT SYS/password@tnsalias AS SYSDBA
    

Database Tools and Operating System Compatibility

Table 4-1 lists database tools and the operating system(s) on which each can be used.

Table 4-1  Database Tools and Operating System Compatibility
Database Tools Windows NT/2000 Windows 95/98

Application Development

SQL*Plus (SQLPLUS)Foot 1

Yes

Yes

Pro*C/C++

Yes

No

Pro*COBOL

Yes

No

Object Type Translator (OTT)

Yes

Yes

Oracle Services for Microsoft Transaction Server

Yes

No

Oracle Portal (formerly Oracle WebDB)Foot 2

Yes

No

Database Administration

Oracle Enterprise ManagerFoot 3

Yes

No

SQL*Plus (SQLPLUS)

Yes

Yes

Oracle Database Configuration Assistant

Yes

No

Oracle Advanced SecurityFoot 4

Yes

No

Oracle Performance Monitor for Windows NT

Yes

No

Migration Utilities

Oracle Data Migration Assistant

Yes

Yes

Oracle Migration WorkbenchFoot 5

Yes

No

Oracle Utilities from the Command Line

Migration Utility (MIG)

Yes

Yes

DBVERIFY (DBVERF)

Yes

Yes

Export Utility (EXP)Foot 6

Yes

Yes

Import Utility (IMP)Foot 7

Yes

Yes

OCOPY

Yes

Yes

ORADIMFoot 8

Yes

Yes

Password Utility (ORAPWD)Foot 9

Yes

Yes

Recovery Manager (RMAN)

Yes

Yes

SQL*Loader (SQLLDR)

Yes

Yes

TKPROF

Yes

Yes

OPERFCFG

Yes

No

Network Administration

Oracle Net Manager

Yes

Yes

Oracle Net Configuration Assistant

Yes

Yes

Windows Tools

Task Manager

Yes

Yes

Control Panel

Yes

Yes

Event Viewer

Yes

No

Registry Editor

Yes

Yes

User Manager

YesFoot 10

No

Microsoft Management Console

YesFoot 11

No

1 The ORADEBUG utility can be used through SQL*Plus to send debug commands to Oracle processes. See "Using the ORADEBUG Utility" in Oracle9i Personal Edition Database Administrator's Guide for Windows.
2 Available on a separate CD-ROM.
3 Oracle Enterprise Manager and its optional management packs have additional integrated tools to assist in managing databases. See the Oracle Enterprise Manager Concepts Guide for more information.
4 Includes 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.
5 Available on a separate CD-ROM.
6 The VOLSIZE parameter for the 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
7 See footnote 6.
8 ORADIM operates only on local databases.
9 ORAPWD does not work on password files for remote databases.
10 Windows NT only.
11 Must be obtained from Microsoft Corporation for use with Windows NT 4.0; automatically included with Windows 2000.

Preferred Database Tools

This table lists common database administration tasks and the various database tools you can use to perform them. Oracle Corporation recommends you use the tools listed in the " Preferred Database Tools" column of the table Table 4-2. After choosing a tool to perform a task, go to "Starting Database Tools" for instructions on how to start the tool

Table 4-2  Preferred Database Tools
Database Administration Task Preferred Database Tool Other Database Tools

Create a database

Oracle Database Configuration Assistant

Delete a database

Oracle Database Configuration Assistant

Start a database

Oracle Start Utility (OSTART)

SQL*Plus

Shut down a database

Oracle Stop Utility (OSTOP)

SQL*Plus and KNLSTOP together

Change internal database passwords

ORAPWD

Migrate a database

Oracle Data Migration AssistantFoot 1

Migration Utility (MIG)

Upgrade a database

Oracle Data Migration Assistant

Run provided scripts in SQL*Plus

Export data

Export Utility (EXP)

Import data

Import Utility (IMP)

Load data

SQL*Loader (SQLLDR)

Back up a database

  • Recovery Manager (RMAN)

  • OCOPYFoot 2

Recover a database

  • Recovery Manager (RMAN)

  • OCOPY

Authenticate Database Administrators and Users

SQL*Plus

Create database objectsFoot 3

Oracle9i Navigator

SQL*Plus

Create a database

Oracle Database Configuration Assistant

Grant Database Roles

Oracle9i Navigator

SQL*Plus

1 Oracle Data Migration Assistant can only be used to upgrade Release 7.x, 8.0.x or 8.1.5 databases to Release 8.1.6. It cannot be used to upgrade an earlier Oracle7 database release to a later Oracle7 database release. See your Oracle7 for Windows 95 documentation for information on how to upgrade from an earlier Oracle7 release to a later Oracle7 release.
2 Do not back up files while you are shutting down the database, otherwise your backup will be invalid. You cannot use an invalid backup to restore files at a later date. See Oracle8i Backup and Recovery Guide for more information.
3 See Oracle8i Administrator's Guide for guidelines on creating databases objects. This guide provides equations for estimating the space requirements for clusters, non-clustered tables, and indexes. Windows 98 uses the same fixed header, transaction header, and row header constants described in this guide.

Starting Database Tools

This section describes how to start each of the database tools in the following categories:

You will be referred back to this section for database tool startup procedures as you use this manual.

Starting Database Tools in Multiple Oracle Homes

If you have multiple Oracle homes on your computer from previous releases, then see Chapter 5, "Multiple Oracle Homes and Optimal Flexible Architecture" for a description of the differences between Oracle homes before and after Oracle9i Release 1 (9.0.1.1.0).

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 SQL*Plus from the first Oracle home, choose:

Start > Programs > Oracle > Application Development > SQL Plus

To start SQL*Plus from an additional Oracle home, choose:

Start > Programs > Oracle - HOME_NAME > Application Development > SQL Plus

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. For example:

To start Oracle Administration Assistant from any Oracle home, choose:

Start > Programs > Oracle - HOME_NAME > Database Administration > Database Configuration Assistant, where HOME_NAME is the name of the Oracle home.

For example, either HOME1 or HOME2 in the following figure:

Text description of tools1.gif follows.
Text description of the illustration tools1.gif

Starting Database Tools from the Start Menu

Table 4-3 describes how to start assistants and other tools from the Start Menu. It also tells where to go for further information on using these products.


Note:

When you use an assistant, you must have read and write access to the directory where database files will be moved or created. To create an Oracle9i database, you must have an administrative privilege. If you run Oracle Database Configuration Assistant from an account that is not part of the Administrators group, then the tool exits without completing the operation.


Table 4-3  Starting Database Tools from the Start Menu
Tool Start Menu Path More Information

Data Migration Assistant

Start > Programs > Oracle - HOME_NAME > Migration Utilities > Data Migration Assistant

Oracle9i Database Migration

Database Configuration Assistant

Start > Programs > Oracle - HOME_NAME > Configuration and Migration Tools > Database Configuration Assistant

"Using Oracle Database Configuration Assistant" in Oracle9i Personal Edition Database Administrator's Guide for Windows

INTYPE File Assistant

Start > Programs > Oracle - HOME_NAME > Application Development > INTYPE File Assistant

INTYPE File Assistant online help

Microsoft ODBC Administrator

Start > Programs > Oracle - HOME_NAME > Configuration and Migration Tools > Microsoft ODBC Administration

Microsoft ODBC Administration online help

Net Configuration Assistant

Start > Programs > Oracle - HOME_NAME > Configuration and Migration Tools > Net Configuration Assistant

Oracle9i Net Services Administrator's Guide

Net Manager

Start > Programs > Oracle - HOME_NAME > Configuration and Migration Tools > Net Manager

Oracle9i Net Services Administrator's Guide

SQL*Plus

Start > Programs > Oracle - HOME_NAME > Application Development > SQL*Plus

SQL*Plus User's Guide and Reference

"Starting and Shutting Down a Database with SQL*Plus" in Oracle9i Personal Edition Database Administrator's Guide for Windows

Starting Database Tools

The following table describes how to start most tools, and where to go for further information on using these products:

Tool Choose Start > Programs > Oracle - HOME_NAME > For More Information, See...

Oracle Data Migration Assistant

Migration Utilities > Data Migration Assistant

Oracle Database Configuration Assistant

Database Administration > Database Configuration Assistant

Net Manager

Configuration and Migration Tools >Net Manager

Oracle9i Net Services Administrator's Guide

Net Configuration Assistant

Configuration and Migration Tools > Net Configuration Assistant

Oracle9i Net Services Administrator's Guide

Starting Database Tools from the Command Line

Table 4-4 describes how to start Oracle database tools from the command line, and where to go for further information on using these products.

Table 4-4  Starting Database Tools from the Command Line
Tool Enter at Prompt More Information

DBVERIFY

C:\> dbv

DBVERIFY starts and prompts you for a filename parameter. To obtain a list of parameters, enter:

C:\> dbv help=y

Oracle9i Database Utilities

Export UtilityFoot 1

C:\> exp username password

EXP starts and prompts you for parameters. To obtain a list of these parameters, enter:

C:\> exp help=y

Oracle9i Database Utilities for instructions on use of the Export Utility

Oracle9i Database Error Messages for information on error messages

Import UtilityFoot 2

C:\> imp username password

IMP starts and prompts you for parameters. To obtain a list of these parameters, enter:

C:\> imp help=y

Oracle9i Database Utilities

Oracle9i Database Error Messages

Migration Utility

C:\> mig

To obtain a list of parameters, enter:

C:\> mig help=y

Oracle9i Database Migration

OCOPY

C:\> ocopy

"Backing Up Files with the OCOPY Utility" in Oracle9i Personal Edition Database Administrator's Guide for Windows

ORADIM

C:\> oradim parameters

To get a complete listing of ORADIM parameters, enter:Foot 3

C:\> oradim -? | -h | -help

"Using the ORADIM Utility to Administer an Oracle Instance" in Oracle9i Personal Edition Database Administrator's Guide for Windows

Password Utility (ORAPWD)

C:\> orapwd

The password file is hidden. Use Windows Explorer to see it in a file list. Choose View > Options > View > Show All Files

"Creating Password Files" in Oracle9i Personal Edition Database Administrator's Guide for Windows

Recovery Manager (RMAN)

C:\> rman parameters

Oracle9i Personal Edition Database Administrator's Guide for Windows

Oracle9i Recovery Manager User's Guide

SQL*Plus (SQLPLUS)

C:\> sqlplus

SQL*Plus User's Guide and Reference

"Starting and Shutting Down a Database with SQL*Plus" in Oracle9i Personal Edition Database Administrator's Guide for Windows

SQL*Loader (SQLLDR)

C:\> sqlldr

SQL*Loader displays a Help screen with the available keywords and default values.

Oracle9i Database Utilities

Oracle9i Database Error Messages

"Starting Windows 98 Tools" in this manual

TKPROF

C:\> tkprof

Oracle9i Database Performance Guide and Reference

1 When running the Export Utility on Windows, the default values for the 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. The VOLSIZE parameter for the Export Utility is not supported on Windows. To export an entire database, you must use the EXP_FULL_DATABASE role.
2 See footnote 1.
3 Entering oradim without any options also displays a listing of parameters.

Starting Windows 98 Tools

This table describes how to start Windows 98 tool, and where to go for more information on using this product:

Windows 98 Tools To Start... For More Information, See...

Registry

  • Enter the following at the MS-DOS command prompt on Windows 98:

    C:\> REGEDIT

    The registry editor window appears.

Using SQL*Loader

This section describes Windows 98-specific information for using SQL*Loader (SQLLDR).

Windows 98 Processing Options

These are the possible values for the Operating System Dependent (OSD) file processing specifications string option, referred to in the "SQL*Loader Control File Reference" chapter of Oracle9i Database Utilities.

Processing Option Description

""Foot 1

Stream record format in which each record is terminated by a newline character. The maximum record size is 48 KB.

"FIX n"

Fixed record format in which each record is exactly n bytes long. If the record is terminated by a newline character, the newline character must be the nth byte. Note that the Oracle9i Database Utilities guide refers to this control file option as "RECSIZE".

"VAR xxxx"

Load variable length records. Specify the OSD "VAR recsizehint" in the control file for this option to take effect. The xxxx gives an estimate of the average record size to SQL*Loader so that it can approximate buffer sizes accurately and not waste memory. The default length is eighty characters. The xxxx does not specify how many leading bytes of length are included in each record. It only acts as a hint to SQL*Loader. Each record must always be preceded by five ASCII bytes containing the length of the remainder of the record. For example, a record must look like the following: 00024 This is a 24 byte string

Any whitespace, carriage returns, or linefeeds at the end of the record are ignored unless specifically included in the byte count in the length field.

1 Two double quote characters with no space in between.

Direct Path Option

SQL*Loader includes a direct path option that bypasses Oracle8i for Personal Edition redo log and data verification features, thereby decreasing loading time. Use the direct path option with data files known to be error free.

Control File Conventions

When preparing a SQL*Loader control file (.CTL), you must follow certain syntax and notational conventions. When specifying datatypes in the SQL*Loader control file, note that the default sizes of native datatypes are specific to Windows 98. You cannot override these defaults in the control file.

Native Datatypes Default Field Length

DOUBLE

8

FLOAT

4

INTEGER

4

SMALLINT

2

See:

Oracle9i Database Utilities for a complete list of options and instructions on using SQL*Loader.

Using Windows Tools

The following Windows 98 tool can be used to administer an Oracle database:

Registry

The Oracle database stores its configuration information in a structure known as the registry. You can view and modify this configuration information through the 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.

The registry editor displays configuration information in a tree-like format consisting of four keys (or folders). These keys are shown in the tree view in the left-hand window. In the right-hand window, the parameters and values assigned to that key are displayed.

What Database Parameters Are Configured?

When you install products from your CD-ROM, configuration parameters are automatically entered in the registry. These parameters are read each time your Windows 98 computer is restarted and whenever an Oracle product is launched. These parameters include settings for:

The following figure shows some of the Oracle database configuration parameters in the registry:

Text description of tools0.gif follows.
Text description of the illustration tools0.gif

See:

See Chapter 7, "Configuration Parameters and the Registry" for definitions of Oracle database configuration parameters and specific instructions on using the registry to modify Oracle database configuration parameters.


Go to previous page Go to next page
Oracle
Copyright © , 2001 Oracle Corporation.

All Rights Reserved.
Go To Table Of Contents
Contents
Go To Index
Index