ALTER TABLESPACE tbs READ ONLY; --hangs

Hi all,
The command to put the tablespace on READ ONLY mode is hang and i can´t do that. There is no backup runing at this time. There is no users changing objects on this tablespace. What could be the reason for this problem???
Tks,
Paulo.

It has to perform a checkpoint before changing the status to read only. It could be possible it is taking too long if you have previously performed batch operations and your checkpoint process has a lot of work to do. Verify at your V$SESSION_LONGOPS dynamic view, verify the V$FILESTATUS and look for I/O activity at your target tablespace.
~ Madrid.

Similar Messages

  • Startup command starts database but alter database open read only gives error

    Hi,
    I'm having some strange behavior. I've 10.2.0.3 database on windows 2003.
    The startup command starts database without any issues.
    But if I try following it gives error.
    startup mount (successful no errors)
    alter database open read only; gives error that file Mnnnnnn is missing.
    Why this is happening and how to fix it?
    Thanks.

    You really need to show us exactly what Oracle is telling you, using copy and paste, so we can have some clue.  You can hide details like instance and host names if they show up.
    I'm wondering if you had some messed up offline datafile in a tablespace, where Oracle handles it with startup, but gets upset when you try to open read-only.  It's some bizarro sequence of events like: add a datafile to a tablespace, decide that was a mistake, alter it offline, then remove it from the OS without telling Oracle any more about it.  I've come back from vacation to find scenarios like this, it winds up being a time-bomb trying to recreate a standby later.  Or something like that, I could be unremembering some details.

  • ORA-00060: deadlock detected while waiting for resource with Tbs Read-only

    Hi all,
    We're using Oracle 10.2.0.1 and 9.2.0.4.
    I'm testing the performing of a procedure that inserts, like this:
    CREATE OR REPLACE PROCEDURE P$TAD_TEST
    IS
    TYPE T_T1_C1          IS TABLE OF T1.C1%TYPE INDEX BY PLS_INTEGER;
    TYPE T_T1_DT           IS TABLE OF T1.DT%TYPE INDEX BY PLS_INTEGER;
    P_C1 T_T1_C1;
    P_DT T_T1_DT;
    P_RESULT NUMBER;
    BEGIN
    FOR j IN 1..4032 LOOP
    P_C1(j) := j;
    P_DT(j) := SYSDATE + (j/24/60);
    END LOOP;
    FORALL i IN P_C1.FIRST..P_C1.LAST SAVE EXCEPTIONS
    INSERT INTO T1 VALUES (P_C1(i), P_DT(i));
    EXCEPTION
    WHEN OTHERS THEN
    P_RESULT := SQLCODE;
    END;
    The table T1 is partitioned across 10 tablespaces. The test consist to take
    these tablespace read-only and perform the procedure, and analyze the results,
    like erros.
    but when I perform the procedure, The alert.log indicates the error
    ORA-00060: deadlock detected while waiting for resource.
    Why this occurs only the tablespaces are read-only?
    thank you!!!!

    Hi,
    yesterday we got this error again(in fact twice) and we were able to get the trace file. It says this is NOT oracle error. i was wrong in suspecting Oracle. This is the trace file details. i dont know how to debug this. Any help appreciated.
    *** 2010-06-15 16:24:29.243
    *** ACTION NAME:() 2010-06-15 16:24:29.231
    *** MODULE NAME:(JDBC Thin Client) 2010-06-15 16:24:29.231
    *** SERVICE NAME: 2010-06-15 16:24:29.231
    *** SESSION ID:(482.4266) 2010-06-15 16:24:29.231
    DEADLOCK DETECTED ( ORA-00060 )
    [Transaction Deadlock]
    The following deadlock is not an ORACLE error. It is a
    deadlock due to user error in the design of an application
    or from issuing incorrect ad-hoc SQL. The following
    information may aid in determining the deadlock:
    Deadlock graph:
    ---------Blocker(s)-------- ---------Waiter(s)---------
    Resource Name process session holds waits process session holds waits
    TX-00300021-0000b52d 209 482 X 247 474 S
    TX-002a0009-00011b24 247 474 X 209 482 S
    session 482: DID 0001-00D1-0000000A session 474: DID 0001-00F7-00000008
    session 474: DID 0001-00F7-00000008 session 482: DID 0001-00D1-0000000A
    Rows waited on:
    Session 474: obj - rowid = 0000CED4 - AAAM7UAAxAAAVgSAAA
    (dictionary objn - 52948, file - 49, block - 88082, slot - 0)
    Session 482: obj - rowid = 0000D8BF - AAANi/AAuAAB+z/AAA
    (dictionary objn - 55487, file - 46, block - 519423, slot - 0)
    Information on the OTHER waiting sessions:
    Session 474:
    pid=247 serial=31796 audsid=25502259 user: 62/USER
    O/S info: ....
    program: JDBC Thin Client
    application name: JDBC Thin Client, hash value=2546894660
    Current SQL Statement:
    INSERT QUERY1
    End of information on OTHER waiting sessions.
    Current SQL statement for this session:
    INSERT QUERY2
    Thanks,
    AK

  • Standby database errors - Alter database open read only

    alter database open read only
    AUDIT_TRAIL initialization parameter is changed to OS, as DB is NOT compatible for database opened with read-only access
    Signalling error 1152 for datafile 1!
    Beginning standby crash recovery.
    Serial Media Recovery started
    Managed Standby Recovery starting Real Time Apply
    Media Recovery Waiting for thread 1 sequence 216
    Mon Dec 20 11:58:18 2010
    Standby crash recovery need archive log for thread 1 sequence 216 to continue.
    Please verify that primary database is transporting redo logs to the standby database.
    Wait timeout: thread 1 sequence 216
    Standby crash recovery aborted due to error 16016.
    Errors in file /u01/app/oracle/diag/rdbms/mdm2/MDM2/trace/MDM2_ora_17442.trc:
    ORA-16016: archived log for thread 1 sequence# 216 unavailable
    Recovery interrupted!
    Completed standby crash recovery.
    Signalling error 1152 for datafile 1!
    Errors in file /u01/app/oracle/diag/rdbms/mdm2/MDM2/trace/MDM2_ora_17442.trc:
    ORA-10458: standby database requires recovery
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: '+MDMDG1/mdm2/datafile/system.280.738243341'
    ORA-10458 signalled during: alter database open read only...
    Mon Dec 20 12:13:46 2010
    ALTER DATABASE RECOVER managed standby database using current logfile disconnect
    Attempt to start background Managed Standby Recovery process (MDM2)
    Mon Dec 20 12:13:46 2010
    MRP0 started with pid=23, OS id=18974
    MRP0: Background Managed Standby Recovery process started (MDM2)
    started logmerger process
    Mon Dec 20 12:13:51 2010
    Managed Standby Recovery starting Real Time Apply
    Parallel Media Recovery started with 2 slaves
    Waiting for all non-current ORLs to be archived...
    All non-current ORLs have been archived.
    Media Recovery Waiting for thread 1 sequence 216
    Completed: ALTER DATABASE RECOVER managed standby database using current logfile disconnect
    The above lines are from alert log of standby database.
    Standby standbase
    SQL> alter database open read only;
    alter database open read only
    ERROR at line 1:
    ORA-10458: standby database requires recovery
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: '+MDMDG1/mdm2/datafile/system.280.738243341'
    Parameters set on primary are
    log_archive_dest_1 LOCATION=+MDMDG3/MDM1/ARCH VALID_FOR=(ALL_LOGFILES,ALL_ROLE ) DB_UNIQUE_NAME=MDM1
    log_archive_dest_state_1 ENABLE
    log_archive_dest_2 SERVICE=MDM2 SYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=MDM2
    log_archive_dest_state_2 ENABLE
    dg_broker_config_file1 +MDMDG2/mdm/dg_config/dgconfig1_mdm.dat
    dg_broker_config_file2 +MDMDG2/mdm/dg_config/dgconfig2_mdm.dat
    fal_server MDM2
    standby_file_management AUTO
    log_archive_config dg_config=(MDM1,MDM2)
    db_file_name_convert MDM2, MDM1
    ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE availability ;
    Standby pfile
    *.archive_lag_target=900
    *.audit_file_dest='/u01/app/oracle/admin/MDM2/adump'
    *.audit_trail='db'
    *.compatible='11.2.0.0.0'
    *.control_files='+MDMDG1/MDM2/CONTROLFILE/controlfile01.ctl','+MDMDG2/MDM2/CONTROLFILE/controlfile02.ctl'
    *.db_block_size=8192
    *.db_create_file_dest='+MDMDG1'
    *.db_domain=''
    *.db_file_name_convert='MDM1','MDM2'
    *.db_name='MDM'
    *.db_recovery_file_dest='+MDMDG2'
    *.db_recovery_file_dest_size=10485760000
    *.db_unique_name='MDM2'
    *.dg_broker_config_file1='+MDMDG2/MDM/DG_CONFIG/dgconfig1_MDM.dat'
    *.dg_broker_config_file2='+MDMDG2/MDM/DG_CONFIG/dgconfig2_MDM.dat'
    *.diagnostic_dest='/u01/app/oracle'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=MDM2XDB)'
    *.fal_server='MDM11','MDM12'
    *.instance_name='MDM2'
    *.log_archive_config='dg_config=(MDM1,MDM2)'
    *.log_archive_dest_1='LOCATION=+MDMDG3/MDM2/ARCH VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=MDM2'
    *.log_archive_dest_2='SERVICE=MDM1 ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=MDM1'
    *.log_archive_dest_state_1='ENABLE'
    *.log_archive_dest_state_2='ENABLE'
    *.log_archive_format='MDM_%t_%s_%r.arc'
    *.log_file_name_convert='MDM1','MDM2'
    *.memory_target=838860800
    *.nls_language='ENGLISH'
    *.nls_territory='UNITED KINGDOM'
    *.open_cursors=300
    *.processes=500
    *.remote_login_passwordfile='exclusive'
    *.sessions=555
    *.standby_file_management='AUTO'
    *.undo_tablespace='UNDOTBS1'
    On standby ASM
    ASMCMD [+] > find * *
    +MDMDG1/ASM/
    +MDMDG1/ASM/ASMPARAMETERFILE/
    +MDMDG1/ASM/ASMPARAMETERFILE/REGISTRY.253.737811541
    +MDMDG1/MDM/
    +MDMDG1/MDM2/
    +MDMDG1/MDM2/CONTROLFILE/
    +MDMDG1/MDM2/CONTROLFILE/controlfile01.ctl
    +MDMDG1/MDM2/CONTROLFILE/current.265.738243333
    +MDMDG1/MDM2/DATAFILE/
    +MDMDG1/MDM2/DATAFILE/CANVAS_POPULARITY_DATA.264.738243343
    +MDMDG1/MDM2/DATAFILE/CANVAS_POPULARITY_IDX.277.738243343
    +MDMDG1/MDM2/DATAFILE/MDM_SRC_DATA.282.738243343
    +MDMDG1/MDM2/DATAFILE/MDM_SRC_IDX.275.738243343
    +MDMDG1/MDM2/DATAFILE/MIPS_MDM_DATA.283.738243341
    +MDMDG1/MDM2/DATAFILE/MIPS_MDM_IDX.276.738243343
    +MDMDG1/MDM2/DATAFILE/SYSAUX.281.738243341
    +MDMDG1/MDM2/DATAFILE/SYSTEM.280.738243341
    +MDMDG1/MDM2/DATAFILE/TEST_TBSP1.273.738243345
    +MDMDG1/MDM2/DATAFILE/TEST_TBSP2.272.738243345
    +MDMDG1/MDM2/DATAFILE/UNDOTBS1.256.738243343
    +MDMDG1/MDM2/DATAFILE/UNDOTBS2.279.738243343
    +MDMDG1/MDM2/DATAFILE/USERS.278.738243347
    +MDMDG1/MDM2/ONLINELOG/
    +MDMDG1/MDM2/ONLINELOG/group_1.259.738243429
    +MDMDG1/MDM2/ONLINELOG/group_2.257.738243431
    +MDMDG1/MDM2/ONLINELOG/group_21.284.738243505
    +MDMDG1/MDM2/ONLINELOG/group_22.261.738243505
    +MDMDG1/MDM2/ONLINELOG/group_23.274.738243505
    +MDMDG1/MDM2/ONLINELOG/group_3.258.738243431
    +MDMDG1/MDM2/ONLINELOG/group_31.262.738243513
    +MDMDG1/MDM2/ONLINELOG/group_32.270.738243513
    +MDMDG1/MDM2/ONLINELOG/group_33.263.738243513
    +MDMDG1/MDM2/ONLINELOG/group_4.260.738243431
    +MDMDG2/MDM/
    +MDMDG2/MDM/DG_CONFIG/
    +MDMDG2/MDM2/
    +MDMDG2/MDM2/AUTOBACKUP/
    +MDMDG2/MDM2/AUTOBACKUP/2010_12_20/
    +MDMDG2/MDM2/AUTOBACKUP/2010_12_20/s_738242861.263.738244155
    +MDMDG2/MDM2/CONTROLFILE/
    +MDMDG2/MDM2/CONTROLFILE/controlfile02.ctl
    +MDMDG2/MDM2/CONTROLFILE/current.271.738243335
    +MDMDG2/MDM2/ONLINELOG/
    +MDMDG2/MDM2/ONLINELOG/group_1.270.738243429
    +MDMDG2/MDM2/ONLINELOG/group_2.269.738243431
    +MDMDG2/MDM2/ONLINELOG/group_21.268.738243505
    +MDMDG2/MDM2/ONLINELOG/group_22.272.738243505
    +MDMDG2/MDM2/ONLINELOG/group_23.262.738243505
    +MDMDG2/MDM2/ONLINELOG/group_3.273.738243431
    +MDMDG2/MDM2/ONLINELOG/group_31.266.738243513
    +MDMDG2/MDM2/ONLINELOG/group_32.265.738243513
    +MDMDG2/MDM2/ONLINELOG/group_33.264.738243513
    +MDMDG2/MDM2/ONLINELOG/group_4.261.738243431
    +MDMDG3/MDM/
    +MDMDG3/MDM/ARCH/
    +MDMDG3/MDM2/
    +MDMDG3/MDM2/ARCH/
    -- Please can I know how to open read only standby database.

    user5846399 wrote:
    ORA-16016: archived log for thread 1 sequence# 216 unavailable
    Recovery interrupted!archived log for thread 1 sequence# 216
    This file is needed for recovery, Find it and move it to the standby database side.

  • Which table shows the tablespace in read-only mode or read-write mode.

    HI All,
    Can someonoe help me out to find which table shows whether the a tablespace is in Read-only mode or Read-write.
    Thanks,
    naveen

    Try this:
    select tbl.table_name, tb.tablespace_name, TB.STATUS from dba_tablespaces tb, dba_tables tbl
    where TB.TABLESPACE_NAME = tbl.TABLESPACE_NAME and TB.TABLESPACE_NAME = 'YOUR_TABLESPACE_NAME' and tbl.table_name = 'TABLE_NAME'

  • 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

  • Read Only Tablespace Backup Issue

    Hii!!
    I had been trying to to take Read Only Table space Backup. So, firstly changed the tablespace using
    SQL> alter tablespace users read only;
    Tablespace altered.
    2. Then took backup of all the data files using OS Copy command.
    Now , the issue i am facing is that can i change the table space to read_write mode???? If yes , then how?? , plz help...

    I had been trying to to take Read Only Table space Backup. So, firstly changed the tablespace using
    SQL> alter tablespace users read only;
    Tablespace altered.
    2. Then took backup of all the data files using OS Copy command.
    Now , the issue i am facing is that can i change the table space to read_write mode???? If yes , then how?? , plz help...Yes you can do,
    SQL> alter tablespace users read write;After successful restore,
    sys@11GDEMO> select tablespace_name,status from dba_tablespaces where tablespace_name='CKPT';
    TABLESPACE_NAME                STATUS
    CKPT                           ONLINE
    sys@11GDEMO> alter tablespace ckpt read only;
    Tablespace altered.
    sys@11GDEMO> select tablespace_name,status from dba_tablespaces where tablespace_name='CKPT';
    TABLESPACE_NAME                STATUS
    CKPT                           READ ONLY+
    sys@11GDEMO> alter tablespace ckpt read write;+
    Tablespace altered.
    sys@11GDEMO> select tablespace_name,status from dba_tablespaces where tablespace_name='CKPT';
    TABLESPACE_NAME                STATUS
    CKPT                           ONLINE+
    sys@11GDEMO>
    Edited by: CKPT on Jul 6, 2011 11:22 AM

  • 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

  • Is there any performance value to making a tablespace READ ONLY?

    In 9i, if I were to set a tablespace which only contains data to be reported over - is there any value in making it READ ONLY other than "safety" of the data? I am particularly interested to know if it can increase performance.
    Thanks

    When you say safety, you are partly correct, because data cannot be deleted, but it can be dropped, check the below SQL statements.
    With regard to performance, yes you will gain some. For better performance while accessing data in a read-only tablespace, you can issue a query that accesses all of the blocks of the tables in the tablespace just before making it read-only. A simple query, such as SELECT COUNT (*), executed against each table ensures that the data blocks in the tablespace can be subsequently accessed most efficiently. This eliminates the need for Oracle to check the status of the transactions that most recently modified the blocks.
    http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96521/tspaces.htm#922
    SYS@BABU> create tablespace test_ts datafile 'D:\ORACLE\ORADATA\TEST_TS1.DAT' SIZE 15M
      2  EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M;
    Tablespace created.
    SYS@BABU> CREATE TABLE TAB1 (A NUMBER) tablespace test_ts ;
    Table created.
    SYS@BABU> BEGIN
      2  FOR A IN 1..10 LOOP
      3  INSERT INTO TAB1 VALUES (A);
      4  END LOOP;
      5  COMMIT;
      6  END;
      7  /
    PL/SQL procedure successfully completed.
    SYS@BABU> ALTER TABLESPACE test_ts READ ONLY;
    Tablespace altered.
    SYS@BABU> DELETE FROM TAB1;
    DELETE FROM TAB1
    ERROR at line 1:
    ORA-00372: file 6 cannot be modified at this time
    ORA-01110: data file 6: 'D:\ORACLE\ORADATA\TEST_TS1.DAT'
    SYS@BABU> truncate table TAB1;
    truncate table TAB1
    ERROR at line 1:
    ORA-00372: file 6 cannot be modified at this time
    ORA-01110: data file 6: 'D:\ORACLE\ORADATA\TEST_TS1.DAT'
    SYS@BABU> DROP TABLE TAB1 ;
    Table dropped.

  • 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 ...

  • What is the difference between alter database and alter tablespace?

    Hi
    I was searching for the difference between these 2 commands and have gotten not much conclusive result. Can anyone enlighten me on what is the difference if I were to use ALTER DATABASE OPEN READ ONLY compared to ALTER TABLESPACE x READ ONLY?
    My objective to is control, such that sometimes users can edit the database, and other times, not possible to do so.
    Thanks in advance.
    wy

    Hi,
    A database can be made with more than one tablespace.
    You can have a table called A into a tablespace TSA and a table called B into a tablespace TSB, then if you use ALTER DATABASE OPEN READ ONLY any tablespace can be writen, but if you use ALTER TABLESPACE A READ ONLY, you can't write, insert into table A because it is read only, but you can write, insert rows into the table called B because the tablespace B isn't read only.
    You need to do ALTER TABLESPACE B READ ONLY to deny the inserts into table B.
    You should do this for all tablespace that make the database.
    Regards,
    Jordi

  • 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

  • When I converted a file from PDF to WORD.DOC it opened as Read Only and I'm unable to alter any of the text.  How can I solve this problem?

    When I tried to convert a file from PDF to WORD.DOC it opened as Read Only and I'm unable to alter any of the text.  How do I solve this problem?  I don't know how to change it from Read Only.

    Dear Sara
    Thank you very much for sending the converted file.  Yes, I am able to edit it - that will be very useful to me and I appreciate your help.
    Referring to your previous message when you said you'd converted via Acrobat and not Acrobat.com, I'm converting via Acrobat.com because that's the only option that is shown (how do I convert via Acrobat? - perhaps that would be more successful).  I'm using the Export PDF website, and the OCR is enabled to "Recognize text in English UK".  However, I've just tried converting a different LPA pdf form, this time for Health & Welfare https://www.gov.uk/government/uploads/system/uploads/attachment_data/file/245571/LPA114_He alth_welfare_LPA.pdf and again I have the same problem as before.  I've altered it from "Read only" and thought I'd then be able to enter text, but "Drawing Tools" is shown in the pane and I'm unable to enter anything onto the form - everything appears to be in images.  Also, the lettering on the heading of' page 1 has become jumbled, with the word "Public" overlaying the word "Guardian."  Any suggestions as to what it is I'm doing wrong would be welcome - I don't like to be beaten!
    Regards,
    Judith.

  • Backing up database with read-only tablespaces

    I am trying to develop a script that will dynamically build RMAN scripts for backing up
    a database with read-only tablespaces. The application running on this database creates
    new tablespaces in read-write mode on weekly basis, populates them, and then puts them in read-only mode. So I need to backup all read-write tablespaces plus take backup of all read-only tablespaces once. The problem is that the application also includes a process that puts a tablespace back into read-write mode, updates it, and puts it back into read-write mode. So I need to be able to access "a history" of the tablespace - when was it put into read-only mode - to compare it with a history of backups. While history of backups is available in RMAN views, I couldn't find any way to extract tablspaces
    history.
    There should be RMAN command to the effect
    "backup all read-write tablespaces and read-only tablespaces if they have not been backed up at least once since becoming read-only".
    Regards,
    Sev
    null

    just rsync the files to a compressed Zpool. do this using shadow migration, and you only loose access to the data for a few seconds.
    1) make new dataset with compression
    2) enable shadow migration between the new and old
    3) change the database to use the new location
    4) watch as data is automatically copied and compressed :-)
    the the down side, you need extra space to pull the off.

  • Read only source duplicate

    Hi
    1-) If the source database is read only, do i still need recovery in the destination when i active duplicate ?
    2-) If i issue, "alter database read only", does system,undo tablespace become read only as well ? As far as i know, system tablespace can never become read only.
    3-) If I manually put all tablespaces to read only mode (except undo,system ) and active duplicate source database. Do i still neeed recover on destination ?
    Thanks

    Hi,
    >>1-) If the source database is read only, do i still need recovery in the destination when i active duplicate ?
    Please check the status of tablespace in database and decide.  If the database is opened in read only mode, why do you think it needs recovery ? did you try to corrupt some data files manually at OS level ?
    2-) If i issue, "alter database read only", does system,undo tablespace become read only as well ? As far as i know, system tablespace can never become read only.
    No, You can check the status of these files yourself as below:
    I have run this query on standby active database and result comes;
    select TABLESPACE_NAME, STATUS from dba_tablespaces where TABLESPACE_NAME in ('SYSAUX', 'SYSTEM', 'UNDOTBS1') ;
    TABLESPACE_NAME                STATUS
    SYSAUX                        ONLINE
    SYSTEM                        ONLINE
    UNDOTBS1                      ONLINE
    3-) If I manually put all tablespaces to read only mode (except undo,system ) and active duplicate source database. Do i still need recover on destination ?
    It is not clear, are you doing rman restore on the other side ?
    Pradeep

Maybe you are looking for