To make tablespace read only

if i want to make a tablespace read only. should there be no active transaction on that tablespace or datebase.
null

Hi,
I have diagnosed the problem by running v$transaction commands and found that one transaction is running since morning.
FKHALID>SELECT SES_ADDR, START_SCNB,START_TIME FROM V$TRANSACTION ORDER BY START_SCNB;
SES_ADDR START_SCNB START_TIME
07000004C63E69E0 515936552 09/01/09 08:41:16
07000004C937FB20 590533316 09/01/09 20:16:02
07000004C639E360 590777564 09/01/09 20:20:42
07000004C5346740 590860241 09/01/09 20:22:41
07000004D23B86E8 590863096 09/01/09 20:22:46
FKHALID@PAKEDWP>SELECT SQL_TEXT, SADDR FROM V$SQLAREA,V$SESSION WHERE V$SQLAREA.ADDRESS = V$SESSION.SQL_ADDRESS AND SQL_TEXT LIKE 'alter tablespace%';
SQL_TEXT SADDR
alter tablespace SMS_DATA read only 07000004C937FB20
this shows that sess_addr (07000004C63E69E0) is creating the problem as my command is waiting for completion of this command.
Now I have joined the view with v$session and have found the sid.
SELECT a.sid,a.serial#, a.username, b.xidusn, b.used_urec, b.used_ublk ,b.ses_addr FROM v$session a, v$transaction b WHERE a.saddr = b.ses_addr;
After killing that process, I was able to change the status of tablespace successfully.
Thanks for your prompt response.
Regards
Farooq
Edited by: Fkhalid on Sep 1, 2009 7:34 PM
Edited by: Fkhalid on Sep 1, 2009 7:44 PM

Similar Messages

  • Unable to Make tablespace Read Only in 10g

    Hi All,
    I am using Oracle database 10g R2 (10.2.0.3) on AIX 5.3 platform. Our database is using ASM based storage.
    I am trying to make a tablespace read only but its not returning the command once I execute that.
    I have checked the sessions status and confirmed that no user is writing/reading the tablespace. The tablespace is having 150GB size and having only one table in it.
    I had given following command using sys user.
    alter tablespace SMS_DATA read only;
    However this command was kept running for three hours before I kill that. I have tried to take another tablespace off-line and have face same situation.
    Can any one tell me why this simple task is unable to complete.
    PS: My database is working fine and user are running queries and getting results in desired time.
    Regards
    Farooq

    Hi,
    I have diagnosed the problem by running v$transaction commands and found that one transaction is running since morning.
    FKHALID>SELECT SES_ADDR, START_SCNB,START_TIME FROM V$TRANSACTION ORDER BY START_SCNB;
    SES_ADDR START_SCNB START_TIME
    07000004C63E69E0 515936552 09/01/09 08:41:16
    07000004C937FB20 590533316 09/01/09 20:16:02
    07000004C639E360 590777564 09/01/09 20:20:42
    07000004C5346740 590860241 09/01/09 20:22:41
    07000004D23B86E8 590863096 09/01/09 20:22:46
    FKHALID@PAKEDWP>SELECT SQL_TEXT, SADDR FROM V$SQLAREA,V$SESSION WHERE V$SQLAREA.ADDRESS = V$SESSION.SQL_ADDRESS AND SQL_TEXT LIKE 'alter tablespace%';
    SQL_TEXT SADDR
    alter tablespace SMS_DATA read only 07000004C937FB20
    this shows that sess_addr (07000004C63E69E0) is creating the problem as my command is waiting for completion of this command.
    Now I have joined the view with v$session and have found the sid.
    SELECT a.sid,a.serial#, a.username, b.xidusn, b.used_urec, b.used_ublk ,b.ses_addr FROM v$session a, v$transaction b WHERE a.saddr = b.ses_addr;
    After killing that process, I was able to change the status of tablespace successfully.
    Thanks for your prompt response.
    Regards
    Farooq
    Edited by: Fkhalid on Sep 1, 2009 7:34 PM
    Edited by: Fkhalid on Sep 1, 2009 7:44 PM

  • How long should it take to make a Tablespace READ-ONLY

    Hi,
    We have a Tablespace which occupies 300MBs
    It is taking in excess of 30mins to make it Read Only.
    What would cause this delay?
    We are on 9.2.0.4
    Thanks

    Ask yourself the following questions
    Is any user assigned the target tablespace for their default or temporary tablespace?
    How many transactions are currently running against objects in the target tablespace?
    How many dirty buffers exist for objects that are assigned to the target tablespace?
    The answer to each of the above questions should be none in which case the tablespace alteration should take only a few seconds.
    HTH -- Mark D Powell --

  • Make field read only untill value within pciklist is choosen

    Hello,
    I am trying to establish if it is possible to make a field read-only until a value within a pick list is chosen. Basically we have a pick list called structure and if the field value called "Aligned" is selected then I want the text field called Aligned Name to be available for import all other times this field should not be available.
    Has anyone done anything similar? I'm guessing that this could only be achieved through WF but I haven't been able to find any code to make fields read only.

    For those of you unable to download the document from MetaLink3 here it is:
    As an example to illustrate this requirement, let’s say that once there is a checkbox field called "My_Check_Box". When this field is checked, the "Account Type" field need to become a required for entry by the user. To do this follow these steps:
    1. In the Admin> Application Customization, select the appropriate Object and go into the Object Field Setup.
    2. Edit the field called "My_Check_Box" and enter a Field Validation expression so it uses the following expression:
    =[<bMy_Check_Box_ITAG>] AND NOT([<AccountType>] IS NULL AND [<bMy_Check_Box_ITAG >]='Y')
    3. Enter an explicit error message.
    This expression means that when the checkbox field is checked, the Account Type becomes required. Your custom error message will be raised when checking the checkbox, leaving the account type unpopulated and trying to save the account record.
    4. Edit the Account Type field and enter the following expression as Field Validation:
    =[<AccountType>] AND NOT([<AccountType>] IS NULL AND [<bMy_Check_Box_ITAG >]='Y')
    5. Enter an explicit error message.
    That validation handles the user case where a user changes the Account Type value from a NOT NULL value to a NULL value. Your custom error message will be raised when emptying out the account type from a populated value to nothing while the checkbox is checked and trying to save the account record.
    Note that the expression in both fields validations begins with the field variable on which the statement is being written.**

  • OA Framework,how to make field Read-Only which is used inside Switch case

    Hi all,
    Using Personalization in OA Framework, when I am trying to make field read only, which is inside Swich statement ,then that field get automatically hidden.but my purpose is to make that field read-only not hide.
    My field name is Proposed Annual Increase Amount .
    The Personalization swtich case lookslike this :-
    Field Name Shown
    Switcher: Proposed Annual Increase Amount Yes
    case_name_HrPRateAnnTotInputSs
    Message Text Input: New Annual Amount Yes
    case_name_HrPRateAnnInputSs
    Message Text Input: Annual Pay Rate Yes
    case_name_HrPRateCurrAnnSalSs
    Message Styled Text: Pay Rate
    Regards,
    Mxj2930

    Can you be a bit clear on your requirement. If you have a switcher to display a field based on some condition, the other fields will not get displayed. I did not get as to what you mean by "my purpose is to make that field read-only not hide.".
    Are you talking about the case, when the "New Annual Amount" (or) "Annual Pay Rate" fields are displayed conditionally, you want them to be read-only and not editable. If this is the case, set the read-only property of these fields to true.

  • Any way to make Contacts Read Only in Server 10.8/9

    I have turned on OS X Server Services Contacts (in either 10.8 or 10.9), set up a user account, added that account as a CardDav to a computer(s) made a group(s) of contacts and imported some vcards so everybody can see them in their Contacts on their computers in 10.8 or 10.9. Everything fine.
    What I can't figure out is if there is any way to make them Read Only, allowing only a selected group to have Read/Write privileges. When you have hundreds of employees many of them will end up editing something in the "public contacts" that they shouldn't have done or delete them completely.
    If they were read only that would be great.
    Any ideas? Other then an exchange server there isn't much out there for Macs.
    Thanks,
    Todd

    Update -
    I found a way to make this work. And it is free!
    Forget Apple OS X Server Service Contacts.
    Use Sogo instead. Works perfectly and is extremely fast in handling our 5000+ public cardev records and 1000+ cardev private records!

  • How to make files read only

    I want to make files read only.  Any workaround is welcomed.

    t quinn wrote:
    ElMagoElGato,
    I am glad to give some help but I am still confused because we are having different experiences. I have been able to lock Tables on my mac and have that lock respected in iOS for a long while now. Easy to unlock, impossible to relock.  With the most recent upgrade I can lock tables after tapping the upper left dot to select the whole table and going to "arrange" in the paintbrush.
    When you say worksheet are you meaning the entire file? When you say file lock are you meaning password protection? You can see I am confused.
    quinn
    Based on what ElMagoElGato has described, password protecting would be of no value to him. Once the file is accessed, it is in edit mode. Unless I'm really missing something.
    Files I have imported from Mac iworks apps with elements locked stay locked for me in iOS. Not sure what the problem is.

  • How to make JTextArea read only

    I want to make JTextArea read only so that you can only append text at design time and not at run time and so the user can not delete text in the text area.

    You can use the setEditable(boolean) method. I think that it's the best way.
    Sebastien

  • SRM 7 Header Delivery Tab-- how to make fields read only

    Hi Experts,
    We are upgrading from SRM 4 to SRM 7.
    In SRM 7
    Create Shopping Cart--> In General Data Click the link Set_Values --> Go To Delivery Address/Performance Location tab
    All the fields here are input ready, how can we make these read only?
    Thanks a ton
    Anubhav

    Please I need help too on this :
    When I try to create a SC I get the default address as below which was the og unit address :
    It is picking the address from the Org unit :
    Now If I check the user attributes That I have now added address number data should have been populated .   The attributes address are also seen correctly below in the attributes section below :
    The attributes address are also seen correctly below in the attributes section below :
    However when I create a SC 1001000515 created in test it has Delivery address as blank stored :
    Please can soe  one guide me is this a bug ?

  • How to make fields Read only on all tabs in one go with the help of feeder classes in SAP EHS?

    I have a requirement where once we press SAVE button i have to make all the fields read only in tabs highlighted below.Which is the best method to do it.?
    There are number of fields in all these tabs and we want to make them read only on particular Action event.How to do it?
    Thanks,
    Vimal

    Hi Vimal,
    As I understood you reformulate this question at this page. I will try to help you there.
    Kind regards, Aliaksandr.

  • Managing External Content Types - make it read only?

    I have a simple SharePoint list with an External Data column. When I edit item where the corresponding data was removed from the External Content Type I get this error:
    No exact match was found. Click the item(s) that did not resolve for more options. You can also use Select button to
    choose External Data.
    I assume this is by design and I cannot delete underlying data and keep the value in the list - is this correct?
    So my question now - is it possible to keep that info in the external list but disable in a picker so new records cannot be created with that particular value? How do I do it?
    Thanks,

    I don't understand the question exactly, could you restate it.  Sorry mate, I might just be braindead.
    But, as far as the issue, it is by design.  the column is a lookup columns which essentially ties to the external data.  if that data is removed, the column on your simple list becomes invalid and any edits of the simple list item will require
    it to be changed.
    are you wanting to make the ECT read only?  that's simple enough.  you can pop open SPD and edit the ECT, then remove the C/E/D operations (create/update/delete).  That will not, however make it read-only in any other systems that access that
    external data, as I assume its not just SP or else it wouldn't be external
    Christopher Webb | MCM: SharePoint 2010 | MCSM: SharePoint Charter | MCT | http://christophermichaelwebb.com

  • How to enable extension button of select-options but make it read only

    Hi all,
    I have select-options with extension on my selection screen. It has to be read only. But when I give screen-input = 0, even the extension button is disabled. So the user cannot see multiple default values of that field. How should I enable the extension button and still make it read-only.
    Thanks in advance.
    Vasu

    Hi, try below sample code:
    data: gv_bukrs type bukrs.
    SELECT-OPTIONS s_one for gv_bukrs.
    at SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        if screen-name = 'S_ONE-LOW' or screen-name = 'S_ONE-HIGH' .
           screen-input = 0.
           MODIFY SCREEN.
        endif.
      ENDLOOP.

  • Can I make a LOB segment tablespace 'READ ONLY' so no backup?

    Greetings
    Environment: Oracle 11.2.0.3 on Solaris 10.5
    LOB newbie here.
    I am currently supporting a database, but not the application, that is loading fairly large XML files into CLOB columns. Today I have 121 LOBSEGMENTs taking up about 1GB of space and in the same tablespace as the owner table.
    I understand that the CLOB data will not be changing that often.
    My issue is now my RMAN backup is much larger and is filling the mount point where the backup files are stored.
    I'd like to move the LOBSEGMENT objects to a different tablespace, back it up once and mark the tablespace as READ ONLY so it doesn't get backed up every time.
    I am currently doing a full database backup every day and archivelog backups every 4 hours.
    Can I use something like: ALTER TABLE 'X' MOVE LOB 'Y' STORE AS TABLESPACE 'Z' ?
    Is it then possible to alter the 'Z' tablespace to READ ONLY and not affect the user's ability to update the other parts of the table?
    Other alternatives are most welcome!!
    Thanks very much!!
    -gary

    Thanks for the quick response.
    I don't want you to give up, I'd just like some advice from your experience.
    Even though I am working in a test environment I was hesitant to execute the above commands so as not to cause the application to fail as the user is loading the XML data.
    I want the tablespace storing the LOBSEGMENTs to be READ ONLY but I wasn't sure if I could specify just the LOBSEGMENT part of a row to be READ ONLY without causing update problems for the other columns in the table.
    I realize the new LOBSEGMENT tablespace will be READ ONLY and the original tablespace with the rest of the data will remain READ WRITE.
    Also, I'm assuming if the CLOB data ever needs to change I should be able to alter the tablespace back to READ WRITE, have the user make the changes, be sure the new data is backed up and alter the tablespace back to READ ONLY.
    Is this how you would handle the situation?
    Thanks very much!
    -gary

  • How to make schema read only ?

    Hi,
    database=10.2.0.3
    o/s=windows
    i want to make a schema read only when users connect to database they can view it update and insert must be restricted to all users how it can be done
    example
    There is XYZ schema in that I have around 200 roles assigned
    anyone have idea pleas do update

    clcarter wrote:
    Or if the schema is all contained in one tablespace ...
    alter tablespace <tblspc> read only;could do the trick ... ;)Of course, then NO user could do any updates . . .
    Don't really know if that's what the OP wanted ...

  • [SOLVED]pacman -Sf zim makes arch read-only filesystem

    Hi,
    Last night I was trying to install zim, it looks like there were a couple packages which weren't properly installed before.  I googled the error I received and found somewhere on the forum the tip to use
    pacman -Sf package
    I ran the command and it installed some sort of new kernel, fstab, something with python, and zim of course.  While it was installing the packages I noticed it moved a couple files around and I'm not quite sure what it all did. anyway when I booted arch this morning it didn't quite make it to gdm, so I quickly booted into ubuntu, mounted my arch partition changed the inittab to boot to init 3.  I then noticed that it mounted the arch / as read-only, I looked around a bit seems like my /etc/fstab was moved to /etc/fstab.pacorig. Now before I start playing around and maybe break things more than they are, anyone have a tip about how to figure out everything that was changed?
    I also noticed that I could login as root without having to use a password which I don't like at all, which is a little scary.
    Last edited by whitethorn (2010-06-26 13:50:11)

    First things first; using the -f/--force flag with pacman is the absolute last resort, when everything else fails, and when you know exactly what you're doing. Using it just because you found a tip on the forum, and clearly without thinking about the potential consequences, is just asking for trouble - and you've got it.
    To fix: your pacman log will tall you what packages were installed, and also has a record of any install-time messages. Comb through that, and work out how to revert the major issues.
    [edit] overlap with loafer - he was faster because he used fewer words.

Maybe you are looking for

  • Changes are not reflecting in instance

    Hi All, I have done CO extension. When i applied through personalization the changes is reflecting and when i removed the CO extension also it is showing the same. Can you please tell me why it is behaving like this? Regards, Murali Edited by: user12

  • How do I get my bookmarks and contacts from my MacBook to my new iPad mini.

    How do I get my bookmarks and contacts from my MacBook on to my new iPad mini?

  • Internal memory error using IMAQ 1394 ver 2.0

    Hi Robert, I apologize for the much belated response to your e-mail. - When I was receiving the fatal memory error I was using the GRAB vi to acquire the data.  The problem seems to go away if I switch to the SNAP acquisition method. - I am not using

  • Settings for optimum use for MBP / Dell 27"

    I recently purchased a Dell 27" monitor (which is lush to use for my MBP main display and xbox360 etc. The MBP display is 1680x1050 but the dell display is 1920x1200 meaning i have to down-rate my display otherwise i have a big blue band around two s

  • Finding Dreamweaver Serial Number

    I tried the Dreamweaver trial and then ordered and installed CS3 from a DVD without uninstalling Dreamweaver. During the download I saw the install software recognize the Trial Dreamweaver on my hard drive and skip that install from the DVD. But now