Tuesday, September 16, 2008

DBA_DIRECTORIES

Thank you for visiting Spatial DBA - Oracle and ArcSDE.

Please visit Oracle DBA Tips (http://www.oracledbatips.com) for more Oracle DBA Tips.

==================================================================


DBA_DIRECTORIES describes all directory objects in the database. Its columns are the same as those in "ALL_DIRECTORIES".

Related View
·         ALL_DIRECTORIES describes all directories accessible to the current user.
Column
Datatype
NULL
Description
OWNER
VARCHAR2(30)
NOT NULL
Owner of the directory (always SYS)
DIRECTORY_NAME
VARCHAR2(30)
NOT NULL
Name of the directory
DIRECTORY_PATH
VARCHAR2(4000)

Operating system pathname for the directory

Note:
1.       SQL statements for directories:
System privileges
GRANT create any directory TO ;
GRANT drop any directory TO ;
Create a directory
CREATE OR REPLACE DIRECTORY AS '';
Grant read on a directory
GRANT READ ON DIRECTORY TO
Grant write on a directory
GRANT WRITE ON DIRECTORY TO
Revoke read on a directory
REVOKE READ ON DIRECTORY FROM
Revoke write on a directory
REVOKE WRITE ON DIRECTORY FROM
Drop a directory
DROP DIRECTORY ;

2.       When creating a directory, sqlplus cannot interpret environment variable ORACLE_HOME. If a directory is created (eg. create directory dpump_dir1 as '%ORACLE_HOME%\admin\dpdump';), any reference to the directory fails. Specifying environment variables in the 'create directory' statement is not a supported / documented feature. There are two reasons: 1). Different platforms like Windows, Unix and VMS specify environment variables differently. It would therefore be difficult to implement generically; 2) It is also a potential security hazard, since if it would work for $ORACLE_HOME it would also work for other environment variables, which would allow to the directory to be placed at another location on disk. Hence, the solution has to be to specify directories using a full (hardcoded) path.
3.       Example of contents of DBA_DIRECTORIES

select * from DBA_DIRECTORIES;
               
OWNER
DIRECTORY_NAME
DIRECTORY_PATH
SYS
DATA_PUMP_DIR
/oracle/product/10.2.0.1ee/rdbms/log/
SYS
ADMIN_DIR
/oracle/product/10.2.0.1ee/md/admin
SYS
TIMEZDIF_DIR
/oracle/product/10.2.0.2ee/oracore/zoneinfo


Last updated: 2009-11-02 Monday

DBA_DIMENSIONS

DBA_DIMENSIONS represents dimension objects. Its columns are the same as those in "ALL_DIMENSIONS".

Related Views

· ALL_DIMENSIONS describes dimension objects accessible to the current user.

· USER_DIMENSIONS describes dimensions in the current user's schema.

Column

Datatype

NULL

Description

OWNER

VARCHAR2(30)

NOT NULL

Owner of the dimension

DIMENSION_NAME

VARCHAR2(30)

NOT NULL

Name of the dimension

INVALID

VARCHAR2(1)

Indicates whether the dimension is invalid (Y) or valid (N)

COMPILE_STATE

VARCHAR2(13)

Compile status of the dimension:

· INVALID

· NEEDS_COMPILE

· ERROR

REVISION

NUMBER

Dimension revision level

Oracle data dictionary views

Oracle dynamic performance views

DBA_CUBES

DBA_CUBES describes all OLAP cubes in the database. Its columns are the same as those in ALL_CUBES.

Related Views

· ALL_CUBES describes the OLAP cubes accessible to the current user.

· USER_CUBES describes the OLAP cubes owned by the current user. This view does not display the OWNER column.

Column

Datatype

NULL

Description

OWNER

VARCHAR2(30)

Owner of the cube

CUBE_NAME

VARCHAR2(30)

NOT NULL

Name of a cube, such as UNITS_CUBE

AW_NAME

VARCHAR2(30)

Name of the analytic workspace that contains the cube, such as GLOBAL

CONSISTENT_SOLVE_SPEC

CLOB

Default aggregation rules for the cube

DESCRIPTION

NVARCHAR2(300)

Description of the cube in the session language

SPARSE_TYPE

VARCHAR2(80)

Text value indicating the type of sparsity for the OLAP cube

PRECOMPUTE_CONDITION

CLOB

Condition syntax representing the precompute condition of the OLAP cube

PRECOMPUTE_PERCENT

NUMBER

Percentage of aggregate data values that are calculated and stored during data maintenance. If the cube is partitioned, then this percentage is for the bottom partitions.

PRECOMPUTE_PERCENT_TOP

NUMBER

Percentage of aggregate data values in the top partition that are calculated and stored during data maintenance

PARTITION_DIMENSION_NAME

VARCHAR2(30)

Name of the dimension used to partition the cube, such as TIME

PARTITION_HIERARCHY_NAME

VARCHAR2(30)

Name of the dimension hierarchy used to partition the cube, such as CALENDAR

PARTITION_LEVEL_NAME

VARCHAR2(30)

Name of the level used to partition the cube, such as QUARTER

Oracle data dictionary views

Oracle dynamic performance views

DBA_CLUSTERS

DBA_CLUSTERS describes all clusters in the database. Its columns are the same as those in "ALL_CLUSTERS".

Related Views

· ALL_CLUSTERS describes all clusters accessible to the current user.

· USER_CLUSTERS describes all clusters owned by the current user. This view does not display the OWNER column.

Column

Datatype

NULL

Description

OWNER

VARCHAR2(30)

NOT NULL

Owner of the cluster

CLUSTER_NAME

VARCHAR2(30)

NOT NULL

Name of the cluster

TABLESPACE_NAME

VARCHAR2(30)

NOT NULL

Name of the tablespace containing the cluster

PCT_FREE

NUMBER

Minimum percentage of free space in a block

PCT_USED

NUMBER

Minimum percentage of used space in a block

KEY_SIZE

NUMBER

Estimated size of cluster key plus associated rows

INI_TRANS

NUMBER

NOT NULL

Initial number of transactions

MAX_TRANS

NUMBER

NOT NULL

Maximum number of transactions

INITIAL_EXTENT

NUMBER

Size of the initial extent in bytes

NEXT_EXTENT

NUMBER

Size of secondary extents in bytes

MIN_EXTENTS

NUMBER

NOT NULL

Minimum number of extents allowed in the segment

MAX_EXTENTS

NUMBER

NOT NULL

Maximum number of extents allowed in the segment

PCT_INCREASE

NUMBER

Percentage increase in extent size

FREELISTS

NUMBER

Number of process freelists allocated to this segment

FREELIST_GROUPS

NUMBER

Number of freelist groups allocated to this segment

AVG_BLOCKS_PER_KEY

NUMBER

Number of blocks in the table divided by number of cluster keys

CLUSTER_TYPE

VARCHAR2(5)

Type of cluster: B*-Tree index or hash

FUNCTION

VARCHAR2(15)

If a hash cluster, the hash function

HASHKEYS

NUMBER

If a hash cluster, the number of hash keys (hash buckets)

DEGREE

VARCHAR2(10)

Number of threads per instance for scanning the cluster

INSTANCES

VARCHAR2(10)

Number of instances across which the cluster is to be scanned

CACHE

VARCHAR2(5)

Indicates whether the cluster is to be cached in the buffer cache (Y) or not (N)

BUFFER_POOL

VARCHAR2(7)

Default buffer pool for the cluster

SINGLE_TABLE

VARCHAR2(5)

Indicates whether this is a single-table cluster (Y) or not (N)

DEPENDENCIES

VARCHAR2(8)

Indicates whether row-level dependency tracking is enabled (ENABLED) or disabled (DISABLED)

Oracle data dictionary views

Oracle dynamic performance views