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?

Similar Messages

  • Using database links in a plsql page process

    I am trying to use a database link in a pl/sql page process.
    It works fine when I use the link name in the plsql like this:
    BEGIN
    SELECT 
    CARD_ID
    into  
    :P12_HDR_CARD_NUMBER 
    from     [email protected];
    But the link name will be coming from a page item (P12_DBLINK) populated as follows:
    select db_link d, db_link r from user_db_links; 
    I have tried the following and it's not working:
    DECLARE
    l_link VARCHAR2(30);
    BEGIN
    l_link :=  :P12_DBLINK;
    SELECT 
    CARD_ID
    into  
    :P12_HDR_CARD_NUMBER 
    from     fusion.EXM_CC_COMPANY_ACCOUNTS@l_link;
    this gives me:
    ORA-04052: error occurred when looking up remote object FUSION.EXM_CC_COMPANY_ACCOUNTS@L_LINK.WORLD ORA-00604: error occurred at recursive SQL level 3 ORA-02019: connection description for remote database not found
    I thought that maybe the link name was getting appended with .WORLD automatically but the link name already has .WORLD at the end. I tried stripping that off first but the error is the same.
    Is there some synatx for this that will work for this? Will I need to use dynamic sql?
    Any suggestions are most appreciated.
    thanks,
    john

    Hi John,
    check the following example to use the execute immediate statement for your purpose
    sql - Variable for Database Link Name - Stack Overflow
    let me know if this answers your query in the current thread

  • Problem with Conditional Page Process

    Application Express 3.1.0.00.32
    I have a conditional page process that whenever a user clicks on the create or save button, certain values are stored in one table and certain are stored in another dependent on the value of a page item.
    If a user opens a record and makes a change to the entry but doesn't change the current status, the information saved differs from when the current status is altered. Since the code, syntaxically, is correct, I'm more incliendeid to think this is an APEX issue however here is the code:
    declare
      v_current_status  pls_integer;
    begin
      select fk_lov_status_id
        into v_current_status
        from com_status
       where fk_proj_master_id = :P23_CS_FK_PROJ_MASTER_ID
         and pk_com_status_id = (select max(pk_com_status_id) from com_status);
    if v_current_status = :P23_FK_STATUS_ID then
      null;
      elsif (:P23_STATUS_COMMENT is null) then
        INSERT into com_status
          (fk_lov_status_id,
          fk_proj_master_id,
          status_comment)
        VALUES
          (:P23_FK_STATUS_ID,
          :P23_CS_FK_PROJ_MASTER_ID,
          'An update was not made to the status description.');
        commit;
      elsif (:P23_STATUS_COMMENT is not null) then
          INSERT into com_status
            (fk_lov_status_id,
            fk_proj_master_id,
            status_comment)
          VALUES
            (:P23_FK_STATUS_ID,
            :P23_CS_FK_PROJ_MASTER_ID,
            :P23_STATUS_COMMENT);
          commit;
      else
        null;
      end if;
    end;Condition Type is: Request is Contained within Expression 1 for the values of the push buttons (SAVE,CREATE)
    When Button Pressed is not conditional.
    When running the page, the error ORA-01403: no data found is given.
    In debug, the last couple of lines are:
    0.06: Processing point: AFTER_SUBMIT
    0.06: ...Process "Process Row of PROTRAC_MASTER": DML_PROCESS_ROW (AFTER_SUBMIT) #OWNER#:PROTRAC_MASTER:P23_PK_PROJ_MASTER_ID:PK_PROJ_MASTER_ID|IUD
    0.08: ...Process "com_status null_desc (apply)": PLSQL (AFTER_SUBMIT) declare v_current_status pls_integer; begin select fk_lov_status_id into v_current_status from com_status where fk_proj_master_id = :P23_CS_FK_PROJ_MASTER_ID and pk_com_status_id = (select max(pk_com_status_id) from com_sta
    0.08: Encountered unhandled exception in process type PLSQL
    0.08: Show ERROR page...
    0.08: Performing rollback...
    Any ideas would be appreciated.

    Here is the debug log after changing the status and not inputting any information in the description:
    The description isn't reporting as %null% even though the page item is empty, it is reporting as "".
    0.01: A C C E P T: Request="SAVE_bottom"
    0.01: Metadata: Fetch application definition and shortcuts
    0.01: NLS: wwv_flow.g_flow_language_derived_from=FLOW_PRIMARY_LANGUAGE: wwv_flow.g_browser_language=en-us
    0.01: alter session set nls_language="AMERICAN"
    0.01: alter session set nls_territory="AMERICA"
    0.01: NLS: CSV charset=WE8MSWIN1252
    0.01: ...NLS: Set Decimal separator="."
    0.01: ...NLS: Set NLS Group separator=","
    0.01: ...NLS: Set date format="DD-MON-RR"
    0.01: ...Setting session time_zone to -06:00
    0.02: Fetch session state from database
    0.02: ...Check session 1623472074064569 owner
    0.02: ...Metadata: Fetch Page, Computation, Process, and Branch
    0.02: Session: Fetch session header information
    0.02: ...Metadata: Fetch page attributes for application 527, page 23
    0.02: ...Validate item page affinity.
    0.02: ...Validate hidden_protected items.
    0.02: ...Check authorization security schemes
    0.02: Authorization Check: "2378670777792367583" User: "LREDMOND" Component: ""
    0.03: Session State: Save form items and p_arg_values
    0.03: ...Session State: Save "P23_NAME" - saving same value: "MAY TEST PROTRAC 60"
    0.03: ...Session State: Save "P23_DESCRIPTION" - saving same value: "may is testing protrac atleast 60 times."
    0.03: ...Session State: Save "P23_PROJ_MAN_ID" - saving same value: "%null%"
    0.03: ...Session State: Save "P23_TRACKIT_WORK_ORDER" - saving same value: ""
    0.03: ...Session State: Saved Item "P23_FK_STATUS_ID" New Value="17"
    0.03: ...Session State: Save "P23_STATUS_COMMENT" - saving same value: ""
    0.03: ...Session State: Save "P23_PK_PROJ_MASTER_ID_COUNT" - saving same value: "15 of 15"
    0.03: ...Session State: Save "P23_PK_PROJ_MASTER_ID_PREV" - saving same value: "16"
    0.03: ...Session State: Save "P23_PK_PROJ_MASTER_ID_NEXT" - saving same value: ""
    0.04: ...Session State: Save "P23_CS_FK_PROJ_MASTER_ID" - saving same value: "17"
    0.04: ...Session State: Save "P23_DATE_BEGIN" - saving same value: ""
    0.04: ...Session State: Save "P23_ESTIMATED_DATE" - saving same value: ""
    0.04: ...Session State: Save "P23_DATE_COMPLETED" - saving same value: ""
    0.04: ...Session State: Save "P23_APP_MANAGER_ID" - saving same value: "%null%"
    0.04: ...Session State: Save "P23_APP_MANAGER_PHONE" - saving same value: ""
    0.04: ...Session State: Save "P23_APP_MANAGER_EXT" - saving same value: ""
    0.04: ...Session State: Save "P23_REQUESTER_ID" - saving same value: "%null%"
    0.04: ...Session State: Save "P23_REQUESTER_PHONE" - saving same value: ""
    0.04: ...Session State: Save "P23_REQUESTER_EXT" - saving same value: ""
    0.04: ...Session State: Save "P23_FK_AGENCY_ID" - saving same value: "%null%"
    0.04: ...Session State: Save "P23_AGENCY_FNAME" - saving same value: ""
    0.04: ...Session State: Save "P23_AGENCY_LNAME" - saving same value: ""
    0.04: ...Session State: Save "P23_AGENCY_NUM" - saving same value: ""
    0.04: ...Session State: Save "P23_AGENCY_EXT" - saving same value: ""
    0.04: ...Session State: Save "P23_CREATEBY_USER" - saving same value: "MAY"
    0.04: ...Session State: Save "P23_CREATEBY_DATE" - saving same value: "01/21/2009"
    0.04: ...Session State: Save "P23_LASTMOD_USER" - saving same value: "LREDMOND"
    0.04: ...Session State: Save "P23_LASTMOD_DATE" - saving same value: "02/03/2009"
    0.05: ...Session State: Save "P0_LAST_CHANGE_DATE" - saving same value: "03-FEB-2009 14:15:46 by LREDMOND"
    0.05: Processing point: ON_SUBMIT_BEFORE_COMPUTATION
    0.05: Branch point: BEFORE_COMPUTATION
    0.05: Computation point: AFTER_SUBMIT
    0.05: ...Perform computation of item: P23_NAME, type=SQL_EXPRESSION
    0.05: ...Session State: Save "P23_NAME" - saving same value: "MAY TEST PROTRAC 60"
    0.05: ...Perform computation of item: P23_AGENCY_FNAME, type=SQL_EXPRESSION
    0.05: ...Session State: Save "P23_AGENCY_FNAME" - saving same value: ""
    0.05: ...Perform computation of item: P23_AGENCY_LNAME, type=SQL_EXPRESSION
    0.05: ...Session State: Save "P23_AGENCY_LNAME" - saving same value: ""
    0.05: Tabs: Perform Branching for Tab Requests
    0.05: Branch point: BEFORE_VALIDATION
    0.05: Perform validations:
    0.05: ...Item Not Null Validation: P23_NAME
    0.05: ...Item Not Null Validation: P23_DESCRIPTION
    0.05: ...Item Not Null Validation: P23_FK_STATUS_ID
    0.05: ...Regular expression validation: P23_AGENCY_NUM
    0.05: ...Regular expression validation: P23_REQUESTER_PHONE
    0.05: ...Regular expression validation: P23_APP_MANAGER_PHONE
    0.05: ...Item is numeric validation: P23_TRACKIT_WORK_ORDER
    0.06: ...Regular expression validation: P23_DATE_BEGIN
    0.06: ...Regular expression validation: P23_ESTIMATED_DATE
    0.06: ...Regular expression validation: P23_DATE_COMPLETED
    0.06: ...PL/SQL "function body returning boolean" Validation: if to_date(:P23_DATE_BEGIN, 'MM/DD/YYYY') > to_date(:P23_DATE_COMPLETED, 'MM/DD/YYYY') then return false; else return true; end if;
    0.06: ...PL/SQL "function body returning boolean" Validation: if to_date(:P23_DATE_COMPLETED, 'MM/DD/YYYY') < to_date(:P23_DATE_BEGIN, 'MM/DD/YYYY') then return false; else return true; end if;
    0.06: ...PL/SQL "function body returning boolean" Validation: if to_date(:P23_ESTIMATED_DATE, 'MM/DD/YYYY') < to_date(:P23_DATE_BEGIN, 'MM/DD/YYYY') then return false; else return true; end if;
    0.06: Branch point: BEFORE_PROCESSING
    0.06: Processing point: AFTER_SUBMIT
    0.06: ...Process "Process Row of PROTRAC_MASTER": DML_PROCESS_ROW (AFTER_SUBMIT) #OWNER#:PROTRAC_MASTER:P23_PK_PROJ_MASTER_ID:PK_PROJ_MASTER_ID|IUD
    0.07: ...Do not run process "com_status (create)", process point=AFTER_SUBMIT, condition type=NEVER, when button pressed=CREATE
    0.07: ...Process "com_status null status description": PLSQL (AFTER_SUBMIT) declare v_current_status pls_integer; begin select fk_lov_status_id into v_current_status from com_status where fk_proj_master_id = :P23_CS_FK_PROJ_MASTER_ID and pk_com_status_id = (select max(pk_com_status_id) from com_st
    0.08: ...Do not run process "ApplyMRD", process point=AFTER_SUBMIT, condition type=NEVER, when button pressed=DELETE
    0.08: ...Do not run process "AddRows", process point=AFTER_SUBMIT, condition type=NEVER, when button pressed=
    0.08: Branch point: AFTER_PROCESSING
    0.08: ...Evaluating Branch: AFTER_PROCESSING type: "REDIRECT_URL" button: (No Button Pressed) branch: SAVE,CREATE,SAVE_bottom,CREATE_bottom
    0.00:
    0.00: S H O W: application="527" page="23" workspace="" request="" session="1623472074064569"
    0.00: Language derived from: FLOW_PRIMARY_LANGUAGE, current browser language: en-us
    0.01: alter session set nls_language="AMERICAN"
    0.01: alter session set nls_territory="AMERICA"
    0.01: NLS: CSV charset=WE8MSWIN1252
    0.01: ...NLS: Set Decimal separator="."
    0.01: ...NLS: Set NLS Group separator=","
    0.01: ...NLS: Set date format="DD-MON-RR"
    0.01: ...Setting session time_zone to -06:00
    0.01: NLS: Language=en-us
    0.01: Application 527, Authentication: CUSTOM2, Page Template: 2731847145165324410
    0.01: ...Session ID 1623472074064569 can be used
    0.01: ...Application session: 1623472074064569, user=LREDMOND
    0.01: ...Determine if user "LREDMOND" workspace "37289604050814421" can develop application "527" in workspace "37289604050814421"
    0.01: Session: Fetch session header information
    0.01: Saving g_arg_names=P23_PK_PROJ_MASTER_ID and g_arg_values=17
    0.02: ...Session State: Save "P23_PK_PROJ_MASTER_ID" - saving same value: "17"
    0.02: ...Metadata: Fetch page attributes for application 527, page 23
    0.02: Fetch session state from database
    0.02: Branch point: BEFORE_HEADER
    0.02: Authorization Check: "2378670777792367583" User: "LREDMOND" Component: "PAGE"
    0.02: Fetch application meta data
    0.03: Computation point: BEFORE_HEADER
    0.03: Processing point: BEFORE_HEADER
    0.03: Show page template header
    0.04: Computation point: AFTER_HEADER
    0.04: Processing point: AFTER_HEADER
    0.04: ...Process "Fetch Row from PROTRAC_MASTER": DML_FETCH_ROW (AFTER_HEADER) F|#OWNER#:PROTRAC_MASTER:P23_PK_PROJ_MASTER_ID:PK_PROJ_MASTER_ID
    0.04: ...Process "Get Next or Previous Primary Key Value": GET_NEXT_OR_PREV_PK (AFTER_HEADER) #OWNER#:PROTRAC_MASTER:PK_PROJ_MASTER_ID::::P23_PK_PROJ_MASTER_ID:P23_PK_PROJ_MASTER_ID_NEXT:P23_PK_PROJ_MASTER_ID_PREV::::P23_PK_PROJ_MASTER_ID_COUNT:
    0.04: ...Session State: Save "P23_PK_PROJ_MASTER_ID_NEXT" - saving same value: ""
    0.04: ...Session State: Save "P23_PK_PROJ_MASTER_ID_PREV" - saving same value: "16"
    0.04: ...Session State: Save "P23_PK_PROJ_MASTER_ID_COUNT" - saving same value: "15 of 15"
    0.35: Computation point: AFTER_FOOTER
    0.35: Processing point: AFTER_FOOTER
    0.35: Log Activity:
    0.35: Execute Count=0
    0.35: End Show:

  • 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

    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 Subsitution

    I am trying to use a substation variable(&DB_Name.) as a database link name in a SQL Query. The value of &DB_Name. is set by the users upon running the application. The problem I'm running into is that the query will not validate because the value of &DB_Name. is not known at the design time. Is it possible to supress the query validation at design time so a variable can be used the link name? Thanks
    Scott

    The SQL validator did not seam to like your last suggestion ether. However, I did come up with a workaround. Instead using multiple links, I created a page process that contains DDL to create a link based on the database that user selects in the application. This allows me to use the same link name in all my SQL Statements but this one link points to whichever database was selected by the user. Here's a brief summary of the code.
    Drop Database Link dblink
    if :dbselect = db1 then
    Create Database Link dblink
    with properties for db1...
    else
    Create Database Link dblink
    with properties for db2...
    end if

  • Firefox froze up. So I removed from computer and reloaded. If I close Firefox, can't restart by clicking on the icon. Have to end process in Task Manager. It then starts. Some links on some web pages won't work.

    Hi,
    As I say in the question I don't know what happened but Firefox just stopped operating and then became erratic. So I removed the firefox programme from my computer and reloaded Firefox.
    It now runs normally but I can't run Firefox on two tabs, only one, and if I close it down during a session I can't reopen it using the desk top icon. I go to task manager, processes, and end process for Firefox - then I can start it using the icon on the desktop.
    I have also noticed that some links on a web page won't work - javascript is involved.
    Thanks for your herlp,
    Mike FD

    It sounds like you are getting in a hurry.
    If you force Firefox to close in a hurry, then it won't normally start until you re-start the computer. There are ways around this, but I'm not going to go into them right now.
    None-force way to close Firefox down: Close the program and wait. Do something else. Firefox appears as if it is closed, but it's not. Firefox cleans out cookies and it's cache after you close it. That takes a few minutes. You can't restart it while it's doing house cleaning.
    After it is done, then you can restart Firefox normally. You can watch it in the Task Manager.
    The same applies if you are installing javascript. You have to wait a few minutes.
    As for running it with multiple tabs, I usually have 5 or 6, or more, tabs open at a time. Have no idea what the problem is there. Firefox needs special permission by use of a pop-up option to close with multiple tabs open.

  • When you create a link to a web page in numbers and we export the PDF file, the link is offset by 3 rows. Example: if I put a link on the text in cell A1, I found the link A4. In fact, this feature becomes unusable. How can we solve this problem? Thank yo

    When you create a link to a web page in numbers "Mavericks" and we export the PDF file, the link is offset by 3 rows. Example: if I put a link on the text (with Cmd-K) in cell A1, I found the link A4. In fact, this feature becomes unusable. How can we solve this problem?
    Thank you.

    Hi again Raja!
    I did as you recommended and installed HTTPWatch and below is the outcome of that program. It is the exact string with the only exception of obfuscated servernames and portnumbers. The last part that begins with "sap_ep_baseurl=" makes me suspicious, is that part really correct? It looks like it's lacking things.
    Best regards
    Benny
    http://<server:port>/sap/bc/bsp/sap/Z_PURCHASE_REQ/process.htm?
    sap-syscmd=nocookie&sap-client=200&sap-language=sv&style_sheet=
    http%3A%2F%2F<server>%3A<port>%2Firj%2Fportalapps%2F
    com.sap.portal.design.portaldesigndata%2Fthemes%2Fportal%2Fsap_tradeshow%2F
    controls%2Fcontrols_ie6.css%3F7.0.10.0.0&sap-cssversion=7.0.10.0.0&sap-tray-type
    =null&sap-tray-padding=null&sap-accessibility=&sap-ep-version=7.00.200611091758&
    sap_ep_version=7.00.200611091758&sap_ep_baseurl=http%3A%2F%2F
    <server>%3A<port>%2Firj%2Fportal&matnr=9780198603641

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

  • 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

  • OWB-OWF - Process Flow Deployment - Database Link

    Hello there,
    This post is basically related to my problem with Process Flow deployment.
    Could someone please shed some light on the following:
    When we create a Process Flow, during this process OWF creates a Database Link. For some reason, this link is not functional unless I remove the part after "." in that defines the "HOST" in the DB Link definition. How do I know it is not functional - I know because following query does not work:
    select * from [email protected]@WB_LK_WF_PKG
    Here is the link definition:
    ORIGINAL:
    create database link OWB92TRG.US.ORACLE.COM@WB_LK_WF_PKG
    connect to RR
    identified by "<pwd>"
    using '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=CENTENNI-2077E4.CENTENNIALCOLLEGE.CA)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=OWB92TRG)))'
    MODIFIED (it works - above query runs OK):
    create database link OWB92TRG.US.ORACLE.COM@WB_LK_WF_PKG
    connect to RR
    identified by "<pwd>"
    using '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=CENTENNI-2077E4)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=OWB92TRG)))'
    My second question is "using what userid/pwd should this link should have been created? Should it use "Runtime Repository Owner" or "OWB Repository Owner" or "Runtime Access User" or "OWF_MGR"?
    No matter what userid I use, it works when I run the query but I always get following error when I try to deploy the "Process Flows" in OWB:
    RPE-02085: Failed to test wb_rti_workflow_util.initialize through deployed Workflow Database Link OWB92TRG.US.ORACLE.COM@WB_LK_WF_PKG2. Please check that "EXECUTE ANY PROCEDURE" privilege is set and that the OWB Runtime is available.
    - ORA-04052: error occurred when looking up remote object [email protected]@WB_LK_WF_PKG2
    ORA-12545: Connect failed because target host or object does not exist
    I have already granted the "EXECUTE ANY PROCEDURE" to OWF_MGR. I am not sure, though, what is meant by the "and that the OWB Runtime is available" part of the error message above.
    I have also tried to fix this by running the "catrpc.sql" script but it did not help either.
    I am stuck on this step for past few days. I would highly appreciate help in fixing this problem. Here is the configuration I am using:
    o Source database : Oracle 9i (9.2) on my local PC
    o Target database : Oracle 9i (9.2) on my local PC
    o OWB 9i
    o OWF 2.6.2
    o OWB and OWF repositories are on the TARGET database
    I am able to successfully deploy and run my MAPPINGs.
    TIA,
    Amer

    Hello Oracle support,
    Should I open a TAR to get this problem resolved?
    Regards,
    Amer

  • I have a problem with two PDF's when trying to open them through a link on a web page. The two PDF's open fine with Adobe on my own PC and on the server I have copied it to but when they are opened through a link on a web page (pointing to the server wher

    I have a problem with two PDF's when trying to open them through a link on a web page. The two PDF's open fine with Adobe on my own PC and on the server I have copied it to but when they are opened through a link on a web page (pointing to the server where the PDFs open fine) I get an error 'There was an error processing a page. Invalid function resource' The other one just doesn't open at all. Can anyone help with this please?

    Hello,
    Are the pdf linked correctly in the website? Is this a public website? If yes, please post the link here.
    ~Deepak

  • Database links in an onload process

    In order to be able to use database links, I had to use execute immediate in my onload process. However, in doing this, the app is branching to the next page before the execute immediate statement has finished running. Is there a work around for this?
    Code is:
    delete from ar_assoc_activity where upper(ehs_cc)=UPPER(''||:F109_CLIENT||'');
    execute immediate
    'INSERT INTO ar_assoc_activity (ehs_cc, fg_id, fin_group, fiscal_year,
    accounting_period, provider, fin_class, charges,
    payments, adjustments, balance)
    SELECT upper('''||:f109_client||'''),fg_id, fin_group, fiscal_year,
    accounting_period, provider, fin_class, charges,
    payments, adjustments, balance from v_ar_assoc_activity@'||:f109_link;

    I have a chart on page x that has a link. When I click the chart to drilldown, it goes to page 40. On page 40, there is an onload process that pulls data from another database and inserts into a table. I had to use execute immediate in order to be able to insert data using a link.
    I know this is not working because when I click to drilldown on my chart, I see my insert statement still running but page 40 is displayed as if no data has been loaded. However, if I wait until the insert finishes running and hit F5 to refresh the page, my data is displayed.
    For testing purposes, I insert into a table when my insert begins running and then delete the record when the insert finishes.
    Onload process is below:
    declare
    v_loaded number;
    v_ehs_cc varchar2(30);
    v_in_process varchar2(5);
    BEGIN
    select count(*) into v_loaded from ar_assoc_activity where upper(ehs_cc)=upper(:f109_client) and trunc(create_dt)=trunc(sysdate);
    select count(*) into v_in_process from drilldowns where upper(report_name)='AR_WITH_ASSOC_ACTIVITY' and upper(ehs_cc)=upper(:f109_client);
    if (v_in_process=0 and :p40_refresh_query='Y') or (v_in_process=0 and v_loaded=0) then
    insert into drilldowns(ehs_cc,app_user,report_name,begin_load)
    select upper(''||:f109_client||''),''||:app_user||'','AR_WITH_ASSOC_ACTIVITY',SYSDATE FROM DUAL;
    commit;
    delete from ar_assoc_activity where upper(ehs_cc)=UPPER(''||:F109_CLIENT||'');
    execute immediate
    'INSERT INTO ar_assoc_activity (ehs_cc, fg_id, fin_group, fiscal_year,
    accounting_period, provider, fin_class, charges,
    payments, adjustments, balance)
    SELECT upper('''||:f109_client||'''),fg_id, fin_group, fiscal_year,
    accounting_period, provider, fin_class, charges,
    payments, adjustments, balance from v_ar_assoc_activity@'||:f109_link;
    delete from drilldowns where upper(ehs_cc)=upper(:f109_client) and upper(report_name)='AR_WITH_ASSOC_ACTIVITY';
    commit;
    end if;
    :P40_REFRESH_QUERY:=NULL;
    END;

Maybe you are looking for

  • LaserJet Pro 300 M351A Wireless Accessory?

    On the HP website it clearly states that my printer (HP LaserJet Pro 300 color M351) DOES have a "wireless capability" ... This statement is to be found under the "Technical Details" section in the paragraph entitled "Connectivity and Communications"

  • I have two Ipads with one apple id, I want to use two different Id's?

    I have two ipads one i gave away to my child and one i have.  MY child i made a new Apple ID and my new ipad i kept my old Apple ID.  But it still askes me for my old apple id for both ipads with updates only. How to remove my old apple id from my ol

  • Weblogic 10.0 Parsing Failure in config.xml: failed to load java type

    Hello, I've just installed a Weblogic 10.0 on a Linux server and when i try to start it, by : bash$ : sudo -u weblogic ./startWebLogic.sh JAVA Memory arguments: -Xms256m -Xmx512m -XX:MaxPermSize=128m WLS Start Mode=Production CLASSPATH=:/opt/weblogic

  • To check the success of failure of the insert query in JSP

    frendz, i am working with JSP .i have some content to be inserted in the database.i have used the insert query in SQL for that.i am able to check whether it has been inserted properly in the SQL but i want to check the status of the insert query with

  • Unable to run Oracle Form Builder from Designer 10g

    I am using Windows XP with Oracle Designer 9.0.4.5. From Design Editor, I select Run -> Oracle Forms, nothing happen. I am able to open Form Builder manually (C:\ORACLE\904\bin\ifbld90.exe). After I generated a module (form) from Designer, I have to