Role Nodes

This section covers the following topics:

How Role Nodes Work

To perform actions on a Role node: right-click this node and from the menu choose the appropriate command. To view the node's properties, select the node and/or click Properties in the node's menu.

Menu Options

Menu Option Description

Edit

Opens the designer window for the role being edited.

Query Window

Opens the query window for the connection.

Generate Create Script

Writes the role definition to a .sql file.

Generate Create Script to Project

Generates the role definition to a .sql file and adds the .sql file to an open Oracle Database Project.

If multiple objects in Server Explorer are selected, a master SQL script is created in the Oracle Database Project Scripts folder. This master script contains calls to individual child SQL scripts (one for each schema object) generated into the various schema object folders and this master script is ordered with dependencies taken into consideration.

If there are multiple open Oracle Database projects, Visual Studio prompts you to select the project to add the script to.

This operation can also be performed by dragging and dropping the Server Explorer node(s) directly onto a database project folder.

See Managing Oracle Script Files for more information.

Note: Oracle Database Project Version 2 projects are not supported. To add scripts to this project type, use Import Schema or Add Existing Item menu items on an Oracle Database Project Version 2 project folder, or use the Schema Compare tool.

Privileges

Opens the privileges dialog.

Delete

Deletes the role selected.

Refresh

Refreshes the node.

Properties

Displays the Properties window.