Exercise 5: Make nonversioned edits as a read/write user
This topic applies to ArcEditor and ArcInfo only.
To see how users with nonadministrative permissions can use the data, you will log in as editor1, import a feature class from a shapefile, then edit a feature class in ArcMap.
Logging in as editor1
Since database servers authenticate users based on the current Windows login, log off the computer and log back in as editor1.
- Click the Start button on the Windows task bar and click Log off.
- If prompted, confirm you want to log off by clicking Log Off on the Log Off Windows dialog box.
- When the login dialog box appears, change the user name to editor1.
- Type editor.1 in the Password text box.
Choose your computer name from the Log on to drop-down list and click OK.
You are now logged in to the computer as editor1.
- Start ArcMap, open the Catalog window, then expand the Database Servers node in the Catalog tree.
- You must add the ArcSDE database server because editor1 has not added it to his Catalog yet. For instructions on how to do this, refer to Exercise 1: Add a database server to the Catalog tree and create a geodatabase.
Importing data as editor1
Import the streets shapefile to the Osokopf geodatabase.
- Double-click the database server in the Catalog tree to connect to it.
- Right-click the Osokopf geodatabase, point to Import, then click Feature Class (single).
- Since editor1 has not yet created a folder connection to the tutorial data, create a new connection to the tutorial data under Folder Connections.
- For Input Features, browse to the DatabaseServers tutorial directory.
- Choose osokopf_streets.shp and click Add.
- Type streets in the Output Feature Class text box.
Click OK to run the tool.
The progress of the tool appears at the bottom of ArcMap. When the feature class has been imported, a pop-up appears in the lower right corner of your screen. You can click it to open messages that were output from the tool.
The Osokopf geodatabase now contains two feature datasets, parks and boundaries, owned by dbo, and the streets stand-alone feature class, owned by editor1.
Making edits to a nonversioned dataset
You will edit the schools feature class. Since you will only be making one small change, which can be completed in a short amount of time, you can use nonversioned editing.
When you make nonversioned edits, the dataset is locked for the duration of your edit session, and the changes you make are committed directly to the database as soon as they are saved.
Setting the edit session for nonversioned editing
First, you must set up ArcMap to perform nonversioned edits.
- Expand the Osokopf geodatabase in the Catalog window.
- Click the park_areas feature dataset in the Catalog window and drag it into the ArcMap table of contents.
- Expand the buildings geodatabase in the Catalog tree.
- Click the schools feature class and drag it into the ArcMap table of contents.
- If the Editor toolbar is not already open, add it by clicking Customize on the Main menu, pointing to Toolbars, then clicking Editor.
Click Editor on the Editor toolbar and click Options on the drop-down list.
This opens the Editing Options dialog box.
- Click the Versioning tab.
Uncheck Edit a version of the database with the ability to undo and redo and click OK.
This sets the edit type for this session to allow you to edit nonversioned datasets.
Making and saving the edits
A new school is to be built in Olafville at the northeast corner of Wspolnoty and Sunray. This is across the street from Wspolnoty Park.
First, you will make sure you can select features in the parks feature dataset, then find Wspolnoty Park.
- Click the List By Selection button in the table of contents.
- Be sure park_areas is listed under the Selectable heading. If it is not, click the Click to toggle selectable icon next to the park_areas layer to make it selectable.
- Click Selection on the Main menu and click Select By Attributes.
- Choose park_areas from the Layer drop-down menu.
- Double-click park_name to add it to the WHERE clause of the SELECT statement.
- Click the equals sign (=) to add it to the SELECT statement.
- Click Get Unique Values to get a list of names.
Double-click Wspolnoty Park in the values list to add it to the SELECT statement.
You might need to scroll down the unique values list to find Wspolnoty Park.
Click OK to make the selection and close the Select By Attributes dialog box.
Wspolnoty Park is now highlighted on the map.
Click Editor on the Editor toolbar and click Start editing to begin an edit session.
Because the schools layer is not listed in the Create Features window, the Start Editing dialog box opens so you can choose the data source to edit.
- Choose schools for the data source and click OK.
If the schools layer is not listed in the Create Features window, click the Organize Templates button.
The Organize Feature Templates dialog box opens.
Click Schools in the Layers list and click New Template.
The Create New Templates wizard opens.
- Be sure the schools layer is checked and click Finish.
- Click Close on the Organize Feature Templates dialog box
- Click schools in the list of layers to edit.
- Click Rectangle in the Construction Tools window.
Draw a rectangle in the area across the street from Wspolnoty Park.
Normally, you would be more precise when adding features to your GIS. For the purposes of this tutorial, however, just draw a rectangle that fits within the four cross streets.
- Double-click to complete the rectangle.
Click the Attributes button on the Editor toolbar.
The attributes for the new school open.
- Type Wspolnoty in the Name row.
- Click the field next to School type and choose Elementary (K-5) from the drop-down list.
- Click Editor on the Editor toolbar and click Stop Editing.
- When prompted, click Yes to save your edits.
You logged in as a user with read/write permission in the geodatabase, imported a feature class, and edited a feature class in a nonversioned edit session.