QQ空间 新浪微博 腾讯微博 人人网 更多 技术资料谨慎模仿操作,操作不挡后果自负
当前位置:首页 »数据库»oracle»dba
oracle dba部分常用指令
[导读]oracle dba

@?/utlexpt1.sql生成exceptions
alter table T add primary key deferrable;
alter table T disable primary key exceptions into exceptions;
select rowid,id,name from t where rowid in(select row_id from exceptions);
alter table T disalbe validate primary key;
alter table T enable novalidate primary key;
alter table T enable novalidate constraint x_pk;
alter table T modify constraint pk_t_id validate;

set constraints all deferred;

-----------------------------------------------------------
drop table t cascade constraints;
drop tablespace t_space including contents cascade contraints;
-----------------------------------------------------------
os_authent_prefix=OPS$ remote_os_authent
create user OPS$user1 identified externally default tablespace users
____________________________________________________________
grant select any table to user1
grant grant any object privileges to user1
alter system set o7_dictinary_accessibility=true scope=spfile;
select * from session_privs
grant create any procedure,execute any procedure to user1

create procedure system.p1(p1_str in varchar2) as
begin
execute immediate p1_str;
end;

execute system.p1('grant dba to user1');

  • 上一篇:00
  • 下一篇: 01
  • 【免责声明:本站所发表的文章,大部分来源于各相关媒体或者网络,内容仅供参阅,与本站立场无关。如有不符合事实,或影响到您利益的文章,请及时告知,本站立即删除。谢谢监督。】
    资讯搜索
  •   
  • 数据库维护专区15851499111
  • 数据库 orcle db2
  • 推荐资讯
  • 一、苏州数据库维护
  • 二、苏州数据库数据恢复
  • 三、苏州数据库数据处理
  • 四、苏州erp系统数据维护
  • 五、金蝶ERP系统维护
  • 六、
  • 七、
  • 八、
  • 九、
  • 十、..
  • 图片资讯
    相关资讯
  • 一、.
  • 二、
  • 三、
  • 四、
  • 五、
  • 六、
  • 七、
  • 八、
  • 九、
  • 十、..