Oracle TO_LABEL_LIST
Version 12.2.0.1

General Information
Library Note Morgan's Library Page Header
Coming to OpenWorld 2018? Be sure to visit the TidalScale booth in Moscone South and learn how to solve performance problems and lower costs with Software Defined Servers. Before you visit the booth, or if you can't make it this year, check out TidalScale at www.tidalscale.com. Be sure to click on the Solutions link and look through the Oracle resources.
Purpose Internal component of Label Security
AUTHID DEFINER
Dependencies
LBAC_CACHE LBAC_LABEL_LIST LBAC_STANDARD
LBAC_LABEL    
Documented No
First Available Not known
Security Model Owned by SYS with EXECUTE granted to PUBLIC
Source {ORACLE_HOME}/rdbms/admin/prvtolsdd.plb
 
FROM_LABEL
Undocumented

Demo code from $ORACLE_HOME/rdbms/admin/olse112.sql
to_label_list.from_label(
polid  IN BINARY_INTEGER
label1 IN XMLTYPE
label2 IN XMLTYPE
label3 IN XMLTYPE
label4 IN XMLTYPE
label5 IN XMLTYPE
label6 IN XMLTYPE
...
BEGIN
  FOR erow IN cur LOOP
    IF erow.MAX_READ IS NOT NULL THEN

      SELECT NLABEL INTO nlabel
      FROM LBACSYS.ols$lab
      WHERE ILABEL=erow.MAX_READ;

      maxr_label := LBACSYS.lbac_label.new_lbac_label(nlabel);

      SELECT NLABEL INTO nlabel
      FROM LBACSYS.ols$lab
      WHERE ILABEL=erow.MAX_WRITE;

      maxw_label := LBACSYS.lbac_label.new_lbac_label(nlabel);

      SELECT NLABEL INTO nlabel
      FROM LBACSYS.ols$lab
      WHERE ILABEL=erow.MIN_WRITE;

      minw_label := LBACSYS.lbac_label.new_lbac_label(nlabel);

      SELECT NLABEL INTO nlabel
      FROM LBACSYS.ols$lab
      WHERE ILABEL=erow.DEF_READ;

      defr_label := LBACSYS.lbac_label.new_lbac_label(nlabel);

      SELECT NLABEL INTO nlabel
      FROM LBACSYS.ols$lab WHERE
      ILABEL=erow.DEF_WRITE;

      defw_label := LBACSYS.lbac_label.new_lbac_label(nlabel);

      SELECT NLABEL INTO nlabel
      FROM LBACSYS.ols$lab
      WHERE ILABEL=erow.DEF_ROW;

      row_label := LBACSYS.lbac_label.new_lbac_label(nlabel);

      label_list := lbacsys.to_label_list.from_label(erow.pol#, maxr_label, maxw_label, minw_label, defr_label, defw_label, row_label);
    END IF;
    ...
  END LOOP;
  COMMIT;
EXCEPTION
  WHEN OTHERS THEN
    RAISE;
END;

Related Topics
Built-in Functions
Built-in Packages
Security
What's New In 12cR1
What's New In 12cR2

Morgan's Library Page Footer
This site is maintained by Dan Morgan. Last Updated: This site is protected by copyright and trademark laws under U.S. and International law. © 1998-2017 Daniel A. Morgan All Rights Reserved