Best Way to Shrink an Oracle DB

I have a 4 TB DB and I have archived or deleted about 1.5TB of data. I would like to shrink my overall size of DB from 4 to 2.5TB. I need to reclaim the OS space back as well. What is the best way to achieve this in Oracle 10g

Hello Chris
I would go for Reorganization followed by Shrink data files.
You can check the link below http://www.dbapool.com/articles/0805200802.html
Re: Question about reorganization
Regards
Anindya
Edited by: Anindya Bose on Aug 28, 2010 11:12 AM

Similar Messages

  • Need Best way to start learning Oracle 11g  DBA

    Hi.This is Tejaswi.
    I want to learn Oracle 11g DBA.I've downloaded all software's and Documentation for Orcl 11g R2. Now. i want to start Learning DBA. Can any one suggest me the best way to Start learning DBA?
    Please suggest me the good books For Oracle Architecture and SQL.......

    Hello Tejaswi,
    The advice you got about reading the Oracle Concepts and 2 Day DBA documentation is very good advice.
    I found that knowing some SQL*Plus and SQL Developer was also very helpful as, they both provide a way to interface with the database and try the things you read about. For SQL Plus, I used the book:
    Oracle SQL*Plus: The Definitive Guide, 2nd Edition
    By Jonathan Gennick
    Publisher : O'Reilly
    ISBN : 0-596-00746-9 I openly recommend it. It is easy to read, the book is very well thought out, it covers what you really need to know (and more too). The author explains the subjects very well. I would definitely learn some SQL Plus and SQL developer before getting into the 2 Day DBA document (make those 2 days about 7 days each if not more).
    To learn SQL, I "sort of" used (I say "sort of" because I only read some parts of it available online and at the local bookstore):
    Oracle SQL by Example
    By Alice Rischert
    Publisher: Prentice Hallit probably has more SQL than you'd need as a DBA but, it is an excellent book you may want to consider.
    If you are starting from scratch, as I did, you'll find that you need to learn multiple things at the same time. I believe SQL Plus is the best place to start, along with possibly the Concepts document. That will give you a base to build upon.
    HTH,
    John.

  • Best way to change from Oracle 11gR2 Standard Edition to Standard one..?

    Hi,
    I have installed Oracle 11gR2 Standard edition+ installed database and additional software (which looks into the Oracle 11g database) in around 20 PCs (company)
    But now the management says that they got license only for 11g Standard one edition (Standard one is significantly cheaper than standard edition)
    So I have to change the Oracle edition from Standard to Standard one now..We only need standard one edition features in the PCs.
    Can somebody please advise what would be the best way to do this? Do I have to uninstall all database and reinstall standard one edition again?
    I will be grateful if somebody says some kind of upgrade is possible(in this case degrade!)..
    Pls ..waiting for a reply..its very urgent!
    Thanks&regards..

    Yes I agree there was standard and standard one options and I selected standard.
    But how to confirm?
    SQL> select banner from v$version;
    BANNER
    Oracle Database 11g Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE 11.2.0.1.0 Production
    TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    It doesnt say anything..where else will I check?
    Also as said in the previous post,
    1) SE max. 4 sockets , SE1 2 sockets <======== hardware restriction
    2) No RAC on SE1
    3) No Automatic Workload Management (a RAC feature) on SE1
    These apply to us.
    So can we get a SE1 license, since we are not on RAC and satisfy all criteria for standard one.
    Thanks&Regards

  • What is best way to report problems, get questions answered?

    If we have questions, or think we've found a problem, what is the best way to communicate with Oracle?
    - This forum?
    - TARs using our beta CSI number?
    - emails to [email protected]?
    - smoke signals?
    Regards,
    Steve Locke

    Hi Steve,
    For questions of a general nature (how do I...) this forum is best.
    If you have encountered a specific problem with a reproducible testcase (functionality not working, problems installing) then please work with support to log a TAR. This way a bug can be logged and tracked by the dev team.
    -Alvin

  • Best way to import data to multiple tables in oracle d.b from sql server

    HI All am newbie to Oracle,
    What is the Best way to import data to multiple tables in Oracle Data base from sql server?
    1)linked server?
    2)ssis ?
    If possible share me the query to done this task using Linked server?
    Regards,
    KoteRavindra.

    check:
    http://www.mssqltips.com/sqlservertip/2011/export-sql-server-data-to-oracle-using-ssis/
          koteravindra     
    Handle:      koteravindra 
    Status Level:      Newbie
    Registered:      Jan 9, 2013
    Total Posts:      4
    Total Questions:      3 (3 unresolved)
    why so many unresolved questions? Remember to close your threads marking them as answered.

  • What is the best way of insertion using structured or binary type in oracle

    what is the best way of insertion using structured or binary type in oracle xml db 11g database

    SQL*Loader.

  • Please suggest me the best way to start learning about Oracle Purchasing.

    Hi,
    I have started reading about Oracle Procurement. I have an over all idea of how ERP functions. Anyhow I am like a fresher to ORACLE APPS. Can you pleasesuggest me what is the best way to start learning about Oracle Purchasing.
    Is it is throuhg user guides or some thing else..... can you please specify the references also.......
    Thank you so much.

    If you have a sponsorship, I would recommend taking classes with Oracle University. The other resources are documentation, functional and technical depending on what your interests are.
    If you can load Vision database or access vision database (I think solutionbeacon offers a free account to login and play around), that will be another resource as well.
    As you learn, join as much user groups like this one, and review all questions and answers in the discussions to understand and learn more.
    Hope this helps.

  • Best way to Clone 11i on Linux w/o any Oracle SW on target.

    Hi,
    I have an instance of BS 11.5.10.2 on Linux 4.6 (Single Node) stage. I have another Linux box stage which also has HEAL 4.6 which don't have any kind of oracle software. But both system has same oracle/capping users, file systems, host configuration and OS RPM.
    I want to setup stage box as an test instance for stage. In order to clone the 11.5.10.2 from stage to stage, do I need to install any Oracle software to perform cloning. What would be the best way to clone 11.5.10.2 ; in this scenario?
    Thanks
    Samar

    You do not need to install any Oracle software before cloning, but you need to install all pre-req. software and packages at the OS level before doing so. Rapid Clone will NOT take care of that, the OS at the source and the target nodes should be identical in terms of packages and pre-req. software. Moreover, make sure you have all software components installed as in Note: 230672.1 (Under "Section 1: Prerequisites").
    For the list of pre-req. OS packages/patches and kernel settings, please refer to:
    Note: 294932.1 - Recommendations to Install Oracle Applications 11i
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=294932.1
    Note: 169706.1 - Oracle® Database on AIX®,HP-UX®,Linux®,Mac OS® X,Solaris®,Tru64 Unix® Operating Systems Installation and Configuration Requirements Quick Reference (8.0.5 to 11.1)
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=169706.1

  • Can you suggest a best way to store and read arabic from oracle database?

    Hi ,
    can you suggest a best way to store and read arabic from oracle database?
    My oracle database is Oracle Database 10g Release 10.1.0.5.0 - 64bit Production on unix HP-UX ia64.
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CHARACTERSET WE8ISO8859P1
    I have presently stored the data in nvarchar2 field. But i am not able to display it correctly.

    Using the national characterset should work but there are other factors that you have to consider when working with NCHAR/NVARCHAR2/NCLOB.
    If possible, changing the characterset is usually the best solution if it's a possiblity for you.
    For more info:
    Dear Gurus: Can u pls explain the difference between VARCHAR2 & NVARCHAR2??

  • Best way to call oracle db from BPEL 2.0

    Hi
    Anybody knows which is the best way to call select or call store procedures from BPEL 2.0 ? Do I need to use JCD (java collaboration definition in repository-based projects -caps 5.x) and oracle eWAY to interact with oracle database?
    Regards.

    You can also create a new WSDL with a concrete binding to DATABASE, as explained on http://wiki.open-esb.java.net/Wiki.jsp?page=CreatingAWSDLDocumentForTypeDATABASE
    BRs
    Kris

  • What is Best Way to Get Table Name in Oracle Applications : 12.1.1 (web)

    Hello Friends..
    I need your Help My Friends...
    we are working currently on Oracle Applications : 12.1.1
    i would like to know the best way to get Table name from Web Based Form..
    Regards
    Yas.

    Hi Yas;
    Please follow below 2 thread i belive you will find some hint in those thread
    table name for a jdeveloper page
    Re: EBS, 11.5.10, table name
    Hope it helps
    Regard
    Helios

  • Oracle 10.1, Whats the best way to load XML in database?

    Hi All,
    I am a typical Oracle developer. I know some Java and some XML technologies, but not an expert.
    I will be receiving XML files from some system, which will be,
    - of reasonable size like 2 to 15 MBs
    - of reasonable complexity, like the root element have children, grand-children and great-grand-children, with attributes and all
    - Every day it needs to be loaded to Oracle database, in relational format
    - we need not update the XML data, only put the XML data in relational table
    My questions are,
    - With Oracle 10.1, XML DB, what is the best way to load this XML file to relational Oracle tables ?
    - What can be the steps in this process ?
    - In the documentation, I was lost and was not able to decide anything concrete
    - If I write a pure Java program with SAX API and load the data to Oracle database in same program, is it a good idea?
    - Is there any pure Oracle based way to do this?
    - If I want to avoid using DOM parser, as it will need more JAVA_POOL_SIZE, what can be the way ?
    Please help.
    Thanks

    Many customer solve this problem by registering an XML Schema that corresponds to their XML and then creating relational views over the XML that allow them to access the content in a relational manner. They then use insert as select operations on the relational views to transfer data from the XML into relational tables where necessary. There are a large number of threads in this forum with detailed examples of how this can be done. Most of the customers who have adopted this approach have discovered that this is the least complex approach in terms of code that to be developed / maintained and offeres acceptable performance.

  • Hi, we need to create the test environment from our production for oracle AP Imaging. we have soa,ipm,ucm and capture managed servers in our weblogic. can anyone tell me what is the best way to clone the environment, can I just tar the weblogic file syste

    Hi, we need to create the test environment from our production for oracle AP Imaging. we have soa,ipm,ucm and capture managed servers in our weblogic..
    Can anyone tell me what is the best way to cloning the application from different environment, the test and production are in different physical server.
    Can I just tar the weblogic file system and untar it to the new server and make the necessary changes?
    Can anyone share their experiences and how to with me?
    Thank in advance.
    Katherine

    Hi Katherine,
    yes and no . You need as well weblogic + soa files as the database schemas (soa_infra, mds...).
    Please refer to the AMIS Blog: https://technology.amis.nl/2011/08/11/clone-your-oracle-fmw-soa-suite-11g/
    HTH
    Borys

  • Best way of partitioning the huge size table in oracle 11gr2

    hi,
    OS: linux
    DB: oracle 11gR2
    table size is about 2T and single table space with multiple dbf files in ASM,
    table partition with dbms.redefinition is running past 2 days (range partition).. its running but not that fast..
    note: exchange partition is too slow.. hence not used..
    what is the best way of doing the huge size table partition. please suggest, thanks.

    >
    what is the best way of doing the huge size table partition
    >
    A few questions
    1. Is that an OLTP or OLAP table?
    2. Is all of the data still needed online or is some of it archivable?
    3. What type of partitiioning are you doing? RANGE? LIST? COMPOSITE?
    4. Why do you you say 'exchange partition is too slow' - did you do a test?
    For example if data will be partitioned by create date then one stragety is to initially put all existing data into the root partition of a range partitioned table. Then you can start using new partitions for new incoming data and take your time to partition the current data.

  • What is the best way to verify default heap size in Java

    Hi All,
    What is the best way to verify default heap size in Java ? does it vary over JVM to JVM . I was reading this article http://javarevisited.blogspot.sg/2011/05/java-heap-space-memory-size-jvm.html , and it says default size is 128 MB but When I run following code :
    public static void main(String args[]) {
    int MB = 1024*1024;
    System.out.println(Runtime.getRuntime().totalMemory()/MB);
    It print "870" i.e. 870 MB.
    I am bit confused, what is the best way to verify default heap size in any JVM ?
    Edited by: 938864 on Jun 5, 2012 11:16 PM

    938864 wrote:
    Hi Kayaman,
    Sorry but I don't agree with you on verification part, Why not I can verify it ? to me default means value when I don't specify -Xms and -Xmx and by the way I was testing that program on 32 bit JRE 1.6 on Windows. I am also curious significant difference between 128MB and 870MB I saw, do you see anything obviously wrong ?That spec is outdated. Since Java 6 update 18 (Sun/Oracle implementation) the default maximum heap space is calculated based on total memory availability, but never more than 1GB on 32 bits JVMs / client VMs. On a 64 bits server VM the default can go as high as 32gb.
    The best way to verify ANYTHING is to address multiple sources of information and especially those produced by the source, not some page you find on the big bad internet. Even wikipedia is a whole lot better than any random internet site IMO. That's common sense, I can't believe you put much thought into it that you have to ask in a forum.

Maybe you are looking for