Environment:
sys@EMREP> select * from v$version;BANNER----------------------------------------------------------------Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - ProdPL/SQL Release 10.2.0.1.0 - ProductionCORE 10.2.0.1.0 ProductionTNS for Linux: Version 10.2.0.1.0 - ProductionNLSRTL Version 10.2.0.1.0 - Production
Default Value
sys@EMREP> show parameter o7_NAME TYPE VALUE------------------------------------ ----------- ------------------------------O7_DICTIONARY_ACCESSIBILITY boolean FALSE
Parameter description
Parameter Name: o7_dictionary_accessibility
Category: security and audit
Note: It is mainly used to port data from oracle7 to Oracle8i.
If this value is true, system permissions (such as select any table) do not restrict access to objects in the SYS solution (oracle7 behavior)
If this value is false, only select_catalog_role and execute_catalog_role are granted.
Or the user with the delete_catalog_role permission can access objects in the SYS solution.
Value range: True | false
Location: $ ORACLE_HOME/dbs/initsid. ora
Two errors
① ORA-28009
The default value of the o7_dictionary _ accessibility parameter is false. Therefore, when using sys to connect to a database, the user must be sysdba or sysoper.
If you set the o7_dictionary_accessibility parameter to true, this error will not generate
sys@EMREP> conn sys/oracleERROR:ORA-28009: connection as SYS should be as SYSDBA or SYSOPERsys@EMREP> conn / as sysdbaConnected.sys@EMREP> alter system set O7_DICTIONARY_ACCESSIBILITY=true scope=spfile;System altered.sys@EMREP> shutdown immediateDatabase closed.Database dismounted.ORACLE instance shut down.sys@EMREP> startupORACLE instance started.Total System Global Area 524288000 bytesFixed Size 1220384 bytesVariable Size 155189472 bytesDatabase Buffers 364904448 bytesRedo Buffers 2973696 bytesDatabase mounted.Database opened.sys@EMREP> conn sys/oracleConnected.
② ORA-00942
When the user does not select any table
sys@EMREP> create user u1 identified by u1;User created.sys@EMREP> grant connect,resource to u1;Grant succeeded.sys@EMREP> conn u1/u1Connected.u1@EMREP> show parameter dictionaryORA-00942: table or view does not existsys@EMREP> grant select any table to u1;Grant succeeded.sys@EMREP> conn u1/u1Connected.u1@EMREP> show parameter dictionaryNAME TYPE VALUE------------------------------------ ----------- ------------------------------O7_DICTIONARY_ACCESSIBILITY boolean TRUE
Related Questions
Grant the select any table permission to a user today, but you do not want the user to query dictionary views. set o7_dictionary_accessibility to false in ora, but do not know the impact on the system.
A:
No effect! This parameter controls the select any table permission. If this parameter is set to true, an account with the select any table permission can view data dictionaries such as DBA _ v $, no (false), you can only view dictionaries with permissions such as user _ and all _, but select_catalog_role is not controlled by this parameter.