Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java in Education Zoom Meetings

Naoko-JCP-OracleJun 26 2020 — edited Jul 17 2020

Our next Java in Education discussion Zoom meeting will be on July 21, 2020 at 8am PDT.

See the details below.

Time: July 21, 2020 08:00 AM Pacific Time (US and Canada)

Single click URL to join Zoom: https://oracle.zoom.us/j/94675133273?pwd=MDhyMWdWVWlCUUYxOGNHUzdxKzUzQT09

Meeting ID: 946 7513 3273

Password: 13246705

One tap mobile

+16699006833,,94675133273# US (San Jose)

+13462487799,,94675133273# US (Houston)

Dial by your location

        +1 669 900 6833 US (San Jose)

        +1 346 248 7799 US (Houston)

        +1 253 215 8782 US (Tacoma)

        +1 312 626 6799 US (Chicago)

        +1 646 558 8656 US (New York)

        +1 301 715 8592 US (Germantown)

        +32 2 588 4188 Belgium

        +32 2 788 0172 Belgium

        +32 2 788 0173 Belgium

        +32 1579 5132 Belgium

        +32 2 290 9360 Belgium

        +61 731 853 730 Australia

        +61 861 193 900 Australia

        +61 8 7150 1149 Australia

        +61 2 8015 6011 Australia

        +61 3 7018 2005 Australia

        +54 341 512 2188 Argentina

        +54 343 414 5986 Argentina

        +54 112 040 0447 Argentina

        +55 21 3958 7888 Brazil

        +55 11 4680 6788 Brazil

        +1 647 374 4685 Canada

        +1 647 558 0588 Canada

        +1 778 907 2071 Canada

        +1 438 809 7799 Canada

        +1 587 328 1099 Canada

        +57 1 514 0382 Colombia

        +57 2 620 7388 Colombia

        +57 1 508 7702 Colombia

        +65 3165 1065 Singapore

        +65 3158 7288 Singapore

        +44 203 481 5237 United Kingdom

        +44 203 481 5240 United Kingdom

        +44 208 080 6591 United Kingdom

        +44 208 080 6592 United Kingdom

        +44 330 088 5830 United Kingdom

        +44 131 460 1196 United Kingdom

        +52 554 161 4288 Mexico

        +52 556 826 9800 Mexico

        +52 229 910 0061 Mexico

        +27 87 551 7702 South Africa

        +27 87 550 3946 South Africa

Meeting ID: 946 7513 3273

Password: 13246705

Find your local number: https://oracle.zoom.us/u/aEDV3WAav

Join by SIP

94675133273@zoomcrc.com

Join by H.323

162.255.37.11 (US West)

162.255.36.11 (US East)

115.114.131.7 (India Mumbai)

115.114.115.7 (India Hyderabad)

213.19.144.110 (EMEA)

103.122.166.55 (Australia)

209.9.211.110 (Hong Kong SAR)

64.211.144.160 (Brazil)

69.174.57.160 (Canada)

207.226.132.110 (Japan)

Meeting ID: 946 7513 3273

Password: 13246705

Comments

Satyaki_De
It is working perfectly in my laptop.

Did you exit from your SQL prompt or How are you checking that?

Regards.

Satyaki De.
Lakmal Rajapakse
Are you connecting as CLASIE and then logging off.
Hoek
What roles are granted to the user?
DBA role perhaps?
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1844531724208
Lakmal Rajapakse
Martijn,

The DBA role does not prevent the trigger been fired. So I think this is not the cause of the issue...

rgds
Lakmal...
Hoek
Hi Lakmal,

Yes, you're right, thanks for pointing out, I was a bit too hasty with my reply.
I ran some tests (which I should have done in the first place before posting ).
SQL>  create table loginfo(msg varchar2(1000));

Table created.

SQL> create or replace trigger test
  2  before logoff on hoek.schema
  3  begin
  4  insert into loginfo values( user||' logged off @ '||to_char(sysdate, 'dd-mm-yyyy hh24:mi:ss'));
  5  end;
  6  /

Trigger created.

SQL> disc
Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> conn hoek/hoek@xe
Verbonden.
SQL> select * from loginfo;

MSG
--------------------------------------------------------------------------------------------------------------------------
HOEK logged off @ 03-03-2010 21:37:27

1 row selected.

SQL> disc
Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> conn hr/hr@xe
Verbonden.
SQL> disc
Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> conn hoek/hoek@xe
Verbonden.
SQL> select * from loginfo;

MSG
--------------------------------------------------------------------------------------------------------------------------
HOEK logged off @ 03-03-2010 21:37:27
HOEK logged off @ 03-03-2010 21:37:57

2 rows selected.

SQL> disc
Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> conn /@xe as sysdba
Verbonden.
SQL> select * from hoek.loginfo;

MSG
--------------------------------------------------------------------------------------------------------------------------
HOEK logged off @ 03-03-2010 21:37:27
HOEK logged off @ 03-03-2010 21:37:57
HOEK logged off @ 03-03-2010 21:41:17

3 rows selected.

SQL> conn hoek/hoek@xe
Verbonden.
SQL> select * from session_roles;

ROLE
------------------------------
DBA
SELECT_CATALOG_ROLE
HS_ADMIN_ROLE
EXECUTE_CATALOG_ROLE
DELETE_CATALOG_ROLE
EXP_FULL_DATABASE
IMP_FULL_DATABASE
GATHER_SYSTEM_STATISTICS
SCHEDULER_ADMIN
PLUSTRACE
XDBADMIN
XDBWEBSERVICES

12 rows selected.
Having DBA role doesn't matter.
MichaelS
when I logoff either from the terminal and from the APEX's web igu admin
which terminal?

How is APEXs web gui disconnecting?

I assume no regular disconnect in either case is made so no insert into the target table has taken place.

But starting and ending a regular sql*plus session should verify that the trigger is indeed working as expected.
741904
Hello,

With 'terminal' I meant pl*sql terminal.

In order to be sure I'm well disconnected I have made a new trigger but now on the event on 'logon'. It works fine:

CREATE OR REPLACE TRIGGER Trig7174
AFTER LOGON ON CLASIE.SCHEMA
CALL p7174

where p7174 is a procedure inserting a value into a table:

CREATE OR REPLACE PROCEDURE p7174 IS
BEGIN
INSERT INTO TEST1 VALUES('p7174');
END;

Then if I can logon I suppose it's only possible if I've been previously logoff.

So to be clear, I connect through pl*sql and I disconnect from it by the 'disconnect' command.

Thank for all suggestions.
Regards.
Claude

Edited by: claude_belgique on Mar 3, 2010 2:33 PM
1 - 7

Post Details

Added on Jun 26 2020
0 comments
684 views