Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> HP-UX 11i/8.1.7/USERENV Question...I guess...
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:
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 CorporationReceived on Thu Oct 24 2002 - 18:13:35 CDT
--
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).
![]() |
![]() |