Home » RDBMS Server » Server Administration » row archival visibility session parameter (DB12.x)
row archival visibility session parameter [message #607636] Mon, 10 February 2014 07:38
John Watson
Messages: 8960
Registered: January 2010
Location: Global Village
Senior Member
Anyone have a way to detect the current value of the row archival visibility session parameter? ALL or the default of ACTIVE? I can't see it anywhere obvious, like userenv or v$session or a dbms_ilm procedure.
If anyone isn't familiar with it, this is how it works:
orclz> alter table emp row archival;

Table altered.

orclz> update emp set ora_archive_state=1 where hiredate<to_date('1985','yyyy');

12 rows updated.

orclz> select * from emp;

     EMPNO ENAME      JOB              MGR HIREDATE                   SAL
---------- ---------- --------- ---------- ------------------- ---------- ------
      7788 SCOTT      ANALYST         7566 1987-04-19 00:00:00       3000
      7876 ADAMS      CLERK           7788 1987-05-23 00:00:00       1100

orclz> alter session set row archival visibility=all;

Session altered.

orclz> select * from emp;

     EMPNO ENAME      JOB              MGR HIREDATE                   SAL
---------- ---------- --------- ---------- ------------------- ---------- ------
      7369 SMITH      CLERK           7902 1980-12-17 00:00:00        800
      7499 ALLEN      SALESMAN        7698 1981-02-20 00:00:00       1600
      7521 WARD       SALESMAN        7698 1981-02-22 00:00:00       1250
      7566 JONES      MANAGER         7839 1981-04-02 00:00:00       2975
      7654 MARTIN     SALESMAN        7698 1981-09-28 00:00:00       1250
      7698 BLAKE      MANAGER         7839 1981-05-01 00:00:00       2850
      7782 CLARK      MANAGER         7839 1981-06-09 00:00:00       2450
      7788 SCOTT      ANALYST         7566 1987-04-19 00:00:00       3000
      7839 KING       PRESIDENT            1981-11-17 00:00:00       5000
      7844 TURNER     SALESMAN        7698 1981-09-08 00:00:00       1500
      7876 ADAMS      CLERK           7788 1987-05-23 00:00:00       1100
      7900 JAMES      CLERK           7698 1981-12-03 00:00:00        950
      7902 FORD       ANALYST         7566 1981-12-03 00:00:00       3000
      7934 MILLER     CLERK           7782 1982-01-23 00:00:00       1300

14 rows selected.

orclz>
Any insight gratefully received.
Previous Topic: After installation Oracle not started
Next Topic: delete data in a table
Goto Forum:
  


Current Time: Thu Nov 28 21:32:14 CST 2024