Error occurred when using db link in procedure

Hi
I have a problem. As COLL_OWNER, I failed to compile this procedure.
CREATE OR REPLACE PROCEDURE Arch_Session_Order_Queue
IS
-- declarations
BEGIN
-- many lines
SELECT COUNT (1)
INTO v_wols_count
FROM [email protected];
-- many lines
END;
The error says "PL/SQL: ORA-00980: synonym translation is no longer valid"
But when I run it as COLL_OWNER like that,
SELECT COUNT (1) FROM [email protected]
I get the result.
Why that happens? How to resolve the problem?
Appreciate your advice.
Kevin

Hi Jens
Here is the result
SELECT * FROM [email protected] WHERE synonym_name='ORDER_QUEUE;
OWNER SYNONYM_NAME TABLE_OWNER TABLE_NAME DB_LINK
OMDBPP_OWNER ORDER_QUEUE ORDER_QUEUE WOLSPP.WORLD
SELECT owner, object_name, object_type, status
FROM [email protected] WHERE object_name='ORDER_QUEUE';
OWNER OBJECT_NAME OBJECT_TYPE STATUS
OMDBPP_OWNER ORDER_QUEUE SYNONYM VALID
The ORDER_QUEUE on O9IPRD.WORLD is a synonym that points to the real table.
The way that happen is that we have Oracle 10g. The business logic needs to use Oracle 8.1.5 database. Oracle10g cannot talk to Oracle8.1.5. We created an Oracle 9i database having the synonym that points to the real table of Oracle 8.1.5.
I am wondering why I can get the result in SQL but failed to get procedure work.
Thanks,
Kevin

Similar Messages

  • TNS-12666 error occures when using database link

    When I am trying to use database link
    defined in my database the following error occures:
    TNS-12666 Dedicated server: outbound transport protocol different from inbound.
    In documentation is stated to resolve such an error to
    specify the same protocol in the SQL*Net connect string or alias for the outbound connection as that used for the inbound connection.
    I have in tnsnames.ora defined network service name
    by which I can connect to such a database by SQL*Plus
    without any problems, why can I not do such a thing
    via database link?
    Thanks a lot for advise, ...

    Could you change the following entry in your 'sqlnet.ora' file and try?
    SQLNET.AUTHENTICATION_SERVICES = (NONE)

  • ORA-01406 error encountered when using database link

    I am moving data between two different databases using a database link on Oracle 8.1.5. The database statement looks like:
    insert into TABLE@DATABASELINK
    (COLUMNS)
    select (COLUMNS) from TABLE
    One of the database columns is defined as varchar2(4000) on both the source and target database tables. When the data in this column on the source database is greater than 2000 characters, the database query generates the message:
    ORA-01406: fetched column value was truncated
    I have verified that the target column is defined as varchar2(4000), and have also verified that it is this varchar2(4000) column that is causing the problem. I have also tested out that this error only occurs when the varchar field is more than 2000 characters; if I remove characters so that the source field is less than or equal to 2000 characters, this error is no longer generated and the data is inserted to the target database table.
    Is this a limit with database links or some other database parameter that is not set up correctly?
    Thanks...Theresa Tucci

    Could you change the following entry in your 'sqlnet.ora' file and try?
    SQLNET.AUTHENTICATION_SERVICES = (NONE)

  • Runtime error occurs when using DropdownByKey

    I run into a runtime error when I use the DropDowByKey with fixed value set: the value seletedKey = "001" in DropDownByKey "DDBK_APP_STATE" does not exist in the value list and is not initial either. But I have already added the value pair of the selectedKey using
         "NODE_INFO->SET_ATTRIBUTE_VALUE_SET(
              NAME = 'APP_STATE'
              VALUE_SET = LT_VALUESET )." and I can select it from view. But when I use the attribute bound to the dropdownbykey in select statement as where condition and bind result into table. Before the screen reflash , the error occurs.

    I have two dropdownbykeys, DROP1(bound to attribute APP_AGENT),DROP2( bound to attribute APP_STATE). Selecting the first will change the content of the other.
    The code in the onSelect event of the drop1, which will change the select list of DROP2:
      DATA:NODE_INFO TYPE REF TO IF_WD_CONTEXT_NODE_INFO.
      DATA: LT_VALUESET TYPE WDY_KEY_VALUE_TABLE,
          L_VALUE     TYPE WDY_KEY_VALUE.
      NODE_INFO = WD_CONTEXT->GET_NODE_INFO( ).
      NODE_INFO = NODE_INFO->GET_CHILD_NODE( 'NODE_SEARCH' ).
       "**************************set value set for drop down***************
        DATA lo_nd_node_search TYPE REF TO if_wd_context_node.
        DATA lo_el_node_search TYPE REF TO if_wd_context_element.
        DATA ls_node_search TYPE wd_this->element_node_search.
        DATA lv_app_agent LIKE ls_node_search-app_agent.
        DATA lv_app_state LIKE ls_node_search-app_state.
      navigate from <CONTEXT> to <NODE_SEARCH> via lead selection
        lo_nd_node_search = wd_context->get_child_node( name = wd_this->wdctx_node_search ).
      get element via lead selection
        lo_el_node_search = lo_nd_node_search->get_element(  ).
            lo_el_node_search->get_attribute(
          EXPORTING
            name =  `APP_STATE`
          IMPORTING
            value = lv_app_state ).
      get single attribute
        lo_el_node_search->get_attribute(
          EXPORTING
            name =  `APP_AGENT`
          IMPORTING
            value = lv_app_agent ).        -
    get the value of DROP1
      clear the selected value of drop down
        lo_el_node_search->set_attribute(
          EXPORTING
            name =  `APP_STATE`
            value = '' ).----
    I want to clear the selected value of DROP2
    IF lv_app_agent IS INITIAL.
      L_VALUE-VALUE = 'SUBMIT'.
        CLEAR L_VALUE-KEY .
        INSERT L_VALUE INTO TABLE LT_VALUESET.
      NODE_INFO->SET_ATTRIBUTE_VALUE_SET(
              NAME = 'APP_STATE'
              VALUE_SET = LT_VALUESET ).
      exit.
    ENDIF.
    CASE lv_app_agent .----
    there are 2 cases
      WHEN 'SUPP_APP'.
        L_VALUE-VALUE = 'APPROVE'.
        L_VALUE-KEY = '1'.
        INSERT L_VALUE INTO TABLE LT_VALUESET.
        L_VALUE-VALUE = 'INITIAL'.
        L_VALUE-KEY = '0'.
        INSERT L_VALUE INTO TABLE LT_VALUESET.
      WHEN OTHERS.
        L_VALUE-VALUE = 'APPROVE'.
        L_VALUE-KEY = '1'.
        INSERT L_VALUE INTO TABLE LT_VALUESET.
        L_VALUE-VALUE = 'INITIAL'.
        "CLEAR L_VALUE-KEY.
        L_VALUE-KEY = '000'.
        INSERT L_VALUE INTO TABLE LT_VALUESET.
        L_VALUE-VALUE = 'REJECT'.
        L_VALUE-KEY = '2'.
        INSERT L_VALUE INTO TABLE LT_VALUESET.
    ENDCASE.
    NODE_INFO->SET_ATTRIBUTE_VALUE_SET(
              NAME = 'APP_STATE'
              VALUE_SET = LT_VALUESET ).
    Then in the another method, I will fetch the value of attribute APP_STATE. I can successfully get the value and put it into where clause and get result. But I will get a runtime error then.

  • GETWA_NOT_ASSIGNED  error occured when using FM  REUSE_ALV_GRID_DISPLAY

    Hi All,
    I am using the Fm REUSE_ALV_GRID_DISPLAY to display output in the ALV grid.
    I am getting the following error
    "Field symbol has not yet been assigned."
    Error analysis                                                                  
        You attempted to access an unassigned field symbol                          
        (data segment 32820).                                                                               
    This error may occur for any of the following reasons:                      
        - You address a typed field symbol before it is set using ASSIGN            
        - You address a field symbol that points to a line in an internal table     
          that has been deleted                                                     
        - You address a field symbol that had previously been reset using           
          UNASSIGN, or that pointed to a local field that no longer exists          
        - You address a global function interface parameter, even                   
          though the relevant function module is not active,                        
          that is it is not in the list of active calls. You can get the list       
          of active calls from the this short dump.                                                                               
    I used the Fm as :
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
        I_INTERFACE_CHECK                 = ' '
         I_BYPASSING_BUFFER                = 'X'
         I_BUFFER_ACTIVE                   = ' '
         I_CALLBACK_PROGRAM                = sy-repid
        I_CALLBACK_PF_STATUS_SET          = ' '
         I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'
         I_CALLBACK_TOP_OF_PAGE            = 'TOP_OF_PAGE'
        I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
        I_CALLBACK_HTML_END_OF_LIST       = ' '
        I_STRUCTURE_NAME                  =
        I_BACKGROUND_ID                   = ' '
        I_GRID_TITLE                      =
        I_GRID_SETTINGS                   =
         IS_LAYOUT                         = t_layout
         IT_FIELDCAT                       = ls_slis_fieldcat
        IT_EXCLUDING                      =
        IT_SPECIAL_GROUPS                 =
        IT_SORT                           =
        IT_FILTER                         =
        IS_SEL_HIDE                       =
         I_DEFAULT                         = 'X'
         I_SAVE                            = 'A'
        IS_VARIANT                        =
        IT_EVENTS                         =
        IT_EVENT_EXIT                     =
        IS_PRINT                          =
        IS_REPREP_ID                      =
        I_SCREEN_START_COLUMN             = 0
        I_SCREEN_START_LINE               = 0
        I_SCREEN_END_COLUMN               = 0
        I_SCREEN_END_LINE                 = 0
        I_HTML_HEIGHT_TOP                 = 0
        I_HTML_HEIGHT_END                 = 0
        IT_ALV_GRAPHICS                   =
        IT_HYPERLINK                      =
        IT_ADD_FIELDCAT                   =
        IT_EXCEPT_QINFO                   =
        IR_SALV_FULLSCREEN_ADAPTER        =
      IMPORTING
        E_EXIT_CAUSED_BY_CALLER           =
        ES_EXIT_CAUSED_BY_USER            =
        TABLES
          t_outtab                          = gt_output
       EXCEPTIONS
         PROGRAM_ERROR                     = 1
         OTHERS                            = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Any help on this would be appreciated,
    Thanks in advance.
    Sharat.

    This is the error i get when i try to read the input data entered on the ALV grid. The code shown is from the class cl_gui_alv_grid.
    183           translate ls_cells_temp-value to upper case.   "#EC TRANSLANG
    184           assign ls_cells_temp-value to <l_currency>.
    185         else.
    186           assign ls_cells_temp-value to <l_currency>.
    187           clear <l_currency>.
    188         endif.
    189         if <l_currency> is initial.
    190           assign component ls_fieldcat-qfieldname
    191                            of structure <ls_wa> to <l_currency>.
    192         endif.
    193         if <l_currency> is initial.
    194           assign ls_fieldcat-QUANTITY to <l_currency>.
    195           if sy-subrc ne 0.
    196             assign space to <l_currency>.
    197           endif.
    198         endif.
    199       endif.
    200     else.
    201       if not ls_fieldcat-currency is initial.
    202         assign ls_fieldcat-currency to <l_currency>.
    203       elseif not ls_fieldcat-quantity is initial.
    204         assign ls_fieldcat-quantity to <l_currency>.
    205       else.
    206         assign space to <l_currency>.
    207       endif.
    208     endif.
    209
    210 *   If field has not DDIC referencen
    211     if ls_fieldcat-ref_table is initial.
    212 *--   Formal field check without DDIC reference
    >>>>       call method me->formal_field_check_no_ddic
    214         exporting
    215           i_currency    = <l_currency>
    216           i_value       = ls_cells-value
    217           i_row_id      = ls_cells-row_id
    218           i_tabix       = l_tabix
    219           is_fieldcat   = ls_fieldcat
    220         importing
    221           eflg_invalid  = eflg_invalid
    222         changing
    223           c_field       = <l_field>
    224           ct_good_cells = et_good_cells
    225           ct_mod_cells  = et_mod_cells.
    226     else.
    227 *--   Formal field check with DDIC reference
    228       call method me->formal_field_check_ddic
    229         exporting
    230           i_currency    = <l_currency>
    231           i_value       = ls_cells-value
    232           i_row_id      = ls_cells-row_id

  • Error occurs when using the LeCroy Waverunner driver.

    Hi
    I downloaded a Lecroy Waverunner driver in Instrument Driver Network and installed it. However, when I used it in block diagram. An error message "lcltxxxx_32.DLL is not a 32-bit DLL" appeared. What's the matter with that?
    Bill.

    Hello Bill,
    It sounds like you have the wrong IVI engine installed. The current LeCroy Waverunner software on the website requires the 1.83 IVI Engine and NI-VISA 2.5 or later. If you have old versions of the IVI engine and/or NI-VISA, remember to delete the old versions before reinstalling.
    Regards,
    Ray Kong

  • Error occured when using flash 9 in firefox

    I installed Flash CS3 Professional (trial) for doing
    assignment. After that, I think flash player also be upgraded to
    version 9. It's no problem in IE, but when browsing website with
    using firefox, it keeps pop up windows which ask
    "Where is the debugger or host application running?", you can
    choose localhost or other machine. Actually, i run it in my hom pc,
    so it should be "localhost".After keep answering the same
    question(it seems be asked for each flash), then it pop up "A
    connection to the Debugger or Profiler cound not be established by
    Adobe Flash Player 9."
    how can I fix this problem??
    please give me a hand. Thanks a lot.

    Sorry, there is a bug in the developer guide on page 183, it says to use " and you need to use '. Hopefully The specified item was not found. or Thomas Jung will get it fixed.
    The code below activates successfully.
    John
    context test2 {
        entity table1 
            key field1 : String(10); 
            field2 : String(10) default 'dummy';

  • Error occured when using javap (Java Class File Disassembler)

    Hi,
    I have tried to use Java Class File Disassembler by using javap and i'm getting the error shown below,
    C:\> javap abc.class
    ERROR: Could not find abc.class
    abc.class present in C:\ drive.
    Please let me know how to solve the problem
    Thanks in Advance
    Soundar

    Hi,
    Thanks for your information, it works fine. Please let me know is there any option to display the method and variable implemation in abc.class.
    I have tried javap abc it displays the method name only.
    Thanks in advance,
    Soundar

  • Error occurs when using DBDataSource.SetValue method in sales order

    Is it possiable to use the DBDataSource.SetValue method to update a cell in the Sales Order document
    My code , but I am getting an error
    Dim oDBDataSource As SAPbouiCOM.DBDataSource
    oDBDataSource = oform.DataSources.DBDataSources.Item("RDR1")
    oDBDataSource.SetValue("Price", 1, "111.22")
    The following code works, but I do not want to use it because the cursor need to move to  the cell before changing the value.
    oMatrix.Columns.Item("14").Cells.Item(RowNum).Specific.value = 111.22
    Sincerely yours
    Riade Asleh

    Well , I do not want to do it this way
    I want to change the value using the setvalue method of the DBDatasource Object
    I want to avoid the cursor from going to the cell for update or read.
    Refer to orignal question (first question)
    Sincerely yours
    Riade Asleh

  • Error occurred when use foreign Jms server[JMSClientExceptions:055142].

    I want to use a foreign Jms server(Tibco EMS), after I have config the JNDI of foreign server,connectionfactory and destinations, the correct JNDI name can be find on the JNDI tree.
    Then I deploy a demo mdb ear on the weblogic(version is 10.3),there's warnning tag on the ear application, and there is error message in the log:
    <2011-1-10 上午10时15分07秒 CST> <Warning> <EJB> <BEA-010061> <The Message-Drive
    n EJB: MDBDemo is unable to connect to the JMS destination: NotifyAlertAlertQueue. The Error was:
    weblogic.jms.common.InvalidDestinationException: [JMSClientExceptions:055142]Foreign destination, Queue[notify.alert.alertQueue]>
    NotifyAlertAlertQueue is the JNDI name of the destination defined on the weblogic console,and the same as ems jndi name for queue notify.alert.alertQueue.
    It seems that the application has find the queue correctly, but why it throw that exception[JMSClientExceptions:055142]?
    Thanks for any help.
    Edited by: 826761 on 2011-1-9 下午6:40

    I suspect that somehow your configuration is messed up and the MDB ended up using a WebLogic connection to access a TIBCO EMS destination.
    Please make sure that your JMS server configuration maps a TIBCO connection factory jndi name to a jndi name in WebLogic server JNDI tree, a TIBCO destination jndi name to a jndi name in WebLogic server JNDI tree, and your MDB configuration refers to the jndi names in the WebLogic JNDI tree.
    Regards.

  • Error message when using Dynamic Link

    Have been trying to export video created in Primiere Pro CS4 to Encore.  I keep getting the following error message.  [..\..\src\AMEPresentProber.ccp-258]     I get this message with two different videos I have tried from different camera's/encoding. 

    Just fyi, a google of the meat of your error message (AMEPresentProber.ccp-258) finds only this thread. I wonder if you have other problems on the install.

  • Answer to question about "Error Occurring when convertion is tried for PDF to Word Document"

    There are about ten questions about the "Error Occurring" when  using Abode Reader XLto convert a PDF to a Word Doc, but no one has the answer? It has something to do with "signing in  the wrong address". I have been working on this three days Now! Soimeone has the answer? Cataloochee

    You must be kidding to say, "Adobe doesn't convert any version of Adobe Reader."'  I must be in another world! When i move an Adobe Reader file pdf that goes to a wIndow that the top line says,'' Adobe reader X1 1001 Early Dutch History. pdf ". Then i click on the far left yellow marked icon that is used to move 1001 Early Dutch History.pdf to thye far right into a gray colored slot that reads "1001 Early Dutch History.pdf'. Under the file above  or down below, the selected File for conversionis, a selection gray slot that ask if you want to convert this file(pdf) to a .docx.,.doc, tex. or Excell. After I make the selection and click onto Convert, a message comes into view where the word convert was that reads "An Error Occurred wilth Signing In  OK" Even the use of another pdf file with a complete different address produces the same message. There are eight chapters in Dutch that I need to convert to word document by tommorrow or the class i teach "the Origin of Golf" will have to listen in Dutch and I can't speak Dutch. Cataloochee

  • Error When Using DataBase LINK in pl/sql

    I have cursor fetching some values from remote db and i m trying to store values in local table (see code below) I can run the select query alone succefully but when i use it inside plsql it fails with error.
    DECLARE
    TYPE MY_CURSOR
    IS
         REF
         CURSOR;
              THE_CURSOR MY_CURSOR;
              V_CT          NUMBER(18);
              V_PSN_ID      VARCHAR2(30);
              V_INTERNET_ID VARCHAR2(75);
         BEGIN
              V_CT                                                                           :=0;
              OPEN THE_CURSOR FOR SELECT PSN_ID, 'TEST' FROM TABLE_A@PRO1 WHERE TABLE_A.SEQ_A<=1000;
              LOOP
                   FETCH THE_CURSOR INTO V_PSN_ID, V_INTERNET_ID;
              EXIT
         WHEN THE_CURSOR%NOTFOUND;
               INSERT INTO PSN_EMAIL_SENT_TO@local
                        (PSN_ID, LAST_UPDT_DT
                        ) VALUES
                        (V_PSN_ID, SYSDATE
              V_CT:=V_CT+1;
         END LOOP;
         CLOSE THE_CURSOR;
         DBMS_OUTPUT.PUT_LINE
              TO_CHAR(V_CT)
    END;
    Error report:
    ORA-04052: error occurred when looking up remote object  TABLE_A@PRO1
    ORA-00604: error occurred at recursive SQL level 1
    ORA-04029: error ORA-1775 occurred when querying ORA_KGLR7_DEPENDENCIES
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01775: looping chain of synonyms
    ORA-02063: preceding 3 lines from PRO1
    04052. 00000 -  "error occurred when looking up remote object %s%s%s%s%s"
    *Cause:    An error has occurred when trying to look up a remote object.
    *Action:   Fix the error.  Make sure the remote database system has run
               KGLR.SQL to create necessary views used for querying/looking up
               objects stored in the database.

    You need to create the catalog views that support distributed SQL in your remote database (the database you connect to via db_link).
    To create these views, connect "/ as sysdba" and run:
    $ORACLE_HOME/rdbms/admin/catproc.sql
    which will in turn call several other scripts including: $ORACLE_HOME/rdbms/admin/catrpc.sql (which creates your missing view)
    It is best to run the whole catproc.sql script (and not just the catrpc script).
    You can run and rerun catproc.sql several times quite safely.
    Cheers

  • I set up a playlist in itunes and when i tried to sync it to my iphone i get an error message "itunes could not copy "x" to the iphone "x" because a timeout error occured.  Using itunes 10.5.2.11 and Windows Vista 64

    I set up a playlist in itunes and when I try so sync it to my iphone, I get an error message "itunes could not copy "x" to the iphone "x" because a timeout error occurred.  Using itunes 10.5.2.11 and Windows Vista 64.  Any help?  Thanks in advance!

    I have the same question and the only reply I've found on the forum was "change the USB hub", which HASN'T worked. So I am accepting new suggestions. Tks!

  • WMIProviderException: An error occurred when attempting to connect to the report server remote procedure call (RPC) end point

    I am getting the following error message while trying to configure a database for a Reporting Service Server.  Both SQL Server and Reporting server are 2012 named instances.  I have 2014 instances as well on the same server.
    Exception details...
    Microsoft.ReportingServices.WmiProvider.WMIProviderException: An error occurred when attempting to connect to the report server remote procedure call (RPC) end point. Verify that the Report Server Windows service is running, and then retry the operation.
     ---> System.Runtime.InteropServices.COMException (0x800706B3): The RPC server is not listening. (Exception from HRESULT: 0x800706B3)
       --- End of inner exception stack trace ---
       at Microsoft.ReportingServices.WmiProvider.RSWmiAdmin.ThrowOnError(ManagementBaseObject mo)
       at Microsoft.ReportingServices.WmiProvider.RSWmiAdmin.GenerateDatabaseScript(String databaseName, Int32 lcid, Boolean isSharePointIntegrated, String& script)
       at ReportServicesConfigUI.WMIProvider.RSReportServerAdmin.GenerateDatabaseScript(String databaseName, Int32 lcid, Boolean isSharePointIntegrated, String& script)
    Can someone help me on this please?

    Hi Jaigi,
    According to your description, you want to change a report server database for Reporting Services. But it fails on the last step and returns a error. Right?
    In this scenario, it seems you are creating a report server database on another server via remote connection. Based on the error message, it has issues on executing the script for generating new database. Please check if you have permission to connect the
    server and create a new database. Also please check if the Reporting Services Windows services is working properly.
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

Maybe you are looking for