How to remove data file from System tablespace

Hi All,
I have wrongly added data file in SYSTEM tablespace, now I want remove it. I have tried to set datafile offline but it is giving me the error system tableapce can not set offline. so please help me. I am working Oracle 10g .
thanks in advance
sv

In 10gR2, you can drop a datafile from tablespace, as long it's empty (and of course not the last one):
ALTER TABLESPACE tbs_03 DROP DATAFILE 'tbs_f04.dbf';
Otherwise, there's no direct way to get rid of the file. You can just shrink it and move (i.e. "rename") it another location. For a non-system tablespace, move of all segments to another tablespace (and later renaming it) would be an option, but this of course won't work with system tablespace.

Similar Messages

  • ORA-01173: data dictionary indicates missing data file from system tablespa

    Hello
    My Database is 11gR1 and Linux is the OS. Thought of posting it as a new thread as things have changed a lot.
    2 of my database file were lost due to hardware failure. (the datafile do not belong to SYSTEM TABLESPACE) and and the second was datafile for undo tablespace.
    I created control files with command not mentioning the lost datafiles:
    CREATE CONTROLFILE REUSE DATABASE "BSSGLB" NORESETLOGS NOARCHIVELOG
    MAXLOGFILES 32
    MAXLOGMEMBERS 5
    MAXDATAFILES 600
    MAXINSTANCES 10
    MAXLOGHISTORY 1168
    LOGFILE
    GROUP 1 '/DB/app/oracle/oradata/bssglb/redo01.log' SIZE 500M,
    GROUP 2 '/DB/app/oracle/oradata/bssglb/redo02.log' SIZE 500M,
    GROUP 3 '/DB/app/oracle/oradata/bssglb/redo03.log' SIZE 500M
    -- STANDBY LOGFILE
    DATAFILE
    '/DB/app/oracle/oradata/bssglb/system01.dbf',
    '/DB/app/oracle/oradata/bssglb/sysaux01.dbf',
    '/DB/app/oracle/oradata/bssglb/users01.dbf',
    '/DB/app/oracle/oradata/bssglb/bss01.dbf',
    '/var/oracle/oradata/bssglb/bss02',
    '/var/oracle/oradata/bssglb/system02.dbf'
    CHARACTER SET US7ASCII
    I have all the files mentioned in the datafile section of the above command.
    But somehow when i try to open the DB, first it asks for the media recover. When i recover database then it disconnects database saying:
    ERROR at line 1:
    ORA-01092: ORACLE instance terminated. Disconnection forced
    Process ID: 4768
    Session ID: 170 Serial number: 5
    Contents of the alert log file are:
    Beginning crash recovery of 1 threads
    parallel recovery started with 3 processes
    Started redo scan
    Completed redo scan
    1 redo blocks read, 0 data blocks need recovery
    Started redo application at
    Thread 1: logseq 7, block 2, scn 20356182450
    Recovery of Online Redo Log: Thread 1 Group 1 Seq 7 Reading mem 0
    Mem# 0: /DB/app/oracle/oradata/bssglb/redo01.log
    Completed redo application
    Completed crash recovery at
    Thread 1: logseq 7, block 3, scn 20356202453
    0 data blocks read, 0 data blocks written, 1 redo blocks read
    Sun Feb 20 08:16:23 2011
    Thread 1 advanced to log sequence 8
    Thread 1 opened at log sequence 8
    Current log# 2 seq# 8 mem# 0: /DB/app/oracle/oradata/bssglb/redo02.log
    Successful open of redo thread 1
    MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
    Sun Feb 20 08:16:23 2011
    SMON: enabling cache recovery
    Errors in file /Oracle/app/oracle/diag/rdbms/bssglb/bssglb/trace/bssglb_ora_4550.trc:
    ORA-01173: data dictionary indicates missing data file from system tablespace
    Error 1173 happened during db open, shutting down database
    USER (ospid: 4550): terminating the instance due to error 1173
    Sun Feb 20 08:16:25 2011
    Instance terminated by USER, pid = 4550
    ORA-1092 signalled during: alter database open...
    ORA-1092 : opiodr aborting process unknown ospid (4550_182910338848)
    Sun Feb 20 08:16:26 2011
    ORA-1092 : opitsk aborting process
    Guys please help me out of this situation.
    Regards, Imran

    STOP opening new threads for ongoing solution to SAME problem
    Re: I have copy of data files! How to install and add these files to database!
    Re: Failure of network storage!
    Re: I have copy of data files! How to install and add these files to database!
    Handle:      misterimran
    Email:      misterimran
    Status Level:      Newbie
    Registered:      Jan 15, 2002
    Total Posts:      1,109
    Total Questions:      130 (115 unresolved)
    so many questions & so few answers!
    Edited by: sb92075 on Feb 19, 2011 7:49 PM

  • HT1766 how to restore data file from back up on iPhone 5 docs to go

    how to restore data file from back up on iPhone 5 docs to go

    If it backed up the lock file, then Lightroom was open when Time Machine ran, and the backup therefore may be corrupted.  You could try restoring that backup (without overwriting your week ago version) and see if it'll open.  If it does, you're off and running.  What methods have you tried?

  • How to make button to format a HardDrive or USB, How to remove all files from folder, and How to delete a process in listbox with a textbox?

    Hello!
    Here's the question with explaniation: How can i format the USB or Drive by clicking a button what's meant for it?
    and the second question what's also in vb.net: How can i remove all files from folder ? 
     Here's the Look of program: *
    Using the PC button, it will delete the free space of the PC, do you guys/girls know where it's location?

    Example Code:
    Imports System.Runtime.InteropServices
    Imports System.IO
    Public Class Form1
    Dim CBoxDrives As New ComboBox
    WithEvents FButton As New Button
    <DllImport("shell32.dll")> _
    Private Shared Function SHFormatDrive(ByVal hwnd As IntPtr, ByVal drive As UInteger, _
    ByVal fmtID As UInteger, ByVal options As UInteger) As ULong
    End Function
    Private Enum SHFormatFlags As Integer
    SHFMT_ID_DEFAULT = &HFFFF
    SHFMT_OPT_FULL = &H1
    SHFMT_OPT_SYSONLY = &H2
    SHFMT_ERROR = &HFFFFFFFF
    SHFMT_CANCEL = &HFFFFFFFE
    SHFMT_NOFORMAT = &HFFFFFFD
    SHFD_FORMAT_FULL = 0 ' full format
    SHFD_FORMAT_QUICK = 1 ' quick format
    End Enum
    Private Sub FButton_Click_1(sender As System.Object, e As System.EventArgs) Handles FButton.Click
    If CBoxDrives.Text = "" Then
    MsgBox("No Drive Selected")
    Exit Sub
    End If
    Dim Iresult As ULong = SHFormatDrive(CType(Me.Handle.ToInt32, IntPtr), CUInt(Asc(CBoxDrives.Text.Substring(0, 1)) - Asc("A")), CUInt(SHFormatFlags.SHFMT_ID_DEFAULT), 1)
    End Sub
    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
    Me.Size = New Size(200, 100)
    With FButton
    .Size = New Size(50, 25)
    .Location = New Point(5, 5)
    .Text = "Format"
    End With
    Me.Controls.Add(FButton)
    With CBoxDrives
    .Size = New Size(50, 25)
    .Location = New Point(75, 5)
    .DropDownStyle = ComboBoxStyle.DropDown
    End With
    Me.Controls.Add(CBoxDrives)
    Dim DrivesFound As Integer = 0
    Dim allDrives() As DriveInfo = DriveInfo.GetDrives()
    Dim d As DriveInfo
    For Each d In allDrives
    If ((d.DriveType = DriveType.Fixed) Or (d.DriveType = DriveType.Removable)) AndAlso Environment.GetEnvironmentVariable("SYSTEMROOT").StartsWith(d.Name) = False Then
    CBoxDrives.Items.Add(d.Name)
    DrivesFound += 1
    End If
    Next
    CBoxDrives.SelectedIndex = DrivesFound - 1
    End Sub
    End Class

  • How to transfer data files from PC?

    How can I copy MS Word data files  from external hard drive to iMac Pro?  Thank you

    How can I copy MS Word data files  from external hard drive to iMac Pro?  Thank you
    If that's all you have, just attach the drive to the Mac and copy.

  • How to remove pdf files from iTunes/ iPhone/ Books sync window?

    I've removed the files from my iTunes library folders, but they still show up with icons in the Books sync window for my phone and iPad.
    I've deleted all hard copies of the

    Leave it to Safari to crash and not finish my post.  I've deleted all of my hard copies within iTunes..Here is a screen shot of where I'd like to remove the pdf files.
    I can't highlight the pdf and hit delete from here.  Any reference of the 2 willamette books I've deleted, but they are still there....ideas?

  • How to remove image files from audio files

    i dont understand enough about how itunes worked...So my problem is, when i would add album art to a song, i would copy and past to the artwork box on the song. When i would find a better image, i would just past over the last one, not realizing that it was actually adding another image. This form of Copy/past(as i understand) saves the image to the audio file. *My question:* how do i remove the image files from the audio files...?

    Right click on the file you want to remove the artwork from, choose Get Info then the Artwork tab, click on the image and press the delete button then OK. To remove from multiple items, highlight the adjacent tracks in your selection (click on the first in the list, hold down the shift key and click on the last), right click and choose Get Info, choose yes when you are asked if you want to edit multiple items, tick the box beside the small empty artwork window about halfway down on the right. (if the songs aren't adjacent to each other but spread through out the playlist or library CTRL & Click on each of the songs you want to highlight)

  • HT1355 how to remove data permanently from iphone?

    How to remove photos from iphone permenant and to be sure that no one can restore them again.

    Connect the phone to iTunes and sync by de-selecting the photos you don't want on your phone under photos.  If you sync, the photos will be removed from the phone but will remain on iTunes.

  • How to remove attached files from an interactive Form?

    Hi,
    is it possible to delete all the attached files from an interactive form?
    I'm able to extract all the files and store them separately. But I found no way to store the interactive form without attachments.
    There is a method called SET_ATTACHMENTS, but transferring an empty table is not allowed.
    What should I do?
    Code:
    *     Create PDF Object.      lo_pdfobj = lo_fp->create_pdf_object( connection = l_dest ).
    *     Set document.      lo_pdfobj->set_document( pdfdata = iv_filecontent ).
    *     Set task to get attachments.      lo_pdfobj->set_task_getattachments( ).
    *     Execute, call ADS.      lo_pdfobj->execute( ).
    *     Get result.      et_attachments = lo_pdfobj->get_attachments( ).
    Regards,
    Mario

    Any ideas?

  • How to remove backup files from my system dirve ?

    today I wanted to install windows on my MBP and was surprised to see having only 50GB left on my HD. while i was wondering trying to figure out what is eating my disk space I stumbled on this.
    there is over 100GB of backups ? Is Time Machine backing up to my main drive when Im away from home ?
    Is there a way to recover all that wasted space ? since i allready have my MBP backup to my NAS when I get back home.

    spot on colin. thanks
    Colin Robinson wrote:
    Local Snapshots?
    Regards,
    Colin R.
    I used this to stop time machine from making local snapshots <sudo tmutil disablelocal> but it didn't delete the the backups just made them to something else. I got this now
    Do I need to use some sort of defragmenter tool to fix it ?

  • I keep getting blue screen and error message to remove this file from system. spooldr.sys

    HP Officejet 4500 Wireless All-in-One Printer - G510n    w/operating system     Windows XP Professional
    I installed the printer in February and the disk did not finalize the setup process.  I went online and
    down loaded the drivers and software that was offered from the HP website.
    The printer works, but as the months have gone along, I keep getting updates for the printer and
    the system needs to reboot and it does automatically.
    Now I am getting a blue screen with a critical dump error message.  HP error reporting keeps sending
    the same message back to restore to earlier date before the updates.  That worked for awhile.  Now
    HP Error system says that malware has corrupted and needs to remove system file     spooldr.sys
    Is this in your driver software.  Spooldr is the system that caches pages of data for printing in chronological
    order....
    Can I uninstall my software and drivers and change to the plain & simple, print and scan to prevent the
    spool driver from loading to my system?

    Thank you for your input.  But, It is amazing that you can tell me that I was infected with  rootkit. 
    Without information as to how to fix, your information is after the fact and useless.
    I used the Safety Scanner provided to me by HP.  A full scan didn't detect any Malware in any files on my system.  But the last screen dump provided the information that   spooldr.sys  was corrupted and  needed
    to be removed.  
    Coming into HP Form, I did read on the HP website that my system Windows XP Professional was not listed
    and noted that the software may have not been just what I needed.  This was the reason for the question
    about uninstalling and reinstalling less of the program.  I really don't need my printer to print backward and
    that is all I see that it is doing that other printers don't.
    Besides, Kudos goes to the person from HP who sent the email,  suggesting I used the HP Update software and drives recommended  for my computer system.  Computer, printer is working, back to normal and hasn't taken a dump since, I uploaded  software and drives for Windows XP Professional.

  • How to remove a camera from System Info hardware

    Hello,
    My son installed a program to modify his webcam when on Skype to friends etc. As he no longer uses it we decided to remove it from the system. Found the program and dragged it to trash.
    But now whenever we open the webcam it defaults to the no-longer installed program input
    I can not find any other files the program has left behind.
    But in system information CamMask is still listed.
    Is there a way I can remove this from being recognised?

    Any third-party software that doesn't install by drag-and-drop into the Applications folder, and uninstall by drag-and-drop to the Trash, is a system modification.
    Whenever you remove system modifications, they must be removed completely, and the only way to do that is to use the uninstallation tool, if any, provided by the developers, or to follow their instructions. If the software has been incompletely removed, you may have to re-download or even reinstall it in order to finish the job.
    I never install system modifications myself, and except as stated in this comment, I don't know how to uninstall them. You'll have to do your own research to find that information.
    Here are some general guidelines to get you started. Suppose you want to remove something called “BrickMyMac” (a hypothetical example.) First, consult the product's Help menu, if there is one, for instructions. Finding none there, look on the developer's website, say www.brickmymac.com. (That may not be the actual name of the site; if necessary, search the Web for the product name.) If you don’t find anything on the website or in your search, contact the developer. While you're waiting for a response, download BrickMyMac.dmg and open it. There may be an application in there such as “Uninstall BrickMyMac.” If not, open “BrickMyMac.pkg” and look for an Uninstall button. The uninstaller might also be accessed by clicking the Customize button, if there is one.
    Back up all data before making any changes.
    You will generally have to restart the computer in order to complete an uninstallation. Until you do that, there may be no effect, or unpredictable effects.
    If you can’t remove software in any other way, you’ll have to erase and install OS X. Never install any third-party software unless you're sure you know how to uninstall it; otherwise you may create problems that are very hard to solve.
    Trying to remove complex system modifications by hunting for files by name often will not work and may make the problem worse. The same goes for "utilities" such as "AppCleaner" and the like that purport to remove software.

  • How to remove unused codepage from system

    Hello all,
    Has anyone yet removed codepage (customer codepages) from the system.
    If so, could you please tell me how to do so?
    I tryed with SPAD, but the option "delete" is always inactive. This customer codepages are also not found with transaction SCP.
    I want to delete them, because these are old test-codepages which I don't want to convert regarding my forthcoming unicode-conversion.
    regards
    Sven

    Thanks for your answers so far.
    @subbu:
    The report rscp0004 is obsolete.
    @Vincent:
    the problem is, that these customer codepages (in my case: 9000, 9001 and 9002) don't show up in rscpinst, and they're also not in table TCPDB.
    I can only see these codepages in transaction SPAD, and they generate an error/warning at the unicode check.
    These codepages are in table TCP00 and the characters are in TCP02.
    regards
    Sven

  • How to remove dead files from the library?

    Hello.
    I'm using iTunes (7.6.1.9) on Vista (32 bit) mainly for synching my iPod (nano 3G). I organize my files with other tools like mp3tag. Sometimes I rename the folders where tracks are stored (e.g. I add the release year to the folder name). All this is done outside of iTunes.
    Now, when I want to access tracks in iTunes, it happens that iTunes doesn't find the files (because the folder or files were renamed). I can re-add the folder to the library, that's no problem.
    But how can I remove all dead files at once from the library? I don't feel like searching the complete library myself (for this is what a PC is made for, isn't it?).
    Is there any tool that can help me with this?
    Thanks in advance
    Martin

    You can use one of Roberst Jacobson's scripts - iTunesRemovenotfound:
    http://home.comcast.net/~teridon73/itunesscripts/
    Or if you prefere to do it in iTunes:
    Using a playlist to collect dead tracks for deletion.
    Create new regular playlist – Playlist1
    Select whole library and drag to Playlist1
    Create new Smart Playlist with the rule: Playlist is not Playlist1
    This playlist should contain all the dead tracks
    http://discussions.apple.com/message.jspa?messageID=5696793#5696793

  • How to restore data files from a purchased app that isn't working

    I recently had to reset my iPad after an ios7 problem with hyperlinks.  The reset fixed the hyperlink problem but now I can't open excel or word files created in a purchased application, productivity suite.  When I click on the file, it starts to open then switches back to the app icon.  Tried deleting and reinstalling the app and now all the files are gone from my iPad.  I backed up my iPad to my desktop before deleting the app but can't figure out how to restore just the files I need. 

    You should be able to mount the partition once you've loaded up the live CD. Just figure out which one it is by using
    fdisk -l
    then mount it to /mnt or wherever you want it.
    As for moving/saving them, I'm not entirely sure how to get them onto an external server. You might have to mount another partition in order to install any apps that you need to connect to an external server, but wait for someone who really knows to answer before you try it. If you're only talking about 4 or 5 MB, I would just mount a USB stick and dump them on there.
    Last edited by Xyne (2008-09-28 03:38:02)

Maybe you are looking for

  • Tax depreciation for vehicles from limited value in Poland

    Hi, for a polish company I have to define the depreciation for cars. In Poland is for vehicles  the start value for calculation of the tax depreciation lower then the acquisition value of depreciation area "book depreciation". The tax value is limite

  • Second monitor detection and resolution issue with iMac

    Hi All, long time reader here, got a lot of helpful tips, thanks to all who post!! I have a 24" iMac, Intel based, with OSX 10.5.8. I bought a Viewsonic 22" monitor to use along side my iMac when using CS4 and I do a lot of photography. Now the probl

  • The mobile 3000+ (1mb cache)

    will i have a problem with this in the K8N Neo Platinum? im going to be gettings the thermalright 948u to put on it. any words of good advice would be wonderful  

  • Does anyone have a Photoshop retail box (just the box, no software)? I need one :-)

    Hi everyone I am looking for a Photoshop CS6 box. I have the software but my old box got smashed. Since I like to collect software I need another Photoshop box. I am willing to pay the shipping prize plus a little tip. It would be great if someone ou

  • BI beans sample code installation

    hi i am new to olap i installed oracle9i enterprise server with olap option. i updated it to 9.2.0.06 with patch. i installed Bussiness Inteligent Bean package. then i try to instlled BI beans samples It's giving me errors about OLAP_USER i checked O