This chapter provides information for managing ObjectStore on Windows NT and Windows 95. For complete information, you should consult the first six chapters of this book along with this chapter.
All utility executables are stored in ObjectStore's BIN directory.
On Windows NT, run ObjectStore utilities in a command prompt window.
Parameter | Setting |
---|---|
Log Record Segment Buffer Size | 256 sectors (default is 1024) |
Max Data Propagation Per Propagate | 256 sectors (default is 256) |
Propagation Buffer Size | 512 sectors (default is 8192) |
Modifying client environment variables
You can reduce memory consumption by setting the OS_CACHE_SIZE environment variable to an amount less than its default size of 8 MB (8388608). The minimum size on Windows 95 is 480 KB (491520). Generally, on systems with 12 MB physical memory, 3 MB (3145728) is a good value. Some applications that access large amounts of data simultaneously might require larger values. Specifying File Database Pathnames
You specify a file database with an operating system pathname. For example:
os_database::open("d:\\carter\\myfiledb")
os_database::open("\\\\servername\\sharename\\myfiledb")In C and C++, you must escape the back slash (\) with another back slash.
You can also specify a relative pathname.
Server names
You can specify a Server name when you open or create a database. The Server name identifies the Server host on which the database is located. For example:
Server on a UNIX host: | elvis:/usr/barbar/employees |
Server on a Windows host: | elvis:D:\usr\barbar\employees |
This specifies a database, employees, in the directory \usr\barbar on the host elvis.
Setting Server Parameters
The Server, Cache Manager, and Browser store their parameters in a central location.
Windows
On Windows NT and Windows 95, parameters are in the Windows registry database. Changing parameters
You can edit these parameters using the ObjectStore utility SETUP.EXE. SETUP.EXE allows you to modify all fields except for license information. ObjectStore license information is written by the INSTALL program. Starting the Server
There are several ways to start the Server. One way is to use the ObjectStore setup utility, SETUP.EXE, to configure the Server to start automatically at system start-up. Windows NT
On Windows NT, you can configure the Server as an NT service. This is the preferred method. Windows 95
On Windows 95, you can start the Server manually by double-clicking on the ObjectStore Server icon in the ObjectStore folder, or by using Start | Run, or from an MS-DOS prompt window. Command-line options
Ordinarily, you use Server parameters to control the Server's behavior. However, you can also specify the following command-line options to osserver.
Use -i and -I with caution
Be sure to move all data out of the log before you initialize it. See ossvrchkpt: Moving Data Out of the Server Transaction Log. Be sure to back up all data in the rawfs before you initialize it. See osbackup: Backing Up Databases.
When you initialize the transaction log, anything in the log is lost. The Server resizes the log to the values specified by the Log Data Segment Initial Size and Log Record Segment Initial Size Server parameters. When the log is in the rawfs, this frees space for use by other files. When the log is in the native file system, this reallocates space dedicated to the transaction log. The size of the log does not change.
Initializing when you have a rawfs
If you have a rawfs, then specifying the -i or -I option with osserver initializes the rawfs and the transaction log. When you specify -i, ObjectStore responds with
The entire ObjectStore file system on this host is about to be initialized, thus destroying any data currently in it. Unless you have a backup of the ObjectStore file system, it will be impossible to recover the old contents once the initialization is started. Are you sure that you want to reinitialize the ObjectStore file system?When you specify -I, this message does not appear.
You have asked for initialization which will create a new transaction log, deleting any old log that might exist, thus destroying any recovery data in the old log. This might leave some file databases in a broken state. Are you sure that you want to create a new log?When you specify -I, this message does not appear.
Server started
to let you know that it is ready to accept requests from clients on the network.
Starting process Process could not start error 1067: Process terminated unexpectedlyThe first thing to assess is if the Server and Cache Manager can be started in console mode using the -con option to osserver. If they start properly in console mode, this problem is likely to be a permission problem or an incorrect definition for the ObjectStore image path in the registry.
Try the following to determine what is wrong with the ObjectStore definition of NT Services.
HKEY_LOCAL_MACHINE | System | CurrentControlSet | ServicesThen, check that the setting for the image path is correct. Do the same for ObjectStore Server R4.0.
| ObjectStore Cache Manager R4.0
If it is not a permission problem, then it is very likely that the transaction log has not been initialized. In this case, a message can be seen in the %OS_TMPDIR%osserver.txt output:
When a partition is not specified, the transaction log is needed.This is usually the last message in osserver.txt or in the Server start-up output in debug mode. If this is not the case, then in the window from where you start the Server, enter
>set OS_DEBUG_NETWORK=1and
>start /min osserver -con -F -v -d 10 > server.outor
>osserver -con -F -v -d 10 > server.outif the start command is not recognized.
After that send the server.out file to Object Design support.
Creating a rawfs
To create the rawfs or add partitions to an existing rawfs, use the SETUP.EXE utility. When you create the rawfs, you specify a disk drive letter and a file name. After you create the rawfs, you can add file partitions. See your installation guide for details. Using SETUP.EXE to Add File Partitions
Be sure to shut down the Server before you run SETUP.EXE. You cannot run SETUP.EXE while the Server is running. Syntax
PartitionN FILE pathname {expandable | nonexpandable}It is unnecessary to specify more than one file in the same drive letter.
Partition0 FILE c:\mypart0 expandable Partition1 FILE d:\mypart1 expandable Partition2 FILE e:\bigpart99 expandable
Partition0: FILE c:\usr1\one expandable Partition1: FILE d:\usr2\two expandable Partition2: FILE e:\usr3\three nonexpandableWhen you exit from SETUP.EXE, it prompts you to indicate whether or not you want to restart the Server. If you indicate No, you must run osserver to start the Server.
To start the Cache Manager from your account, you must have domain user listed as one of your privileges. If you do not, you might receive the message
Error auto starting Cache Manager. Unable to open service database. Access is denied.You might receive this message when you log in to your domain account rather than logging directly into the computer name account. If this is the case, you need to ask your system administrator to check your user privileges in that domain or configure the Cache Manager for Automatic Start-up.
If you want to start the Cache Manager as a console application, use the following command:
oscmgr4 -con 0[
debug_level]
Server errors | OSSERVER.TXT |
Cache Manager errors | OSCMGR4.TXT |
If the file does not already exist, ObjectStore creates it; if the file does exist, ObjectStore appends to it.
Accessing UNIX Databases from Windows
When accessing UNIX file databases over a network (such as with Intergraph PCNFS), the ObjectStore client on Windows NT prompts for a name and password. See Authentication Required.
HKEY_LOCAL_MACHINE\Software\Object DesignInc.\ObjectStorex.x\Remote\username\UNIX.UID HKEY_LOCAL_MACHINE\Software\Object DesignInc.\ObjectStorex.x\Remote\username\UNIX.GIDSet these variables (which are strings, such as REG-SZ) to the numeric values of the UNIX user and group IDs required. Note that you can edit these values only from a Windows NT account with Administrator privileges.
Note that the HKEY_LOCAL_MACHINE\Software\Object Design Inc.\ObjectStore.4.0\Remote has Administrator rights only. This is to prevent a security breach that can result if ordinary users have write privileges to this area. If you set up the values for an ordinary user who does not have Administrator privileges and the user tries to run an ObjectStore program, the user still must enter a user name/password to access the Server.
To prevent this, you can change the HKEY_LOCAL_MACHINE\Software\Object Design Inc.\ObjectStore.4.0\Remote to have read-only privileges for users with non-Administrator privileges. You can set the privileges using the Security | Permissions dialog in the registry editor.
For more information, see ObjectStore Installation and License for Windows, Network Support.
serverhost:\\filehost\sharename\directory\foo.odbor locator files that redirect all UNC paths to a named server host take advantage of this feature. In general, it is unnecessary to
http://www.microsoft.com/kb/bussys/winnt/q132679.htmThe first choice is to run the Server normally, as Local System. This requires that the user Everyone is able to access remote files on behalf of remote clients. Note that this solution requires you to create an account for Everyone on non-Windows NT systems.
The second choice is to run the Server as another user. You can set this up by means of the Control Panel Services applet.
Updated: 03/26/98 20:46:29