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.

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.

  • 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;
    /
    
  • 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.

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    
  • 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

  • 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.

  • 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

  • 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

  • ORA-01031: insufficient privileges while selectin view belongs to another schema in oracle database 11g

    Hello

    DB version 11.2.0.3.0

    We have a few views resides in the application schema, we cerated user and granted select on the view through the roles.

    but the user becomes ORA-01031: insufficient privileges when accessing the content view

    appreciated inputs

    BR

    Praaksh GR

    > I issued a grant select on Z.table - X with the option grant.

    This isn't what you need - you should

    Grant select on Z.table y with the option grant.

    Grant select on Y.view to X;

  • 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

  • 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...

  • Insufficient privileges in the creation of MV that he select another schema table

    Hello

    Before asking this question, I checked with similar questions in the forum, but I don't see my situation, or I'd say I'm not clear on the solution.

    I got the privileges CREATE MATERIALIZED VIEW and CREATE ANY MATERIALIZED VIEW and I want to create a MV in my schema, but the MV selects data in another schema, and I had the privilege to choose this table. Here is my code

    Create VIEW MATERIALISEE CPY_GL_HANDS_OFF_DTL

    UPDATE THE BEGINNING WITH THE LARGEST (SYSDATE, TO_DATE ('2013.10.30.23.30.00 ',' YYYY.)) MM DD. HH24.MI. THE NEXT SS SYSDATE')) + (50519 /(24*60*60)) FULL

    ENABLES QUERY REWRITE

    SELECT

    *

    Of

    User_a.GL_HANDS_OFF_DTL@dblink;

    I run it, and I get ORA-01031: insufficient privileges. According to my research so far, the schema of the latter requires the CREATE TABLE privilege, even though she already had RESOURCES (which already includes the CREATE TABLE). Is this true? That's my problem. I only have read access to the table of the dblink, I can't control the privileges of this scheme. Advise please if this is the real problem?

    Thanks and greetings

    acquired through ROLE privileges do NOT apply in the PL/SQL name procedures

Maybe you are looking for

  • Ultra-Slim 8000 elite: necessary recovery discs

    I need to get a set of recovery discs for an HP 800 ultra-Slim elite. I can't find on the website. Can someone let me know how to get them? Windows 7 pro.

  • B50 - 80 - NO CONNECTION BLUETOOTH in WIN7 x 64

    I can't do any bluetooth connection (phone, mouse, printer..), to my B50-80 under Windows 7 x 64. All device drivers are installed from the Lenovo support page and no device is marked as unusable in the Device Manager. Hope someone has a tip or a sol

  • CPU fan error message and no response from F10

    Just upgraded to Phenom 11 4 810 processor in my desktop PC Presario CQ5320Y with Windows 8.1. Stop and Get CPU fan error message. Replaced the fan and still have the same problem. Read forum on this subject article, but can't get into the BIOS by pr

  • HP Pavilion 15 laptop (15-p264: cannot install Windows 8.1 (W8.1 pre-loaded) regular updates)

    I bought a new laptop HP Pavilion 15 (product number: LOE38EA #ABU) a few months as a backup to my desktop PC.  It works fine except that it won't install the usual Windows 8.1 updates (Windows 8.1 has been pre-loaded). It downloads OK but when I res

  • XP Tablet PC Edition operating system lost

    I have TC4200 tablet running XP Tablet PC edition OS. My drive came down and I replaced, but I can't find my software anywhere. I have the original code windows xp PC tablet key, but nobody don't seem to be able to tell me where I can get a copy of t