I have a problem to create a constraint referencing table in another schema

Ask a Question related to Oracle Server, Design and Development.

  1. #1

    Default I have a problem to create a constraint referencing table in another schema

    Hallo,

    the begin of the problem is, i will migrate the structure of a Sybase
    Adaptive Server Anywhere Database into ORACLE 8i(8.1.7)Personal
    Edition. On the Sybase DB exist 2 users. This users a contained all
    tables. One of that are calling "DBA". That user was my first problem
    on 8i. I must delete the role "DBA" to craete a user "DBA". Is it a
    problem, when the role "DBA" not exist?

    After that, i can create all tables with little adaptations on the
    column names and datatypes. When i will create a references from the
    schema "DBA" to another called "Heiko", i become the 'ORA-01031 -
    insufficient privileges' Error Message. The User "DBA" and "Heiko"
    have all system privileges.

    What is my problem? Who can help me?
    Thanks.
    Mathias
    Mathias Kluge Guest

  2. Similar Questions and Discussions

    1. Inconsistent error with create table statement containing foreign key constraint
      Here is the clause defining a foreign key constraint. CONSTRAINT `contact_id_fk` FOREIGN KEY (`contact_id`) REFERENCES `conts` (`contact_id`) ...
    2. Referencing the Table Name
      Say I have a Table called Predator: country(varchar 20), animal(varchar 20) And I want to search for the animal "Python" in my Predator table,...
    3. CREATE TABLE problem
      I have a problem creating mySQL tables with PHP. I am making an app where a user can create a project. Pressing "submit" on proj_form.php goes to...
    4. create table and schema privileges
      Hi If I create table as instance owner as follows: create table someuser.junk(x int) What privileges will someuser have. I just tested that...
    5. Best way to create this constraint?
      I need to enforce a simple validation rule on my table. The solution I came up works, but seems complex. Im hopping there is a better way to do this...
  3. #2

    Default Re: I have a problem to create a constraint referencing table in another schema

    [1] removing the DBA role is not necessarily a problem, you could could
    create similar roles yourself
    [2] to be able to reference a table you (i.e. the table owner) need to grant
    the REFERENCES privilege to the user that needs it.

    hth,
    Peter

    "Mathias Kluge" <software@dgateway-ger.com> schreef in bericht
    news:263641f3.0212090704.453736a0@posting.google.c om...
    > Hallo,
    >
    > the begin of the problem is, i will migrate the structure of a Sybase
    > Adaptive Server Anywhere Database into ORACLE 8i(8.1.7)Personal
    > Edition. On the Sybase DB exist 2 users. This users a contained all
    > tables. One of that are calling "DBA". That user was my first problem
    > on 8i. I must delete the role "DBA" to craete a user "DBA". Is it a
    > problem, when the role "DBA" not exist?
    >
    > After that, i can create all tables with little adaptations on the
    > column names and datatypes. When i will create a references from the
    > schema "DBA" to another called "Heiko", i become the 'ORA-01031 -
    > insufficient privileges' Error Message. The User "DBA" and "Heiko"
    > have all system privileges.
    >
    > What is my problem? Who can help me?
    > Thanks.
    > Mathias

    Peter van Rijn Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139