Referencing Tables in another schema

APEX 4

http://i.imgur.com/WDwSC.jpg

Is it true that you cannot reference another schema objects (i.e. ONLY the scheme of the application's default analysis)?

I also noticed that this button "Requester" will lead you to QB page where only the analysis scheme appears.

Thank you

RalphK,

Not true. Make sure that your analysis schema has grants appropriate to perform the action you want on an object in another schema. If this is not enough and you need access to another scheme of your workspace and then talk to your apex admins and it adds the schema to your workspace. Workspaces can be mapped to multiple schemas. It is not a one to one relationship.

Thank you

Janet Tyson

Tags: Database

Similar Questions

  • READ the TABLE of another schema

    Hello
    pls help me.

    I want to read the table of another schema that is declared in the application of the apex.

    SELECT * FROM DBA_ROLE_PRIVS;
    (SELECT * FROM sys.) DBA_ROLE_PRIVS: auch bad)

    The owner of this table is SYS.

    Error: The Table is unknown or cannot be found.

    my real schema is GCs.

    How is the select statement for this case for reading in the table (or tableview) of another schema?
    many and many thanks for your help.
    TL

    The SYS schema is a special schema in Oracle. You must explicitly grant the user rights by selecting tables and views sys.

  • create existing table in another schema

    Hi master,

    We are using oracle 10g R2 on linux.

    I have a scheme say user1 with many tables, starting with

    BC_ (50 PICTURES)

    PC_ (20 TABLES)

    LC_ (30 TABLES) etc.,.

    now, I want to create these tables in another schema with their constraints and their privileges in another schema.

    as I want to generate a create table script, which will create a table that begins with "BC_" only. another script will create table starting with "PC_" only. and like that.

    is it possible with the command

    create the table AS
    Select * from (old scheme). (table_name);

    can we use query sub in it to be more precise?

    and it will transfer all its privileges and grants the new schema?


    Thanks and greetings
    VD

    It is possible to CREATE TABLE as SELECT from a different scheme but CREATE TABLE as SELECT will transfer only the data and the structure of the base (column names and data types) table, no constraints.
    I think, you have two options to do this easily:
    (1) use SQLDeveloper (GUI) or a procedure from PL/SQL DBMS_METADATA. GET_DDL to generate the SQL script to create table with constraints, you can use INSERT INTO new table (columns) column SELECT FROM oldschema.oldtable
    DBMS_METADATA Description: http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_metada.htm#i1019414

    (2) export a schema data, import it into the other using Data Pump or exp/IMP.
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14215/dp_export.htm#i1007466

  • grant the select privilege on the table in another schema by role error

    Hello
    I have a problem with the granting of privileges to another schema
    I have A user who has only 1 system priv: connect, which has a private: create session;
    I created a role X, which I have the privilege: select on a table to a diagram B customer.
    I then conceded this X role to A user.
    I can't select * B.customers when im connected to A
    identification of information like it that I'm missing?
    Thank you
    Rgds

    >
    but whenever I put a default role, the other is automatically set to zero-defects

    How did you receive the two default roles?
    >
    By running the code I posted above as user SYS.

    Drop your user and start again and use the code I posted.

  • the display of tables in another schema in the database

    I started using the SQl Developer 1.5.
    We can connect to a database of oracle with success, expanding the tables, it displays the list of tables in a schema.

    We have another schema in the database. In the query Panel, when type us the name of the other schema as the CHT. then a few table names appear in the intellisense.


    How can show us the list of tables to another within the same database schema.

    Welcome.

    Please also take some time for correct/good answers to award points.

  • Update/insert into table in another schema

    Hello

    I have a custom table that is located in another schema used by our dashboard for custom tables. I want to allow users to add/edit users and the security groups for dashboards.

    I see two possible solutions to this issue, I was wondering if anyone has done so and has a better solution or pointers.

    Possible solutions:

    1. move the table to the APEX workspace. Not desirable, would lead to changes in the Production for the pools of connections in the repository.

    2. create a temporary table where you would load the security table data when the user wishes to add/modify records in the security table and then use triggers to update the table by using the synonym to the table.

    Any help would be appreciated.

    Thank you
    Rob

    Modify the procedure to look like to...

    create or replace PROCEDURE UPDATE_TABLE(p_table IN VARCHAR2,
                                             p_column IN VARCHAR2,
                                             p_value IN VARCHAR2,
                                             p_condition IN VARCHAR2)
    AS
    v_sql_stmt VARCHAR2(4000);
    BEGIN
      v_sql_stmt := 'UPDATE ' || p_table || '  SET ' || p_column || ' = ' || p_value || ' WHERE ' || p_condition;
      EXECUTE IMMEDIATE v_sql_stmt;
      COMMIT;
    END UPDATE_TABLE;
    
    {code}
    
    Edited by: Tyson Jouglet on Sep 25, 2008 8:03 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    
  • How to allow a user to view all the tables from another schema?

    I have a 'vic4ever' scheme where I have created all my tables. Now, I create a new user named "nvvp1". So, I want to enable nvvp1 display all tables in a schema vic4ever. But I don't know how to do! Or I need to run this command for each table?
    Grant select on vic4ever.table1 to nvvp1;
    Grant select on vic4ever.table2 to nvvp1;
    ....

    Thank you

    Yes, that's what you have to do, but you could speed up a bit:

    BEGIN
    FOR cur_rec IN (SELECT table_name FROM ALL_TABLES WHERE UPPER(owner) = 'NVVP1')
      LOOP
        EXECUTE IMMEDIATE 'Grant select on vic4ever.' || cur_rec.table_name || ' to nvvp1';
      END LOOP;
    END;
    /
    
  • How to listen to a couple of times (with different names) table in another schema?

    Hello guys,.

    I replicate a table schema (SCH_1) (TAB_1) on the basis of data source (named DB_1) twice on the schema (SCH_2) on the basis of data target (DB_2) with two different names (TAB_1 and TAB_1_SHORT). TAB_1_SHORT on db target must be a subset (eg. WHERE STATUS = 1) of TAB_1!

    How to do? can someone help me?

    I tried to realize that in this way:

    (1) creation of 1 capture process with the rule 1 table on source db (without any rule of subset to capture all changes) for table TAB_1

    (2) creating a process of spreading with no rules

    (3) creation 1 apply the process with a rule in table for table TAB_1 without any subset_rule but with the transformation of the pattern of SCH_1 to SCH_2 (DBMS_STREAMS_ADM. RENAME_SCHEMA) = > it works correctly!

    (4) creating a subset_rule (WHERE STATUS = 1), a transformation of the pattern of SCH_1 to SCH_2 (DBMS_STREAMS_ADM. RENAME_SCHEMA) and a transformation of tablename from TAB_1 to TAB_1_SHORT (DBMS_STREAMS_ADM. RENAME_SCHEMA) for table TAB_1_SHORT = > does not work, no errors posted in dba_apply_error!

    in another chance, I tried to turn the table and the schemaname in the process of capture, with the effect that my first table TAB_1 would not be listened to again.

    I don't know what the problem is. I think it must be possible to publish a table for two different targettables in the same pattern on an another db, is not it?

    I hope that the greetings
    Flo

    Hello

    Adding a normal table rule and also a subset rule would not work because the rule would be evaluated only once in the set of positive rules. If the normal rule is evaluated first, then the subset rule and the rest of the rules would not be assessed at all that's why it would not work.

    This can be done using one of the following methods:

    Method 1:

    1 use the declarative transformation on the capture/apply and rename SCH_1 to SCH_2 scheme.
    2. now, on the site apply, define a DML for SCH_2.TAB_1 Manager
    3 al ' DML Handler, do the following:
         
    a. get the value of the STATUS column
    b. check if the value of STATUS = 1, if yes, then change the name of the object to TAB_1_SHORT and run the LCR.
    (c) another thing not to change the name of the object (leave it as it is, TAB_1) and run the LCR.
              
    Method 2:

    1. Add a DML for SCH_1.TAB_1 Manager
    2. in the DML handler perform:
         
    method of set_object_owner use of LCR$ _ROW_RECORD to rename the owner at the SCH_2
    b. get the value of the STATUS column
    c. check if the value of STATUS = 1, if yes, then change the name of the object to TAB_1_SHORT and run the LCR.
    (d) another thing not to change the name of the object (leave it as it is, TAB_1) and run the LCR.

    Please let me know if you need examples of code.

    Thank you
    Florent

  • How to create the table in another schema of database even

    Hello..

    I have a database DB1
    and 2 patterns / users in this...
    Usr1 and Usr2...

    I created a TEMP Usr1 schema table... and created

    Then tried the following declaration in the schema Usr2...

    CREATE TABLE TEMP AS SELECT * FROM Usr1.TEMP;

    Then it is in error that...
    : 00942 TABLE OR VIEW DOES NOT EXIST...

    What is the reason for this...

    Thank you

    You must make this grant on any new table, you create in usr1 and you want to use in the usr2 schema.

    Its not desirable, but you can give system privileges

    grant select to usr2.

    USR2 can select on any table.

  • As sysdba, how I would create a table in another schema of users

    Well, I'm a student so I may have some of the words wrong, but I think you understand what I mean.

    I am logged in as sysdba, I created a user named scott, and now I want to give the table scott. I want to leave sysdba, as in I don't want to login as scott.

    ALTER USER SCOTT QUOTA 100M ON USER01;

    CHANGE USER QUOTA UNLIMITED ON

  • foreign key referencing the table in different schema

    I create a foreign key for the table in the schema A a table to diagram B.

    I do that by grant references (column name) on the name of the table to username;


    is there any drawback/disadvantage in the creation of foreign keys referencing tables in another schema?

    Not as such, no.

    Generally, you want to check a second time when you are in this kind of situation that the two tables really belong in different schemas. It should be relatively rare to find a child table that belongs to a different schema than the parent. Sometimes, but it should be an exception, not the rule.

    Justin

  • Question about expdp and impdp number of tables in a schema 11.2.0.3

    Hello Experts-

    I have 145 tables of a certain pattern that I want to save for example export and import the same tables in another schema is possible?

    1. REMAP schema to use for this purpose?
    2. I must quote all 145 tables? or I can use '%' as all the tables I want export & import start with a certain word-(RECORDS_)?

    Thanks in advance

    Hi 885068,

    I have 145 tables of a schema of some I want to save for example export & import the same tables in another schema is possible?

    Yes, it is possible.

    REMAP schema to use for this purpose?

    Yes, it is the purpose of REMAP_SCHEMA. Import metadata and data from one schema to another.

    I must quote all 145 tables? or I can use '%' as all the tables I want to export & import begin with a certain word-(RECORDS_)?

    It's always better when you have total control of what you're doing. I prefer to put all the tables, of course it not easy, but you can use sql statements to generate the TABLES all = parameters you need like the following:

    SELECT 'TABLES='||table_name
    FROM all_tables
    WHERE owner = ''
      and table_name like 'RECORDS_%'
    ;
    

    In case of import, you need not specify that you must import because the entire dump contains the tables that you imported exported tables, but it is very advisable that you specify the tables.

    So if the tables in the target schema must be created with names different than the original, you must use the parameter REMAP_TABLE =.:

    HTH,

    Juan M

  • How to delete all TABLEs in the schema SYS that are created from 09:15?

    Unfortunately a script created a lot of tables in the diagram (= SYS) and bad Tablespace (= SYSTEM).

    How can I delete all TABLES that are created inTablespace = SYSTEM and SCHEMA = SYS (in a DDL command)
    respectively for the past 3 hours from 09:15 to 25 Sep 2011?

    Alternative: How can I move these tables in another schema (for example ATEST) and Tablespace (USERS)?
    Is this possible with Oracle XE or Oracle Enterprise?

    Peter

    You can use ALTER TABLE... MOVE. It offers a TABLESPACE clause, which allows you to choose a different tablespace as target. Refer to the documentation for your version of the database.

  • Can't access table in another account of Apex

    Hello

    In the report of the Apex, I question a table in another schema account. I have even granted select access to it. Even Apex keeps complaining that the table does not exist. Thank you.

    1 error has occurred
    Query cannot be parsed in the generator. If you believe that your query is syntactically correct, check the generic "columns" box below the source of the region without analysis. ORA-00942: table or view does not exist

    In apex, you must add the schema for schemas available that can use the workspace. Admin workspace can do...

    Thank you

    Tony Miller
    Webster, TX

    Time passes fast like the wind, but the flies from fruits such as bananas.

    If you answer this question, please mark the thread as closed and give points where won...

  • Load data from one table into another table of 2 different schemes

    Hello

    We have a requirement to insert data into a table in a schema of a table that is in other schemas in ODI.

    We are able to do so by creating interfaces and mappings. But we now expect to do using SQL instead of ODI interfaces.

    Is it possible to do this using the SQL statements we have source and target data sources defined in ODI.

    should be like "Insert into src.table select * from tar.table'"

    Thank you...

    Hello

    If you try to load a db to another db using sql (sql free hand) instead of interfaces instructions.

    It is possible using procedures odi too.

    1. Select the project (designer navigator) odi mode

    2. create the new procedure. Then add the command.

    in this command on the source command on the tabs of the target.

    Enter the sql statements. See the screenshots below...

    I think this will help for you,

    Thank you best regards &,.

    A.Kavya

Maybe you are looking for