Force Operation on Remote Database

I have a 3 part UNION ALL query, each part of which runs against a different DB via DB links (the 1st part runs against the local DB).
When I run each part that accesses the remote DB, the query runs totally remotely and runs in under 5 seconds.
However, when I combine them into one query, I see REMOTE inside of a nested loop structure, and the query takes around 20 minutes. No part of the query depends on anything on the local machine; I've had that reviewed. (I also have about 20 other queries with the same structure that generate correct explain plans).
I have verified that the subquery can and should run totally against the remote DB.
Is there any way to force the query to be executed remotely?
The portion of the explain plan looks like this:
SORT GROUP BY
..nested loops
....nested loops
......remote
......remote
....remote
..remote

Tried driving_site with the following results:
1. Local query and 1 remote query with driving_site - works fine!
2. Local query and 2 remote queries each with driving_site - driving site is ignored, back to nested loops
3. Local query 1 remote query with driving site and 1 remote query without driving site - get
ORA-22992: cannot use LOB locators selected from remote tables
ORA-02063: preceding line from PROD
ORA-02063: preceding 2 lines from PDSPROD_B
Note that there is a CLOB in one of the tables, but I am not using that column in the query.
The subqueries look like this:
SELECT /*+ driving_site (c2 ) */ c2.company_name, COUNT (b.customer_id), c2.company_id,
c2.super_domain_info_id, sd2.brand_full_name, &&cl_id_3 AS CLUSTER_ID
FROM v_user_info&&cluster_link_3 b,
company_info&&cluster_link_3 c2,
user_audit_info&&cluster_link_3 u,
super_domain_info&&cluster_link_3 sd2
WHERE b.company_id = c2.company_id
AND b.customer_id = u.customer_id
AND c2.super_domain_info_id = sd2.super_domain_info_id
AND b.account_type = 0
AND b.active_in_company = 'Y'
AND b.company_id NOT IN
(5982737, 5982906, 5982712, 5982736, 5982908, 5977782, 11,
2085412, 2134043, 5874338, 2, 5979364, 5979363, 6, 5980943,
5981023, 12, 5978042, 5922312, 5979201, 5977961, 5982603,
5978602, 5978001, 5981903, 5981423, 5978523, 5879286, 5978284,
5977941, 5977661, 5977801, 5982185, 200, 5978524, 5982603,
5979562, 5979963)
AND u.first_login_time <> TO_DATE ('01/01/1900', 'MM/DD/YYYY')
AND c2.current_membership_id IN (
SELECT cm.ID
FROM cluster_membership&&cluster_link_3 cm
WHERE cm.CLUSTER_ID = &&cl_id_3)
GROUP BY c2.company_name,
c2.company_id,
c2.super_domain_info_id,
sd2.brand_full_name

Similar Messages

  • Unable to get parameter values from a remote database

    I am linking to a remote database view via a synonym in Oracle and trying to retrieve parameter values from it.  The username and password are the same for the local and remote database and I can run the SQL query using SQL plus against the database and values are returned.  However, when I try and run the same query in Crystal Reports (XI) I receive an Oracle error:
    "An attempt was made to connect or log in to a remote database using a connection description that could not be found.
    Action: 
    Specify an existing database link. Query the data dictionary to see all existing database links. See your operating system-specific Net8 documentation for valid connection descriptors. "
    How can it be that Crystal cannot run the query when it is valid in SQL plus?
    Any tips/info would be appreciated.
    many thanks
    Claire
    Oracle is version 10

    When running one of the reports in VS.Net this is the error I receive:
    "A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in crystaldecisions.crystalreports.engine.dll
    Additional information: Failed to retrieve data from the database.
    Details:  [Database Vendor Code: 2019 ]
    Failed to retrieve data from the database.
    Error in File C:\DOCUME1\CLAIRE1.REE\LOCALS~1\Temp\{0C6C6DD5-B958-4E10-A2AA-928C58E1B7CE}.rpt:
    Failed to retrieve data from the database.
    Details:  [Database Vendor Code: 2019 ]"
    When running the same report in Crystal Reports designer I receive this error message:
    "Prompting failed with the following error message: 'List of Values failure: fail to get values. [Cause of error: Failed to retrieve data from the database.  Details: [Database Vendor Code: 2019].  Failure to retrieve data from the database.  Error in File UNKNOWN.RPT.  Failure to retrieve data from the database.  Details: [Database Vendor Code: 2019]]'.
    Error source: prompt.dll Error code: 0x8004380D"
    So this one is also failing in the designer.
    All the parameters in the main report are static and the ones in the subreport are passed in from the main report.

  • Remote Database connection error on local database while running a procedur

    Dear Gurus,
    I am trying to run a procedure to grant Select Access to all objects of a schema to all schema but getting below error messages:
    Error report:
    ORA-02019: connection description for remote database not found
    This is on local database and all required privileges have been given to run this procedure but I dont understand why this error is being thrown every time. I am able to fetch all the tables directly (i.e. SELECT object_name FROM user_objects where OBJECT_TYPE IN('TABLE','VIEW','MATERIALIZED VIEW') AND STATUS='VALID')
    Kindly let me know if you have any solution.
    Procedure detail:
    declare
    sqltxt varchar(250);
    cursor course_det is
    SELECT object_name FROM user_objects where OBJECT_TYPE IN('TABLE','VIEW','MATERIALIZED VIEW') AND STATUS='VALID';
    v_objnm user_objects.object_name%type;
    begin
    open course_det;
    loop
    fetch course_det into v_objnm;
    exit when course_det%notfound;
    sqltxt :='GRANT SELECT ON ' || v_objnm|| ' TO public with grant option';
    EXECUTE IMMEDIATE sqltxt ;
    end loop;
    end;
    System detail:
    Oracle 11.2.0.3/Linux 5.3
    Ragards.
    Edited by: 877938 on Mar 20, 2013 12:27 AM

    Hi,
    It seems you are fetching records from one database to other. for that you need to create dblink for that.
    Create dblink first and then try to fetch records using that dblink.
    ORA-02019: connection description for remote database not found
    Cause: An attempt was made to connect or log in to a remote database using a connection description that could not be found.
    Action: Specify an existing database link. Query the data dictionary to see all existing database links. See your operating system-specific Net8 documentation for valid connection descriptors. 

  • Getting error while calling procedure from remote database

    When I am trying to call child procedure from remote database I am getting below error:
    ORA-02064: distributed operation not supported
    ORA-06512: at "NMUSER.NEW_CUST_UPLOAD", line 740
    (P.S. on line no 740 I issued "commit;" )
    I checked rights,synonym on all the objects they are fine.

    Oracle Error: ORA-02064
    Error Description:
    Distributed operation
    not supported
    Error Cause:
    One of the following
    unsupported operations was attempted:
    1. array execute of a remote update with a subquery that references a dblink,
    or
    2. an update of a long column with bind variable and an update of a second
    column with a subquery that both references a dblink and a bind variable, or
    3. a commit is issued in a coordinated session from an RPC procedure call
    with OUT parameters or function call.
    Cheers,
    Manik.

  • Remote database problem with Geometry data type

    Hello!
    I'm trying to insert and update a spatial table in a remote database. The syntax looks like:
    insert into tableA@remotedb (col1, col2)
    select col1, col2 from tableA
    where col3='abc';
    This works fine with regular tables. But when I try it on spatial tables, I get this error:
    'remote operations not permitted on object tables or user-defined type columns'.
    My table contains geometry datatype and user-defined datatype. Does anyone know how to solve this problem?
    Thanks!

    I created 2 temp tables in the remote db. One contains MDSYS.SDO_Geometry column without user-defined column; the other one has user-defined column without MDSYS.SDO_Geometry. Both got the same error, ORA-22804: remote operations not permitted on object tables or user-defined type columns.
    But strangly, I tried to insert into a local table from a remote table with MDSYS.SDO_Geometry column, and it worked! And I tried the same thing with user-defined column, but it didn't work.
    I wonder why insert sdo_geometry column from local db to remote db didn't work, but it worked the other way round. And inserting user-defined column between db didn't work at all!

  • Select type_address in Portal report's sql query using remote database

    how do i select type_address item from remote database table ?
    I've already create the database link called db_link.
    I've already execute the sql statement in the specified database, and it works.
    for example: ( sql plus in the specified database )
    select syk.alamat_syarikat.alamat1 from MCS_SYARIKAT syk
    for example: ( sql statement in portal report using database link )
    select nama_syarikat, syk.alamat_syarikat.alamat1 from MCS_SYARIKAT@dblink syk
    error massage:
    Unable to describe SQL statement. Please correct it (WWV-13010)
    Invalid SQL statement: select syk.alamat_syarikat.alamat1 from MCS_SYARIKAT@dblink syk (WWV-13005)
    ORA-01001: invalid cursor (WWV-11230)
    ORA-22804: remote operations not permitted on object tables or user-defined type columns (WWV-11230)
    Failed to parse as MCS_PUBLIC - select syk.alamat_syarikat.alamat1 from MCS_SYARIKAT@dblink syk (WWV-08300)

    Here's the actual query:
    SELECT BUILD_EXT_RES_LIST(EXT_FILE.ID) A
    FROM EXT_FILE_RES, EXT_FILE
    WHERE EXT_FILE_RES.ON_OWNER_PROFILE = 'Y' AND
          EXT_FILE.OWNER_ID = :PROFILE AND
          EXT_FILE.ID = EXT_FILE_RES.EXT_ID AND
         (RES_SUBSCRIBER_YN(EXT_FILE.ID,:CURR_ID) = 'YES' OR
          ADMINYESNO(:CURR_ID,:PROFILE) = 'YES')
    ORDER BY EXT_FILE.FILE_NAMEAnd here's the actual error message:
    1 error has occurred
    Query cannot be parsed within the Builder. If you believe your query is syntactically correct, check the ''generic columns'' checkbox below the region source to proceed without parsing. ORA-00904: "SER_IS_ADMINYESNO": invalid identifier

  • Access blob/ord column from remote database

    Hi,
    I am using oracle 10.2.
    I have two database X and Y and on Y database i have the table B with column ORDDOC.
    The db link is created on A to access all tables of B. I can access all tables from B except X.
    Could you please advise how can i access table X from B database.
    Database - Y
    SQL> desc B;
    Name Null? Type
    ATTACHMENT_ID NOT NULL NUMBER(38)
    ATTACHMENT ORDSYS.ORDDOC
    SQL>
    Database - X
    SQL> select * from B@DB_LINK_TRDX2.WORLD;
    select * from B@DB_LINK_TRDX2.WORLD
    ERROR at line 1:
    ORA-22804: remote operations not permitted on object tables or user-defined
    type columns
    SQL>
    Anybody could help pls ?

    Kapil wrote:
    The document is in different database and used by other schemas as well from that database.
    .Net is GUI.Daniel raised a very important point. Moving that document via another database doubles the network load for that operation. And doubles the performance impact on the client.
    Is this in any way a sensible thing to do? Most definitely not.
    Assuming that the client cannot reach the remote database containing the documents, and that can only be done via the local database, then you need to look at options such as materialised views. Replicate the remote content from the remote database to the local database at regular intervals.
    As the data set is large (containing LOB documents), consider fast incremental refreshing (and not pull the entire data set across with each refresh).
    Yes, you can write PL/SQL code that grabs the remote document and copies it into a local LOB and then dish that up to the client. But the impact of this on the network and performance are major concerns that need to be thoroughly evaluated first.

  • 'Connection Description for Remote Database not found' Error

    Hi All,
    I have an interface that loads Oracle DB from an Oracle source(JD Edwards). It is mostly one to one mapping of the columns, and is utilizing LKM Oracle to Oracle(DBLink), IKM Oracle Incremental Update and CKM Oracle.
    I am getting an error when executing the interface which states 'Connection Description for Remote Database Not Found' at the 'Insert Flow into I$ table' step in the Operator logs.
    The below is the content of the error:
    2019 : 42000 : java.sql.SQLException: ORA-02019: connection description for remote database not found
    java.sql.SQLException: ORA-02019: connection description for remote database not found
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:633)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1086)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2984)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3057)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.j(e.java)
         at com.sunopsis.dwg.cmd.h.z(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    Please advice me on the correction.
    Many Thanks!

    Hi All,
    I am seeing things are working fine, when I am using LKM SQL to Oracle in combination with IKM Oracle Incremental Update. It is only in the case of using LKM Oracle to Oracle(DBLINK) in combination with IKM Oracle Incremental Update, that the above mentioned error is thrown.
    Please suggest on the resolution in using LKM Oracle to Oracle(DBLINK) with IKM Oracle Incremental Update...
    Thanks!

  • Connecting to remote database (idle) with Password File Authentication

    Hi all,
    I was wondering if it's possible to connect to a remote database that is shut down (idle instance) as sys user with sysdba privileges? In the book Oracle - All in One on page 210 in the section - Operating System and Password File Authentication it says:
    Connection with operating system or password file authentication is always possible, no matter what state the instance and database are in, and is necessary to issue STARTUP or SHUTDOWN commands.
    Above indicates that it's possible but I'm unable to do so.
    I managed to connect to remote database that was in nomount mode (see below for details).
    When I first tried to connect to a remote database (idle instance) using password file authentication it was giving following error:
    sqlplus sys@ORCL as sysdbaSQL*Plus: Release 11.2.0.3.0 Production on Fri Dec 21 13:59:28 2012
    Copyright (c) 1982, 2011, Oracle. All rights reserved.
    Enter password:
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    Enter user-name:
    After starting the database to nomount mode I was getting following error:
    sqlplus sys@ORCL as sysdbaSQL*Plus: Release 11.2.0.3.0 Production on Fri Dec 21 13:48:36 2012
    Copyright (c) 1982, 2011, Oracle. All rights reserved.
    Enter password:
    ERROR:
    ORA-12528: TNS:listener: all appropriate instances are blocking new connections
    Enter user-name:
    So I added the clause (UR=A) to my listener.ora file and after that it work and I was able to connect:
    sqlplus sys@ORCL as sysdbaSQL*Plus: Release 11.2.0.3.0 Production on Fri Dec 21 14:04:49 2012
    Copyright (c) 1982, 2011, Oracle. All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL>
    I have all necessairly entries in tnsnames.ora on my local host.
    Also I have no problems when connecting as sys user with sysdba when the DB is open but can't get it work on an idle instance.
    I know that I can use operating system authentication but want to know if there is a mistake in the book or I'm doing something wrong.
    Regards,
    Dawid
    Edited by: 978239 on 2012-12-21 06:24

    978239 wrote:
    Hi all,
    I was wondering if it's possible to connect to a remote database that is shut down (idle instance) as sys user with sysdba privileges? In the book Oracle - All in One on page 210 in the section - Operating System and Password File Authentication it says:
    Connection with operating system or password file authentication is always possible, no matter what state the instance and database are in, and is necessary to issue STARTUP or SHUTDOWN commands.
    Above indicates that it's possible but I'm unable to do so.
    I managed to connect to remote database that was in nomount mode (see below for details).
    When I first tried to connect to a remote database (idle instance) using password file authentication it was giving following error:
    sqlplus sys@ORCL as sysdbaSQL*Plus: Release 11.2.0.3.0 Production on Fri Dec 21 13:59:28 2012
    Copyright (c) 1982, 2011, Oracle. All rights reserved.
    Enter password:
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptorSince the database is down, the only way the listener is going to know of it is if you create a static registration by adding an entry for the db in the SID_LIST section of listener.ora
    >
    Enter user-name:
    After starting the database to nomount mode I was getting following error:
    sqlplus sys@ORCL as sysdbaSQL*Plus: Release 11.2.0.3.0 Production on Fri Dec 21 13:48:36 2012
    Copyright (c) 1982, 2011, Oracle. All rights reserved.
    Enter password:
    ERROR:
    ORA-12528: TNS:listener: all appropriate instances are blocking new connections
    Enter user-name:
    So I added the clause (UR=A) to my listener.ora file and after that it work and I was able to connect:
    sqlplus sys@ORCL as sysdbaSQL*Plus: Release 11.2.0.3.0 Production on Fri Dec 21 14:04:49 2012
    Copyright (c) 1982, 2011, Oracle. All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL>
    I have all necessairly entries in tnsnames.ora on my local host.
    Also I have no problems when connecting as sys user with sysdba when the DB is open but can't get it work on an idle instance.
    I know that I can use operating system authentication but want to know if there is a mistake in the book or I'm doing something wrong.
    Regards,
    Dawid
    Edited by: 978239 on 2012-12-21 06:24

  • NSV0: Failed to connect to remote database orcl. Error is ORA-12514

    sGetting error on data guard broker configuration. redologs shiping properly, withot any problems.
    Database: 11gR2 , Linux 64-bit
    [root@redhat ~]# su - oracle
    [oracle@redhat ~]$ sqlplus /nolog
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Jun 18 17:39:07 2010
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    SQL> connect /as sysdba
    Connected.
    SQL> connect sys/oracle@primarydb as sysdba
    Connected.
    SQL> connect sys/oracle@physicaldb as sysdba
    Connected.
    SQL>
    */etc/hosts file contents on all nodes*
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1     localhost.localdomain     localhost
    192.168.1.232     redhat          redhat
    192.168.1.234 rac1          rac1
    primary database (drcorcl.log)
    2010-06-18 17:41:39.972 02010001 1362743835 DMON: CTL_GET_STATUS forwarded to site physicaldb for processing
    2010-06-18 17:41:41.044 NSV1: Site physicaldb returned ORA-16664.
    2010-06-18 17:41:41.045 02010001 1362743821 DMON: Database physicaldb returned ORA-16664
    2010-06-18 17:41:41.045 02010001 1362743821 for opcode = CTL_GET_STATUS, phase = NULL, req_id = 1.1.1362743821
    2010-06-18 17:41:41.045 02010001 1362743821 DMON: CTL_GET_STATUS operation completed
    2010-06-18 17:41:41.050 01000000 1362743836 DMON: MON_PROPERTY operation completed
    2010-06-18 17:41:41.054 01010001 1362743837 DMON: MON_PROPERTY operation completed
    2010-06-18 17:41:41.058 01010001 1362743838 DMON: MON_PROPERTY operation completed
    2010-06-18 17:41:41.062 01010001 1362743839 DMON: CTL_GET_STATUS operation completed
    2010-06-18 17:41:56.045 NSV1: Site physicaldb returned ORA-16664.
    2010-06-18 17:41:56.045 02010001 1362743835 DMON: Database physicaldb returned ORA-16664
    2010-06-18 17:41:56.045 02010001 1362743835 for opcode = CTL_GET_STATUS, phase = NULL, req_id = 1.1.1362743835
    2010-06-18 17:41:56.046 02010001 1362743835 DMON: CTL_GET_STATUS operation completed
    physical standby database (drcorcl.log)
    2010-06-17 00:41:30.410 drcx: could not find task req_id=1.1.1362743821 for PROBE.
    2010-06-17 00:41:45.411 drcx: could not find task req_id=1.1.1362743835 for PROBE.
    2010-06-17 00:42:00.546 NSV0: Failed to connect to remote database orcl. Error is ORA-12514
    2010-06-17 00:42:00.547 NSV0: Failed to send message to site orcl. Error code is ORA-12514.
    2010-06-17 00:42:00.547 DMON: Database orcl returned ORA-12514
    2010-06-17 00:42:00.547 for opcode = HEALTH_CHECK, phase = BEGIN, req_id = 1.1.1362743840
    2010-06-17 00:42:15.414 drcx: could not find task req_id=1.1.1362743840 for PROBE.
    2010-06-17 00:43:15.548 NSV0: Failed to connect to remote database orcl. Error is ORA-12514
    2010-06-17 00:43:15.549 NSV0: Failed to send message to site orcl. Error code is ORA-12514.
    2010-06-17 00:43:15.549 DMON: Database orcl returned ORA-12514
    2010-06-17 00:43:15.549 for opcode = HEALTH_CHECK, phase = BEGIN, req_id = 1.1.1362743841
    Standby Lintener file contents
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = rac1)(PORT = 1521))
    ADR_BASE_LISTENER = /oradisk/oracle
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DNAME = physicaldb)
    (ORACLE_HOME = /oradisk/oracle/product/11.2.0/db)
    (SID_NAME = orcl)
    (SID_DESC =
    (GLOBAL_DNAME = physicaldb_DGMGRL)
    (ORACLE_HOME = /oradisk/oracle/product/11.2.0/db)
    (SID_NAME = ORCL)
    Primary database Listener contents
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.232)(PORT = 1521))
    ADR_BASE_LISTENER = /oradisk/oracle
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DNAME = orcl)
    (ORACLE_HOME = /oradisk/oracle/product/11.2.0/db)
    (SID_NAME = orcl)
    (SID_DESC =
    (GLOBAL_DNAME = orcl_DGMGRL)
    (ORACLE_HOME = /oradisk/oracle/product/11.2.0/db)
    (SID_NAME = orcl)
    TNSNAMES.ora on all nodes
    PRIMARYDB =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.232)(PORT = 1521)))
    (CONNECT_DATA =(SID = orcl))
    LISTENER_PHYSICALDB =(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.234)(PORT = 1521))
    PHYSICALDB =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.234)(PORT = 1521)) )
    (CONNECT_DATA =(SID = orcl))
    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.232)(PORT = 1521)))
    (CONNECT_DATA =(SERVER = DEDICATED)(SID = orcl) )
    )

    Don't use the old syntax 'SID=...' in tnsnames.ora, use 'SERVICE_NAME=...' . Make sure 'SERVICE_NAME' is exactly the same returned by 'lsnrctl status' on both nodes.
    Primary and standby cannot talk to each other currently through the listener:
    ORA-16664: unable to receive the result from a database
    Cause: During execution of a command, a database in the Data Guard broker
    configuration failed to return a result.
    Action: Check Data Guard broker logs for the details of the failure. Fix any
    possible network problems and try the command again.
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Cause: The listener received a request to establish a connection to a database or other service. The connect descriptor received by the listener specified a service name for a service (usually a database service) that either has not yet dynamically registered with the listener or has not been statically configured for the listener. This may be a temporary condition such as after the listener has started, but before the database instance has registered with the listener.
    Action: - Wait a moment and try to connect a second time.
    - Check which services are currently known by the listener by executing: lsnrctl services <listener name>
    - Check that the SERVICE_NAME parameter in the connect descriptor of the net service name used specifies a service known by the listener.
    - If an easy connect naming connect identifier was used, check that the service name specified is a service known by the listener.
    - Check for an event in the listener.log file.
    Werner

  • Querying remote database

    Hi Every one
    I am having around 30 database servers installed geographicaly remote places.I have frequently to make a query and connect by dial up to each place one by one and then collect results and put in excel , then combine.
    Can not I have a tool which dials one by one to each site by winndows dalier and then queries database and puts all in excel file overnight.
    Please help
    Prashant

    prashant13 wrote:
    Thanks , however , almost every time the management asks for new information and then i have to make a query and ask operation staff to work overnight to pull the information.I am seraching for a solution which
    loop
    -- dials a number , which may be lifted from a database table (local)
    --after suceesful connection ,the system logins using sqlplus to remote machine
    --query is fired
    -result is appended to a existing excel /other file at dialing machine
    end loop
    The query almost takes same time because db at every site is same.Well I'm not sure of the exact way you'd do the dialling up as that's more hardware/non-database related, but if the dialling up were to make the remote machine appear as if it was on the network, then the oracle database should be able to access it as a remote database (using [heterogenous services|http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/ds_concepts.htm#sthref3861] if necessary) and query it as such.
    [Create Database Link|http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_5005.htm#SQLRF01205]

  • MOP RC (Maintenance Operation Protocol -Remote Console) function enabled

    So I just had a white hat security finding on my external router. I appeared to be low in the findings and I am unsure if this protocol is even used any more. My router is a Cisco 3825 running IOS 12.3(11r)T2. This is what they reported:
    One or more Cisco routers have the MOP RC (Maintenance Operation Protocol -Remote Console) function enabled, which is a poor security practice. MOP enables personnel on the local network, or a remote network that is bridged to the local network, to obtain access to a remote console on the router if they possess credentials for the device. This is significant because access to router management is usually protected by IP-based ACLs. As a Layer 2 protocol, MOP allows for the circumvention of this type of ACL, making brute force login attempts possible if account lockout is not enabled. If account lockout is enabled, such attempts could result in a denial of service due to user accounts being locked out.
    I fixing this as easy as just running the no mop enabled command in the interface like this article suggests?  http://blogs.cisco.com/security/router_spring_cleaning_-_no_mop_required/

    ya it was a great easy to read article on a feature you should turn off. Still I wonder how many master hackers try to hack that. DECnet who knew right
    Do you apply no mop enable the interface or the subinterface??  Also I should only need to apply it to the interface facing the "internet" right?

  • Error while Creating form on remote Database

    Hi All
    I m getting error while creating form on remote database thru
    Database link
    Line/Column Error
    7099/21 PLS-00454: with a returning into clause, the table
    expression cannot be remote or a subquery
    7099/9 PL/SQL: SQL Statement ignored
    7749/16 PLS-00454: with a returning into clause, the table
    expression cannot be remote or a subquery
    7749/9 PL/SQL: SQL Statement ignored
    and statement at line specified is insert statement. and at end
    of insert statement Returning caluse is there as follows
    RETURNING ROWID INTO "_ROWID";
    This returning clause is causing error. Does anybody knows how
    to handel it??
    Thanks
    Yogesh

    Yogesh
    I haven't seen the ora-03116 problem.
    What version of Portal are you running? Are the databases at the same version? Does your table have longs or anything strange in it?
    Can you query the table via the synonyms and link in sqlplus as the application schema? This is a good test because it eliminates Portal.
    You should try setting up synonyms etc for the emp table. If you still get the problem then Oracle may be able to replicate it. If not, then there's sth funny about your table maybe.
    I agree with Vishnu about creating everything in sqlplus. I create all my links and synonyms in sqlplus. They are all public. I have 2 synonyms: one takes you over the link the other takes you to the right schema. It's flexible and it works.
    data database: D grants to P (local schema) on table T
    public syn T = D.T (sys) (get the right schema)
    portal dbase : public db link to data database connecting as P
    public syn T = T@dblink (sys) (over the link)
    P is a schema created in both databases.
    Test is: P in portal dbase can "select * from T" and gets the right data.
    I never, ever refer to a schema when defining a form. ie. never P.T or D.T or whatever. I always refer simply to a synonym. For the above my form would be defined simply on the table T.
    Hope this helps
    Greg

  • Problem while accessing object in remote database

    Hi All,
    We have a procedure "UPDATE_CONV_DETAILS" created in the remote databse in the "apps" schema. The synonym for the procedure is created in the billing schema(present in the remote database). A dblink is created the local database through which we are tring to access the remote object "UPDATE_CONV_DETAILS".
    Dblink script:
    create public database link PRE_TO_CEL
    connect to BILLING
    identified by BILLING
    using 'MAP1';
    When trying to access the object from the local machine using the schema name.object_name it works fine:
    SQL> DESC APPS.UPDATE_CONV_DETAILS@PRE_TO_CEL
    PROCEDURE APPS.UPDATE_CONV_DETAILS@PRE_TO_CEL
    Argument Name Type In/Out Default?
    IN_MOBILE VARCHAR2 IN
    IN_SERVICE_CODE VARCHAR2 IN
    IN_STATUS VARCHAR2 IN
    OUT_ERROR_CODE NUMBER OUT
    But when trying the access the same object using the synonym_name it gives the error:
    SQL> DESC UPDATE_CONV_DETAILS@PRE_TO_CEL
    ERROR:
    ORA-04043: object APPS.UPDATE_CONV_DETAILS does not exist
    Regards,
    Kirti

    You have two schema.
    apps
    billing
    both reside in remote database.
    there on procedure and on procedure u create one synonym and u want to access it.
    ur remote database name is "map1"
    on ur local database ur create one dblink to access remote database.
    ORA-04043: object string does not exist
    Cause: An object name was specified that was not recognized by the system. There are several possible causes:
    - An invalid name for a table, view, sequence, procedure, function, package, or package body was entered. Since the system could not recognize the invalid name, it responded with the message that the named object does not exist.
    - An attempt was made to rename an index or a cluster, or some other object that cannot be renamed.
    Action: Check the spelling of the named object and rerun the code. (Valid names of tables, views, functions, etc. can be listed by querying the data dictionary.)

  • Trigger inserting CLOB in remote database

    I ma using an after insert row level trigger to replicate a table into a remote database which has a CLOB column. This is not Oracle Replication, only a trigger. I have attempted numerous paths to achieve this with only partial successes. Is there a way to insert into the remote database when using a CLOB?
    Trigger follows: (will not work when the table array values gets large; I know it will fail on iteration 14)
    CREATE OR REPLACE TRIGGER COPYUP
    INSERT ON "EVENT_DATA" FOR EACH ROW
    DECLARE
    TYPE t_buffer IS TABLE OF VARCHAR2(32500)
    INDEX BY BINARY_INTEGER;
    vcharBuf t_buffer;
    vintReadlength integer := 1;
    vintSendRead integer;
    vintCntr integer := 0;
    vintTotallength integer := 1;
    vintBeginloc integer := 1;
    vclobVal clob;
    vintOffset integer := 32500;
    vintLoop integer;
    vnumError number;
    vcharErrstr varchar2(200);
    BEGIN
    select :new.rawdata into vclobVal from dual;
    vintTotallength := dbms_lob.getlength(vclobVal);
    LOOP
    if vintTotallength > vintOffset then
    if ((vintCntr + 1) * vintOffset) < vintTotallength then
    vintReadlength := vintOffset;
    else
    vintReadlength := (vintTotallength - (vintCntr * vintOffset));
    end if;
    else
    vintReadlength := vintTotallength;
    end if;
    vintSendRead := vintReadlength;
    -- dbms_output.put_line('COPYUP: vintReadlength: ' || vintReadlength || '.');
    -- dbms_output.put_line('COPYUP: vintTotallength: ' || vintTotallength || '.');
    -- dbms_output.put_line('COPYUP: vintCntr: ' || vintCntr || '.');
    -- dbms_output.put_line('COPYUP: vintOffset: ' || vintOffset || '.');
    -- dbms_output.put_line('COPYUP: vintBeginloc: ' || vintBeginloc || '.');
    -- dbms_output.put_line('COPYUP: vintBeginlocSendRead: ' || vintSendRead || '.');
    -- dbms_output.put_line('COPYUP: EventId: ' || :new.eventid || '.');
    dbms_lob.read(vclobVal, vintSendRead, vintBeginloc, vcharBuf(vintCntr));
    exit when ((vintBeginloc + vintReadlength) >= vintTotallength);
    vintCntr := vintCntr + 1;
    vintBeginloc := (vintCntr * vintReadLength) + 1;
    END LOOP;
    IF vintCntr = 0 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 1 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 2 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 3 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 4 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 5 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 6 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 7 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 8 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 9 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 10 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 11 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 12 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 13 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 14 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 15 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 16 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 17 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 18 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 19 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 20 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 21 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 22 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 23 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22)||vcharBuf(23),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 24 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22)||vcharBuf(23)||vcharBuf(24),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 25 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22)||vcharBuf(23)||vcharBuf(24)||vcharBuf(25),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 26 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22)||vcharBuf(23)||vcharBuf(24)||vcharBuf(25)||vcharBuf(26),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 27 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22)||vcharBuf(23)||vcharBuf(24)||vcharBuf(25)||vcharBuf(26)||vcharBuf(27),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 28 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22)||vcharBuf(23)||vcharBuf(24)||vcharBuf(25)||vcharBuf(26)||vcharBuf(27)||vcharBuf(28),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 29 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22)||vcharBuf(23)||vcharBuf(24)||vcharBuf(25)||vcharBuf(26)||vcharBuf(27)||vcharBuf(28)||vcharBuf(29),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 30 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22)||vcharBuf(23)||vcharBuf(24)||vcharBuf(25)||vcharBuf(26)||vcharBuf(27)||vcharBuf(28)||vcharBuf(29)||vcharBuf(30),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 31 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22)||vcharBuf(23)||vcharBuf(24)||vcharBuf(25)||vcharBuf(26)||vcharBuf(27)||vcharBuf(28)||vcharBuf(29)||vcharBuf(30)||vcharBuf(31),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 32 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22)||vcharBuf(23)||vcharBuf(24)||vcharBuf(25)||vcharBuf(26)||vcharBuf(27)||vcharBuf(28)||vcharBuf(29)||vcharBuf(30)||vcharBuf(31)||vcharBuf(32),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSE
    insert into ncars.trigger_events
    (dt, ip, id, ival1, ival2, cval1, cval2)
    values
    (sysdate, :new.ip_address, :new.eventid, vintCntr,
    vintTotallength, 'COPYUP', 'EVENT_DATA');
    END IF;
    EXCEPTION
    when others then
    vnumError := SQLCODE;
    vcharErrstr := SUBSTR(SQLERRM, 1, 200);
    insert into ncars.trigger_events
    (dt, ip, id, ival1, ival2, cval1, cval2)
    values
    (sysdate, :new.ip_address, :new.eventid, vintCntr,
    vnumError, 'COPYUP', vcharErrstr);
    END COPYUP;

    I aim to please any and all that wish to help. This is very similar to my original trigger. This trigger is constrained by the 32500 size.
    CREATE OR REPLACE TRIGGER COPYUP
    INSERT ON EVENT_DATA FOR EACH ROW
    DECLARE
    vcharBuf varchar2(32500);
    vintTotallength integer := 1;
    vclobVal clob;
    BEGIN
    select :new.rawdata into vclobVal from dual;
    vintTotallength := dbms_lob.getlength(vclobVal);
    dbms_lob.read(vclobVal, vintTotallength , 1, vcharBuf);
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf,
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    END COPYUP;

Maybe you are looking for