Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> HP-UX 11i/8.1.7/USERENV Question...I guess...

HP-UX 11i/8.1.7/USERENV Question...I guess...

From: Vergara, Michael (TEM) <mvergara_at_guidant.com>
Date: Thu, 24 Oct 2002 15:13:35 -0800
Message-ID: <F001.004F341C.20021024151335@fatcity.com>


I am trying to insert data into a remote table through a database link.

This is the SQL and the error. 'dba_checks' is a synonym for the remote table. Two prior inserts in the script work just fine. MAILER is the name of the remote database.

I'm puzzled. Any suggestions?

Thanks,
Mike

SQL> l
  1 insert into dba_checks (sid, check_date, check_condition, check_status)   2 select 'DBNAME', trunc(sysdate), 'Days since hot backup',   3 to_char(round(max(sysdate - VB.time)))   4* from V$BACKUP VB
SQL> /
insert into dba_checks (sid, check_date, check_condition, check_status)

                                                                       *
ERROR at line 1:
ORA-02070: database MAILER does not support operator USERENV in this context

SQL>
SQL> desc dba_checks

 Name                            Null?    Type
 ------------------------------- -------- ----
 SID                             NOT NULL VARCHAR2(8)
 CHECK_DATE                      NOT NULL DATE
 CHECK_CONDITION                 NOT NULL VARCHAR2(30)
 CHECK_STATUS                             VARCHAR2(80)
 CHECK_REPORT                             LONG

SQL>

---
===========================================================================
Michael P. Vergara
Oracle DBA
Guidant Corporation


--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Vergara, Michael (TEM) INET: mvergara_at_guidant.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Received on Thu Oct 24 2002 - 18:13:35 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US