Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
30
Добавлен:
16.04.2013
Размер:
2.15 Mб
Скачать

PRODUCT_USER_PROFILE Table

PRODUCT_USER_PROFILE Table

Various Oracle products use the PRODUCT_USER_PROFILE (PUP) table, a table in the SYSTEM account, to provide product-level security that supplements the user-level security provided by the SQL GRANT and REVOKE commands and user roles.

DBAs can use the PUP table to disable certain SQL and SQL*Plus commands in the SQL*Plus environment on a per-user basis. SQL*Plus—not Oracle—enforces this security. DBAs can even restrict access to the GRANT, REVOKE, and SET ROLE commands to control users’ ability to change their database privileges.

SQL*Plus reads restrictions from the PUP table when a user logs in to SQL*Plus and maintains those restrictions for the duration of the session. Changes to the PUP table will only take effect the next time the affected users log in to SQL*Plus.

When SYSTEM, SYS, or a user authenticating with AS SYSDBA or AS SYSOPER privileges connects or logs in, SQL*Plus does not read the PUP table. Therefore, no restrictions apply to these users.

The PUP table applies only to the local database. If accessing objects on a remote database via a database link, the PUP table for the remote database does not apply. The remote database cannot extract the username and password from the database link in order to determine that user’s profile and privileges.

Creating the PUP Table

You can create the PUP table by running the command file named PUPBLD with the extension SQL as SYSTEM. The exact format of the file extension and the location of the file are system dependent. See the Oracle installation and user’s manual(s) provided for your operating system or your DBA for more information.

Note: If the table is created incorrectly, all users other than privileged users will see a warning when connecting to Oracle that the PUP table information is not loaded.

B-2 iSQL*Plus User’s Guide and Reference

PRODUCT_USER_PROFILE Table

PUP Table Structure

The PUP table has the following columns:

PRODUCT

NOT NULL CHAR (30)

USERID

CHAR(30)

ATTRIBUTE

CHAR(240)

SCOPE

CHAR(240)

NUMERIC_VALUE

NUMBER(15,2)

CHAR_VALUE

CHAR(240)

DATE_VALUE

DATE

LONG_VALUE

LONG

Description and Use of PUP Columns

Refer to the following list for the descriptions and use of each column in the PUP table:

Product

Must contain the product name (in this case "SQL*PLUS").

 

You cannot enter wildcards or NULL in this column.

Userid

Must contain the username (in uppercase) of the user for

 

whom you wish to disable the command. To disable the

 

command for more than one user, use SQL wild cards (%) or

 

make multiple entries. Thus, all of the following entries are

 

valid:

HR

CLASS1

CLASS% (all users whose names start with CLASS)

 

% (all users)

Attribute

Must contain the name (in uppercase) of the SQL, SQL*Plus,

 

or PL/SQL command to disable (for example, RUN). If you

 

are disabling a role, it must contain the character string

 

“ROLES”. You cannot enter a wildcard. See the section "PUP

 

Table Administration" later in this chapter for a list of SQL

 

and SQL*Plus commands you can disable.

Scope

SQL*Plus ignores this column. It is recommended that you

 

enter NULL in this column. Other products may store specific

 

file restrictions or other data in this column.

Security B-3

Соседние файлы в папке Oracle 9.0.1