Dbms_hs_passthrough.execute_non_query returns 0

According to the documentation dbms_hs_passthrough.execute_non_query returns the number of rows affected by the SQL statement in the non-Oracle system.
My procedure below run without any error
CRS:=DBMS_HS_PASSTHROUGH.OPEN_CURSOR@MSQL;
DBMS_HS_PASSTHROUGH.PARSE@MSQL(CRS,
'INSERT INTO WCUST("cust_code","cust_name","cust_address1","cust_address2","cust_phone1","cust_phone2","cust_fax","cust_email","cust_contact1","cust_contact2",' ||
'"dest_code","zip_code","flag_pkp","cust_type","cust_npwp","flg_code")' ||
'VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)');
DBMS_HS_PASSTHROUGH.BIND_VARIABLE@MSQL (CRS,1,TCUSTCODE);
DBMS_HS_PASSTHROUGH.BIND_VARIABLE@MSQL (CRS,2,TCUSTNAME);
DBMS_HS_PASSTHROUGH.BIND_VARIABLE@MSQL (CRS,3,TCUSTADDRESS1);
DBMS_HS_PASSTHROUGH.BIND_VARIABLE@MSQL (CRS,4,TCUSTADDRESS2);
DBMS_HS_PASSTHROUGH.BIND_VARIABLE@MSQL (CRS,5,TCUSTPHONE1);
DBMS_HS_PASSTHROUGH.BIND_VARIABLE@MSQL (CRS,6,TCUSTPHONE2);
DBMS_HS_PASSTHROUGH.BIND_VARIABLE@MSQL (CRS,7,TCUSTFAX);
DBMS_HS_PASSTHROUGH.BIND_VARIABLE@MSQL (CRS,8,TCUSTEMAIL);
DBMS_HS_PASSTHROUGH.BIND_VARIABLE@MSQL (CRS,9,TCUSTCONTACT1);
DBMS_HS_PASSTHROUGH.BIND_VARIABLE@MSQL (CRS,10,TCUSTCONTACT2);
DBMS_HS_PASSTHROUGH.BIND_VARIABLE@MSQL (CRS,11,TDESTCODE);
DBMS_HS_PASSTHROUGH.BIND_VARIABLE@MSQL (CRS,12,TZIPCODE);
DBMS_HS_PASSTHROUGH.BIND_VARIABLE@MSQL (CRS,13,TFLAGPKP);
DBMS_HS_PASSTHROUGH.BIND_VARIABLE@MSQL (CRS,14,TCUSTTYPECODE);
DBMS_HS_PASSTHROUGH.BIND_VARIABLE@MSQL (CRS,15,TCUSTNPWP);
DBMS_HS_PASSTHROUGH.BIND_VARIABLE@MSQL (CRS,16,TFLGCODE);
RESULT:=DBMS_HS_PASSTHROUGH.EXECUTE_NON_QUERY@MSQL(CRS);
IF RESULT>0 THEN
DELETE FROM OSYS_UPDATE_LOG WHERE UPDATE_ID=C.UPDATE_ID;
ELSE
DBMS_OUTPUT.PUT_LINE('RESULT=' || RESULT);
END IF;
DBMS_HS_PASSTHROUGH.CLOSE_CURSOR@MSQL(CRS);
and the rows inserted at MSQL successfully, but why the RESULT variable return 0. I thought it should be 1.
Anyone can help me?

Hi,
This is a known problem and there is a patch available for some versions and platforms -
Patch 12731763: DBMS_HS_PASSTHROUGH.EXECUTE_IMMEDIATE DOES NOT RETURN NUMBER OF ROWS AFFECTED
Have a search on My Oracle Support for your version and platform for that patch. If it isn't available then open a SR with Oracle Support to get it for your platform and version.
Regards,
Mike

Similar Messages

  • 11g ODBC SQLGetTypeInfo result COLUMN_SIZE column being returned as 64bit v

    Using InstantClient 11.2 ODBC I'm getting odd behavior for the SQLGetTypeInfo call on a 64bit Win2K3 machine.
    When binding the result column 2 (COLUMN_SIZE) as an integer (as per the ODBC spec), it looks like this is being returned in a 64bit word (even though the buffer buffer size is specified as a SQLUINTEGER).
    This is obviously causing some issues - is this a known bug?
    My solution is to move this value's storage to the end of the struct I'm using to store all the columns of the result and add some additional padding but my concern is that there are other areas where the ODBC interface is not following the ODBC specification. Is there a list of known exceptions to the ODBC specification for the oracle instant client drivers for 64 bit architectures?

    Thanks. That's doing the trick.
    We can use PASSTHROUGH PACKAGE to change the SQL_MODE for a particular session using the MySQL statement: set session sql_mode='ANSI_QUOTES';
    It will then look like:
    - first setting in the session ANSI_SQL using PASSTHROUGH:
    DECLARE
    ret integer;
    c integer;
    BEGIN
    c := DBMS_HS_PASSTHROUGH.OPEN_CURSOR@mysql;
    DBMS_HS_PASSTHROUGH.PARSE@mysql(c, 'SET SESSION SQL_MODE=''ANSI_QUOTES'';'));
    ret := DBMS_HS_PASSTHROUGH.EXECUTE_NON_QUERY@mysql(c);
    dbms_output.put_line(ret ||' passthrough output');
    DBMS_HS_PASSTHROUGH.CLOSE_CURSOR@mysql(c);
    END;
    REMARK: The passthrough statement SET SQL_MODE=''ANSI_QUOTES''; uses 2 single quotes ... !!no DOUBLE QUOTES !!
    Now selects works using double qoutes:
    SQL> select * from "test"@mysql;
    col1 col2
    Hello 1
    As soon as I disconnect and connect again and try to run the select without the PASSTHROUGH we get the old error again:
    SQL> select * from "test"@mysql;
    select * from "test"@mysql
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [MySQL][ODBC 3.51 Driver][mysqld-5.0.37-community]You have an error in your SQL
    syntax; check the manual that corresponds to your MySQL server version for the
    right syntax to use near '"col1",A1."col2" FROM "test" A1' at line 1
    ORA-02063: preceding 2 lines from MYSQL
    So using PASSTHROUGH at the beginning of each session allows us to change the ANSI mode for a particular session only without affecting all the other clients and might be a good workaround.

  • ORA-28513 error when I call sp using  dbms_hs_passthrough

    I call sp on AS400 using ODBC Database Gateway and dbms_hs_passthrough.
    If I make all params IN - all OK. If I set one or more params as INOUT or OUT - I get error message ORA-28513: internal error in heterogeneous remote agent.
    declare
    ProdID VARCHAR2(6);     
    DSC VARCHAR2(35);     
    TCDE VARCHAR2(6);     
    CLID VARCHAR2(11);     
    Rate NUMERIC(10,0);     
    WSID VARCHAR2(4);     
    ErrorCode VARCHAR2(1);
    ErrorMsg VARCHAR2(200);
    execStr varchar2(100):= 'call alibts1.ImportInsProductData(?,?,?,?,?,?,?,?)';
    i binary_integer;
    n binary_integer;
    begin
    i:=dbms_hs_passthrough.open_cursor@AS400ODBC;
    dbms_hs_passthrough.parse@AS400ODBC(i,execStr);
    ProdID := '000100';     
    DSC := 'TEST 1';     
    TCDE := '000003';     
    CLID := '001';     
    Rate := 41;
    WSID := 'ORA1';     
    ErrorCode := ' ';
    ErrorMsg := ' ';
    dbms_hs_passthrough.bind_variable@AS400ODBC(i,1,ProdID);
    dbms_hs_passthrough.bind_variable@AS400ODBC(i,2,DSC);
    dbms_hs_passthrough.bind_variable@AS400ODBC(i,3,TCDE);
    dbms_hs_passthrough.bind_variable@AS400ODBC(i,4,CLID);
    dbms_hs_passthrough.bind_variable@AS400ODBC(i,5,RATE);
    dbms_hs_passthrough.bind_variable@AS400ODBC(i,6,WSID);
    dbms_hs_passthrough.bind_out_variable@AS400ODBC(i,7,ErrorCode);
    dbms_hs_passthrough.bind_out_variable@AS400ODBC(i,8,ErrorMsg);
    n:=dbms_hs_passthrough.execute_non_query@AS400ODBC(i);
    dbms_hs_passthrough.GET_VALUE@AS400ODBC(i,7,ErrorCode);
    dbms_hs_passthrough.close_cursor@AS400ODBC(i);
    dbms_output.put_line(ErrorCode);
    end;
    In trace file I found this:
    Exiting WP_SQLBindParameter, rc=0 at 2011/03/14-16:32:21
    Exiting hgoprbv, rc=28513 at 2011/03/14-16:32:21 with error ptr FILE:hgoprbv.c LINE:351 ID:Out binds not allowed
    nrows:0
    Exiting hgoexec, rc=28513 at 2011/03/14-16:32:21 with error ptr FILE:hgoexec.c LINE:182 ID:Calling hgoprbv
    Is it mean I can't use OUT params in HS_PASSTHROUGH with ODBC Gateway?

    As you've linked the docu - check out
    2.3 Known Restrictions
    which states:
    * Does not support stored procedures
    Reason for this restriction is we have no control over the foreign ODBC drivers and the function it has implemented. As you've also already figured out it works for your MS SQL Server connection, but fails for the iSeries which is indicating an issue with the driver or its implementation.
    And that's the reason why it is documented as a known restriction and if you want to call a foreign procedure you have to use the dedicated foreign database gateway (if it is available) - for example DG4MSQL for MS SQl Server and DG4DRDA for DB2 databases on IOS, LUW and z/OS.

  • Accessing mysql database from oracle using dg4odbc

    I've been trying to create a database link from a MySQL database to Oracle using the Oracle dg4odbc gateway. I downloaded and installed DataDirect's ODBC package which includes mysql ODBC library (ddmysql24.so) and a generic ODBC libary (libodbc.so). After creating the DSN in odbc.ini, I tested it and it can connect to the mysql database. Then I created the init{SID}.ora file in hs/admin directory, added dg4odbc lines in the listener.ora, and added lines in tnsnames.ora. Then I tnspinged the new SID with success. Finally, I created the database link. However, when I tried to access the database link using the commands "select * from mdl_user@moodle;", I got the ORA-28500 error like the following:
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [DataDirect][ODBC 20101 driver][20101]You have an error in your SQL syntax;
    check the manual that corresponds to your MySQL server version for the right
    syntax to use near '"mdl_user"' at line 1
    ORA-02063: preceding 2 lines from MOODLE
    My mysql database is utf8 by default. Do I have to use latin1?
    It seems to me that the dg4odbc translates the sql commands incorrectly (having double quotes around the selected table).
    Any help is greatly appreciated.
    Jeffrey

    The syntax error occures for example when MySQL isn't running in ANSI mode and thus does not allow double quotes around the objects. DG4ODBC 11.1.0.6 by default always adds double quotes to table/column/view names.
    A quick test to check if you hit the double quote issue would be to set the MySQL DB into ANSI mode:
    - Open SQL*Plus
    - execute:
    DECLARE
    ret integer;
    c integer;
    BEGIN
    c := DBMS_HS_PASSTHROUGH.OPEN_CURSOR@moodle;
    DBMS_HS_PASSTHROUGH.PARSE@moodle(c, 'SET SESSION SQL_MODE=''ANSI_QUOTES'';');
    ret := DBMS_HS_PASSTHROUGH.EXECUTE_NON_QUERY@moodle(c);
    dbms_output.put_line(ret ||' passthrough output');
    DBMS_HS_PASSTHROUGH.CLOSE_CURSOR@moodle(c);
    END;
    - Now run your select statement
    => if it now works, you can permanently change the MySQL config to be ANSI compliant or you can apply the 11.1.0.7 patchset to DG4ODBC.

  • How to load a SQL Server Image datatype into Oracle

    I am trying to use the follwing procedure to transfer image datatypes from SQL Server into Oracle:
    DECLARE
       v_update_string   VARCHAR2 (200)
          := 'select face from multiMax.dbo.CardHolderFaceTable where cardid = 246979';
       v_result          VARCHAR2 (32767)          := NULL;
       CURSOR sql_server_conn
       IS
          SELECT connection_name, user_name,
                 securedata_pkg.decrypt_char (PASSWORD) PASSWORD
            FROM xxper.xxper_sql_server;
       s_rec             sql_server_conn%ROWTYPE;
    BEGIN
       OPEN sql_server_conn;
       FETCH sql_server_conn
        INTO s_rec;
       CLOSE sql_server_conn;
       v_result :=
          xxper_sql_server_utils.runsqlserverquery (s_rec.connection_name,
                                                    s_rec.user_name,
                                                    s_rec.PASSWORD,
                                                    v_update_string
       DBMS_OUTPUT.put_line (v_result);
       INSERT INTO scott_blob
            VALUES (v_result);
    EXCEPTION
       WHEN OTHERS
       THEN
          DBMS_OUTPUT.put_line (SQLERRM);
    END;This gives me 'ORA-06502: PL/SQL: numeric or value error: host bind array too small'
    I can change to another column on the SQL Server side and transfer fine, just not with Image datatypes.
    Not sure why this is happening, does anyone have any advice? Sorry, can't seem to post with my formatting intact.
    Edited by: user7726970 on Jun 8, 2009 4:53 PM
    Update, removing the 'DBMS_OUTPUT.put_line (v_result);' takes care of that error but no data is transferred. Confused.
    Edited by: user7726970 on Jun 8, 2009 5:14 PM

    hi,
    thank you for the response.
    when i call the sp using DBMS_HS_PASSTHROUGH, without parameters it works successfully, but with parameters it gives the following error
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC][Microsoft][ODBC SQL Server Driver]Invalid parameter number[Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index (SQL State: S1093; SQL Code: 0)
    my code is,
    declare
    c INTEGER;
    nr INTEGER;
    begin
    c := DBMS_HS_PASSTHROUGH.OPEN_CURSOR@hsa;
    DBMS_HS_PASSTHROUGH.PARSE@hsa(c, 'Create_Receipt(?,?)');
    DBMS_HS_PASSTHROUGH.BIND_VARIABLE@hsa(c,1,'abc');
    DBMS_HS_PASSTHROUGH.BIND_VARIABLE@hsa(c,2,'xyz');
    nr:=DBMS_HS_PASSTHROUGH.EXECUTE_NON_QUERY@hsa(c);
    DBMS_HS_PASSTHROUGH.CLOSE_CURSOR@hsa(c);
    end;
    Create_Receipt is the sp which requires two parameters.
    please give me a solution
    thanking you
    sreejith

  • How to call a sql server stored procedure from oracle

    Hi all,
    Please anybody tell me how to call a sql server stored procedure from oracle.
    I've made an hsodbc connection and i can do insert, update, fetch data in sql server from oracle. But calling SP gives error. when I tried an SP at oracle that has line like
    "dbo"."CreateReceipt"@hsa
    where CreateReceipt is the SP of sql server and hsa is the DSN, it gives the error that "dbo"."CreateReceipt" should be declared.
    my database version is 10g
    Please help me how can i call it... I need to pass some parameters too to the SP
    thanking you

    hi,
    thank you for the response.
    when i call the sp using DBMS_HS_PASSTHROUGH, without parameters it works successfully, but with parameters it gives the following error
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC][Microsoft][ODBC SQL Server Driver]Invalid parameter number[Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index (SQL State: S1093; SQL Code: 0)
    my code is,
    declare
    c INTEGER;
    nr INTEGER;
    begin
    c := DBMS_HS_PASSTHROUGH.OPEN_CURSOR@hsa;
    DBMS_HS_PASSTHROUGH.PARSE@hsa(c, 'Create_Receipt(?,?)');
    DBMS_HS_PASSTHROUGH.BIND_VARIABLE@hsa(c,1,'abc');
    DBMS_HS_PASSTHROUGH.BIND_VARIABLE@hsa(c,2,'xyz');
    nr:=DBMS_HS_PASSTHROUGH.EXECUTE_NON_QUERY@hsa(c);
    DBMS_HS_PASSTHROUGH.CLOSE_CURSOR@hsa(c);
    end;
    Create_Receipt is the sp which requires two parameters.
    please give me a solution
    thanking you
    sreejith

  • Poor Performance using Generic Conectivity for ODBC

    Hi my friends.
    I have a problem usign Generic Conectivity , I need update 500,000 records in MS SQL Server 2005, I'm using Generic Conectivity for ODBC. In my Oracle Database i have create a DB_LINK called TEST to redirect to MS SQL Server database.
    Oracle Database: 10.2.0.4
    MS SQL Server version: 2005
    The time for update 1,000 records in MS SQL Server using DBMS_HS_PASSTHROUGH is ten minutes. This is a poor performance.
    This is de PL/SQL
    DECLARE
    c INTEGER;
    nr INTEGER;
    CURSOR c_TEST
    IS
    SELECT "x", "y"
    FROM TEST_cab
    WHERE ROWNUM <= 1000
    ORDER BY "y";
    BEGIN
    FOR cur IN c_TEST
    LOOP
    c := DBMS_HS_PASSTHROUGH.OPEN_CURSOR@TEST;
    DBMS_HS_PASSTHROUGH.PARSE@TEST(
    c,
    'UPDATE sf_TEST_sql
    SET observation= ?
    WHERE department_id = ?
    AND employee_id = ? ');
    DBMS_HS_PASSTHROUGH.BIND_VARIABLE@TEST (c, 1, 'S');
    DBMS_HS_PASSTHROUGH.BIND_VARIABLE@TEST (c, 2, 'N');
    DBMS_HS_PASSTHROUGH.BIND_VARIABLE@TEST (c, 3, 'ELABORADO');
    DBMS_HS_PASSTHROUGH.BIND_VARIABLE@TEST (c, 4, 'PENDIENTE');
    DBMS_HS_PASSTHROUGH.BIND_VARIABLE@TEST (c, 5, cur."x");
    DBMS_HS_PASSTHROUGH.BIND_VARIABLE@TEST (c, 6, cur."y");
    nr := DBMS_HS_PASSTHROUGH.EXECUTE_NON_QUERY@TEST (c);
    DBMS_HS_PASSTHROUGH.CLOSE_CURSOR@TEST (c);
    COMMIT;
    END LOOP;
    END;
    You can help, how better the performance for update 500,000 record by record in MS SQL Server. I need advantages of use Oracle Transparent Gateway for Microsoft SQL Server.
    your's can suggest my another solution ?
    Thanks.

    Hi,
    There are no real parameters to tune the gateways. You should turn on gateway debug tracing and check the SQL that is being sent to SQL*Server to make sure is update statements and nothing else.
    If this is the case then the time taken will be down to various factors, such as network delays, processing on SQL*Server and so on.
    How long does it take to update the same number of records directly on SQL*Server without the Oracle or the gateway involved or if you use another non-Oracle client to do the same updates across a network, if a network is involved ?
    It may be possible to improve performance by changing the HS_RPC_FETCH_REBLOCKING parameter, so have a look at this note in My Oracle Support -
    Tuning Generic Connectivity And Gateways (Doc ID 230543.1)
    Regards,
    Mike

  • Pipelined functions from mssql using DG4MSQL

    Hi to All
    I have made installation of DG4MSQL 11.1 to connect Oracle db 10.2.0.4 to MSSQL server and found this problem.
    On my MSSQL side there are piplined database objects , functions that behave like tables and which from mssql side is queried by forexample select * from table(parameter);
    I tried to query objects on oracle db side using the same syntax like this:
    select * from "table(parameter)"@sqlserverlink;
    and this
    select * from "table"@sqlserverlink (parameter);
    and it gave error:
    ORA-00933: SQL command not properly ended
    Also tried standard oracle syntax for selecting from pipleined function like this :
    select * from TABLE("table"@sqlserverlink(NULL));
    or
    select * from TABLE("table"(NULL)@sqlserverlink);
    and it gives error
    ORA-00933: SQL command not properly ended
    .Can enynone give me some answer for this. Are piplined functions supported through DG4MSQL when connecting from oracle to mssql.
    Greetings
    Kenan

    What is exactly the syntax of your object name.
    Table, table and TABLE are 3 differents objects!!!!!
    select object_name,object_type from all_objects@sqlserver where upper(object_name)='table';
    ====>normal , you have no row because your object name is not 'TABLE'
    You have to respect the case sensivity
    Try rather:
    select object_name,object_type from all_objects@sqlserver where object_name LIKE '%able%';
    So in your SQL SERVER (which version?) what do you see exactly???
    In which object category do you see it?Is it a user defined function?
    When you use a function, it is used to retrieve a value.
    example: select "table"@sqlserver (NULL) from dual;
    ==>you get one rowwith one value
    If your object is a table supposed to retrieve resultset (many rows) you can't pass it with a parameter:
    select * from Table@sqlserver (NULL);
    ==>it won't work
    So my question is also what are you supposed to retrieve when you select in SQL SERVER:
    select * from table(null)
    ==>many rows or one row???
    You can test with the DBMS_HS_PASSTHROUGH package:
    DECLARE
    ret integer;
    c integer;
    BEGIN
    c := DBMS_HS_PASSTHROUGH.OPEN_CURSOR@sqlserver;
    DBMS_HS_PASSTHROUGH.PARSE@sqlserver(c, 'select * from table(null)');
    ret := DBMS_HS_PASSTHROUGH.EXECUTE_NON_QUERY@sqlserver(c);
    dbms_output.put_line(ret ||' passthrough output');
    DBMS_HS_PASSTHROUGH.CLOSE_CURSOR@sqlserver(c);
    END;
    If it is succesfull, you're supposed to get:
    ===>1 passthrough output
    Please give me all the information and I could help you more.
    Regards
    Mireille

  • Lock sql server table through DG4ODBC?

    Hi
    I'm using DG4ODBC to connect to SQL server 2008, querying data and insert to Oracle. Is it possible to lock the remote table in sql server, prohibit it from inserting any new record?
    My Oracle version is 11.1.0.7.0, OS version : Red Hat Enterprise Linux Server release 5.3.
    Thanks
    Edited by: user1152556 on 21:20 06-05-2013

    by default the gateway starts its own transaction on the SQL Server side and as soon as you even execute a select it locks the data until you execute a commit (even when only selecting data). Unfortunately the amount of data being locked now depends on the SQL Server version and on the lock mode chosen by the SQl Server (row/page/table).
    Another option would be to explicit set a transaction isolation level for your gateway session using the passthrough command:
    DECLARE
    ret integer;
    c integer;
    BEGIN
    c := DBMS_HS_PASSTHROUGH.OPEN_CURSOR@MSODBCSQLSERVER_DG4ODBC_EMGTW_1123_DB;
    DBMS_HS_PASSTHROUGH.PARSE@MSODBCSQLSERVER_DG4ODBC_EMGTW_1123_DB(c, 'SET TRANSACTION ISOLATION LEVEL SERIALIZABLE');
    ret := DBMS_HS_PASSTHROUGH.EXECUTE_NON_QUERY@MSODBCSQLSERVER_DG4ODBC_EMGTW_1123_DB(c);
    dbms_output.put_line(ret ||' passthrough output');
    DBMS_HS_PASSTHROUGH.CLOSE_CURSOR@MSODBCSQLSERVER_DG4ODBC_EMGTW_1123_DB(c);
    END;
    Please check out your SQL Server documentation which isolation level will fit for your needs.
    - Klaus

  • 11g gateway for ODBC returns SYNTAX ERROR on query

    Hi,
    I have made a database link to an odbc link on a 11g gateway. The odbc driver for the database in question is called connx, a third party driver to connect to RMS files on an old vax. The odbc driver works fine as I tested it independently of the gateway.
    The database link connection is fine. I do desc tablename and it returns the correct columns
    I do for example select * from SICF090MLT@melt and it returns :
    meltdb>select * from SICF090MLT@melt;
    select * from SICF090MLT@melt
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    Illegal identifier
    A1."CHARGE_NO" , A1."MIX_ID" , A1."BUCKET_ID" , A1."AIM_ST" , A1."SCRAP_MIX_NAME" FROM << Syntax Error >> 'SICF090MLT' A1
    ORA-02063: preceding 3 lines from MELT
    As you can see all of the columns have been discovered by the query,
    I am not sure what can be the issue. Maybe a character translation issue? Some configuration settings for the gateway? Any ideas?
    On a side note: all other database links to other databases (sqlserver) work fine with this 11g gateway.
    The Best to all of you!

    Mireille,
    I am using a win32 driver.
    HS_FDS_SUPPORT_STATISTICS is false for all my database links. I have had issues with that in the past and have already learned my lesson :)
    I will check the quoted identifier setting for my odbc link and change it if I can.
    As a side note: for now I am using the DBMS_HS_PASSTHROUGH package to get around the problem, but it is better if I solve my original problem obviously. I will let you know.
    Merci et bonne journée.

  • Can I return my laptop

    I bought my laptop around the beginning of March 2011. I am very dissatisfied with it and was wondering if I could bring it in for a refund.The computer is a Dell Inspiron. 

    I'm sorry, but you only have 14 days to return a laptop. You could send it in for repair if there is an issue with the device.
    I am a Bestbuy employee who volunteers on these boards on my own time. I am not paid for posting here, and you should understand that my opinions are exactly that - opinions. I do not represent Bestbuy in any way.
    : Open Mailbox

  • Return of Free goods item - Problem in item category

    I am trying to create return order of Free sample billing
    (ZFDP). The return order type for the free sample is ZFDR.
    We have specified Item category for the ZFDR is RENN (Free good item) in IMG Activity -> Assign Item categories.
    When I create order and save it, it prompts me to enter G/L Account.
    This material is free. It should not prompt G/L Account for it. There is no revenue recognition specified for the item category. I tried changing item category to ZKLN i.e Free of charge item. This item category does not prompt for G/L Account while creating order. but I can not use this item category because it prompts me for Avialability. I can not remove the Avaialabilty check for it because the same item category is used in the Free sample order where availability check is required
    In ZFDP order type, we are issuing 100% discount by using R100
    discount condition.  Please let me know how can I solve this problem.
    I think there is some problem in my item category itself. .
    My setting for Item category in IMG - Define item category is
    same for both ZKLN and RENN. Only difference is RENN has returns
    tick and pricing field is blank. In ZKLN pricing is defined as B- 100%
    discount. I also tried changing the pricing option of RENN to B.
    But still it is asking for G/L Account.
    I can not use ZKLN instead of RENN because my ZKLN is used in the
    Free item Sales order.
    Please help.
    Regards
    Saurabh Gothivrekar

    Hi
    I got answer to my query. YOu need to specify the bill type while defining sales document type. This bill type should not have account assignment mentioned in it.
    I changed the bill type, which does not have Account assignment procedure attached to it.
    It has solved my problem

  • Query help: query to return column that represents multiple rows

    I have a table with a name and location column. The same name can occur multiple times with any arbitrary location, i.e. duplicates are allowed.
    I need a query to find all names that occur in both of two separate locations.
    For example,
    bob usa
    bob mexico
    dot mexico
    dot europe
    hal usa
    hal europe
    sal usa
    sal mexico
    The query in question, if given the locations usa and mexico, would return bob and sal.
    Thanks for any help or advice,
    -=beeky

    How about this?
    SELECT  NAME
    FROM    <LOCATIONS_TABLE>
    WHERE   LOCATION IN ('usa','mexico')
    GROUP BY NAME
    HAVING COUNT(DISTINCT LOCATION) >= 2Results:
    SQL> WITH person_locations AS
      2  (
      3          SELECT 'bob' AS NAME, 'USA' AS LOCATION FROM DUAL UNION ALL
      4          SELECT 'bob' AS NAME, 'Mexico' AS LOCATION FROM DUAL UNION ALL
      5          SELECT 'dot' AS NAME, 'Mexico' AS LOCATION FROM DUAL UNION ALL
      6          SELECT 'dot' AS NAME, 'Europe' AS LOCATION FROM DUAL UNION ALL
      7          SELECT 'hal' AS NAME, 'USA' AS LOCATION FROM DUAL UNION ALL
      8          SELECT 'hal' AS NAME, 'Europe' AS LOCATION FROM DUAL UNION ALL
      9          SELECT 'sal' AS NAME, 'USA' AS LOCATION FROM DUAL UNION ALL
    10          SELECT 'sal' AS NAME, 'Mexico' AS LOCATION FROM DUAL
    11  )
    12  SELECT  NAME
    13  FROM    person_locations
    14  WHERE   LOCATION IN ('USA','Mexico')
    15  GROUP BY NAME
    16  HAVING COUNT(DISTINCT LOCATION) >= 2
    17  /
    NAM
    bob
    salHTH!
    Edited by: Centinul on Oct 15, 2009 2:25 PM
    Added sample results.

  • Unable to capture return values in web services api

    At the time of login to web services if my server is down ,
    it returns following error :
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
            at java.lang.String.substring(String.java:1438)
            at java.lang.String.substring(String.java:1411)
    I want to capture this error so that i can try another server to login. how do i capture this error
    Another place where i want to capture the return Value is when i look for a report on the server
    rh = boBIPlatform.get("path://InfoObjects/Root Folder/"src_folder"/" + reportName +
                               "@SI_SCHEDULEINFO,SI_PROCESSINFO" ,oGetOptions);
    oInfoObjects = rh.getInfoObjects();
    CrystalReport = (CrystalReport)oInfoObjects.getInfoObject(0);
    Here if the report is not there on the server , it returns a null handler exception.
    but if i try catching it by checking my responsehandler is null  like rh == null  it does not catch it.
    Any help will be appreciated
    thanks
    Rakesh Gupta

    Ted : i have two cases
    1)   server = server_st.nextToken();
        providerURL = "http://"server"/dswsbobje/services";
        sessConnURL = new URL(providerURL + "/session");
       Connection boConnection = new Connection(sessConnURL);
       Session boSession = new Session(boConnection);
      EnterpriseCredential boEnterpriseCredential = new    EnterpriseCredential();
                  boEnterpriseCredential.setLogin(userid);
      boEnterpriseCredential.setPassword(pwd);
      boEnterpriseCredential.setAuthType(auth);
    SessionInfo boSI = boSession.login(boEnterpriseCredential);
    I have got a list of servers running web servcies stored in my tokens. when i pass the first server name say " test:8080" and that server is down , i want to catch somewhere in the code above that it did not get the connection so that i can loop back and try with the second server say test1:8080
    This is for failover purposes.
    at present when i was trying to capture return value of boSI it  breaks giving the error
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1438)
    at java.lang.String.substring(String.java:1411)
    2nd case :
    I am geeting reports from the server and scheduling them:
    i run the following code which works fine if reports is there
    rh = boBIPlatform.get("path://InfoObjects/Root Folder/"src_folder"/" + reportName +
    "@SI_SCHEDULEINFO,SI_PROCESSINFO" ,oGetOptions);
    oInfoObjects = rh.getInfoObjects();
    CrystalReport = (CrystalReport)oInfoObjects.getInfoObject(0);
    Here if  the  report  is not there on the server  then i should be able to catch from the response handle rh that it has got a null value.
    but rh does not return a null value 
    the code ultimately throws a null handle at the following line
    CrystalReport = (CrystalReport)oInfoObjects.getInfoObject(0);
    i am not able to catch the null value there also.
    hope you got my issue.

  • Generate prov.xml for Creative Cloud. Return Code 27

    We're trying to follow this guide (Creative Cloud Help | Using Adobe Provisioning Toolkit Enterprise Edition) to serialize a package (or something). We're stuck on generating prov.xml. My best attempt at an entry is:
    C:\Program Files (x86)\Common Files\Adobe\OOBE\PDApp\CCP\utilities\APTEE>adobe_prtk.exe --tool=VolumeSerialize --generate --serial=xxxx-xxxx-xxxx-xxxx-xxxx-xxxx --regsuppress=ss --eulasuppress --locales=en_US --provfilepath=C:\Program Fil
    es (x86)\Common Files\Adobe\OOBE\PDApp\CCP
    It says half of this is optional, but I'm skeptical.
    Anyway, I'm getting return code 27. This indicates that it is unable to edit the prov.xml file specified. I didn't specify a prov.xml file, I'm trying to make one. The syntax I'm using differs from what I found on the page I linked, as that was giving me syntax errors. I lifted this off someone else's code. I've tried just about every variation I can think of. Any help would be appreciated.
    This is on Windows

    One of these links may help
    http://helpx.adobe.com/creative-cloud/packager.html
    http://forums.adobe.com/community/download_install_setup/creative_suite_enterprise_deploym ent

Maybe you are looking for

  • Issue with update of BOM by Variant Config - Cost relevant indicator

    Hi All VC Expert, We are facing an issue with the update by reference characteristic of the field STPO-SANKA Cost relevancy indicator on the BOM. We are on SAP ECC 6.0 release 700 on Oracle Hot Package - SAPKA70015 on ERP Cross Application componenen

  • HUD display in Aperture 2

    For no reason and all of a sudden when i hover over a picture in Aperture I get a HUD window showing me info about the picture.... This is really annoying, how do I stop this happening? I must have pressed something as it didn't happen earlier but ha

  • What would prevent me from turning on wi fi?

    I,ve been using my MacBook Air with a comcast provided router for 18 months without a connectivity problem until today. Suddenly the wi fi is turned off and I cannot get it to turn on. There are no bars showing on the indicator, but wi fi is working

  • Extending the columns in Data Prep Editor

    Hi Gurus, Is there any way to create more than 20 columns in Data Prep Editor. Any help on this appreciable. Thanks..

  • Declare a text query

    If I have a text query in visual studio EXEC DCC_SPP_GetPeopleByDepartment @Department how can i declare the @Department to be varchar (8000) ? I tried declaring it in the stored procedure, but when I deploy the report, the query fails as it's lookin