Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> SHUTDOWN TRANSACTIONAL problem

SHUTDOWN TRANSACTIONAL problem

From: TheSlawek <theslawek_at_yahoo.com>
Date: 6 Dec 2001 14:14:31 -0800
Message-ID: <995df7f9.0112061414.f29219d@posting.google.com>


Hi All,

Here is a simple scenario...

  1. Three sqlplus sessions started (817 or 901 database, doesn't matter)
  2. Two sessions (1 and 2) are used to simulate transaction activities and the third one (3) to shutdown database.
  3. To start transaction I issue sqlplus> SET TRANSACTION READ ONLY; in two sessions 1 and 2 (which prevents session from being disconnected with SHUTDOWN TRANSACTIONAL;)
  4. Issue sqlplus> SHUTDOWN TRANSACTIONAL; in session (3).
  5. Issue COMMIT; in session (1) which terminates transaction.(session is up).
  6. Issue a simple select in session (1) which is suppose to be disconnected after transaction is terminated with COMMIT; (select * from dual, select * from dba_tablespaces... etc...) STATEMENT SELECT RUNS FINE !!!!!!
HERE THE PROBLEM. IF YOU USE SET TRANSACTION READ ONLY IN APPLICATION TO START THE TRANSACTION AND IF ORACLE WAITS UNTIL ALL TRANSACTIONS ARE TERMINATED BEFORE SHUTING DOWN TRANSACTIONAL THEN UNDER HEAVY LOAD THE DATABASE WILL NEVER SHUT DOWN. 7. Issue COMMIT; in session (2) which terminates the last active transaction.
Both session (1 and 2) are disconnected and database shuts down.

--> Is it how this was designed...?

--> Here is what the manual says:

After submitting this statement, no client can start a new transaction on this instance. If clients attempt to start a new transaction, they are disconnected. After all transactions have completed, any client still connected to the instance is disconnected.

Any help would be greatly appreciated...

Regards,
TheSlawek Received on Thu Dec 06 2001 - 16:14:31 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US