RE-Create DB ==== Datafile size

Hi all
Q1 :
I have oracle 9i DB runing on windows2000 server.
Lately we made alot of changes in the structure of tables (alter table)
90% of the tables have been altered, relations, view ..etc are altered also.
Is it better to re-create the DB ?
if yes, is it ENOUGH to export data then drop the contents of the DB then
import the dump file?
or I have to drop the whole DB ?
Q2:
for the huge tablespaces, what is the maximum size you recommend for each datafile?
thanx in advance

hi,
Q1 :I have oracle 9i DB runing on windows2000 server.
Lately we made alot of changes in the structure of tables (alter table)
90% of the tables have been altered, relations, view ..etc are altered also.
Is it better to re-create the DB ?
if yes, is it ENOUGH to export data then drop the contents of the DB then
import the dump file?
or I have to drop the whole DB ? <<
I didnt get this, if you have altered everything in your DB, then whats the point of exporting and importing the altered database. If i am wrong please elaborate your scenario.
for the huge tablespaces, what is the maximum size you recommend for each datafile?If this is a big tablespace then can have 128 TB of datafiles.
Regards
Jafar

Similar Messages

  • Can we decrease the datafile size in 8.1.7.4

    Hello All-
    I have created a sample db with table space with datafile size of 2 GB. I may be needing hundreds of mb only.It is eating up the space on unix box server.
    Is there any way I can decrease the size of the datafile attached to the tablespace in Oracle 8.1.7.4.
    Any help would be appreciated.
    Thanks
    Vidya R.

    Yes you surelly can
    SQL> ALTER DATABASE DATAFILE '/u02/oracle/rbdb1/stuff01.dbf'
    RESIZE 100M;
    Cheers !!
    Jagjit

  • Max datafiles size

    hi there,
    i want to know how much is the maximum size of a datafile?
    I'm using oracle 8.1.7.4 on aix 4.3.3
    db_block_size=8192
    i have a datafile of 2GB and i need to expand it.
    I was wondering if the maximum datafile size is 2 gb, so i do not need to increase this but create e new one
    thanks

    Without any reference at hand, the AIX (4.3.3, JFS) limits as I can recall
    File size: 2GB
    File size if large files enabled: near 64GB
    File system size: 64GB with std fragment size.
    Also observe the ulimit of the user who is using the file system.

  • Actual tables size is different than tablespace,datafile size

    Hi,
    I had created 10 tables with minimum extents of 256M in the same tablespace. The total size was 2560M. After 3 months run, all tables sizes were not increased over 256M. But the datafile size for that tablespace was increased sharply to 20G.
    I spent a lot of time on it and could not find anything wrong.
    Please help.
    Thanks,

    The Member Feedback forum is for suggestions and feedback for OTN Developer Services. This forum is not monitored by Oracle support or product teams and so Oracle product and technology related questions will not be answered. We recommend that you post this thread to the Oracle Technology Network (OTN) > Products > Database > Database - General forum.

  • OS page size+datafile size

    Does Windows OS page size limit in my case 4GB, has some effect on creating size of new tablespace which could be 7GB, or does better way is, to create TBS with 2 datafiles x 3,5 GB?
    Does creating multiple datafiles in TBS improve performance of db?
    Thanks!

    Does Windows OS page size limit in my case 4GB, has
    some effect on creating size of new tablespace which
    could be 7GB, or does better way is, to create TBS
    with 2 datafiles x 3,5 GB?r.- To avoid contention in datafiles and risks to lose information is better to create a tablespace with multiple datafiles instead of creating one with a size very large.
    Does creating multiple datafiles in TBS improve
    performance of db?r.- yes, you gain I/O distribution
    Thanks!Joel Pérez
    http://www.oracle.com/technology/experts

  • DATAFILE SIZE를 줄이는 방법 (resize)

    제품 : ORACLE SERVER
    작성날짜 : 2003-01-21
    DATAFILE SIZE를 줄이는 방법
    =====================
    PURPOSE
    Explanation
    기존의 datafile을 resize하여 늘리거나 줄일 수 있습니다.
    datafile size를 증가하는 경우는 disk에 free space만 있다면 다음과 같이 간단합니다.
    다음과 같이 늘리면 되나 줄일 경우는 계산을 하여 줄여야 합니다.
    <Bulletin No: 10165> 참고
    SQL>alter database datafile '/oracle/dbs/toolsORA.dbf' resize 100M;
    줄이실 경우는 주의가 필요합니다. 만일 지정한 size만큼 data가 있다면
    error가 발생되고 resize되지 않습니다.
    SQL> alter database datafile '/oracle/dbs/toolsORA.dbf' resize 100M;
    alter database datafile '/oracle/dbs/toolsORA.dbf' resize 100M'
    ERROR at line 1:
    ORA-03297: file contains used data beyond requested RESIZE value
    방법1
    1) 줄이고자하는 file id를 확인합니다.
    SVRMGR> select file_id, file_name from dba_data_files;
    2) 얼마를 사용했는지 확인합니다.
    SVRMGR> select block_id, blocks from dba_extents
    2> where file_id='FILE_ID' order by block_id;
    FILE_ID 대신에 줄이려는 file id를 기술합니다.
    3)현재 사용중이 db block size를 확인합니다.
    SVRMGR> show parameter db_block_size
    만일 2048일 경우 다음과 같이 계산합니다.
    2)에서 조회된 마지막의 block_id, blocks 값을 가지고 계산합니다.
    block_id * 2048 + blocks * 2048 의 결과에 한 block더한 값만큼만 줄이는
    것이 가능합니다.
    만일 마지막으로 조회된 값이 block_id가 578261, blocks가 515일 경우
    578261*2048 + 515*2048 =1185333248로 최소한 1.2GB이상은 써야 합니다.
    4) 실제 datafile을 줄입니다.
    svrmgr>alter database datafile '/oracle/dbs/toolsORA.dbf' resize
    1200M;
    방법 2
    1) 기존의 data export
    exp username/password file=filename owner=username log=username.log
    2) tablespace drop
    svrmgr>drop tablespace tbs including contents;
    rm datafile
    tbs대신에 작게 만드시려는 tablespace name을 기술합니다.
    datafile대신에 tablespace와 연계된 모든 datafile을 remove합니다.
    3) tablespace재생성
    svrmgr>create tablespace tbs
    datafile '...' size 100M;
    원하시는 size로 줄입니다.
    4) data import
    imp username/password file=filename fromuser=username touser=username
    commit=y log=imp.log
    Example
    Reference Documents
    -------------------

    제품 : ORACLE SERVER
    작성날짜 : 2003-01-21
    DATAFILE SIZE를 줄이는 방법
    =====================
    PURPOSE
    Explanation
    기존의 datafile을 resize하여 늘리거나 줄일 수 있습니다.
    datafile size를 증가하는 경우는 disk에 free space만 있다면 다음과 같이 간단합니다.
    다음과 같이 늘리면 되나 줄일 경우는 계산을 하여 줄여야 합니다.
    <Bulletin No: 10165> 참고
    SQL>alter database datafile '/oracle/dbs/toolsORA.dbf' resize 100M;
    줄이실 경우는 주의가 필요합니다. 만일 지정한 size만큼 data가 있다면
    error가 발생되고 resize되지 않습니다.
    SQL> alter database datafile '/oracle/dbs/toolsORA.dbf' resize 100M;
    alter database datafile '/oracle/dbs/toolsORA.dbf' resize 100M'
    ERROR at line 1:
    ORA-03297: file contains used data beyond requested RESIZE value
    방법1
    1) 줄이고자하는 file id를 확인합니다.
    SVRMGR> select file_id, file_name from dba_data_files;
    2) 얼마를 사용했는지 확인합니다.
    SVRMGR> select block_id, blocks from dba_extents
    2> where file_id='FILE_ID' order by block_id;
    FILE_ID 대신에 줄이려는 file id를 기술합니다.
    3)현재 사용중이 db block size를 확인합니다.
    SVRMGR> show parameter db_block_size
    만일 2048일 경우 다음과 같이 계산합니다.
    2)에서 조회된 마지막의 block_id, blocks 값을 가지고 계산합니다.
    block_id * 2048 + blocks * 2048 의 결과에 한 block더한 값만큼만 줄이는
    것이 가능합니다.
    만일 마지막으로 조회된 값이 block_id가 578261, blocks가 515일 경우
    578261*2048 + 515*2048 =1185333248로 최소한 1.2GB이상은 써야 합니다.
    4) 실제 datafile을 줄입니다.
    svrmgr>alter database datafile '/oracle/dbs/toolsORA.dbf' resize
    1200M;
    방법 2
    1) 기존의 data export
    exp username/password file=filename owner=username log=username.log
    2) tablespace drop
    svrmgr>drop tablespace tbs including contents;
    rm datafile
    tbs대신에 작게 만드시려는 tablespace name을 기술합니다.
    datafile대신에 tablespace와 연계된 모든 datafile을 remove합니다.
    3) tablespace재생성
    svrmgr>create tablespace tbs
    datafile '...' size 100M;
    원하시는 size로 줄입니다.
    4) data import
    imp username/password file=filename fromuser=username touser=username
    commit=y log=imp.log
    Example
    Reference Documents
    -------------------

  • Datafile size minor than 4 Gb: is this a bug?

    Hi all! I have a tablespace made up by 1 datafile (size = 4 Gb). Oracle 9.2.0.4.0 (on Win2k server) seems incapable of managing this; in fact, I receive ora-04031: unable to allocate 8192 bytes of shared memory but the memory of Oracle is configured correctly. Resizing this tablespace and adding a new datafile so that every datafile is 2 Gb large, I don't receive the error any longer. what do you think about this?
    Bye. Ste.

    Hello everybody;
    The Buffer Cache Advisory feature enables and disables statistics gathering for predicting behavior with different cache sizes. The information provided by these statistics can help you size the Database Buffer Cache optimally for a given workload. The Buffer Cache Advisory information is collected and displayed through the V$DB_CACHE_ADVICE view.
    The Buffer Cache Advisory is enabled via the DB_CACHE_ADVICE initialization parameter. It is a dynamic parameter, and can be altered using ALTER SYSTEM. Three values (OFF, ON, READY) are available.
    DB_CACHE_ADVICE Parameter Values
    OFF: Advisory is turned off and the memory for the advisory is not allocated.
    ON: Advisory is turned on and both cpu and memory overhead is incurred.
    Attempting to set the parameter to the ON state when it is in the OFF state may lead to the following error: ORA-4031 Inability to allocate from the Shared Pool when the parameter is switched to ON. If the parameter is in a READY state it can be set to ON without error because the memory is already allocated.
    READY: Advisory is turned off but the memory for the advisory remains allocated. Allocating the memory before the advisory is actually turned on will avoid the risk of ORA-4031. If the parameter is switched to this state from OFF, it is possible that an ORA-4031 will be raised.
    Make sure too that you dont need to use RMAN program to make backup...baceuse the large pool is used to this too.
    Regards to everybody
    Nando

  • ASM on SAN datafile size best practice for performance?

    Is their a 'Best Practice' for datafile size for performance?
    In our current production, we have 25GB datafiles for all of our tablespaces in ASM on 10GR1, but was wondering what the difference would be if I used say 50GB datafiles? Is 25GB a kind of mid point so the data can be striped across multiple datafiles for better performance?

    We will be using Redhat Linux AS 4 update u on 64-bit AMD Opterons. The complete database will be on ASM...not the binarys though. All of our datafiles we have currently in our production system are all 25GB files. We will be using RMAN-->Veritas Tape backup and RMAN-->disk backup. I just didn't know if anybody out there was using smallfile tablespaces using 50GB datafiles or not. I can see that one of our tablespaces will prob be close to 4TB.

  • Anyway to create custom page size for designjet 500? wasting way too much paper!

    just got a hp designjet 500 from jobsite. hooked up to mac. everything prints fine................
    EXCEPT
    ok i did a simple test 'strip' in adobe illustrator setting the width of the document to 36" which is the size of the paper roll i'm using. i had placed a couple of strips of the same objects with different color fills close to the bottom of the 'artboard'. when going to select print i realized that the printer only recognizes standard page sizes and does not allow me to change to a custom size to say like 36"w by 4" h. so the print came out in the center of a 48" long size piece of paper which obviously wastes soooo much paper.
    so i can't create a custom size print page is there a way to have it print close to the bottom margin, turn off the cutting feature, print it, cut manually then move the paper back via the machine or would i have to do it manually and realign the paper and setup after every print?
    thanks in advance!

    This forum is focused on consumer level products.  For the Designjet you may have better results posting in the HP Designjet forum here.
    Be sure to mention your operating system when you post there. 
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • Maximum datafile size for sqlloader

    Hi,
    I would like to load data from 4GB xls file into oracle database by using sql*loader. Could you please tell me the maximum datafile size that can support sql*loader?
    Thanks
    Venkat
    Edited by: user12052260 on Jul 2, 2011 6:11 PM

    I would like to load data from 4GB xls file into oracle database by using sql*loader. Could you please tell me the maximum datafile size that can support sql*loader?you can post this question in SQL loader forum questions. CLose the thread here.
    Export/Import/SQL Loader & External Tables

  • How can I create a variable size array?

    How can I create a variable size array?

    ok then how can i create a new vector object?If you don't know that, you need to go back to your text book and study some more. Or read the tutorial on the basics of Java: http://java.sun.com/docs/books/tutorial/java/index.html
    After reading that you can move on to: http://java.sun.com/docs/books/tutorial/collections/index.html
    Anyway, the answer to your question is, of course:
    Vector v = new Vector();(But you should probably use ArrayList instead of Vector.)

  • Create coustom page size for Smartforms

    Dear All
    How to create coustom page size for smartforms.
    rgds
    pramod

    HI
    To define a new page format, choose
    Administration -> CCMS -> Print->® Spool Administration.
    Choose Full Administration and then Page Formats on the Device Types tab page. On the next screen choose Change and  Create or  Create with Reference. Fill out the fields on the next screen.
    Activating a New Page Format
    Before using a new page format, you must specify it as a page format in a SAPscript form. Be careful when replacing a page format in a standard SAPscript form as the form may not necessarily fit on the new page format.
    You also have to define a format and device type format for the new page format before you can use it.
    Thanks and Regards
    Santosh   Kate

  • What would be the maximum datafile size that can support sql*loader

    Hi,
    I would like to load datafile from xls file which nearly 5 gb into oracle table by using sql*loader. Could you please tell me how much is max datafile size we can load by using sql*loader?
    Thanks
    VAMSHI

    Hello,
    The Size limit is mainly given by the OS. So you should care about what the OS could support as SQL*Loader files are unlimited on *64 Bit* but limited to *2GB* in *32 Bit* OS:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10839/appg_db_lmts.htm#UNXAR382
    Else, you should be able to load these data into the Table. So you must check that you have enough place inside the Tablespace and/or the Disk (if the Tablespace has to be extended).
    Please find enclosed a link about SQL*Loader and scroll down to Limits / Defaults:
    http://www.ordba.net/Tutorials/OracleUtilities~SQLLoader.htm
    Hope this help.
    Best regards,
    Jean-Valentin

  • Tcode for creating new page size in smart forms

    dear friends ,
    can any one tell me the tcode for creating new page size in smart forms.
    thanks&regards
    veerachamy

    page formats?
    check in SPAD.
    Regards
    Prabh

  • How to shrink the system tablespace datafile Size

    iam using oracle 9i R2 and i want to reduce my datafile size but it's show's that error when i try to resize it. ORA-03297

    Hi,
    We can directly resize datafilesTEST.SQL>SELECT FILE_NAME, BYTES FROM DBA_DATA_FILES WHERE TABLESPACE_NAME='SYSTEM';
    FILE_NAME
         BYTES
    /.../dbsGNX.dbf
    419430400
    TEST.SQL>ALTER DATABASE DATAFILE '/.../dbsGNX.dbf' RESIZE 390M;
    Database altered.
    TEST.SQL>SELECT FILE_NAME, BYTES FROM DBA_DATA_FILES WHERE TABLESPACE_NAME='SYSTEM';
    FILE_NAME
         BYTES
    /.../dbsGNX.dbf
    408944640But the minimum file size is the size of the extend the furthest in the datafile:TEST.SQL>SELECT FILE_ID,FILE_NAME FROM DBA_DATA_FILES WHERE TABLESPACE_NAME='SYSTEM';
       FILE_ID
    FILE_NAME
             1
    /.../dbsGNX.dbf
    TEST.SQL>SELECT MAX(BLOCK_ID) MBID FROM DBA_EXTENTS WHERE FILE_ID=1;
          MBID
         25129
    TEST.SQL>SELECT SEGMENT_NAME,OWNER,SEGMENT_TYPE FROM DBA_EXTENTS WHERE FILE_ID=1 AND BLOCK_ID=25129;
    SEGMENT_NAME                                                                      OWNER                          SEGMENT_TYPE
    I_OBJAUTH2                                                                        SYS                            INDEX
    TEST.SQL>SHOW PARAMETER BLOCK_SIZE
    NAME                                 TYPE                             VALUE
    db_block_size                        integer                          8192
    TEST.SQL>SELECT 8192*25129 FROM DUAL;
    8192*25129
    205856768about 200M.
    Regards,
    Yoann.

Maybe you are looking for

  • Issue with saving bitrates in presets

    Hi All, I'm having difficulty saving bitrates for Quicktime and MPEG4 presets. When I click on export and check the "Set Bitrate" option and change the number from the default value (1000) if save the preset or hit ok to go to media encoder the rende

  • Problems with SNMP examples in WL documentation

    I am using WL 5.1 on NT. Tried to follow SNMP use examples shown in WL documentaion. Command line examples refuse to work- I either get an error that ...Remote Host Unknown... or ...Errored Object ID... 1. after many iterrations launched SNMP agent w

  • FA-101 difficulties

    My new Edirol FA-101 is exhibiting some strange behaviour. In device listings (eg sound prefs) it shows as 'EDIROL FA-101 (0755)', and in some applications it doesn't get listed at all. in AM setup in has several channels recognised but inactive/grey

  • Reports 11g: REP-50125: rwbuilder.conf:java.lang.NullPointerException

    Hello all, Please excuse my being too detailed. After installing Forms 11g, Reports 11g in a new Windows 7 Professional 64bit machine, I was able to run both the Forms Builder and Reports Builder. I then moved my forms and reports into a different fo

  • Webapps.  How can I create a link to a page instead of showing the details-view

    I want my client to define what page a webapp shall point to in list-view, instead of showing the  details view, but I cant figure out how.  I have tried this, but it seams that tags don't work inside links: <a href="{tag_my_custom_link}">{tag_name}<