| Title: | DB Integrator Public Conference |
| Notice: | Database Integration - today! Kit/Doc info see note 36 |
| Moderator: | BROKE::ABUGOV |
| Created: | Mon Sep 21 1992 |
| Last Modified: | Fri Jun 06 1997 |
| Last Successful Update: | Fri Jun 06 1997 |
| Number of topics: | 1171 |
| Total number of notes: | 5187 |
Using Rdb Transparent Gateway for Oracle V7. I want to know if I've found a bug in V7. There is no DBI in this configuration, just the gateway. Here's what I've done. Oracle user SCOTT creates a table called SCOTT.MULT_OWNERS. He then grants ALTER and INDEX privileges on this table to user GREEN. User GREEN then creates an index with this SQLPLUS command: SQL> create index green.mult_owners_index on scott.mult_owners (col_a); When I try attaching using RTG/O V7 with this attach spec: attach 'f/type=oracle/table=(scott.mult_owners)/user=green/pass=xyz'; %SQL-F-ERRATTDEC, Error attaching to database /type=oracle/table=(scott.mult_own ers)/user=green/pass=xyz -RDB-E-BAD_DB_FORMAT, /DBKEY_DEFAULT_MODE=NATIVE/MAX_LONG_SIZE=512/NOENFORCE_ALL _TXN/PASSWORD=/TABLES=(SCOTT.MULT_OWNERS)/TX_MODE=WARN_1PC/TYPE=ORACLE/USER=GREE N does not reference a database known to DBI Gateway -LDRV-E-BAD_META_QUERY, An error occurred executing a metadata query: Table/Inde x Procedure -LDRV-E-UNKNOWN_TABLE, Table GREEN.MULT_OWNERS not defined -LDRV-E-ORA_DB_SUPP, ORA-01031: insufficient privileges -LDRV-E-ORA_DB_SUPP, ORA-01031: insufficient privileges Then I go back into SQLPLUS (as user SCOTT) and grant SELECT for this table to user GREEN with: SQL> grant select on scott.mult_owners to green; Grant succeeded Now when I try my gateway attach with these parameters: attach 'f/type=oracle/table=(scott.mult_owners)/user=green/pass=xyz'; %SQL-F-ERRATTDEC, Error attaching to database /type=oracle/table=(scott.mult_own ers)/user=green/pass=xyz -RDB-E-BAD_DB_FORMAT, /DBKEY_DEFAULT_MODE=NATIVE/MAX_LONG_SIZE=512/NOENFORCE_ALL _TXN/PASSWORD=/TABLES=(SCOTT.MULT_OWNERS)/TX_MODE=WARN_1PC/TYPE=ORACLE/USER=GREE N does not reference a database known to DBI Gateway -LDRV-E-BAD_META_QUERY, An error occurred executing a metadata query: Table/Inde x Procedure -LDRV-E-UNKNOWN_TABLE, Table GREEN.MULT_OWNERS not defined To me this looks like a gateway bug. User GREEN has been granted the privs to alter the table, create an index and select data from this table. Yet he cannot even attach using /table=owner.table_name with the gateway. He also can't attach when omitting /table using the gateway and that's even worse. I couldn't find anything documented on this in the Product Family Users Guide chapter 5 (Oracle gateway chapter), or in any of the V7 rel notes, byi etc. Thanks as always, Don
| T.R | Title | User | Personal Name | Date | Lines |
|---|---|---|---|---|---|
| 1146.1 | works from SQLPLUS | DIGANT::GREEN | Mon Apr 07 1997 17:11 | 5 | |
Forgot to mention in the previous note that this all works fine using
SQLPLUS.
Thanks,
Don
| |||||
| 1146.2 | I think this is it | BROKE::BITHER | Tue Apr 08 1997 08:45 | 88 | |
Could this be the problem? Note the line that says "The DBIG/Oracle
incorrectly assumes that an index on a table is always owned by the owner
of the table." It says engineering was working on a fix but it looks
possible that one was never developed.
Note, there is a workaround but it may not be something the customer
wants to do.
Thanks, Diane
--------------------------------------------------------------------------
[GTWYORA] LDRV-E-UNKNOWN_TABLE Error Occurs When Attaching to Oracle Database
Copyright (c) Digital Equipment Corporation 1995. All rights reserved.
PRODUCT: DEC DB Integrator Gateway for Oracle v3.*
OP/SYS: OpenVMS VAX, OpenVMS AXP
DEC OSF/1 AXP
SOURCE: Digital Equipment Corporation
PROBLEM:
Attaching to an Oracle database through DEC DB Integrator Gateway for
Oracle (DBIG/Oracle) results in the following error:
ATTACH 'FILE /TYPE=ORACLE/USER=SCOTT/PASS=TIGER/NODE=T:MRDBSERV:MRDBSERV';
%SQL-F-ERRATTDEC, Error attaching to database
/TYPE=ORACLE/USER=SCOTT/PASS=TIGER
/NODE=T:MRDBSERV:MRDBSERV
-RDB-E-BAD_DB_FORMAT,
/DBKEY_DEFAULT_MODE=NATIVE/MAX_LONG_SIZE=512/NODE=T:MRDBSE
RV:MRDBSERV/NOENFORCE_ALL_TXN/PASSWORD=/TX_MODE=WARN_1PC/TYPE=ORACLE/USER=SCOTT
does not reference a database known to DEC DBI Gateway
-LDRV-E-BAD_META_QUERY, An error occurred executing a metadata query:
Table/Index Procedure
-RDB-E-BAD_DB_FORMAT,
/DBKEY_DEFAULT_MODE=NATIVE/MAX_LONG_SIZE=512/NODE=T:MRDBSE
RV:MRDBSERV/NOENFORCE_ALL_TXN/PASSWORD=/TX_MODE=WARN_1PC/TYPE=ORACLE/USER=SCOTT
does not reference a database known to DEC DBI Gateway
-LDRV-E-UNKNOWN_TABLE, Table O_SHI.KANAUFT not defined
^^^^^^^^^^^^^
The attach works fine with /TABLE:
ATTACH 'FILE/TYPE=ORACLE/USER=SCOTT/PASS=TIGER
/NODE=T:MRDBSERV:MRDBSERV/TABLE=KANAUFT';
^^^^^^^
ANALYSIS:
Table KANUAFT is owned by schema MR and not by schema O_SHI. However,
there is an index defined on table KANAUFT and owned by schema O_SHI
and not schema MR. Oracle allows indexes to be created on tables and owned
by different owners from the table owners. The DBIG/Oracle incorrectly
assumes that an index on a table is always owned by the owner of the table.
To see if the above scenario is true, obtain the Oracle metadata by
executing the following queries in SQL*Plus.
SQL> select aic.index_owner, aic.index_name, aic.table_name,
ai.table_owner, aic.column_name
2 from all_ind_columns aic, all_indexes ai
3 where (aic.index_owner = ai.owner) and (aic.index_name =
ai.index_name)
4 and (aic.table_owner = ai.table_owner) and (aic.table_name =
ai.table_name);
SQL> select owner, table_name from all_tables;
SQL> describe KANAUFT;
SOLUTION:
Engineering is working on a fix to be released in a future MUP kit.
WORKAROUND:
The workaround would be to drop the index currently owned by O_SHI on
this table and re-create the index with its owner being MR.
| |||||
| 1146.3 | Yes, thanks, but... | DIGANT::GREEN | Tue Apr 08 1997 10:01 | 4 | |
Customer knows about the workaround, but wants the problem fixed.
Thanks,
Don
| |||||
| 1146.4 | Official bug required? | DIGANT::GREEN | Tue Apr 08 1997 12:19 | 6 | |
Seeing that this problem first occurred while DBI was owned by DEC
should I create an official bug? Or is this in the QAR system and
that's good enough?
Thanks,
Don
| |||||
| 1146.5 | 476094 | BROKE::GREEN | Tue Apr 08 1997 15:00 | 1 | |
Bug # 476094 | |||||