Oracle 为什么我不能在SQL Developer中由我的新用户创建新连接?
当我的新用户创建新连接时,会发生以下错误: 状态:失败-测试失败:ORA-00604:递归时出错 SQL级别1 ORA-02003:第2行的USERENV参数ORA-06512无效Oracle 为什么我不能在SQL Developer中由我的新用户创建新连接?,oracle,connection,oracle-sqldeveloper,Oracle,Connection,Oracle Sqldeveloper,当我的新用户创建新连接时,会发生以下错误: 状态:失败-测试失败:ORA-00604:递归时出错 SQL级别1 ORA-02003:第2行的USERENV参数ORA-06512无效 感谢您的帮助您是否没有登录触发器?您可能没有创建一个,但其他人可能已经创建了。例如: SQL> create user demo identified by demo; User created. SQL> grant create session to demo; Grant succeeded
感谢您的帮助您是否没有登录触发器?您可能没有创建一个,但其他人可能已经创建了。例如:
SQL> create user demo identified by demo;
User created.
SQL> grant create session to demo;
Grant succeeded.
SQL> conn demo/demo
Connected.
--
-- so far, so good, now lets create a bad trigger
--
SQL> conn system/admin
Connected.
SQL> create or replace
2 trigger BAD_TRIGGER
3 after logon on database
4 begin
5 if sys_context('USERENV','JUNK') = 'x' then
6 null;
7 end if;
8 end;
9 /
SQL> conn demo/demo
ERROR:
ORA-04088: error during execution of trigger 'SYSTEM.BAD_TRIGGER'
ORA-00604: error occurred at recursive SQL level 1
ORA-02003: invalid USERENV parameter
ORA-06512: at "SYS.STANDARD", line 530
ORA-06512: at line 2
因此,可能是管理员在您不知情的情况下执行了此操作?您在数据库上有任何登录触发器吗?没有,我没有登录触发器