Check a functional index on a table and its metadata

Hello

I have a functional base normal index (unique) defined on a table that uses a function of decoding and a combination of the columns of a table.
For example: decode (status, 'A', column1 | column 2, column1 | Column2 | Column3)

Now my question is, how do we ask these functional indices of the database to see what exactly is the function...

On the database when I run a query: -.

Select in all_indexes where index-name =: index_name, *.

She retrieves the name of the stored index code as ncs $00025 (don't remember the exact value).

How will I know what exactly is the function? (from table)

and is it possible that I can query the data that has been indexed by this unique index, so that I can check why unique constraint is violated in some cases?

Thank you and best regards,
Sylvain

How, we ask these functional indices of the database to see what exactly is the function...

 select * from user_ind_expressions

Tags: Database

Similar Questions

  • I have the table and its size is full

    I have the table and its size is full when im inseting records, not insert, how do I increase the size of table
    ALTER TABLESPACE ts_tbsp
      ADD datafile 'c:\oracle\product\10.2.0\oradata\df\ts_data01.dbf'
      SIZE 4M
      AUTOEXTEND ON;
    

    Means-
    In tablespace "ts_tbsp", adding a data file 'ts_data01 '.

    AUTOEXTEND ensures in the future if whenever the data file fills an additional size of 4 M is added automatically.

    Once it is created, a new data with the extension .dbf file is created in the folder Oradata.
    Another file dbf (default) includes:-SYSTEM.dbf, SYSAUX.dbf, TEMP.dbf, USERS.dbf, etc.

    See - http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_3002.htm

    HTH.
    Vanessa B.

  • I get the error "on the volume C: default transaction resource manager encountered an error during startup and its metadata has been reset. The data contains the error code. »

    original title: NTFS problem
    Every 5 seconds, I get a warning (event ID 136) that says: "on the volume C: default transaction resource manager encountered an error during startup and its metadata has been reset. The data contains the error code. »

    Immediately followed by an error (event ID 137) that says "on the C: volume default transaction resource manager encountered a one-time error and could not start. The data contains the error code. »

    I am running windows 7 ultimate in any way to solve this problem?

    Hello

    This problem occurs if the Windows file system transaction log is damaged. The Windows file system uses the transaction log to retrieve the system transactions when a file error occurs. The system of common log (CLFS) transaction logs may be left in an inconsistent state. When the CLFS transaction logs are in an inconsistent state.
    To resolve this problem, delete the files .blf and .regtrans-ms in the folder % Windir%\System32\SMI\Store\Machine.
    After you restart the computer, the registry regenerates the deleted files. These regenerated files are in a consistent state.
    1. click on Start , type cmd in the Search box, and then click cmd in the list of programs .

    2. click on run as administratorand then click continue.
    If you are prompted for an administrator password or for confirmation, type the password, or click allow.

    3. at a command prompt, type the following command and press ENTER:
    fsutil resource setautoreset true c:\
    Note
    these steps assume that Windows is installed in the default location, drive C. If this is not the case, adjust the drive letter of the path of the folder to match your configuration.

    4 restart the computer.

    I hope this helps.

  • index of output table and show what LOCAL indexes and who are

    I read the view of ALL_INDEXES here:
    http://www.Stanford.edu/dept/ITSS/docs/Oracle/10G/server.101/b10755/statviews_1061.htm
    But I still don't know how to query follows:

    1. display the name of the table, the index name and flag Y/N 'Is the local index' and a flag "is the overall index.

    The application should output table index and show what indexes are LOCAL and which are not.

    How to write this query?

    My original request:
    select table_name, Index_Name, Uniqueness, Partitioned, decode(Partitioned, 'NO', 'Global','Local') GlobalOrLocal from all_indexes
    where table_name = 'MyTABLE'
    2 I understand that global index for partitioned tables is a chunk of data referencing all the partitions table in the single room, but Local index is partitioned itself there are several parts each one or more partitions to reference table?

    Published by: CharlesRoos on October 6, 2010 12:45 AM

    CharlesRoos wrote:
    I read the view of ALL_INDEXES here:
    http://www.Stanford.edu/dept/ITSS/docs/Oracle/10G/server.101/b10755/statviews_1061.htm
    But I still don't know how to query follows:

    1. display the name of the table, the index name and flag Y/N 'Is the local index' and a flag "is the overall index.

    The application should output table index and show what indexes are LOCAL and which are not.

    How to write this query?

    My original request:

    select table_name, Index_Name, Uniqueness, Partitioned, decode(Partitioned, 'NO', 'Global','Local') GlobalOrLocal from all_indexes
    where table_name = 'MyTABLE'
    

    That seems Ok to me.

    2 I understand that for partitioned tables index global is a big piece of data referencing all the partitions table in the single room,

    Yes.

    but the Local index is partitioned itself there several pieces for each reference one or several partitions table?

    Almost right: each refers to score exactly one table. I.e. index partitioning is 'aligned' with the partitioning of the table.

  • Retrieve the name of tables and its plsql procedure schema

    Hello

    Help me please pass my last training evaluation

    the task is:

    between the username and the password and then who will retrieve tables exist and the script for each table.

    the output should be like:

    user name: -.

    table_name1:

    table_name1 script

    table_name1 script

    table_name1 script

    table_name2:

    table_name2 script

    table_name2 script

    table_name2 script

    .

    .

    .

    and so on

    in the last of the production
    You should see the following:

    No tables for: username: table_numbers

    Please help me.

    If your boss wants to test your ability to write code and understand the dictionary of data, then you can try something like this:

    begin
        for t in (
            select table_name from user_tables order by table_name
        )
        loop
            dbms_output.put_line(t.table_name);
    
            for c in (
                select * from user_tab_columns c
                where  c.table_name = t.table_name
                order by c.column_id
            )
            loop
                dbms_output.put_line('    ' || rpad(c.column_name,31) || c.data_type);
            end loop;
            dbms_output.new_line();
        end loop;
    end;
    

    This just lists the tables and their columns. You must understand how to add more details and to make a set of create table statements.

    If it ask for user name and password there must probably be a SQL * more script (.sql file). He could use ACCEPT to invite (there are examples at the bottom of the page).

  • After the reopening of the dreamweaver files, the table and its contents do not appear in design mode

    I had a problem with the deisgn opinion that caught me all week. I designed a Web page with dreamweaver CS4. After having reopened this Web page, I got the problem to see the tables and images inserted in dreamweaver (the images cut into slices of Fireworks works well). Somehow this problem existed only in design, but is NOT seen on browser / see live.  I thought that it is the problem of adjustment, but I tried to reopen the Web page I designed earlier... you have no problem in design or mode live view. I also tried to start another file, same problem existed (tables/images do not display in design) I'm really confused. Any thoughts?

    I've already done my research in the world, but cannot find solution.

    You closed the first cell in what appears to be your content area.

    />

    Must be:

    Write it down / at the end of the

    is removed from the version "should be."

    Enjoy.

    _T

  • Function Index to another Table

    Hello developers,

    Here is sample to exist when the clause, reason why I'll give you a quick explanation... the company wants.

    Select blah blah blah
    view bla
    where blah_date decode the interval ((«Aujourd'hui», «Aujourd'hui», (select a.date from update_table, dont le processus = 'remplir'), to_date (< < entered_date > >, ' dd/mm/yyyy')))

    My question is, that it will be possible (recommended) to create indexes of function that refers to another table? I tried, but it is not created successfully, put: 1 where I reference the subselect.

    As many of you know, the query runs much faster and does not full table scan or scan limited complete index if the decoding function is removed from the equation. However, as mentioned at the beginning, the company asked it, so we try to answer. ' Executing the query * horrible "with the decode function, so any help/advice you can give would be much appreciated.

    Thank you
    Mike

    * After all of my research and testing (at least two weeks now), the F.B.I path is probably the only solution available that will increase performance.

    I'm not, in general. a big fan of views on views, including such that it appears, based on the names of your sample, that there is an environment of DW. It seems to me that you try to answer view2 a qquestion isn't really designed to answer.

    I am tempted to re - write the thing using base tables instead of views which would give you a better chance of using the index on the date column. It would also probably you can eliminate a lot of unnecessary things, lines or columns or both that could affect the choice of paths optimizer.

    John

  • Indexing both a table in its entirety?

    Let's say I have a table that contains three buttons: "button1", "button2" and "button3. The table is called "live_buttons".

    With these three buttons, there are 5 other buttons on stage doing nothing.

    I want the buttons in the "live_buttons" table to cause another button to change the images when you click on it.

    I wrote this function:

    function activateLiveClip (event: MouseEvent)

    {

    If (event.target.currentLabel == (live_buttons [0]) |) (live_buttons [1]) | (live_buttons[2]))

    {liveButton.gotoAndStop ("WIn") ;}

    }

    It does what it is supposed to do. However, I'm sure there must be a way to avoid using one or more conditional statements

    and just the name of the table, since I want to include all the elements of the array in the conditional statement. I tried to type just the

    name of the array, but it does not work. How should I name just the table, without indexing the different parts of the table?

    Put quotes around semi-colons as it makes no sense to coding.  Where have you seen suggested as a solution, or did you just do it and see that nothing was wrong if you accessed it does something right?  It is possible that something works not just for the wrong reason.  You should trace the values of different things to see why they seem to be equal... they might all be not what they should be...

    trace (event.target.currentLabel, [live_buttons])

    If (event.target.currentLabel == [live_buttons]) ';

    I still don't understand the relationship that must exist between the "event.target.currentLabel" and an array of strings.  I don't see how 5 Slacker buttons made in the description of your problem.  But as I already said, if you want to know if something is in a table, using indexOf() is the easiest way to encode.  You should try it outside your design rather than letting your design to confound your efforts to see work.

  • synchronize the current row of the table and its binding

    Hello

    There are several line table on the page.
    I select a line but say one first, second.
    push button for call actionListener

    in bean, I read the data in row and experience the first row:

    DCBindingContainer dcBindings = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
    dciter = (DCIteratorBinding) dcBindings.get ("VOView1Iterator");
    IdS = dciter.getCurrentRow ().getAttribute("Id").toString ();
    -Here's the first line id, not the second one
    and this sounds strange!

    Should I synchronize it manually or there is something wrong here?

    Published by: grodno on December 6, 2012 03:05

    Hi grodno.

    Make sure you have on your table:

    selectionListener = #{bindings. DepartmentsView.collectionModel.makeCurrent} where "DepartmentsView" is the id of your tree/table on the pageDefenition.

    In this way the table knows that we must change the current line according to your selection

  • After spending tables and index a different tablespace, index got unusable?

    Hello

    I moved to table and index a different tablespace. After the many indices obtained unusable. I did not understand thiis?

    How can I do still usable?

    best regards and thank you?

    If you bâtait the index (after moving the table, by the way), then they should be usable without something extra to see.
    Check this procedure only one (small) table and index if this index can be used later. If not, then you have a mystery :-)

    Kind regards
    Uwe Hesse

    http://uhesse.WordPress.com

  • get the index of a table display

    Hello!

    I have a question. Is it possible to get the index of a current table in the front panel?

    I have 2 tables which need to scrool simultaneously to the user, so my idea was to read the index of a table and 'write' on the second.

    Can someone give me an idea how to do that?

    Thank you

    Dear Thiago Bach,

    recently, I did (for a similar question) an example on the control to the index of the two tables and bar a scroll, please find the attached VI.

    Good luck!

  • Function index and virtual columns

    I just read the documentation of Oracle on the FBI. In the context of optimization with a function-based index, it is said that "a virtual column is useful for speed of access to data from expressions.". Here is the link Index-Organized Tables and indexes.

    My question is, does Oracle already not create a virtual column when we create a function-based index?

    Concerning

    Charlie

    Hi Charlie
    Yes, the database engine creates a virtual column. But this column is hidden. Reproduced in 11.2.0.3 example:
    SQL> CREATE TABLE t (n NUMBER);SQL> CREATE INDEX i ON t (round(n,0));
    SQL> SELECT column_name, hidden_column, virtual_column  2  FROM user_tab_cols
      3  WHERE table_name = 'T';
    
    COLUMN_NAME                    HIDDEN VIR
    ------------------------------ ------ ---
    N                              NO    NO
    SYS_NC00002$                  YES    YES
    

    HTH

    Chris Antognini

    Troubleshooting performance Oracle, Apress 2008/2014

  • New tables and indexes created do not appear in the view dba_segments

    Hi all

    I created 3 tables and indexes, but these items do not appear in dba_segments views. Is this a normal behavior? Previously, with dictionary managed tablespace, I can specify the least possible to create, at the table/index is created. But I don't know how works the locally managed tablespace. Please do advice. Thank you much in advance.

    I am using Oracle 11 g R2 (11.2.0.1.0) for Microsoft Windows (x 64), running on Windows 7.

    To reproduce this problem, I created the tablespaces as follows:

    CREATE TABLESPACE CUST_DATA
    DATAFILE ' d:\app\asus\oradata\orcl11gr2\CUST_DATA01. DBF' SIZE 512K
    AUTOEXTEND ON NEXT MAXSIZE 2000 K 256K
    MANAGEMENT UNIFORM LOCAL 256K SIZE MEASURE
    SEGMENT SPACE MANAGEMENT AUTO;

    CREATE TABLESPACE CUST_INDX
    DATAFILE ' d:\app\asus\oradata\orcl11gr2\CUST_INDX. DBF' SIZE 256K
    AUTOEXTEND ON NEXT MAXSIZE 2000 K 128K
    MANAGEMENT UNIFORM LOCAL 128K SIZE MEASURE
    SEGMENT SPACE MANAGEMENT AUTO;

    CREATE TABLE CUSTOMER_MASTER (CUST_ID VARCHAR2 (10))
    CUST_NAME VARCHAR2 (30),
    E-MAIL VARCHAR2 (30),
    DATE OF BIRTH,
    ADD_TYPE CHAR (2) CONSTRAINT CK_ADD_TYPE CHECK (ADD_TYPE ("B1", "B2", "H1", "H2")),
    CRE_USER VARCHAR2 (5) DEFAULT USER,.
    CRE_TIME TIMESTAMP (3) DEFAULT SYSTIMESTAMP.
    MOD_USER VARCHAR2 (5).
    MOD_TIME TIMESTAMP (3),
    CONSTRAINT PK_CUSTOMER_MASTER PRIMARY KEY (CUST_ID) USING INDEX TABLESPACE CUST_INDX)
    TABLESPACE CUST_DATA;

    SQL > SELECT TABLE_NAME, nom_tablespace
    USER_TABLES 2
    3 WHERE TABLE_NAME LIKE '% CUST. "

    TABLE_NAME, TABLESPACE_NAME
    ------------------------------ ------------------------------
    CUSTOMER_MASTER CUST_DATA

    SQL > SELECT INDEX_NAME, nom_tablespace
    2 FROM USER_INDEXES
    3 WHERE TABLE_NAME LIKE '% CUST. "

    INDEX_NAME TABLESPACE_NAME
    ------------------------------ ------------------------------
    PK_CUSTOMER_MASTER CUST_INDX


    SQL > SELECT nom_segment, SEGMENT_TYPE, nom_tablespace, BYTES
    2 FROM WHERE USER_SEGMENTS;

    no selected line

    An extension to what Sybrand said:

    There is a parameter called differed_segment_creation, who runs the behavior.

    If it is set to TRUE (the default), no segments will be allocated until you fill your table / index.

    Try to insert a row. You will see your table and index in dba_segments.

    See for more information

    http://docs.Oracle.com/CD/E14072_01/server.112/e10595/tables002.htm

  • Easy to change the owner of the TABLE (and according to indexes and views) available?

    I want to change the Owver from a TABLE (and the owner of all VIEWS and INDEXES in function).
    The only way that I know so far is something like

    CREATE TABLE < newschema >. < table_name > select * from < oldschema >. < tablename >;

    Then, slide old TABLE
    Recreate it possible all the CLUES and the views.

    It is kind of bulky.
    Especially when I don't know what indexes exist for a certain TABLE.
    When I investigate this and I have found 4 indexes so much work needs to be done.

    Is there a shorter, smarter way to accomplish the task.
    I prefer a SINGLE task of all-for-statement

    :-)

    Thank you
    Peter

    Hello
    export of diagram a (exp or expdp)
    import in diagram B (imp or impdp)

  • Is there a way took care in the reorg table sys.job$ (and its indexes)?  (Oracle 9)

    I have an old database that has a table of great sys.job$ and the large index on it. (indices are just standard installed indexes nothing we did)    However the table has very little data in it now, only 22 rows.   Yet between the table and index is > 1 GB in size.

    The enforcement team asked me to reorg or shrink the table sys.job$ and explained its large size is probably due to the fact that they believe some process went wrong turned for years resulting in job creation, but his long since been cleaned.

    What motivates is to save space in the SYSTEM tablespace and possibly help some query performance.

    I know that in general its forbidden to directly manipulate the sys objects (such as truncation, insert, etc. with the exception of sys.aud$).

    Y at - it a taken way supported to reduce the size of this table.  Any document referencing.

    Yes, there is a way taken in charge.

    It's called "Recreate the database"

    -------------

    Sybrand Bakker

    Senior Oracle DBA

Maybe you are looking for

  • Firefox 'View player' stop working... How to fix?

    Player discovers is not responding... works for a while... then stops

  • is freezer una pagina y no hay manera quitarla

    Buscando en google una pagina al ponerse in the pantalla is freezer, me salio abajo her barra donde dice if quiero salvar, correr o bajar y esta an amarillo pero no nada works, puedo entrar Internet y computadora intensification in todo: correo, face

  • upgrade for compaq presario v6700 Intel wifi card

    I currently own a compaq presario v6700 p/n g814av and I want to update its card wif for the intel 5300 agn card.  at startup I get 104 adapter, which is not compatible for this system.  According to the pilots and support there is a download for 394

  • createDataObject in livecycle of value of a text field

    Hi Experts,Can someone help me story a data value of a text field createDataObject object. Content of the text field is multiline.These two simple lines are works fine in acrobat console, but not under a key click livecycle event.var cMyC = "sample s

  • PS CS6 copy Css - not here. dumss = (need to do homework

    PS = CS6 my teacher said he had a copy css function (we run cc at school), but I have NooOOO idea why it is NOT appear. I read some places that "you have cloud ps6" but I don't know what that means. I bought the license under 'production premium.' it