你怎么备份需要让表空间只读呢?

解决方案 »

  1.   

    在命令行中运行
    sqlplusw /nolog
    SQL> connect internal
    已连接到空闲例程。
    SQL> startup
    ORACLE 例程已经启动。Total System Global Area   97957132 bytes
    Fixed Size                    70924 bytes
    Variable Size              43380736 bytes
    Database Buffers           54427648 bytes
    Redo Buffers                  77824 bytes
    数据库装载完毕。
    数据库已经打开。
    SQL> select * from v$tablespace
      2  ;       TS# NAME
    ---------- ------------------------------
             0 SYSTEM
             3 TEMP
             1 RBS
             5 INDX
             4 TOOLS
             6 DRSYS
             2 USERS已选择7行。SQL> alter tablespace users read write;
    alter tablespace users read write
    *
    ERROR 位于第 1 行:
    ORA-01646: ???'USERS'???? - ???????
    SQL> alter session set nls_language=american;Session altered.SQL> alter tablespace users read write;
    alter tablespace users read write
    *
    ERROR at line 1:
    ORA-01646: tablespace 'USERS' is not read only - cannot make read write
    SQL> alter tablespace users read only;Tablespace altered.SQL> alter tablespace users read write;Tablespace altered.SQL>