Table move after data deletion in oracle 11g

Hi,
Our previous system was in oracle 9i, And we used to archive our data in every 1 year which caused a huged number of DML operation our database. After that,we used to move our table and rebuild indexes to releases spaces. After Upgradation ,our presence system is running on oracle version 11.2.0.2. Now my question do we need to move table in 11g to release space?? Or it automatically done in 11.2.0.2???
Thanks and Regards,

Our previous system was in oracle 9i, And we used to archive our data in every 1 year which caused a huged number of DML operation our database. After that,we used to move our table and rebuild indexes to releases spaces. After Upgradation ,our presence system is running on oracle version 11.2.0.2. Now my question do we need to move table in 11g to release space?? Or it automatically done in 11.2.0.2???If you move that space will be released from those extents but you wont gain any space at OS level until unless you shrink datafile. Move command will do the job.
did you see what is the free space in tablespace after moving objects?

Similar Messages

  • Query on a transaction table breaks after running for sometime - Oracle 11g

    Hi,
    I'm running the below query to pull the sum of amount on trans table (which has 12 years of data partitioned yearly) whose last transaction date is 19-MAY-2013. The calendardatekey column is the one which is used in place of transaction date (each day has a unique calendardatekey). The query runs for couple of hours and breaks. When I contacted DBA they told that its trying to do a full table scan and pulling huge amount of data and doing a kind of sort and then breaks. Could someone please help if there is a better approach? If it works out for one day I will have to perform this for few more days.
    Oracle version - 11g
    trans table :
    columns customerkey, programid and amount - are indexed.
    card table :
    column customerkey, status are indexed.
    select t.customerkey, t.programid, sum(t.amount), max(calendardatekey) from trans t
    where
    exists (select null from card c where t.customerkey = c.customerkey and c.status = 'A')  
    --and t.programid = 10
    group by t.customerkey, t.instprogkey
    having sum(t.amount) < -100
    and max(calendardatekey) =4888
    Thanks for your help!

    doubtsinora wrote:
    Hi,
    I'm running the below query to pull the sum of amount on trans table (which has 12 years of data partitioned yearly) whose last transaction date is 19-MAY-2013. The calendardatekey column is the one which is used in place of transaction date (each day has a unique calendardatekey). The query runs for couple of hours and breaks. When I contacted DBA they told that its trying to do a full table scan and pulling huge amount of data and doing a kind of sort and then breaks. Could someone please help if there is a better approach? If it works out for one day I will have to perform this for few more days.
    Oracle version - 11g
    trans table :
    columns customerkey, programid and amount - are indexed.
    card table :
    column customerkey, status are indexed.
    select t.customerkey, t.programid, sum(t.amount), max(calendardatekey) from trans t
    where
    exists (select null from card c where t.customerkey = c.customerkey and c.status = 'A') 
    --and t.programid = 10
    group by t.customerkey, t.instprogkey
    having sum(t.amount) < -100
    and max(calendardatekey) =4888
    Thanks for your help!
    "and breaks" is totally devoid of actionable information.  Surely you got an actual error message (ora-nnnnn) that you could share with us?
    Sounds like your DBA is trying to avoid providing any assistance .....

  • Table space not reduce after delete in oracle 11G

    Hi Team,
    I have a DB 11.1.0.7 on unix.
    I have execute delete tables on tablespace, but this not reduce.
    Thanks

    935299 wrote:
    What segment space management type is defined for the tablespace in question?
    MANUAL
    Then you should check out the documentation some more.
    But even if you shrink the table segement what is that going to do for the data file size?
    I don't undertand you.
    ThanksYour thread is titled "Table space not reduce after delete in oracle 11G" which implies to me that you are interested in reducing the size of a tablespace (which really means reducing the size of the underlying datafile(s)).
    So, if you shrink the size of the sys.aud$ table, will that cause the datafile(s) to become smaller? Will it accomplish your goal? What else, if anything, needs to happen?

  • Move database from server running Oracle 11G to server running Oracle 12c

    I'm trying to find out the easiest way to migrate a database from a server running Oracle 11G to a server running Oracle 12c. I have tried using RMAN's duplicate database command but have run into far too many issues when trying to setup both servers before running the duplicate command.  If someone could provide some clear guidance on configuring both servers for the RMAN Duplicate command then that would be great.  The other thing I have tried is performing a cold backup of all the files for the database (control files, data files, etc.).  Copying them to the new server and then recreating the control file to include the correct location and names for the datafiles and redologs.  After recreating the control file the database will not start up.  I'm suspecting this is due to the version differences. If you can provide me clear (ie. migration for dummies) instruction for getting either of these methods to work it would be greatly appreciated.  I'm also open to any other method you can think of to achieve what I'm trying to accomplish. Thanks, Paul Noyes

    Pl do not post duplicates - Move database from server running Oracle 11G to server running Oracle 12c

  • User change password after first logging in Oracle 11g

    Hi
    Can you help someone in connection with this problem:
    user can not change password after first logging in Oracle 11g
    All the best
    Ragip Avdijaj

    Sounds like they are not getting logged in at all, so they are never getting to the point where they can change the password, but we need to see more detail to give a better answer (an example or copy-paste of a sqlplus session might help)

  • Is it possible to perform network data encryption between Oracle 11g databases without the advance security option?

    Is it possible to perform network data encryption between Oracle 11g databases without the advance security option?
    We are not licensed for the Oracle Advanced Security Option and I have been tasked to use Oracle Network Data Encryption in order to encryption network traffic between Oracle instances that reside on remote servers. From what I have read and my prior understanding this is not possible without ASO. Can someone confirm or disprove my research, thanks.

    Hi, Srini Chavali-Oracle
    As for http://www.oracle.com/technetwork/database/options/advanced-security/advanced-security-ds-12c-1898873.pdf?ssSourceSiteId… ASO is mentioned as TDE and Redacting Sensitive Data to Display. Network encryption is excluded.
    As for Network Encryption - Oracle FAQ (of course this is not Oracle official) "Since June 2013, Net Encryption is now licensed with Oracle Enterprise Edition and doesn't require Oracle Advanced Security Option." Could you clarify this? Thanks.

  • Table data size in oracle 11g

    Hi All,
    how to find the data size in particular Table?
    Ex:I need find out the sh.sales table how much data size is loaded
    Thanks,

    USER_SEGMENTS (or DBA_SEGMENTS)
    And if it's a partitioned table, don't forget to sum the sizes.
    You may also want to include any indexes on the table.

  • How to generate TPC-E schema/data sets in Oracle 11g

    Hi,
    I want to use TPC-E schema in my Oracle 11g database (Standard) and also want to use DATA SETS from this benchmark for some kind of testing.
    I've download EGen v1.8.0 from this TPC website:
    http://www.tpc.org/tpce/default.asp
    but don't know who to implement this benchmark database into my computer's database. I'll appreciate if someone please suggest me how to do this...
    Thanks alot.
    Best Regards,
    Kamran

    kamran safdar malik wrote:
    I want to find Optimal size of a data block size as this is the one parameter which can increase the performance of a database or decrease it.If there is a single optimal size, that would surely be the default Oracle block size - as Oracle should know perhaps better than any of us, just what block size differences do as it is their code that uses it?
    Can I ask why you said that you would not have chosen this topic as a thesis?My leaning has always been to expert systems and A.I. Even designed and written my own expert system language years ago. One thing that is critical in such systems is how you structure data - and that has a nice database angle to it. One that I believe can still be exploited for research purposes.
    Don't you think that it'll benefit DBA's or database developer after I reach a successful conclusion?To be honest, in the real world of database systems, the least of my concerns are data block sizes. For example, we're busy putting together a storage array that should have a maximum I/O pipe size of 40Gb. In comparison, we currently use dual 2Gb fibre channels on most of our servers for our I/O.
    Technology moves fast. And perhaps there is an ideal block size for the standard storage array and Oracle instance today - but that could invalidated by new technology next year. Would I want to spend time and effort studying and analysing and researching a very specific technical subject, that perhaps is not considered as of that critical importance by DBAs and perhaps can be outdated with new technology and techniques?
    I honestly do not want to put you off studying db block sizes. Perhaps there's still some critical issues to uncover in that respect. But personally.. there are many other subject areas in database technology that peak my interest a lot more. But then you have your personal preferences and likes and dislikes - and data blocks could be your muse. :-)

  • Anyone inserted data directly from Oracle 11g to MySQL?

    Hi There,
    We work mainly on Oracle 11g. However, there is a requirement to now connect to an external MySQL database from our company's Oracle Database. Would be trying to do this for the first time. The process would be to download the data using PL/SQL from the ORacle 11g DB and then insert the data into the MySQL DB table. Had a few questions,
    1. Are there any known issues with connections between ORacle as source and MySQL as target. Anything that needs to be kept in mind?
    2. How do we send the data to MySQL, I mean in PL/SQL we can have the procedure create the insert statements. But can we directly fire the insert on MySQL ? If yes, any suggestions on what the commands would be?
    3.Any way to figure out if the insert was successful?
    4. We might also have to do other operations like update/delete etc.
    5. Any possible reference or sample code on this would also help.
    Thanks

    Well, the simplest and most direct approach would be to create a java function in the database to perform the operation and call it from pl/sql. I've done it before and there are examples out there and its a pretty straight-forward process.
    A quick example from [this website|http://w2.syronex.com/jmr/edu/db/oracle-and-java]
    import java.io.*;
    import java.sql.*;
    public class OraThin {
      public static void main(String[] args) {
        try {
          Connection con=null;
          Class.forName("oracle.jdbc.driver.OracleDriver");
          con=DriverManager.getConnection(
            "jdbc:oracle:thin:@machine_name:1521:database_name",
            "scott",
            "tiger");
          Statement s=con.createStatement();
          s.execute("
            INSERT INTO BOOKS VALUES
            'A Tale of Two Cities',
            'William Shakespeare',
            4567891231,
            '5-JAN-1962'
          s.close();
          con.close();
       } catch(Exception e){e.printStackTrace();}
    }Check out Oracle's Java tutorial at http://docs.oracle.com/javase/tutorial/jdbc/basics/storedprocedures.html for more in-depth information.
    If you're going to be doing this for more than a handful of tables under very controlled circumstances keeping it synchronized is going to be a mess, however.
    Edited by: Bill Haverberg on Jun 20, 2012 8:05 AM

  • Date problem in oracle 11g

    iam New to oracle 11g but familiar with SQL 2005
    i have a table Patient which has a column Date_Of_Birth has datatype Date
    and iam writing a query in which if Date_Of_Birth column has a value
    *01/01/1900* then i should be replaced by *' ' or balnk*
    otherwise show date value for that i have made use of
    case
    query
    select case(Date_Of_Birth)-------------this is my column
    when '01/01/1900'
    then ''
    ELSE TO_CHAR( Patient.Date_Of_Birth, 'DD/MM/YYYY')
    END Date_Of_Birth
    from Patient -------------my table
    but error is comming
    Error starting at line 1 in command:
    select case(Date_Of_Birth)
    when '01/01/1900'
    then ''
    ELSE TO_CHAR( Patient.Date_Of_Birth, 'DD/MM/YYYY')
    END Date_Of_Birth
    from Patient
    Error at Command Line:2 Column:5
    Error report:
    SQL Error: ORA-00932: inconsistent datatypes: expected DATE got CHAR
    00932. 00000 - "inconsistent datatypes: expected %s got %s"
    *Cause:   
    *Action:
    Edited by: user13066438 on Jan 24, 2011 9:38 PM

    Hi there
    you have date data type in Date_Of_Birth you have to use to_date function
    try this
    select case((Date_Of_Birth)when to_date('01/01/1900', 'DD/MM/YYYY')
    then ''
    ELSE TO_CHAR(Patient.Date_Of_Birth, 'DD/MM/YYYY')
    END Date_Of_Birth
    from table_name;regards
    Hitesh

  • Problem with Export User's data from database oracle 11g

    i want export all user data and Its tables from oracle 11g database, I am using the comand exp, pero export only the tables with data, i Have Some tables and Not Without export data These tables,
    can someone help me!

    problem with zero extent table
    exp is de-supported in 11g. Use expdp instead to export tables without any rows.
    Srini

  • How to do filter data after Data Collection for Oracle PS

    Hi Experts,
    I have a critical issue on the "Data Volume" after data collection program.
    If I give this big chunk of data as a input to PS, then integration program is not taking this High volume of data into PS.
    Hence now I have a critical task to reduce number of Data.
    In this front, first I need to delete some items which are not required for PS in the base table(In MSC_SYSTEM_ITEMS) after collection program, but I do not know the dependent entities which also has to be taken care in MSC side after collection, If I delete the itrems from MSC_SYSTEM_ITEMS..
    Hence I require help on this data filter issue.
    Appreciating anyone's help in advance...
    Thanks & Regards,
    Bharathram N

    Hello,
    Have you looked at the request Purge ODS Data of Collections? Using this you can delete all the collected data for a specific instance id.
    Once that is done you can run a complete refresh for all entities for all enabled organizations. This will ensure that old data pertaining to disabled orgs is removed.
    Additionally in 11.5.10 (collections rup 32 and later) there is a feature implemented which does not pull data from disabled organizations into the source snapshots. This in itself does not make a difference for the ODS data, but does give better performance in the refresh snapshots.
    One thing to take into account if your purge the ODS data that in the event when you still have ascp plans that are based on this data, then you may end up with no data being displayed in the workbench (because the lid tables have been purged). Here you would have to rerun the plans.
    best regards
    Geert

  • NQS ERROR:14025 NO FACT TABLE EXISTS -after migrating from 10g to 11g

    NQS ERROR:14025 NO FACT TABLE EXISTS AT THE REQUESTED LEVEL OF DETAIL in all the reports after migrating from 10g to 11g ...
    then we applied the patch (One-off Patch for Bug: 11850704) for the error <<NQS ERROR:14025 NO FACT TABLE EXISTS AT THE REQUESTED LEVEL OF DETAIL>>
    But after applying the above the above patch we are still getting the same error.
    but in the above patch instructions file - Post deployment instructions to create the Variable
    Post Install Instructions:
    - To revert to the 10g navigator behavior for handling conforming dimensions,
    you must set the following session variable via an init block in the RPD:
    NO_FORCE_TO_DETAIL_BIN=1
    The default value for the above variable is 0.
    - Restart all servers (Admin Server and all Managed Server(s))
    but we didn’t find the process to create the specified variable and Initialization block in the RPD
    Can you please suggest us how to go further.
    Our questions are:

    Hi
    Refer the below thread.
    obiee 11g non-conforming dimensions and nQSError 14025
    Might be help you/
    Thanks,
    satya

  • Failed to get Column's data type in Oracle 11g

    Hi,
    I made an ADO connection(Oracle provider) to Oracle 11g, and use ADO API: OpenSchema(adSchemaColumns) to fetch the columns' info. But I found I couldn't get the column's data type if it's type is timestamp or timestampwithtimezone in database. What I got is 'adIUnknown' whose number is 13.
    I test with another column whose data type is 'date', and everything is ok. I get the data type 'adDBTimeStamp'.
    This issue occurs on Oracle 10g, too.
    Can anyone offer some help? Thanks a lot!

    See
    http://www.oracle.com/technology/tech/windows/odpnet/index.html
    http://download.oracle.com/docs/cd/B28359_01/win.111/b28431/using.htm#CHDJJDAJ

  • Enforce date datatype in oracle 11g

    Can I restrict database so that application can not enter date data in certain format.
    E.g. If I want that date enter should be registered in [year to minute] 'MM-DD-YYYY' hh:mm' only format and not in [year to second format]'MM-DD-YYYY' hh:mm:ss' then how I can do it in Oracle 11g.
    Currently I am using oracle sql developer to create data model and then I want to generate DDL from that to generate database. Is there is any facility in Oracle SQL developer to enforce format specification.
    thanks!

    This is not really related to SQLDeveloper, so you may find better answers in another forum but I'll try to give you an idea anyway.
    Actually the DATE datatype has no format, you use a format when you convert it to a string or vice versa, but the DATE itself is just a DATE.
    You could probably create a trigger to truncate your data as you see fit, but IMHO your best option would be to remove the seconds from your output queries using something like
    TO_CHAR(YOUR_DATE_FIELD,'MM-DD-YYYY HH24:MI')you can also set this output format for SQLDeveloper in
    Tools -> Preferences -> Database -> NLSbut this will work only for SQLDeveloper, it's up to you to determine the best way of setting the output/input date format in your specific application.

Maybe you are looking for

  • Poor performance of maps

    Does anyone know of any configuration parameters that are really useful when attempting to tweak the performance of the maps in OBIEE 11.1.1.5? Although I'm the only user on a virtual box with 4GB of RAM and 2 CPUs, map rendering is painfully slow. (

  • Help needed setting up print server

    i got 2 printer: 1 usb inkjet epson 1290 1 hp5100 network i have 1 server: serving epson for our col proof using powerripx as driver and shared via os x print server i have 2 network interface card on the server. my problem is: the position of the se

  • Import from a camera that contains mts files

    what is the required file structure for FCE to import from a camera that contains mts files

  • Alert Notification Configuration

    Hello Experts, Please bear with me as my question might be very basic. We want to configure automatic email / sms notification on our landscape , only ABAP (ECC5.0 & ECC 6.0) , only Java (640,700) and ABAP+JAVA. We do have solution manager 7.0 instal

  • [Athlon64] dont know what i did wrong!!!!

     I JUST FINISHED PUTTING TOGETHER MY COMPUTER. K8T NEO2 SERIES BOARD...ATHLON 64 3200... I TURNED THE POWER ON AND I GET THIS REALLY LOUD PIRECING NOISE IT WONT STOP, I WONT KEEP THE COMPUTER ON LONG ENOUGH TO SEE IF I GET ANYTHING ON THE SCREEN, FRO