Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Odd sysdate construction
Vladimir Begun wrote:
> Freeman, Donald wrote: > >>select SYSDATE@! from dual; >>This appeared in a client query (actually it was trunc(sysdate@!) ) >>What is the @!? Its valid in the Oracle takes it but I can't find any = >>documentation as to what it is. It seems to act the same as plain old = >>sysdate. But it's the only place where @! Is allowed. > > Please review: > http://www.orafaq.net/maillist/oracle-l/2003/10/17/1450.htm
I got a message from one of the list's participants, and I believe it's necessary to provide a clarification:
CREATE USER t1 IDENTIFIED BY t1;
CREATE USER t2 IDENTIFIED BY t2;
GRANT CREATE SESSION, CREATE DATABASE LINK TO t1;
GRANT CREATE SESSION TO t2;
CREATE OR REPLACE TRIGGER sys.trg$t1
AFTER LOGON
ON T1.SCHEMA
BEGIN
EXECUTE IMMEDIATE 'alter session set events = ''10046 trace name context forever, level 12'' tracefile_identifier=''t1''';
END;
/
CREATE OR REPLACE TRIGGER sys.trg$t2
AFTER LOGON
ON T2.SCHEMA
BEGIN
EXECUTE IMMEDIATE 'alter session set events = ''10046 trace name context forever, level 12'' tracefile_identifier=''t2''';
END;
/
CONNECT t1/t1
CREATE DATABASE LINK t1_t2 CONNECT TO t2 IDENTIFIED BY t2 USING 'fake';
-- fake is a fake connect string
SELECT sysdate FROM dual_at_t1_t2;
SELECT user FROM dual_at_t1_t2;
-- http://www.freelists.org/webpage/oracle-lReceived on Wed Jan 12 2005 - 15:45:57 CST
![]() |
![]() |