• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

加班费的离开

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

View Post

用户对自己DDL权限的限制

这是在ORACLE中实现限制用户对自己对象的DDL权限 (触发器实现)的代码

create or replace trigger ddl_refuse_trig
before ddl on schema
declare
v_ipaddress varchar2(20);
begin
select sys_context('userenv','ip_address') into v_ipaddress from dual;
if v_ipaddress <> '192.168.1.152' then
raise_application_error(-20099,'Sorry,You can not execute the command.Please contact the DBA',false);
end if;
end;
/

本文来自: 涿州无 痛 人 流医院 http://www.zzrenliu120.com

posted on 2012-08-09 09:49  加班费的离开  阅读(241)  评论(0)    收藏  举报

刷新页面返回顶部
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3