Oracle7 Getting Started for Windows NT | ![]() Library |
![]() Product |
![]() Contents |
![]() Index |
The Starter Database
During the installation process, you have the option of installing a starter database (default name ORCL) that is fully configured and ready for use after installation. There are two types of starter database you can choose to install:
If you wish to create your own database, refer to the chapter "Creating a New Database".
What Does Your Starter Database Include?
The Standard and Replication starter databases both contain:
|
Tablespaces
An Oracle7 database is subdivided into smaller logical areas of space known as tablespaces. Each tablespace corresponds to one or more physical data files. The four tablespaces in the Oracle7 Server for Windows NT starter database contain the following types of data.
|
Data Files
Data files contain the contents of logical database structures such as tables and indexes. One or more data files form a logical unit of storage called a tablespace. A data file can be associated with only one tablespace, and only one database. The starter database contains the following four data files located in the ORANT\DATABASE directory.
This Data File... | Is Contained in the Tablespace... |
SYS1ORCL.ORA
|
SYSTEM
|
USR1ORCL.ORA
|
USER_DATA
|
RBS1ORCL.ORA
|
ROLLBACK_DATA
|
TMP1ORCL.ORA
|
TEMPORARY_DATA
|
|
Initialization Parameter File
The starter database contains one initialization parameter file located in the ORANT\DATABASE directory.
|
Redo Log Files
The starter database contains two redo log files located in the ORANT\DATABASE directory
|
Control Files
The starter database contains two control files located in the ORANT\DATABASE directory.
Data Dictionary
The data dictionary is a read-only collection of tables and views containing reference information about the database, its structures, and its users. The data stored in the dictionary include:
|
|
The Oracle Enterprise Manager works with the Oracle Intelligent Agent to perform distributed database administration from a single console computer. The Oracle Enterprise Manager is installed on a console workstation, typically a Windows NT client. The Oracle Intelligent Agent is installed on each computer with an Oracle7 Server for Windows NT database to be managed. The Oracle Intelligent Agent is responsible for managing and completing tasks requested from the console workstation by the Oracle Enterprise Manager. Once installed, the Oracle Intelligent Agent:
Start the Oracle Intelligent Agent
In order to use the Oracle Enterprise Manager, the Oracle Intelligent Agent must be started on your Windows NT server. The Oracle Intelligent Agent automatically locates the services on the computer where it resides and passes this information to the Oracle Enterprise Manager console.
net start OracleAgent
To create a repository user account on the Windows NT server:
C:\> SVRMGR23
SVRMGR> CONNECT SYSTEM/MANAGER
SVRMGR> CREATE TABLESPACE reposit_tablespace DATAFILE 'datafile' SIZE x M;where x is the tablespace size in megabytes.
SVRMGR> CREATE USER username IDENTIFIED BY password
SVRMGR> DEFAULT TABLESPACE reposit_tablespace;
SVRMGR> GRANT DBA to username IDENTIFIED BY password;
SVRMGR> EXITExiting Server Manager closes the database connection.
To create a user account on the Windows NT server:
SQL*Net Easy Configuration or Oracle Network Manager generates a TNSNAMES.ORA file and the Network Topology Generator generates or modifies the TOPOLOGY.ORA file.
|
To create a repository on the Windows NT client:
When the agent starts up and is explicitly requested by the Oracle Enterprise Manager with the Navigator Discovery feature, the agent passes information from the Oracle Enterprise Manager console to populate the Navigator tree.
To discover services:
The host name is added to the Selected list box.
From the icon:
net stop OracleAgent
C:\> SVRMGR23
SVRMGR> create user MDSYS identified by manager;
SVRMGR> CONNECT SYSTEM/MANAGER
SVRMGR> grant all privileges to MDSYS identified by manager with admin option;
SVRMGR> alter user MDSYS quota unlimited on SYSTEM;
|
SQL> @C:\ORANT\RDBMS73\ADMIN\CATMD.SQLThis script creates the following:
|
|
C:\> SVRMGR23
connect internal/password@connect string
SVRMGR> create tablespace DRSYS datafile 'c:\orant\database\drorcl.ora'
2> size 30M;
SQL> @drcrsyst ctxsys ctxsys drsys drsysThis script creates the CTXSYS user with password CTXSYS and default tablespace of DRSYS. It also creates the CTXADMIN, CTXAPP and CTXUSER roles.
SQL> CTXSYS/CTXSYS @dr0instThis loads the data dictionary and packages into user CTXSYS/CTXSYS.
imp73 CTXSYS/CTXSYS file=ctxset.dmp full=y ignore=yThis imports data used by the linguistics services into CTXSYS/CTXSYS.
SQL> sys/your_sys_password @drsys
TEXT_ENABLE = TRUE
|
|
|
User Defined Filters
This section describes information specific to using user defined filters on Windows NT.
From the command prompt:
C:\> start CTXSRV73 -user CTXSYS <passwd for CTXSYS>@<conn string> -personality . . .or
Using the ConText Option control utility:
C:\> CTXCTL73
command> start 1 [dml | ddl | load | ling | query]ConText Option server processes started from the command prompt are killed by Windows NT when the logged on console user logs off the Windows NT console.
To help ConText Option servers survive Windows NT console logoffs, use the ConText Option control utility CTXCTL73.EXE to start, stop and view the ConText Option servers running on the Windows NT server/workstation.
The ConText Option control utility interacts with a Windows NT service for the ConText option. It is this service that manages the various ConText Option server processes on that Windows NT server/workstation. The service is called OracleConTextService73 and must be started prior to using the ConText Option control utility. By default the service starttype is AUTO.
The ConText Option control utility cannot list or kill ConText Option servers started directly by executing CTXSRV73.EXE or CTXSRX73.EXE. It can only manage ConText Option servers through the OracleConTextService73 Windows NT service.
|
Tablespace Requirements
These are the recommended tablespace requirements for the Advanced Replication Option:
Initialization Parameters
The following initialization parameters must be set or added to the INITsid.ORA file (recommended values are included).
|
Master Site
Add these initialization parameters to the master site.
Snapshot Site
Add these initialization parameters for snapshot sites.
Parameter Name | Recommended Value |
SNAPSHOT_REFRESH_PROCESSES
|
2
|
SNAPSHOT_REFRESH_INTERVAL
|
60 seconds
|
SNAPSHOT_REFRESH_KEEP_CONNECTIONS
|
FALSE
|
|
C:\> SVRMGR23
SVRMGR> SPOOL outputThis creates a file called OUTPUT.LOG to which to output all on-screen activity while the SPOOL session is open.
SVRMGR> SPOOL OFFOUTPUT.LOG is placed in the directory from which Server Manager was invoked.
SVRMGR> SELECT * FROM ALL_OBJECTS WHERE STATUS = 'INVALID';If you find that any of the package bodies compiled incorrectly, recompile them manually.
SVRMGR> ALTER PACKAGE <package name> COMPILE BODY;If CATREP.SQL has run successfully, a number of replication tables are created in the SYSTEM tablespace. The database is now set up for advanced replication.
GRANT EXECUTE ON DBMSOBJGWRAPPER TO PUBLIC
|
If you use the Advanced Replication Option and intend to set up a large number of replicated objects, monitor the following data dictionary tables with the SQL SELECT command:
OCSM is a 16-bit application that manages Windows 3.1 products. You can run OCSM on Windows NT and Windows 95 to manage Windows 3.1 products, however, it does not manage 32-bit products.
Oracle Installer for Windows provides the basic services for setting up the OCSM directory and loading the following software on the server:
|
Component | Location |
XA73.DLL
|
%ORACLE_HOME%\BIN
|
XA73.LIB
|
%ORACLE_HOME%\RDBMS73\XA
|
XA.H
|
%ORACLE_HOME%\RDBMS73\XA
|
The XA Application Program Interface (API) is typically used to enable an Oracle Relational Database Management System (RDBMS) to interact with a transaction processing monitor (TP monitor), such as BEA Tuxedo, IBM Transarc Encina, or IBM CICS. You can also use TP monitor statements in your client programs. The use of the XA API is also supported both from Pro*C and from Oracle Call Interface (OCI). In either case, the XA73.DLL must be contained in the execution path of the caller.
|
|
|
|
![]() ![]() Prev Next |
![]() Copyright © 1996 Oracle Corporation. All Rights Reserved. |
![]() Library |
![]() Product |
![]() Contents |
![]() Index |