Where's my table? :(

Hi all

11.2.0.3

I run the following command:

SQL > show user

The USER is 'HR '.

SQL > alter table EMP move tablespace USERS_ENC;


Modified table.

SQL > select nom_segment, nom_tablespace, segment_type, owner of dba_segments where nom_segment = 'EMP ';

no selected line.



Can you tell me what is happening?


Thank you

pK

Hello

If your EMP table is empty, you can use the deferred_segment_creation in GR 11, 1 material.

With this option (default value in GR 11, 2), the first segment of the table is created only when the first row is inserted.

You can check the value of the parameter with

show parameter deferred_segment_creation;

Kind regards

--

Bertrand

Tags: Database

Similar Questions

  • for relaxation: where is the table created by the Wizzard users create in the APEX?

    Hello everyone and Tony in particular since it was followed and mentoring my progress on this.

    Well,.

    Here we have 2 things:



    (1) when the wizzard of Administration > database > manage users creates a user. Where is the table it creates? What name does have? Why is it not visible in the object browser? I need the name of this table to put it on my trigger (I called users_table)



    (2) how to do that whenever a user connects, his formerly generated by the trigger sequence is used by a State to extract personal data (it's sort of VPD) in this case would be, how do you know what surrogate key, we need to call. To do this, I think, the thing would be to request the: = APP_USER (that was created in step 1) and each APP_USER will surrogate that are associated with this key.



    I set up a simple trigger, but just the substring of the concatenation of the given username, the system randomly generated pwd up to 12 characters.



    CREATE OR REPLACE
    GENERATE_SEQUENCE RELAXATION
    AFTER INSERT ON USERS_TABLE
    FOR EACH LINE
    BEGIN
    insert into users_table (surrogate_key)
    values (SUBSTR (¦¦ username password), 1.12);
    END;


    but as I said, this users_table must be the table where the wizzard to create users stores its data,... .but where is this table?


    Thank you very much

    Alvaro

    Published by: Alvaroe on February 6, 2010 09:13

    Published by: Alvaroe on February 6, 2010 10:00

    Hello

    (1) create a table and then start filling in

    I think you need to have a custom table of your patients (and users), say,

    CREATE TABLE patients
      (
        "USER_ID"   NUMBER,
        "USER_NAME" VARCHAR2(100 BYTE),
        "FIRST_NAME" VARCHAR2(100 BYTE),
        "LAST_NAME" VARCHAR2(100 BYTE),
        "PASSWORD"  VARCHAR2(4000 BYTE),
        "CREATED_ON" DATE
        CONSTRAINT patients_PK PRIMARY KEY ("USER_ID")
      );
    

    you need to build customized in your appl authentication and do not use the Apex or Db authentication.
    To do this, you must do this table in the schema that is used in the analysis of your application's schema.
    And you need create the function custom_hash like this:

    create or replace
    function custom_hash (p_username in varchar2, p_password in varchar2)
    return varchar2
    is
      l_password varchar2(4000);
      l_salt varchar2(4000) := '55PSP4P78JLDQ2AMBXQ60DW9OW7G9Z';
    begin
    
    l_password := utl_raw.cast_to_raw(dbms_obfuscation_toolkit.md5
      (input_string => p_password || substr(l_salt,10,13) || p_username ||
        substr(l_salt, 4,10)));
    return l_password;
    end;
    

    (2) then build the trigger when it detects that I completed a line
    It generates this sequence AND inserts it into another table (as you say, I could not put it in the same table)

    users must register themselves?
    Or register?
    Then you must create the free registration form or a form where you fill in your table above users.

    I think that your user_name must be unique. Put a Unique about this strain.

    When creating the patient button is pressed, then the above table is filled (you must and name, user in the form fill password)
    You must calculate USER_ID, user_name, password and created_on, this can be done in the trigger

    create or replace
    TRIGGER patients_trg_bi
      before insert on patients
      for each row
    begin
    if :NEW.USER_ID is null then
        select patients_seq.nextval into :NEW.USER_ID from dual;
    end if;
    
    if :NEW.CREATED_ON is null then
        :NEW.CREATED_ON := SYSDATE;
    end if;
    
    if :NEW.USER_NAME  is null then
        :NEW.USER_NAME  := :NEW.LAST_NAME || :NEW.USER_ID;
    end if;
    
       :NEW.PASSWORD := custom_hash(:NEW.USER_NAME, :NEW.PASSWORD);
    
    end;   
    

    you create the sequence of patients_seq

    In this case the surrogate key be hashed password.
    And you can use it by selecting table using patients: APP_USER
    that is when the user is connected to his USER_NAME, variable APP_USER is filled

    (3) then, the SQL query would recover this surrogate_key and show as connected individual data.

    Yes, when the user logs on, the key is populated by users based on table: APP_USER
    using

    select password
    from patients
    where user_name = :APP_USER;
    

    You must understand how EVP can be implemented at the Apex.

    You can use any application for this SURROGATE_KEY say

    which is calculated by Application of calculation on the new Instance

    4) but in order to know what to ask, surrogate key should be a key with the substitution APP_USER connection

    is that correct?

    Yes. You have the info from the users table

    Do you have examples of Applications Apex somewhere.
    If you use Apex 2.1, you can install it from the repository and if you have 3 Apex, they are normally automatically installed if you create the new workspace.

    You can use it a lot to manage users.

    Concerning
    Oleg

    BTW,

    Alvaro,
    Yo have your appl?
    If you sent your Db and tables all the Pl/SQl, as well as application Apex, you have for me by email, I can check and make/suggest improvements
    (For free, of course)
    I need to check what you did there, otherwise it seems to be a very long subject.
    Well, I have the time to discuss

    Yes, you can make the trigger like this

    CREATE OR REPLACE
    GENERATE_SEQUENCE RELAXATION
    AFTER INSERT ON USERS_TABLE
    FOR EACH LINE
    BEGIN
    insert into GENERATED_SEQUENCES_TABLE (lastinserted_name, surrogate_key)
    values (SELECT name from USER OF USERS_TABLE WHERE USERID..., SUBSTR (lastinsertedname¦¦ password), 1.12);
    END;

    but where the values are made here
    SUBSTR (lastinsertedname¦¦ password), 1.12

    Published by: oleg.lihvoinen on February 6, 2010 14:55

  • Is it possible to determine where in a table a space table or partition?

    11.2.0.3 Oracle on linux AWS A3 16 Oracle database server.

    After a fall of several large tables have a tablespace 3to with 1.5 TB of free space.  We made a tablespace shrink but recovered only 200 GB, as I understand it the HWM reset cant more weak cause of fragmentation.

    We do not want to reorg all objects in the repository.  is there a script to determine where in the repository of objects?  I hope that moving objects little we can then reduce it considerably.

    I found scripts that showed me the degree of fragmentation, but not where they are.  Any ideas?

    Here's the answer, took a bit of digging

    https://jonathanlewis.WordPress.com/tablespace-HWM/

    referenced in

    https://jonathanlewis.WordPress.com/2010/02/06/shrink-tablespace/

  • Where in DB table 'Articles recently read' homepage?

    Hello

    We import specifications with a custom procedure in the Action dashboard (in the homepage) we do not see them in 'Recently viewed items'

    The information stored in the DB? If Yes, where? Or where we can find them?

    Thanks in advance.

    Kind regards

    Annarosa

    I see. Recently read items data come from tables of business objects. For the specifications of your mobile PHONE, data are obtained by a sql like below,

    SELECT DISTINCT

    COALESCE(currentName.Name, DefaultName.Name, N'') SpecName,

    a.SpecStatusID as status,

    a.SpecType,

    a.SpecNum,

    a.IssueNum,

    a.WorkflowStartDate as StartDate,.

    COALESCE(a.AmberSLA,0) as AmberDate,

    COALESCE(a.RedSLA,0) as RedDate,

    a.SpecID,

    a.IsTemplate

    Of

    SpecSummary one

    INNER JOIN gsmSpecOwners b ON a.pkid = b.fkSpecSummary

    LEFT OUTER JOIN specSummaryName ON currentName.fkSpecSummary = a.pkid AND currentName.langID currentName =

    LEFT OUTER JOIN specSummaryName ON defaultName.fkSpecSummary = a.pkid AND defaultName.langID = 0 defaultName

    LEFT OUTER JOIN matSpec ON a.SpecID = matSpec.pkid MaterialSpec

    WHERE

    b.ownerID in ( , , )

    AND a.SpecType <> 1011

    AND COALESCE (matSpec.IsInternal, 0) <> 1

    So 2 factors must be considered:

    1. The current user is the owner,
    2. Hardware specifications should not be internal.

    And access dates are from commonObjectMRULog.LastAcessedDate.

    I hope this helps.

  • where contains and table

    I have a package which splits a string to a separate expression in table:
    CREATE OR REPLACE PACKAGE STRING_FNC
    IS
    
    TYPE t_array IS TABLE OF VARCHAR2(50)
       INDEX BY BINARY_INTEGER;
    
    FUNCTION SPLIT (p_in_string VARCHAR2, p_delim VARCHAR2) RETURN t_array;
    
    END;
    
    CREATE OR REPLACE PACKAGE BODY STRING_FNC
    IS
    
       FUNCTION SPLIT (p_in_string VARCHAR2, p_delim VARCHAR2) RETURN t_array 
       IS
       
          i       number :=0;
          pos     number :=0;
          lv_str  varchar2(50) := p_in_string;
          
       strings t_array;
       
       BEGIN
       
          -- determine first chuck of string  
          pos := instr(lv_str,p_delim,1,1);
       
          -- while there are chunks left, loop 
          WHILE ( pos != 0) LOOP
             
             -- increment counter 
             i := i + 1;
             
             -- create array element for chuck of string 
             strings(i) := substr(lv_str,1,pos);
             
             -- remove chunk from string 
             lv_str := substr(lv_str,pos+1,length(lv_str));
             
             -- determine next chunk 
             pos := instr(lv_str,p_delim,1,1);
             
             -- no last chunk, add to array 
             IF pos = 0 THEN
            
                strings(i+1) := lv_str;
             
             END IF;
          
          END LOOP;
       
          -- return array 
          RETURN strings;
          
       END SPLIT;
    
    END;  
    To test if it works, I use:
    DECLARE    
         str string_fnc.t_array;
    BEGIN    
         str := string_fnc.split('word1 word2 word3');     
    
         FOR i IN 1..str.count LOOP     
              DBMS_OUTPUT.PUT_LINE(str(i));
         END LOOP;     
    END;
    Is it possible to use this package or split function in SELECT such as:
    SELECT title
    FROM t1
    WHERE CONTAINS (title, HERE I have MIS FUNCTION('word1 word2 mot3")) > 0?;

    I mean, for example, if I have the table with 4 rows with values word1, word2, mot3 and mot4 and I run this query without function, I get NO LINES FOUND, but you search for word1, word2, and mot3.
    SCOTT@orcl_11gR2> CREATE TABLE t1
      2    (title  VARCHAR2 (60))
      3  /
    
    Table created.
    
    SCOTT@orcl_11gR2> INSERT ALL
      2  INTO t1 VALUES ('test')
      3  INTO t1 VALUES ('tests')
      4  INTO t1 VALUES ('tested')
      5  INTO t1 VALUES ('testing')
      6  INTO t1 VALUES ('plan')
      7  INTO t1 VALUES ('plans')
      8  INTO t1 VALUES ('planned')
      9  INTO t1 VALUES ('planning')
     10  INTO t1 VALUES ('game')
     11  INTO t1 VALUES ('games')
     12  INTO t1 VALUES ('other')
     13  SELECT * FROM DUAL
     14  /
    
    11 rows created.
    
    SCOTT@orcl_11gR2> CREATE INDEX t1_title_idx
      2  ON t1 (title)
      3  INDEXTYPE IS CTXSYS.CONTEXT
      4  /
    
    Index created.
    
    SCOTT@orcl_11gR2> VARIABLE string VARCHAR2 (4000)
    SCOTT@orcl_11gR2> EXEC :string := 'test plan game'
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11gR2> SELECT title
      2  FROM   t1
      3  WHERE  CONTAINS (title, '$' || REPLACE (:string, ' ', ' OR $')) > 0
      4  /
    
    TITLE
    ------------------------------------------------------------
    test
    tests
    tested
    testing
    plan
    plans
    planned
    planning
    game
    games
    
    10 rows selected.
    
    SCOTT@orcl_11gR2>
    
  • Where the system tables are recorded

    Hello

    Where are the system tables documented, such as the description of each column? references to columns between tables (views)

    Thank you

    In the database, you have DICT, with as main colum TABLE_NAME, describing each view of the dictionary.
    You also have DICT_COLUMNS and DICT_COMMENTS.
    Outside the database, there is the 'reference manual Oracle"for your version without name on http://tahiti.oracle.com

    ----------------
    Sybrand Bakker
    Senior Oracle DBA

  • Where all the tables, I consulted and updated?

    Hi all
    I'll try to find is possible where oracle provides a few tables where will be stored all the tables I have consulted and updated.

    As I don't have access to the Oracle log files I want to know if oracle provides information in tables.

    I select any table privilege.

    Very much appreciate your help.
    Thank you
    Madhu K.

    Queryng the dba_audit_trail can help you. Just an example:

    SELECT user name,
    To_char (timestamp, 'DD-MON-YY HH24:MI:SS'),
    action_name,
    obj_name,
    owner,
    action
    OF dba_audit_trail
    where ACTION_NAME in ('UPDATE', 'SELECT', 'INSERT')
    TIMESTAMP desc order);

    Kind regards.

  • Using the comparison function where 2 data tables various types

    Is it possible to use the comparison function in Labview you to compare 2 arrays of types of different data (e.g. Boolean and double-precision)?

    Would this work?  Nested for loops of index on the TRUE values of the Boolean table.

  • Where are the table of contents images stored?

    Hello. I created an application with DPS on my Mac that I have to study.

    I used some images for the table of contents chapters which stupidly I deleted but they are always visible when building/testing the application, I need to change the structure and the use of these same images.  Is there a place I can find the images that I used for the table of contents?

    When you preview your application on the desktop using LCA, the assets are registered in: ~/Library/Application Support/com.adobe.dmp.contentviewer/Local Store/FolioCache/YourAppName/ArticleName/StackResources/toc.png (or toc.jpg)

  • How can I get the name of the package where a table is used

    Hello... Hello...

    How can I know the name of the package or procedures where a particular table is used?

    is there a such sql query, I can get the names?

    It should work. Not tested.

    SELECT *
      FROM USER_DEPENDENCIES
     WHERE     TYPE LIKE 'PACKAGE%'
           AND REFERENCED_TYPE = 'TABLE'
           AND REFERENCED_NAME = 'YOUR_TABLE_NAME'  --Replace with the table name you are looking for
    

    G.

    Edited by: g. on February 23, 2011 12:42 AM

  • Tabla CheckBox in 1 d

    OLA, bueno, I am doing a VI, where in una tabla los archivos .xls ordenados appears. Box Quiero poner en, as el usurio can para cada campo

    Seleccionar el archivo appears in the table y lo abra o eliminated.

    E found several examples of con tablas checkbox, pero son of 2D, y no me sirven en your caso o no is aplicarlo como a lo than requiero.

    Alguna idea?

    See attached example (LV 2009) on a path that you could do it using an array of clusters.

  • Several problems with a simple replacement of the subset of table

    I'm new to LabVIEW and I try to teach me how to use it.  As you can imagine, I'm running into a few barriers.  The code that I'm including embodies many of my problems.  If someone can explain to me how to improve this code, I would be grateful.

    Copy the following code is a simplified version of a more complex code, that I'm writing.  In the simplified code, I have a control ('VALUE') that I would like to register at different locations in my table of 5 x 3.  To do this, I tried to make a 5 x 3 constant I could replace it with the value of the control.  The code does not work as expected and this is my specific problems:

    1. I can't initialize the array constant (the one I intend to crush).  I can only initialize the first row.  Based on the help files, I thought I should be able to initialize it by clicking on the boxes in the chart on the block diagram and entering values.  But it doesn't seem to let me do this.  Don't know if there is a special way to open when more than 1 dimension is involved?

    2. my slider controls are intended to establish where in the table to place the element.  But is not no longer works.

    3. I can't understand how properly to a code which has a while loop integrated in a while loop.  Someone recommended using a structure of the event, but as a beginner, I will have trouble to know how I would enact who.  I tried to play with the settings of locking/switching the button stop, but that did not work, either. The problem seems to be that, if I am inside the while loop, the program does not see my stop command.  Is there a way to connect as the stop button works, regardless if I'm inside the another while loop?  If not, is there a way to accomplish what I want in the smallest loop without using a while loop?  If I used a structure of the event, how would I created an 'event' to tell the program to store a new data point in the array?

    Thank you.

    Jessica

    Jessica,

    Also note that in LabVIEW array indices are zero-based.  If the values of the row index can be 0, 1, or 2.  If you want your users to see 1, 2, and 3, then put a function decrement between the terminals of the cursor and the function replace table subset.

    Lynn

  • IMPDP - Table not found

    Hello

    I am trying to import a specific table. I tried to use the schema name directly and also '------as sysdba "in utility impdp. Both are giving the same error as shown below,

    ORA-39002: invalid operation

    ORA-39166: object not found Schemaname.OBJECT_LINKS.

    Impdp name username/password DIRECTORY = EXP_IMP_EM = dumpfile * .dmp logfile = import_160216.log tables = OBJECT_LINKS content = data_only table_exists_action = truncate (or)

    Impdp------"/ ACE sysdba\ ' DIRECTORY = EXP_IMP_EM = dumpfile * .dmp logfile = import_160216.log tables = schemaname. Content OBJECT_LINKS = data_only table_exists_action = truncate

    Above are the instructions that I used, in both cases that the table is not found. But I checked and the table exists. I don't understand the problem. Could someone help me on this please?

    > The dump file has details on objects SCHEMA1 and with this file I want to import a particular table in SCHEMA2. Below the synatx used,

    >

    > impdp/password system DIRECTORY = EXP_IMP_EM = dumpfile * .dmp logfile = import_160216.log tables = SCHEMA2.object_links content = data_only table_exists_action = truncate master_only = y job_name = master

    If the dumpfile has schema1 and schema2 want, then you have to a remap_schema = schema1:schema2

    The above-mentioned remap table will not work.  You can't remap a pattern with a remap_table parameter.

    > Now the select object_schema of the query, object_name of the master where object_type IN ('TABLE', 'TABLE_DATA') and object_name = "OBJECT_LINKS" give inferior results

    >

    > OBJECT_SCHEMA OBJECT_NAME
    > SCHEMA2 OBJECT_LINKS
    > SCHEMA1 OBJECT_LINKS
    > SCHEMA1 OBJECT_LINKS
    > SCHEMA1 OBJECT_LINKS

    I would have had you add more than a few columns to the query.

    Select parameter type_objet, object_schema, processing_state, processing_status of the master where object_type IN ('TABLE', 'TABLE_DATA') and object_name = 'OBJECT_LINKS' and process_order > 0 and duplicate = 0;

    You can post the modified query results?

    Thank you

    Dean

  • using table() cursor

    I created a table type in SQL by using the following code:

    CREATE OR REPLACE TYPE t_number AS TABLE OF number;
    

    Now I'm trying to refer to a procedure of this type parameter, as follows:

    CREATE OR REPLACE PROCEDURE invoice_maintenance (
      pt_invoice_id_in IN t_number DEFAULT t_number(0)
    )
    IS
    
    CURSOR c_data IS
         SELECT * FROM TABLE WHERE id IN table(pt_invoice_id_in);
    
    BEGIN
    ...
    

    but when I try to compile, I get ORA-00936: lack of expression.  I also tried:

    CURSOR c_data IS
         SELECT * FROM TABLE WHERE id IN table(cast(pt_invoice_id_in AS t_number));
    

    But that did not help.  What I'm doing wrong here?  I use 11.2.0.4.

    ... ID WHERE IN (SELECT COLUMN_VALUE FROM table (pt_invoice_id_in));

  • Table or view does not exist

    Hi all

    I'm on banner

    Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
    PL/SQL Release 11.2.0.4.0 - Production
    CORE 11.2.0.4.0 Production
    TNS for Linux: Version 11.2.0.4.0 - Production
    NLSRTL Version 11.2.0.4.0 - Production
    

    My OraDB database has 5 patterns,

    S1, S2, S3, S4, S5

    Where S1 a table T1 that select grant is given to the schema of S2, S3 and S4.

    Where as drawing S5 has grant SELECT ANY TABLE.

    I had a scenario where I am compiling or using (immediate execution) to the scheme of access Table T1 of S1.

    But I got error in the Table or view exists doensn can't.

    So what I've done to check if the syntax is correct, I printed SQL_Variable that holds the query before his execution in EXECUTE IMMEDIATE.

    This SQL execute print find a TOAD or SQLPLUS, but when the same variable is running inside EXECUTE IMMEDIATE I get error

    Table or view does not exist.

    To keep the overlap on this, I ran

    SQL executed: {code} select column_name from S1. T1 {code} in TOAD and SQLPLUS, it ran successfully, but when I placed it inside the package it threw error table or view does not exist.


    Grant you permissions to T1 through a role?

    Roles are not active during run immediately or stored procedures.

Maybe you are looking for