Beruflich Dokumente
Kultur Dokumente
(RIS)
Utilities Guide
Version 6.0
June 2011
DNA111760
Copyright
Copyright 1989-2011 Intergraph Corporation. All Rights Reserved.
Including software, file formats, and audiovisual displays; may be used pursuant to applicable software license agreement;
contains confidential and proprietary information of Intergraph and/or third parties which is protected by copyright law, trade
secret law, and international treaty, and may not be provided or otherwise made available without proper authorization from
Intergraph Corporation.
Terms of Use
Use of this software product is subject to the End User License Agreement ("EULA") delivered with this software product unless
the licensee has a valid signed license for this software product with Intergraph Corporation. If the licensee has a valid signed
license for this software product with Intergraph Corporation, the valid signed license shall take precedence and govern the use
of this software product. Subject to the terms contained within the applicable license agreement, Intergraph Corporation gives
licensee permission to print a reasonable number of copies of the documentation as defined in the applicable license agreement
and delivered with the software product for licensee's internal, non-commercial use. The documentation may not be printed for
resale or redistribution.
Trademarks
Intergraph, the Intergraph logo, PDS, SmartPlant, FrameWorks, I-Convert, I-Export, I-Sketch, SmartMarine, IntelliShip, INtools,
ISOGEN, MARIAN, SmartSketch, SPOOLGEN, SupportManager, and SupportModeler are trademarks or registered trademarks
of Intergraph Corporation or its subsidiaries in the United States and other countries. Microsoft and Windows are registered
trademarks of Microsoft Corporation. Oracle, JD Edwards, PeopleSoft, and Retek are registered trademarks of Oracle
Corporation and/or its affiliates. MicroStation is a registered trademark of Bentley Systems Inc, all rights reserved. Other brands
and product names are trademarks of their respective owners.
Contents
Preface PDS ................................................................................................................................................. 7
Getting Started ............................................................................................................................................. 9
risbatch ....................................................................................................................................................... 11
risclnsr ........................................................................................................................................................ 13
risdcode ...................................................................................................................................................... 15
risdtype ....................................................................................................................................................... 17
risgui ........................................................................................................................................................... 19
Exiting the risgui Utility .......................................................................................................................... 20
Performing Queries in the risgui Utility ................................................................................................. 20
Options .................................................................................................................................................. 21
Utilities ................................................................................................................................................... 21
Restart ................................................................................................................................................... 21
Set ......................................................................................................................................................... 22
Show ..................................................................................................................................................... 22
rislod ........................................................................................................................................................... 23
The Log File .......................................................................................................................................... 26
The Bad File .......................................................................................................................................... 27
Loading Index, View, and Privilege Definitions ..................................................................................... 27
Using rislod with the Interactive Interface ............................................................................................. 28
Using rislod with the Command Line Interface ..................................................................................... 32
BNF Representation of rislod Command Line Syntax .......................................................................... 33
rismgr.......................................................................................................................................................... 35
RIS Schema Manager ........................................................................................................................... 36
Schema Definition ................................................................................................................................. 37
Displaying Schema Information ...................................................................................................... 38
Creating Schemas .......................................................................................................................... 39
Dropping Schemas ......................................................................................................................... 43
Granting/Revoking Access Privileges to Secure Schemas ............................................................ 43
Obtaining Dictionary Access .......................................................................................................... 45
Modifying Schema Passwords ....................................................................................................... 46
Modifying Node Information ........................................................................................................... 46
Displaying Table, View, and Index Information ..................................................................................... 48
Displaying Table Information .......................................................................................................... 49
Creating Tables .............................................................................................................................. 50
Dropping Tables ............................................................................................................................. 51
Appending Columns to Tables ....................................................................................................... 51
Including Tables, Views, and Indexes ............................................................................................ 52
Excluding Tables, Views, and Indexes ........................................................................................... 53
Contents
Reviewing and Manipulating Schema Files .......................................................................................... 54
Locating RIS Client Processes ............................................................................................................. 55
Setting Modes and Enabling Databases ............................................................................................... 56
risplbck ....................................................................................................................................................... 59
risrecrd ....................................................................................................................................................... 61
risunlod....................................................................................................................................................... 63
Using risunlod with the Interactive Interface ......................................................................................... 65
Using rislod with the Command Line Interface ..................................................................................... 69
BNF Representation of risunlod Command Line Syntax ...................................................................... 70
Additional Information on RIS .................................................................................................................. 73
RDBMS Versions .................................................................................................................................. 73
UNION and UNION ALL Supported ...................................................................................................... 73
Objects of Different Owners within a Schema ...................................................................................... 73
Object Aliases ....................................................................................................................................... 74
Multi-user, Secure Schema................................................................................................................... 74
Shared Dictionaries ............................................................................................................................... 75
Dictionary Objects ................................................................................................................................. 75
Dictionary Views.................................................................................................................................... 75
Internationalization ................................................................................................................................ 76
File Formats for risunlod and rislod ........................................................................................................ 79
Format for Representing Schema Definitions ....................................................................................... 80
Format for Representing Table Definitions ........................................................................................... 81
Format for Representing Insert Into Statements ................................................................................... 81
Format for Representing Field Definitions ............................................................................................ 81
Format for Representing Table Data .................................................................................................... 83
Format for Representing Data File Specifications ................................................................................ 83
Format for Representing Index, View, and Privilege Definitions .......................................................... 84
File Format for Data Files ..................................................................................................................... 84
Use of Spaces and New Line Characters ............................................................................................. 84
BNF Representation of File Formats .................................................................................................... 85
Index ........................................................................................................................................................... 87
Preface PDS
This document provides command reference information and procedural instructions for the
Relational Interface System (RIS) RIS Utilities task.
Preface PDS
SECTION 1
Getting Started
The Intergraph Relational Interface System (RIS) is a generic interface to relational database
management systems (RDBMSs). RIS offers simultaneous connections to RDBMSs from many
vendors on dissimilar hardware platforms using numerous protocols. RIS makes an entire
network of databases available as if there were a single, local database.
During installation. the RIS utilities path is added to the system path environment
variable. By default, the utilities are loaded in c:\Program Files\Common
Files\Intergraph\risNN.nn\bin.
RIS Utilities
1. RIS Batch (see "risbatch" on page 11) - risbatch
Executes SQL statements in ASCII files.
2. RIS Clean Server (see "risclnsr" on page 13) - risclnsr
Cleans up some of the RIS dictionary tables.
3. RIS Decode (see "risdcode" on page 15) - risdcode
Prints the error message for a RIS error code.
4. RIS Data Types (see "risdtype" on page 17) - risdtype
Instructs RIS to interpret a column's data type in a different manner.
5. RIS Interactive (see "risgui" on page 19) - risgui
Interactively query databases using RIS.
6. Configure RIS Version - risintop
Described in the RIS Installation Guide for 32-Bit Applications.
7. RIS Loader (see "rislod" on page 23) - rislod
Transfers data from specially formatted files into new or existing schemas.
8. RIS Playback (see "risplbck" on page 59) - risplbck
Reads and executes files containing RIS commands generated by applications and
captured with the risrecrd utility.
9. RIS Record (see "risrecrd" on page 61) - risrecrd
Records all SQL statements and timing data into specially formatted files. Useful for
repeating long sequences when trying to uncover program problems.
10. RIS Unloader (see "risunlod" on page 63) - risunlod
Extracts data from a schema and places it into specially formatted files.
11. Upgrade Utility - risupgrd
Converts a schema (dictionary and schema file) from an earlier version of RIS to the current
version.
Getting Started
10
SECTION 2
risbatch
This utility is a simple, shell-callable program providing easy access to RIS and to underlying
databases. The primary purpose of this utility is batch execution of SQL statements.
Any SQL statement can be specified in an input file, provided that you have the proper
access.
All SQL statements must be terminated with a semicolon (;).
The RIS_PARAMETERS environment variable is used to specify the location of the parms
file.
Output is directed to stdout when the -o option is not used.
To start the risbatch utility, do one of the following:
Type risbatch in a Command Prompt window.
Choose RIS NN.nn from Start > Programs; then choose RIS Batch.
Usage
risbatch [-?] [-V] [-i <infile>] [-o <outfile>]
Flags
<none> - If you do not specify any command-line arguments, or if you start the utility by
selecting its icon from the Program Manager, the utility runs interactively and prompts for the
necessary information.
-? - Display usage information and exit.
-V - Display version information and exit.
-i <infile> - Specify the input file containing the RIS SQL statements. The locate client command
prompts for the client version.
-o <outfile> - Specify the output file where output is stored.
Type help at the risbatch prompt to get a list of available non-SQL commands.
Examples
In this example, risbatch is invoked with the input file input.sql and the output file output.sql:
risbatch -i input.sql -o output.sql
Files
c:\Program Files\Common Files\Intergraph\risNN.nn\bin\risbatch
c:\Program Files\Common Files\Intergraph\risNN.nn\parms
c:\Program Files\Common Files\Intergraph\risNN.nn\config\english\messages\ris.msg
c:\Program Files\Common Files\Intergraph\risNN.nn\config\english\messages\net.msg
c:\Program Files\Common Files\Intergraph\risNN.nn\config\english\messages\utl.msg
Status Returns
0 - Normal termination.
other - Abnormal termination.
11
risbatch
12
SECTION 3
risclnsr
This interactive utility deletes all nonessential records from the RIS dictionary tables. This utility
is provided to clean up when the server process has not been able to do so. The server fails to
clean up when it is killed or the machine is shutdown or rebooted.
Do not run this utility while the schemas to be cleaned are being accessed.
To start the risclnsr utility, do one of the following:
Type risclnsr in a Command Prompt window.
Choose RIS NN.nn from Start > Programs; then choose RIS Clean Server.
Choose RIS NN.nn from Start > Programs; then choose RIS Interactive. Choose the
Utilities button from the RIS Interactive form; then choose the RIS Clean Server button
from the Utilities form.
If you use another utility within RIS Interactive, you must choose the Restart button
before RIS Interactive is aware of any RIS parameter changes, or the creating or dropping of
schemas.
Usage
risclnsr [-?] [-V] schema[.password] [user[.password]]
[osuser[.password]]
The osuser[.password] option specifies the user and password for a secure schema. If the
schema specified is a secure schema, risclnsr prompts for the osusername and osusername
password (if one exists).
Flags
<none> - If you do not specify any command-line arguments, or if you start the utility by
selecting its icon from the Program Manager, the utility runs interactively and prompts for the
necessary information.
-? - Display usage information and exit.
-V - Display version information and exit.
Files
c:\Program Files\Common Files\Intergraph\risNN.nn\bin\risclnsr
c:\Program Files\Common Files\Intergraph\risNN.nn\config\english\messages\ris.msg
c:\Program Files\Common Files\Intergraph\risNN.nn\config\english\messages\net.msg
c:\Program Files\Common Files\Intergraph\risNN.nn\config\english\messages\utl.msg
Status Returns
0 - Normal termination.
other - Abnormal termination.
13
risclnsr
14
SECTION 4
risdcode
This utility prints error messages for RIS error codes.
To start the risdcode utility, do one of the following:
Type risdcode in a Command Prompt window.
Choose RIS NN.nn from Start > Programsr; then choose RIS Decode.
Choose RIS NN.nn from Start > Programs; then choose RIS Interactive. Choose the
Utilities button from the RIS Interactive form; then choose the RIS Decode button from the
Utilities form.
If you use another utility within RIS Interactive, you must choose the Restart button
before RIS Interactive is aware of any RIS parameter changes, or the creating or dropping of
schemas.
Usage
risdcode [-?] [-V] [<error code>]
Flags
<none> - If you do not specify any command-line arguments, or if you start the utility by
selecting the utility from Start > Programs, the utility runs interactively and prompts for the
necessary information.
-? - Display usage information and exit.
-V - Display version information and exit.
<error code> - Decimal, octal, or hexadecimal error code.
Examples
To get the error message corresponding to an error code of 100, key in one of the following:
risdcode 100 (Using decimal.)
risdcode Ox64 (Using hexadecimal.)
risdcode 0144 (Using octal.)
risdcode
You are prompted to key in the value to be decoded. In this case, key in 100.
Files
c:\Program Files\Common Files\Intergraph\risNN.nn\bin\risdcode
c:\Program Files\Common Files\Intergraph\risNN.nn\config\english\messages\ris.msg
c:\Program Files\Common Files\Intergraph\risNN.nn\config\english\messages\net.msg
c:\Program Files\Common Files\Intergraph\risNN.nn\config\english\messages\utl.msg
Status Returns
0 - Always zero.
15
risdcode
16
SECTION 5
risdtype
This interactive utility lets you instruct RIS to interpret the data type of a column differently and
modify the size of a RIS_BLOB/RIS_TEXT data type.
The variety of data types in database systems permits multiple mappings of database data types
to ANSI standard data types. When a schema is created, or a table is included in a schema, RIS
chooses one interpretation of a data type. This utility lets you instruct RIS to interpret the data
type of a column differently by prompting you for the schema name, username (for secure
schemas), password (if one exists), table names, column names, and new data types.
The environment variable RIS_LANGUAGE specifies the language that RIS uses for parsing
and error messages. The default is English. Consult the file c:\Program Files\Common
Files\Intergraph\risNN.nn\config\langs for other values.
To start the risdtype utility, do one of the following:
Type risdtype in a Command Prompt window.
Choose RIS NN.nn from Start > Programs; then choose RIS Data Types.
Choose RIS NN.nn from Start > Programs; then choose RIS Interactive. Choose the
Utilities button from the RIS Interactive form; then choose the RIS Data Types button from
the Utilities form.
If you use another utility within RIS Interactive, you must choose the Restart button
before RIS Interactive is aware of any RIS parameter changes, or the creating or dropping of
schemas.
Example:
c:\risdtype
Enter a schema (<CR> to exit):sch1
Enter a table or view name (or ? for a list of names):
>blob_table
Pos
Column
type
type-string
len
prec
scale
Name
1
c1
15
ris_blob
0
null
null
null
YES
Do you wish to modify this column? <y(es), n(o), d(one with table)>>yes
0 Unsupported
1 Character
2 RIS_BLOB
6 RIS_TEXT
Choose a data type from those listed (enter the number) >>2
Current maximum ris_blob length is:0
Current maximum ris_blob length is:10000
Current status for nullable is YES, nulls are allowed
Are null values allowed? <y(es), n(o)> >>yes
Column definitions modified for object sch1.blob_table:
Pos
Column Name type
type-string
len
prec
scale
1
c1
15
ris_blob
10000 null
null
null
YES
17
risdtype
Is this correct? <y(es), n(o), q(uit)> >>yes
Usage
risdtype [-?] [-V]
Flags
<none> - If you do not specify any command-line arguments, or if you start the utility by
selecting its icon from the Program Manager, the utility runs interactively and prompts for the
necessary information.
-? - Display usage information and exit.
-V - Display version information and exit.
Files
c:\Program Files\Common
c:\Program Files\Common Files\Intergraph\risNN.nn\config\english\messages\ris.msg
c:\Program Files\Common Files\Intergraph\risNN.nn\config\english\messages\net.msg
c:\Program Files\Common Files\Intergraph\risNN.nn\config\english\messages\utl.msg
Status Returns
0 - Normal termination.
1 - Abnormal termination.
18
SECTION 6
risgui
This utility lets you interactively perform RIS queries. To start the risgui utility, do one of the
following:
Type risgui in a Command Prompt window.
Choose RIS NN.nn from Start > Programs; then choose RIS Data Types.
See Also
Exiting the risgui Utility (on page 20)
Performing Queries in the risgui Utility (on page 20)
Options (on page 21)
Utilities (on page 21)
Restart (on page 21)
Set (on page 22)
Show (on page 22)
19
risgui
History File
When you execute a query, the risgui utility saves the SQL statement in the history file. To
determine the name of the history file, the ris utility uses the file:
1. Is specified by the RIS_HISTORY_FILE environment variable.
2. ris.his in the directory specified by the HOME environment variable, if the
RIS_HISTORY_FILE environment variable is not defined.
3. ris.his in the directory from which you started the risgui utility, if the HOME environment
variable is not defined.
When risgui saves a query in the history file, you can go back to the same query later and
execute it again, or edit the SQL statement to use it as the basis for a new query. Select the
Previous or Next buttons to display the queries in the history file.
Select the Search button to perform a search in the history file.
1. Key a search term into the Search String field.
2. Select a search direction (Up or Down).
3. Select the Find Next button.
20
To save the current query (shown in the Query field) to a file, select the Save button.
To load a previously saved query, select the Open button.
To save the results of the current query, select the Save Results button.
risgui
Options
The Options button modifies the behavior of query results.
1. Select the Options button.
2. To specify the behavior for query results that do not fit in the Results field, select one of the
following:
Fetch by screenful (Append) - fetch one full screen of results. When you select the
Continue button, append the next full screen to the results.
Fetch by screenful (Overwrite) - fetch one full screen of results. When you select the
Continue button, discard the results and get the next full screen.
Fetch all rows - fetch all results without pausing.
3. Select the OK button to accept the settings or select the Cancel button to reject them.
Utilities
The Utilities button lets you start the other RIS utilities from within the risgui utility.
1. Select the Utilities button.
In Windows 95, only RIS Manager is available.
2. Select one of the following buttons to start a utility:
RIS Manager - starts the rismgr utility (see "rismgr" on page 35).
RIS Loader - starts the rislod utility (see "rislod" on page 23).
RIS Unloader - starts the risunlod utility (see "risunlod" on page 63).
RIS Record - starts the risrecrd utility (see "risrecrd" on page 61).
RIS Playback - starts the risplbck utility (see "risplbck" on page 59).
RIS Clean Server - starts the risclnsr utility (see "risclnsr" on page 13).
RIS Clean Server - starts the risclnsr utility.
RIS Data Types - starts the risdtype utility (see "risdtype" on page 17).
RIS Decode - starts the risdcode utility (see "risdcode" on page 15).
Restart
While you are running the RIS Interactive utility, you can run other RIS utilities; however, if you
modify the RIS parameters with the other utilities, or create or drop a schema, the RIS
Interactive utility is not aware of the changes.
Select the Restart button to restart risgui and make it aware of your changes. Your selection of
modes, enabled databases, and default schema is not altered.
21
risgui
Set
The Set button sets RIS modes and enables the databases.
1. Select the Set button.
2. Select the modes for the risgui utility:
ANSI Mode
Verify Mode
Autocommit
Blank Strip Mode
Autorename
Refer to the RIS SQL User's Guide for 32-Bit Applications for more information on the RIS
modes.
3. Select the databases to enable:
ORACLE
MSSQL
Show
The Show button gives you additional information about RIS on your system.
1. Select the Show button.
2. Select one of the following buttons:
Parameters - shows the settings in your parameters file.
Transactions - shows the schemas in transaction.
About - shows version and copyright information.
22
SECTION 7
rislod
You must understand the risunlod utility before using the rislod utility.
The rislod utility permits the transfer of schema information between external ASCII files and
RIS schemas by loading schema information from external files into RIS schemas.
rislod
Reads schema information from the main external file and data files (if any) and restores
them in the form of RIS schemas.
Restores only user-requested schema information into RIS schemas.
Lets information about multiple schemas be stored in the same external main file.
May create two files to report the loading status: the log file reports successful loading and
the bad file reports unsuccessful loading.
The rislod and risunlod utilities are not designed for use as backup utilities. The following are
some reasons for not using rislod and risunlod as backup utilities:
If a view was created in the database (not with RIS), RIS cannot unload the definition of the
view.
If you drop a schema and then recreate the schema, and there were existing views, RIS
cannot load the definition of the view because RIS lost the definition when you dropped the
schema.
In certain cases data types are mapped slightly differently in ORACLE databases. ORACLE
uses numeric data types, and RIS uses integer, smallint, real, and double. If you create a
column of RIS data type real, it is mapped to a float(21) ORACLE data type. If you drop the
schema, then recreate the schema, RIS maps the float(21) in ORACLE to a RIS double data
type.
For these and further reasons, you should use the database's utilities to back up data
correctly.The environment variable RIS_LANGUAGE specifies the language that RIS uses for
parsing and error messages.The default is English. Consult the file riscli\config\langs for other
values.
The representation of information must comply with the format defined in the section File
Formats for risunlod and rislod (on page 79).
The following figure represents the functional mechanisms of rislod and shows the input
requirements and output generated.
23
rislod
Data for ris_blob and ris_text columns cannot be loaded; however, you can have ris_blob
and ris_text columns in a create table statement.
To start the rislod utility, do one of the following:
Type rislod in a Command Prompt window.
Choose RIS NN.nn from Start > Programs; then choose RIS Loader icon:
Choose RIS NN.nn from Start > Programs; then choose RIS Interactive.Choose the
Utilities button from the RIS Interactive form; then choose the RIS Loader button from the
Utilities form.
If you use another utility within RIS Interactive, you must choose the Restart button
before RIS Interactive is aware of any RIS parameter changes, or the creating or dropping of
schemas.
Usage
rislod [-?] [-V] [-n] [-p] [-e <db_list>] [-m {}] [-i <filename>] [-b
<filename>] [-d <delimiter>] [-c <commit>] [-s <schemas>] [-f <filename>]
Flags
<none> - If you do not specify any command-line arguments, or if you start the utility by
selecting its icon from the Program Manager, the utility runs interactively and prompts for the
necessary information.
-? - Display usage information and exit.
-V - Display version information and exit.
-n - Set ANSI mode off. ANSI mode is on by default. Refer to the set mode statement in the
RIS SQL User's Guide for 32-Bit Applications for more information.
-p - Preserve blanks. By default, rislod strips trailing blanks from character data. Refer to the
set mode statement in the RIS SQL User's Guide for 32-Bit Applications for more information.
-e <db_list> - Enable the database specified in the <db_list>. All databases are enabled by
default. Refer to the set enable database statement in the RIS SQL User's Guide for 32-Bit
Applications for more information.
-m {} - Specify the file mode for output files. The w overwrites an existing file, the a appends to
an existing file, and the e returns an error if an output file with the specified name exists.
-I <filename> - Specify the main input ASCII file from which RIS schema information is loaded.
The default main filename is ris.dmp.
-l <filename> - Specify the log file into which RIS schema status information is recorded. The
default log filename is ris.log.
-b <filename> - Specify the bad file into which rejected RIS schema information is dumped. The
default bad filename is ris.bad.
-d <delimiter> - Specify the character for delimiting column values of character type while
loading rows in a table. A single quotation mark (') is the default delimiter character.
-c <commit> - Specify the commit interval value that informs the loader to commit after inserting
<commit> number of rows for a table. The default <commit> value is 25.
-s<schemas> - Specify schema and schema-related information, such as tables, indexes,
views, and grants. Alternatively, you can specify this information in a specification file.
-f <filename> - Specify the name of the specification file for <schemas>. This option cannot be
used with the -s option.
See the section Using rislod with the Command Line Interface (on page 32) for more detailed
information.
24
rislod
Files
c:\Program Files\Common Files\Intergraph\risNN.nn\bin\rislod
c:\Program Files\Common Files\Intergraph\risNN.nn\parms
c:\Program Files\Common Files\Intergraph\risNN.nn\config\english\messages\ris.msg
c:\Program Files\Common Files\Intergraph\risNN.nn\config\english\messages\net.msg
c:\Program Files\Common Files\Intergraph\risNN.nn\config\english\messages\utl.msg
Status Returns
0 - Normal termination.
1 - Abnormal termination.
25
rislod
impose a strict order on the information stored in the main file because it often postpones the
loading of an index, view, or privilege until its references are loaded.
There are three ways to interact with rislod: using the Interactive Interface, the Command Line
Interface, or the Embedded Programming Function Interface.
Interactive Interface - When rislod is invoked without any command line arguments, interactive
prompts display. You are prompted for required inputs as the main external file is scanned.
See the section Using rislod with the Interactive Interface (on page 28) for more information
about the meanings of these prompts and the corresponding actions taken by rislod.
Command Line Interface - When rislod is invoked with arguments, the rislod command line
interface activates. This interface lets you specify, in a single command, the responses to
various prompts that would have been generated if rislod had been invoked interactively.
Errors encountered during parsing are not reported in the log or bad file, and rislod terminates
abnormally.
See the section Using rislod with the Command Line Interface (on page 32) for more information
about the syntax for constructing a rislod command and the semantics of the command.
Embedded Programming Function Interface - The RIS_loader function provides the
functionality of rislod in an embedded program when you call the function and pass the
appropriate structures. Refer to the RIS Programmer's Guide for 32-Bit Applications for more
information.
See Also
The Log File (on page 26)
The Bad File (on page 27)
Loading Index, View, and Privilege Definitions (on page 27)
Using rislod with the Interactive Interface (on page 28)
Using rislod with the Command Line Interface (on page 32)
BNF Representation of rislod Command Line Syntax (on page 33)
26
rislod
Number of rows loaded unsuccessfully
Index section, containing:
Table name
Number of indexes loaded successfully for this table
Number of indexes loaded unsuccessfully for this table
View section, containing:
View name
Whether the view loaded successfully or unsuccessfully
Grants Summary
For each schema loaded:
Schema name and table or view name
Number of grants loaded successfully for this table or view
Number of grants loaded unsuccessfully for this table or view
Miscellaneous
Date and time of the run
Total elapsed time
27
rislod
definition is stored in a temporary file. After rislod has tried to load every statement in the
schema once, it attempts to load the indexes from the temporary file again. The same thing
happens to a view definition that could not be loaded the first time because its references did not
exist. rislod continuously loads these views in the temporary file until all of them have been
loaded or until no more views can be loaded successfully.
When rislod fetches a privilege definition in a schema, it is broken down into several grant
statements, one for each grantee specified. rislod tries to load each of the new grant
statements If RIS notifies rislod that the statement could not be loaded, the grant statement is
stored in a temporary file along with the information about the schema to which it belongs. After
rislod tries to load every statement in the files at least once, rislod tries to load the grant
statements in the temporary file again. rislod continuously loads these grant statements until
either all of them have been loaded or no more grant statements can be loaded successfully. In
this approach you may notice the breakdown of a grant statement and notice that some of the
grant statements are loaded at the end of a rislod session.
28
rislod
4. File mode of all output files? overwrite(w) append(a) error out if exists(e) :[e] >
This prompt lets you set the file mode for log and bad files. The file mode affects the log
and bad files only. The default is e, error out mode.
Do one of the following:
Press ENTER to accept the default; when you are prompted for the log and bad
filenames, rislod prompts you to quit if the files you specify already exist.
Select w to overwrite the existing log and bad files.
Select a to append to the existing log and bad files.
5. Main file for loading :[ris.dmp] >
This prompt lets you specify the name of the main file for loading. The default name for the
main file is ris.dmp.
Do one of the following:
Press ENTER to accept the default filename.
Enter another filename for the main file.
6. Log file :[ris.log] >
This prompt lets you specify the name of the log file for loading. The default name for the log
file is ris.log.
Do one of the following:
Press ENTER to accept the default filename.
Enter another filename for the log file.
If you selected e for error out mode at the prompt File mode of all output files?, and a file
with the name you specify exists, the message Log File already exists is displayed. You are
prompted:
Quit risload? (y/n):[n] >
Do one of the following:
Press ENTER to accept the default. You are again prompted to enter a name for the
log file; key in a new filename.
Select y to quit rislod.
7. Bad file :[ris.bad] >
This prompt lets you specify the name of the bad file for loading. The default name for the
bad file is ris.bad.
Do one of the following:
Press ENTER to accept the default filename.
Enter another filename for the bad file.
If you selected e for error out mode at the prompt File mode of all output files?, and a file
with the name you specify exists, the message Bad File already exists is displayed. You
are prompted:
Quit risload? (y/n):[n] >
Do one of the following:
Press ENTER to accept the default. You are again prompted to enter a name for the
bad file; key in a new filename.
Select y to quit rislod.
8. Enter delimitation used in the files for loading: ['] >
This prompt lets you specify the delimiter to use for enclosing character values of variable
lengths to use in the main and data files.
29
rislod
You cannot use the space character as a delimiter.
The files generated by risunlod use single quotation marks (') for delimitation. This feature of
rislod lets you use files not prepared by risunlod for loading as long as the other parts of the
files comply with the file format used by rislod.
Do one of the following:
Press ENTER to accept the default.
Enter another delimitation character.
9. Enter commit interval :[25] >
The commit interval lets you commit the insertion of rows in a table after the specified
commit interval value. The default is 25 (commit after inserting 25 rows in a table).
Do one of the following:
Press ENTER to accept the default.
Enter another commit interval.
10. Which schemas should be loaded? all(a) or prompted - optionally transfer into
existing schema(p) :[a] >
This prompt lets you choose between loading all the schemas or only selected schemas
from the main file. The default is a for all schemas.
Do one of the following:
Press ENTER to load all the schemas from the main file.
Prompts let you choose how to load tables, indexes, views, and privilege definitions.
These prompts appear once, after the prompt for the schema, if you choose to load all
the schemas in the main file.
Select p and rislod generates a list of schemas and prompts you before loading each
schema. (After each schema is selected, you are prompted for how to load tables,
indexes, views, and privilege definitions for that schema.)
Load schema <schname>(y/n) :[y] >
Do one of the following:
Select y to load the specified schema. If you select p at the prompt Which schemas
should be loaded? and you select y at this prompt, you are prompted to optionally load
into another existing schema:
To Transfer <schema>'s items into another existing schema...
Enter an existing schema name :[<return>]
Do one of the following:
Press ENTER if you do not want to use another existing schema; rislod loads the
schema into the schema name specified in the main file.
Enter the name of an existing schema. rislod then prompts for the username, user
password, and schema password, if necessary, for the specified schema
Select n if you do not want to load the specified schema.
rislod lets you rename schemas only if the prompted (p) selection was made at the
Which schemas should be loaded? prompt.
If the schema is a secure schema, you are prompted for the database username, the
database username password, the operating system username, and the operating system
username password. If the schema has a password, you are prompted for the schema
password.
Passwords are not echoed to the screen.
11. Which tables should be loaded? all(a) prompted(p) none(n) :[a] >
30
rislod
Do one of the following:
Press ENTER to accept the default and load all the tables in the schema.
Select p if you want to be prompted for each table.
Select n if you do not want to load any tables.
If you select a or p at the prompt Which tables should be loaded? the following prompt
appears next:
Both definitions and data(b) definitions only(o):[b] >
This prompt lets you decide whether to load both the definitions and data of the tables in
the schema or load only the definitions.
Do one of the following:
Press ENTER to accept the default and load both table definitions and data.
Select o to load table definitions only.
rislod loads either fixed or variable formatted table data. If only the definitions
exist for some or all of the tables in a schema, choosing to load both definitions and
data does not cause any problem to rislod. These tables are created without data in
them. Similarly, if both the definitions and data exist for some or all of the tables in a
schema, choosing the second selection does not cause problems. These table data
are discarded and the string only definitions is placed in the log file.
Select n if you do not want to load any tables.
If you select b at the prompt Both definitions and data(b) definitions only(o) the
following prompt appears:
Continue loading into a table even though that table exists (y/n):[n] >
When loading a table definition of a table that already exists, an error message is
generated stating that a table/view with this name already exists. Whether or not the
data is loaded into the existing table depends on the answer to this prompt.
Do one of the following:
Press ENTER to accept the default and data are not loaded into an existing table.
Select y to load data into an existing table.
If y is selected for the previous prompt, the following prompt is displayed:
Clear existing data from table before loading(y/n) :[n] >
Do one of the following:
Press ENTER to accept the default and keep existing data.
Select y to delete all rows from this table before loading data from the main file.
12. Which index definitions should be loaded? all(a) prompted(p) none(n): [a] >
Do one of the following:
Press ENTER to accept the default and load all index definitions.
Select p and rislod generates a list of indexes and prompts for each index definition:
Load definition <definition>(y/n):[y] >
Do one of the following:
Press ENTER to load the specified definition.
Select n if you do not want to load the index definition.
Select n and no index definitions are loaded.
13. Which views should be loaded? all(a) prompted(p) none(n):[a] >
Do one of the following:
31
rislod
Examples
rislod -i \dir1\dir2\mainfile -d\" -l load.log
..\dir3\specfile -n -mw -e rdb informix -c 15
-b load.bad-f
32
rislod
Additional Options
-n - ANSI mode off.
-e - Enable databases listed after this option.
-m - Set the file mode (w, a, or e) for the outputfiles (such as log and bad files).
-c - Commit interval.
rislod -s sch1.create_sch_passwd1.user_passwd1 all
-s sch2 .create_sch_passwd2 .user_passwd2 new table with data all
-s sch3 clear table with data t1 t2 grant all
-s sch4 rename sch5 .sch5pass table t1 index t2 view v1grant t2 v2 sch.t3
sch.v3
rislod lets you specify up to three passwords after a schema name (schema password, osuser
password, and user password). Passwords are necessary if they are not already stored in the
main file. For schema sch2, data is loaded only into newly created tables. For schema sch3,
data is loaded into tables t1 and t2 after deleting previously inserted rows even if it already
exists before loading. For schema sch4 all the following items are loaded into existing schema
sch5. No data is loaded into table t1, but index definitions on table t1 and privilege definitions on
table t1 and view view1 are loaded.
The specification file format is the same for both rislod and risunlod.
33
rislod
<file_mode> ::= w | a | e
w represents overwrite file mode
a represents append file mode
e represents return error
<info_tobe_load> ::= all
|
{
[
{
table
|
[{| clear}] table with data
}
<table_tobe_load>
]
[view <view_tobe_load>]
[index <index_tobe_load>]
[grant <grant_tobe_load>]
}
<table_tobe_load> ::= all | {...]}
<view_tobe_load> ::= all | {...]}
<index_tobe_load> ::= all | {...]}
<grant_tobe_load> ::= all
|
{
{
[<schema>.]<table>|[<schema>.]<view>
}
[ ...]
}
The following is the BNF representation of the format for a specification file.
<spec_file_format> ::= {[.<create_sch_passwd>] [.<user_passwd>]
<info_tobe_load>}[;<new_line>...]
34
SECTION 8
rismgr
This utility creates, changes, and drops RIS schemas. You can also use it to display
information about existing schemas. To start the rismgr utility, do one of the following:
Type rismgr in a Command Prompt window.
Choose RIS NN.nn from Start > Programs; then choose RIS Schema Manager.
Choose RIS NN.nn from Start > Programs; then choose RIS Interactive. Choose the
Utilities... button from the RIS Interactive form; then choose the RIS Manager... button from
the Utilities form.
If you use another utility within RIS Interactive, you must choose the Restart button
before RIS Interactive is aware of any RIS parameter changes, or the creating or dropping of
schemas.
Usage
rismgr
Files
c:\Program Files\Common Files\Intergraph\risNN.nn\bin\rismgr
c:\Program Files\Common Files\Intergraph\risNN.nn\config\english\forms\v5forms\*
c:\Program Files\Common Files\Intergraph\risNN.nn\parms
c:\Program Files\Common Files\Intergraph\risNN.nn\config\english\messages\ris.msg
c:\Program Files\Common Files\Intergraph\risNN.nn\config\english\messages\net.msg
c:\Program Files\Common Files\Intergraph\risNN.nn\config\english\messages\utl.msg
Status Returns
0 - Normal termination.
1 - Abnormal termination.
See Also
RIS Schema Manager (on page 36)
Schema Definition (on page 37)
Displaying Table, View, and Index Information (on page 48)
Reviewing and Manipulating Schema Files (on page 54)
Locating RIS Client Processes (on page 55)
Setting Modes and Enabling Databases (on page 56)
35
rismgr
Operating Sequence
1. Activate the RIS Schema Manager.
Choose the button from the RIS Schema Manager dialog box for the function you want to
use. The RIS Schema Manager functions are described briefly in the following list. See
the section listed for a complete description.
Schema Definition - Provides additional functions and dialog boxes for defining schemas.
See the section Schema Definition (on page 37).
Data Definition - Provides additional functions and dialog boxes that manipulate tables,
views, and indexes. See the section Displaying Table, View, and Index Information (on page
48).
Schema File - Lets you review and manipulate schema files. See the section Reviewing
and Manipulating Schema Files (on page 54).
Locate Client - Lets you review and specify the location of a RIS client process. See the
section Locating RIS Client Processes.
Set - Lets you set ANSI, autocommit, autorename, blankstrip, and verify modes on or off
and enable different databases. See the section Setting Modes and Enabling Databases (on
page 56).
2. Do one of the following:
Choose the Reset button to erase the subordinate dialog boxes.
The RIS Schema Manager rereads the RIS schemas file.
36
rismgr
Choose the Close button to end the RIS Schema Manager session.
Choose the Help button to obtain RIS Schema Manager help.
Schema Definition
The Schema Definition dialog box lets you initiate functions to display schema information,
create and drop schemas, access secure schemas and dictionaries, and modify schema
passwords, node information, and DB2 passwords.
Operating Sequence
1. Choose the Schema Definition button from the RIS Schema Manager dialog box.
The dialog box has eight buttons, each letting you initiate a particular function.
2. Do one of the following:
Choose the button from the Schema Definition dialog box for the function you want to
use. The Schema Definition functions are described briefly in the following list. See
the section listed for a complete description.
Schema Information - Displays information about a specified schema. See the
section Displaying Schema Information (on page 38).
Create Schema - Creates schemas. See the section Creating Schemas (on page 39).
Drop Schema - Drops schemas. See the section Dropping Schemas (on page 43).
Secure Schema Access - Grants and revokes access to a secure schema. See the
section Granting/Revoking Access Privileges to Secure Schemas (on page 43).
Dictionary Access - Grants and revokes dictionary access to a schema. See the
section Obtaining Dictionary Access (on page 45).
Modify Schema Password - Modifies the schema password. See the section Modifying
Schema Passwords (on page 46).
Modify Node Information - Modifies node information. See the section Modifying Node
Information (on page 46).
Modify DB2 Password - Modifies the DB2 password. See the section Modify DB2
Password Form
Choose the Reset button to dismiss the subordinate dialog boxes.
Choose the Close button to dismiss the Schema Definition dialog box.
Choose the Help button to obtain RIS Schema Definition help.
37
rismgr
See Also
Displaying Schema Information (on page 38)
Creating Schemas (on page 39)
Dropping Schemas (on page 43)
Granting/Revoking Access Privileges to Secure Schemas (on page 43)
Obtaining Dictionary Access (on page 45)
Modifying Schema Passwords (on page 46)
Modifying Node Information (on page 46)
Modify DB2 Password Form
Operating Sequence
1. Choose the Schema Information button from the Schema Definition dialog box.
The Schema Information dialog box appears and displays information about the selected
schema (if one has been selected from the RIS Schema Manager dialog box).
2. Do one of the following if the schema you want is not already the selected schema:
In the Schema Name box, type a schema name.
Select a schema from the Schema Name list on the RIS Schema Manager dialog box.
38
rismgr
Dictionary Owner - Displays the user who owns the dictionary.
Database Type - Displays the database type (for example, MSSQL or ORACLE).
3. To dismiss the Schema Information dialog box, click Close.
Creating Schemas
The Create Schema dialog box creates new RIS schemas and corresponds directly to the RIS
create schema statement. The database-specific information on the Create Schema dialog box
can be entered in three ways:
By entering the information directly in the boxes. If the schema is being created on a
database unknown to RIS, this is the only alternative.
By selecting an existing schema from the RIS Schema Manager dialog box. The
database-specific information about that schema is entered into the Create Schema dialog
box. This method is particularly convenient when creating additional schemas on a
database.
By selecting the Display Databases button. A dialog box listing all the known RIS
databases appears. Selecting one of these databases enters information about that
database into the Create Schema dialog box.
Operating Sequence
1. Select the Create Schema button from the Schema Definition dialog box.
39
rismgr
box and its value is replaced with the value of the Network Protocol box below it. The value
that was originally selected is moved to the bottom of the list.
Nodename or Address - Specify a nodename, an Internet address, or an address
appropriate for the protocol of the machine where the RIS data server is located. Enter a
value or click the Get Client Address button.
Get Client Address - Click this button to enter the addresses of the client machine in the
Nodename or Address boxes. This is useful when the RIS client and the RIS data server
are on the same machine.
Database Username - Type the database username.
(Database Username) Password - Type a password for the database username. The No
Echo/Echo button causes the password to not display (No Echo) or display (Echo) when it is
entered.
Include Database User's Tables/Views - Click this button to toggle between Yes to include
the database user's tables and views, or No not to include the database user's tables and
views.
OS Type - From the list, select the operating system type on which the RIS data server is
running.
Use Existing Dictionary - Click this button to toggle between No (the default) and Yes.
You must already have permission from the dictionary owner to use an existing dictionary.
Dictionary Owner - Type a user who owns a dictionary in the particular database.
3. Do one of the following:
Select a database type from the Database Type list. If the selected database type
requires additional information, boxes to enter that information are displayed when you
select the database type.
40
rismgr
The Databases dialog box appears.
Databases known to RIS are listed on this dialog box. Select a database from the dialog
box. Controls containing information specific to the database selected are shown on the
Create Schema dialog box.
4. See the section specific to the type of database on which you are creating the schema for
instructions on filling in the DBMS-dependent boxes.
See Also
Creating Schemas (ORACLE) (on page 41)
Creating Schemas (Microsoft SQL Server) (on page 42)
Operating Sequence
1. Enter the appropriate values for the ORACLE-dependent controls. The following list
explains these controls.
Database Name - Enter the system identifier (SID) of the ORACLE database. The SID
should be in the correct format for ORACLE.
Database Management System Location - Enter the ORACLE home path (where
ORACLE is installed).
OS Username - Enter a valid operating system log-in name on the server machine.
Password - Enter the operating system log-in password, if any.
41
rismgr
For a given ORACLE SID, all schemas created using that SID must have the same
operating system username and password combination.
2. Do one of the following:
To create the schema, click the Apply button.
To clear the form, click the Reset button.
To drop previously created RIS dictionary objects (such as RIS tables, views, indexes,
and schema privileges) before creating the new schema, click the Force button.
To dismiss the form without creating a schema, click the Close button.
Operating Sequence
1. Enter the appropriate values for the Microsoft SQL Server-dependent controls. The
following list explains these controls.
Database Name - Enter the name of the database the schema accesses.
Database Management System Location - Enter the path where SQL Server is
installed. See the README.TXT file delivered with the RISMSFDS product for more
information. This information is not required for all servers.
OS Username - Enter a valid operating system log-in name on the server machine.
Password - Enter the operating system log-in password, if any. The No Echo/Echo
button causes the password not to display (No Echo) or to display (Echo) when it is
clicked.
DSQUERY - Currently this field is not used.
IFILE - Enter the name of the interfaces file for the schema. By default, RIS uses the
SQL Server interfaces file named interfaces. This information is not required for all
servers.
2. Do one of the following:
To create the schema, click the Apply button.
To clear the dialog box, click the Reset button.
To drop previously created RIS dictionary objects (such as RIS tables, views, indexes,
and schema privileges) before creating the new schema, click the Force button.
42
rismgr
To dismiss the dialog box without creating a schema, click the Close button.
Dropping Schemas
The Drop Schema dialog box drops schemas using the information you specify and
corresponds directly to the RIS drop schema statement.
Operating Sequence
1. Choose the Drop Schema button from the Schema Definition dialog box.
The Drop Schema dialog box appears and displays the name of the selected schema (if one
has been selected from the RIS Schema Manager dialog box).
2. Do one of the following, if the schema you want to drop is not already the selected schema:
In the Schema Name box on the Drop Schema dialog box, type the schema name.
From the Schema Name list on the RIS Schema Manager dialog box, select a schema.
If the schema is a secure schema, a dialog box appears. Enter the database username,
database password, operating system username, and operating system password in the
dialog box, if displayed.
3. Do one of the following:
To drop the schema, click the Apply button.
To drop previously created RIS dictionary objects (such as RIS tables, views, indexes,
and schema privileges), click the Force button.
The Force button removes the schema regardless of who is using it.
To dismiss the Drop Schema dialog box without dropping the schema, click the Close
button.
Choose the Help button to obtain Drop Schema help.
Operating Sequence
1. Select the Secure Schema Access button from the Schema Definition dialog box.
43
rismgr
The Secure Schema Access dialog box appears.
2.
3.
4.
5.
6.
44
If a schema has already been selected from the RIS Schema Manager dialog box, this
schema information appears on the Secure Schema Access dialog box.
Do one of the following, if the schema you want is not already the active schema:
Select a schema from the Schema Name list on the RIS Schema Manager dialog box.
Enter a name into the Schema Name box to display information about a schema.
A dialog box appears. Enter the database username, database password, operating
system username, and operating system password in the dialog box.
Click the Action button to toggle between granting and revoking secure schema access.
Click the Privilege button to toggle between granting and revoking resource and connect
privileges.
Do one of the following:
Enter a username in the Selected User box.
Select a user from the Access Users list.
Select a user from the All Users list.
Do one of the following:
To grant or revoke privileges to the secure schema, click the Apply button.
To dismiss the Secure Schema Access dialog box without altering schema access,
click the Close button.
Choose the Help button to obtain help with granting and revoking schema access
privileges.
rismgr
Operating Sequence
Select the Dictionary Access button from the Schema Definition dialog box.
1. Do one of the following, if the schema you want is not already the selected schema:
Select a schema from the Schema Name list on the RIS Schema Manager dialog box.
Type a name in the Schema Name box to display information about a schema.
If the schema is a secure schema, a dialog box appears.
Enter the database username, database password, operating system username, and
operating system password in the dialog box, if necessary.
2. Click the Action button to toggle between granting and revoking access.
3. Do one of the following:
Enter the name of the user to be granted or revoked access in the Selected User box.
Select a name from the Access Users list.
Select a name from the All Users list.
4. Do one of the following:
To grant or revoke dictionary access, click the Apply button.
To dismiss the dialog box without granting or revoking dictionary access, click the Close
button.
Choose the Help button to obtain help with granting and revoking dictionary access
privileges.
45
rismgr
Operating Sequence
1. Select the Modify Schema Password button from the Schema Definition dialog box.
2. Do one of the following, if the schema you want is not already the selected schema:
Select a schema from the Schema Name list on the RIS Schema Manager dialog box.
Type a name in the Schema Name box to display information about a schema.
3. Type the new password into the New Password box.
If the schema is a secure schema, the Username Password dialog box appears.
Type the database username, database password, operating system username, and
operating system password in the dialog box, if necessary.
4. Do one of the following:
To modify the schema password, click the Apply button. You must click the Apply
button after each session to alter the schema.
To dismiss the dialog box without altering the schema, click the Close button.
To obtain help with modifying schema passwords, click the Help button.
Operating Sequence
1. Select the Modify Node Information button from the Schema Definition dialog box.
46
rismgr
The Modify Node Information dialog box appears.
2. Select a schema from the Schema Name list on the RIS Schema Manager dialog box or
type a schema name in the Schema Name box to display information about a schema, if
there is no selected schema.
3. Choose the Modify Node button from the dialog box. The current addresses display in the
Nodename or Address boxes.
Type the new names or addresses in the boxes. This action can also be used to change the
order of the protocols.
4. Choose the Modify DB User Password button. The database user associated with the
schema appears in the DB Username box. This is a read-only box.
5. Type the database user password in the Password box. The No Echo/Echo button causes
the password to not display (No Echo) or display (Echo) when it is entered.
This action does not change the user's operating system account password. It
changes only the RIS product copy of the user password. Typically, this command is
executed after users change their operating system account passwords. Otherwise an
error occurs.
6. Choose the Modify OS User & Password button. The operating system user associated
with the schema appears in the OS Username box. Type a new username.
7. Type the operating system user password in the Password box. The No Echo/Echo button
causes the password to not display (No Echo) or display (Echo) when it is entered.
8. Do one of the following:
To alter the schema, click the Apply button. You must select the Apply button after
each session to alter the schema.
To dismiss the dialog box without altering the schema, click the Close button.
To obtain help with modifying node information, click the Help button.
47
rismgr
Operating Sequence
1. Choose the Data Definition button from the RIS Schema Manager dialog box.
2. If the schema you want is not already the selected schema, do one of the following:
From the RIS Schema Manager dialog box, select a schema from the Schema Name
list.
In the Schema Name box, type a name.
3. Do one of the following:
Click the button for the action you want to perform. See the section for the action
chosen for further instructions.
48
rismgr
Click the Close button to dismiss the Data Definition dialog box.
Click the Help button to obtain further information about the Data Definition dialog box.
See Also
Displaying Table Information (on page 49)
Creating Tables (on page 50)
Dropping Tables (on page 51)
Appending Columns to Tables (on page 51)
Excluding Tables, Views, and Indexes (on page 53)
Operating Sequence
1. Choose the Table Info button from the Data Definition dialog box.
2. To choose a table, type the table name in the Table Name box or select the table from the
Type/Name list on the Data Definition dialog box.
49
rismgr
Creating Tables
The Create Table dialog box creates tables in the schema specified on the Data Definition
dialog box. If the name of an existing table is typed in the Table Name box or selected from the
Type/Name list on the Data Definition dialog box, the definition of that table is loaded into the
Create Table dialog box. This can be useful when creating several similar tables.
The Create Table dialog box creates new tables. It cannot be used to modify existing
tables. The ability to load existing table definitions into the dialog box exists only to provide a
template, or starting point, for new tables.
Operating Sequence
1. Choose the Create Table button from the Data Definition dialog box.
2. The Create Table dialog box has two sets of control buttons. There is a set of dialog box
control buttons across the bottom of the dialog box and a set of mode control buttons.
The mode control buttons are used to execute and reset the different modes of the dialog
box. The Create Table dialog box operates in three modes that are represented by three
buttons:
Insert Column - Click this button to add new columns to the table definition. If a column is
selected in the Column Name list, the new column is inserted in front of the selected
column. Otherwise, the new column is appended to the list. Click the mode Apply button to
insert the column.
Drop Column - Click this button to drop columns from the table definition. Choose the
column to drop by clicking the column in the Column Name list. Click the mode Apply
button to drop the column.
Modify Column - Click this button to modify column definitions. Choose the column to
modify by typing the column name in the Column Name Search box, or by clicking the
column in the Column Name list. Click the mode Apply button to modify the column.
Clicking the mode Cancel button clears the dialog box mode.
3. Type the table name in the Table Name box or select the table from the Type/Name list on
the Data Definition dialog box.
4. Do one of the following:
To create the table, click the Apply button.
To clear the dialog box, click the Reset button.
50
rismgr
To dismiss the dialog box without creating the table, click the Close button.
To obtain further information about the Create Table dialog box, click the Help button.
Dropping Tables
The Drop Table dialog box drops tables from the schema specified on the Data Definition
dialog box. Dropping a table removes the table data, the table structure, and any associated
indexes. Once a table has been dropped, it no longer exists in the database nor does it exist to
RIS.
Operating Sequence
1. Click the Drop Table button on the Data Definition dialog box.
2. To choose the table to drop, type the table name in the Table Name box or select the table
from the Type/Name list on the Data Definition dialog box.
3. Do one of the following:
To drop the table, click the Apply button.
To dismiss the dialog box without dropping the table, click the Close button.
To obtain further information about the Drop Table dialog box, click the Help button.
Operating Sequence
1. Click the Alter Table button on the Data Definition dialog box.
51
rismgr
2. If the table you want to alter is not already the selected table, do one of the following:
Type a table name in the Table Name box.
Select a table from the Type/Name list on the Data Definition dialog box.
3. Define the new column by entering the information in the controls of the Column Definition
to Append to Table group box. The following list explains these controls.
Column Name - Type the name for the new column.
dbms Column Name - Type a column name for the underlying database. By default, this
name is the same as Column Name, but you can specify another name.
Column Type - Choose the data type for the column.
Length - Choose the data length. This box remains inactive unless the data type you
choose requires it.
Nulls - Choose whether NULL values are allowed in the column. Toggle between yes to
allow NULL values or no.
4. Do one of the following:
To append the column to the table, click the Apply button. Repeat from Step 2 to define
another new column.
To clear the Alter Table dialog box, click the Reset button.
To dismiss the Alter Table dialog box, click the Close button.
To obtain further information about the Alter Table dialog box, click the Help button.
Operating Sequence
1. Click the Include button on the Data Definition dialog box.
52
rismgr
Operating Sequence
1. Choose the Exclude button from the Data Definition dialog box.
53
rismgr
Operating Sequence
1. Click the Schema File button on the RIS Schema Manager dialog box.
2. Choose one of the buttons on the right side of the dialog box. If you click the Locate
Schema File button, all the controls become active, letting you enter the appropriate values.
The following list explains the buttons.
Show Schema File Location - Produces read-only information on the specified schema
file.
Locate Schema File - Lets you rename your schema file or specify a different protocol.
Checksum Schema File - Recomputes the checksum for the specified schema file.
Checksum is a mechanism used to verify that the schema file has not been
corrupted. If you manually edit the file (instead of making changes through the RIS Schema
Manager), the checksum is no longer accurate.
3. Enter the appropriate values on the dialog box when the Locate Schema File button is
clicked. The following list explains the controls on the Schema File form.
Local, TCP - Choose a network protocol for your schema file from the check boxes. XNS
and Decnet are not supported.
Schema File Name - Type the name of a schema file. The full pathname for the schema file
must be specified unless the RIS HOME directory (the default directory) is intended.
Nodename or Address - Type the nodename or address where the schema file is located.
If the complete path is not specified, the file is assumed to be located where RIS was
installed.
Username - Type a system user name that has access to the schema file.
54
rismgr
A schema file must be readable by all users permitted to access the schemas. A
schema file must be readable and writable by all users authorized to create, alter, or drop
schemas. The users permitted to create, alter, and drop schemas must be able to create
and delete files in the directory where the schema file is located.
Password - Type a system password associated with Username. The No Echo/Echo
button causes the password to not display (the default, No Echo) or display (Echo) when it is
entered.
4. Do one of the following:
To locate the schema file, click the Apply button.
To dismiss the dialog box, click the Cancel button.
To obtain help with the Schema File dialog box, click the Help button.
Operating Sequence
1. Click the Locate Client button on the RIS Schema Manager dialog box.
2. Click the Show Client Location button to show the current location of the RIS Client
process.
OR
Click the Locate Client button to specify a new location for the RIS Client process.
3. In the Nodename or Address box, type the nodename or address of the RIS Client
machine.
4. In the Username box, type the name of the operating system user for the RIS Client
machine.
5. In the Password box, type the user password, if any. The No Echo/Echo button causes the
password to not display (No Echo) or display (Echo) when it is entered.
6. Choose the Local or TCP network protocol. XNS and Decnet are not supported.
7. Do one of the following:
To relocate the client, click the Apply button.
55
rismgr
Operating Sequence
1. Click the Set button on the RIS Schema Manager dialog box.
2.
3.
4.
5.
6.
56
Setting any of these functions affects only the remainder of the RIS Schema Manager
session.
To set modes and enable databases, click the OK button.
Click ANSI Mode check box to set ANSI on or off. The default is on.
If you set ANSI Mode to on, schema, table, column, view, and index names are limited
to 18 characters. Use this mode when creating names (for tables, columns, and so
forth) that should be ANSI compliant (18 characters or fewer.)
If you set ANSI Mode to off, names can be up to 31 characters, based upon the
underlying RDBMS. Remember, though, that these names may not be portable.
If you set Blankstrip Mode to on, risunlod strips trailing blanks from character data. Set this
mode to off if you want to preserve trailing blanks.
If you set Verify Mode to on, table and view definitions retrieved from the database are
validated against the definitions stored in the RIS dictionary tables.
Setting Verify Mode to off retrieves definitions from the database only, omitting the
validation. Omitting validation reduces the execution time when referencing a table or view
for the first time; however, if an application dynamically creates tables and views, the
definitions in the RIS dictionary tables and the DBMS may become inconsistent if Verify
Mode is off.
If you set Autocommit on, changes made to the Set form take effect immediately. If
Autocommit is off, the changes take effect only when you select OK.
rismgr
7. If you set Autorename on, schema, table, column, view, and index names that are longer
than the particular database limitation are automatically renamed to comply with the shorter
length. The default is on.
8. Click the Enabled Databases check boxes to choose RDBMSs that can be used. Use this
function when you want to create table or column names that conflict with the keywords of
other databases.
9. Do one of the following:
To set modes and enable databases, click the OK button.
To void the process, click the Cancel button.
57
rismgr
58
SECTION 9
risplbck
This utility reads a <commandfile> that contains a list of the RIS commands executed by an
application and executes each of the RIS commands. The <commandfile> is generated with
the risrecrd utility.
RIS recording is controlled by the risrecrd utility. The risplbck utility reads a file generated by a
RIS application that is executed while RIS recording is on. This file contains a list of all the RIS
commands executed by the application. The risplbck utility executes each of the RIS commands
and compares SQLCODEs and times.
This utility is for debugging purposes only.
The risplbck utility can only read files generated with the risrecrd utility of the same basic
version. That is, if you generate a file with risrecrd Version 5.7, then you can play back the file
only with risplbck Version 45.
The risplbck utility compares the SQLCODEs of the recorded commands with the SQLCODEs of
the playback commands and reports if they are different. If they are different, the action
risplbck takes is specified in the action file. Each row of the action file has three fields
separated by colons(:): 1) the recorded results; 2) the playback results; and 3) an action. Valid
values for the two results fields are:
SUCCESS - RIS command executed successfully.
END_OF_DATA - RIS command returned end-of-data.
ERROR - RIS command returned an error.
Valid values for the action field are:
STOP - Stop the playback execution.
CONTINUE - Continue the playback with the next RIS command.
RETRY - Retry the RIS command one time, if it fails, stop.
Here is a sample row:
SUCCESS:END_OF_DATA:CONTINUE
The row indicates that if a command executed successfully at record time, but got an
end-of-data during playback, continue with the playback anyway.
By default, risplbck continues on all results.
To start the risplbck utility, do one of the following:
Type risplbck in a Command Prompt window.
Choose RIS NN.nn from Start > Programs; then choose RIS Playback.
Choose RIS NN.nn from Start > Programs; then choose RIS Interactive. Choose the
Utilities... button from the RIS Interactive form; then choose the RIS Playback... button from
the Utilities form.
If you use another utility within RIS Interactive, you must choose the Restart button
before RIS Interactive is aware of any RIS parameter changes, or creating or dropping of
schemas.
Usage
risplbck [-?] [-V] [-n] [-i] [-c] [-d] [-t] [-f] [-v]
[-o <outputfile>] [<commmandfile>]
[-a <actionfile>]
59
risplbck
Flags
<none> - If you do not specify any command-line arguments, or if you start the utility by
selecting its icon from the Program Manager, the utility runs interactively and prompts for the
necessary information.
-? - Display usage information and exit.
-V - Display version information and exit.
-n - No execute mode. Just read and validate the file.
-i - Immediate playback mode. Ignore any delays.
-c - Calculate command times. If command times were recorded, compare the playback
command times and the recorded command times and report the difference.
-d - Calculate delay times. If delay times were recorded, compare the playback delay times and
the recorded delay times and report the difference.
-t - Calculate total elapsed times. If elapsed times were recorded, compare the playback
elapsed times and the recorded elapsed times and report the difference.
-f - Fetch blob/text files into same files as recorded session. The default is to fetch blob/text
files into temporary files.
-v - Verbose mode.
-a <actionfile> - Actions are defined in file <actionfile>.
-o <outputfile> - Write all output to <outputfile>.
Examples
To play back the RIS commands previously recorded in the command file load.rap and calculate
command, delay, and total times, key in:
risplbck -cdt -o load.out load.rap
The risplbck output is written in the load.out file.
Files
c:\Program Files\Common Files\Intergraph\risNN.nn\bin\risplbck c:\Program Files\Common
Files\Intergraph\risNN.nn\parms
c:\Program Files\Common Files\Intergraph\risNN.nn\config\english\messages\ris.msg
c:\Program Files\CommonFiles\Intergraph\risNN.nn\config\english\messages\net.msg
c:\Program Files\CommonFiles\Intergraph\risNN.nn\config\english\messages\utl.msg
Status Returns
0 - Normal termination.
1 - Abnormal termination.
60
SECTION 10
risrecrd
This utility controls RIS recording for the current user. RIS recording can be turned on, turned
off, and the status of recording can be queried with this utility. When RIS recording is on, any
RIS command executed by any of the current users' applications are recorded and placed in
<outputfile>. These commands can then be re-executed by the risplbck utility.
Usage
risrecrd [-?] [-V] [on <outputfile>] [-c] [-d] [-t] [-a] [off] [query]
Flags
<none> - If you do not specify any command-line arguments, or if you start the utility by
selecting its icon from the Program Manager, the utility runs interactively and prompts for the
necessary information.
-? - Display usage information and exit.
-V - Display version information and exit.
on <outputfile> - Turn RIS recording on and place output in <outputfile>.If a full path is given
for the output file, then all output is placed in the named file. If only a filename is specified, RIS
stores the recorded output in a file by the directory name where the application (ris, risbatch,
and so forth) was started.
-c - Record command times. Store how long each RIS command took to execute.
61
risrecrd
-d - Record delay times. Store the time between each RIS command. These values are used by
risplbck to reproduce the commands in real time.
-t - Record total elapsed time. Store the total elapsed time from the start of the application for
each RIS command.
-a - Append to the output file if it already exists. The default action is to overwrite the output file.
off - Turn RIS recording off.
query - Query the current status of RIS recording. The results are displayed on stdout.
Examples
The following risrecrd command turns record on and places the output in c:\appl.rap.
risrecrd -c on 'risrecrd.out'
Files
c:\Program Files\Common Files\Intergraph\risNN.nn\bin\risrecrd
Status Returns
0 - Normal termination.
1 - Abnormal termination.
62
SECTION 11
risunlod
This utility retrieves information about one or more RIS schemas and stores it in one or more
external ASCII files. You can later reload the schemas from the ASCII files using the rislod
utility.
The risunlod utility is not designed for use as a backup utility. See the rislod section for
more specific information.
The environment variable RIS_LANGUAGE specifies the language that RIS uses for parsing
and error messages. The default is English. Consult the file riscli\config\langs for other values.
The representation of information must comply with the format defined in the section File
Formats for risunlod and rislod (on page 79).
The following figure represents the functional mechanisms of risunlod and shows the input
requirements and output generated.
You cannot unload ris_blob and ris_text data; however, you can unload the table
definition, which contains ris_blob or ris_text columns.
To start the risunlod utility, do one of the following:
Type risunlod in a Command Prompt window.
Choose RIS NN.nn from Start > Programs; then choose RIS Unloader.
Choose RIS NN.nn from Start > Programs; then choose RIS Interactive. Choose the
Utilities... button from the RIS Interactive form; then choose the RIS Unloader... button
from the Utilities form.
If you use another utility within RIS Interactive, you must choose the Restart button
before RIS Interactive is aware of any RIS parameter changes, or creating or dropping of
schemas.
Usage
risunlod [-?] [-V] [-p] [-m {}] [-o <filename>] [-s <schemas>] [-f
<filename>]
Flags
<none> - If you do not specify any command-line arguments, or if you start the utility by
selecting its icon from the Program Manager, the utility runs interactively and prompts for the
necessary information.
-? - Display usage information and exit.
63
risunlod
-V - Display version information and exit.
-p - Preserve blanks. By default risunlod strips trailing blanks from character data. See the set
mode statement in the RIS SQL User's Guide for 32-Bit Applications for more information.
-m { } - Specify the file mode for output files. The w overwrites an existing file, the a appends to
an existing file, and the e returns an error if an output file with the specified name exists.
-o <filename> - Specify the main output ASCII file into which RIS schema information is to be
unloaded. The default main filename is ris.dmp.
-s <schemas> - Specify schema and schema-related information, such as tables, indexes,
views, and grants. Alternatively you can store this information in a specification file.
-f <filename> - Specify the name of the specification file for <schemas>. This option cannot be
used with the -s option. See the section Using rislod with the CommandLine Interface (see
"Using rislod with the Command Line Interface" on page 32) for more information.
Files
c:\Program Files\Common Files\Intergraph\risNN.nn\bin\risunlod
c:\Program Files\Common Files\Intergraph\risNN.nn\parms
c:\Program Files\Common Files\Intergraph\risNN.nn\config\english\messages\ris.msg
c:\Program Files\Common Files\Intergraph\risNN.nn\config\english\messages\net.msg
c:\Program Files\Common Files\Intergraph\risNN.nn\config\english\messages\utl.msg
Status Returns
0 - Normal termination.
1 - Abnormal termination.
The risunlod utility unloads user-requested RIS schema objects (items) into external ASCII files
from RIS schemas. The risunlod utility can unload:
Schema definitions
Table definitions
Table data
Partial table data using an extended where clause
Index definitions
View definitions
The risunlod utility does not unload a view that has a NULL in the
RIS_VIEW_DEFS column in the RIS_VIEWS dictionary view. This condition exists when a
schema is created on a database that has an existing view in the underlying database.
Views created in RIS are not NULL in the RIS_VIEW_DEFS column.
Privilege definitions
Multiple above items in a single run
Table definition only without table data
Table data in separate data file (one for each table)
Table data in either fixed or variable format. (See the section File Formats for risunlod and
rislod (on page 79) for more information.)
As discussed earlier, risunlod requires that all schema information be unloaded before starting
the actual unloading. The schema information is unloaded into the main external file (the default
is ris.dmp) and/or additional data files, if you want. Multiple schema information can be unloaded
in the same main file during a single risunlod execution.
Enhanced features of risunlod include:
64
risunlod
You can open the external main file and data files in overwrite or append mode. An error is
reported if files with the specified names already exist.
All the schema item statements (such as create schema, create table, insert table, table field
definition, create index, create view, and grant) are unloaded into the main file. If the user
wants, risunlod can unload the table data into separate data files, one for each table.
The risunlod utility provides a risunlod extended where clause to unload partial data from
one table. The risunlod extended where clause has two parts:
A join clause that lets the user provide powerful selection criteria to unload partial data
from one table while joining across different tables. The join clause is optional.
A sql-where clause.
For example, the following risunlod extended where clause for table t1 unloads partial data from
table t1 while joining across table t2.
join t2 where t1.c1 = t2.c1 and t1.c2 > t2.c2
There are three ways to interact with risunlod: using the Interactive Interface, the Command Line
Interface, or the Embedded Programming Function Interface.
Interactive Interface. When risunlod is invoked without any command line arguments,
interactive prompts display. You are prompted for the required inputs before any unloading is
done. See the section Using risunlod with the Interactive Interface for more information about
the meanings of these prompts and the corresponding actions taken by risunlod.
Command Line Interface. When risunlod is invoked with arguments, the command line
interface activates. This interface lets you specify, in a single command, the responses to
various prompts that would have been generated if risunlod had been invoked interactively. See
the section Using risunlod With the Command Line Interface for more information about the
syntax for constructing a risunlod command and the semantics of the command.
Embedded Programming Function Interface. The RIS_unloader function provides the
functionality of risunlod in an embedded program when you call the function and pass the
appropriate structures. Refer to the RIS Programmer's Guide for 32-Bit Applications for more
information.
65
risunlod
2. File mode of all output files? overwrite(w) append(a) error out if exists(e) :[e] >
The file mode affects the main file and all the data files. By default risunlod returns an error if
the specified main file or data files already exist.
Do one of the following:
Press ENTER to accept the default.
Select w to overwrite the existing main file and data files.
Select a to append to the existing main file and data files.
3. Main file for unloading: [ris.dmp] >
This prompt lets you specify the name of the main file for unloading. The default name for
the main file is ris.dmp.
Press ENTER to accept the default filename.
Enter another filename for the main file.
If you selected e (for error out if exists) at the File mode of all output files? prompt, and
a main file already exists, risunlod prompts you to quit unloading or to key in another
filename.
Quit risunlod(y/n) :[n] >
If you select n, risunlod prompts you for a new name for the main file. Specify a new
filename at this prompt or key in y and risunlod exits.
4. Enter schema name (<return> after last schema): >
This prompt lets you specify a schema for unloading.
If a secure schema name is entered, the user is prompted for the database username
and database username password, and the osusername and osusername password, if
appropriate. If the schema has a password, the user is prompted for the schema password.
Do not add the password at the end of the schema name. The schema and user passwords
in a schema definition are not unloaded into the main file for security reasons. Instead, they
are designated by a period immediately after the schema and user names. If the passwords
are not added to the main file before loading, the user is prompted for them when loading
the schema.
Do one of the following:
Enter the name of the schema to unload. risunlod displays additional prompts to gather
schema information, then returns to this prompt to let you specify another schema.
You can unload multiple schemas during a risunlod session. Within a schema,
data are unloaded in the following order: tables, indexes, views, and privilege
definitions.
Press ENTER without entering another schema name when you have entered all the
schema information you want to process. risunlod will process the entered schemas.
Press ENTER without entering any schema names, and risunlod terminates.
5. Which tables should be unloaded? all(a) prompted(p) entered by user(e) none(n):[a]
>
This prompt lets you specify which table(s) to unload from the specified schema.
Do one of the following:
Press ENTER to unload all the tables in the current schema.
Select p and risunlod generates a list of tables and prompts you before unloading each
table:
Unload table <table>(y/n): [y] >
Select y to unload the specified table or select n if you do not want to unload the table.
66
risunlod
67
risunlod
Partial data can be unloaded only from the current table, even when a join
clause is specified.
Use single quotation marks (') for character strings.
6. Which indexes should be unloaded for a table? all(a) prompted(p) entered by user(e)
none(n):[a]>
If you selected p or e at the prompt Which tables should be unloaded?, you should
key in n at the prompt Which indexes should be unloaded for a table? unless indexes on
additional tables are required. risunlod automatically unloads indexes created on the tables
selected as p or e at the Which tables should be unloaded? prompt.
Do one of the following:
Press ENTER to unload all the indexes created in the current schema.
Select p and risunlod prompts for each table that has indexes:
Unload index on table <table>(y/n):[y] >
Press ENTER to unload the indexes of that table or key in n if you do not want to unload
indexes.
Select e and risunlod prompts you to enter the table:
Enter table for unloading index:[<return>] >
Enter a table name and press ENTER.
Select n, and risunlod will not unload any indexes.
7. Which views should be unloaded? all(a) prompted(p) entered by user(e) none(n):[a]
>
The prompt for unloading views in a schema comes after the prompt(s) for unloading the
indexes.
Do one of the following:
Press ENTER to unload all the views created in the current schema.
Select p, and risunlod prompts for each view:
Unload view <view>(y/n):[y] >
Press ENTER to unload the view or key in n if you do not want to unload the view.
Select e and risunlod prompts you to enter a view name:
Enter view for unloading:[<return>] >
Enter a view name and press ENTER.
Select n, and risunlod will not unload any views.
8. Which privileges should be unloaded? all(a) prompted(p) entered by user(e)
none(n):[a] >
The prompt for unloading privilege definitions comes after the prompt(s) for unloading views.
As is the case with unloading indexes, risunlod automatically unloads privilege
definitions granted on tables and/or views that were p or e selections to the Which tables
should be unloaded? and/or Which views should be unloaded? prompts.
Do one of the following:
Press ENTER to unload all the privileges created in the current schema.
Select p, and risunlod prompts for each table or view on which one or more privileges
are defined:
Unload access privilege on <relation>(y/n):[y] >
Press ENTER to unload the access privileges or key in n if you do not want to unload
the privileges.
68
risunlod
Select e and risunlod prompts you to enter a table to unload all the privileges defined:
Enter table or view for unloading access privilege:[<return>] >
Enter a table or view name and press ENTER.
Select n, and risunlod will not unload any privileges.
In a schema, privileges may be granted on a table or view owned by the schema or by
another schema. Privileges granted on a table or view owned by another schema are
illustrated in the following example.
Schema sch1 grants select privilege on its table tab1 to another schema sch2 with grant
option. Schema sch2 can then grant the select privilege on sch1.tab1 to yet another
schema sch3. Thus in schema sch2, a privilege on the table (tab1) belonging to another
schema (sch1) is defined. The following command line option illustrates the previous
example:
risunlod -s sch2 grant sch1.tab1
When specifying a table or view on which privileges have been granted, only the name
of the relation is needed if it is owned by the current schema. Otherwise, the relation
name must be preceded by a schema name in the form of <schema>.<relation>.
Examples
rislod -i \dir1\dir2\mainfile -d\" -l load.log
..\dir3\specfile -n -mw -e rdb informix -c 15
-b load.bad-f
Additional Options
-n - ANSI mode off.
-e - Enable databases listed after this option.
-m - Set the file mode (w, a, or e) for the outputfiles (such as log and bad files).
-c - Commit interval.
rislod -s sch1.create_sch_passwd1.user_passwd1 all
-s sch2 .create_sch_passwd2 .user_passwd2 new table with data all
-s sch3 clear table with data t1 t2 grant all
-s sch4 rename sch5 .sch5pass table t1 index t2 view v1grant t2 v2 sch.t3
sch.v3
69
risunlod
rislod lets you specify up to three passwords after a schema name (schema password, osuser
password, and user password). Passwords are necessary if they are not already stored in the
main file. For schema sch2, data is loaded only into newly created tables. For schema sch3,
data is loaded into tables t1 and t2 after deleting previously inserted rows even if it already
exists before loading. For schema sch4 all the following items are loaded into existing schema
sch5. No data is loaded into table t1, but index definitions on table t1 and privilege definitions on
table t1 and view view1 are loaded.
The specification file format is the same for both rislod and risunlod.
70
risunlod
<index_tobe_unload> ::= all | {<index> [ ... ] }
<grant_tobe_unload> ::= all
|
{
{[<schema>.]<table> | [<schema>.<view> ]
} [ ...]
}
The following is the BNF representation of the format for a specification file.
<spec_file_format> ::= {[.<password>]
<info_tobe_unload>}[;<new_line>...]
71
risunlod
72
SECTION 12
RDBMS Versions
For the most current information concerning RDBMS version compatibility for supported
RIS platforms, see the readme.txt file.
73
Object Aliases
With RIS Version 5 and higher, any column or table name can be given an alias. For example,
table abc_123 with columns abc1, abc2, and abc3, can be included and referred to as
EMPLOYEES with columns FIRST_NAME, GENDER, and DATE_OF_BIRTH, respectively.
This capability:
Lets identically-named tables owned by different RDBMS users exist in a single schema.
For example, suppose three different users create three different tables with the same
name:
DBMS: PROJ1.NAMES, PROJ2.NAMES, PROJ3.NAMES
These tables must be aliased so that they have distinct names.
SCHEMA1: NAMES1, NAMES2, NAMES3
Names in RIS can be longer than the underlying database supports. See the RIS SQL User's
Guide for 32-Bit Applications for more information.
Object names and keyword conflicts can be worked around. For example, if a column
name is a RIS keyword, such as t1(informix, oracle, db2), it can be included as t1(col1, col2,
col3).
Considerations when using this capability:
An exclude/include sequence loses all aliases.
This capability cannot be accessed through RIS Version 4.
Within RIS only the RIS names (aliases) are valid. The external/DBMS name is not valid.
74
Shared Dictionaries
In RIS Version 5 and higher when a schema s1 is created and creates the dictionary, schemas
s2, s3, s4, and so on can be created using the dictionary created by schema s1. This capability:
Allows multiple schemas in databases that cannot have tables of the same name.
Requires minimal dictionary creation when there are many schemas.
Allows limited dictionary creation, administration, and ownership outside of RIS for Microsoft
SQL Server.
Considerations when using this capability:
The system administrator must grant and revoke an RDBMS user the authority to create a
schema on a dictionary, using:
GRANT SCHEMA TO <rdbms_user>;
REVOKE SCHEMA FROM <rdbms_user>;
Creators of dictionaries cannot drop all their schemas while there are other schemas in the
dictionary.
Dictionary Objects
Dictionary objects in RIS Version 5 and higher are all renamed (ris5*). This capability:
Removes the distinction between ris* and ris_*.
Makes RIS dictionary objects now appear in the dictionary views.
Considerations when using this capability:
Additional columns are needed to distinguish among schemas in shared dictionaries, to
distinguish between user objects and dictionary objects, and for internal/external object
names.
Names may need to be changed in queries.
New columns should be considered in queries.
Dictionary Views
In RIS Version 5 and higher, the internal tables are not documented and information about them
is not available in the dictionary. Only dictionary views can be accessed from an application.
In RIS Version 5 and higher, since the base tables are not accessible from the applications, the
views show both user objects and RIS objects.
Considerations:
If only user objects need to be selected, the condition ris_object='N' should be used in the
where clause.
This rule applies to the views ris5columns, ris5column_privs, ris5tables, and ris5table_privs.
In Version 5 and higher, the ris5dbms_tables view lists all the tables in the database, along
with the user that owns the database. The ris5dbms_views view lists all the views in the
database, along with the user that owns the database. The ris5dbms_indexes view lists all
75
Internationalization
RIS for 32-bit applications (Version 5.3.1 and later) support 16-bit or multi-byte languages.
Most 16-bit languages are Asian. In the RIS documentation, the maximum size allowed for
table names, view names, index names, schema names, column widths, and character data is
specified as x characters, where x is an integer. For those using multi-byte languages, the
maximum number of characters should be interpreted as the maximum size in bytes. RISMGR
and RISGUI implement multi-byte character support.
RIS limitations and guidelines:
RIS schema and user names can be internationalized, but not passwords.
Only alpha-numeric characters can be internationalized.
Setup is not fully internationalized.
RIS does not localize dialogs, gadgets and error messages.
RIS is internationalized on Windows only. The RIS application, RIS Client, and RIS Data
Server must be on Windows to take advantage of the RIS internationalization.
The period (.) used between username and passwords must be 8-bit English.
All punctuation, keywords, column datatype definitions, timestamp data, statements must be
8-bit English.
Schemas, tables, views, columns, index names can be 8-bit or 16-bit English characters.
RIS data dictionary tables and views are created using 8-bit English characters.
The following components of a create schema statement are 8-bit and 16-bit characters.
76
create schema
8-bit English
schema name
schema pass
8-bit English
db type
8-bit English
dbname
db dir
osuser
16-bit English
ospass
8-bit English
db user
remote clause
8-bit English
77
78
SECTION 13
79
See Also
Format for Representing Schema Definitions (on page 80)
Format for Representing Table Definitions (on page 81)
Format for Representing Insert Into Statements (on page 81)
Format for Representing Field Definitions (on page 81)
Format for Representing Table Data (on page 83)
Format for Representing Data File Specifications (on page 83)
Format for Representing Index, View, and Privilege Definitions (on page 84)
File Format for Data Files (on page 84)
Use of Spaces and New Line Characters (on page 84)
BNF Representation of File Formats (on page 85)
80
81
The starting and ending positions of a field are constrained by the following relation:
10,000 >= ending position >= starting position >= 1.
The starting and ending positions of a column should be separated by one or more spaces.
risunlod uses a single blank to separate the starting and ending positions.
The keyword var following a column name distinguishes a character column having
variable-length values from a character column having fixed-length values.
The absence of the keyword var after a character column name signifies that the column
values have the same length.
The values of a variable character column are represented differently from those of a fixed
character column. A variable character column value is always enclosed by a delimitation,
while the value of a fixed character column is assumed to occupy the entire field.
Because a character column supported by RIS can store values of different lengths, it is
always unloaded as a variable character column.
The delimitations used by risunlod are two single quotation marks.
The field definition for a table must include all the columns listed in the insert into statement of
that table. However, columns that are not listed in the insert into statement may also appear in
the field definition. The column decimal_col2 in this example was not specified in the insert into
statement for table tab1.
The conventions used by risunlod for determining the field width of a column are as follow:
character - The column length plus two extra spaces for delimitation
decimal - The precision plus two
integer - 11
small integer - 6
double - 23
real - 14
risunlod can unload table data in variable format, and rislod can load the same variable
formatted data. The variable table data is identified by the string ***variable*** in the field
definition line. This string is sufficient to identify variable table data following it. Starting and
ending position does not make sense in this format. The column data is separated (delimited)
by a blank space, while the character data of a column is delimited by default single quotation
marks (').
The following is an example of a field definition line and several rows of variable data. Notice the
third row. The delimiter can be escaped from within the string by an extra delimiter preceding it.
***variable***
1 'nyz'
23 'nyzabc'
246 'nyz''abc'
***RIS*** End of Table ***RIS***
82
83
84
85
86
Index
A
Additional Information on RIS 73
Appending Columns to Tables 51
B
BNF Representation of File Formats 85
BNF Representation of rislod Command
Line Syntax 33
BNF Representation of risunlod Command
Line Syntax 70
C
Creating Schemas 39
Creating Schemas (Microsoft SQL Server)
42
Creating Schemas (ORACLE) 41
Creating Tables 50
D
Dictionary Objects 75
Dictionary Views 75
Displaying Schema Information 38
Displaying Table Information 49
Displaying Table, View, and Index
Information 48
Dropping Schemas 43
Dropping Tables 51
E
Excluding Tables, Views, and Indexes 53
Exiting the risgui Utility 20
F
File Format for Data Files 84
File Formats for risunlod and rislod 79
Format for Representing Data File
Specifications 83
Format for Representing Field Definitions
81
Format for Representing Index, View, and
Privilege Definitions 84
Format for Representing Insert Into
Statements 81
Format for Representing Schema
Definitions 80
G
Getting Started 9
Granting/Revoking Access Privileges to
Secure Schemas 43
I
Including Tables, Views, and Indexes 52
Internationalization 76
L
Loading Index, View, and Privilege
Definitions 27
Locating RIS Client Processes 55
M
Modifying Node Information 46
Modifying Schema Passwords 46
Multi-user, Secure Schema 74
O
Object Aliases 74
Objects of Different Owners within a
Schema 73
Obtaining Dictionary Access 45
Options 21
P
Performing Queries in the risgui Utility 20
Preface PDS 7
R
RDBMS Versions 73
Restart 21
Reviewing and Manipulating Schema Files
54
RIS Schema Manager 36
risbatch 11
risclnsr 13
risdcode 15
risdtype 17
risgui 19
87
Index
rislod 23
rismgr 35
risplbck 59
risrecrd 61
risunlod 63
S
Schema Definition 37
Set 22
Setting Modes and Enabling Databases
56
Shared Dictionaries 75
Show 22
T
The Bad File 27
The Log File 26
U
UNION and UNION ALL Supported 73
Use of Spaces and New Line Characters
84
Using rislod with the Command Line
Interface 32, 69
Using rislod with the Interactive Interface
28
Using risunlod with the Interactive Interface
65
Utilities 21
88