📄 policy_drop.sql
字号:
/*************************************************************************
* The contents of this file are subject to the Compiere License. You may
* obtain a copy of the License at http://www.compiere.org/license.html
* Software is on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
* express or implied. See the License for details. Code: Compiere ERP+CPM
* Copyright (C) 1999-2001 Jorg Janke, ComPiere, Inc. All Rights Reserved.
*************************************************************************
* $Id: Policy_Drop.sql,v 1.3 2002/10/21 04:49:45 jjanke Exp $
***
* Title: Drop Policies
* Description:
************************************************************************/
DECLARE
CURSOR Cur_Tables IS
SELECT *
FROM DBA_Policies
ORDER BY 2;
BEGIN
Compiere_Context.Login('Compiere','Internal','Server');
DBMS_OUTPUT.PUT_LINE('Dropping Policies ...');
FOR t IN Cur_Tables LOOP
BEGIN
DBMS_OUTPUT.PUT(InitCap(t.Object_Name));
DBMS_RLS.DROP_POLICY (
NULL, -- object_schema
t.Object_Name, -- object_name
t.Policy_Name); -- policy_name
DBMS_OUTPUT.PUT_LINE(' ok');
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE(' * not found *');
END;
END LOOP;
END;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -