Is on another possible schema references?

Hi all

Is on another possible schema references?
SQL> alter table AA.TEMP1
  2  add constraint TEMP1_FK1 foreign key (T2)
  3  references BB.SLT_SLIQ_TRADE (T2) on delete set null
  4  ;

alter table AA.TEMP1
add constraint TEMP1_FK1 foreign key (T2)
references BB.SLT_SLIQ_TRADE (T2) on delete set null

ORA-01031: insufficient privileges
I intend to create a view and ask that. Thank you.

Hello

Right to SELECT is not enough. You must have the privilege of REFERENCES.

grant references on BB.SLT_SLIQ_TRADE to AA;

Bartek

Tags: Database

Similar Questions

  • Privilege to allow a user to create a view of another user schema

    Hello

    I need allow a user create a view of another user schema.
    Say, log in as the latter and run the statement: "create view USER_B_SCHEMA.myview as select...". »

    Is there a way to achieve this without the agreement of this last privilege to CREATE ANY VIEW? I want to keep it on the profile as low as possible.


    Thank you!

    You can create a stored procedure, here's a test case (not optimized, no free bug):

    SYS@orcl > create user sp_owner identified by sp_owner;
    
    SYS@orcl > grant create any view to sp_owner;
    
    SYS@orcl> create procedure sp_owner.create_view (
      2  view_name varchar2, view_sql varchar2 ) is
      3  begin
      4    execute immediate 'create view '||view_name||' as '||view_sql;
      5  end;
      6  /
    Procedure created.
    
    SYS@orcl > create user test identified by test;
    
    SYS@orcl > grant create session to test;
    
    SYS@orcl > grant execute on sp_owner.create_view to test;
    
    TEST@orcl> execute sp_owner.create_view('scott.emp_vw','select * from scott.emp')
    PL/SQL procedure successfully completed.
    

    HTH

    Enrique

    PS. If your problem has been resolved, consider marking the question as answered.

  • transfer tables belonged to a user to another user schema

    Hello
    in 10 G R2
    in DB control how to transfer the tables belonged to a user to another user scheme?

    Thank you.

    It isn't a way that I know of.

    You can study using EXPDP/IMPDP or EXP/IMP.

  • How to give subsidies on the packages belonged to another apps schema

    Hello

    Could you help me by giving subsidies on the packages belonged to another apps schema.

    to give the grant that we can use to either run or debug, but I'm not sure that him on the behaviour of this donation.

    (1) if I give subsidies to the parcel if it may harm data or objects associated with this object IE apps.

    The user who got grants on these packages if it executes this package - make changes in the environment.

    with respect,
    Surya

    Published by: SuryaSrinivas on June 30, 2009 02:31

    Hello

    I think that it should run no problem granting privilege on the packaging of custom schemas apps. However, you must give approval with cautious execute as account APPS is a powerful user and you need to know the implication to give privileges to other diagrams.

    Kind regards
    Hussein

  • CREATE TABLE to another OWNER/SCHEMA and in a different TABLESPACE?

    I am connected to a user of the SYSTEM. Now, I want to create a table of aaa. The owner of this table should not be SYSTEM but user KARL. and STORAGE space should not be SYSTEM but the tdtc TABLESPACE (existing).

    As far as I know I can do this by running the following command:

    CREATE TABLE KARL.aaa (an INTEGER,...) Tttt TABLESPACE;

    Regarding the TABLESPACE parameter, I'm not sure. Is it possible to return a user Karl TABLE in a TABLESPACE that is not assigned to him?

    In addition, I have another problem.
    I have a script with hundreds of CREATE TABLE, ALTER TABLE + CREATE INDEX DDL statements.
    Each of them are not prefixed with schema/owner and a TABLESPACE clause.

    I can put a single statement at the top of the script somehow that such Oracle
    to use
    -Karl OWNER as a schema/owner for all DDL stements
    -Thomas TABLESPACE as TABLESPACE for all DOF stements
    ?

    In MYsql, there is a statement «use < database >» Is soemthing similar to Oracle?

    Thank you
    Peter

    Yes... you can do. For example, a user who has a secret password that you do not want to give... as a schema of the application. User B needs to make paintings/objects in A schema and you want to follow this as user B. First configure Oracles Fine grain auditing and then grant "connect via" user A to user B as follows:
    -----

    SQL> create user b identified by abc123
      2    quota unlimited on users;
    
    User created.
    SQL> grant create session to b;
    
    SQL> create user a identified by abc123
      2    quota unlimited on users;
    
    User created.
    
    SQL> grant create table
      2      , create session
      3     to a;
    
    Grant succeeded.
    
    SQL> alter user a grant connect through b;
    
    User altered.
    
    SQL> connect b[a]/abc123@a486
    Connected.
    
    SQL> show user
    USER is "A"
    SQL> create table a.my_proxy_table
      2  ( c1 number
      3  , c2 varchar2(50)
      4  , c3 date
      5  );
    
    Table created.
    

    -----
    See I have connected using the syntax "username [proxyuser]." Also note that user B is by proxy user has, as evidenced by my order 'show user '. The connection through can be granted/revoked as needed without disclosing A goes to B. In addition, your audit tables or xml logs will follow the fact that user B created the table a.my_proxy_table.

    Hope this helps,
    John

  • create the user who can update another table schema

    Hello

    We have a system of prod in which we need to update the schema of the application running the declaration different update and create/run function, procedure, package bodies. It is very easy if you use the schema owner. But I need to run the activities of another user due to some restrictions. How can I do?

    Can u suggested to update any table privilege... but this would give all access table dictionary also.

    Is there any privilege that would allow any other user update another schema table without using the schema name before the name of the table?

    PLSS suggest

    John,

    Can we use public synonym for that?  I don't know if the risk of security for her:

    SQL > connect h/h

    Connected.

    SQL > select * from scott.emp;

    Select * from scott.emp

    *

    ERROR on line 1:

    ORA-00942: table or view does not exist

    SQL > connect scott/tiger

    Connected.

    SQL > create public synonym scotemp for scott.emp;

    The synonym is created.

    SQL > connect HR/hr;

    Connected.

    SQL > select * from scotemp;

    Select * from scotemp

    *

    ERROR on line 1:

    ORA-00942: table or view does not exist

    SQL > connect scott/tiger

    Connected.

    SQL > grant select on emp to HR;

    Grant succeeded.

    SQL > connect h/h

    Connected.

    SQL > select * from scotemp;

    ..

    ..

    14 selected lines.

    SQL > show user;

    The USER is 'hr '.

    SQL > update of ename set scotemp = 'SMITHX"where empno = 7369;

    setting a day of scotemp set ename = 'SMITHX"where empno = 7369

    *

    ERROR on line 1:

    ORA-01031: insufficient privileges

    SQL > connect scott/tiger

    Connected.

    SQL > grant update on HR emp;

    Grant succeeded.

    SQL > connect h/h

    Connected.

    SQL > update of ename set scotemp = 'SMITHX"where empno = 7369;

    1 line update.

    SQL > rollback;

    Complete restoration.

    SQL >

    Concerning

    Girish Sharma

  • How to add the new model feature with tables of another data schema?

    Hi all

    I am trying to add an entity data model to my request. The tables I need are on a schema that does NOT have a default schema of connection of the connection. So I go through the Wizard add new Entity Data Model, generation from database, but then when it comes time to choose your database objects, the only thing that shows is all that is on the default schema. How can I access stuff to another schema with an entity data model?

    (Tangentially: it is also a problem with the old Server Explorer simply itself - when adding an oracle db, I see the other schema object in the treeview control to break.) But when I right click the db and the new query, tables of other scheme become available to me here. "So it is less of a problem in the case of Server Explorer).

    I found this small excerpt to reach other patterns, but I couldn't make it work in the case of the ora db. Any suggestions?

    Thanks for the tips,
    -sff

    Suppose that schema_a has granted privileges to schema_b on database belonged to schema_a objects by running the GRANT statements.
    You add a connection in Server Explorer using schema_b, and then add the schema_a in the "Filters" menu... ». Don't forget to click on
    the button of update in "Filters" dialog box and confirm schema_a illustrated with schema_b in the column 'value '.

    When to use EDM Wizard to create a database data model, choose the connection that you added by using Server Explorer
    schema_b. You will see the database of objects belonging to both schema_b and schema_a select and generate your data model. Schema_b
    should be able to use the database objects belonged to schema_a according to the privileges granted.

  • Advanced DataGrid - converters - Possible to reference the columnIndex parameter?

    When you work with AdvancedDataGridRendererProvider in an advanced Datagrid - is - it is possible for the rendering code reference the AdvancedDataGridRendererProvider columnIndex parameter?

    Thank you.

    I have attached two examples that use the AdvancedDataGridListData properties so that they can be reused in different columns. The first is an example MXML which extends canvas and uses bindings to set the text and tooltip on a Label control. The second provides similar functionality in ActionScript by extending UIComponent. The ToolTip displays some of the information that is accessible through the AdvancedDataGridListData object.

    The AdvancedDataGrid will inject an AdvancedDataGridListData instance in any element converter that implements the IDropInListItemRenderer interface. To implement this interface that you use the 'implements' keyword when you declare the class and add getters and setters for the listData property. I did it for each converter in the example.

    Simpler example MXML, the ActionScript example should perform better.

  • Data type of the other schema reference

    Hello

    I want to reference the data type on the other schema, inv.customer, 1st schema table, 2nd table tran.order.

    then, when I declare my package.


    Procedure p_insertOrder
    (
    p_empid in customer.customerid%type
    p_orderid in tran.order.orderid%type
    );


    However, it gives me this error message

    PLS-00201: identifier 'tran.orde' must be declared.

    the following package is located in inv schema. so when I make reference to the customer table, I do not have the diagram for it.

    So what is the cause of this?



    ~ vincent.

    what grants do you have enabled on the table?

    Log in as tran or a dba and try:

    grant select on tran.order to inv;
    

    You can also create a public synonym so you don't have to precede the table with the schema name. Beware of the tables of the same name in your current schema if you do it well.

  • Another possibility to communicate with the web service other than the SOAPS in Adobe Reader

    Hi team

    It is another alternative method to communicate with the web service other than the SOAPS using Java script in Adobe Reader.

    Thank you

    Bala

    Yes, you can use FDF/XFDF to send data to the server and report information in the document. Take a look at the Doc.submitForm () method using the FDF/XFDF parameter: DC-Acrobat SDK Documentation - Doc.submitForm () you'll need fields for send/receive form data, but these can be hidden.

  • Adding another (possible?) screen size

    Hi guys.

    Its a really amazing feature in Adobe Muse to add 3 different layouts (web/tablet/phone).

    But is it possible to add a 4th one? for a larger screen?

    Thank you very much!

    Concerning

    Rodrigo

    Muse uses a detection of devices as a result, you are limited to three at the moment.

  • Export data from one schema to another SQL schema

    Hello.

    I have 2 plans. One is called MICC_ADMIN and the other is called MICC_PROD. What I want is to export from MICC_ADMIN to import into MICC_PROD. I tried to do with the tool of data workshop, one of the table has approximately 19,000 records, so he gets frozen trying to export data. So I was wondering if is it possible to do this via the sql command. Thank you.

    Best regards, Bernardo.

    Hello

    You give the right to select on MICC_APEX_ADMIN. SRDB_MAIN to MICC_APEX_PROD;
    Then sign in as MICC_APEX_ADMIN and run

    GRANT SELECT ON MICC_APEX_ADMIN.SRDB_MAIN TO MICC_APEX_PROD;
    

    Then log in as MICC_APEX_PROD and INSERT performance

    Kind regards
    Jari

  • Another possible bug using the keyboard to save the project?

    Another frustration I have meet in CS6, it is that I have the Ctrl + F > shortcut S to save things ingrained in me way back before Alt + S is a backup option. I noticed in CS6 if my active window in PrPro is the chronology, the reading monitor or monitor multi-cam, I hit Ctrl + F and then will not work S... I followed with the button enter (S puts the right place in the menu file, but do not cause in fact a backup to occur). However, if I'm on the effects, project or any other place in PrPro panel Panel, the shortcut actually works. Is this a known bug in CS6? I guess I could just learn the shortcut Alt + S (it is even shorter), but when you're a touch typist, as I am and have become accustomed to a set of shortcuts, learn of new is incredibly hard!

    First of all, the shortcut right to save Ctrl + S under windows and command-S on mac. It is quite ubiquitous on most of the applications (and has been for a long time), so it is well worth learning.

    Second it seems to be a few leftover buggy intermittently from the old Ctrl + F > behavior S accessibility on mac which I will investigate. The correct method on windows Alt + F > arrow down to 'save' > press ENTER. That is many more clicks than what you remember, but it does not work. The best thing is to use the shortcuts that you see one list of the files (and other), menus and map everything you need that do not exist by default.

  • Another possibility, linking vi 2 separate appellants

    The goal: start a sub - vi one of both parents Vi

    Problem: Determination of the State of execution of the Sub VI.  If the Subvi is not ongoing execution and then run from whatever vi is started first.  The Sub vi is a consumer to producer loops that run in Vi of the parent.  The parent vi can be run, or they can be run at the same time.  The Exec. State does not differentiate between the running and reserved to be executed.  This means that if the Sub VI on the block diagram of one of two parents VI then there isn't a way to know if she should be performed.

    An example of the Vi is included below.  Vi Coordinator is the Subvi.  I need a way to run the Subvi of whatever this, or who is called first.

    Hey eximo.
    Your description and VI, you provided I think I have a knowledge base of what you're trying to do. That said, I would like to know if I'm heading down the wrong road. Basically you have 2 main VI each call to a Subvi, but you only want the main VI which runs the first to access and execute the Subvi. I think that the route that you may need to take would be to place the Subvi in a case structure that verifies the value of a global variable that is shared by the two main VI. The 2 hand VI will change then the value of the global variable if it ends and calls the Subvi. However, the downside of this is that you may encounter race conditions. The other way to do would be to reverse your program hierarchy where now monitor you the status of the Exec of the hand two VI and say the Subvi to run data of the hand VI will idle first. In this way, you can be sure that you are only the Subvi execution once and eliminate race conditions. I hope this helps!

    -Ryan S.

  • Create table form another table in different schema throwing error when dynamic sql

    Hello

    With the help of 11.2.0.3 and was following the issue.

    To create a table in a schema (b) using data from another schema (b)

    If independent run in sqlplus create works OK but same sql in dynamic sql block saying the table or view does not exist.

    SQL even in dynamic sql

    {code}

    v_sql: =' create table new_table in select * from schemab.table_name where...';

    run immediately (v_sql);

    [code}

    Other tables work fine.

    Any ideas - don't want to grant all the schemaa.table schema b if can avoid.

    Thank you

    You run the immediate execution in an anonymous block or a stored procedure?  If it is a stored procedure, then as others have said, the owner of the procedure must have select privileges on granted directly schemab.table_name.

    Another possibility, which would be the case for a stored procedure, or an anonymous block is that your code is something like:

    v_sql: =' create table new_table in select * from schemab.table_name where...';

    immediately run v_sql;

    Select count (*) in the l_count new_table;

    who will fail at compile time because new_table does not exist.

    When you create objects using dynamic sqly you dynamic sql user to reference them in the block of code.

    John

Maybe you are looking for