Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Give user index grants Oracle 8/9i
Sean wrote:
> After digging around some, it appears ADO recognizes the primary key on
> the table for non-owner users if you address the table with the
> <OWNER>.<TABLE> specification in your query. If you use the synonym
> specification of just <SYNONYM> for the table, the primary key
> information isn't recognized. Why is this?
I am familiar with ADO. The primary keys still apply, even though it may appear that those primary keys are not visible (see below for a SQL statement). As mentioned in my previous post, the DBA_n views are accessible by the database administrators, the ALL_n views are accessible by all users and show those objects for which the user may access, and the USER_n views show the objects owned by a user.
The database administrators may use a SQL statement like this to view the indexes and the tables and columns which are indexed: SELECT
DI.OWNER, DI.INDEX_NAME, DI.INDEX_TYPE, DI.TABLE_OWNER, DI.TABLE_NAME, DIC.COLUMN_NAME,
DI.TABLE_TYPE, DI.UNIQUENESS, DI.COMPRESSION, DI.PREFIX_LENGTH, DI.TABLESPACE_NAME
DI.OWNER, DI.TABLE_OWNER, DI.TABLE_NAME,
DI.OWNER, DI.INDEX_NAME, DI.INDEX_TYPE, DI.TABLE_OWNER, DI.TABLE_NAME, DIC.COLUMN_NAME,
DI.TABLE_TYPE, DI.UNIQUENESS, DI.COMPRESSION, DI.PREFIX_LENGTH, DI.TABLESPACE_NAME
DI.OWNER, DI.TABLE_OWNER, DI.TABLE_NAME,
DC.OWNER, DC.CONSTRAINT_NAME, DC.CONSTRAINT_TYPE, DC.TABLE_NAME,
DC.R_OWNER, DC.R_CONSTRAINT_NAME, DC.DELETE_RULE, DC.STATUS, DC.DEFERRABLE, DC.DEFERRED, DC.VALIDATED, DC.LAST_CHANGE
DC.OWNER, DC.TABLE_NAME, DC.CONSTRAINT_NAME,
snpData("DC.CONSTRAINT_NAME") would generate an error, while snpData("CONSTRAINT_NAME") and snpData(1) and snpData("CONSTRAINT_NAME").Value and snpData(1).Value all return the column value without error
Charles Hooper
PC Support Specialist
K&M Machine-Fabricating, Inc.
Received on Sat Nov 18 2006 - 07:09:48 CST
![]() |
![]() |