Dblink problem?

For a Oracle htmldb workspace developer user I defined a database link to a oracle user on another server with oracle version 8.1.7.
When I try to update a record in a table in that other database I get te following message:
ORA-20001: Error in DML: p_rowid=1, p_alt_rowid=KANAAL, p_rowid2=, p_alt_rowid2=. ORA-02069: global_names parameter must be set to TRUE for this operation
The update-form was generated as report-with-form, no changes.
How to overcome this problem . . anyone to help ???
Roel

Yes, Bryan set up a pl/sql anonymous block as a page process. I had:
DECLARE
-- the following l_xxx declarations are a bug workaround ref:
-- Re: Updating tables in external database
l_work varchar2(100) default substr(:P10_DESC,1,100);
l_random varchar2(8) default :P10_RANDOM;
l_name varchar2(33) default :P1_NAME;
l_dept varchar2(25) default :P1_DEPT;
l_ext varchar2(22) default :1_EXT;
l_location varchar2(12) default substr(:P10_BUILDING || '-' || :P10_FLOOR || :P10_ROOM,1,12);
l_ldkey integer default 10E8*dbms_random.value; --if largest than 10E9, longdesc insert fails
w_ldkey integer default NULL;
l_ldtext LONG;
BEGIN
INSERT INTO maximo.WORKORDER@maxprd
     description,
ldkey,
     wo8, -
xxxxxxxxxxxxxxxx etc etc
values
(INSERT INTO maximo.WORKORDER@maxprd
     description,
ldkey,
     wo8,
etc etc
END;
Hope that helps.
Cheers
KIM

Similar Messages

  • DBLinks Problem in 10g Release 2

    I have many mappings taking data from tables in a remote database asociated with a Source Database module. All was working OK but after some changes in one mapping, when I triyed to deploy that mapping I got a warning in the Control Center's Job Details:
    GNV_MP_B_VENTAS_01_PKG
    Warning
    ORA-06550: line 222, column 7:
    PL/SQL: SQL Statement ignored
    GNV_MP_B_VENTAS_01_PKG
    Warning
    ORA-06550: line 264, column 23:
    PL/SQL: ORA-00942: table or view does not exists
    Checking for errors in the package GNV_MP_B_VENTAS_01_PKG I've found the following message in compilation errors:
    Error(1):
    ORA-04052: se ha producido un error al consultar el objeto remoto [email protected]@SOU_GNVBI_LOCATION1
    ORA-00604: se ha producido un error a nivel 1 de SQL recursivo
    ORA-01882: timezone region not found
    ORA-02063: line....
    Testing the DBLink created by OWB I have the followiong message:
    SQL > select * from dual@"GASN.REGRESS.RDBMS.DEV.US.ORACLE.COM@SOU_GNVBI_LOCATION1"
    Error starting at line 1 in command:
    select * from dual@"GASN.REGRESS.RDBMS.DEV.US.ORACLE.COM@SOU_GNVBI_LOCATION1"
    Error at Command Line:1 Column:19
    Error report:
    SQL Error: ORA-01882: timezone region not found
    ORA-02063: line precediendo a GASN@SOU_GNVBI_LOCATION1
    01882. 00000 - "timezone region %s not found"
    *Cause:    The specified region name was not found.
    *Action:   Please contact Oracle Customer Support.
    Can anyone help me with this issue ? This is my config info:
    Remote DB:
    Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
    PL/SQL Release 9.2.0.4.0 - Production
    "CORE     9.2.0.3.0     Production"
    TNS for Linux: Version 9.2.0.4.0 - Production
    NLSRTL Version 9.2.0.4.0 – Production
    OWB's DB:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    "CORE     10.2.0.3.0     Production"
    TNS for Linux: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 – Production
    OWB 10.2 Release 2
    Client. 10.2.0.3.33
    OWB Repository: 10.2.0.30

    Right Now we are seting up the Timezone patch y the 9i database. I'll tell you later how goes all the process but meanwhile here are some strange things about the ORA-01882 error:
    I've tested the DBLink using Oracle SQL Developer an it doesn't work. But if I test the same DBLink using SQL*Plus (no matter client version or platfom) it works...
    I realize that when I created a new DBLink via SQL*Plus to determine if the problem was related to OWB 10.2. Running OWB 10.2 client from Windows or Linux produces the same error in deploy. Testing the BDLink from SQL*Plus from Windows or Linux produces no errors. Althought I can't recompile the package generated when the mapping was deployed, I get the same ORA-04052 - ORA-00604 - ORA-01882 errors.
    When I completed the patch installation I will tell you the results...

  • DBLink Problem in Oracle Forms 6i

    Hi, All
    I have a problem, when i used dblink in form6i and i complied this program. The application (form6i) is closed immediately.
    And I try to used synonyms, I've got same result.
    Example.
    dblink name = DW1
    select * from admin.emp@dw1 (when complie it's closed!)
    synonym name = DW1_EMP
    select * from dw1_emp (when complie it's closed!)
    Thank you
    Kehshiro.

    Did you check the DBLink in SQL PLUS? did it work?
    if it didnt then
    1. ping the remote server to check connectivity
    2. tns ping the tns used by the DB link
    if everything ok still not functioning then
    Try dropping and recreating the DB Link

  • ORA-03134 Dblink Problem

    Hello,
    Forms 10g running under Oracle RDBMS 10g (Windows XP) gives me this error:
    ORA-03134 Connections to this server are no longer supported
    The latest patch to Oracle 10g was applied (this supposedly should have corrected the problem).
    Has anyone encountered this problem and how did you correct the problem?
    Thanks,
    gk

    ORA-03134: Connections to this server version are no longer supportedThis is not problem, this is correct behaviour because connections to older releases (than 9i) since 10g are not supported. So you need use client <10g
    Can download older instantclient version to connect on ?No, instant client was created since 10g. So you need to download regular 9i (R2) client.

  • Portlet Db link problem ( Urgent )

    Is there any way to connect directly external oracle database from inside of a portlet.
    Portal use its own database for portlet
    So when we neeed enformation from external database
    we are using dblink in our portlet .
    This is causing dblink problems.
    Thanks for your help

    Hi,
    You can do this using Federated Portal Adapter. Here are some links
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/articles/UNDERSTANDING.FEDERATED.PORTAL.ADAPTER.HTML
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/ARTICLES/HOW.TO.USE.THE.FEDERATED.PORTAL.ADAPTER.HTML
    Thanks,
    Sharmila

  • Prob in insert using DB Link

    Hi,
    I have a databases A and B.
    In database A, User U1 ownes some tables.
    User U2 has select privileges on those tables.
    I'm trying to insert some values from Database A into a table in Database B using DBLink, but am getting the error: ORA-00933: SQL command not properly ended
    ORA-02063: preceding line from GK_DB_LINK
    --What could be the problem??
    My query is:
    INSERT INTO gk_HIST_RATE@GK_DB_LINK
    SELECT p.property_id AS PROP_ID,
    hr.gk_property_id,
    hr.site_id,
    hr.length_of_stay,
    hr.target_date,
    hr.rate_date,
    rd.descriptor_id,
    hr.rate,
         hr.currency_code,
    SYSDATE AS WH_LOAD_DATE,
    SYSDATE AS WH_LAST_UPDATED,
         (SELECT TO_NUMBER(TO_CHAR(NEXT_DAY(TRUNC(LOAD_RATE_START_DATE)-1, 'SATURDAY'), 'YYYYWW'))
                   FROM gk_PUSH_OUT.BRG_LOAD) AS SHOP_WEEK_ID,
    'N' AS EXCLUDE_RATE_FLAG
    FROM
         PROPERTY p,
         HISTORICAL_RATE hr,
         RATE_DESCRIPTOR rd,
         SITE
    WHERE
    p.brand_id IN ('XY','XX','YY','YX')
         AND site.site_id IN (1000,1001,1002,1003,1004,1005)
    AND hr.length_of_stay IN (1,3)
    AND TRUNC(hr.target_date) BETWEEN
    (SELECT TRUNC(LOAD_TARGET_DATE) FROM gk_PUSH_OUT.BRG_LOAD) AND
    ((SELECT TRUNC(LOAD_TARGET_DATE) FROM gk_PUSH_OUT.BRG_LOAD) +
    (SELECT LOAD_DAYS_OFFSET FROM gk_PUSH_OUT.BRG_LOAD))
         AND hr.rrs_property_id = p.rrs_property_id                                             
    AND hr.site_id = site.site_id
         AND p.status_code <> 'INA'
         AND hr.rate_descriptor_ind = -1
         AND hr.rate_descriptor_ind = rd.descriptor_id      
         AND TRUNC(hr.rate_date) BETWEEN
    (SELECT TRUNC(LOAD_RATE_START_DATE) FROM gk_PUSH_OUT.BRG_LOAD) AND
              (SELECT TRUNC(LOAD_RATE_END_DATE) FROM gk_PUSH_OUT.BRG_LOAD)
    -Gee

    You're going to have to do some sqlnet tracing, I think - and see exactly what sql is being submitted to that other DB. (To verify it's a dblink problem, create a LOCAL gk_hist_rate table (empty) that looks just like the other one, and try the insert into THAT one.)
    Is there a version difference between the 2 DBs? What are the versions?
    See the sqlnet trace info here:
    http://download-east.oracle.com/docs/cd/B10501_01/network.920/a96581/sqlnet.htm#437876
    Tom Best

  • Create view failing

    Hi ,
    I have created public dblink and want to create view by dblink,but i am getting below error,please help me how to create such view
    ORA-22992 cannot use LOB locators selected from remote tables. i have created db public dblink "emp_db_link" and using below command for creating view
    create view emp_view as select * from emp_table@emp_db_link;
    Thanks
    Hridyesh

    Hello
    pls use this link
    DBLink problem ORA-22992

  • Creating view containing case statements received error ORA-22992

    We have a create view referencing table through dblink. The select statement in the create view has case statements, when running the Select statement alone, results are return. However, when executing the create view, it returns:
    SQL Error: ORA-22992: cannot use LOB locators selected from remote tables
    22992. 00000 - "cannot use LOB locators selected from remote tables"
    *Cause:    A remote LOB column cannot be referenced.
    *Action:   Remove references to LOBs in remote tables.
    One of the source table has LOB column but not in the select statement. The strange thing is when removing the case statement from the select, create view works fine. Can anybody tell me what caused the error and how to fix it?
    Create View Snippet:
    CREATE OR REPLACE VIEW "ABC"."XYZ" (....
    AS SELECT
    CASE
    WHEN A.OUTAGE =1
    THEN 'Y'
    ELSE 'N'
    END AS OUTAGE,
    FROM
    TABLEA@XXXX A
    LEFT JOIN TABLEB@XXXX B
    ON
    A.LOC =B.LO
    AND A.SITE =B.SITE
    WHERE
    A.CLASS ='CUSTOMER'
    AND A.PLUSSISGIS =1;

    What is your 4 digit Oracle version?
    Try rewriting the query to not use ANSI SQL92 joins. I found a link where this solved a problem similar to yours.
    DBLink problem ORA-22992
    >
    But, look at this curious thing: I re-write the query as follows:
    SELECT A.ID, A.ID_REF, A.EVENDATE, B.DESCRIPTION
    FROM A@ORCL A, B@ORCL B
    WHERE A.ID_REF = B.ID_REF;
    and it works fine... It seems like Oracle don't like the ANSI SQL92...
    >
    Several similar links by googling: 'SQL Error: ORA-22992'
    http://www.dbuggr.com/smallwei/solution-error-ora-22992-lob-locators-selected-remote-tabl/
    >
    Fixing ORA-22992 “cannot use LOB locators selected from remote tables” error
    You have migrated your Oracle 9i database to 10g and a distributed statement which worked fine in 9i now is getting error ORA-22992 “cannot use LOB locators selected from remote tables”. Even though the related remote table(s) does not contain any LOB column datatype.
    FIX:
    There is a bug on 9i,10g, and 11g that is related to this error. It is being fixed in 11.2. It can also be backported for previous 9i, 10g and 11g releases under the latest patchsets.
    You may also do a workaround as follow:
    Modify the affected SQL by adding the TO_CHAR function. For example:
    -- Original SQL:
    SELECT NVL2('a', 'b','c' ) FROM dual@remote_db;
    -- Modified SQL:
    SELECT TO_CHAR(NVL2('a','b','c')) FROM dual@remote_db;
    >
    See if that helps.

  • Problem by doing a query on MySQL using dblink

    Good Morning,well,the DBLink works perfectly,but if the field in the MySQL DB is type TEXT(CLOB) throw the next error:
    ORA-28500: la conexión de ORACLE a un sistema no Oracle ha devuelto este mensaje:
    [Generic Connectivity Using ODBC]DRV_BlobRead: DB_ODBC_ENGINE (1489): ; [MySQL][ODBC 5.1 Driver][mysqld-5.1.30]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"CUSTOM_VALUES" WHERE "id"=16' at line 1 (SQL State: 37000; SQL Code: 1064)
    ORA-02063: 2 lines precediendo a MYSQLDB
    28500. 00000 - "connection from ORACLE to a non-Oracle system returned this message:"
    *Cause:    The cause is explained in the forwarded message.
    *Action:   See the non-Oracle system's documentation of the forwarded
    message
    Thank you
    Edited by: 812419 on 18-ene-2011 0:41

    Hi,
    You are hitting a known problem with the MySQL ODBC driver and 10g HSODBC which is discussed in this note on My Oracle Support -
    Problems Selecting Mysql Blob Data Using Hsodbc - Error In Your SQL Syntax          (Doc ID 739274.1)
    There are 3 workrounds -
    a) convert the affected column to a char or varchar column in MySQL.
    b) use the Openlink ODBC driver. This is available from -
    http://download.openlinksw.com/
    c) create a view in MySQL which uses the 'CAST' function to convert the affected column to char. As an
    example for a BLOB -
    create view test_blob_v as select col1, cast(col2 as char) as col2 from test_blob ;
    Then select from the view in Oracle -
    select * from test_blob_v@mysql ;
    ========
    If you are using 10g HSODBC you should migrate to 11g Database Gateway for ODBC (DG4ODBC) as 10g HSODBC is now desupported and DG4ODBC is the replacement product.
    Regards,
    Mike

  • Problem with dblink in Oracle Forms 6i

    I hava a problem and i try to compile a form that use a dblink when i start to compile the form the IDE is close and no errors are shown. That someone know what can i do for it ??...
    The Dblink is defined like this way:
    sqlstr := 'SELECT ' ||
    The_Columns ||
    ' FROM STITXS.CSI_0_DAY_ONE_GROUP@IMM DOG, CSI_0_AREA_TAX ATA ' ||CHR(10)||
    wFilter || The_Grp_Columns;
    this part of code is generating the query dinamically, but i can't compile the form, i just need to change the schema for STWBMS.CSI_0_DAY_ONE_GROUP@IMM and also if i remove this part of code that use the dblink the form compile without problem.
    The version of mi Bada base is Oracle 9i, but the system (Oracle Form) in my enviroment use Oracle DataBase 8i.
    I hope someone can help me.
    Thanks

    You could try to "hide" the db-link by creating a local view above the dblink-table.

  • Problem creating a table with a subquery and a dblink

    Hello!!
    I have a little problem. When I create a table with a subquery and a dblink, for example:
    CREATE TABLE EXAMPLE2 AS SELECT * FROM EXAMPLE1@DBLINK
    the table definition is changed. Fields with a type of CHAR or VARCHAR2 are created with a size three times bigger than the original table in the remote database. Field of type DATE and NUMBER are not changed. For example if the original table, in the database 1, has a field of type CHAR(1) it is create in the local database with a type of CHAR(3), and a VARCHAR2(5) field is created with VARCHAR2(15).
    Database 1 has a WE8DEC character set.
    Database 2 has a AL32UTF8 character set.
    Could it be related to the difference in character sets?
    What can I do to make Oracle use the same table definition when creating a table in this way?
    Thanks!!

    That is related to character sets, and probably necessary if you want all the data in the remote table to be able to fit in the new table.
    When you declare a column VARCHAR2(5), by default, you're allocating 5 bytes of storage. In a single-byte character set, which I believe WE8DEC is, that also happens to equate to 5 characters. In a multi-byte character set like AL32UTF8, though, 1 character may require up to 3 bytes of storage, so you'd need to allocate 15 bytes to store that data. That's what's going on here.
    You could still store all the data if you create the table locally by explicitly requesting 5 characters of storage by declaring the column VARCHAR2(5 CHAR). You could also set the NLS_LENGTH_SEMANTICS parameter to CHAR rather than BYTE before creating the table, but I believe that both of these will only apply when you're explicitly defining columns as part of your CREATE TABLE. I don't believe either will apply to CTAS statements.
    Justin

  • Strange problem in executing procedure using dblink

    I have this strange problem coming in the execution of a procedure accessed using dblink. I will try to explain the scenario. We have one procedure in our schema which is executed using a dblink from another database as we have a integration of systems. This was working fine but after we did a fresh export and import of this schema as we migrated our database to a new better configuration DB server, the execution of this procedure is hanging when it is executed from the dblink from the other database. I hope, I have been able to explain the scenario.
    I hope, my question is clear.
    Please, help in solving the doubt.
    regards

    No starting version number.
    No current version number.
    No indication of whether the link is valid and you can SELECT across it.
    No error message of any kind.
    Nothing from your alert log.
    No indication of whether you have a global names issue.
    Please do the research required to identify the nature of the problem, check the related docs at metalink, and if you still have a problem give us the rest of the story.
    Then perhaps we can help you.

  • DBLINK Name problem????

    I create a DBLINK called "MYDBLINK" but ORACLE rename it as "MYDBLINK.ES.AULAS-GRP"
    I create it:
    create database link MYDBLINK
    connect to USER1
    identified by "USER1"
    using '(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (Host = AUPDMANAS53525.ES.AULAS-GRP) (PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = BDED1.es.aulas-grp)))';
    I need the name “MYDBLINK” instead of "MYDBLINK.ES.AULAS-GRP"
    I have executed ALTER SYSTEM SET DB_DOMAIN='' scope=spfile; instruction but I continue with the same problem….
    What do I have to configure?
    I attach tnsnames and some data.
    Thanks very much in advance!
    TNSNAMES:
    BDED1 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = AUPDMANAS53525.ES.AULAS-GRP)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = BDED1.es.aulas-grp)
    (SRVR = DEDICATED)
    SQL> show parameter service;
    NAME TYPE VALUE
    service_names string BDED1.es.aulas-grp
    SQL> show parameter global;
    NAME TYPE VALUE
    global_context_pool_size string
    global_names boolean FALSE

    <font face="courier new">
    Why do you need it? I think it's not a problem if you have to mention "MYDBLINK.ES.AULAS-GRP" instead of “MYDBLINK”.
    <br><br>
    You can try this:
    <br><br>
    First chack your gobal_name:<br>
    SELECT * FROM global_name;<br><br>
    If it is MYDBLINK.ES.AULAS-GRP then you can change your GLOBAL_NAME format from <database name>[.db_domain] to <database name> only
    <br>
    ALTER DATABASE RENAME GLOBAL_NAME TO MYDBLINK;
    <br><br>
    This may have serious consequences in other links/queries of you Database. Please check all associated options before doing it.
    <br><br>
    Please know more about Global Database Name from Metalink: <br>
    Note 115499.1 Global Database Name Explained
    </font>

  • Problem with reading data over dblink

    Hi,
    I have a dblink from Oracle 10.2.0.3 db(on windows) to Postgresql 8.3.3 (on centos 4) .
    When trying reading data from Postgresql table , I cannot read varchar colums, in he result set there is no error message.
    In the hs trace file it says "unrecognized data type" for the varchar colums.
    I tried character,text data types, but the error message is the same.
    With Oracle 9.2.0.8 ( on hp/ux platform) there is no problem reading that data types.
    How can I handle this problem?
    Thanks

    Hi,
    i had a similiar problem with 10.2.0.3 querying MS/SQL2000 and Oracle support told me it is a bug which was fixed in 10.2.0.4, however, i couldn't upgrade as SAP was not certified with this version so i had configured a workarround with Oracle support:
    create a DB link from 10.2.0.3 to a 9.2.0.8 DB, in the 9.2.0.8 i have created synonyms through DB link (HS) to the MS/SQL and it solved the problem.
    i know it is not a best solution but it works and production system continue to function.
    dBarak.

  • Any problem with dblinks between 8.1.7 and 10gR2?

    Hi,
    Just want to know if any of you have encountered problem using a dblink between an Oracle database 8.1.7 and a brand new 10.2?
    I guess simple query from the 8i db to 10gR2 data would be OK...or not!?
    But what for queries with joins???
    Many Thanks in advance for your help,
    Sebastien

    Could any of you 'copy & paste' the Metalink Note:207303.1 here on the OTN forum?

Maybe you are looking for

  • Lack of Service in Camp Pendleton, CA!!!!!

    I am not sure how the rest of Verizon users feel, but for me, when I am paying nearly $200 dollars a month for 2 phones, I expect a certain level of satisfaction with the service provided. The issue is that when you work and live on Camp Pendleton an

  • Subject:-Tax reduction in invoice is not possible at the time of LIV when c

    Dear SAP expert Subject:-Tax reduction in invoice is not possible at the time of LIV when corresponding order is closed. While carrying out the LIV of vendor invoice against service entry sheet , ERROR message of Order xxxxxxx created in PM module is

  • Cannot Uninstall X-FI driv

    this Started a Few weeks ago, since my creative console launcher stopped working. i try to uninstall the sound card in the add/ remove programs, but it simply crashes when i click remove on it. it says it has encountered a problem and cannot recover

  • 'Embedded RP on IPv6' + System received a SegV exception

    Hi. I try to configure de folloing scenary - Embedded RP with IPv6 I used 3 cisco 2600 routers:'Cisco IOS Software, C2600 Software (C2600-ADVENTERPRISEK9-M), Version 12.4(5), RELEASE SOFTWARE (fc3)' For cliente and server streamnig, i used Videolan-C

  • Button greyed on the start page, even after running MakeMeAnADCAdmin.sql...

    Hi all: I have successfully installed Oracle BAM 10.1.3.1.0, with Oracle Database 10 XE (10.2.0.1.0). I am able to see the start page, BUT all the buttons are greyed out.... I then searched, downloaded and execute MakeMeAnADCAdmin.sql, but still butt