Oracle7 Getting Started for Windows NT | ![]() Library |
![]() Product |
![]() Contents |
![]() Index |
Managing Oracle Database Services
Oracle Database Services
For each database on your system there are two Oracle services. The SID in the service names is the sid name used at service creation time.
Oracle Services | Description |
OracleServicesid
|
Runs an Oracle7 database.
|
OracleStartsid
|
Starts an Oracle7 database when Windows NT starts.
|
The OracleStartsid service may or may not be present depending on the startup type of the database. If the Oracle services were created using the AUTO startmode with the NT Instance Manager, both services will be present.
Starting Oracle Services
When both the Oracle services are created, their startup type is set to Automatic. Therefore, the Oracle services should have the status Started. This can be verified in the Windows NT Control Panel. If the Oracle services are not started, you must start them before starting the database. You can start the Oracle services from the Control Panel or the command prompt.
If Using | Then... |
Windows NT 3.51
|
Open Main->Control Panel->Services
|
Windows NT 4.0
|
Go to Start->Settings->Control Panel->Services
|
C:\> NET START OracleServicesidIf the Oracle service you are looking for is not found in the Control Panel, then create it with NT Instance Manager, in command line mode. Do not use the GUI mode of NT Instance Manager as it will try to create the database as well as the Oracle services.
|
Stopping Oracle Services
The Oracle services can be stopped from the Control Panel or the command prompt.
If Using | Then... |
Windows NT 3.51
|
Open Main->Control Panel->Services
|
Windows NT 4.0
|
Go to Start->Settings->Control Panel->Services
|
C:\> NET STOP OracleServicesid
C:\> SET ORACLE_SID=sid
C:\> SET LOCAL=2:sidNote there are no space characters around the equal sign characters.
C:\> SVRMGR23
SVRMGR> CONNECT INTERNAL /password
SVRMGR> STARTUP [PFILE=path\filename]You do not need to specify the PFILE option if the initialization parameter file for the database is called INITsid.ORA and located in the ORANT\DATABASE directory, where ORANT is your Oracle Home directory. Otherwise, the complete path and file name must be specified, as in:
SVRMGR> STARTUP PFILE=D:\SOMEDIR\MYINIT.ORANote that there are no space characters around the equal sign character.
SVRMGR> SHUTDOWN modewhere mode is:
|
Running Multiple Instances
When multiple databases run on a single Windows NT machine, there are multiple OracleServicesid services and multiple sets of database files. Remember that in order to start a database, Server Manager connects to a service, and tells the service to open a database.
Integrating Database User Authentication with Windows NT
This section describes how to authenticate non-privileged database users (users who are not Database Administrators) using the Windows NT operating system, without requiring passwords at the database level.
|
When you use Windows NT to authenticate non-privileged users, your database relies on Windows NT to restrict access to database accounts. A database password is not needed for this type of logon.
SVRMGR> CREATE USER OPS$USERID IDENTIFIED EXTERNALLY;where:
OPS$
|
is the value set for the OS_AUTHENT_PREFIX initialization parameter.
|
USERID
|
identifies the user's Windows NT username.
|
SVRMGR> CREATE USER XYZFRANK IDENTIFIED EXTERNALLY;If you access a shared resource on the Oracle7 Server from a Windows NT or Windows 95 workstation, and connect to the Oracle7 Server, then you need not enter your Oracle7 username. For example, using Server Manager enter:
SVRMGR> CONNECT /@destinationwhere @destination is the SQL*Net 2.3 alias of the remote database.
Oracle7 searches the data dictionary tables for an automatic logon username corresponding to the Windows NT username of FRANK, verifies it, and allows you to connect as XYZFRANK. As the Oracle7 username is the whole name XYZFRANK, all objects created by XYZFRANK (that is tables, views, indexes, etc.) are prefixed by this name. For another user to reference the table SHARK owned by XYZFRANK, the user must enter:
SVRMGR> SELECT * FROM XYZFRANK.SHARK
|
|
|
|
Using Operating System Authentication
If you choose, you can have the Windows NT operating system authenticate database administrator users. To use operating system authentication:
CONNECT / AS SYSOPER
CONNECT / AS SYSDBA
SYSDBA> ORA_%SID%_DBA, ORA_DBAFor example, if an authenticated connection exists between a client workstation and a Windows NT computer running Oracle7 (with the authenticated username being NTUSER2), then Oracle7 searches for the username NTUSER2 in group ORA_ORCL_DBA when the user enters the command:
SYSOPER> ORA_%SID%_OPER, ORA_OPER
SVRMGR> connect / as sysdbaIf the username NTUSER2 is located, the user is given DBA privileges. If not found, Oracle7 checks the global group ORA_DBA.
|
Connecting as INTERNAL with a Password
To connect as INTERNAL with a password:
SVRMGR> CONNECT INTERNAL/password
To create a user account that uses the Windows NT Authentication Adapter:
|
ORA_SID_ROLENAME [_D] [_A]where:
Database Roles | Windows NT Groups |
ORA_ORCL_ROLE1
|
ORA_ORCL_ROLE1
|
ORA_ORCL_ROLE2
|
ORA_ORCL_ROLE2_D
|
ORA_ORCL_ROLE3
|
ORA_ORCL_ROLE3_A
|
ORA_ORCL_ROLE4
|
ORA_ORCL_ROLE4_DA
|
|
For example, assume an authenticated connection exists between a client workstation and a Windows NT computer running Oracle7. The user then connects over SQL*Net version 2.3 with the Oracle username SCOTT/TIGER. The roles applied to the Oracle username SCOTT consist of all roles defined for the Windows NT user account that were mapped to the database roles above. All roles available under an authenticated connection are determined by the Windows NT user ID and the groups available to the user.
Refreshing Table Snapshots
Oracle7 Server for Windows NT allows you to create copies of a remote database table. These copies, referred to as table snapshots, can reside on multiple nodes of a distributed database. Snapshots allow users to query copies of remote tables on a local Oracle7 Server, thereby reducing network traffic.
|
|
![]() ![]() Prev Next |
![]() Copyright © 1996 Oracle Corporation. All Rights Reserved. |
![]() Library |
![]() Product |
![]() Contents |
![]() Index |