| Oracle9i Release 1 (9.0.1.1.0) for Windows 98 Part Number A95907-01 |
|
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:
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.
Table 4-1 lists database tools and the operating system(s) on which each can be used.
| 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 |
|
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 unsuccessfully7 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. |
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
| 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 |
|
|
|
Recover a database |
|
|
|
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 |
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.
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).
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
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 the illustration tools1.gif
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. |
| Tool | Start Menu Path | More Information |
|---|---|---|
|
Data Migration Assistant |
Start > Programs > Oracle - HOME_NAME > Migration Utilities > Data Migration Assistant |
|
|
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 |
|
|
Net Manager |
Start > Programs > Oracle - HOME_NAME > Configuration and Migration Tools > Net Manager |
|
|
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 |
The following table describes how to start most tools, and where to go for further information on using these products:
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.
| Tool | Enter at Prompt | More Information |
|---|---|---|
|
DBVERIFY |
DBVERIFY starts and prompts you for a filename parameter. To obtain a list of parameters, enter:
|
|
|
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 |
|
|
Migration Utility |
C:\> mig To obtain a list of parameters, enter: C:\> mig help=y |
|
|
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 |
|
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) |
SQL*Loader displays a Help screen with the available keywords and default values. |
Oracle9i Database Error Messages "Starting Windows 98 Tools" in this manual |
|
TKPROF |
C:\> tkprof |
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 |
|
This section describes Windows 98-specific information for using SQL*Loader (SQLLDR).
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. |
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.
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. |
The following Windows 98 tool can be used to administer an Oracle database:
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.
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 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. |
|
|
![]() Copyright © , 2001 Oracle Corporation. All Rights Reserved. |
|