After move tables and index another tablespace, indexes got unusable?

Hi,
I moved table and indexes another tablespace. After move many indexes got unusable state. I couldn't understand thiis?
How can I make them again usable?
regards and thanks?

hi,
check this query below
create table test (id number(10));
create table succeeded.
insert into test values (10);
1 rows inserted
commit;
create index test_indx on test(id);
select index_name, status from user_indexes
where table_name = 'TEST';
INDEX_NAME STATUS
TEST_INDX VALID
alter table test move tablespace users;
select index_name, status from dba_indexes
where table_name = 'TEST';
INDEX_NAME STATUS
TEST_INDX UNUSABLE
rebuliding index
alter index test_indx rebuild
alter index test_indx succeeded.
then check
select index_name, status from user_indexes
where table_name = 'TEST';
INDEX_NAME STATUS
TEST_INDX VALID

Similar Messages

  • Things to do after move tables and indexes to another tablespace

    dear friends.
    last night i move indexes and tables from tbs1 to tbs2.
    I checked:
    - valid objects, everything is ok.
    - indexes and tables was move ok.
    Anything else that i must to check ???
    Pls, could you help me ???
    Really thanks.
    chijar

    thanks to answers my friends
    is correct, i was moved tables: alter table <OWNER.TABLE> move tablespace <NEW TBS>; and my indx: ALTER INDEX <OWNER.INDEX> rebuild tablespace <NEW TBS>...
    i wanted to know what things i must to do after i applied that movement.
    I forgeted recollect statistics, but i recently do it, thanks to you.
    So... its appears that i did it ok. !!!
    Thanks
    cesar.

  • Move a table from one table space to another tablespace and different table

    Hi,
    I have a 60gb table nearly 200 million records in it and the table has range partition.
    inorder to archive this table we have created 3 different tables and 3 different tablespaces for the tables.
    I want to move certain partitions to tableA and certain partitions to tableB and on to tableC and on the top i'm creating a view to access these 3 tables.
    Is there any technique to move the partition wise data to different tables. is there any new technique in 11g database?
    The database is 11gr1
    linux rhel5 x-86-64
    Edited by: user8894072 on Oct 12, 2010 2:03 PM

    if i do that like each partition has some millions of records. and the undotablespace is filling out and also the temp table space is filling out. The performance is very very poor if i use the create statement.
    Insert INTO TableA (select * FROM <BASETABLE> where pay_end_dt between '01-Jan-1999' and '31-Dec-2005')
    the above statement is also degrading the performance. I just need the synatx to move the partioned wise data to new table.

  • Insert one table and update another???

    Hello,
    I was wondering if it is possible to insert a record in one table and update another another record in a different table.
    I have a form on my company's intranet that allows employees to add comments (ADDT Insert transaction) about new products we are going to bring to the market. At the same time, I would like to count the numbers of comments on a particular product and update that number for each product to see which product is getting the most reviews.
    Right now the products are on the homepage with the title and inserted date. From there, the employees click on the product get the info and make comments about it. The problem for me is that I would like to see the comment counts for each product on the home page, which means I would have to update the product table with the count.
    Sorry, I am using PHP as the technology.
    When I used to do it in ASP, I would insert the comment using the POST from the form, but add another hidden field with the count in it and I would use the "Command" Server behavior to retrieve the number and update the other table field.
    I noticed that dreamweaver removed the "Command" server behavior when using PHP.
    All help is greatly appreciated
    Charles.

    Hi Charles,
    you can generally execute queries on a different table using Custom Triggers, and in regards to your "update the product table with the count" scenario the ADDT help file has a helpful pointer in the chapter "Custom transactions and triggers : Save additional information on login" -- in here you´ll find a sample "incremental counter" query which should be easy to adapt.
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • How to display contents of one table and update another one

    Hi all
    My requirement is the following:
    - Three tables, guard, site and guard_site where guard_site shows which guards are linked to a particular site and vice-versa
    - I need to create one front-end where i allow all guards to be linked with a particular site
    - so the panel must show all guards available (so get display data from guard table) and then i need to introduce a row selector, which allows user to select whichever guards he/she wants
    - There will be a save button and upon pressing it, i will create an entry on the guards_site table for the selected guards against the siteId provided when user goes to this page.
    - Also upon loading this page if there are already any linked guards these must show as ticked in the row selector.
    so I first attempted using a Tabular form or a form on a table/view, but it then forces me to select a table to update, which is not what i want, the data i display is from guard table, which is not the table i want to update... so I then tried a blank page and I created a SQL Query report region... but it doesn't allow me to add a row selector (even if I have added a button on the region).
    Any ideas?
    Regards and thanks
    Jose
    Ps- im using version Application Express 4.0.2.00.09 that came with Oracle Database Express Edition 11g

    Jose,
    Three tables, guard, site and guard_site where guard_site shows which guards are linked to a particular site and vice-versaso I first attempted using a Tabular form or a form on a table/view, but it then forces me to select a table to update, which is not what i want, the data i display is from guard table, which is not the table i want to update...>
    Maybe I am not understanding what you are trying to do but it appears that the table guard_site is the table you should be updating. Doesn't the guard_site table contain foreign keys from both the guard and site tables?
    Jeff

  • How to select data from one nested table and into another nested table

    create or replace
    TYPE ctxt_code_rec as object
    ctxt_header varchar2(10),
    header_description varchar2(300),
    status varchar2(30),
    adjacent_code varchar2(300),
    adjacent_desc Varchar2(400),
    adjacent_flag varchar2(4000),
    adjacent_text_href varchar2(4000)
    create or replace
    type ctxt_code_table as table of CTXT_CODE_REC
    d_table ctxt_code_table ;
    v_tab ctxt_code_table ;
    Iam trying to select data from d_table to v_tab
    using and bulk collect into
    select m.*
    bulk collect into p_code_result
    from table(l_loop_diag_code_table1)m
    order by 1;
    Receiving error:
    ora 94007 : not enoughvalues
    Could you please let me know how to solve it?
    Thanks,
    in advance

    >
    create or replace
    TYPE ctxt_code_rec as object
    ctxt_header varchar2(10),
    header_description varchar2(300),
    status varchar2(30),
    adjacent_code varchar2(300),
    adjacent_desc Varchar2(400),
    adjacent_flag varchar2(4000),
    adjacent_text_href varchar2(4000)
    create or replace
    type ctxt_code_table as table of CTXT_CODE_REC
    d_table ctxt_code_table ;
    v_tab ctxt_code_table ;
    Iam trying to select data from d_table to v_tab
    using and bulk collect into
    select m.*
    bulk collect into p_code_result
    from table(l_loop_diag_code_table1)m
    order by 1;
    Receiving error:
    ora 94007 : not enoughvalues
    Could you please let me know how to solve it?
    >
    Not unless you provide the code you are actually using.
    There is no definition of 'p_code_result' in your post and you say you 'trying to select data from d_table' but there is no code that loads 'd_table' in what you posted.
    And the SELECT query you posted actuall selects from an object named 'l_loop_idag_code_table1' which isn't mentioned in your code.
    Post the actual code you are using and all of the structures being used.
    Also explain why you even need to use nested tables and PL/SQL for whatever it is you are really doing.

  • I need to loop through 1 table and read another until a value changes

    i need to read a table and sum the quantity field until a reason code changes.  how do I go about doing this?

    sort itab by reasoncode.
    Loop at itab.
    quantiy = quanity  + itab-quantity.
    at end of reasoncode.
    jtab-reasoncode = itab-reasoncodee.
    jtab-sum = quantity.
    append jtab.
    clear quantity.
    endat
    endloop.
    or
    sort itab  by reasoncode.
    loop at itab.
    at end of reasoncode.
    sum.
    jtab = itab.
    append jtab.
    endat.
    endloop.
    or
    let us say itab and jtab are two tables and you want to loop through itab and read jtab for reasoncodes.
    if jtab has only one entry for each entry in itab then use read else use loop.
    loop at itab.
    loop at jtab where reasoncode = itab-reasoncode.
    quantiy = quantiy + jtab-quanity.
    endloop.
    endloop.
    or
    loop at itab.
    read table jtab with key reasoncode = itab-reasoncode.
    if sy-subrc eq 0.
    endif
    endloop.

  • HT1937 in general setting for itunes wifi sync some how i got two folder first one the one i want :apps,movie, music, and tones some how i got second one is photo only, when i plug in it's only sync on 2nd one and not first one, i tried delete ituns and d

    i had problem for my itunes wifi sync, in general setting itunes wifi sync, i got 2 folder name 1st one is one i want sync for app, movie,music and tones, somehow i got second one folder i dont want is photos only when plug into it only sync for photo the rest are gone on itunes screen and not sync, please help me how can i delete second one folder? i tried click on first one not moved and syns only sync on second one folder
    thanks. i did try delete itunes and download back but still there, i tried restore iphone to itunes a few months back but itunes screen still on new second folder not the first one
    mjphu
    [email protected]

    I own the movies and I want them to stay in my iTunes library basically forever.
    But in both cases the file name no longer shows in the movie list, so I don't know how to re-download it from the Cloud.
    iTunes prefs > Store > Show iTunes in the Cloud purchases.
    This will show all your iTunes purchases in your library with a cloud icon down arrow. Click the icon to redownload or click on Play to stream without downloading.
    Also see this , -> Download past purchases
    and techncially, you don't "own" the movie, You simply have a license to use it.
    Yet the first thing iTunes does when you hit the delete key is tell you that it will remove the movie forever from all devices and the library.
    Actually, no it does not tell you that.
    FYI: You should keep copies of all yoru iTnue spurahses as the labels/movie studios/copyright owners can pull their product at anytime and it won't be available to redownload.
    Suggestions here -> http://www.apple.com/feedback/

  • CREATE TABLE for another OWNER/SCHEMA and in another TABLESPACE?

    I am logged in a SYSTEM user. Now I want to create a table aaa. The owner of this table should not be SYSTEM but user KARL. and the TABLESPACE should not be SYSTEM but the (existing) TABLESPACE tttt.
    As far as I know I can achieve this by issuing the following command:
    CREATE TABLE KARL.aaa ( a INTEGER, .......) TABLESPACE tttt;
    Regarding the TABLESPACE parameter I am not sure. Is it possible to allocate a TABLE for User Karl in a TABLESPACE which is not assigned to him?
    Furthermore I have an additional problem.
    I have a script with hundreds of CREATE TABLE + ALTER TABLE + CREATE INDEX DDL statements.
    All of them are not prepended with Schema/Owner and an TABLESPACE clause.
    Can I put somehow one single instruction at the top of the script which telles Oracle
    to use
    - OWNER Karl as Schema/Owner for all subsequent DDL stements
    - TABLESPACE tttt as TABLESPACE for all subsequent DDL stements
    In MYsql there is a "use <database>" statement. Is there soemthing similar for Oracle?
    Thank you
    Peter

    Yes... you can do that. Take for example a user A who has a secret password that you don't wish to give out... like an application schema. User B needs to make tables/objects in schema A and you want to track what user B is doing. First setup Oracles Fine Grained Auditing and then grant "connect through" from user A to user B as follows:
    SQL> create user b identified by abc123
      2    quota unlimited on users;
    User created.
    SQL> grant create session to b;
    SQL> create user a identified by abc123
      2    quota unlimited on users;
    User created.
    SQL> grant create table
      2      , create session
      3     to a;
    Grant succeeded.
    SQL> alter user a grant connect through b;
    User altered.
    SQL> connect b[a]/abc123@a486
    Connected.
    SQL> show user
    USER is "A"
    SQL> create table a.my_proxy_table
      2  ( c1 number
      3  , c2 varchar2(50)
      4  , c3 date
      5  );
    Table created.-----
    See that I connected using the "username[proxyuser]" syntax. Also notice that user B is by proxy user A, illustrated by my "show user" command. The connect through can be granted/revoked as needed without divulging A's password to B. In addition, your audit tables or xml logs will track the fact that user B created table a.my_proxy_table.
    Hope this helps,
    John

  • One of cloud doesn't work in failover with Event ID 1205 and 1069 and unable to move services and application another node

    Any one please respond.
    I've been working on creating a windows server 2008 R2 cluster for about a month now and I keep getting an error whenever I try to add a 2nd node. I keep
    getting The cluster node is not reachable. However, when I validate the configuration, everything goes through success. I created and destroyed the cluster a couple of times, but no luck. I even re-installed Windows Server 2008 R2 on both servers, re-configured
    the iSCSI, and the same warning keeps coming up. 
    I installed a new a new SQL Server 2008R2 Named Instance on an exisiting SQL Server cluster node (Node 1 &Node2). When I try to manually fail
    over 
    the Services and applications  to another node (Node1 to node2) using Failover Cluster Manager, I get the errors
    The cluster has these Events:
    Event ID
    1069: Cluster resource 'IP Address xx.xx.xx.xx' in clustered service or application 'ClusterDtc' failed.
    Event ID 1205:The Cluster service failed to bring clustered service or application 'ClusterDtc' completely online
    or offline. One or more resources may be in a failed state. This may impact the availability of the clustered service or application..
    Why the cloud server doesn’t move to node2? you can see screen shorts below.
    1.
    in system configuration-
    3. in
    system configuration---->warning--->Validate All Drivers Signed
    after creating cluster I got below errors.
    Any info you might know would be really helpful.

    Dear Ravikumar
    From clone support they given reply mail...
    mail from Ramu...
    That would be a typical work around in this situation. But what we intend to do cannot be accomplished through this work around as we need the validations to complete successfully.
     We are looking for an option either to get the driver signed or use a different signed adapter for the same. Could you please suggest us something on that line. 
    Mail from Support....
    Hello,
    Unfortunately this is not something that we would be able to do in a virtual environment; You are welcome to try different drivers however we would not be able to provide any support 
    for untrusted drivers. The only true solution would be to upgrade from a VM to a dedicated server where you would have control of all the drivers as there is no virtualization layer to
     contend with. Stepping into the territory of untested drivers for a custom configuration in a virtual environment will certainly prove to be an uphill battle.
     I would advise contacting Microsoft's support for additional assistance as they will be able to provide the most accurate information regarding this concern. 
    Regards
    Systems Administrator

  • Selecting from one table and Update another in the same Page

    Could someone help me with this HTMLDB task. In my page design, I am selecting data from two tables (masters: DEPT, EMP) which I want to display on the left column of the page and at the same time a user would be able to update another table (ATTENDANCE:with many children) which would have a radiogroup on the right side for each value of the master such as employee name. The placement of data has to appear in corresponding rows on the page. For instance, employee names of the master table must appear on the same row with its corresponding child value. The page would be grouped by DEPT_NO. The user would click on the department name, a new page with the employee name would apprar. From that page, the user would then update attendance column for each employee in that department. In this operation, it is only the ATTENDANCE table that is being updated. I can send out more information about the structure of the tables if you need more information. I tried many HTMLDB options, forms, reports, etc. I have not been able to get quite right. Your help will be appreciated.

    Raju,
    Thanks for responding to my problem. I have actually tried using the example on how-to you sent me a link to but it did not help as I expected. You see, the page would be updated every meeting date for each employee. I can send you more information about the table structure if you like. However, let me see if this will help you a bit.
    Tables are: 1) Dept [dept_no (pk),dept_name] 2) EMP [emp_no (pk),emp_name, dept_no(fk)] 3) Meetings [meet_key(pk),attended, meeting_date, emp_no(fk)]
    What I want to do is create two pages, one would list the departments, when a user selects a department, the user would be linked to a meeting attandance page. The meeting attendance page would list department name once, Meeting date once, and then list employees in that department. At the right column of every employee would be a checkbox for meeting.attended for update. The meeting_date would be pre-populated so that what the user would do is just check Yes/NO. The second page is the one I'm having the most problem with.
    If I can do a fetch from dept, emp, and meetings and then do an update on the Meetings table on the same page, I think that might solve the problem. That was how I solved it in MS Access three years ago.
    Here is email address in case you want to contact me directly. [email protected]
    Thanks again for your help.

  • Dreamweaver CS3 adds  p align="center"   /p 44 times after a table and before the text. When the code is remove it puts the text to the side of the table. In Dreamweaver the setup is correct but in Chrome, Firefox, and IE there is a large space.

    </tr>
      </table>
      <h3 align="center" class="style2"><font face="Arial, Helvetica, sans-serif"><br />
      </font></h3>
      <p> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="left"> </p>
      <p align="center"><strong><font face="Arial, Helvetica, sans-serif"><a href="Compatibility_Pack.html">To Open To Open Word</a></font></strong><strong><font face="Arial, Helvetica, sans-serif"><a href="Compatibility_Pack.html">2007 Document in Word 2003</a></font></strong></p>
    The website is:
    Mitchell Public Library

    Take your hand off the ENTER key .
    You're using deprecated code.  Align="center" and <font> tags have been obsolete since HTML4.
    Use the W3C Validation tools below to check your code for errors.
    CSS - http://jigsaw.w3.org/css-validator/
    HTML - http://validator.w3.org/
    Nancy O.

  • I updated to 5.0.1 and lost all my game data for my apps since the update and have checked my devices table and tried to upload anyone got any idea how to get my freaking game data back

    Can any one help?

    Hi,
    Thanks for replying so quick. I think before the update the apps were not in the library. Now after the update the apps are in the itunes libary minus the game data. I think that happened because I tried to find my game data. I search my pc and found a previous itunes libraries folder and when I used that I found a file I clicked on a file called itunes Library 2012-01-10 that opened in the itunes library. The date on that file was the date of the upgrade to 5.0.1. when I lost all my games data.
    There is another file in the itunes libcalled iTunes Library 2011-03-16 would it be worth trying to download that as it may have more game data?
    I ment to say the devices tab not table it is the option in the iTunes app to find out about your device.

  • Best Method to Move Partitioned Data to Another Server

    Hi,
    In our company we have a monthly maintenance to move one partition from many partitioned tables to another server. I want to know what is the following:
    1- Best way to do this task and to move table partitions to another database on another server?
    2- When I delete table partition, do I need to analyze the table or rebuild the indexes?
    Appreciate your prompt response.
    Thanks

    2- When I delete table partition, do I need to analyze the table or rebuild the indexes?What do you mean by delete table partition? If you mean truncate or drop parition then you should use "UPDATE GLOBAL INDEXES" clause in order to avoid rebuilding global indexes as shown in the below examle:
    create table TAB1 ( Value number(10))
      partition by range(value)
      partition p1 values less than (10),
      partition p2 values less than (20),
      partition p3 values less than (30),
      partition p4 values less than (40),
      partition p5 values less than (50)
    insert into tab1
    select rownum
    from dual connect by rownum < 50;
    commit;
    create index tab1_indx1 on tab1(value);
    sql> select index_name, status
      2  from user_indexes
      3  where index_name = 'TAB1_INDX1';
    INDEX_NAME                     STATUS
    TAB1_INDX1                     VALID
    sql> alter table tab1 drop partition p2 UPDATE GLOBAL INDEXES;
    Table altered.
    sql> select index_name, status
      2  from user_indexes
      3  where index_name = 'TAB1_INDX1';
    INDEX_NAME                     STATUS
    TAB1_INDX1                     VALID
    sql> alter table tab1 drop partition p3;
    Table altered.
    sql> select index_name, status
      2  from user_indexes
      3  where index_name = 'TAB1_INDX1';
    INDEX_NAME                     STATUS
    TAB1_INDX1                     UNUSABLEMohamed Houri

  • [SOLVED] Create table and storage clause

    Hi, I create a table whit lob ad so, I set some LOB storage clause:
    CREATE TABLE W2_T_MESSAGE_NWSL (
    KEY NUMBER,
    T_MESSAGE CLOB DEFAULT EMPTY_CLOB(),
    T_TEXTMESSAGE CLOB DEFAULT EMPTY_CLOB(),
    T_FOOTER CLOB DEFAULT EMPTY_CLOB())
    LOB (T_MESSAGE)
    STORE AS (TABLESPACE LOBDATA CACHE READS RETENTION ENABLE STORAGE IN ROW),
    LOB (T_TEXTMESSAGE)
    STORE AS (TABLESPACE LOBDATA CACHE READS RETENTION ENABLE STORAGE IN ROW),
    LOB (T_FOOTER)
    STORE AS (TABLESPACE LOBDATA CACHE READS RETENTION ENABLE STORAGE IN ROW);I need to export this table and do an import on a different instance.
    I know for sure that the tablespace LOBDATA exists on both database but I can't say the same for the user default tablespace.
    The problem is that when I import this table, the statement fail because the default tablespace of the user hasn't the same name of the tablespace where the table was exported.
    IMP-00003: ORACLE error 959 encountered
    ORA-00959: tablespace 'USERWNSTARTUP' does not exist
    This because the create table generated by the export has this storage clause:
    PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(
    INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1) TABLESPACE USERWNSTARTUP LOGGING NOCOMPRESS LOB (B_LOGO) STORE AS (TABLESPACE "LOBDATA" ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10 CACHE READS STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1)
    On other tables, where I havent defined any storage clause all works fine.
    Is there a way to resolve this problem?
    Thanks
    Regards

    if someone is interested I've found this on the official import oracle documentation:
    if the tablespace no longer exists or the user does not have the necessary quota, the system uses the default tablespace for that user as long as the table is unpartitioned, contains no LOB or VARRAY columns, is not a type table, and is not an index-only table with an overflow segment.In my case I've a LOB column, so tablespace information would be exporterd. I've done a trace of the import and I can confirm that on table without lob, varray etc.. the create table statement hasn't the tablespace specification.

Maybe you are looking for