Something in dba_segments but not in dba_objects

Hi,
I think I met a bug. It's Oracle 11.1.0.7.0 Enterprise Edition 64bit on Oracle Enterprise Linux Server Release 5 Update 6.
I tried to drop a tablespace but cannot. The 'drop tablespace' returned error ORA-1561 saying there're some objects in the tablespace. So I checked the dba_segments and dba_extents, and there were some tables owned by SYS in the tablespace. Then I tried to drop the tables manually, but the 'drop table' returned with ORA-942 saying the table did not exist. I checked the dba_tables and dba_objects to ensure the existance of the table, but cannot find them.
As the result, I cannot drop the tablespace.
Anyone has any idea what I can do to drop the tablespace?
Here's the log:
[toracle@localhost etc]$ sqlplus /nolog
SQL*Plus: Release 11.1.0.7.0 - Production on Wed Jun 1 12:09:33 2011
Copyright (c) 1982, 2008, Oracle. All rights reserved.
SQL> conn / as sysdba;
Connected.
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
PL/SQL Release 11.1.0.7.0 - Production
CORE 11.1.0.7.0 Production
TNS for Linux: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - Production
SQL> drop tablespace tbs1 including contents and datafiles cascade constraints;
drop tablespace tbs1 including contents and datafiles cascade constraints
ERROR at line 1:
ORA-01561: failed to remove all objects in the tablespace specified
SQL> l
1 select owner, segment_type, segment_name
2 from dba_segments
3 where tablespace_name = 'TBS1'
4* and rownum < 3
SQL> /
OWNER SEGMENT_TYPE
SEGMENT_NAME
SYS TABLE
DELETEALLIANCE
SYS TABLE
DISTINCT_TXLOGDETAILS
SQL> drop table sys.DELETEALLIANCE;
drop table sys.DELETEALLIANCE
ERROR at line 1:
ORA-00942: table or view does not exist
SQL> select count(*)
2 from dba_objects
3 where object_name = 'DELETEALLIANCE';
COUNT(*)
0
SQL>
Thanks in advance!
Regards,
Chiyuan

column tablespace_name format a20
column "Name" format a45
break on file_id skip 1
ttitle &1SQL> SQL> SQL> SQL>
Enter value for 1: VHBA
SQL> select file_id, block_id, blocks, owner||'.'||segment_name "Name" from sys.dba_extents where tablespace_name = upper('&1')
2 UNION
3 select file_id, block_id, blocks, 'Free' from sys.dba_free_space where tablespace_name = upper('&1')
4 order by 1,2,3
5 /
Enter value for 1: VHBA
old 1: select file_id, block_id, blocks, owner||'.'||segment_name "Name" from sys.dba_extents where tablespace_name = upper('&1')
new 1: select file_id, block_id, blocks, owner||'.'||segment_name "Name" from sys.dba_extents where tablespace_name = upper('VHBA')
Enter value for 1: VHBA
old 3: select file_id, block_id, blocks, 'Free' from sys.dba_free_space where tablespace_name = upper('&1')
new 3: select file_id, block_id, blocks, 'Free' from sys.dba_free_space where tablespace_name = upper('VHBA')
Mon Apr 16 page 1
VHBA
FILE_ID BLOCK_ID BLOCKS Name
26 9 8192 SYS.PARTICRESPONSES
8201 8192 SYS.PARTICRESPONSES
16393 8192 SYS.PARTICRESPONSES
24585 8192 SYS.PARTICRESPONSES
32777 8192 SYS.PARTICRESPONSES
40969 8192 SYS.PARTICRESPONSES
49161 14840 Free
33 9 8192 SYS.PARTICRESPONSES
8201 8192 SYS.PARTICRESPONSES
16393 8192 SYS.PARTICRESPONSES
24585 8192 SYS.PARTICRESPONSES
32777 8192 SYS.PARTICRESPONSES
40969 23032 Free
34 9 8192 SYS.PARTICRESPONSES
8201 8192 SYS.PARTICRESPONSES
16393 8192 SYS.PARTICRESPONSES
24585 8192 SYS.PARTICRESPONSES
32777 8192 SYS.PARTICRESPONSES
40969 8192 SYS.PARTICRESPONSES
49161 8 SYS.PEDOMETER
49169 16 Free
49185 8 SYS.PEDOMETER_STEP
49193 14808 Free
23 rows selected.
SQL> select status, NAME,owner# from obj$ where name in ('PEDOMETER_STEP','PEDOMETER','PARTICRESPONSES');
STATUS NAME OWNER#
1 PARTICRESPONSES 13850
1 PEDOMETER 13850
1 PEDOMETER_STEP 13850
select USER#, NAME from user$ where USER# = 13850;
SQL>
no rows selected
SQL> select owner,segment_name,segment_type, sum(bytes)/1000000 from sys.dba_extents where
tablespace_name = 'VHBA'
group by owner,segment_name,segment_type
order by 3 desc
OWNER SEGMENT_NAME SEGMENT_TYPE SUM(BYTES)/1000000
SYS PARTICRESPONSES TABLE 1140.85069
SYS PEDOMETER TABLE .065536
SYS PEDOMETER_STEP TABLE .065536
SQL>
select USER#, NAME from user$ where name='SYS';
USER# NAME
0 SYS
update obj$ set OWNER# = 0 where name in ('PEDOMETER_STEP','PEDOMETER','PARTICRESPONSES');
SQL>
SQL> drop table sys.PEDOMETER
2 /
Table dropped.
SQL> drop table sys.PEDOMETER_STEP
2 /
Table dropped.
SQL> drop table sys.PARTICRESPONSES
2 /
Table dropped.
column tablespace_name format a20
column "Name" format a45
break on file_id skip 1
ttitle &1
select file_id, block_id, blocks, owner||'.'||segment_name "Name" from sys.dba_extents where tablespace_name = upper('&1')
UNION
select file_id, block_id, blocks, 'Free' from sys.dba_free_space where tablespace_name = upper('&1')
order by 1,2,3
Enter value for 1: VHBA
FILE_ID BLOCK_ID BLOCKS 'FRE
26 9 8192 Free
8201 8192 Free
16393 8192 Free
24585 8192 Free
32777 8192 Free
40969 8192 Free
49161 14840 Free
33 9 8192 Free
8201 8192 Free
16393 8192 Free
24585 8192 Free
32777 8192 Free
40969 23032 Free
34 9 8192 Free
8201 8192 Free
16393 8192 Free
24585 8192 Free
32777 8192 Free
40969 8192 Free
49161 8 Free
49169 16 Free
49185 8 Free
49193 14808 Free
23 rows selected.
SQL> drop tablespace vhba including contents and datafiles;
Tablespace dropped.
SQL>
after updating update obj$ set OWNER# = 0 where name in ('PEDOMETER_STEP','PEDOMETER','PARTICRESPONSES');
if you do not succeed dropping tables , then bounce the database, it will release the lock.
Thanks everyone.
Ashok bansal

Similar Messages

  • Links work in Dreamweaver but not online

    Hello, I am trying to figure out why my flash files work correctly locally but don't after I upload them. I am using Mac Flash CS4 and AS2. (They were CS3 files originally)
    When I use Safari to view the uploaded files and check the Activity window it shows the files load but they don't show up. I have a main swf and others are loaded into it using:
    on (release) {
    loadMovieNum("flash/links.swf", 1);
    Are there any known bugs/work arounds to be aware of?  Thanks. -Derryl

    Almost always when something works locally but not on line... it's a path problem. And I see that you are accessing your .swf from a sub file.... nothing at all wrong with that, but you do need to understand how pathing in Flash works:
    Pathing issues
    Almost always when it works on the local machine and not the server, it's a pathing problem.
    You can put your Flash related files in whatever folders you want, they do NOT have to be in the root, they do NOT all have to be in the same folder. But if you have a problem and if sticking them all in the root folder works, then you know that the issue was a pathing problem.
    Just remember that paths used in the .swf become relative to the Web page on which the .swf is placed, NOT it’s physical location.  So for example, if your .swf is in the flash/data folder and you use that .swf on a Web page in the root folder, you are in effect, removing that .swf from flash/data and putting it in root. So if the .swf is loading any related files (xml, images, video, etc), the path used inside the .swf to load the .xml file has to be relative to it's new location in root and then back down into flash/data. This is true even though when testing the .swf by itself, it can be inside flash/data and work just fine, since relative to it's location, the path is just fine, they are in the same folder. But if that same path is used when the .swf is placed on a page two folder levels up, the relative path has changed, the old "same folder" path will not work.
    In fact if you are placing the .swf on a web page in a different folder than the .swf is stored in, and that .swf calls external assets, then direct clicking and opening of the .swf in it’s folder should NOT work! That’s because the paths to the external assets should be relative to the Web page and not the physical location of the .swf.
    So just be sure that you use addresses relative to the final Web page locations (not physical file locations) and you can put the Flash related files in what ever folders you want.
    Best wishes,
    Eye for Video
    www.cidigitalmedia.com
    Best wishes,
    Adninjastrator

  • LNK2019 Error, Works fine in cmd, but not visual studio

    Hello.
    I'm getting this error. I've looked online and it says this happens when something is declared but not defined, however I don't see any issues like that. The most annoying part is that it compiles fine in cmd. I'm not sure why Visual Studio 2013 is giving
    me issues
    Errors
    Error 1
    error LNK2019: unresolved external symbol "public: __thiscall Shader::Shader(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0Shader@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function _main
    Error 2
    error LNK2019: unresolved external symbol "public: virtual __thiscall Shader::~Shader(void)" (??1Shader@@UAE@XZ) referenced in function _main
    Error 3
    error LNK1120: 2 unresolved externals
    main.cpp
    #include <iostream>
    #include "shader.h"
    int main(int argc, char** argv)
    Shader shader("./res/basicShader");
    return 0;
    shader.h
    #ifndef SHADER_H
    #define SHADER_H
    #include <string>
    class Shader
    public:
    Shader(const std::string& fileName);
    virtual ~Shader();
    protected:
    private:
    #endif //SHADER_H
    shader.cpp
    #include "shader.h"
    #include <iostream>
    #include <fstream>
    #include <string>
    Shader::Shader(const std::string& fileName)
    Shader::~Shader()

    Hi Arend Peter,
    Since this forum is to discuss the VS IDE usage, based on your description, it would be the VC++ development issue, to help you resolve this issue as soon as possible, I suggest you post this issue to the VC++ language development forum,
    I think you would get dedicated support there.
    The VC++ forum link:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vcgeneral
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • My itouch will not let me download apps or music,  it says something about credit, but the app im trying to download is free?

    My itouch will not let me download apps or music,  it says something about credit, but the app im trying to download is free?

    Hi drathbun6,
    If you are having issues connecting to the iTunes Store, you may find the troubleshooting steps outlined in the following article helpful:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    Regards,
    - Brenden

  • I am unable to play a downloaded HD movie from iTunes. SD movies play OK. An error popped up saying something about the display not suitable for HD movies but now all I get is a blank window. I have tried changing the display resolution to no avail.

    I have sownloaded an HD movie from iTunes store and when I attempted to play it on my Windows 7 PC a error message popped up saying something about the display not being compatible for HD movies. I have tried changing the display resolution several times but it didn't help. Now it just comes up with a blank screen when I attempt to play it. SD movies work fine. I have the latest version of iTunes installed.
    Can anyone help me resolve this problem?

    Apparently the display is required to be HDCP compatible to view HD movies in iTunes. My display isn't so this is my problem. I contacted Apple support and they have agreed to credit me for the HD movie and I have now downloaded the SD version.

  • TS1363 my ipod classic is visible in windows but not in itunes, this happens on 2 different computers where my iphone and ipod touch work fine which leads me to think something is up with the ipod itself and i cant find any threads to help

    my ipod classic is visible in windows but not in itunes, this happens on 2 different computers where my iphone and ipod touch work fine which leads me to think something is up with the ipod itself and i cant find any threads to help.
    any thoughts anyone??

    Perhaps the reason you haven't had any replies is because there is no such thing as an 8GB iPod Classic.
    I suggest that you begin by correctly identifying which iPod you have.
    http://support.apple.com/kb/HT1353

  • My ipad2 says it can't connect to iTunes Store when I try to download something. I could do this a few days ago but not now. Anyone know why?

    My ipad2 says it can't connect to iTunes Store when I try to download something.  I could do this a few days ago but not now. Anyone tell me why?

    Try signing out then back in. Try again.

  • My "places" in photos is working on my phone but not transferred to my iPad in Photo Stream even though the photos transfer. It used to work, so did I do something?

    My "places" in photos is working on my phone but not transferred to my iPad in Photo Stream even though the photos transfer. It used to work, so did I do something?

    OK Vicky, good clues...
    See if this helps...
    Open Keychain Access in Utilities, use Keychain First Aid under the Keychain Menu item, then either check the Password under that item, change it, or delete it and start over. See if there are duplicates, should be one for Incoming & one for Outgoing.
    Resetting your keychain in Mac OS X...
    If Keychain First Aid finds an issue that it cannot repair, or if you do not know your keychain password, you may need to reset your keychain.
    http://support.apple.com/kb/TS1544

  • HT1918 I bought a game which called ( Top Eleven ). Then i wanted to buy something from it but i couldn't, because as they said that my credit cards information is not correct...

    I bought a game which called ( Top Eleven ). Then i wanted to buy something from it but i couldn't, because as they said that my credit cards information is not correct...

    You may try to follow this article: http://support.apple.com/kb/TS1646

  • I can log into AppStore on my iPhone fine but when I download something it say 'can not connect to iTunes retry'

    I can log into AppStore on my iPhone fine but when I download something it say 'can not connect to iTunes retry' so I am stuck please help me guys

    Hi Grandmaz5,
    If you are having issues connecting to Facebook on your iPad, and you have already troubleshot the Facebook app itself, you may want to check the built-in iOS settings for Facebook; you may find the following article helpful:
    iOS: Using Facebook, Twitter, and other social network accounts
    http://support.apple.com/kb/HT5500
    Regards,
    - Brenden

  • Hello, this might be a basic question, but how do you open QuickTime to record a new webinar? I have a new MacBook Pro with Yosemite and can only get QuickTime to appear in Finder but not actually open to allow me to record something new. Thx.

    Hello, this might be a basic question, but how do you open QuickTime to record a new webinar? I have a new MacBook Pro with Yosemite and can only get QuickTime to appear in Finder but not actually open to allow me to record something new. Thx.

    Hi Winterwilly,
    Welcome to Apple Support Communities. 
    The article linked below answers your question of how to use QuickTime to record something on your MacBook Pro’s screen.
    QuickTime Player 10.x: Record your computer’s screen
    Cheers,
    -Jason

  • Why my iphone 4 connect to wifi, but when i open safari and search something it say i not connect.. but in the same house my sister using iphone4 too but she can online with the same router

    why my iphone 4 connect to wifi, but when i open safari and search something it say i not connect.. but in the same house my sister using iphone4 too but she can online with the same router. i go and check over the detail of the network i connected, over the ip address and subnet mask have the numbers, but over the DNS and router don't have any number...isit the problem???? i can online at any other place but just my home cant...y????

    Hey confuddled_chica!
    Try the steps in the article below to troubleshoot this issue:
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/ts1398
    Thanks for being a part of the Apple Support Communities!
    Regards,
    Braden

  • HT1430 hey, I just reset my Apple ID and suddenly much of my Iphone text history disappeared.  and I can send texts, but not receive any.  what do I do?  is this related to AppleID, or is the text issue from something else?  thx!

    hey, I just reset my Apple ID and suddenly much of my Iphone text history disappeared.  and I can send texts, but not receive any.  what do I do?  is this related to AppleID, or is the text issue from something else?  thx!

    Hi blyther,
    Thanks for using Apple Support Communities.  If you're unable to receive texts, see this article for troubleshooting steps:
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/ts2755
    Cheers,
    - Ari

  • I have an ipad2 for two day in the am it would say something about disabled but then would come on in 15 minutes or so.  Today it just went dead and will not do anything.  Any suggestions?

    I have an ipad2 for two day in the am it would say something about disabled but then would come on in 15 minutes or so.  Today it just went dead and will not do anything.  Any suggestions?

    Hard reset by holding down the home button and the sleep/wake lock button (BUtton on the bottom of your display, button you use to turn the screen black) hold them both down for 15 seconds till you see the apple reappear

  • Download I-Tunes 11.1.4 Failed: says Apple Mobile Device failed to start.  seems like it has something to do with MSVCR80.dll, but not sure what to do about it

    Says Apple Mobile Device failed to start.  Seems like it has something to do with MSVCR80.dll, but not sure what to do about it.  Now I have no Itunes at all

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features(Later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    See also HT1925: Removing and Reinstalling iTunes for Windows XP or HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    Should you get the error iTunes.exe - Entry Point Not Found after the above reinstall then copy QTMovieWin.dll from:
    C:\Program Files (x86)\Common Files\Apple\Apple Application Support
    and paste into:
    C:\Program Files (x86)\iTunes
    The above paths would be for a 64-bit machine. Hopefully the same fix with the " (x86)" omitted would work on 32-bit systems with the same error.
    tt2

Maybe you are looking for

  • Unable to communicate with 4235

    I am having trouble with one of our sensors. For quite some time it has been unaccessible although it continued sending alerts to security monitor. I recently went to the location of the IDS and powered it down and then back up at which point I was o

  • Nokia Lumia 630 3G Problem

    Hi All, I have recently purchased the New Nokia 630,however I am facing some issues in 3G connectivity of the SIM.The SIM catches 3G network but it dosen't Transfers data.The Symbol on the top near signal strength shows H but doesn't loads any page.I

  • Want to change length validator message and change field format.

    I want to override Length Validator Message as I want to tell the user that phone number must contain 10 numbers I've added this validator on the phone field af:validateLength minimum="10" maximum="10"                                hintMinimum="11"

  • Problem while installing obiee 11.1.1.5

    Hello, I am trying to install OBIEE 11.1.1.5 in windows xp 32 bit. I downloaded all the disks and now i am trying to install. Disk1->setup.exe when i run i am getting this problem like JRE is not found inside the bin/javaw So pls install jre 1.3.1 or

  • Citadel data to LV vi to Diadem

    I need to get a histogram into a report in Diadem. Unfortunately I cannot create a histogram directly in Diadem so I need to get data from my citadel database into a vi and from the that vi into a histogram vi then send it to Diadem from Labview. Has