我的Oracle怎么创建不了触发器

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了我的Oracle怎么创建不了触发器相关的知识,希望对你有一定的参考价值。

我的Oracle怎么创建不了触发器

参考技术A SQL> select * from dba_sys_privs where grantee='SYS';

GRANTEE PRIVILEGE ADMIN_OPTION
------------------------------ ---------------------------------------- ------------
SYS UPDATE ANY CUBE BUILD PROCESS NO
SYS CREATE MINING MODEL NO
SYS DROP ANY ASSEMBLY NO
SYS DROP ANY EDITION NO
SYS CREATE EXTERNAL JOB NO
SYS MANAGE FILE GROUP NO
SYS ADMINISTER SQL TUNING SET NO
SYS MANAGE SCHEDULER NO
SYS CREATE ANY RULE YES
SYS CREATE ANY EVALUATION CONTEXT YES
SYS CREATE ANY CONTEXT NO
SYS MANAGE ANY QUEUE YES
SYS ALTER ANY INDEXTYPE NO
SYS CREATE ANY MATERIALIZED VIEW NO
SYS EXECUTE ANY PROCEDURE NO
SYS ALTER ANY ROLE NO
SYS GRANT ANY ROLE NO
SYS DROP PUBLIC DATABASE LINK NO
SYS CREATE DATABASE LINK NO
SYS CREATE ANY INDEX NO

GRANTEE PRIVILEGE ADMIN_OPTION
------------------------------ ---------------------------------------- ------------
SYS ALTER ANY CLUSTER NO
SYS ALTER ROLLBACK SEGMENT NO
SYS ALTER SESSION NO
SYS AUDIT SYSTEM NO
SYS ADMINISTER SQL MANAGEMENT OBJECT NO
SYS DROP ANY MEASURE FOLDER NO
SYS CREATE ANY CUBE NO
SYS COMMENT ANY MINING MODEL NO
SYS DROP ANY MINING MODEL NO
SYS DROP ANY SQL PROFILE NO
SYS ALTER ANY RULE YES
SYS IMPORT FULL DATABASE NO
SYS CREATE RULE SET YES
SYS EXECUTE ANY EVALUATION CONTEXT YES
SYS FLASHBACK ANY TABLE NO
SYS CREATE ANY DIMENSION NO
SYS EXECUTE ANY INDEXTYPE NO
SYS DROP ANY INDEXTYPE NO
SYS CREATE ANY INDEXTYPE NO
SYS CREATE ANY OPERATOR NO
SYS CREATE LIBRARY NO

GRANTEE PRIVILEGE ADMIN_OPTION
------------------------------ ---------------------------------------- ------------
SYS CREATE ANY DIRECTORY NO
SYS CREATE PROFILE NO
SYS CREATE VIEW NO
SYS INSERT ANY TABLE NO
SYS SELECT ANY TABLE YES
SYS LOCK ANY TABLE NO
SYS DROP ANY TABLE NO
SYS CREATE CUBE NO
SYS INSERT ANY CUBE DIMENSION NO
SYS DROP ANY CUBE DIMENSION NO
SYS ALTER ANY CUBE DIMENSION NO
SYS MANAGE ANY FILE GROUP NO
SYS CREATE ANY SQL PROFILE NO
SYS EXECUTE ANY CLASS NO
SYS CREATE ANY JOB NO
SYS ADVISOR NO
SYS EXPORT FULL DATABASE NO
SYS RESUMABLE NO
SYS DROP ANY OUTLINE NO
SYS DROP ANY DIMENSION NO
SYS UNDER ANY TABLE NO

GRANTEE PRIVILEGE ADMIN_OPTION
------------------------------ ---------------------------------------- ------------
SYS EXECUTE ANY LIBRARY NO
SYS DROP ANY LIBRARY NO
SYS CREATE ANY LIBRARY NO
SYS ALTER ANY TYPE NO
SYS DROP ANY ROLE NO
SYS CREATE ROLE NO
SYS DROP ANY SEQUENCE NO
SYS ALTER ANY SEQUENCE NO
SYS CREATE SEQUENCE NO
SYS CREATE PUBLIC SYNONYM NO
SYS UPDATE ANY TABLE NO
SYS CREATE ROLLBACK SEGMENT NO
SYS UNLIMITED TABLESPACE NO
SYS CREATE TABLESPACE NO
SYS CREATE ANY CUBE BUILD PROCESS NO
SYS DELETE ANY MEASURE FOLDER NO
SYS CREATE MEASURE FOLDER NO
SYS CREATE ANY CUBE DIMENSION NO
SYS ALTER ANY MINING MODEL NO
SYS EXECUTE ANY ASSEMBLY NO
SYS ALTER ANY ASSEMBLY NO

GRANTEE PRIVILEGE ADMIN_OPTION
------------------------------ ---------------------------------------- ------------
SYS CREATE ASSEMBLY NO
SYS CHANGE NOTIFICATION NO
SYS ADMINISTER ANY SQL TUNING SET NO
SYS DROP ANY RULE SET YES
SYS DEBUG ANY PROCEDURE NO
SYS ENQUEUE ANY QUEUE YES
SYS EXECUTE ANY TYPE NO
SYS CREATE ANY TRIGGER NO
SYS CREATE ANY PROCEDURE NO
SYS ALTER DATABASE NO
SYS DROP ANY VIEW NO
SYS CREATE ANY VIEW NO
SYS CREATE SYNONYM NO
SYS DROP ROLLBACK SEGMENT NO
SYS DROP USER NO
SYS CREATE USER NO
SYS FLASHBACK ARCHIVE ADMINISTER NO
SYS DROP ANY CUBE BUILD PROCESS NO
SYS UPDATE ANY CUBE NO
SYS SELECT ANY CUBE NO
SYS SELECT ANY CUBE DIMENSION NO

GRANTEE PRIVILEGE ADMIN_OPTION
------------------------------ ---------------------------------------- ------------
SYS DELETE ANY CUBE DIMENSION NO
SYS CREATE CUBE DIMENSION NO
SYS ALTER ANY EDITION NO
SYS ALTER ANY SQL PROFILE NO
SYS CREATE RULE YES
SYS ALTER ANY EVALUATION CONTEXT YES
SYS CREATE EVALUATION CONTEXT YES
SYS ON COMMIT REFRESH NO
SYS MERGE ANY VIEW NO
SYS CREATE ANY OUTLINE NO
SYS DROP ANY CONTEXT NO
SYS GLOBAL QUERY REWRITE NO
SYS QUERY REWRITE NO
SYS UNDER ANY VIEW NO
SYS CREATE INDEXTYPE NO
SYS CREATE ANY TYPE NO
SYS CREATE TYPE NO
SYS DROP ANY DIRECTORY NO
SYS DROP ANY MATERIALIZED VIEW NO
SYS ANALYZE ANY NO
SYS ALTER PROFILE NO

GRANTEE PRIVILEGE ADMIN_OPTION
------------------------------ ---------------------------------------- ------------
SYS FORCE ANY TRANSACTION NO
SYS AUDIT ANY NO
SYS DROP ANY INDEX NO
SYS CREATE ANY CLUSTER NO
SYS ALTER ANY TABLE NO
SYS CREATE SESSION NO
SYS ALTER SYSTEM NO
SYS CREATE ANY MEASURE FOLDER NO
SYS ALTER ANY CUBE NO
SYS SELECT ANY MINING MODEL NO
SYS CREATE ANY MINING MODEL NO
SYS CREATE JOB NO
SYS EXECUTE ANY RULE YES
SYS DROP ANY EVALUATION CONTEXT YES
SYS GRANT ANY OBJECT PRIVILEGE NO
SYS ALTER ANY OUTLINE NO
SYS ALTER ANY LIBRARY NO
SYS DROP ANY TYPE NO
SYS GRANT ANY PRIVILEGE NO
SYS ALTER RESOURCE COST NO
SYS ALTER ANY TRIGGER NO

GRANTEE PRIVILEGE ADMIN_OPTION
------------------------------ ---------------------------------------- ------------
SYS CREATE TRIGGER NO
SYS FORCE TRANSACTION NO
SYS DROP ANY CLUSTER NO
SYS CREATE CLUSTER NO
SYS COMMENT ANY TABLE NO
SYS CREATE ANY TABLE NO
SYS RESTRICTED SESSION NO
SYS UPDATE ANY CUBE DIMENSION NO
SYS CREATE CUBE BUILD PROCESS NO
SYS CREATE ANY ASSEMBLY NO
SYS SELECT ANY TRANSACTION NO
SYS EXECUTE ANY PROGRAM NO
SYS EXECUTE ANY RULE SET YES
SYS ALTER ANY RULE SET YES
SYS DEQUEUE ANY QUEUE YES
SYS ALTER ANY DIMENSION NO
SYS DROP ANY OPERATOR NO
SYS ALTER ANY OPERATOR NO
SYS CREATE MATERIALIZED VIEW NO
SYS ALTER ANY PROCEDURE NO
SYS CREATE PROCEDURE NO

GRANTEE PRIVILEGE ADMIN_OPTION
------------------------------ ---------------------------------------- ------------
SYS CREATE ANY SEQUENCE NO
SYS DROP PUBLIC SYNONYM NO
SYS ALTER ANY INDEX NO
SYS DELETE ANY TABLE NO
SYS CREATE TABLE NO
SYS ALTER USER NO
SYS BECOME USER NO
SYS DROP TABLESPACE NO
SYS ALTER TABLESPACE NO
SYS INSERT ANY MEASURE FOLDER NO
SYS DROP ANY CUBE NO
SYS EXECUTE ASSEMBLY NO
SYS CREATE ANY EDITION NO
SYS READ ANY FILE GROUP NO
SYS DROP ANY RULE YES
SYS CREATE ANY RULE SET YES
SYS DEBUG CONNECT SESSION NO
SYS ADMINISTER DATABASE TRIGGER NO
SYS ADMINISTER RESOURCE MANAGER NO
SYS CREATE DIMENSION NO
SYS EXECUTE ANY OPERATOR NO

GRANTEE PRIVILEGE ADMIN_OPTION
------------------------------ ---------------------------------------- ------------
SYS CREATE OPERATOR NO
SYS UNDER ANY TYPE NO
SYS ALTER ANY MATERIALIZED VIEW NO
SYS DROP PROFILE NO
SYS DROP ANY TRIGGER NO
SYS DROP ANY PROCEDURE NO
SYS CREATE PUBLIC DATABASE LINK NO
SYS SELECT ANY SEQUENCE NO
SYS DROP ANY SYNONYM NO
SYS CREATE ANY SYNONYM NO
SYS BACKUP ANY TABLE NO
SYS MANAGE TABLESPACE NO

你把 SYS 换成你自己的用户名 查查看
参考技术B 是不是权限的问题
用管理员试试可以不可以以创建本回答被提问者采纳
参考技术C Oracle 报什么错误?
是没有创建触发器的权限?
还是指定名字的触发器已经存在了?
还是语法错得太离谱?
参考技术D 你是否具有权限,最好说的具体一点

以上是关于我的Oracle怎么创建不了触发器的主要内容,如果未能解决你的问题,请参考以下文章

关于oracle触发器问题请教

oracle 创建触发器问题

尝试创建我的第一个 oracle 触发器时出现问题

navicat premium怎么用

Oracle 建立触发器比较两张表相同字段的数据,再更新另一个字段

oracle 数据库的触发器