selection of multiple grants on the same object

Hello

(The following SQl code will be run on 9i, 10g and 11g database versions)

Im trying to produce a list of the directory of the subsidies that are the same from 2 different users (but only display the details of a user grants)

to clarify...

lets say we have 100 directories and 2 users who have granted permissions on them, user A and user B.

Permissions can be granted on a directory by just A user, to any user B or the same permission granted on the same directory by users A and B.

I want to make a list that displays the details of the directories where user A and user B are granted this permission (but in the list only display the details of A user grants)

If the following SQL code will give me all the directory permissions that are granted by user A

Select p.table_name, p.grantee, p.owner, p.grantor, p.privilege, o.object_type
of dba_tab_privs p
dba_objects o inner join
on o.object_name = p.table_name
where o.object_type = 'DIRECTORY '.
and p.grantor = 'USER ';

so I want to make the same list of grants by USERA just, but only if these directories have also been granted the same permission by USERB

any ideas on the best way to do it?

Thank you

882817 wrote:
What's the advantage I have this solution on the previous?

Well, I just introduced two solutions. Depending on the particular case compare you execution plans and choose a better. Here we have quite complex views, but I would say the analytical solution is a little bit faster:

SQL> explain plan for
  2  select  p.table_name,
  3          p.grantee,
  4          p.owner,
  5          p.grantor,
  6          p.privilege,
  7          o.object_type
  8    from      dba_tab_privs p
  9          inner join
 10              dba_objects o
 11            on (
 12                    o.object_type = 'DIRECTORY'
 13                and
 14                    o.owner = p.owner
 15                and
 16                    o.object_name = p.table_name
 17                and
 18                    p.grantor != 'U2'
 19               )
 20    where not exists (
 21                      select  1
 22                        from  dba_tab_privs p1
 23                        where p.owner = p1.owner
 24                          and p.table_name = p1.table_name
 25                          and p.grantee = p1.grantee
 26                          and p.privilege = p1.privilege
 27                          and p1.grantor = 'U2'
 28*                    )
SQL> /

Explained.

SQL> @?\rdbms\admin\utlxpls

PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------
Plan hash value: 1557554763

----------------------------------------------------------------------------------------------------------------------
| Id  | Operation                            | Name                  | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
----------------------------------------------------------------------------------------------------------------------
|   0 | SELECT STATEMENT                     |                       |   494 |   131K|       |   864   (5)| 00:00:11 |
|*  1 |  HASH JOIN                           |                       |   494 |   131K|       |   864   (5)| 00:00:11 |
|*  2 |   TABLE ACCESS FULL                  | USER$                 |    73 |  1095 |       |     3   (0)| 00:00:01 |
|*  3 |   HASH JOIN ANTI                     |                       |   494 |   124K|       |   861   (5)| 00:00:11 |
|*  4 |    HASH JOIN                         |                       |   522 | 96570 |       |   681   (5)| 00:00:09 |
|   5 |     TABLE ACCESS FULL                | USER$                 |    74 |  1110 |       |     3   (0)| 00:00:01 |

PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------
|*  6 |     HASH JOIN                        |                       |   522 | 88740 |       |   678   (5)| 00:00:09 |
|   7 |      TABLE ACCESS FULL               | USER$                 |    74 |  1110 |       |     3   (0)| 00:00:01 |
|*  8 |      HASH JOIN                       |                       | 38597 |  5842K|  1752K|   674   (5)| 00:00:09 |
|*  9 |       HASH JOIN                      |                       | 24484 |  1458K|       |   172   (5)| 00:00:03 |
|* 10 |        HASH JOIN                     |                       | 24221 |   685K|       |    23   (9)| 00:00:01 |
|  11 |         INDEX FULL SCAN              | I_TABLE_PRIVILEGE_MAP |    24 |   240 |       |     1   (0)| 00:00:01 |
|* 12 |         TABLE ACCESS FULL            | OBJAUTH$              | 24221 |   449K|       |    21   (5)| 00:00:01 |
|  13 |        TABLE ACCESS FULL             | OBJ$                  | 52647 |  1645K|       |   147   (3)| 00:00:02 |
|  14 |       VIEW                           | DBA_OBJECTS           | 49670 |  4559K|       |   164  (10)| 00:00:02 |
|  15 |        UNION-ALL                     |                       |       |       |       |            |          |
|* 16 |         FILTER                       |                       |       |       |       |            |          |

PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------
|* 17 |          HASH JOIN                   |                       | 52627 |  2826K|       |   162  (10)| 00:00:02 |
|  18 |           TABLE ACCESS FULL          | USER$                 |    74 |  1110 |       |     3   (0)| 00:00:01 |
|* 19 |           TABLE ACCESS FULL          | OBJ$                  | 52627 |  2055K|       |   158   (9)| 00:00:02 |
|* 20 |          TABLE ACCESS BY INDEX ROWID | IND$                  |     1 |     8 |       |     2   (0)| 00:00:01 |
|* 21 |           INDEX UNIQUE SCAN          | I_IND1                |     1 |       |       |     1   (0)| 00:00:01 |
|* 22 |           TABLE ACCESS BY INDEX ROWID| SUM$                  |     1 |     8 |       |     1   (0)| 00:00:01 |
|* 23 |            INDEX UNIQUE SCAN         | I_SUM$_1              |     1 |       |       |     0   (0)| 00:00:01 |
|* 24 |         FILTER                       |                       |       |       |       |            |          |
|* 25 |          HASH JOIN                   |                       |     9 |   513 |       |     5  (20)| 00:00:01 |
|  26 |           INDEX FULL SCAN            | I_LINK1               |     9 |   378 |       |     1   (0)| 00:00:01 |
|  27 |           TABLE ACCESS FULL          | USER$                 |    74 |  1110 |       |     3   (0)| 00:00:01 |

PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------
|  28 |    VIEW                              | VW_SQ_1               |  1530 |   109K|       |   179   (4)| 00:00:03 |
|* 29 |     HASH JOIN                        |                       |  1530 |   158K|       |   179   (4)| 00:00:03 |
|  30 |      TABLE ACCESS FULL               | USER$                 |    74 |  1110 |       |     3   (0)| 00:00:01 |
|* 31 |      HASH JOIN                       |                       |  1530 |   135K|       |   176   (4)| 00:00:03 |
|* 32 |       HASH JOIN                      |                       |  1514 | 89326 |       |    27   (8)| 00:00:01 |
|  33 |        TABLE ACCESS FULL             | USER$                 |    74 |  1110 |       |     3   (0)| 00:00:01 |
|* 34 |        HASH JOIN                     |                       |  1514 | 66616 |       |    24   (9)| 00:00:01 |
|  35 |         INDEX FULL SCAN              | I_TABLE_PRIVILEGE_MAP |    24 |   240 |       |     1   (0)| 00:00:01 |
|  36 |         NESTED LOOPS                 |                       |  1514 | 51476 |       |    22   (5)| 00:00:01 |
|  37 |          TABLE ACCESS BY INDEX ROWID | USER$                 |     1 |    15 |       |     1   (0)| 00:00:01 |
|* 38 |           INDEX UNIQUE SCAN          | I_USER1               |     1 |       |       |     0   (0)| 00:00:01 |

PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------
|* 39 |          TABLE ACCESS FULL           | OBJAUTH$              |  1514 | 28766 |       |    21   (5)| 00:00:01 |
|  40 |       TABLE ACCESS FULL              | OBJ$                  | 52647 |  1645K|       |   147   (3)| 00:00:02 |
----------------------------------------------------------------------------------------------------------------------

Predicate Information (identified by operation id):
---------------------------------------------------

   1 - access("OA"."GRANTOR#"="UR"."USER#")
   2 - filter("UR"."NAME"<>'U2')
   3 - access("U"."NAME"="NAME" AND "O"."NAME"="NAME" AND "UE"."NAME"="NAME" AND "TPM"."NAME"="NAME")
   4 - access("OA"."GRANTEE#"="UE"."USER#")

PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------
   6 - access("O"."OWNER"="U"."NAME" AND "U"."USER#"="O"."OWNER#")
   8 - access("O"."OBJECT_NAME"="O"."NAME")
   9 - access("OA"."OBJ#"="O"."OBJ#")
  10 - access("OA"."PRIVILEGE#"="TPM"."PRIVILEGE")
  12 - filter("OA"."COL#" IS NULL)
  16 - filter(("O"."TYPE#"<>1 AND "O"."TYPE#"<>10 OR "O"."TYPE#"=1 AND  (SELECT 1 FROM "SYS"."IND$" "I" WHERE
              "I"."OBJ#"=:B1 AND ("I"."TYPE#"=1 OR "I"."TYPE#"=2 OR "I"."TYPE#"=3 OR "I"."TYPE#"=4 OR "I"."TYPE#"=6 OR
              "I"."TYPE#"=7 OR "I"."TYPE#"=9))=1) AND DECODE("O"."TYPE#",0,'NEXT
              OBJECT',1,'INDEX',2,'TABLE',3,'CLUSTER',4,'VIEW',5,'SYNONYM',6,'SEQUENCE',7,'PROCEDURE',8,'FUNCTION',9,'PACKAG
              E',11,'PACKAGE BODY',12,'TRIGGER',13,'TYPE',14,'TYPE BODY',19,'TABLE PARTITION',20,'INDEX
              PARTITION',21,'LOB',22,'LIBRARY',23,'DIRECTORY',24,'QUEUE',28,'JAVA SOURCE',29,'JAVA CLASS',30,'JAVA

PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------
              RESOURCE',32,'INDEXTYPE',33,'OPERATOR',34,'TABLE SUBPARTITION',35,'INDEX SUBPARTITION',40,'LOB
              PARTITION',41,'LOB SUBPARTITION',42,NVL( (SELECT DISTINCT 'REWRITE EQUIVALENCE' FROM SYS."SUM$" "S" WHERE
              "S"."OBJ#"=:B2 AND BITAND("S"."XPFLAGS",8388608)=8388608),'MATERIALIZED
              VIEW'),43,'DIMENSION',44,'CONTEXT',46,'RULE SET',47,'RESOURCE PLAN',48,'CONSUMER
              GROUP',51,'SUBSCRIPTION',52,'LOCATION',55,'XML SCHEMA',56,'JAVA DATA',57,'SECURITY
              PROFILE',59,'RULE',60,'CAPTURE',61,'APPLY',62,'EVALUATION CONTEXT',66,'JOB',67,'PROGRAM',68,'JOB
              CLASS',69,'WINDOW',72,'WINDOW GROUP',74,'SCHEDULE',79,'CHAIN',81,'FILE GROUP','UNDEFINED')='DIRECTORY')
  17 - access("O"."OWNER#"="U"."USER#")
  19 - filter("O"."LINKNAME" IS NULL AND "O"."NAME"<>'_NEXT_OBJECT' AND
              "O"."NAME"<>'_default_auditing_options_' AND BITAND("O"."FLAGS",128)=0)
  20 - filter("I"."TYPE#"=1 OR "I"."TYPE#"=2 OR "I"."TYPE#"=3 OR "I"."TYPE#"=4 OR "I"."TYPE#"=6 OR

PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------
              "I"."TYPE#"=7 OR "I"."TYPE#"=9)
  21 - access("I"."OBJ#"=:B1)
  22 - filter(BITAND("S"."XPFLAGS",8388608)=8388608)
  23 - access("S"."OBJ#"=:B1)
  24 - filter(NULL IS NOT NULL)
  25 - access("L"."OWNER#"="U"."USER#")
  29 - access("U"."USER#"="O"."OWNER#")
  31 - access("OA"."OBJ#"="O"."OBJ#")
  32 - access("OA"."GRANTEE#"="UE"."USER#")
  34 - access("OA"."PRIVILEGE#"="TPM"."PRIVILEGE")
  38 - access("UR"."NAME"='U2')

PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------
  39 - filter("OA"."COL#" IS NULL AND "OA"."GRANTOR#"="UR"."USER#")

89 rows selected.

SQL> explain plan for
  2  select  table_name,
  3          grantee,
  4          owner,
  5          grantor,
  6          privilege,
  7          object_type
  8    from  (
  9           select  p.table_name,
 10                   p.grantee,
 11                   p.owner,
 12                   p.grantor,
 13                   p.privilege,
 14                   o.object_type,
 15                   count(case when p.grantor != 'U2' then 1 end) over(partition by p.table_name,p.grantee,p.owner,p.privilege) u2_indicator
 16             from      dba_tab_privs p
 17                   inner join
 18                       dba_objects o
 19                     on (
 20                             o.object_type = 'DIRECTORY'
 21                         and
 22                             o.owner = p.owner
 23                         and
 24                             o.object_name = p.table_name
 25                        )
 26          )
 27    where u2_indicator = 1
 28  / 

Explained.

SQL>
SQL>
SQL> @?\rdbms\admin\utlxpls

PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------
Plan hash value: 1974693759

------------------------------------------------------------------------------------------------------------------------
| Id  | Operation                              | Name                  | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
------------------------------------------------------------------------------------------------------------------------
|   0 | SELECT STATEMENT                       |                       |   522 | 59508 |       |   674   (5)| 00:00:09 |
|*  1 |  VIEW                                  |                       |   522 | 59508 |       |   674   (5)| 00:00:09 |
|   2 |   WINDOW SORT                          |                       |   522 |   101K|       |   674   (5)| 00:00:09 |
|*  3 |    HASH JOIN                           |                       |   522 |   101K|       |   673   (5)| 00:00:09 |
|   4 |     TABLE ACCESS FULL                  | USER$                 |    74 |  1110 |       |     3   (0)| 00:00:01 |
|*  5 |     HASH JOIN                          |                       |   522 | 96570 |       |   670   (5)| 00:00:09 |

PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------
|   6 |      TABLE ACCESS FULL                 | USER$                 |    74 |  1110 |       |     3   (0)| 00:00:01 |
|*  7 |      HASH JOIN                         |                       |   522 | 88740 |       |   666   (5)| 00:00:08 |
|   8 |       INDEX FULL SCAN                  | I_TABLE_PRIVILEGE_MAP |    24 |   240 |       |     1   (0)| 00:00:01 |
|*  9 |       HASH JOIN                        |                       |   522 | 83520 |       |   665   (5)| 00:00:08 |
|  10 |        TABLE ACCESS FULL               | USER$                 |    74 |  1110 |       |     3   (0)| 00:00:01 |
|* 11 |        HASH JOIN                       |                       | 38597 |  5465K|  1512K|   661   (4)| 00:00:08 |
|* 12 |         HASH JOIN                      |                       | 24484 |  1219K|       |   170   (4)| 00:00:03 |
|* 13 |          TABLE ACCESS FULL             | OBJAUTH$              | 24221 |   449K|       |    21   (5)| 00:00:01 |
|  14 |          TABLE ACCESS FULL             | OBJ$                  | 52647 |  1645K|       |   147   (3)| 00:00:02 |
|  15 |         VIEW                           | DBA_OBJECTS           | 49670 |  4559K|       |   164  (10)| 00:00:02 |
|  16 |          UNION-ALL                     |                       |       |       |       |            |          |

PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------
|* 17 |           FILTER                       |                       |       |       |       |            |          |
|* 18 |            HASH JOIN                   |                       | 52627 |  2826K|       |   162  (10)| 00:00:02 |
|  19 |             TABLE ACCESS FULL          | USER$                 |    74 |  1110 |       |     3   (0)| 00:00:01 |
|* 20 |             TABLE ACCESS FULL          | OBJ$                  | 52627 |  2055K|       |   158   (9)| 00:00:02 |
|* 21 |            TABLE ACCESS BY INDEX ROWID | IND$                  |     1 |     8 |       |     2   (0)| 00:00:01 |
|* 22 |             INDEX UNIQUE SCAN          | I_IND1                |     1 |       |       |     1   (0)| 00:00:01 |
|* 23 |             TABLE ACCESS BY INDEX ROWID| SUM$                  |     1 |     8 |       |     1   (0)| 00:00:01 |
|* 24 |              INDEX UNIQUE SCAN         | I_SUM$_1              |     1 |       |       |     0   (0)| 00:00:01 |
|* 25 |           FILTER                       |                       |       |       |       |            |          |
|* 26 |            HASH JOIN                   |                       |     9 |   513 |       |     5  (20)| 00:00:01 |
|  27 |             INDEX FULL SCAN            | I_LINK1               |     9 |   378 |       |     1   (0)| 00:00:01 |

PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------
|  28 |             TABLE ACCESS FULL          | USER$                 |    74 |  1110 |       |     3   (0)| 00:00:01 |
------------------------------------------------------------------------------------------------------------------------

Predicate Information (identified by operation id):
---------------------------------------------------

   1 - filter("U2_INDICATOR"=1)
   3 - access("OA"."GRANTEE#"="UE"."USER#")
   5 - access("OA"."GRANTOR#"="UR"."USER#")
   7 - access("OA"."PRIVILEGE#"="TPM"."PRIVILEGE")
   9 - access("O"."OWNER"="U"."NAME" AND "U"."USER#"="O"."OWNER#")

PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------
  11 - access("O"."OBJECT_NAME"="O"."NAME")
  12 - access("OA"."OBJ#"="O"."OBJ#")
  13 - filter("OA"."COL#" IS NULL)
  17 - filter(("O"."TYPE#"<>1 AND "O"."TYPE#"<>10 OR "O"."TYPE#"=1 AND  (SELECT 1 FROM "SYS"."IND$" "I" WHERE
              "I"."OBJ#"=:B1 AND ("I"."TYPE#"=1 OR "I"."TYPE#"=2 OR "I"."TYPE#"=3 OR "I"."TYPE#"=4 OR "I"."TYPE#"=6 OR
              "I"."TYPE#"=7 OR "I"."TYPE#"=9))=1) AND DECODE("O"."TYPE#",0,'NEXT
              OBJECT',1,'INDEX',2,'TABLE',3,'CLUSTER',4,'VIEW',5,'SYNONYM',6,'SEQUENCE',7,'PROCEDURE',8,'FUNCTION',9,'PACKAGE'
              ,11,'PACKAGE BODY',12,'TRIGGER',13,'TYPE',14,'TYPE BODY',19,'TABLE PARTITION',20,'INDEX
              PARTITION',21,'LOB',22,'LIBRARY',23,'DIRECTORY',24,'QUEUE',28,'JAVA SOURCE',29,'JAVA CLASS',30,'JAVA
              RESOURCE',32,'INDEXTYPE',33,'OPERATOR',34,'TABLE SUBPARTITION',35,'INDEX SUBPARTITION',40,'LOB
              PARTITION',41,'LOB SUBPARTITION',42,NVL( (SELECT DISTINCT 'REWRITE EQUIVALENCE' FROM SYS."SUM$" "S" WHERE

PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------
              "S"."OBJ#"=:B2 AND BITAND("S"."XPFLAGS",8388608)=8388608),'MATERIALIZED
              VIEW'),43,'DIMENSION',44,'CONTEXT',46,'RULE SET',47,'RESOURCE PLAN',48,'CONSUMER
              GROUP',51,'SUBSCRIPTION',52,'LOCATION',55,'XML SCHEMA',56,'JAVA DATA',57,'SECURITY
              PROFILE',59,'RULE',60,'CAPTURE',61,'APPLY',62,'EVALUATION CONTEXT',66,'JOB',67,'PROGRAM',68,'JOB
              CLASS',69,'WINDOW',72,'WINDOW GROUP',74,'SCHEDULE',79,'CHAIN',81,'FILE GROUP','UNDEFINED')='DIRECTORY')
  18 - access("O"."OWNER#"="U"."USER#")
  20 - filter("O"."LINKNAME" IS NULL AND "O"."NAME"<>'_NEXT_OBJECT' AND
              "O"."NAME"<>'_default_auditing_options_' AND BITAND("O"."FLAGS",128)=0)
  21 - filter("I"."TYPE#"=1 OR "I"."TYPE#"=2 OR "I"."TYPE#"=3 OR "I"."TYPE#"=4 OR "I"."TYPE#"=6 OR
              "I"."TYPE#"=7 OR "I"."TYPE#"=9)
  22 - access("I"."OBJ#"=:B1)

PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------
  23 - filter(BITAND("S"."XPFLAGS",8388608)=8388608)
  24 - access("S"."OBJ#"=:B1)
  25 - filter(NULL IS NOT NULL)
  26 - access("L"."OWNER#"="U"."USER#")

70 rows selected.

SQL> 

SY.

Tags: Database

Similar Questions

  • How to select multiple cells at the same time?

    Hello

    How to select multiple cells at the same time? What is the keyboard shortcut?

    Thank you to.

    Flo, a french guy.

    Hold down the CMD key when you select the cells.

  • Parameters for the single instance of DCOM for multiple users on the same machine

    I have a DCOM on a Windows 2008 R2, Enterprise Edition machine. I would like to be able to open an instance of the DCOM and have it accessible by multiple users on the same machine, i.e. users connected to Windows accounts.

    What settings will do? In the tab 'identity' in dcomconfg for my DCOM object settings, I tried "interactive user", 'the user running' and 'this user', all three lead to the same result: start a new instance DCOM on easch Windows of the connected customer accounts, despite the existence of bodies being already running on other accounts. This baffles me, especially with the third alternative, 'this user', which should certainly lead to all proceedings being started by this specific account? This is not the case. Any help would be appreciated!

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
    *
  • How to open multiple files with the same extension in one program from the Explorer

    I frequently receive several JPG (or whatever extension) files to my clients.  On Windows XP, I could just highlight the files I want to open, and then click Open.  They would be so open to 1 program cascading.  This made it easy when comparing many images.  If I do the same thing in Windows 7, it opens the default program several times and puts 1 image of each open program.  It is Paint Shop Pro in my case.  Thus, instead of so-called images 5 open cascading in Paint Shop Pro... the computer open Paint Shop Pro 5 times with 1 image of each open version of the program.  I tried this search like crazy, but cannot find the right thread for an answer.  Most of the threads are on the opening of the different file types.  My question is only about the opening of multiple files with the same exact file inside 1 free program extension.

    Is this the same version of Paint Shop?

    One thing you might try is to open Paint Shop, then select and drag all the files in this window of the paint shop.  Various programs to manage this type of action differently from the DDE, but it might give you the expected results.

  • share 'Start' content and presentation of the tile with multiple users on the same Tablet Windows RT

    Hello

    Can someone tell me if it is possible to share/copy the content start and the tile layout with multiple users on the same shelf?

    Hello

    Welcome to the Microsoft community.

    Unfortunately, you will not be able to share or copy the content start and available to tile with multiple users. However, you can rearrange the tiles and select the content to be displayed manually on each of the user accounts.

    See these articles for more details:

    Customize the splash screen

    http://Windows.Microsoft.com/en-in/Windows-8/start-screen#1TC=T1

    Reorganization of the tiles start

    http://Windows.Microsoft.com/en-in/Windows-8/rearrange-tiles-start

    I hope this helps. Let us know if you need more assistance.

  • Dblink Oracle to sql server, multiple database on the same server sql under a dblink

    Hi, we managed to set up an Oracle dblink to sql server and retrieve data.

    The user of sql server have been using via dblink has access to multiple databases on the same sql server

    But the question is how in oracle (if possible) prepend you the SQL access to this?

    For example:

    Sqlserver_prod has the user sqlserver_user which seems to be set up as default database sqlserver_db1

    But we have select access to sqlserver_db2

    all work well as sqlserver_user

    Select * from table_fromdb1

    Select * from dbo.table_fromdb1

    Select * from sqlserver_db1.dbo.table_fromdb1

    as does

    Select * from sqlserver_db2.dbo.table_fromdb2

    more in Oracle

    Oracle_db a dblink sqlserver_prod. World connection sqlserver_user

    everything works fine

    Select * from 'table_fromdb1"@sqlserver_prod '.

    Select * from 'dbo '. "table_fromdb1"@sqlserver_prod

    But how to (if possible) access from oracle

    sqlserver_db2.dbo.table_fromdb2

    without having to create a new sqlserver_db2_user referenced in a new dblink

    If oracle for oracle would be

    Select * from remote_oracle_schema.table@remote_oracle_db

    Hello

    You cannot select a table in a different SQL * database server from that to which the gateway instance connects.
    As stated in the documentation-

    Oracle® database gateway

    Installation and Configuration Guide

    11g Release 2 (11.2) for AIX 5 L Based Systems (64-bit), HP - UX

    Itanium, Solaris (SPARC 64-Bit), Linux x 86 operating system,

    and Linux x 86-64

    In the section.

    The example SQL Server multiple databases: Configuration of the modem router

    A separate instance of the gateway that is required for each SQL Server database. Each

    instance needs its own Gateway system ID (SID).

    ==========

    You will need to create a new instance of the gateway for the SQL * Server DB2 as well as a link separate db.

    Kind regards

    Mike

  • Captivate 9 timeline weird behavior - multiple items on the same line

    I'm a 7 Captivate program migrate 9 Captivate.

    I opened 9 Captivate

    I opened the version 7 of Captivate

    Everything worked perfectly.

    All of a sudden the timeline behaves badly.

    Now when I try to change the stacking order, several objects are appearing on the same line. Some lines are empty.

    Has anyone seen this? I've included a screenshot.

    Articles 1, 2, 3 multiple items on the same line

    Point 4, lines are empty.

    Can someone provide advice?

    Thanks Lieve. I tried everything, except the reset of the workspace (don't think this!). The project was corrupt finally decided (he was not past in other projects).

    I ended up creating a new project and copied into the new project slides. It worked fine after that.

    GRR... an hour lost

  • Is there a way to set reminders for multiple documents at the same time?

    Is there a way to set reminders for multiple documents at the same time? Now he must go through a list, manually click through a series of options, then select it. If I send more than 300 different documents to individuals at a time, it becomes tedious. Quick. A way to save me the trouble would be so so so appreciated.

    Hello Lindsayb123,

    We do have an option to set a generic reminder under choice of account in the accounts of the company and can be set by going to the tab account-> account settings-> send parameters and set reminders.

    Let me know if you need more information.

    -Usman

  • Can I download multiple files at the same time? How?

    Can I download multiple files at the same time? How?

    Hi sday706,

    If you're referring to Acrobat.com, you can certainly.

    1. Sign in to your account on https://cloud.acrobat.com/files with your Adobe ID and password.
    2. Click the icon of the file download (the cloud and arrow icon) at the top right.
    3. Select the files you want to download. Shift-click to select contiguous files. Or Ctrl + click (Windows) or command-click (Mac OS) to click on non-contiguous files.
    4. Click on choose.

    Please let us know how it goes.

    Best,

    Sara

  • How can I request a preset to multiple pictures at the same time?

    I'm almost embarrassed to ask this, because it seems so simple. But I am new to LR and need help.

    I want to apply a preset (exmample, a preset that resembles the film) to multiple pictures at the same time. (similar to edit in Photoshop batch) but I want to want the balance of whites etc is necessarily the same thing, of course. Help, please!

    Make that 99jon wrote, then select all the thumbnails of the images you want to apply a preset. (ctrl + click is sometimes a bit boring to select different in the grid images when browsing a large number of them. consider using the spray can and apply a label of color to the images you want brand. and then filter for color you "pulverized").

    After selection there is no need to switch to the module development for appl a saved preset. In the library module go to quickly develop Panel and select the preset from the "Preset" drop saved.

    Make sure that the preset affect only the properties you want to change. If the white balance must remain intact, then check the box for the white power off balance when you save a preset.

    Oli

  • How to display multiple images at the same time in CS6?

    How to display multiple images at the same time in CS6?

    Hello

    If you go to window > reorganize you can choose from several display options. Below, I have chosen two horizontal spaces since I have two images, but you can select other options if you have more than one image.

  • Consecutive tweens to the same object?

    I'm new to Flash, and I have a simple question that I can't find an answer to in the online help or tutorials topics. It is the following:

    In CS4, it is possible to add two consecutive to the same object (symbol instance) tweens? I mean have a shape move from the left, wait a few seconds and then move back to the left. So far, the only method I've found is to create a copy of the object (a new instance of the coast) and animate it separately. But that creates additional objects and get the right positioning is very difficult. Is there a way to have a piece of tween and start another (possibly after a delay) on the same object in the same layer? Or in different layers, which would be better?

    Any advice is welcome.

    Gregory

    You can do this with a single object. One way using the new method of interpolation in CS4, quoted above, would be as follows.

    1. Select the object positioned at location lefmost, then choose Create a motion tween.

    2. move the playhead when you want it to be interpolated in the right, then move it.

    3. Select this image (Ctrl/Cmd-click), right-click, choose copy properties.

    4. move the playhead when you want to * start * interpolation (after the break), right-click and choose Paste properties.

    5. at the end of the duration, drag the object to the original position (so TI interpolations of return).  OR, you can copy the properties of the first image.

    Another way to do this would be:

    1. Select the object positioned at location lefmost, then choose Create a motion tween.

    2. move the playhead when you want it to be interpolated in the right, then move it.

    3. Select this image (Cmd/Ctrl-click and release), press Alt and drag a copy of the image where you want to stop "a break."

    4. at the end of the duration, drag the object to the original position (so TI interpolations of return).

    It seems quite clear that I describe each click, but once you do the steps that you will notice it's very simple copy-pasta.

  • Change the multiple layers at the same time

    Hi all
    Is it possible to change the position of the multiple layers at the same time? that is to say: I've got a slideshow made with several layers (probably about 60) while back and now I need to re use it in a different size (smaller). When I just resize the document, my slide is no longer in the center of it and is bigger. I would like to: 1. change its position within the document. 2 reduce entire layer together. If 2 is not possible, fine, but to me, there may be a way to change its position. Thank you much for the help!

    If you look at the area where Flash displays your frames per second is a small button (it looks like 2 boxes blu - ish overlapping). It is the button "edit multiple layers. Once you press this, you will see a marker on your time line asking you to select the images to change. Stretch this segment to cover all the images you want to include in your editing - lock all layers you want to include in your installation. Then, you can press Ctrl + a to 'select all' - this will only select executives in "onion" and unlocked frames - from there, any changes will not affect what is selected. You have to play with how it works because it can be a little difficult to understand (when it comes to points of alignment and balance, etc.). I would like to make a copy of your flash document to test this point until understand you before you start your original edition.

  • I use Thunderbird on multiple computers to the same gmail account but I have a laptop with little memory, so I need this laptop only to download a few files

    I use Thunderbird on multiple computers to the same gmail account. I have a small laptop with very little memory and it runs out of disk space when it downloads all my folders. I would only download some of my file on the laptop, but keep all the folder on my other computers because they do not have problems with disk space. When I unsubscribe records in 'manage folder subscriptions' then he cancels his subscription on all my computers, not just the laptop. When I go to 'Properties' on the folder and sets 'retention individual police' these settings are not applied at all. What can I do?

    All of the messages in each folder will appear in your message list. But this does not mean all the bodies of messages are downloaded, if you have properly configured the parameters of the disk. If what I described above stuck in your settings then Message body should be downloaded only 'on demand' when you click on each message.

    To confirm this install the addon glodaquilla, which has a column "on the disk" that indicates if a message is on the disk. If you want, after you have installed the addon set Thunderbird to work offline, so it does not download message body when you click in the list of messages.

  • How to switch between multiple windows in the same application?

    Hello

    I use OS X Capitan version 10.11.13 and I'm trying to find an easy way to switch between multiple windows in the same application by using CTRL + alt or different keys.

    Here is what I feel...

    Let's say I have Outlook, Google Chrome, Safari, iTunes and apps 'about this Mac' open.

    I open the new message window in Outlook and another Chrome window. I have therefore 2 separate windows in Outlook and Chrome.

    With that, I'm unable to move the composition and the window main outlook which is so annoying. Let's say I want to read the emails by the prospect main window and transfer of the content of the compose window! The command + tab doesn't take me to the main window of Microsoft outlook! Even if there were the last visited / applications window. This constraint is not intuitive, unless it can be configured in the settings?

    Strangely, I can't switch to the "about this Mac" window.

    The work around is to use the function (F3) mission button and click on the window, that I want to use or click the "Outlook" application on the dock icon and choose the window in the list.

    Does anyone know how switch between different windows in the same application by using a key combination or one another method other than listed above?

    Thank you

    Avinash

    In general, an Application that can open multiple windows provides a "Windows menu" you can choose the window you want.

Maybe you are looking for