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.

Similar Messages

  • 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.

  • I have a problem when update tables with a database link (APEX)

    Hi, I search answers for my problem and I not found a solution. My problem start when I open page with database link statement in APEX. I drop tables and execute this for update the tables in APEX.
    EXECUTE IMMEDIATE 'CREATE TABLE XXXXXXX
    AS
    SELECT A1,A2,A3
    FROM AAA@BBB';
    I use Mozilla Firefox and isn't always updated the tables because it shows dialog for downloading file "f". I rename the file to txt and I see the text "IBMPC/WIN_NT-8.1.0"...
    In the explorer always show a window only the text "IBMPC/WIN_NT-8.1.0"...
    What is the solution for my problem? I need update this tables.
    Thanks. John.

    It's easy. It doesn't work a database link, on apex, with a pl/sql code or store procedure.
    I saw that many people had the same problem but I don't see a solution.
    As I put up, I want to remove my tables on APEX and copy the table of my Oracle database with the update dates.
    The posts are from the same problem as my English is very bad, it got to help explain the problem.
    I have a page with a pl/sql code. This code in Oracle is correctly.
    For example, with this code I update the table PRUEBAS with the data of TABLEX.
    BEGIN
    BEGIN
    EXECUTE IMMEDIATE 'DROP TABLE "PRUEBAS"';
    EXCEPTION WHEN OTHERS THEN NULL;
    END;
    EXECUTE IMMEDIATE 'CREATE TABLE "PRUEBAS"
    AS
    SELECT AAA,
    BBB,
    CCC
    FROM TABLEX';
    END;
    But, in this code, I have the problem.
    BEGIN
    BEGIN
    EXECUTE IMMEDIATE 'DROP TABLE "PRUEBAS"';
    EXCEPTION WHEN OTHERS THEN NULL;
    END;
    EXECUTE IMMEDIATE 'CREATE TABLE "PRUEBAS"
    AS
    SELECT AAA,
    BBB,
    CCC
    FROM TABLEX@DB_LINK';
    END;
    I sometimes get an error. Sometimes it works fine, but half of the tries Apex returns "IBMPC/WIN_NT-8.1.0" in the browser and I am not using an IBM PC or Win NT...
    And i read that In the alert_xe.log file there are a error of core dump... ... :S or that the application return corrupt headers.... Is a problem of versions?
    I used a synonym and I have the same problem.      
    Even if I run the code on SQL COMMANDS (SQL WORKSHOP) it shows dialog for downloading file "f". I rename the file to txt and I see the text "IBMPC/WIN_NT-8.1.0"...
    The problem is in Mozilla Firefox and in IE.
    I have the OracleXE 10g (Application Express 3.0.1.00.08).
    And the question is.. ... ... ... ... What is the solution? :)
    Thanks.
    John.

  • Interactive report performance problem over database link - Oracle Gateway

    Hello all;
    This is regarding a thread Interactive report performance problem over database link that was posted by Samo.
    The issue that I am facing is when I use Oracle function like (apex_item.check_box) the query slow down by 45 seconds.
    query like this: (due to sensitivity issue, I can not disclose real table name)
    SELECT apex_item.checkbox(1,b.col3)
    , a.col1
    , a.col2
    FROM table_one a
    , table_two b
    WHERE a.col3 = 12345
    AND a.col4 = 100
    AND b.col5 = a.col5
    table_one and table_two are remote tables (non-oracle) which are connected using Oracle Gateway.
    Now if I run above queries without apex_item.checkbox function the query return or response is less than a second but if I have apex_item.checkbox then the query run more than 30 seconds. I have resolved the issues by creating a collection but it’s not a good practice.
    I would like to get ideas from people how to resolve or speed-up the query?
    Any idea how to use sub-factoring for the above scenario? Or others method (creating view or materialized view are not an option).
    Thank you.
    Shaun S.

    Hi Shaun
    Okay, I have a million questions (could you tell me if both tables are from the same remote source, it looks like they're possibly not?), but let's just try some things first.
    By now you should understand the idea of what I termed 'sub-factoring' in a previous post. This is to do with using the WITH blah AS (SELECT... syntax. Now in most circumstances this 'materialises' the results of the inner select statement. This means that we 'get' the results then do something with them afterwards. It's a handy trick when dealing with remote sites as sometimes you want the remote database to do the work. The reason that I ask you to use the MATERIALIZE hint for testing is just to force this, in 99.99% of cases this can be removed later. Using the WITH statement is also handled differently to inline view like SELECT * FROM (SELECT... but the same result can be mimicked with a NO_MERGE hint.
    Looking at your case I would be interested to see what the explain plan and results would be for something like the following two statements (sorry - you're going have to check them, it's late!)
    WITH a AS
    (SELECT /*+ MATERIALIZE */ *
    FROM table_one),
    b AS
    (SELECT /*+ MATERIALIZE */ *
    FROM table_two),
    sourceqry AS
    (SELECT  b.col3 x
           , a.col1 y
           , a.col2 z
    FROM table_one a
        , table_two b
    WHERE a.col3 = 12345
    AND   a.col4 = 100
    AND   b.col5 = a.col5)
    SELECT apex_item.checkbox(1,x), y , z
    FROM sourceqry
    WITH a AS
    (SELECT /*+ MATERIALIZE */ *
    FROM table_one),
    b AS
    (SELECT /*+ MATERIALIZE */ *
    FROM table_two)
    SELECT  apex_item.checkbox(1,x), y , z
    FROM table_one a
        , table_two b
    WHERE a.col3 = 12345
    AND   a.col4 = 100
    AND   b.col5 = a.col5If the remote tables are at the same site, then you should have the same results. If they aren't you should get the same results but different to the original query.
    We aren't being told the real cardinality of the inners select here so the explain plan is distorted (this is normal for queries on remote and especially non-oracle sites). This hinders tuning normally but I don't think this is your problem at all. How many distinct values do you normally get of the column aliased 'x' and how many rows are normally returned in total? Also how are you testing response times, in APEX, SQL Developer, Toad SQLplus etc?
    Sorry for all the questions but it helps to answer the question, if I can.
    Cheers
    Ben
    http://www.munkyben.wordpress.com
    Don't forget to mark replies helpful or correct ;)

  • Problem with using database link from oracle 7 to oracle 9i

    Hi To Every One
    I have two oracle database oracle 7.3.4.0.1 and oracle 9i 9.2.0.1.0.
    and the tns alias to connect to oracle 9i database is oracle9i and tns
    alias to oracle 7 database is oracle7.I have no problem in connect to
    these database using these tns aliases from either database.The tns
    alias for oracle 7 is available in tnsnames.ora file of oracle9i and
    tns alias for oracle 9i is available in tnsnames.ora file of oracle 7.
    So there is no connection problem from each other.Connection is
    working fine for each other but the problem with database links is
    like this
    Problem:
    when i create database link from oracle9i user or public database link
    from oracle9i for oracle7 user like this
    SQL ORACLE9I >CREATE DATABASE LINK ORACLE7 CONNECT TO <ORACLE7USER>
    IDENTIFIED BY <PASSWORD> USING 'ORACLE7';
    OR
    SQL ORACLE9I >CREATE PUBLIC DATABASE LINK ORACLE7 CONNECT TO <ORACLE7USER>
    IDENTIFIED BY <PASSWORD> USING 'ORACLE7';
    The links get created sucessfully but when i write command like
    SQL ORACLE9I> DESC <ORACLE7USER_NAME>.<ORACLE7USER_TABLENAME>@ORACLE7
    I RECEIVE A ORACLE ERROR LIKE
    ORA-12663 SERVICE REQUIRED BY CLIENT IS NOT AVAILABLE ON THE SERVER.
    OR IF MY COMMAND IS LIKE
    SQL ORACLE9I> SELECT <FEILD_NAME> FROM
    <ORACLE7USER_NAME>.<ORACLE7USER_TABLENAME>@ORACLE7;
    I RECEIVE AN ORACLE ERROR LIKE
    ORA-01002 FETCH OUT OF SEQUENCE.
    ORA-02063: preceding line from ORACLE7
    BUT IF I CREATE A LINK FROM ORACLE7 USER FOR ORACLE9I USER
    IT WORKS FINE.
    PLZ HELP ME WHAT IS THE PROBLEM THAT THE LINK FOR ORACLE 7 IS NOT WORKING WHEN
    IT IS BEING CREATED FROM ORACLE9I.
    Thank u.

    Oracle 9.2.0 does not support connectivity to Oracle 7. The newest version that will support this is 9.0.1.

  • Problems in using database link

    Hi all,
    I have problems in using the following created database link:
    Name: fzanalyze
    User: fzanalyze
    PWD: xxx
    Host: fz.domain.com
    I get the following error message, if I try to start this select:
    select * from tab@fzanalyze;
    FEHLER in Zeile 1:
    ORA-12154: TNS:Couldn't resolve service name
    The problem, the TNS is correct, because I copied the hoststring from the tnsnames.ora. Also I can connect to the database by using the given hostname as follows:
    connect fzanalyze/[email protected]
    connected
    What could be the problem, the I get the tns-Error, although I can connect normal to the database??
    Thanks for helping
    Dana

    Dana,
    Unlike Kamal, I don't use SQLNET anymore (isn't it obsolete from 8i+?), so I don't have any sqlnet.ora on my client or server.
    I'm not really a sysop, so no clever thoughts behind the following ideas, I just use these for development purposes at home:
    IP range at home = 192.168.x.x segment (another router server connects to the internet)
    Oracle server computer name = dbserver.seinpost.nl (local address = 192.168.1.110)
    instance entry in $TNS_ADMIN/listener.ora @ server:
        (SID_DESC =
          (GLOBAL_DBNAME = inst04.seinpost.nl)
          (ORACLE_HOME = /u01/app/oracle/product/10.1.0/db_1)
          (SID_NAME = inst04)
        )instance entry in $TNS_ADMIN/tnsnames.ora @ server:
    INST04.SEINPOST.NL =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = dbserver.seinpost.nl)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = inst04.seinpost.nl)
      )instance entry in tnsnames.ora @ client:
    INST04 =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS =
            (PROTOCOL = TCP)
              (HOST = 192.168.1.110)
                (PORT = 1521)
        (CONNECT_DATA =
          (SERVICE_NAME = inst04.seinpost.nl)
      )So again, no sqlnet.ora and as you can see only on my client I use local IP addresses to prevent my client for searching the internet for the non-existing dbserver.seinpost.nl address
    Hope this helps,
    Michiel

  • ORACLE 11g + PHP5 problem: "fetch out of sequence" on remote database link

    Hi!
    I have a new server with oracle 11g (11.1.0.7) database and apache/php5 (actual build) on linux.
    connection type is dedicated.
    when doing a connection to a remote AS/400 database I always get this error:
    "Warning: oci_fetch_array() http://function.oci-fetch-array: ORA-01002: fetch out of sequence ORA-02063: preceding line from..."
    when doing the same simple "select * from database link" at my old server with oracle 9i and apache/php5 no problem occurrs.
    this happens at AS/400 database link only. normal oracle database links work fine.
    Anyone an idea how to solve this problem or where the problem is????
    further info:
    when doing " select * from [ database link ] where rownum < 11 " it works, but when doing the query with more than 10 results I get the error. Any idea?
    bye,
    Oliver
    Edited by: user501548 on 10.10.2008 02:20

    well a fetch out of sequence usually indicates that a cursor has been closed before the process has finished fetching or some such thing.
    I'm not aware of there being a specific problem with the situation you outline, but maybe if you could provide all the connection setup and how you are trying to connect that may give a better idea.
    Also, you may be better asking on the General Database Discussions forum as this isn't really a SQL or PL/SQL problem

  • Problems with query via Database-Link (Oracle 7.3.4)

    I made the following simple query via database-link.
    select count (*) from [email protected]
    I got the result in about 200 miliseconds.
    Then I4ve tried the following query.
    select * from [email protected]
    It took about 2 hours end ended with an error message "ORA-03113: end-of-file on communication channel"
    So I made another choice
    select * from [email protected] where rownum <=1
    Took about 200 miliseconds.
    So I made the query again an changed only the number of rownums,until I was at rownum <=8
    then it went sleeping again(I've canceled the statement because I didn't want to wait 2 hours again).
    We made the same things from another server with the same database-link on the same remote server
    and we had no problems.
    Any Idea???

    No, network is OK!
    Other links are running, I have also no problems when I connect directly to the remote server.

  • DB link problem between active Data Guard and report application database

    My database version in 11.2.0.2.0 and OS is Oracle Solaris 10 9/10.
    I am facing a problem in my Active data guard Database for reporting purpose. Active Data guard information is as below.
    SQL> select name, database_role, open_mode from v$database;
    NAME DATABASE_ROLE OPEN_MODE
    ORCL PHYSICAL STANDBY READ ONLY WITH APPLY
    Problem detail is below
    I have created a db link (Name: DATADB_LINK) between active data guard and report application database for reporting purpose.
    SQL> create database link DATADB_LINK connect to HR identified by hr using 'DRFUNPD';
    Database link created.
    But when I run a query using db link from my report application database I got this below error.
    ORA-01555: snapshot too old: rollback segment number 10 with name "_SYSSMU10_4261549777$" too small
    ORA-02063: preceding line from DATADB_LINK
    Then I check Active Data Guard database alart log file and get below error
    ORA-01555 caused by SQL statement below (SQL ID: 11yj3pucjguc8, Query Duration=1 sec, SCN: 0x0000.07c708c3):SELECT "A2"."BUSINESS_TRANSACTION_REFERENCE","A2"."BUSINESS_TRANSACTION_CODE",MAX(CASE "A1"."TRANS_DATA_KEY" WHEN 'feature' THEN "A1"."TRANS_DATA_VALUE" END ),MAX(CASE "A1"."TRANS_DATA_KEY" WHEN 'otherFeature' THEN "A1"."TRANS_DATA_VALUE" END )
    But the interesting point if I run the report query directly in Active Data Guard database, I never got error.
    So is it a problem of DB link between active Data Guard and other database?

    Fazlul Kabir Mahfuz wrote:
    My database version in 11.2.0.2.0 and OS is Oracle Solaris 10 9/10.
    I am facing a problem in my Active data guard Database for reporting purpose. Active Data guard information is as below.
    SQL> select name, database_role, open_mode from v$database;
    NAME DATABASE_ROLE OPEN_MODE
    ORCL PHYSICAL STANDBY READ ONLY WITH APPLY
    Problem detail is below
    I have created a db link (Name: DATADB_LINK) between active data guard and report application database for reporting purpose.
    SQL> create database link DATADB_LINK connect to HR identified by hr using 'DRFUNPD';
    Database link created.
    But when I run a query using db link from my report application database I got this below error.
    ORA-01555: snapshot too old: rollback segment number 10 with name "_SYSSMU10_4261549777$" too small
    ORA-02063: preceding line from DATADB_LINK
    Then I check Active Data Guard database alart log file and get below error
    ORA-01555 caused by SQL statement below (SQL ID: 11yj3pucjguc8, Query Duration=1 sec, SCN: 0x0000.07c708c3):SELECT "A2"."BUSINESS_TRANSACTION_REFERENCE","A2"."BUSINESS_TRANSACTION_CODE",MAX(CASE "A1"."TRANS_DATA_KEY" WHEN 'feature' THEN "A1"."TRANS_DATA_VALUE" END ),MAX(CASE "A1"."TRANS_DATA_KEY" WHEN 'otherFeature' THEN "A1"."TRANS_DATA_VALUE" END )
    But the interesting point if I run the report query directly in Active Data Guard database, I never got error.
    So is it a problem of DB link between active Data Guard and other database?
    Check this note which is applicable for your environment
    *ORA-01555 on Active Data Guard Standby Database [ID 1273808.1]*
    also
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:8908307196113

  • Immediate HELP in Tomcat 5 to Postgresql 7.4 database connectivity problem

    Hi,
    I failed to connect Tomcat 5.0.24 with Postgresql
    7.4.2. The files created by me and the changes i had
    made in the existing files are rates.jsp,
    conversionDAO.java, web.xml and server.xml. The error
    message on the top of the rest of it was "The value of
    useBean class attribute converter.conversionDAO is
    invalid". So far I found out that the coding for
    database connectivity purpose in conversionDAO.java
    cause the error. Another thing is Postgresql jdbc
    driver is required to set in the CLASSPATH for the
    java file to access the Postgresql database. I don't
    know where should I put it in Tomcat for web
    application. Anyway, I put it in
    $CATALINA_HOME/shared/lib according the book i
    refered. I do the database connectivity coding refer
    to the Tomcat Kick Start book from Sams Publishing.
    Below are the coding involved, please show me the
    mistake i had made. Thank you.
    ----server.xml----
    <Context path="/database"
    docBase="${catalina.home}/webapps/database" debug="0"
    reload="true">
    <ResourceParams name="jdbc/conversion">
    <parameter>
    <name>username</name>
    <value>myusername</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>mypassword</value>
    </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>org.postgresql.Driver</value>
    </parameter>
    <parameter>
    <name>url</name>
    <value>jdbc:postgresql://localhost/conversion</value>
    </parameter>
    </ResourceParams>
    </Context>
    ----web.xml----
    <servlet>
    <servlet-name>conversionDAO</servlet-name>
    <servlet-class>converters.conversionDAO</servlet-class>
    </servlet>
    <resource-ref>
    <res-ref-name>jdbc/conversion</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    ----conversionDAO.java----
    public conversionDAO() throws SQLException,
    NamingException
    Context init = new InitialContext();
    Context ctx = (Context)
    init.lookup("java:comp/env");
    DataSource ds = (DataSource)
    ctx.lookup("jdbc/conversion");
    con = ds.getConnection();
    select = con.prepareStatement(
    "SELECT rate FROM Exchange WHERE src= ? AND dst =

    Immediate HELP in Tomcat 5 to Postgresql 7.4 database connectivity problem (cont.)
    Errors log
    2004-06-06 01:07:53 StandardContext[servlets-examples]SessionListener: contextDestroyed()
    2004-06-06 01:07:53 StandardContext[servlets-examples]ContextListener: contextDestroyed()
    2004-06-06 01:07:53 StandardContext[jsp-examples]SessionListener: contextDestroyed()
    2004-06-06 01:07:53 StandardContext[jsp-examples]ContextListener: contextDestroyed()
    2004-06-06 01:07:59 StandardContext[balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
    2004-06-06 01:08:00 StandardContext[jsp-examples]ContextListener: contextInitialized()
    2004-06-06 01:08:00 StandardContext[jsp-examples]SessionListener: contextInitialized()
    2004-06-06 01:08:00 StandardContext[servlets-examples]ContextListener: contextInitialized()
    2004-06-06 01:08:00 StandardContext[servlets-examples]SessionListener: contextInitialized()
    2004-06-06 01:08:01 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: /rates/rates.jsp(5,0) The value for the useBean class attribute converters.conversionDAO is invalid.
         at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
         at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:357)
         at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:141)
         at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1217)
         at org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
         at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
         at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
         at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
         at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         at org.apache.jasper.compiler.Generator.generate(Generator.java:3261)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:422)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:507)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    ----more----

  • Problem with making a database link.

    Hello All
    I got a problem with making a database link.
    When I execute this query
    CREATE PUBLIC DATABASE LINK DBNAME
    CONNECT TO database IDENTIFIED BY name
    USING 'DBNAME.europe.company.com';
    I am using other names because its private information
    But when I look at the table dba_db_links I see this
    OWNER | DB_LINK | USERNAME |HOST
    PUBLIC| DBNAME.europe.company.com| name| DBNAME.europe.company.com
    So the DB_Link name is changed. And this causes a problem with my asp website. I get the fault message
    ORA-02085: database link DBNAME.europe.company.com connects to DBNAME
    Cause: a database link connected to a database with a different name. The connection is rejected.
    The global_names = true and I prefer to keep it that way.
    So does anyone knows what is wrong about my Query or how I can change the DB_Link name.
    Thanks for the support,
    Remco

    Thanks for the help Mohit
    But thats whats I was doing.
    The query in the first post is the same as what you are posting.
    But by an (for me) unknown reason the database converts DBNAME to DBNAME.europe.company.com

  • Problem connecting DataBase Link from windows oracle to oracle on Linux

    I'm facing a problem with database links from windows oracle to Oracle hosted on Linux server.
    I'm able to successfully create the Database Link using the following query on oracle database hosted on a windows server
    CREATE DATABASE LINK SampleDB
    CONNECT TO myuser IDENTIFIED BY password
    USING 'sample';
    The tns names entry on windows for database in Linux server is as follows
    DSOFT =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.100)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = sample)
    But while executing the query "select count(*) from doctor@SampleDB;" in sql developer on windows, I'm getting the following error
    SQL Error: ORA-12154: TNS:could not resolve the connect identifier specified
    12154. 00000 - "TNS:could not resolve the connect identifier specified"
    *Cause:    A connection to a database or other service was requested using
    a connect identifier, and the connect identifier specified could not
    be resolved into a connect descriptor using one of the naming methods
    configured. For example, if the type of connect identifier used was a
    net service name then the net service name could not be found in a
    naming method repository, or the repository could not be
    located or reached.
    Using the above tns entries, i'm successfully able to connect to the database in Linux server through sql developer installed on the windows machine. Then why i'm getting this error while executing the query on Database Link?. Can any one help me?

    1005745 wrote:
    I'm facing a problem with database links from windows oracle to Oracle hosted on Linux server.
    I'm able to successfully create the Database Link using the following query on oracle database hosted on a windows server
    CREATE DATABASE LINK SampleDB
    CONNECT TO myuser IDENTIFIED BY password
    USING 'sample';
    The tns names entry on windows for database in Linux server is as follows
    DSOFT =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.100)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = sample)
    But while executing the query "select count(*) from doctor@SampleDB;" in sql developer on windows, I'm getting the following error
    SQL Error: ORA-12154: TNS:could not resolve the connect identifier specified
    12154. 00000 - "TNS:could not resolve the connect identifier specified"
    *Cause:    A connection to a database or other service was requested using
    a connect identifier, and the connect identifier specified could not
    be resolved into a connect descriptor using one of the naming methods
    configured. For example, if the type of connect identifier used was a
    net service name then the net service name could not be found in a
    naming method repository, or the repository could not be
    located or reached.
    Using the above tns entries, i'm successfully able to connect to the database in Linux server through sql developer installed on the windows machine. Then why i'm getting this error while executing the query on Database Link?. Can any one help me?A database link is acting as a client to the target, remote database in exactly the same fashion and using exactly the same tns infrastructure as any other client trying to connect to that remote database. your ORA-12154 when querying a db link means exactly the same as if you had gotten it trying to connect with sqlplus, from the same server. Check the link SB provided. Keep in mind that the tnsnames file of concern is the one on the source database server.

Maybe you are looking for

  • Request for skype online number

    Hello Support Team On this 1st i had applied for online number but still it is pending and also single number order showing two time. payment deducted from my credit card, but yet order is pending. January 1, 2013 Online Number, 12 month subscription

  • Deployment / Configuration Scenarios for SOA Suite

    Probably this should be posted in the Fusion 11g Middleware thread, but I am looking for information on how an installation of SOA Suite 11g would look like. I have have the following requirements: - A development environment that supports 3 parallel

  • Cannot start Adobe Reader 8 on WinXP

    For months, Adobe Reader 8 was working fine. I'm not sure what changed, but a couple of weeks ago, it quit working at all. * When I double-click the Reader icon on my desktop, nothing happens. * When I double-click a .pdf file, nothing happens. * Whe

  • I get an error message when I scan a file and try to e-mail or save it as a pdf?

    When I scan and hit save as pdf, I get and error that says check properties for the file to make sure it is not a read only?

  • Idoc without activating change pointer

    what is the alternative way of without activating the change pointer in bd61,bd50 and bd52 in idoc creation?? i mean there is a way of doing code instead of that. can anybody gv me that <b>sample code</b>... thanx in advance...