moving partioned tables to different areas of storage in oracle 11g.

Dear all,
I need to move the table partitioned to a different tablespace. I moved all the partitions individually, as well as the index.
However I have a problem now, when I check the user_tables or dba_tables view, I see correspomding tablespaces null in the table of the column tablespace_name.

How do I see the name of the tablespace in these views.

Even thouh Sb gave you the right answer, I just show you below to copy / paste screen 11.2.0.1 sqlplus:

test1@ORCL> create table t (x number)
  2    partition by list (x)
  3    (partition p1 values (10),
  4    partition p2 values (20));

Table created.

test1@ORCL> select table_name,tablespace_name from user_tables;

TABLE_NAME                     TABLESPACE_NAME
------------------------------ ------------------------------
T

1 row selected.
---Means tablespace_name.user_tables is always null for partition table(s).
---Ok, then how do I see the tablespace name?
test1@ORCL> select table_name, partition_name,tablespace_name
  2  from user_tab_partitions
  3  where table_name = 'T';

TABLE_NAME                     PARTITION_NAME                 TABLESPACE_NAME
------------------------------ ------------------------------ ------------------------------
T                              P1                             USERS
T                              P2                             USERS

2 rows selected.

test1@ORCL> ALTER TABLE T MOVE PARTITION P1 TABLESPACE EXAMPLE;

Table altered.

test1@ORCL> select table_name, partition_name,tablespace_name
  2  from user_tab_partitions
  3  where table_name = 'T';

TABLE_NAME                     PARTITION_NAME                 TABLESPACE_NAME
------------------------------ ------------------------------ ------------------------------
T                              P1                             EXAMPLE
T                              P2                             USERS

2 rows selected.

test1@ORCL> select table_name,tablespace_name from user_tables;

TABLE_NAME                     TABLESPACE_NAME
------------------------------ ------------------------------
T

1 row selected.

Just for your information please.

Concerning
Girish Sharma

Tags: Database

Similar Questions

  • Segments subpartions seems to also be moved when table sub-parts are moved

    Hello

    I have the script that dynamically generates the code to move subpartitions to one tablespace to another:

    Select
    'alter table ' | p.TABLE_OWNER | '.' || p.table_name | "move subpartition ' | p.subpartition_name | "tablespace LOCAL2_D;" text
    Of
    dba_tab_subpartitions p
    where
    p.tablespace_name in ('LOCAL1_D', 'LOCAL1_I');

    The generated code is as follows:

    ALTER table OBD_OWN. DWH_PREMIES move subpartition DWH_PRE_RLP_2010_Q1_1891 LOCAL2_D tablespace;

    Yet, when one do a check against the segments with this script:

    Select
    owner of s.Owner,
    type of s.segment_type,
    Count (*) rest_segs
    Of
    s dba_segments
    where
    s.tablespace_name in ('LOCAL1_D', 'LOCAL1_I')
    Group
    s.Owner,
    s.segment_type
    order by
    1, 2, 3;

    I see a reduction in the amount of the subpartitions table, which is an expected result, but also a decrease in the index sub-parts:

    -To time 1:

    OWNER TYPE REST_SEGS
    -------------------- ------------------------------ ---------
    OBD_OWN 30 INDEX
    OBD_OWN INDEX 16 180 PARTITION
    OBD_OWN INDEX SUBPARTITION 8 161
    PARTITION TABLE OBD_OWN 695
    OBD_OWN TABLE SUBPARTITION 593

    -By 2:

    OWNER TYPE REST_SEGS
    -------------------- ------------------------------ ---------
    OBD_OWN 30 INDEX
    OBD_OWN INDEX 16 180 PARTITION
    OBD_OWN INDEX SUBPARTITION 7 874 < = decrease in the unexpalined of these segments of type?
    PARTITION TABLE OBD_OWN 695
    OBD_OWN TABLE SUBPARTITION 586 < = decrease expected of segments in the tablespace crossing

    When you MOVE a Table Partition / SubPartition, the corresponding Index Partition/SubPartition becomes UNUSABLE.

    In 11.2, the Segment for a UNUSABLE Index/Partition/SubPartition is actually diminished - it restores the behavior "deferred_segment_creation".

    The segment is created when you run the ALTER INDEX REBUILD PARTITION indexname | Partition SUBPARTTION | SUBPARTITION name.

    Hemant K Collette

  • Table space not reduce after deletion in oracle 11G

    Hi team,

    I have a DB 11.1.0.7 on unix.


    I run deleting on the tablespace tables, but this does not diminish.

    Thank you

    There are three ways.

    You can create another table in select * from the existing table (after deletions), truncate the table, insert into the table to the new table, drop new table purge. See Procedure of MOS to truncate, delete or purge the lines of the Table of Audit AUD$ [73408.1 ID] trail

    Or, you can use the new documented package from DBMS_AUDIT_MGMT to http://docs.oracle.com/cd/E11062_01/admin.1023/e11059/avadm_app_d_audit_mgmt.htm#BABIEABE but I have not used it myself, so I don't know if it can shrink. See the new MOS DBMS_AUDIT_MGMT feature to manage and purge Audit information [ID 731908.1]

    The simplest way is to be alter table aud$ move;

    Once you have made the table smaller, you can reduce the data files. See http://www.oracle-base.com/articles/misc/reclaiming-unused-space.php

  • scroll bar for both tables of different size

    Hello world

    I am applying for thermocouples. Application is working otherwise fine, but I can't make two tables of different size scrolls with a scroll bar. I've attached a picture to make it a little easier to understand. In the photo you can see that there are two tables. Superior is 1 d including channel names. Below is a table with time and the measured temperatures. Vertical scrolling works very well that only the lower table must be the object of a scroll. But if I want to scroll horizontally, I also need to scroll the top table so that the channel names and measured temperatures would correspond. This is the problem that I have not been able to solve. The lower table can 'constantly' update (vertically) because the measure may be underway. I tried to use nodes property tables below top table of controls (IndexValues). I found many many solutions that work with the same dimension tables, but I couldn't manage so that they work with my application. Anyone have any ideas? I use LV 8.6

    Thank you

    Mika

    Also consider using a Table, where the built-in column heading allows to scroll the data, and it is the only control header & data.

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

  • Show the cumulative results in three different areas?

    Is it possible to have the date entered in three different areas? For example, if I get the 13/03/2016 I want to show like this, third month, 13th day, year from 2016. In three separate fields. Can anyone help with a script to do this? Thank you guys.

    I understand perfectly, the programming is difficult and requires a different way of thinking.

    "" "You're almost there. '" It may work, but there are two questions that I see that could bite you later.

    The first is that you need to "declare" the variable "theMonth" (which was in my original script, but you probably deleted when you added the table of the names of months.) You're already declare (and initialization) variables 'leaders' and 'brassy', so just add this line to these two:

    var theMonth = "";
    

    And then at the end, you can remove a line: it's the calculation for the field 'theMonth' script, which means that we do not have to set the value of the field through 'this .getField ("theMonth") .value' - because it's a calculation script, you set the value of the field calculated using the property "event.value. Therefore, remove this line from the end of your script:

    this.getField("Month").value = theMonth;
    

    That should do it.

  • partion tables and indexes

    Hi all

    DB: 10.2.0.4

    Is that we can convert a normal table into partitioned tables?
    If Yes, then what is the existing indexes on this table?

    IM totally new about partitioning (Table and Index). I read the oracle docs but still have confusion with local and global index (score and no-partion)...


    Please suggest...

    Kind regards.

    >
    Is that we can convert a normal table into partitioned tables?
    If Yes, then what is the existing indexes on this table?
    >
    You can use the EXCHANGE PARTITION to do. See this article from the Oracle base
    Partitioning of an existing Table using the EXCHANGE PARTITION
    http://www.Oracle-base.com/articles/Misc/partitioning-an-existing-table-using-Exchange-partition.php

    Or you can use for DBMS_REDEFINITION do directly

    See this article from the Oracle base
    http://www.Oracle-base.com/articles/Misc/partitioning-an-existing-table.php

    You can also create a new table and INSERT the data from the old table.

    The option you are using could depend on indexes how you have, if you intend to keep them all and if the indexes on the partitioned table must be either local or global.

    To refine the new partitioned table, you really need evaluate each index to determine that the index should be global or local, and if the index should also be partitioned.

    There isn't any point to create a new table with the same indexes if you want to redefine all the indexes. You would be better of the backup of the original and then table drop indexes before conversion.

    See the VLDB and partitioning Guide
    http://docs.Oracle.com/CD/B28359_01/server.111/b32024/TOC.htm

  • Ports required to migrate between ESXs models in different areas of FW

    Hello

    I have an ESX in Location1 hosting models. I have another group of ESX in Loacation2. I want to deploy an an ESX virtual computer in guest place.2 from a model of Location1.

    We have a firewall located between 1 location and location two. ESX on the two Sites is managed by a server on Location1 vCentre.

    The firewall has already 902,903,443,27010 and 27000 open between vCentre server and the LAN of guests place.2. However we can not yet deploy vms in lcoation2 of the models of location1.

    I read something that was rather vague on the opening of the port 902 between ESX on different areas of FW. Can anyone confirm if it's it's it stop working. I have to open 902 Port TCP and UDP between two LANs in both sense? Also is there anything else that needs opening between them. We do not HA, DRS and vMotion to present as all virtual machines are the local storage.

    Thank you

    Steve

    Hello.

    See the kb article 1006865.

    Good luck!

  • How to check the table have are all views in oracle

    Hello
    How to check the table have are all views in oracle
    SELECT * FROM user_dependencies
    WHERE type='VIEW'
    AND referenced_type='TABLE'
    AND referenced_name ='Your_Table_Name' 
    

    You can use dba_dependencies to find views in the different schema.

  • Level 3 Table of contents are a book with topics of level 2 under

    I'm a framework any 9 RH8. I have traced my styles in Conversion, and on FM settings I have implemented the TOC styles while titre3 was a police more indented and smaller than Title2. But when the table of contents are generated in HR, I get something like this:

    HEADING 1

    Section 2A

    heading 3a

    Heading 3b

    section 3 c

    Section 2B

    Section 2 c

    I've attached screenshots.

    Try to structure your table of contents FM differently. I was having a similar problem and found that if I change the indentation of the OCD FM I'm importing, I can change the structure of the table of contents of HR.

    Burtin

  • passing parameters between different areas to help Navigate the column

    Hi all

    I know I can pass parameters between the reports through a few subjects by using Url go. However, I want to keep the functionality of the menu displayed when you use defyining multi target in the s column Navigate with drop-down feature. So the problem I encountered is the sequel

    (1) when I set some goals to navigate - is it possible to transfer parameters to these links point to destinations? (I tried to add them at the end of the link in the field "Target", but without success)

    (2) or alternatively - when you use GoUrl, can I define a < would display a href link that might point to places menu and mulitple drop down?

    I really appreciate your help with above
    Best regards
    Wojtek

    Published by: user1291979 on October 7, 2009 11:51

    -without add nothing more to this link, selected GEOGRAPHY. COUNTRIES must be passed to destination and > must complete guest there? It works that way in my environment

    If you are using navigation on the current query column properties and component the dashboard then the query current source column is analyzed on the quick dash in both have SAME_TABLE. The names of SAME_COLUMN, else parameter is not parsed.

    Target: / shared/Adecco01/_portal/01 edge/weekly table dashboard
    You don't enter anything

    He must complete only the GEOGRAPHY. COUNTRIES in the reports within the area where the source report comes from?

    If you use the navigation on the properties of the column and the call to another then asks the current column is analyzed on the query target only if in the SAME_TABLE target. SAME_COLUMN value IS INVITED, another parameter is not parsed. Report of the target and the source may be on different areas but we need SAME_TABLE. Names of SAME_COLUMN.

    If you use GO URL, URL of the dashboard EDGE or the other, I already explained.

    Concerning
    Goran
    http://108obiee.blogspot.com

  • Satellite Pro M10 - horizontal lines on the screen in different areas

    Hi all

    I hope someone can help.
    My Satellite Pro M10 seems to suffer a display problem where I have horizontal lines on the screen in different areas.
    It would be well for 10 minutes and when the laptop seems to warm up this problem begins, then shortly after
    The laptop would crash and enter in a resolution of 800 x 600 16 colors or sometimes freeze.

    Graphic drivers have been resettled, and even a new installation of Windows XP from the recovery CD does not help.
    A reboot doesn't solve what the same thing happens again and after one minute of use, so I thought it might be a video or cooling problem.
    I changed the video card I had a spare part of my last motherboard hoping this would solve the problems, but the problem persists.
    Perhaps a cooling problem? Or problems of motherboard?
    The motherboard has been replaced twice, hoping that this isn't another mobo problem.

    Any advice would be great.

    Thank you.

    Hello

    I m not 100% sure but to me it looks a bit like an overheating problem
    Maybe the graphics card may not be properly cooled after a certain period of time and that's why these strange horizontal lines appear on the screen.

    I wonder how you were able to replace the graphics chip on the motherboard?  :|
    If I m not wrong not the chip is fixed and the replacement is very easy and difficult

    It of always difficult to say what's maybe wrong without running several diagnostic tests in most cases this problem may be related to the defective chip or motherboard and so the following should be checked

    Sorry, but that's all I can suggest.

    Best regards from my friend

  • warning by email: we discovered the series of illegal attempts on your e-mail account of different areas of the intellectual property. It's for your own safety to continue to use your account, click on the button below.

    Original title:

    warning by email

    Got this e-mail with the subject attention!

    Is - is this legitimate?

    He wants me to press any key to continue

    Thank you

    Microsoft account
    Microsoft Security info
    We discovered the series of illegal attempts on your e-mail account of different areas of the intellectual property.
    It's for your own safety to continue to use your account, click on the button below.
    Continue
    Note: Please do not ignore this email to avoid your closed account
    Thank you
    The team Microsoft account

    Hello

    Phishing scam.
    Ignore!

    FYI

    Microsoft usually has a green shield on the name of the sender.

    This indicates that the e-mail coming from Microsoft / play the sender.

    If, in case of doubt, please check your email to see if the Green Shield is there. ***

    Phishing: Frequently asked questions
    How can I Report Spam, Phishing or abusive messages in Outlook.com?

    My account has been hacked

    How to recognize phishing e-mails, phone calls or links

  • Integration of the TPM with 2 different areas AD

    Hi people,

    We have an obligation to incorporate 2 different areas with OVD AD and provide a single view of the data from the announcement of foreign principals of the follow-up to the announcement that the Member in the Group AD1 attribute value is set to the AD2 user objectSid.


    I created the maps below and custom plugin as part of the implementation:

    • Created an AD adpater to AD1 Directory(AD1 Group adpater) Active traction groups - main card
    • Created an AD adapter to users to get AD1 Active Directory (adapter user AD1)
    • Created an AD adapter to users to get AD2 Active Directory (adapter AD2 user) - link adapter
    • Created join adpater so that data on top 3 adapters can be provided in a single view (join adaptor)
    • Custom plugin was created to replace the Member of the group attribute in AD1 containing the value objectSID with the corresponding user DN AD2
    • Custom plugin extends the BasePlugin interface and the inti() and postSearchEntry() method overides

    The custom plugin triggers when I connect to OVD through any LDAP browser and navigate the view and the custom plugin does its job to replace the member attribute in AD1 with the DN of the user of AD2, but when I run the ldapsearch to OVD to return the Member for any particular user (Member = cn = < UtilisateurDN >) I do not see my custom plugin to trigger and the ldapsearch is passed to the AD1 where it has no Details on the user DN but only the objectSid of the user.

    After investigation, implemented the get() method in my custom code to transform the search filter incoming (Member = cn = < UtilisateurDN >) with the objectSid (Member = cn = < objectSid >) and past the filter changed to the chain.nextGet () method.

    In the journals of backend, I can see the custom plugin is triggering and turning the filter and passing to AD1 and custom plugin print groups that belongs to the user, but I don't see any results for the ldapsearch command.

    Counsel on this will be highly appreciated.

    Thank you

    Simo

    You will still need to run super.get () when there is any result to add.

  • Table of contents are not present in CHM output generated with Robohelp 2015

    Hello. When I generate CHM output HR 2015, the table of contents are missing, but the search and glossary tabs are present. I won't open the file from a server, but from my desk. I copied from the server on my desktop and renamed it. The file has been created, I believe, RH 9, but I generated successfully exit CHM with this file in HR 10. Any ideas? Thank you!

    Dawn

    If I were in your shoes, the next thing I would try is to open the pod output configuration. Define a new CHM window there. So be sure to choose this new window in your presentation of single Source recipe.

    See you soon... Rick

Maybe you are looking for

  • Belkin YourType wireless keyboard doesn't work does not correctly

    Hi guys I bought my pad paired Belkin Bluetooth in an Apple store, more than two years ago and once I got it, it worked exactly what I needed to enable keyboard shortcuts in Steinberg Cubase, DAW software. Now, I have all sorts of questions. First of

  • Yosemite clean install hangs on the screen 'set up '.

    I recently had some problems with my iMac intel in 2009. I had to change the HD as it was damaged and the battery and the power source. I Yosemite on a USB bootable and have gone through all the pages together (picking countries, logging into my acco

  • Why Mail continue to use sound notifications even if I turn them off?

    I went in the General settings of the mail and have disabled sound notifications. I always bring whenever mail comes in my Inbox. Am I missing something?

  • TMS 14.3.2 - IIS - SHA2 server certificate is supported?

    TMS server is currently at version 14.3.2 with a self-signed certificate. I want to update the existing with a SHA2 certificate server cert and certificate of my employer services group want to check support before issuing a new certificate. Could so

  • Please someone help me on the query.

    I'm using oracle 11g. The column has many numbers. few are positive numbers, negative numbers are few, and few are zero.the table structure is as this:Col19-536010-15-45087Now, I have to count the number of positive, negative and all number the numbe