为什么我的新用户无法在 SQL Developer 中创建新连接?
Why i can not create new connection by my new user in SQL Developer?
当我通过新用户创建新连接时,出现此错误:
enter image description here
Status: Failure -Test failed: ORA-00604: error occurred at recursive
SQL level 1 ORA-02003: invalid USERENV parameter ORA-06512: at line 2
感谢帮助
你那里没有登录触发器吗? 您 可能没有创建过,但其他人可能创建过。例如:
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
所以管理员可能在您不知情的情况下这样做了?
当我通过新用户创建新连接时,出现此错误: enter image description here
Status: Failure -Test failed: ORA-00604: error occurred at recursive SQL level 1 ORA-02003: invalid USERENV parameter ORA-06512: at line 2
感谢帮助
你那里没有登录触发器吗? 您 可能没有创建过,但其他人可能创建过。例如:
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
所以管理员可能在您不知情的情况下这样做了?