DBA_TRIGGERS 视图提供数据库中所有触发器的信息。
SYS.user_mviews 系统中所有物化视图的信息
V$LONG_EXEC_SQLS 显示系统最近 1000 条执行时间超过预定值的 SQL 语句。默认预定值为 1000 毫秒
v$err_info 显示系统中的错误码信息
DBA_CONSTRAINTS 提供数据库中表上的所有约束的相关信息
DBA_INDEXES 提供数据库中的所有索引的相关信息
查看错误码详解:
select * from v$err_info where code=‘错误码’
禁用某用户的约束:
select ‘alter table’||’ ‘||owner||’.’||table_name||’ ‘||‘disable constraint’||’ ‘||constraint_name||’;’ from dba_constraints where constraint_type=‘U’ and owner=‘DMHS’
启用某用户的约束:
select ‘alter table’||’ ‘||owner||’.’||table_name||’ ‘||‘enable constraint’||’ ‘||constraint_name||’;’ from dba_constraints where constraint_type=‘U’ and owner=‘DMHS’
禁用单个约束:
alter table 表名 disable constraint 约束名 [cascade];
DM 武汉达梦数据库股份有限公司
24小时免费服务热线:400 991 6599
达梦技术社区:https://eco.dameng.com