reconstruction of indexes on a table with version

Hello

I'm under oracle 11.1.0.7 on Windows.

I would like to rebuild some clues that have gotten big enough and also move to a different tablespace (the tablespace in a also increased big enough). I'm new on the Workspace Manager and when I tried to do the 'alter index... rebuild' command has encountered an error. I was told that I could use this package:

AlterVersionedTable

Modifies a table compatible version to add valid time support, rename a constraint or rename an index.

Syntax

DBMS_WM. () AlterVersionedTable

table_name IN VARCHAR2,

alter_option IN VARCHAR2,

parameter_options IN VARCHAR2 DEFAULT NULL,

ignore_last_error IN BOOLEAN DEFAULT FALSE);

Parameters

Table 4-5 procedure AlterVersionedTable parameters

Parameter

Description

table_name

Invalid name of the compatible version table to add support for time. The name is not case sensitive.

alter_option

One of the following values: ADD_VALID_TIME to add valid time support DDL to make changes DDL, RENAME_CONSTRAINT to rename a constraint, REBUILD_INDEX to rebuild an index, RENAME_INDEX to rename an index, or both USE_SCALAR_TYPES_FOR_VALIDTIME or USE_WM_PERIOD_FOR_VALIDTIME to specify if the views on a table compatible existing version must use two scalar columns for the valid time interval.

See the Usage Notes for more information on these options, including when you need and can use this procedure to rename an index or a constraint.

parameter_options

A quoted string (in the general format ' keyword = value keyword2 = value2,...) ") containing the valid keywords for the specified alter_option value of the parameter." See notes on the use of the keywords that are valid for each alter_option value to the parameter.

ignore_last_error

Boolean value ( TRUE ) or FALSE ).

TRUEdoes not realize the last error, if any, that occurred during the previous call to the BeginBulkLoading procedure. Information about the last error is stored in the USER_WM_VT_ERRORS and ALL_WM_VT_ERRORS of the data static dictionary views, which are described in Chapter 5. See usage for more information Notes.

FALSE(by default) don't ignore the last error, if any, that occurred during the previous call to the procedure of AlterVersionedTable.

I install a simple test case:

DBMS_WM EXEC. AlterVersionedTable('PASIKOWN.) NP_ROAD_PIECE ',' REBUILD_INDEX ',' index_owner is pasikown, index_name = np_road_piece_pk, tablespace = quest_128k "(, NULL);"

and it seemed to run ok. Stamped it 'last ddl' on the change of index so I guess that he rebuilt the index (my test cases was very small, so I see no difference in the number of extensions. However, he did not the indexes in the tablespace that I listed.

Is it still possible?

My humble thanks

Nicole

Hi Nicole,.

When you use the dbms_wm REBUILD_INDEX. The AlterVersionedTable procedure, the only supported parameters are index_owner and index_name.  That's why specifying that storage space makes no difference.  To move an index that is not a primary key in a different tablespace, you do not want to use dbms_wm.beginDDL and dbms_wm.commitDDL and cause a 'alter index... rebuild "command on the table of the skeleton.

For example,.

SQL > exec dbms_wm.beginDDL('PASIKOWN.) NP_ROAD_PIECE');

SQL > alter index rebuild tablespace pasikown.np_road_piece_pk quest_128k;

SQL > exec dbms_wm.commitDDL('PASIKOWN.) NP_ROAD_PIECE');

However, according to the name of the index you specified, I guess that's the primary key.  We do not support the amendments of the primary key index once it was created during the EnableVersioning by beginDDl/commitDDL.  Therefore, you must use the option of dbms_wm DDL. AlterVersionedTable and use the following as a parameter of the ddl: 'ddl = "alter index rebuild tablespace quest_128k pasikown.np_road_piece_pk" '.  See the documentation for details on this option.

Kind regards

Ben

Tags: Database

Similar Questions

  • 'For' loop with a different number of iterations. Second, the auto-indexation of the tables with different sizes is done. It can affect the performance of the Vi?

    Hello

    I have a loop 'for' which can take different number of iterations according to the number of measures that the user wants to do.

    Inside this loop, I'm auto-indexation four different 1 d arrays. This means that the size of the tables will be different in the different phases of the execution of the program (the size will equal the number of measures).

    My question is: the auto-indexation of the tables with different sizes will affect the performance of the program? I think it slows down my Vi...

    Thank you very much.

    My first thought is that the compiler to the LabVIEW actually removes the Matlab node because the outputs are not used.  Once you son upward, LabVIEW must then call Matlab and wait for it to run.  I know from experience, the call of Matlab to run the script is SLOW.  I also recommend to do the math in native LabVIEW.

  • Indexing of a table with multiple indexes

    Hi all

    I just used the detector of Ridge VI on table 1 d with a threshold.  I now have an array of index I need to round to use as a real index.  My question is, with this index corresponding to the points picture, how, I take the peak values

    To give a bit of context:

    1. I have three time correlated signals.  I filter them, normalize, then add them so that I can increase the signal-to-noise ratio.

    2 pic DetectionVI gives me a table where are these pics

    3. I want my end result

    A. Signal1 [peak_indices]

    B. Signal2 [peak_indices]

    C.Signal3 [peak_indices]

    Now I think about it in the way I have d code in MATLAB which is much easier, but I would like to do this in Labview and would be very happy to any idea.

    Thank you

    -Joe

    As you said, once you have rounded tip to the nearest value locations you have an array of markings. From there on, it should be a simple matter of passing this table in a for loop that auto-index of the results that you went out to generate a table of peak values.

  • Indexing of a table with string instead of the number

    In TestStand, there are 2 ways of indexing of certain types of berries. (Seems to be arrays of containers)

    For example, in a sequence containing one step, called statement, you can contact this step in two ways:

    RunState.Sequence.Main [0]

    and

    RunState.Sequence.Main ["Statement"]

    (in fact, I can also use the id of the step, but keep, more simple with these 2 methods)

    Is there a way to create this type of table myself, in order for me to use string indexing? (or is it only possible on certain Types of OR)

    As can imagine you, this works for any array of containers.

    You just need to assign names to the elements. You can do this in the sequence by selecting an item and pressing F2, editor or by setting the PropertyObject.Name programmatically.

  • Quick loss of millions of records in a table with version

    Hello world

    We seek for one of our tables versioned delete and contains about 28 million records.  On Exadata and 11.2.0.3.

    Normally we would just drag the table, but there is a requirement that we keep a number of documents (about 500 k), complete with the story, so that other components of the system related are not lacking (even if these 500 k will also be removed subsequently).

    I did a survey on how we can do that, but a massive factor is to ensure that there is minimal downtime.  A method I've tried is to remove batch of 5 million - if the button Delete merging could take 24 hours in total for each series and we could not afford 6 cases of this.

    I also tried DBMS_WM. PURGETABLE, but this seems to take a long time as well (even with no table to archive being created).

    Copies the records in another table LT, truncate table source and re - insert the records back in 500 k is an option that we looked at, if not ideal.  I think we would also update wm$ modified_tables for it.

    Are there other alternatives that make this possible, or if we were to go down the road of truncated - is there anything else we need to consider in order to maintain the coherence of the WMSYS dictionary?

    Many thanks in advance,

    James

    Hi James,

    Would it not possible to simply do the operation to remove directly in LIVE workspace?  This would eliminate the need to merge the workspace.  Truncation operations do not rely on the tables of the activated version.  Nor is face _LT table to a temporary table and the re-insertinig.  The hierarchy of the workspace and other metadata may have changed in the meantime which would make it invalid reinserted data.  Guaranteeing that nothing else changes it would fix, but is not yet all that is generally supported.

    Delete that number of lines will take some time little matter method.  How long the procedure PurgeTable did?  It is going to be the approach that should be faster by using features of the Workspace Manager.  In addition, if these lines will be deleted anyway, why not just wait until it is safe to do so and do it all at this point in time?  Then you must conditionally delete lines.  You can simply call dbms_wm. DisableVersioning on the table and then delete it.

    Kind regards

    Ben

  • Retrieve the index of a table with a value greater than zero

    How is it possible to extract the indices of the elements above zero in a 2D array?

    Example:

    Table:

    0 12 11 33 0

    1 0 0 0 0

    2 99 0 9 0

    Need to get 12,11,33 table indexes and so on...

    Nghtcrwlr,

    Attached is the first thing that comes to mind.

    Dan

  • bug using dbms_redefinition on table with the altered text index?

    I think I can found a bug when you use DBMS_REDEFINITION on a table with a text index that has been modified using ALTER INDEX index-name REBUILD PARAMETERS (REPLACE...). It seems that DBMS_REDEFINITION does not recognize the syntax with REPLACE and redefining fails. However, if I remove the text index and re-create it with all the parameters set during the initial creation and no ALTER INDEX command, then redo the redefinition, it works correctly. I have provided below a script that reproduces the problem, then use workaround mentioned. I have provided a copy of the script and executing the script separately, so that it can be copied and pasted to reproduce the problem. It is a simplification of a problem which has emerged over the diagnosis of a larger problem presented by someone on another forum, where the objective was to perform a loop on a group of tables that meet certain criteria and change some columns varchar2, nvarchar2 columns of these tables, where there are indexes in full text on the other columns in the tables and indexes have been changed using the syntax above. This seems to be a bug or am I missing something or is at - it an easier solution for the redefinition?

    -version:
    SCOTT@orcl_11gR2> select * from v$version;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    
    5 rows selected.
    
    SCOTT@orcl_11gR2>
    -run the script:
    SCOTT@orcl_11gR2> -- table, data, altered text index:
    SCOTT@orcl_11gR2> CREATE TABLE t_test
      2    (col1  NUMBER PRIMARY KEY,
      3       col2  VARCHAR2 (10),
      4       col3  CLOB)
      5  /
    
    Table created.
    
    SCOTT@orcl_11gR2> INSERT INTO t_test VALUES (1, 'A', 'test data')
      2  /
    
    1 row created.
    
    SCOTT@orcl_11gR2> CREATE INDEX i1 ON t_test (col3) INDEXTYPE IS CTXSYS.CONTEXT
      2  /
    
    Index created.
    
    SCOTT@orcl_11gR2> ALTER INDEX i1 REBUILD PARAMETERS ('REPLACE SYNC (ON COMMIT)')
      2  /
    
    Index altered.
    
    SCOTT@orcl_11gR2> SELECT * FROM t_test WHERE CONTAINS (col3, 'test data') > 0
      2  /
    
          COL1 COL2       COL3
    ---------- ---------- ----------
             1 A          test data
    
    1 row selected.
    
    SCOTT@orcl_11gR2> -- redefinition that fails:
    SCOTT@orcl_11gR2> CREATE TABLE t_test_interim
      2    (col1  NUMBER,
      3       col2  NVARCHAR2 (10),
      4       col3  CLOB)
      5  /
    
    Table created.
    
    SCOTT@orcl_11gR2> DECLARE
      2    v_num_errors  NUMBER;
      3  BEGIN
      4    DBMS_REDEFINITION.CAN_REDEF_TABLE
      5        (USER, 'T_TEST', DBMS_REDEFINITION.CONS_USE_PK);
      6    DBMS_REDEFINITION.START_REDEF_TABLE
      7        (USER, 'T_TEST', 'T_TEST_INTERIM',
      8         'COL1 COL1,TO_NCHAR(COL2) COL2,COL3 COL3',
      9          DBMS_REDEFINITION.CONS_USE_PK);
     10    DBMS_REDEFINITION.SYNC_INTERIM_TABLE
     11        (USER, 'T_TEST', 'T_TEST_INTERIM');
     12    DBMS_REDEFINITION.COPY_TABLE_DEPENDENTS
     13        (USER, 'T_TEST', 'T_TEST_INTERIM',
     14         DBMS_REDEFINITION.CONS_ORIG_PARAMS,
     15         TRUE, TRUE, TRUE, FALSE, v_num_errors, TRUE);
     16    DBMS_REDEFINITION.FINISH_REDEF_TABLE
     17        (USER, 'T_TEST', 'T_TEST_INTERIM');
     18  END;
     19  /
    DECLARE
    *
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-11000: invalid keyword REPLACE
    ORA-06512: at "SYS.DBMS_REDEFINITION", line 1364
    ORA-06512: at "SYS.DBMS_REDEFINITION", line 2025
    ORA-06512: at line 12
    
    
    SCOTT@orcl_11gR2> -- clean up the mess:
    SCOTT@orcl_11gR2> DROP MATERIALIZED VIEW t_test_interim
      2  /
    
    Materialized view dropped.
    
    SCOTT@orcl_11gR2> DROP TABLE t_test_interim CASCADE CONSTRAINTS
      2  /
    
    Table dropped.
    
    SCOTT@orcl_11gR2> BEGIN
      2    DBMS_REDEFINITION.ABORT_REDEF_TABLE
      3        (USER, 'T_TEST', 'T_TEST_INTERIM');
      4  END;
      5  /
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11gR2> -- drop and recreate index with all parameters without altering:
    SCOTT@orcl_11gR2> DROP INDEX I1
      2  /
    
    Index dropped.
    
    SCOTT@orcl_11gR2> CREATE INDEX I1 ON T_TEST (COL3) INDEXTYPE IS CTXSYS.CONTEXT
      2  PARAMETERS ('SYNC (ON COMMIT)')
      3  /
    
    Index created.
    
    SCOTT@orcl_11gR2> -- redo redefinition:
    SCOTT@orcl_11gR2> CREATE TABLE t_test_interim
      2    (col1  NUMBER,
      3       col2  NVARCHAR2 (10),
      4       col3  CLOB)
      5  /
    
    Table created.
    
    SCOTT@orcl_11gR2> DECLARE
      2    v_num_errors  NUMBER;
      3  BEGIN
      4    DBMS_REDEFINITION.CAN_REDEF_TABLE
      5        (USER, 'T_TEST', DBMS_REDEFINITION.CONS_USE_PK);
      6    DBMS_REDEFINITION.START_REDEF_TABLE
      7        (USER, 'T_TEST', 'T_TEST_INTERIM',
      8         'COL1 COL1,TO_NCHAR(COL2) COL2,COL3 COL3',
      9          DBMS_REDEFINITION.CONS_USE_PK);
     10    DBMS_REDEFINITION.SYNC_INTERIM_TABLE
     11        (USER, 'T_TEST', 'T_TEST_INTERIM');
     12    DBMS_REDEFINITION.COPY_TABLE_DEPENDENTS
     13        (USER, 'T_TEST', 'T_TEST_INTERIM',
     14         DBMS_REDEFINITION.CONS_ORIG_PARAMS,
     15         TRUE, TRUE, TRUE, FALSE, v_num_errors, TRUE);
     16    DBMS_REDEFINITION.FINISH_REDEF_TABLE
     17        (USER, 'T_TEST', 'T_TEST_INTERIM');
     18  END;
     19  /
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11gR2> DROP TABLE t_test_interim CASCADE CONSTRAINTS
      2  /
    
    Table dropped.
    
    SCOTT@orcl_11gR2> -- results:
    SCOTT@orcl_11gR2> DESC t_test
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     COL1                                               NUMBER
     COL2                                               NVARCHAR2(10)
     COL3                                               CLOB
    
    SCOTT@orcl_11gR2> COLUMN col3 FORMAT A10
    SCOTT@orcl_11gR2> SELECT * FROM t_test WHERE CONTAINS (col3, 'test data') > 0
      2  /
    
          COL1 COL2       COL3
    ---------- ---------- ----------
             1 A          test data
    
    1 row selected.
    
    SCOTT@orcl_11gR2> -- clean-up:
    SCOTT@orcl_11gR2> DROP TABLE t_test
      2  /
    
    Table dropped.
    
    SCOTT@orcl_11gR2>
    -script:
    -- table, data, altered text index:
    CREATE TABLE t_test
      (col1  NUMBER PRIMARY KEY,
       col2  VARCHAR2 (10),
       col3  CLOB)
    /
    INSERT INTO t_test VALUES (1, 'A', 'test data')
    /
    CREATE INDEX i1 ON t_test (col3) INDEXTYPE IS CTXSYS.CONTEXT
    /
    ALTER INDEX i1 REBUILD PARAMETERS ('REPLACE SYNC (ON COMMIT)')
    /
    SELECT * FROM t_test WHERE CONTAINS (col3, 'test data') > 0
    /
    -- redefinition that fails:
    CREATE TABLE t_test_interim
      (col1  NUMBER,
       col2  NVARCHAR2 (10),
       col3  CLOB)
    /
    DECLARE 
      v_num_errors  NUMBER;
    BEGIN 
      DBMS_REDEFINITION.CAN_REDEF_TABLE
        (USER, 'T_TEST', DBMS_REDEFINITION.CONS_USE_PK);
      DBMS_REDEFINITION.START_REDEF_TABLE
        (USER, 'T_TEST', 'T_TEST_INTERIM',
         'COL1 COL1,TO_NCHAR(COL2) COL2,COL3 COL3',
          DBMS_REDEFINITION.CONS_USE_PK);
      DBMS_REDEFINITION.SYNC_INTERIM_TABLE
        (USER, 'T_TEST', 'T_TEST_INTERIM');
      DBMS_REDEFINITION.COPY_TABLE_DEPENDENTS
        (USER, 'T_TEST', 'T_TEST_INTERIM',
         DBMS_REDEFINITION.CONS_ORIG_PARAMS, 
         TRUE, TRUE, TRUE, FALSE, v_num_errors, TRUE);
      DBMS_REDEFINITION.FINISH_REDEF_TABLE
        (USER, 'T_TEST', 'T_TEST_INTERIM');
    END;
    /
    -- clean up the mess:
    DROP MATERIALIZED VIEW t_test_interim
    /
    DROP TABLE t_test_interim CASCADE CONSTRAINTS
    /
    BEGIN 
      DBMS_REDEFINITION.ABORT_REDEF_TABLE
        (USER, 'T_TEST', 'T_TEST_INTERIM');
    END;
    /
    -- drop and recreate index with all parameters without altering:
    DROP INDEX I1
    /
    CREATE INDEX I1 ON T_TEST (COL3) INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS ('SYNC (ON COMMIT)')
    /
    -- redo redefinition:
    CREATE TABLE t_test_interim
      (col1  NUMBER,
       col2  NVARCHAR2 (10),
       col3  CLOB)
    /
    DECLARE 
      v_num_errors  NUMBER;
    BEGIN 
      DBMS_REDEFINITION.CAN_REDEF_TABLE
        (USER, 'T_TEST', DBMS_REDEFINITION.CONS_USE_PK);
      DBMS_REDEFINITION.START_REDEF_TABLE
        (USER, 'T_TEST', 'T_TEST_INTERIM',
         'COL1 COL1,TO_NCHAR(COL2) COL2,COL3 COL3',
          DBMS_REDEFINITION.CONS_USE_PK);
      DBMS_REDEFINITION.SYNC_INTERIM_TABLE
        (USER, 'T_TEST', 'T_TEST_INTERIM');
      DBMS_REDEFINITION.COPY_TABLE_DEPENDENTS
        (USER, 'T_TEST', 'T_TEST_INTERIM',
         DBMS_REDEFINITION.CONS_ORIG_PARAMS, 
         TRUE, TRUE, TRUE, FALSE, v_num_errors, TRUE);
      DBMS_REDEFINITION.FINISH_REDEF_TABLE
        (USER, 'T_TEST', 'T_TEST_INTERIM');
    END;
    /
    DROP TABLE t_test_interim CASCADE CONSTRAINTS
    /
    -- results:
    DESC t_test
    COLUMN col3 FORMAT A10
    SELECT * FROM t_test WHERE CONTAINS (col3, 'test data') > 0
    /
    -- clean-up:
    DROP TABLE t_test
    /

    No real workaround DBMS_REDEFINITION uses function DBMS_METADATA. GET_DDL() and a string of invalid parameter is returned due to known bugs when you use the ALTER INDEX REBUILD with parameter REPLACE; try to avoid changing the index with REPLACE if you export or use DBMS_REDEFINITION for this table/index.

    Note to change the text index metadata, to change the existing class preference, you can use the REPLACE METADATA, IE

    ALTER INDEX i1 REBUILD PARAMETERS ("replace metadata sync (on commit)" ");

    Will not rebuild the index so that your DOF is to rebuild the index

    ALTER INDEX i1 REBUILD PARAMETERS ('REPLACE SYNC (ON COMMIT)")

  • My iphoto does not open. When I click on the circle still turns but nothing happens. I tried to open it with option to order and reconstruction, and nothing happened. I have version 9.2.3. Any advice will be greatly appreciated.

    My iphoto does not open. When I click on the circle still turns but nothing happens. I tried to open it with command + option and reconstruction and nothing happened. I have version 9.2.3. Any advice will be greatly appreciated.

    If you recently updated to El Capitan, your version of iPhoto is not compatible with this OS.

    What version of Mac OS X are you running?

  • kindly tell how to use the unique value of a table with the index 0

    kindly tell how to use the unique value of a table with the index 0

    Hi
     
    Yep, use Index Array as Gerd says. Also, using the context help ( + h) and looking through the array palette will help you get an understanding of what each VI does.
     
    This is fundamental LabVIEW stuff, perhaps you'd be better spending some time going through the basics.
     
    -CC
  • Copy a table with its index of Oracle 12 to another instance oracle 12

    Hello

    I m using 64 bit Win8

    I have a huge table T1 (about 200 million) on user storage space and its index is on different tablespaces on DB1

    I built an other empty DB2 with the same names of storage spaces. I d like copy the table T1 of DB1 with all its indexes in DB2 so that the table will in User tablespace and the index go to their corresponding storage spaces.

    Is it possible to do?

    Currently I T1 to export into a CSV file and re - import to DB2 and build all indexes manually.

    Concerning

    Hussien Sharaf

    1. What is the exact syntax to export and import a table with its index?

    You will need to use the "Table". An export of table mode is specified by the parameter TABLES. Mode table, only a specified set of tables, partitions, and their dependent objects are unloaded. See: https://docs.oracle.com/cloud/latest/db121/SUTIL/dp_export.htm#i1007514

    2 How can I import the indexes in one tablespace other than the table itself?

    You can only export the table first without the index by specifying the EXCLUSION clause in order to exclude from the index (see: https://docs.oracle.com/cloud/latest/db121/SUTIL/dp_export.htm#i1007829) and then manually create the index and specify the different tablespace when you create.

  • Collections [PL/SQL] table with a unique index

    Hello

    Is it possible to create a table with a unique index collection?

    example:

    declare
    type tabletype is the table of non-null number IN directory INDEXES;
    tabletype_nummer tabletype;
    Start
    tabletype_nummer (1): = 1;
    tabletype_nummer (2): = 2;
    tabletype_nummer (3): = 2;
    end;

    2nd and 3rd index have the same value.
    so he could not fill the index 3.

    Thank you.
    Ludo

    Published by: Ludock on December 10, 2009 11:36
    The unique index should be the value.

    Yes, he is not required to start the index within the collection of 1... regardless of the number...
    Here put your index to the collection and the value of the collection as even... so you can launch it from 12 to...
    Him even when modified a bit

    DECLARE
    type tabletype
    IS
      TABLE OF NUMBER NOT NULL INDEX BY BINARY_INTEGER;
      tabletype_nummer tabletype;
      v_num  NUMBER;
      v_num1 NUMBER;
    BEGIN
      v_num                   := 12;
      tabletype_nummer(v_num) := v_num;
      v_num                   := 2;
      tabletype_nummer(v_num) := v_num;
      v_num                   := 2;
      tabletype_nummer(v_num) := v_num;
      v_num                   :=5;
      tabletype_nummer(v_num) := v_num;
      v_num1                  :=tabletype_nummer.First;
    
      WHILE v_num1            IS NOT NULL
      LOOP
        dbms_output.put_line(v_num1);
        v_num1 := tabletype_nummer.Next(v_num1);
      END LOOP;
    END;
    

    I assigned collection it beginning with 12 and next 2 I assigned twice and 5 next time... So now, if you check the o/p, you will get 2,5,12 which are distinct values, you want to store in the collection.

    Ravi Kumar

  • How to check the Index is in harmony with the Table

    Hi, DBAS,.

    OS = RHEL 4
    DB = 10.2.0.4


    How do synchronize us the indexes on a table? Can synchronize us a clue? If an index is not having the same number of records in the table?

    Thank you
    Hari

    In fact, I see a different number of rows in table and an index on it.

    Select count (asset_id) in the rpt.vehicle; -table
    -Returns 23 345 lines

    Select count (1) in the rpt.vehicle_idx; -index
    -Returns 18 287 lines.

    You cannot select an index in this way so it is nonsense.

    If you really do:

    select count(1) from rpt.vehicle_idx;
    

    then VEHICLE_IDX is not an index.

    SELECT object_name, object_type FROM ALL_OBJECTS WHERE OWNER = 'RPT' AND OBJECT_NAME IN ('VEHICLE','VEHICLE_IDX')
    
  • partition in maintained growth index, partition of table didn't need to add space.

    Version Oracle 11 g 1 material, OS is aix.

    We have a 100 to dataware house, are partitioned with the index.

    Each table move data 6 months previously and even with the index. However our table tablespace has not seen more, but index tablespace kept more and more, I have to keep adding spaces.

    How to address this issue? where to find the problem is?

    Thanks in advance.

    >
    I joined dba_segments with dba_objects to get nom_segment, owner, created, bytes/1024/1024 as this tablespace.
    . . .
    EVENT_TYPE_HGRAM_DEV STATS INDEX SUBPARTITION 28-SEP-05 DECEMBER 10 05
    1
    >
    Does not the validation of the application and the columns you listed do not match the data that you have posted.

    EVENT_TYPE_HGRAM_DEV - the name says a statistical histogram on the EVENT_TYPE table in the DEV environment. This object name means something to you?

    Enter you two dates but only "created" as a column. And what is the '1' represent?

    You also do not show an OWNER but mention a column 'owner '.

    Which table is, or has been, this index belong to? The table still exists? Have you purged the recyclebins?

  • Fill the table with the formula nodewith a line of code

    Hello

    This is my first post of the community, OR maybe this question has been asked 1000 times but I could find no answer.

    Before using LabView I used Matlab a lot. I find a bit that it's too complicated without reason sometimes in labview work with arrays.

    I inherited, and I'm doing a little cleaning. what it does is extractr 2 and 3 position and creates a new table with her and another oner with other elements of the first table. In my view, that he becomes confused because you should rely on the cell of the table, the position of the output and I didn't wat to work this way.

    I replaced it with a knot of formula. Here is the code

    The departure is FP, the table of 6 elements is mdot and the 2 elements array is press

    MDOT float64 [6], press [2];

    MDOT [0] = FP [0]; MDOT [1] = FP [1];
    MDOT [2] = FP [4]; MDOT [3] = PS [5];
    MDOT [4] = PS [6]; MDOT [5] = FP [7];

    Press [0] = PS [2], press [1] = PS [3];

    Now, I want to know if it is possible to do as I would in matlab or C, where you can create a table with one line of code. What would the syntax in formula node to do something like:

    MDOT [6] = [FP [0], FP [1], [4] of FP, FP [5], FP [6], FP [7]];

    Press [2] = [FP [2], FP [3]];

    Thank you

    Use remove the table.  You can provide an index and length of elements to remove.  One of the outputs will be the original with the subset of the deleted table and the other output is the subset deleted.  1 NŒUD!

    EDIT: Created a snippet just after my previous post.

  • Comparison of table with a threshold

    Hello

    I want to compare a table with a threshold value and then draw the table values that are above the threshold.

    Thanks in advance

    Best regards

    RASHID

    Hi rachid,.

    For normal comparison with thresholds, you must make use of one for indexing of each elements and comparison functions and structure of matter...

    For your idea, I just add code examples.

    Thank you and best regards,

    srikrishnaNF

Maybe you are looking for