System Tablespace Resize --Crusial thing happened

Hi
When I disconnected permission on a temporary tablespace
to a user, I forget his permission on the system tablespace.
One of his query consumed more than 1 gb size in system
tablespace.
Now I am getting ORA-03297 When tried to resize.
Suggestions are highly appriciated.
Thanks
giri

Narayanan V giri , this script is going to help you
for checking locks in the database and its sessions.
Try to kill them before resize.
col object_name format a20
col username format a10
col oracle_username format a10
col process format a15
col owner format a10
prompt ****************************************************************
prompt *** Object Lock Contention ***
prompt ****************************************************************
set pages 0
set linesize 150
select 'Date : '||to_char(sysdate,'DD/MM/YYYY')||' Time : '||to_char(sysdate,'HH:MI:SS') from dual;
select 'Database Name : '||name from sys.v_$database;
set pages 1000
SELECT DISTINCT
O.OBJECT_NAME,
SH.USERNAME,
SH.SID,
SW.USERNAME,
SW.SID,
DECODE(LH.LMODE,
1, 'null',
2, 'row share',
3, 'row exclusive',
4, 'share',
5, 'share row exclusive',
6, 'exclusive')
FROM DBA_OBJECTS O,
V$SESSION SW,
V$LOCK LW,
V$SESSION SH,
V$LOCK LH
WHERE LH.ID1 = O.OBJECT_ID
AND LH.ID1 = LW.ID1
AND SH.SID = LH.SID
AND SW.SID = LW.SID
AND SH.LOCKWAIT IS NULL
AND SW.LOCKWAIT IS NOT NULL
AND LH.TYPE = 'TM'
AND LW.TYPE = 'TM'
prompt Press Enter to continue ...
pause
prompt ************************************************************
prompt *** Object Lock Information ***
prompt ************************************************************
SELECT
A.OBJECT_NAME,
A.OWNER,
C.SERIAL#,
B.OBJECT_ID,
B.SESSION_ID,
B.ORACLE_USERNAME,
B.OS_USER_NAME,
B.PROCESS,
DECODE(B.LOCKED_MODE,
     0,'None',
1,'Null',
     2,'Row-S (SS)',
     3,'Row-X (SX)',
     4,'Share',
     5,'S/Row-X (SSX)',
     6,'Exclusive') LMODE
FROM DBA_OBJECTS A, V$LOCKED_OBJECT B, V$SESSION C
WHERE A.OBJECT_ID = B.OBJECT_ID AND C.SID = B.SESSION_ID
ORDER BY A.OWNER, A.OBJECT_NAME, C.SERIAL#
Joel P�rez

Similar Messages

  • System tablespace

    I have created a table in the system tablespace. I am able to rename the column in the table, add a new column to the table, modify the column in the table. But when I tried to drop the column in the table, the following error is raised.
    ORA-12988: cannot drop column from table owned by SYS
    The user is connected as a sysdba. What is the logic that goes behind this error, as we are able to create a new table in system tablespace, rename the column, modify the column in the table and add new columns to the table. But we couldn't drop a column in the same table.

    I have created a table in the system tablespace. Wrong idea
    I am able to rename the column in the table, add a new
    column to the table, modify the column in the table.
    But when I tried to drop the column in the table, the
    following error is raised.
    ORA-12988: cannot drop column from table owned by
    SYS
    Connect as SYS and drop it.
    The user is connected as a sysdba. What is the logic
    that goes behind this error, as we are able to create
    a new table in system tablespace, rename the column,
    modify the column in the table and add new columns to
    the table. But we couldn't drop a column in the same
    table.Creating a new table in system tablespace is one thing. Creating a table connected as SYSDBA is a different thing.
    So you have two wrongs to correct.
    1. Do not create new tables in system tablespace. Create a new tablespace for users (if you do not have one).
    2. Do not connect as sysdba to create new tables. Connect as that user without sysdba.

  • Resizing System Tablespace

    Dear All,
    My system datafile size has reached around 3.29 GB. I have separated the datafiles and now My query indicates that i am only using 9 percent of the total system tablespace. I need to reduce the size of this file to 400M. i issued the command "ALTER DATABASE DATAFILE '............' RESIZE 400M". i recieve an error saying "file contains used data beyoung requested resize size".
    Any comments are highly appreciateable.
    Thanks and Best Regards.
    Shahzada Khurram Khan

    First, no matter which tablespace is the target you cannot shrink the allocated file space to less than the last allocated object.
    So map the tablespace: list objects by file, block to see how much room exists, if any, at the end of each allocated file. Then attempt to shrink each file down.
    This will take the space away before some other object gets allocated to it.
    Next verify that all objects in the system tablespace are only those objects placed there by Oracle when the database is created. Move non-SYS/SYSTEM owned objects to a different tablespace. Repeat above.
    The odds are you will still not get back that much of the allocated space. In which case your choices are to either live with it, or to bebuild the database from scratch so that you re-create the system tablespace.
    HTH -- Mark D Powell --

  • Lost mail, spooky things happening, and more

    Some very strange things happening with Mail today. First, here is my set up. I have a Yahoo account. I have two computers, and iMac running 10.3.9 and a MBP core duo running 10.4.8. (No I did not update to 10.4.9 yet.) I have Mail set to check for messages every few minutes. As today went on, I got a dozen or so messges. Though, early in the day, I realized that for some reason I was not getting some messages on my iMac. And strange enough as that was, it seemed to be explained by the fact somehow, after downloading messages to my MBP, they were being deleted off of Yahoo, which my computers are NOT set to do. In fact, all 2000 or so messages I had stored on Yahoo are now gone.
    Well, if that wasn't strange enough, I responded to two of the emails I got today using my MBP. Everything went like usual, but there was some evidence that Mail was acting strange. Like, when I opened it up, it took me to some random message in the middle of my 5000 or so saved messages. Like it didn't remember where I was before like it usually does. Not so significant, but certainly strange.
    I quit Mail, and then reopened it. (still on my MBP) Well, now all of my messages from today were GONE. The two emails I responded to were gone and though I always have everything saved to my sent folder, there was no evidence that I ever sent these emails.
    Something stragne is happening to my mail. Anybody have a clue what is going on here? Do I have a ghost? I know I did NOT delete those messages from today. I know for a fact they were on my MBP. I know that my Mail program is NOT set to delete messages off of Yahoo.
    I know, there are a lot of variables, but something is up.
    Thoughts?
    Thank you,
    Adam

    In the Finder, go to ~/Library/Mail/ and check whether the missing messages are still there somewhere, just inaccessible for some reason. Also, have you tried searching for those messages in Spotligth?
    Not sure what the situation is here, but if some of your messages have been deleted for some reason, they’re not on the server and you don’t have a backup, you may want to try to salvage as many deleted *.emlx files as possible with a data recovery tool such as Data Rescue II, TechTool Pro, or FileSalvage. Of these, the only one I know for sure that can currently recover deleted *.emlx files is FileSalvage. Stop using your computer right now if you want to try that, as anything you do with the computer may cause the deleted files to be overwritten.
    That said, if messages are being removed from the server despite you having configured Mail to not do so, either the server is misbehaving or there is some corruption in Mail’s preferences file, which might also explain some of the other strange things you’ve observed.
    Verify/repair the startup disk (not just permissions), as described here:
    The Repair functions of Disk Utility: what's it all about?
    After having fixed all filesystem issues, if any, and making sure that there’s enough space available on the startup disk (a few GB, plus the space needed to make a backup copy of the Mail folder), try this:
    1. If you have a .Mac account and .Mac synchronization of Mail data is enabled either in Mail > Preferences > General or in System Preferences > .Mac, disable it before proceeding.
    2. Quit Mail if it’s running.
    3. Make a backup copy of the ~/Library/Mail folder, just in case something goes wrong while trying to solve the problem. You can do this in the Finder by dragging the folder to the Desktop while holding the Option (Alt) key down, for example. This is where all your mail is locally stored.
    4. In the Finder, go to ~/Library/Preferences/. Locate com.apple.mail.plist and move it to the Desktop (to be deleted if this fixes the problem).
    5. Open Mail. You’ll have to set up your non-.Mac accounts from scratch all over again. If given the option to import existing mailboxes or something like that, don’t. Just enter the account information and Mail will automagically rediscover the data in ~/Library/Mail/ when done.
    6. You’ll have to re-configure most of your settings in Mail > Preferences. For spam-related security reasons, the first thing you should do is go to Preferences > Viewing and disable Display remote images in HTML messages if it’s enabled.
    7. You may also need to re-install or re-enable any Mail plug-ins you have installed for Mail to recognize them.
    8. As a side effect of re-creating com.apple.mail.plist, Mail might rename Outbox (which is where messages waiting to be sent are stored) to Delivered. The name of that mailbox is actually a misnomer, as it would contain messages (if any) that couldn’t be delivered for some reason. You can delete that mailbox if you wish.
    9. If the problem is fixed now and .Mac synchronization of Mail data was enabled at the beginning, enable it again, go to System Preferences > .Mac > Advanced, click Reset Sync Data, and choose the appropriate options to reset the Mail data stored on the .Mac server with the data locally stored on the computer, i.e. sync data must flow from the computer to the .Mac server.
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder. You can easily locate any of the folders referred to in this post by copying the folder path here, doing Go > Go to Folder in the Finder, and pasting the folder path there.

  • No privileges on system tablespace?

    I am a new dba & have succesfully created tables and added constraints.
    Today I tried to add a constraint to an existing table, and received the message
    ORA-01950: no privileges on tablespace 'SYSTEM'
    I tried to add the constraint as the owner of the table, as a user with granted privs on the table, and finally as SYS, and get the same error.
    The system tablespace is only about 60% full, and I have not changed any user privs since I last sucessfully added constraints.
    If someone would give me a clue as to what's going on, I would really appreciate it.
    Thanks, Helen

    I granted unlimited tablespace to the user that owns the table, and the constraint was added successfully.
    I don't know if a user should have unlimited tablespace on SYSTEM...any advice on what a good limit would be? My system tablespace is 325 M and about 60% full. Would it make sense to grant sys unlimited tablespace on SYSTEM?
    Thanks very much for your help. You gave me the incentive to keep trying things until something worked.

  • SYSTEM tablespace is growing fast in 10g

    Hi,
    Using 10.2.0.1.0 on Linux
    My SYSTEM tablespace is growing much faster on 10g than it was on 9i, in 2 month it went from 350mb to 500mb, I don't to add more disk, incase there are issues with my database, I want to know why it is growing.
    I have read docs on why SYSAUX grows on 10g but not SYSTEM.
    SYSTEM size - 500 mb
    Schema/size on System are:
    SYS______455.8125 mb
    SYSTEM______15.25 mb
    OUTLN______0.5 mb
    In this database I only have 1 very large schema that is 200 GB
    Any ideas, reasons, shall I increase it 700mb?
    In 9i my SYSTEM tablespace was very static.
    Thanks for any help.

    Are you using Oracle's audit feature, either standard or FGA? If you were using standard auditing before moving to 10g check that the purge task is still running successfully.
    Verify that no users have their temp tablespace set to system. If is still possible for this to happen on 10g.
    HTH -- Mark D Powell --

  • System tablespace file suffered media failure

    Hi All,
    Our DB is shutdown due to this error:
    ===
    ORA-01243: system tablespace file suffered media failure
    ORA-01122: database file 1 failed verification check
    ORA-01110: data file 1: '/dumps/rmodevdb/db/apps_st/data/system01.dbf'
    ORA-01206: file is not part of this database - wrong database id
    CKPT: terminating instance due to error 1243
    Instance terminated by CKPT, pid = 8203
    ====
    Please let me know how to resolve this.
    Thanks,
    Kishore

    Yes Aman.. This happened after cloning in apps.
    However, issue got resolved.
    Data files were zipped using tar- cvzf ...
    I could successfully complete the cloning when backup is taken with "tar cvf" (with out including z)
    So, learnt that datafiles should not be zipped when tar.
    But datafiles can be zipped using gzip after " tar cvf " is completed.
    Am i right ?

  • Block Corruption in SYSTEM Tablespace

    Hi,
    well it´s just a test database without a backup, but i would like to repair it anyway :-)
    Here are the facts:
    Errors in file c:\oracle\admin\o10g\bdump\o10g_smon_1404.trc:
    ORA-01578: ORACLE data block corrupted (file # 1, block # 50187)
    ORA-01110: data file 1: 'C:\ORACLE\ORADATA\O10G\SYSTEM01.DBF'
    1. I found the object: It´s a Cluster named SYS.C_TOID_VERSION#
    containing a lot of table stuff (type$,parameter$, ...)
    i tried to repair it with dbms_repair:
    BEGIN SYS.DBMS_REPAIR.SKIP_CORRUPT_BLOCKS (
    SCHEMA_NAME => 'SYS',
    OBJECT_NAME => 'C_TOID_VERSION#',
    OBJECT_TYPE => dbms_repair.cluster_object,
    FLAGS => dbms_repair.skip_flag);
    END;
    No error, but the same block corruption message in the alert.log 1 minute later.
    i can select the tables in the cluster.
    Has anyboby another trick to repair a cluster?
    Thanks
    Marco

    Hi,
    if you have rman backup then this problem become resolved by only one command.
    BLOCKRECOVER DATAFILE 1 BLOCK 3 DATAFILE 50187;
    otherwise restore system tablespace from backup and recover it.
    and one more thing
    **Don't fix the block in system tablespace it may create problem if that block contain some useful information of oracle(internal information).
    Thanks
    Kuljeet Pal Singh

  • Problem with purge temp and system tablespace

    hi,
    i am purging tablespec with sys user and it seems doing it, but tablespaces are still full
    also wanted to drop a datafile
    alter tablespace system drop
    datafile 'C:\oraclexe\files\sys.bf'
    and it giving the following error
    Error starting at line 28 in command:
    alter database datafile 'C:\oraclexe\files\sys.bf' offline drop
    Error report:
    SQL Error: ORA-01541: system tablespace cannot be brought offline; shut down if necessary
    01541. 00000 - "system tablespace cannot be brought offline; shut down if necessary"
    *Cause:    Tried to bring system tablespace offline
    *Action:   Shutdown if necessary to do recovery
    but if i shutdown how i drop it? or delete manually the file?
    sorry for the 2 question in one thread
    thanks

    but if i shutdown how i drop it? or delete manually the file?Operate in MOUNT state.
    But If you need to resize your system tablespace, You have to check HWM.
    On XE, I think it's easy to use full exp -> recreate -> full imp..
    Regards,

  • I just did the recent upgrade and now I keep getting an error message when I try to open a book on my Kindle app, I have deregistered the app and reloaded and the same thing happens, does anyone know how to fix?

    I just did the recent upgrade and now I keep getting an error message when I try to open a book on my Kindle app, I have deregistered the app and reloaded and the same thing happens, does anyone know how to fix?

    You are seeing the message because the new AirPort Extreme has some specific System Requirements:
    http://www.apple.com/airport-extreme/specs/
    Setup and Administration
    iPhone, iPad, or iPod touch with iOS 5 or later and AirPort Utility 1.3
    Mac with OS X Lion v10.7.5 or later and AirPort Utility 6.3
    AirPort Utility 5.6.1 in Snow Leopard may or may not work correctly with the new Extreme for all functions. As long as things are working OK for now, you can probably leave them "as is" and wait for another Mavericks update to fix some issues before you "upgrade".
    If you have an iPhone or iPad, you could use that to administer any settings changes on the new Extreme.

  • Missing datafile from system-tablespace?

    Hello!
    We've got a major power-loss yesterday. After that our database does not start correct.
    I got the message:
    ORA-00600: Interner Fehlercode, Argumente: [kccpb_sanity_check_2], [9577], [9542], [0x0], [], [], [], []
    After that I searched the forum and recreated the controlfiles and started recover database.
    Now I always got the following error-message:
    ORA-01173:Data dictionary indicates missing data file from system tablespace
    I'm not really shure if I created another datafile for that tablespace. Even though there is no other datafile in the "oradata-directory".
    Does anyone know how to go further?
    Regards, Sascha
    Message was edited by:
    Sorehead

    Hello,
    Need help very quickly please!
    I have the same error message. ORacle 10.2.0.3 AIX 5.3 on a datawarehouse.
    I need to recover one tablespace from the database.
    I restored my system tablespace and the data tablespace on a test environment and recreated the controlfile. I recovered my database. Recover OK and when I open the database resetlogs the message is :
    Thread 1 opened at log sequence 1
    Current log# 2 seq# 1 mem# 0: /oradata5/RL_G2_1.ORA
    Successful open of redo thread 1
    Thu Feb 18 13:59:47 2010
    SMON: enabling cache recovery
    Thu Feb 18 13:59:47 2010
    Errors in file /opt/app/oracle/admin/MKT1/udump/mkt1_ora_2318672.trc:
    ORA-00704: bootstrap process failure
    ORA-00604: error occurred at recursive SQL level 2
    ORA-01173: data dictionary indicates missing data file from system tablespace
    Thu Feb 18 13:59:47 2010
    Error 704 happened during db open, shutting down database
    USER: terminating instance due to error 704
    Instance terminated by USER, pid = 2318672
    ORA-1092 signalled during: alter database open resetlogs...
    Thanks for help, production data ;)

  • Neo2+OC- Strange things happen to my mouse at teatime?

    Strange things happen to my mouse at teatime when the room heating kicks and the ambient temperature of the room increases approx 5° (system temp of 49 from 44 reported by SpeedFan).
    To compensate the fans in the Antec power supply automatically speed up as well as the case fans - which Antec also controls. When I reboot under these conditions the Logitech wireless mouse (USB Navigator) hangs in Windows XP. I can recover the mouse by removing the USB connection and reseating. This does not happen during every boot but always at teatime. Has anybody else had this effect?

    I updated bios to v1.37 and still same effect. I had a thought that the problem could show itself somehow through voltages and temperatures measured - and performed a comparison check in bios, CoreCell and SpeedFan and unleashed another problem.
    The following table shows what I got (different readings from different applications ):
    Parameter:Bios reading, CoreCenter reading, SpeedFan Reading (read following rows from left to right representing bios, CoreCenter and then SpeedFan)
    CPU temp:               44   ,            52,       49
    SYS temp:               48   ,            0,                    44    
    Vcore:                      1.53,            1.54,               1.54
    +3.3v:                      3.28,            3.28,               3.06
    +12v :                      11.79,          11.44,              12.4
    +5v :                        4.96,            4.92,               4.88
    Batt v :                    3.09,             *  ,                  0
    +5 vsb :                   5.02,            *   ,                 4.96
    The above readings in SpeedFan were from the ISA bus. SpeddFan also provided info via the SMBus as follows
    Parameter: SpeedFan reading
    -12v :                                                                -8,43
    -5v    :                                                               -2.85
    +12v    :                                                             16.10
    +5v      :                                                             6.71
    +3.3v     :                                                           4.43
    CoreA v    :                                                         3.36
    CoreB v     :                                                        3.36
    The following differences stand out +12v and +3.3v. The Antec power supoply regulates these to within 3%, so can anybody explain the above differences. Also why does SpeedFan provide completely wrong readings on the SMbus. Is my motherboard or the power supply at fault. Has anybody else seen similar?

  • System tablespace Vs User Tablespace

    I'm running oracle 8i at Win2000 Server.
    I have a database which have two SYSTEM tablepspaces and One User tablespace. Both SYSTEM Tablepspaces are near to FULL. Right now , The database performance is very poor. I can't understand why my SYSTEM tablespaces are growing fastly instead of User Tablepspace.

    You cannot have multiple SYSTEM tablespaces... Do you mean that you have multiple datafiles associated with your SYSTEM tablespace?
    Unless you assign users a default tablespace, objects that they create without specifying a tablespace will be placed in the SYSTEM tablespace, which is a bad thing. You probably have user objects in your SYSTEM tablespace.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • I keep getting this message and PSCC will not open:Unable to start your subscription for Adobe Photoshop CC.  I keep trying again with no results.  I am on automatic pay system.  This should not happen.

    I keep getting this message and PSCC will not open:Unable to start your subscription for Adobe Photoshop CC.  I keep trying again with no results.  I am on automatic pay system.  This should not happen.
    I had it open a few minutes ago.  Closed it and went to reopen to no avail. How can I open and continue to work?

    Does your Cloud subscription properly show on your account page?
    If you have more than one email, are you sure you are using the correct Adobe ID?
    https://www.adobe.com/account.html for subscriptions on your Adobe page
    If yes
    Some general information for a Cloud subscription
    Cloud programs do not use serial numbers... you log in to your paid Cloud account to download & install & activate... you MAY need to log out of the Cloud and restart your computer and log back in to the Cloud for things to work
    Log out of your Cloud account... Restart your computer... Log in to your paid Cloud account
    -Sign in help http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
    -http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    -http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html
    -ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp
    If no
    This is an open forum, not Adobe support... you need Adobe staff to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

  • System tablespace is almost full

    My database is 10gR2 in Solaris 10. My system tablespace is almost full 99%. What should i do?

    This is a UNIX box, right?
    /u02/oradata/PPRD/
    run:
    df -k /u02/oradata/PPRD/
    Make sure you have enough space on your disk.
    If you have, resize the file:
    SQL> alter database datafile '/u02/oradata/PPRD/syst_PPRD_01.dbf' resize xxxxxMB;
    It doesn't have to be in AUTOEXTEND.
    You don't need to add another datafile, unless you ran out of space on the
    disk, then add another database file on another filesystem if you have one.
    Modern UNIX file systems still can be expanded, depends on your file system type.
    $ chfs -a size=+100000 /u02/oradata/PPRD
    Make sure you check all you were asked for.
    If you don't have enough dree space, buy another disk.
    Regards,
    Richard.
    Edited by: user571349 on Oct 15, 2009 1:38 PM

Maybe you are looking for

  • Program text elements in German

    Hello, I copied a standard SAP program RFKQST80 to a "Z" program in order to make some enhancements. when I goto the text elements in SE38, the first thing that I get is a information box stating "untranslated texts from master language DE will also

  • Profit center assignment in 3KEH does not work

    Hello, I make posting (FB50) to a balance sheet account to which a profit center is assigned in t-code 3KEH (Additional Balance Sheet and P&L Accounts). I do not input any profit center in FB50. As a result of this posting I expect that the line item

  • It is not working when jsp is outside of the Controller(.jpf) directory

    Hello, I am new to Portal. I am using Weblogic 8.1SP2. The problem is when there is a general jsp I want to put it common directory. It is working fine when I run starting from individual Controller but When I put its portlet in Portal, then the acti

  • Eliminating zeroes after decimal

    HI all,   I have a requirement to delete the trailing zeroes after decimal.   It is a interest rate and it is denoted in EUR.   i.e the number is 0,739000 % Internal declaration of this number is in DEC.   the data type is AZINSSATZ. i want it to be

  • How to find the start and end sector index/physical address of any given file?

    I need to find the range of sectors that a file occupied. Then determine the slack space in that file and then analyze the slack space. This is a forensics project work. I am new to forensics and have no idea what Window API calls may help me accompl