Database Link.  Problem in Forms. Baffled!

Hoping someone can help.
I'm working on a system that has a form on it with a problem. Although there is a currently compiled and working version of this form available, I cannot get it to compile.
The situation is this.
There are 2 databases, MINX a 9i database, and PROD an APPS 11i database.
On the database PROD exists a view called MTL_ITEM_CATEGORIES_V.
SELECT is granted on this to the APPSINQ user.
On the database MINX exists a public synonym MTL_ITEM_CATEGORIES_V, which points at the view MTL_ITEM_CATEGORIES_V on the PROD database by way of a public database link, also called PROD. The database link uses the APPSINQ user on the PROD database.
(once the set_org_context, and nls_language have been set)
From SQL on the MINX database, I can select from the public synonym, MTL_ITEM_CATEGORIES_V, and rows are successfully returned from the MTL_ITEM_CATEGORIES_V view on the PROD database. This is all ok and good.
However, in the main form, is a trigger which does a select from the public synonym and this will not compile.
I get the error : identifier 'CATEGORY_SET_ID' must be declared.
It's like it can't see the category_set_id column in the view. However, if I create a new block, and base it on the public synonym, the category_set_id column is there for me to choose. Meaning that forms CAN see the column.
Am baffled! Anyone ??

Hi
I´ve got some problems with synonyms and dblinks in forms too. Try creating a local view based on the remote view usign the dblink (do not use the public synonym) and try to compile again.
I think in some cases the compiler gets lost trying to follow synonyms and links. a forms bug maybe?

Similar Messages

  • DB Link problem on form/report 6i

    Greeting
    I have an problem on form 6i with DB Link , that When I have view Using the DB Link and want to use the view on form6i or report 6i, the report not work when call the run file but work through the builder and also on the form not work (Form/ Report 6i With Oracle 11g Release 11.2.0.2.0 - 64bit Production)
    Thanks and appreciated,

    Tony,
    we have both 6i forms for client server for Linux and Sparc and the same forms ported (a year ago) to iAS/iDS 10g R2 just to be able to support the same application when 6i becomes obsolete. The issue of trying/asking/investigating if 6i works or will be certified against 11g or not, is simply to find out if we can support our application on the client/server side when the end users want to move to the new database server version/s. As you know the runtime for the client/server version of 6i is free. But we can not simply recommend our end users to start using 11g db server yet, given that 10gR2 forms are not yet certified against 11g yet. Thank you for your comments not only for this posting but on Forms forum though, I always find them very helpful when making educated decisions. Also knowing that you are a unix person makes your comments more valueable for me, personally.
    R/ Zafer

  • Database link works for form but not report

    I have created a database link to the scott.emp table in a remote database then created a local synonym in my Portal.
    I then created a Form and a Report referencing the local synonym. The for works and allows me to insert record but the form does not. The report compiles fine but I get a message that Portal can't find the underlying table. It seems that if the form works then the report should too. Does anyone have a recommended solution?
    Thank you.
    Sam Masias

    There is a bug filed for this issue. And it should be taken up for fixing most probably in next release.

  • OracleXE- PostgreSQL database link problem

    I have set up a database link between Oracle XE and PostgreSQL using unixODBC, but I seem to be having trouble with certain data types.
    Here's what I mean...
    First I execute the following DDL in postgres:
    create table "TEST1" (
    "TEST1ID" integer,
    "TESTDATE" timestamp,
    "TESTVC" varchar(20)
    create table "TEST2" (
    "A" varchar(125),
    "B" varchar(126),
    "C" varchar(127),
    "D" varchar(128),
    "E" varchar(129),
    "F" varchar(130),
    "G" varchar(200)
    The tables look fine when I check them using unixODBC's isql tool.
    But here's what SQLPlus tells me...
    SQL> desc test1@prism
    Name Null? Type
    TEST1ID NUMBER(10)
    TESTDATE DATE
    TESTVC VARCHAR2(20)
    SQL> desc test2@prism
    Name Null? Type
    A VARCHAR2(125)
    B VARCHAR2(126)
    C VARCHAR2(127)
    D VARCHAR2(128 CHAR)
    E VARCHAR2(256 CHAR)
    F VARCHAR2(512 CHAR)
    G VARCHAR2(18432 CHAR)
    The "TEST1" table looks fine, but, as you can see from the "TEST2" table, varchar columns longer than 128 characters are really screwy.
    Any ideas about how to fix this?
    If it helps, here's the trace from the above SQLPlus session:
    HOAUTIL.C (1259): ; ------ hoadtab (hoat) -------:
    HOAUTIL.C (1262): ; hoatnam: TEST1, hoatnml: 5, hoatnrw: -1, hoatarl: 30
    HOAUTIL.C (1273): ; ------ hoadtab (hoai) -------:
    HOAUTIL.C (1274): ; n_index_stat: 0
    HOAUTIL.C (1224): ; -------- hoadtab for table TEST1---------:
    HOAUTIL.C (1225): ; hoadamsz: 3, hoadasiz: 3, hoadambr: 1, hoadabrc: 0
    HOAUTIL.C (1228): ; row 0 - hoadambl: 4, hoadadty: 8, hoadaprc: 10, hoadacst: 0
    HOAUTIL.C (1232): ; row 0 - hoadascl: 0, hoadanul: 1, hoadanml: 7, hoadanam:
    TEST1ID, hoadabfl: 4, hoadamod: 0
    HOAUTIL.C (1228): ; row 1 - hoadambl: 7, hoadadty: 167, hoadaprc: 0, hoadacst:
    0
    HOAUTIL.C (1232): ; row 1 - hoadascl: 0, hoadanul: 1, hoadanml: 8, hoadanam:
    TESTDATE, hoadabfl: 7, hoadamod: 0
    HOAUTIL.C (1228): ; row 2 - hoadambl: 20, hoadadty: 108, hoadaprc: 20,
    hoadacst: 0
    HOAUTIL.C (1232): ; row 2 - hoadascl: 0, hoadanul: 1, hoadanml: 6, hoadanam:
    TESTVC, hoadabfl: 20, hoadamod: 0
    hoadtab (26): ; hoadtab Exited with retcode = 0.
    hoadafr (23): ; hoadafr Entered. id = 0.
    hoadafr (23): ; hoadafr Exited with retcode = 0.
    hoadtab (26): ; hoadtab Entered. count = 1
    hoadtab (26): ; schema_name = , table_name = TEST2
    odbc_rec: select * from "TEST2"
    r: 165od 0 SQLAllocStmt:- hdbc=8266C78,pst=FF93C95C
    r: 188od 0 SQLPrepare:- hst=829D848, css=-7091304
    sss = select * from "TEST2"
    r:1067od 0 SQLNumResultCols:- hst=829D848,pcol=7
    r:1090od 0 SQLDescribeCol:- hst=829D848,icol=1,scn=A,cnm=64,pcn=1,pst=12,
    pcd=125,psc=0,pnul=1
    r:1118od 0 SQLColAttributes:- hst=829D848,icol=1,fdt=10,rgbd=0,cbdm=0,pcb
    d=FF93C822,pfd=FF93C824
    r:1090od 0 SQLDescribeCol:- hst=829D848,icol=2,scn=B,cnm=64,pcn=1,pst=12,
    pcd=126,psc=0,pnul=1
    r:1118od 0 SQLColAttributes:- hst=829D848,icol=2,fdt=10,rgbd=0,cbdm=0,pcb
    d=FF93C822,pfd=FF93C824
    r:1090od 0 SQLDescribeCol:- hst=829D848,icol=3,scn=C,cnm=64,pcn=1,pst=12,
    pcd=127,psc=0,pnul=1
    r:1118od 0 SQLColAttributes:- hst=829D848,icol=3,fdt=10,rgbd=0,cbdm=0,pcb
    d=FF93C822,pfd=FF93C824
    r:1090od 0 SQLDescribeCol:- hst=829D848,icol=4,scn=D,cnm=64,pcn=1,pst=12,
    pcd=128,psc=0,pnul=1
    r:1118od 0 SQLColAttributes:- hst=829D848,icol=4,fdt=10,rgbd=0,cbdm=0,pcb
    d=FF93C822,pfd=FF93C824
    r:1090od 0 SQLDescribeCol:- hst=829D848,icol=5,scn=E,cnm=64,pcn=1,pst=12,
    pcd=129,psc=0,pnul=1
    r:1118od 0 SQLColAttributes:- hst=829D848,icol=5,fdt=10,rgbd=0,cbdm=0,pcb
    d=FF93C822,pfd=FF93C824
    r:1090od 0 SQLDescribeCol:- hst=829D848,icol=6,scn=F,cnm=64,pcn=1,pst=12,
    pcd=130,psc=0,pnul=1
    r:1118od 0 SQLColAttributes:- hst=829D848,icol=6,fdt=10,rgbd=0,cbdm=0,pcb
    d=FF93C822,pfd=FF93C824
    r:1090od 0 SQLDescribeCol:- hst=829D848,icol=7,scn=G,cnm=64,pcn=1,pst=12,
    pcd=200,psc=0,pnul=1
    r:1118od 0 SQLColAttributes:- hst=829D848,icol=7,fdt=10,rgbd=0,cbdm=0,pcb
    d=FF93C822,pfd=FF93C824
    r: 225od 0 SQLFreeStmt:- hst=829D848, fop=1
    r:1473od 0 SQLAllocStmt:- hdbc=8266C78,pst=FF93C5A4
    r:1486od 0 SQLStatistics:- hst=829D848,scn=0,ccn=0,ssn=0,csn=0,stn=FF93C6
    38,ctn=-3,funq=1,fcc=0
    scn=, ssn=, stn=TEST2
    r:1493od 0 SQLBindCol:- hst=829D848,icl=2,fct=1,rgv=FF93CB88,cbvm=129,pcv
    =-7092832
    r:1494od 0 SQLBindCol:- hst=829D848,icl=4,fct=5,rgv=FF93C59A,cbvm=0,pcv=-
    7092836
    r:1495od 0 SQLBindCol:- hst=829D848,icl=6,fct=1,rgv=FF93CAF8,cbvm=129,pcv
    =-7092844
    r:1496od 0 SQLBindCol:- hst=829D848,icl=7,fct=5,rgv=FF93C58E,cbvm=0,pcv=-
    7092848
    r:1497od 0 SQLBindCol:- hst=829D848,icl=9,fct=1,rgv=FF93CA68,cbvm=129,pcv
    =-7092856
    r:1498od 0 SQLBindCol:- hst=829D848,icl=10,fct=1,rgv=FF93C582,cbvm=2,pcv=
    -7092860
    r:1499od 0 SQLBindCol:- hst=829D848,icl=11,fct=4,rgv=FF93C578,cbvm=0,pcv=
    -7092868
    r:1500od 0 SQLBindCol:- hst=829D848,icl=12,fct=4,rgv=FF93C570,cbvm=0,pcv=
    -7092876
    r:1507od 100 SQLFetch:- hst=829D848
    r:1589od 0 SQLFreeStmt:- hst=829D848, fop=1
    nvOUT (qp_sqtxt.c 55): select NON_UNIQUE, INDEX_NAME, TYPE, SEQ_IN_INDEX,
    COLLATION, CARDINALITY, COLUMN_NAME from NAV_PROC:SP_STATISTICS('prism', '%',
    'TEST2', 1, 0, 0) order by 3, 1, 2, 4
    <<<<<<<<<<<<<<<<<<< Execution Strategy Begin <<<<<<<<<<<<<<<<<<<<<<<<<<<<
    Original SQL:
    select NON_UNIQUE , INDEX_NAME , TYPE , SEQ_IN_INDEX , COLLATION , CARDINALITY , COLUMN_NAME from NAV_PROC : SP_STATISTICS ( 'prism' , '%' , 'TEST2' , 1 , 0 , 0 ) order by 3 , 1 , 2 , 4
    Accessing saved query spec SP_STATISTICS()
    from NAV_PROC DB
    Execution Strategy End >>>>>>>>>>>>>>>>>>>>>>>>>>>>HOAUTIL.C (1259): ; ------ hoadtab (hoat) -------:
    HOAUTIL.C (1262): ; hoatnam: TEST2, hoatnml: 5, hoatnrw: -1, hoatarl: 484
    HOAUTIL.C (1273): ; ------ hoadtab (hoai) -------:
    HOAUTIL.C (1274): ; n_index_stat: 0
    HOAUTIL.C (1224): ; -------- hoadtab for table TEST2---------:
    HOAUTIL.C (1225): ; hoadamsz: 7, hoadasiz: 7, hoadambr: 1, hoadabrc: 0
    HOAUTIL.C (1228): ; row 0 - hoadambl: 125, hoadadty: 108, hoadaprc: 125,
    hoadacst: 0
    HOAUTIL.C (1232): ; row 0 - hoadascl: 0, hoadanul: 1, hoadanml: 1, hoadanam:
    A, hoadabfl: 125, hoadamod: 0
    HOAUTIL.C (1228): ; row 1 - hoadambl: 126, hoadadty: 108, hoadaprc: 126,
    hoadacst: 0
    HOAUTIL.C (1232): ; row 1 - hoadascl: 0, hoadanul: 1, hoadanml: 1, hoadanam:
    B, hoadabfl: 126, hoadamod: 0
    HOAUTIL.C (1228): ; row 2 - hoadambl: 127, hoadadty: 108, hoadaprc: 127,
    hoadacst: 0
    HOAUTIL.C (1232): ; row 2 - hoadascl: 0, hoadanul: 1, hoadanml: 1, hoadanam:
    C, hoadabfl: 127, hoadamod: 0
    HOAUTIL.C (1228): ; row 3 - hoadambl: 128, hoadadty: 108, hoadaprc: 128,
    hoadacst: 0
    HOAUTIL.C (1232): ; row 3 - hoadascl: 0, hoadanul: 1, hoadanml: 1, hoadanam:
    D, hoadabfl: 128, hoadamod: 0
    HOAUTIL.C (1228): ; row 4 - hoadambl: 129, hoadadty: 108, hoadaprc: 129,
    hoadacst: 0
    HOAUTIL.C (1232): ; row 4 - hoadascl: 0, hoadanul: 1, hoadanml: 1, hoadanam:
    E, hoadabfl: 129, hoadamod: 0
    HOAUTIL.C (1228): ; row 5 - hoadambl: 130, hoadadty: 108, hoadaprc: 130,
    hoadacst: 0
    HOAUTIL.C (1232): ; row 5 - hoadascl: 0, hoadanul: 1, hoadanml: 1, hoadanam:
    F, hoadabfl: 130, hoadamod: 0
    HOAUTIL.C (1228): ; row 6 - hoadambl: 200, hoadadty: 108, hoadaprc: 200,
    hoadacst: 0
    HOAUTIL.C (1232): ; row 6 - hoadascl: 0, hoadanul: 1, hoadanml: 1, hoadanam:
    G, hoadabfl: 200, hoadamod: 0
    hoadtab (26): ; hoadtab Exited with retcode = 0.
    hoadafr (23): ; hoadafr Entered. id = 0.
    hoadafr (23): ; hoadafr Exited with retcode = 0.
    hoacomm (11): ; hoacomm Entered. keepinfo = FALSE, tflag = 1.
    e:1328od 0 SQLTransact:- henv=0,hdbc=8266C78, ftp=0
    e:1334od 0 SQLSetConnectOption:- hdbc=8266C78, fop=102 , vprm=1
    hoacomm (11): ; hoacomm Exited with retcode = 0.
    hoalgof (8): ; hoalgof Entered. tflag = 1.
    nvRETURN (drviunwn.c 779): -1210
    i:1231od 0 SQLDisconnect:- hdbc=8266C78
    i:1238od 0 SQLFreeConnect:- hdbc=8266C78
    (Last message occurred 2 times)
    hoalgof (8): ; hoalgof Exited with retcode = 0.
    hoaexit (6): ; hoaexit Entered.
    hoaexit (6): ; hoaexit Exited with retcode = 0.

    user7566651 wrote:
    I have set up a database link between Oracle XE and PostgreSQL using unixODBC, but I seem to be having trouble with certain data types.Interesting... Oracle uses standard ODBC API calls to describe the table contents and data types. You will see these as calls "+SQLDescribeCol+" and "+SQLColAttributes+" in your log listing.
    This returns the data type of the column. I assume Oracle then maps this to its own data types - for example a string datatype will be mapped to varchar2.
    One problem is that Oracle only support string sizes of up to 4000 bytes (including multi-byte charsets). Anything larger than that needs to be a CLOB. Thus the mapping is not a simple 1:1 map - it's a tad more complex than that.
    But your foreign table does not touch on these complexities. It uses string data types that should be straight forward to map.
    As this (complex mapping) is not the case, one of two possible issues comes to mind.
    Oracle has a bug in the way it maps the remote column's data type to an equivalent Oracle SQL data type.
    Or, the ODBC driver is returning funky and incorrect data types that Oracle then also maps incorrectly as a result.
    I'm more inclined to think the latter - as the ODBC API is a standard and Oracle's Heterogeneous Agent interface that uses it, has been thoroughly tested. So while there can be bugs in the agent's use of the ODBC call interface, I rather think it could be the driver.
    The driver needs to provide an interface (govern by ODBC call interface standards) to the client - and map these to the call interface supported by that database (e.g. OCI for Oracle, dblib for SQL-Server, etc). This can be complex - and as I doubt that Postgres's ODBC driver is that widely used and undergo the same amount of intensive testing.
    You can confirm/reject this as the error by replacing the ODBC driver (if there are other versions/sources available) and testing Oracle with that.
    Or you can use another ODBC client (e.g. isql command line executable) and check what it sees when dealing with this specific ODBC driver against that Postgres database and tables.
    An alternative option is to actually debug the ODBC calls made - as the log file includes the parameters passed and responses (with full verbose logging enabled). This will tell you exactly how the Oracle HS agent is using the ODBC call interface, parameters passed and what it sees in return.

  • Database link problem in a page process

    I'm trying to access a function over the database link in a page onload process. The called function located in another schema returns a varchar2 value, based on this value, I'll be doing appropriate navigation. But it's giving the following dblink error. However the select statement below works fine in sqlplus. any ideas are appreciated.
    ORA-04054: database link testschema does not exist
    DECLARE
    v_check varchar2(10) := NULL;
    BEGIN
    execute immediate 'select is_valid@testschema(&APP_USER., 10) into v_check from dual';
    END;
    thanks,
    Surya

    First you don't want to use &. anything in sql - use a bind variable and the using clause.
    Second, what if you try creating a view with the dblink in there and call the view? Does that change the error?

  • Database link problem

    I am trying to connect two databases on the same NT server in Oracle8i.
    I need to query both databases (UNION) from a stored procedure called
    from a VB program. This is the link I created, but can't get to work. Any suggestions?
    -- create database link in "Document" database to connect to second database ("Infowhse") ON SAME SERVER
    create public database link infowhse.anacortes
    using infowhse_shaw
    -- Tnsnames.ora (on server)
    INFOWHSE_SHAW =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = shaw)(PORT = 1521))
    (CONNECT_DATA = (SID = INFOWHSE)(SERVER = DEDICATED))
    -- Creates successfully. When tested from within DB Studio, I get the following error message:
    The database link is not active
    -- If I key the following sql:
    select sysdate from dual@infowhse_shaw
    -- I get the following error message:
    ORA-12154: TNS:could not resolve service name
    Thank you for your help.

    In your case the command should be like the following, if the GLOBAL_NAMES parameter is not set. You have to give the link name as same as the name in the TNSNAMES.ORA file. You can give any name in other case like you have set your GLOBAL_NAMES parameter.
    create public database link infowhse.shaw connect to <username> identified by <pwd> using infowhse.shaw
    Try it..Good Luck
    null

  • Database Link Problem-Peculiar SQL stmt execution.. Please help

    Hi all,
    This is a strange problem i'm facing while running the following query.
    This query is run on the local machine which is fetching data from another remote database. All the functions included also are fetching data from the remote database through db links.
    I know lot of db links are into picture, but the requirement is like this only.
    SQL :SELECT billing_extract_subscriber.get_external_id_types_descr
    (ciem.external_id_type,
    'ra_delhi'
    ) AS "EXTERNAL_ID_TYPE",
    ciem.external_id, ciem.subscr_no customer_equip_map_subscr_no,
    ciem.subscr_no_resets, s.subscr_no servive_subscriber_no,
    s.service_active_dt, s.service_inactive_dt, s.is_prepaid,
    billing_extract_subscriber.get_status_values_descr
    (ss.status_id,
    'ra_delhi'
    ) AS "STATUS_VALUES",
    billing_extract_subscriber.get_status_type_values_descr
    (ss.status_type_id,
    'ra_delhi'
    ) AS "STATUS_TYPE_VALUES",
    ss.subscr_no service_status_subscr_no, NULL "point_target",
    NULL "customer_corridors_subscr_no", cmc.component_id, cmc.package_id,
    billing_extract_subscriber.get_component_name_descr
    (cmc.component_id,
    'ra_delhi'
    ) AS "COMPONENT_NAME",
    billing_extract_subscriber.get_package_def_values_descr
    (cmc.package_id,
    'ra_delhi'
    ) AS "PACKAGE_NAME",
    cmc.component_status,
    billing_extract_subscriber.get_mkt_code_values_descr
    (cf.mkt_code,
    'ra_delhi'
    ) AS "MKT_CODE",
    cf.account_no,
    billing_extract_subscriber.get_bill_period_descr
    (cf.bill_period,
    'ra_delhi'
    ) AS "BILL_PERIOD",
    cf.account_type,
    billing_extract_subscriber.get_account_category_descr
    (cf.account_category,
    'ra_delhi'
    ) AS "ACCOUNT_CATEGORY",
    billing_extract_subscriber.get_gender_descr (cf.gender,
    'ra_delhi'
    ) AS "GENDER"
    FROM customer_id_equip_map@ra_delhi ciem,
    service@ra_delhi s,
    service_status@ra_delhi ss,
    cmf_package_component@ra_delhi cmc,
    cmf@ra_delhi cf
    WHERE ciem.subscr_no = s.subscr_no
    AND s.subscr_no = ss.subscr_no
    AND s.parent_account_no = cf.account_no
    AND s.service_active_dt >= cf.date_active
    AND NVL (s.service_inactive_dt, '31-dec-9999') <=NVL (cf.date_inactive, '31-dec-9999')
    AND s.service_active_dt <= ciem.active_date
    AND NVL (s.service_inactive_dt, '31-dec-9999') >=NVL (ciem.inactive_date, '31-dec-9999')
    AND cmc.parent_account_no = cf.account_no
    AND ciem.active_date <= cmc.active_dt
    AND NVL (ciem.inactive_date, '31-dec-9999') >=NVL (cmc.inactive_dt, '31-dec-9999');
    *1. Now when i'm running this sql all as a whole I'm getting the error:*
    ORA-00904: "S"."SERVICE_INACTIVE_DT": invalid identifier
    ORA-02063: preceding line from RA_DELHI
    Sometimes Invalid Identifier, sometimes invalid table etc. is coming.
    *2. Now when i'm running the above query after breaking into two parts is :*
    a. first part .. WHERE clause is removed -
    SELECT billing_extract_subscriber.get_external_id_types_descr
    (ciem.external_id_type,
    'ra_delhi'
    ) AS "EXTERNAL_ID_TYPE",
    ciem.external_id, ciem.subscr_no customer_equip_map_subscr_no,
    ciem.subscr_no_resets, s.subscr_no servive_subscriber_no,
    s.service_active_dt, s.service_inactive_dt, s.is_prepaid,
    billing_extract_subscriber.get_status_values_descr
    (ss.status_id,
    'ra_delhi'
    ) AS "STATUS_VALUES",
    billing_extract_subscriber.get_status_type_values_descr
    (ss.status_type_id,
    'ra_delhi'
    ) AS "STATUS_TYPE_VALUES",
    ss.subscr_no service_status_subscr_no, NULL "point_target",
    NULL "customer_corridors_subscr_no", cmc.component_id, cmc.package_id,
    billing_extract_subscriber.get_component_name_descr
    (cmc.component_id,
    'ra_delhi'
    ) AS "COMPONENT_NAME",
    billing_extract_subscriber.get_package_def_values_descr
    (cmc.package_id,
    'ra_delhi'
    ) AS "PACKAGE_NAME",
    cmc.component_status,
    billing_extract_subscriber.get_mkt_code_values_descr
    (cf.mkt_code,
    'ra_delhi'
    ) AS "MKT_CODE",
    cf.account_no,
    billing_extract_subscriber.get_bill_period_descr
    (cf.bill_period,
    'ra_delhi'
    ) AS "BILL_PERIOD",
    cf.account_type,
    billing_extract_subscriber.get_account_category_descr
    (cf.account_category,
    'ra_delhi'
    ) AS "ACCOUNT_CATEGORY",
    billing_extract_subscriber.get_gender_descr (cf.gender,
    'ra_delhi'
    ) AS "GENDER"
    FROM customer_id_equip_map@ra_delhi ciem,
    service@ra_delhi s,
    service_status@ra_delhi ss,
    cmf_package_component@ra_delhi cmc,
    cmf@ra_delhi cf
    The query is running fine.
    b. when i'm running the another part where i'm removing the functions and replacing with then also it is running fine. e.g*
    SELECT *
    FROM customer_id_equip_map@ra_delhi ciem,
    service@ra_delhi s,
    service_status@ra_delhi ss,
    cmf_package_component@ra_delhi cmc,
    cmf@ra_delhi cf
    WHERE ciem.subscr_no = s.subscr_no
    AND s.subscr_no = ss.subscr_no
    AND s.parent_account_no = cf.account_no
    AND s.service_active_dt >= cf.date_active
    AND NVL (s.service_inactive_dt, '31-dec-9999') <=NVL (cf.date_inactive, '31-dec-9999')
    AND s.service_active_dt <= ciem.active_date
    AND NVL (s.service_inactive_dt, '31-dec-9999') >=NVL (ciem.inactive_date, '31-dec-9999')
    AND cmc.parent_account_no = cf.account_no
    AND ciem.active_date <= cmc.active_dt
    AND NVL (ciem.inactive_date, '31-dec-9999') >=NVL (cmc.inactive_dt, '31-dec-9999');
    *3. I can trace out there is some problem related to the concurrent db links getting opened.*
    i've done resizing the following parameters as well but isn't working :
    NAME TYPE VALUE
    open_cursors integer 3000
    open_links integer 100
    open_links_per_instance integer 100
    read_only_open_delayed boolean FALSE
    session_max_open_files integer 10
    NAME TYPE VALUE
    open_cursors integer 3000
    open_links integer 100
    open_links_per_instance integer 100
    read_only_open_delayed boolean FALSE
    session_max_open_files integer 10
    SQL>
    SQL> sho parameter distributed
    NAME TYPE VALUE
    distributed_lock_timeout integer 300
    I've tried breaking up the query but in any case i'm opening same no. of dblinks. So it din't help me.
    Kindly Suggset what to do? Is there any more parameter which govern maximum db links opened at a time? or is this problem due to someother reasons?
    Database Details :
    Version : 10.2.0.3.0
    Platform : HP UX

    Hi all,
    NO RESPONSE AT ALL???
    Well not a PROBLEM....
    I got my solution so thought of writing it here for everybody's reference.
    SQL> alter session set events '10176 trace name context forever';
    Session altered.
    SQL> alter system flush shared_pool;
    System altered.
    And then I have execute original query given by Prabhat, it's running fine.
    Applies to:
    Oracle Server - Enterprise Edition - Version: 10.2.0.1 to 11.1.0.7
    This problem can occur on any platform.
    Symptoms
    -- Problem Statement:
    Following query over dblink having Local database 9iR2 and remote 10gR2 works..
    select *
    from ctps3.institutions@ctps3 i,
    ctps3.state_types@ctps3 s,ods.institutions oi
    where s.stt_state_type_id (+) = i.stt_state_type_id
    and oi.ctps_insttn_id = i.inst_insttn_id
    and i.inst_modifd_dt = trunc(sysdate)
    and (nvl (oi.inst_state_txt, 'x') <> nvl (s.stt_state_type_nm, 'x'))
    and (nvl (oi.inst_phone_txt, 17) <> nvl (i.inst_phone_txt, 17));
    The same query fails when both local and remote databases are 10g R2, with following errors:
    ERROR at line 2:
    ORA-00904: "OI"."INST_STATE_TXT": invalid identifier
    ORA-02063: preceding line from CTPS3
    Cause
    Outer join query over dblink can fail with ORA-904, as referenced in:
    Bug 6620988 QUERY OVER DBLINK FAILS WITH ORA-904 SELECTING DATE
    Predicates are not checked to verify if they belong to same network node when we attempt to colocate the remote tables. This results in wrongly generating remote query and ORA-904
    REDISCOVERY INFORMATION:
    1. ORA-904
    2. DB link
    3. OJ predicates across network nodes
    4. predicates wrongly pushed network nodes
    Solution
    -- To implement the solution, please execute the following steps::
    Use the workaround of disabling colocated joins via event 10176 and force a hard parse to happen
    (ie by flushing the shared pool), ie:
    SQL> alter session set events '10176 trace name context forever';
    SQL> alter system flush shared_pool;
    or
    For a permanent fix, request a One-Off Backport of 6620988 for the appropiate platform.
    References
    Bug 6620988 - QUERY OVER DBLINK FAILS WITH ORA-904 SELECTING DATE

  • Database link problems? Better read this.

    If your Event viewer shows this, the reason is that
    ColdFusion SequeLink Service is incompatible with Windows 64 bit
    and 64 bit hardweare architecture.
    Errors on Windows XP SP1 x64 with AMD 3800 x64
    Source - SequeLink Service Start
    Event ID - 0
    Description
    The description for Event ID ( 0 ) in Source ( SequeLink
    Service Starter ) cannot be found. The local computer may not have
    the necessary registry information or message DLL files to display
    messages from a remote computer. You may be able to use the
    /AUXSOURCE= flag to retrieve this description; see Help and Support
    for details. The following information is part of the event:
    RegOpenKeyEx(0) of SYSTEM\CurrentControlSet\Services\ColdFusion MX
    ODBC Server\Parameters\ returned 0
    Source - SequeLink Service Starter
    Event ID - 0
    The description for Event ID ( 0 ) in Source ( SequeLink
    Service Starter ) cannot be found. The local computer may not have
    the necessary registry information or message DLL files to display
    messages from a remote computer. You may be able to use the
    /AUXSOURCE= flag to retrieve this description; see Help and Support
    for details. The following information is part of the event:
    Missing datamodel path
    Source - SequeLink
    Event ID - 2
    Description
    The description for Event ID ( 2 ) in Source ( SequeLink )
    cannot be found. The local computer may not have the necessary
    registry information or message DLL files to display messages from
    a remote computer. You may be able to use the /AUXSOURCE= flag to
    retrieve this description; see Help and Support for details. The
    following information is part of the event: RegOpenKeyEx returned 0
    Source - Application Error
    Catagory - (100)
    Event ID - 1000
    Description
    Faulting application swstrtr.exe, version 2.9.0.0, faulting
    module unknown, version 0.0.0.0, fault address 0x00000000.
    Source - Application Error
    Catagory - (100)
    Event ID - 1000
    Description
    Faulting application swagent.exe, version 2.9.0.0, faulting
    module unknown, version 0.0.0.0, fault address 0x00000000.
    Source - Wow64 Emulation Layer
    Event ID - 1109
    The program or feature "\??\C:\CFusionMX7\db\SequeLink
    Setup\SequeLink Setup.exe" cannot start or run due to
    incompatibility with 64-bit versions of Windows. Please contact the
    software vendor to ask if a 64-bit Windows compatible version is
    available.
    Error on Intel 'D' series 3000 using Wondows XP SP2
    Source - Service Control Manager
    Event ID - 7000
    Description
    The ColdFusion MX ODBC Agent service failed to start due to
    the following error:
    The system cannot find the file specified.
    Event ID - 7000
    Description
    The ColdFusion MX ODBC Server service failed to start due to
    the following error:
    The system cannot find the file specified.
    Event ID - 7024
    Description
    The ColdFusion MX 7 Application Server service terminated
    with service-specific error 2 (0x2).
    I assume that Macromedia is aware of this. Had to be.
    Shame that a lot of people had to put up with the stress
    associated with this.
    I know that this forum is visited by mostly 'newbies' and I
    can not expect any help, but I beleive that you need to be made
    aware of this conflict.
    Going to post this all over the internet, every blogg, forum,
    Microsoft TechNet (which I am a member of) complaining hole I can
    get my mouse to click on.
    How about just doing a proper SDLC.
    Macromedia- Release an updated version.

    paross1
    I have read that. You seem to have a problem. Which part of
    the English language can you not understand.
    I told you that I have got it working- all of it, with a
    minor problem with the data linking.
    This includes the JRun4, and the Sun al on On a AMD 64, Abit
    sli board, RAID 5 using WD 740 GD HDD. on a WinXP 64.
    I asked a simple question regarding Macromedia (Adobe)
    ColdfusionMX7 ColdFusion MX ODBC Agent/Server.
    Have you ever considered that their are i'some people' who
    may know a thing or two.
    I have also managed to get the ODBC to work also. Thanks for
    your input.
    I have now after testing installed it on Windows 2003 Server
    (64bit) and is working.
    I strongly suggest that you have a change in attitude, do
    some learning and realize that the 'impossible' is achievable with
    the correct frame of mind.
    I have been working on this for 3 days solid.
    You also forget to mention in your sarcasm the Intel 'D'
    series processor on a Windows XP 32 bit- not 64 bit OS, that was
    experiencing the same symptoms. Where in the knowledge base do you
    find that.

  • Database link in forms 6i stopped working in database 10g release 2.

    Hi,
    We have Forms 6i with all patches added.
    We were able to recompile the form that contains database link in database 10g release 1 environment. Recently we migrated to database 10g release 2.
    We still can run the form (previously compiled in database 10g release 1), but when we tried to modify the form and recompile it in databbase 10g release 2,
    the forms developer closed down without giving any error message.
    When we removed any reference to the database link from the form, we were able to recompile the form with no problem. Database Linkd in SQL works.
    The question: what do we need to do in the database 10g release 2 to make the link in forms 6i work?
    Thank you. Lev.

    I recently upgraded my development environment from Forms 10.1.2.0.2 to Forms 10.1.2.3 and am experiencing the same problem -- not able to COMPILE a form that references a database link. The error is: "Error 352 at line 99, column 3 Unable to access another database 'LINKNAME'". This occurs on an UPDATE statement within PL/SQL code in a form trigger that used to compile and work fine.
    I tried the database link in SQL Plus and the link is working fine.
    Database environment is 10g 10.2.0.3 on Windows Server 2003.
    Is anyone able to do this?

  • Database link in forms is different that actual database name

    I am using a database link in Oracle Forms 6i, however, the database link name for the referenced database is not the same as the actual databse service/instance name.
    It does not work, and I suppose its something to do with the global names feature which is true in the source database it is in a replication group.
    I would like to know whether the dblink name which I am using in oracle forms, does it have to have the same name as an entry in the tnsnames.ora file, or can be substituted thgrough any so-calld alias from within oracle forms?
    Windows 2k Ad svr, Oracle Forms 6i, DB 9.2.0.1

    I recently upgraded my development environment from Forms 10.1.2.0.2 to Forms 10.1.2.3 and am experiencing the same problem -- not able to COMPILE a form that references a database link. The error is: "Error 352 at line 99, column 3 Unable to access another database 'LINKNAME'". This occurs on an UPDATE statement within PL/SQL code in a form trigger that used to compile and work fine.
    I tried the database link in SQL Plus and the link is working fine.
    Database environment is 10g 10.2.0.3 on Windows Server 2003.
    Is anyone able to do this?

  • Remote Database Link

    I have to Database set up in 2 different machine. All are having rel 9.2.0.1.0 in them. I am trying to use private fixed database link to connect form one to another(from a 3rd client machine).
    say my orcale databases are:
    service_name for target database: orcl_tgt.x.y
    service_name for source database: orcl_source.p.q
    when i create a database link in orcl_target(orcl_tgt.x.y) from a 3rd machine(9i client installed) like this:
         CREATE DATABASE LINK "L1" CONNECT TO "user_name"
         IDENTIFIED BY "pswd1"
         USING 'orcl_source.p.q'
    it says link created ,but when i try to view data using the link from target
    select * from xyz@L1 it says
    ERROR at line 1:
    ORA-12154: TNS:could not resolve service name
    in our system global_names parameter is set to false in both the databases.
    Can anybody suggests how to solve this?

    justin is right
    first check your tnsname entry
    that it will work property
    for that first u connect to remote machine by sqlplus
    and use tnsname 'orcl_source.p.q'
    i think u r not created 'orcl_source.p.q' in tnsname files--------------------------
    Cause: The service name specified is not defined correctly in the TNSNAMES.ORA file.
    Action: Make the following checks and correct the error:
    Verify that a TNSNAMES.ORA file exists and is in the proper place and accessible. See the operating system specific manual for details on the required name and location.
    Check to see that the service name exists in one of the TNSNAMES.ORA files and add it if necessary.
    Make sure there are no syntax errors anywhere in the file. Particularly look for unmatched parentheses or stray characters. Any error in a TNSNAMES.ORA file makes it unusable. See the Oracle Net Services Administrator's Guide. If possible, regenerate the configuration files using the Oracle Network Manager.
    hope it will help you
    kuljeet pal singh

  • Database link error when compiling forms 6.0 and forms 6i.

    Dear sirs,
    We have a database link between two databases of the same version oracle 8.0.5.
    Recently we have upgraded one of our databases to version 9.2.0.1 (the database where the database link was originally created ) and now we are having problems when compiling forms that have PL/SQL blocks using the database link.
    The error message received when compiling the form is the following:
    ORA-02068: Following severe error from dbproduc.world
    ORA-00600: Internal error code, arguments: [No conversion op],[],[],[],[],[],[],[]
    The forms did not present this error before, it began when we made the upgrade.
    Is this a FORMS 6.0 problem ?
    Is this an ORACLE 8.0.5 problem ?
    Is this an ORACLE 9.2.0.1 problem ?
    Can you please give me some advice to solve this problem ?
    Thanks in advance

    As I see, when you use a non-oracle database the tables don`t appear, you must create the realation with the table manually, on the properties

  • Using database link  with a dynamic SQL in Forms 5

    I have a Form 5 application where a database link is specified in a client version of dynamic SQL. The function that the application is designed to perform is to access data in a table in a remote database and use it to populate another table in a local database with the same structure as the source table. Dynamic SQL is used because the name of the table can only be resolved during run time.
    The problem is that it gives error with code 'ORA-03113' and text 'End-of-file on communication channel' when you try to run it.
    Is it not possible to use a database link with a dynamic SQL? What can I do to overcome the problem ?

    Try to create a local view based ao the remote table and use the view.

  • Question about using database links in Forms 10g

    I have a form that uses a database link for the "Query Data Source Name," i.e. it is set to some_view@some_db_link
    For some reason when I run a query using the DB link the query takes approximately 30 seconds. When I remove the link and go local the query takes about one second. Has anybody observed and addressed this issue before (without going local of course)?
    Thanks,
    Thomas

    Let me first say that it is never a good idea to use a db link in the data source. It is better to create a synonym in the database and use this as the data source. If the db link changes, you only have to do this in the database, without recompiling forms.
    create synonym some_view for some_view@some_db_link
    This may already solve your problem. If not, than see if the query is also slow in sqlplus. You may have a problem in your connection between the two databases.

  • Building a form based on a synonym that points to a database link

    Hello
    Finally I got APEX 3 installed on our test server. I am starting to work with it and I faced my first problem...
    I need to build an application that will query and maintain data stored in another database server. This is because we were not allowed to install APEX in the production server. So I created a schema DEV_USER (which I associated with the workspace). In this schema I created a private database link my_link and a synonym:
    create synonym the_table for the_table@my_link
    I am trying to create a form to query and maintain that table via the synonym but I am not succeeding. The wizard does not work as the synonym is not listed in the table list. Then I created the form manually, creating the items, the Automatic Row Processing process etc. When I run the page I get the error Error ORA-01403: no data found.
    Is it possible to use APEX in this scenario (accessing synonyms that point to database links)? What is the recommended approach in this case?
    Thanks
    Luis

    Hi Kathryn
    Thanks very much for your reply. I did as you suggested; I dropped the synonym and created a view:
    create view my_table as select * from my_table@my_dblink
    ...and was able to create a multirow form based on that view.
    However, when I try to update any value on the form, I get the following error when submitting it:
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-01461: can bind a LONG value only for insert into a LONG column ORA-02063: preceding line from DB_LINK, update "APEX_DEV"."MY_TABLE" set "CAMPAIGN_ID" = :b1, "SITE" = :b2, "PERCENTUAL" = :b3, "DURATION_MONTHS" = :b4, "PRG_ID" = :b5, "AFF_ID" = :b6 where "CAMPAIGN_ID" = :p_pk_col and "SITE" = :p_pk_col2
    I thought it was because the form was based on a view; so I dropped the view and re-created the synonym (using the same name). When I tried to submit the updates again I got this error:
    Error in mru internal routine: ORA-20001: Error in MRU: row= 0, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. current checksum = "35636E5FDD251146DB4B7B56119E7914", item checksum = "A884FA378C851786DDFE3A33709CB23C"., update "APEX_DEV"."MY_TABLE" set
    If you or anyone else could point out what I am missing, and maybe explain what those messages mean, it would be great!
    Thanks
    Luis

Maybe you are looking for

  • GR and GR reversal amount not same

    Hi, I'm using SAP ECC 6.0. The sequence of my posting: PO Price = 1.32 / kg Material Master = using standard price S      Transaction     Quantity (KG)     Unit price (USD)     Value (USD) 1     IR receipt      1,320.00                             50

  • Suddenly slow loading of websites and RBB in Safari and Chrome

    I'm working with a MBPro 17" 2009, Mavericks 10.9.4 and suddenly RAM seems to be full especially when using Chrome or Safari Broswers. I know there is a problem with a sector of my hard drive, this is an old story; the slow web page loading and rotat

  • Programmatic add a control to a vi at runtime

    Hello, There is a posibility to add a control to the front panel at the runtime, programmatically?

  • Disk Burn cancelling

    So on my laptop i have happily been burning audio CD'S for use in my car but latley the disk burn cancels and comes up with 'unknown error 4251' Can anyone shed any light on this for me? I have reinstalled intunes and repaired it but still no joy...

  • The virtual machine has terminated unexpectedly during startup with exit code 1 (0x1)

    Hello All, I came up with the error below, when I am trying to start a virtual machine from my VirtualBox. It was working fine till yesterday, and all of a sudden it's throwing this error. The only change I can think of, is of some automatic windows