| Oracle8i Personal Edition Administrator's Guide Release 2 (8.1.6) for Windows 98 A85313-01 |
|
This chapter describes how to administer Oracle8i Personal Edition for Windows 98.
Specific topics discussed are:
These instructions assume that a database instance is created.
To start or shut down an Oracle8i database:
|
Note: See "Choosing a Database Tool" for a list of other tools that can start the database and the Oracle8i Administrator's Guide for information on options you can specify when starting your database. |
Using OSTART:
Choose Start>Programs>Oracle_Home_Name>Database Administration>Start Database.
OR
At the MS-DOS Prompt execute :
c:\>OSTART SCREEN
Select the instance you want to start by choosing the SID from the combo box, then press OK.
If you are executing OSTART from command prompt, the SID list displayed will be of the Oracle Home which comes frist in the PATH. To get the SID list of another Oracle Home, go to the BIN directory of that Home and execute OSTART SCREEN.
Using OSTOP:
Choose Start>Programs>Oracle_Home_Name>Database Administration>Stop Database.
OR
At the MS-DOS Prompt execute :
c:\> OSTOP SCREEN
OSTOP will stop the instance whose SID is found in HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOME_NAME\ORACLE_SID if ORACLE_SID is not set in the environment.
To stop any other instance started from the same Home, User, can do:
c:\> KNLSTOP <SID Name>
To run multiple instances, ensure that you have already created each instance. You then run multiple instances by starting each of the instances using SQL*Plus.
To run multiple instances:
C:\> SET ORACLE_SID=SID
SQL> STARTUP PFILE=ORACLE_BASE\ADMIN\DB_NAME\PFILE\INIT.ORA
where ORACLE_BASE is C:\ORACLE by default (unless you changed it during installation) and DB_NAME is the name of the instance.
Use the Password Utility ORAPWD to create password files. ORAPWD is automatically installed with the Oracle8i Utilities. Password files are located in the ORACLE_BASE\ORACLE_HOME\DATABASE directory and are named PWDSID.ORA, where SID identifies the Oracle8i database instance. Password files can be used for local or remote connections to an Oracle8i database. The example below describes how to perform a local connection.
To create a password file:
SQL> GRANT SYSDBA TO SCOTT;
Statement Processed.
This adds SCOTT to the password file and enables SCOTT to connect to the database with SYSDBA privileges. Use SQL*Plus to add or delete user names, user passwords, and user privileges in password files.
The password file is automatically hidden. This section describes two ways of viewing the password file:
To see the password file from the MS-DOS command prompt:
To see the password file from Windows 98 Explorer:
| To... | Click... |
|
See the password file |
Show all files. |
|
Hide the password file |
|
This section describes how to delete a password file.
To delete a password file:
You can connect as INTERNAL with a password file. The password for INTERNAL is ORACLE if you installed your database through the Typical or Minimal installation types.
To connect as INTERNAL with a password file:
|
Note: When REMOTE_LOGIN_PASSWORDFILE is set to NONE, connecting remotely to a database as INTERNAL is prohibited even if the correct password is supplied. |
Change the INTERNAL user account password with either ORAPWD or SQL*Plus.
To change the password with ORAPWD:
To change the password with SQL*Plus:
The section assumes the password file is already created and the INIT.ORA file parameter REMOTE_LOGIN_PASSWORDFILE is set to SHARED or EXCLUSIVE.
SQL> ALTER USER SYS IDENTIFIED BYNEW_PASSWORD;
With the Oracle8i database, you can encrypt the password used to verify a remote database connection.
To enable password encryption:
Once these parameters are set to TRUE, whenever a user attempts a remote login, the Oracle8i database encrypts the password before sending it to the remote database. If the connection fails, the failure is noted in the audit log. The Oracle8i database then checks if either of these parameters is set to FALSE. If so, the Oracle8i database attempts the connection again using an unencrypted version of the password. If the connection is successful, the success is noted in the audit log, and the connection proceeds.
Your Oracle8i database is created in NOARCHIVELOG mode if you installed your database through the Typical or Minimal installation. If you created your databas through the Custom option of Database Configuration Assistant, you had the choice of either ARCHIVELOG or NOARCHIVELOG.
In NOARCHIVELOG mode, redo logs are not archived. This protects the database from instance failure, but not from disk failure. Setting your archive mode to ARCHIVELOG and enabling automatic archiving causes redo log files to be archived. This protects the database from both instance and disk failure.
This section describes how to change the archive mode to ARCHIVELOG and enable automatic archiving. See the chapter "Archiving Redo Information" of the Oracle8i Administrator's Guide for complete descriptions of the ARCHIVELOG and NOARCHIVELOG modes.
To change the archive mode to ARCHIVELOG:
Database log mode No Archive Mode Automatic archival Disabled Archive destination %RDBMS%\ Oldest online log sequence 34 Current log sequence 37
SQL> ALTER DATABASE ARCHIVELOG;
Database log mode Archive Mode Automatic archival Disabled Archive destination %RDBMS%\ Oldest online log sequence 34 Current log sequence 37
To enable automatic archiving:
# LOG_ARCHIVE_START = TRUE # LOG_ARCHIVE_DEST_1 = %ORACLE_HOME%\DATABASE\ARCHIVE # LOG_ARCHIVE_FORMAT = "%%ORACLE_SID%%T%TS%S.ARC"
The following output indicates that automatic archiving of redo log files is enabled and an archiving destination is specified:
Database log mode Archive Mode Automatic archival Enabled Archive destination C:\BACKUP Oldest online log sequence 34 Current log sequence 37
The ORADEBUG utility is a debugging tool that sends debug commands through SQL*Plus to Oracle processes. It is primarily for use by developers and Oracle Support Services personnel. Only use this utility when instructed to do so by Oracle Support Services. Note that you must have database administrator privileges to use ORADEBUG.
To start ORADEBUG:
C:\> SQLPLUS
SQL> CONNECT INTERNAL
ORADEBUG runs and prompts you for parameters. To obtain a list of these parameters, enter the following at the SQL*Plus prompt:
SQL> ORADEBUG HELP
The output from most debug commands is written to a trace file. Trace files are created in the directory specified by the INIT.ORA initialization parameters BACKGROUND_DUMP_DEST and USER_DUMP_DEST. By default, these parameters are set to ORACLE_BASE\ADMIN\DB_NAME\BDUMP and ORACLE_BASE\ADMIN\DB_NAME\UDUMP, respectively. If you want to find the location of your trace file, enter the following at the SQL*Plus prompt:
SQL> ORADEBUG TRACEFILE_NAME
If the output from a debug command produces more than one line of output, the result is sent to a trace file, and a message indicating that the command has completed is relayed to SQL*Plus. If the output from a debug command produces only one line of output, the output is relayed directly to SQL*Plus.
|
|
![]() Copyright © 2000 Oracle Corporation. All Rights Reserved. |
|