Informations about  'alter tablespace ... coalesce'

Hi,
I'm quite new relatively to the DBA functions. I have an Oracle 8i database on a RedHat Linux server.
I've examined my tablespaces and I found that many of my tablespaces have the pctincrease=0. In this case the process SMON don't join the adjacent free extents so I have a lot of free extents but only few of them are coalesced.
I thought to coalesce them with the command 'alter tablespace nametablespace coalesce', but I don't know very much this command. I'd like to know more informations about it, above all if I can launch it when my users are working on the database or if it's better to stop the listener and to do a backup before to launch it (among the tablespace that I need to coalesce I have also the Temp tablespace).
In other words: is the alter tablespace coalesce an harmless command or I need to take some precutions ? And Where I can find more informations about this command ?
Thanks
Marco

You can find more information about the command by reading the manual.
Coalescing tablespaces is a relatively harmless command. You can run it while users are on the system. They might experience a momentary slowdown, but probably not. All the command does is delete and update entries in an Oracle internal table (FET$ if anyone cares). Coalesce will do nothing if there are no adjacent blocks of free space to coalesce.
You do not want to coalesce the freespace in your temp tablespace. Oracle manages this internally, and it is more efficient to have a lot of fragments for temp. It saves a lot of recursive sql when a new extent is needed for a sort.
In the other tablespaces, if the blocks of free space are relatively large, then coalescing will not really gain anything. If your fragments are small, and your segments are frequently allocating new extents (which in itself is a problem), then you may gain a little performance by manually coalescing the tablespace. However, Oracle will coalesce free space if required to get enough space to allocate a new extent.
If you want to see if coalescing will do anything, you can use:
SELECT tablespace_name,file_id,block_id,block_id + blocks next_free
FROM dba_free_space
ORDER BY 1,2,3Then check if next_free in the previous row is the same as block_id in the current row.
TTFN
John

Similar Messages

  • Question about ALTER TABLESPACE add/drop datafile

    Good afternoon,
    As an exercise, I created a tablespace STORETABS and added a datafile to it using the command:
    SQL> alter tablespace storetabs add datafile 'e:/storetabs3.dbf' size 50M;This step succeeded. A new file was created in the root of e: as expected.
    Following that command, I issued:
    SQL> alter tablespace storetabs drop datafile 'e:/storetabs3.dbf';
    Tablespace altered.The command succeeded. However, the file *'e:/storetabs3.dbf'* was not removed. After re-reading the documentation found at http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_3002.htm, I get the impression that removing the O/S file itself is something that always needs to be done manually.
    The question: Am I correct that there is no option to cause the "alter tablespace <tablespace> drop datafile <datafilename>" to delete the O/S file ? In other words, must the O/S file always be manually deleted as a separate step ?
    Thank you for your help,
    John.

    I believe in windows directory paths used backslash and not forward slash.
    You can argue why oracle does not give error, either while creating or while dropping ;)
    SQL> select * from v$version ;
    BANNER
    Oracle Database 11g Enterprise Edition 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 Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    SQL> select tablespace_name, file_name from dba_data_files ;
    TABLESPACE_NAME
    FILE_NAME
    USERS
    /u01/app/oracle/oradata/orcl/users01.dbf
    UNDOTBS1
    /u01/app/oracle/oradata/orcl/undotbs01.dbf
    SYSAUX
    /u01/app/oracle/oradata/orcl/sysaux01.dbf
    SYSTEM
    /u01/app/oracle/oradata/orcl/system01.dbf
    EXAMPLE
    /u01/app/oracle/oradata/orcl/example01.dbf
    SCOTT_TBS
    /home/oracle/scott_f1.dat
    6 rows selected.
    SQL> !ls -l scott_f1.dat   
    -rw-r----- 1 oracle oinstall 276832256 Sep 11 21:15 scott_f1.dat
    SQL> alter tablespace scott_tbs add datafile '/home/oracle/scott_f2.dat' size 10M ;
    Tablespace altered.
    SQL> !ls -l scott_*.dat
    -rw-r----- 1 oracle oinstall 276832256 Sep 11 21:15 scott_f1.dat
    -rw-r----- 1 oracle oinstall  10493952 Sep 11 21:18 scott_f2.dat
    SQL> alter tablespace scott_tbs drop datafile '/home/oracle/scott_f2.dat' ;
    Tablespace altered.
    SQL> !ls -l scott*.dat
    -rw-r----- 1 oracle oinstall 276832256 Sep 11 21:15 scott_f1.dat

  • ALTER TABLESPACE ... COALESCE;

    Could anybody tell me some situations where ALTER TABLESPACE ... COALESCE can help us (is necessary) ?
    The some question for ALTER TABLE ... DEALLOCATE UNUSED;
    Thanks, Paul

    ALTER TABLESPACE ... COALESCE can help us (is necessary) ?
    some question for ALTER TABLE ... DEALLOCATE UNUSEDIt would be helpful when your current storage requirement exceeds the maximum available continguous free extents chunk in the segment and the data file needs to be auto extended in order to incorporate your data (which otherwise would not have been required if above command made that required big chunk available).
    Later applies to the blocks that are available for the table above/beyond HWM.
    I hope this answers your questions.

  • Looking for information about AS3 sound classes in "audio" wrong places?

    I'm looking for in depth information about ActionScript 3.0 sound classes. No matter where I search I continually encounter the same sort of kindergarten level descriptions, which never teach more than what we can readily glean from Adobe's documentation. Someone must know where there a discussion that really gets to the heart of the matter.
    I've read Adobe's LiveDocs on the Sound, SoundChannel, SoundMixer, SoundTransform classes. Indeed, they provided me enough guidance to create my own streaming MP3 player, with volume, pan, my own custom mono mix, http request, a preloading animation, and peak meters ...
    Here's an example (in the last statement of the following code) where I understand the end effect, but I fail to comprehend what happens at the compiler level:
    var currentSoundSource:Sound = new Sound();
    currentSoundSource.load(new URLRequest("http://www.mySite.com/myRecording.mp3"));
    var audioChannel_01:SoundChannel = new SoundChannel();
    audioChannel_01 = currentSoundSource.play();
    Unfortunately the class definitions in LiveDocs are quite terse, and they're seemingly incomplete with respect to:
         •     advice on best practices
         •     a thorough coverage of class to class interactivity
         •     a description of exactly how audio streams/plays into channels
    ... and in certain cases it appears that Adobe's descriptions are not fully accurate.*
    Regarding best practices, at first blush I'm sure everyone ponders over the fact that SoundChannel and SoundMixer have a stop method while the Sound class does not.
    One assumes that this surprising design must bear some advantages. If so,  what are they? Where are the analog sound mixer analogies? What would be the disadvantage of a sound class with a stop method ...  particularly when they have their own play method?
    Where are the discussion of these concepts? (Even if Adobe hired the wrong guy to write its sound classes, there should be some follow through that thoroughly explains the existing situation.)
    Phrankie
    * Here's an instance where the docs appear to be partially in error. (Is "and play" mistakenly included in the following?)
    "The Sound class lets you lets you create a new Sound object [and] load and play an external MP3 file into that object."
    ... uh, mmmmmm ... we play an MP3 into a sound class object?
    Wouldn't it be more accurate to say the following:
    A soundChannel can receive the audio data from a sound class object. We can play a sound object into an SoundChannel and manipulate it by altering the SoundChannel's soundTransform property, and we can stop it with the SoundChannel's stop method. 

    check everything you can find written by tinic uro.  this will get you started:  http://www.kaourantin.net/

  • Alter tablespace sa online;

    Dear Everyone,
    SQL> alter tablespace sa online;
    alter tablespace sa online
    ERROR at line 1:
    ORA-01113: file 6 needs media recovery
    ORA-01110: data file 6: '/u01/app/oracle/product/11.2.0/db_1/dbs/tbs_data.dat'
    Can anyone tell me what is the problem here
    SQL> recover datafile  '/u01/app/oracle/product/11.2.0/db_1/dbs/tbs_data.dat';
    ORA-00279: change 1859444 generated at 06/17/2013 02:57:17 needed for thread 1
    ORA-00289: suggestion :
    /flash_recovery/flash_recovery_area/SA/archivelog/2013_07_01/o1_mf_1_35_%u_.arc
    ORA-00280: change 1859444 for thread 1 is in sequence #35
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    AUTO
    ORA-00308: cannot open archived log
    '/flash_recovery/flash_recovery_area/SA/archivelog/2013_07_01/o1_mf_1_35_%u_.arc
    ORA-27037: unable to obtain file status
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 3
    ORA-00308: cannot open archived log
    '/flash_recovery/flash_recovery_area/SA/archivelog/2013_07_01/o1_mf_1_35_%u_.arc'
    ORA-27037: unable to obtain file status
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 3
    Can Anyone please help me on this.
    Thanks
    Gajanan

    Gajananh999 wrote:
    Dear Everyone,
    SQL> alter tablespace sa online;
    alter tablespace sa online
    ERROR at line 1:
    ORA-01113: file 6 needs media recovery
    ORA-01110: data file 6: '/u01/app/oracle/product/11.2.0/db_1/dbs/tbs_data.dat'
    Can anyone tell me what is the problem here
    SQL> recover datafile  '/u01/app/oracle/product/11.2.0/db_1/dbs/tbs_data.dat';
    ORA-00279: change 1859444 generated at 06/17/2013 02:57:17 needed for thread 1
    ORA-00289: suggestion :
    /flash_recovery/flash_recovery_area/SA/archivelog/2013_07_01/o1_mf_1_35_%u_.arc
    ORA-00280: change 1859444 for thread 1 is in sequence #35
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    AUTO
    ORA-00308: cannot open archived log
    '/flash_recovery/flash_recovery_area/SA/archivelog/2013_07_01/o1_mf_1_35_%u_.arc
    ORA-27037: unable to obtain file status
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 3
    ORA-00308: cannot open archived log
    '/flash_recovery/flash_recovery_area/SA/archivelog/2013_07_01/o1_mf_1_35_%u_.arc'
    ORA-27037: unable to obtain file status
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 3
    Can Anyone please help me on this.
    Thanks
    Gajanan
    Why was tablespace SA offline in the first place?
    What did you do with /flash_recovery/flash_recovery_area/SA/archivelog/2013_07_01/o1_mf_1_35_%u_.arc that the recovery could not find it?
    What version (to 4 decimals) and edition (Enterprise, Standard, Standard One) is your database?

  • Alter tablespace RW on standby database

    I work with Oracle8i for Solaris.
    I've created a stanby database which is opened in read only.
    Now, I need to use a temporary tablespace, so
    I've tried :
    "alter tablespace temp nologging read write;"
    But, oracle answer me an ORA-16000 error (database open for read-only access).
    So :
    1) Is it possible to use a temporary tablespace in standby mode ?
    2) How.
    Thanks,
    Philippe
    null

    Hello,
    Since the table sizes is about 100GB , it takes time to move and rebuild the indexes and the end user application doesnot work if any of the index is unusable or not present.I think it will generate a lot of Archived logs, so it will be very heavy to manage and apply to your Standby.
    If it's possible, it will be faster to put your Primary database in NOARCHIVELOG mode then, you make the Move and Rebuild.
    Afterwards, you put again the Primary in ARCHIVELOG mode and take a good BACKUP of it.
    Later, when nobody work on Standby, you recreate it.
    Hope this help.
    Best regards,
    Jean-Valentin

  • Alter tablespace

    hi all, what do the following means ?
    1) ALTER TABLESPACE MYTABSPACE LOGGING
    2) ALTER TABLESPACE MYTABSPACE NOLOGGING
    regards,
    Kong

    From the documentation:
    logging_clause
    You should read that page. An excerpt:
    Only the following operations support the NOLOGGING mode:
    DML:
    Direct-path INSERT (serial or parallel)
    Direct Loader (SQL*Loader)
    DDL:
    CREATE TABLE ... AS SELECT
    CREATE TABLE ... LOB_storage_clause ... LOB_parameters ... NOCACHE | CACHE READS
    ALTER TABLE ... LOB_storage_clause ... LOB_parameters ... NOCACHE | CACHE READS (for specify logging of newly created LOB columns)
    ALTER TABLE ... modify_LOB_storage_clause ... modify_LOB_parameters ... NOCACHE | CACHE READS (to change logging of existing LOB columns)
    ALTER TABLE ... MOVE
    ALTER TABLE ... [all partition operations that involve data movement]
    ALTER TABLE ... ADD PARTITION (hash partition only)
    ALTER TABLE ... MERGE PARTITIONS
    ALTER TABLE ... SPLIT PARTITION
    ALTER TABLE ... MOVE PARTITION
    ALTER TABLE ... MODIFY PARTITION ... ADD SUBPARTITION
    ALTER TABLE ... MODIFY PARTITION ... COALESCE SUBPARTITION
    ALTER TABLE ... MODIFY PARTITION ... REBUILD UNUSABLE INDEXES
    CREATE INDEX
    ALTER INDEX ... REBUILD
    ALTER INDEX ... REBUILD PARTITION
    ALTER INDEX ... SPLIT PARTITION

  • Information about the default setup for the demo user

    Hi,
    Can anyone guide me the properties which we have to set for the below
    # Information about the default setup for the demo user.
    db.adminUser=system
    db.demoUser=FOD
    db.demoUser.password=fusion
    db.demoUser.tablespace=USERS
    db.demoUser.tempTablespace=TEMP
    And what exactly they represent
    Regards,
    Krishna

    Krishna,
    It's pretty obvious...
    db.adminUser = the username of a dba user in your database
    db.demoUser = the username of the demo user that will get created
    db.demoUser.password = the password that will be used for the demo user
    db.demoUser.tablespace = the default tablespace for the demo user
    db.demoUser.tempTablespace = the default temporary tablespace for the demo user
    You don't have to change any of them.
    John

  • Enqueue while trying to alter tablespace

    I try to run the "alter tablespace .... read only " command ,
    through sqlplus (as sysdba) ,
    but never get back to prompt .
    instead when I run "select * From v$session_event where sid=XX"
    I get an event named enqueue with large number in "total_waits" column and the same number in "total_timeout" column .
    why do I have this lock ?
    who else can lock the same object ?
    I administer DWH project , with total size of 3.5 T , but the specified tablespace is only 325MB , no one runs a query againts this tablespace right now , and no one writes into tables that are built on that tablespace .
    how can I monitor it and find out what causes the lock ?
    I use oracle 9205 on UNIX AIX 5.3 64 bit .
    Thanks .

    please someone correct me if I'm wrong ,
    but I've just entered the metalink site , and saw that it is a reported bug affecting versions 9.2.0.5 and 10.1.0.3 .
    the bug is fixed in versions 9.2.0.7 and 10.2.0.1 , am I right ?
    they are talking about SMON that holds TT enqueue and preventing alter temporary tablespace , mine , is not temporary tablespace , it is permanent tablespace ,
    but I bumped into the same lock .

  • I'm running OS X 10.4.11 on my PowerMac, and cannot retrieve email.  Does this have to do with iCloud?  I also cannot upgrade my operating system as my computer won't accept it.  Any information about this for me? Thank you!

    I'm running OS X 10.4.11 on my PowerMac, and cannot retrieve email.  Does this have to do with iCloud?  I also cannot upgrade my operating system as my computer won't accept it.  Any information about this for me? Thank you!

    Hi Steve,
    If this is dot mac or Mobile me you can still use IMAP eMail in the iCloud.
    Do not delete the old account yet. sign up for an iCloud account if you haven't.
    MAKE A NEW ACCOUNT - DO NOT TRY TO ALTER YOUR EXISTING ACCOUNT.
    I understand .mac mail will still come through. Do not delete the old account yet.
    You cannot use .mac or MobileMe as type of Account, you have to choose IMAP when setting up, otherwise Mail is hard coded to change imap.mail.me.com to mail.me.com & smtp.mail.me.com to smtp.me.com, no matter what you try to enter.
    iCloud Mail setup, do not choose .mac or MobileMe as type, but choose IMAP...
    On second step where it asks "Description", it has to be a unique name, but you can still use your email address.
    IMAP (Incoming Mail Server) information:
        •    Server name: imap.mail.me.com
        •    SSL Required: Yes
        •    Port: 993
        •    Username: [email protected] (use your @me.com address from your iCloud account)
        •    Password: Your iCloud password
    SMTP (outgoing mail server) information:
        •    Server name: smtp.mail.me.com
        •    SSL Required: Yes
        •    Port: 587
        •    SMTP Authentication Required: Yes
        •    Username: [email protected] (use your @me.com address from your iCloud account)
        •    Password: Your iCloud password
    Also, you must upgrade your password to meet the new criteria:  8 characters, including upper and lower case and numbers.  If you have an older password that does not meet these criteria, when you try to setup mail on your mac, using all of the IMAP criteria listed above, it will still give a server error message.  Go to   http://appleid.apple.com         then follow directions to change your password, then go back to setting up your mail using the IMAP instructions above.
    Thanks to dpepper...
    https://discussions.apple.com/thread/3867171?tstart=0

  • How to get information about creation of a virtual machine on a Hyper-v host.

    Hi,
    How to get information about creation of a virtual machine on a Hyper-v host?
    I need: host name, time created, creator user.
    I saw in Hyper-V-VMMS but I found info about movements of VM between hosts.
    Thank's in advance.
    Denius Valiant

    For Host Name * Created Time Use This Command In PowerShell 
    Get-VM -Name (Read-Host "Type Your Vm Name") |select CreationTime , ComputerName
    and for Create User , As i know you should see on Event Log . 
    Go To Event Log Viewer--->Applications And Services Logs--->Microsoft--->Windows--->Hyper-V-VMMS--->Operational 
    You can see in Event Log who create the Vm.
    Whenever you see a helpful reply, click on Vote As Helpful & click on
    Mark As Answer if a post answers your question.
    LinkedIn:
      Facebook:
      

  • A PDF document with information about activation for CS6 software

    Here's a PDF document with information about activation for CS6 software.
    I found it very useful for understanding how the system worked for activation of perpetual licenses, both in cases where the computer is and isn't connected to the Internet.

    Ann, with some browsers, the PDF document will download in the background rather than appear in a browser window.

  • I am using the Order Analysis Toolkit and want to get more information about the compensation for "Reference Signal Processing", which is scarce in the manuals, the website and the examples installed with the toolkit.

    I am using the Order Analysis Toolkit and want to get more information about the compensation for "Reference Signal Processing", which is scarce in the manuals, the website and the examples installed with the toolkit.
    In particular, I am analyzing the example "Even Angle Reference Signal Processing (Digital Tacho, DAQmx).vi", whose documentation I am reproducing in the following:
    <B>DESCRIPTIONS</B>:
    This VI demonstrates how to extract even angle reference signals and remove the slow-roll errors. It uses DAQmx VIs to acquire sound or vibration signals and a digital tachometer signal. This VI includes a two-step process: acquire data at low rotational speed to extract even angle reference; use the even angle reference to remove the errors in the vibration signal acquired at normal operation.
    <B>INSTRUCTIONS</B>:
    1. Run the VI.
    2. On the <B>DAQ Configurations</B> tab, specify the <B>sample rate</B>, <B>samples per channel</B>, device and channel configurations, and tachometer channel information.
    <B>NOTE</B>: You need to use DSA PXI-447x/PXI-446x and PXI TIO device in a PXI chassis to run this example. The DSA device must be in slot 2 of the PXI chassis.
    3. Switch to <B>Extract Even Angle Reference</B> tab. Specify the <B>number of samples to acquire</B> and the <B># of revs in reference</B> which determines the number of samples in even angle reference. Click <B>Start</B> to take a one-shot data acquisition of the vibration and tachometer signals. After the acquisition, you can see the extracted even angle references in <B>Even Angle Reference</B>.
    4. Switch to the <B>Remove Slow-roll Errors</B> tab. Click <B>Start</B> to acquire data continuously and view the compensate results. Click <B>Stop</B> in this tab to stop the acquisition.
    <B>ORDER ANALYSIS VIs USED IN THIS EXAMPLE</B>:
    1. SVL Scale Voltage to EU.vi
    2. OAT Digital Tacho Process.vi
    3. OAT Get Even Angle Reference.vi
    4. OAT Convert to Even Angle Signal.vi
    5. OAT Compensate Even Angle Signal.vi
    My question is: How is the synchronization produced at the time of the compensation ? How is it possible to eliminate the errors in a synchronized fashion with respect to the surface of the shaft bearing in mind that I am acquired data at a low rotation speed in order to get the "even angle reference" and then I use it to remove the errors in the vibration signal acquired at normal operation. In this application both operations are made in different acquisitions, therefore the reference of the correction signal is lost. Is it simply compensated without synchronizing ?
    Our application is based on FPGA and we need to clarity those aspects before implementing the procedure.
    Solved!
    Go to Solution.

    Hi CracKatoA.
    Take a look at the link bellow:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=255126&requireLogin=False
    Regards,
    Filipe Silva

  • How do I use my serial number to find information about my MacBook Pro's Processor and RAM?

    So I want to find information about my MacBook Pro's processor and RAM using the serial number because the MacBook no longer works. I remember being able to find this information on the apple website before, maybe by using the coverage checker. Did they take this information out of the coverage checker? Is it no longer possible for a costumer to obtain this information?

    Append the last three characters of it to http://www.everymac.com/ultimate-mac-lookup/?search_keywords= and load the page.
    This won't reveal how much RAM it currently has installed.
    (117541)

  • Changing from dev to standard edition causes "Could not obtain information about Windows NT group/user error code 0x6e."

    Hello,
    We recently upgrade our SQL Server 2012 SP1 (64bit) dev edition to standard edition, after we purchased the required licence and it was deployed in production.
    Since the edition change, we are now receiving the following error, with some of our jobs, which have an e-mail step in them, which is causing the jobs to fail.
    Msg 14661,Level 16, State 1, Procedure sp_send_dbmail, Line 517
    Query execution failed: Msg 15404, Level 16, State 19, Server BL-SVR15, Line 1
    Could not obtain information about Windows NT group/user 'BLUELIZARD\savaa', error code 0x6e.
    Any ideas how to fix this issue? We were also having a similar error, when executing the jobs, but changing the job owner to SA has fixed this issue.
    Thanks,
    Andy.

    Hi,
    Which user account you used for SQL Server service, domain account or local account?
    If it is domain account, are you able to log in to a machine with it?
    Make sure that the password of account is not expired.
    Also, grant the user Allowed to Authenticate permission and see how it helps.
    Refer to the below article:
    http://geeks.ms/blogs/ozonicco/archive/2013/01/14/208266.aspx
    Thanks.
    Tracy Cai
    TechNet Community Support

Maybe you are looking for

  • Safari searching but doesn't open

    We have a macbook that is about 1 month old which has an annoying problem with Safari. We can open Safari and search using Google but sometimes the search will go on and on forever with nothing happening except for the "searching with the black clock

  • Trying to post my question and being denied, why?

    I had an incident happen on my MacBook Pro and needed help with it. I created my question and clicked POST. After I clicked POST nothing happened and it appeared my question did not post. I thought something went wrong with posting my MacBook Pro que

  • How to copy and remove admin Role from SAP_ALL profile

    Hi SDN Experts, I need to copy SAP_ALL profile to another in CRM 5.0 system, thereafter i need to remove admin Role from SAP_ALL profile. Can any help regarding this point.. regds gcp

  • Songs in Library are Not in iTunes Music Folder

    I just had to Re-create my iTunes Library, which took quite some time since each song had to be selected individually and imported (per the instructions). Anyway, I have the box checked in Edit>Preferences>Advanced to automatically Copy Songs in Liba

  • Migration to oracle from 4D

    Hi, We have got a task to migrate 4D database to oracle, any idea how to go about this task. Thanks in advance.