http://luotaoyang.blog.51cto.com/545649/281590

Managing an Oracle Instance
1 Connect to the database as user SYS and shut down the database.
2 With the database shut down, create an SPFILE from the PFILE. The SPFILE will be created in $ORACLE_HOME/dbs.
3 From the operating system, view the SPFILE.
4 Connect as user SYS, and start the database using the SPFILE.
5 a Shut down the database and open it in read-only mode.
b Connect as user HR password HR and insert a row into the REGIONS table as
follows:
INSERT INTO regions VALUES (5, 'Mars');
What happens?c Put the database back in read-write mode.
6 a Connect as user HR password HR and insert the following row into the REGIONS
table; do not commit or exit.
INSERT INTO regions VALUES (5, 'Mars');
b In a new telnet session start SQL*Plus. Connect user SYS and perform
a SHUTDOWN TRANSACTIONAL.
c Roll back the insert in the HR session and exit.
What happens to the HR session?
What happens to the SYS session? 

解决方案 »

  1.   

    b Connect as user HR password HR and insert a row into the REGIONS table as
    follows:
    INSERT INTO regions VALUES (5, 'Mars');
    What happens?结果:第 1 行出现错误:
    ORA-01552: 非系统表空间 'USERS' 不能使用系统回退段
      

  2.   

    b Connect as user HR password HR and insert a row into the REGIONS table as
    follows:
    INSERT INTO regions VALUES (5, 'Mars');
    What happens?插入不成功,因为只读模式下不能插入。b In a new telnet session start SQL*Plus. Connect user SYS and perform
    a SHUTDOWN TRANSACTIONAL.     
    执行后,sys这窗口会hang在这,不动(因为有事务未完成)
    c Roll back the insert in the HR session and exit.
    sys 窗口开始提示关闭信息,一直到database closed.(因为hr用户的事务已经结束) sys session结束
    hr  窗口连接断开。(sys用户的shutdown 已经开始运行) hr session结束
    What happens to the HR session?
    What happens to the SYS session?  
      

  3.   

    6 a Connect as user HR password HR and insert the following row into the REGIONS
    table; do not commit or exit.
    INSERT INTO regions VALUES (5, 'Mars');
    b In a new telnet session start SQL*Plus. Connect user SYS and perform
    a SHUTDOWN TRANSACTIONAL.
    c Roll back the insert in the HR session and exit.
    What happens to the HR session?
    What happens to the SYS session?  SYS session will be blocking by the HR session. after HR session rollback, SYS session will  shutdown down the database
    SYS会话被HR会话阻塞,待HR会话回滚后,SYS才能关闭数据库
      

  4.   

    是Fundamentals I第三章后面的练习吧,不太清楚你问什么,有兴趣可以加我qq342428085我们讨论讨论