ODI substition API for connected attributes

Hi,
Is there an ODI substitution API which tells me which columns in source table are connected to columns of target table ?
I have a simple interface where in Table A is populated from Table B. I want to find which are the connected columns between Table B and Table A.
Thanks.

Hi,
You can get use odiRef.getSrcColList for that, it takes a couple of parameters and the 3rd one is for the source columns that are mapped:
getSrcColList( java.lang.String pStart, java.lang.String pUnMappedPattern, java.lang.String pMappedPattern, java.lang.String pSeparator, java.lang.String pEnd)
Something like *<%=odiRef.getSrcColList("","","[COL_NAME]",", ","")%>* should return a list of all the source column names that are mapped to target columns.
Thanks,
Julien

Similar Messages

  • API for connecting  to an external database object

    Hi,
    Can anyone provide me with the API for connecting to the external database table and to create , update and delete data with an Oracle external database object.
    Wish you great time.
    Best Regards
    Sid

    Questions like yours are best asked over at the webOS Developer's Forum.  The Palm Support Community here is geared to answering end-user questions about devices, not programming information.
    https://developer.palm.com/
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • API for connection count?

    Hi,
    Does WLS have an API for querying the number of connections made via EJB/JMS
    (JNDI's InitialContext)? How would it work in a cluster (will I get
    connections for that box or for the cluster)?
    Thanks,
    Assaf Pazner

    Hi,
    We believe instead of using IMPORT_COUNTREQUEST API you can use a Dataload script to key in data in Physical Inventory form.
    Basically you need to populate 4 fields in this form, i.e Physical Inventory, Date, Description & Snapshot Complete (checkbox).
    Go ahead and write a Dataload script for the same.
    Regards,
    S.P DASH

  • Is there any API for connecting web server and iphone apps

    Hi,
    I have to retrieve data from Web Server and display in my iphone apps. I want to know that is there any API through which i can connect my apps to server and get data.
    One way i know that use NSURLConnection and get XML response and prase it and use it like that.
    So anyone know this?
    Thanks.

    NSURLConnection is straightforward to use. In the mobile world, and especially if you intend to use certain google APIs, I would rather tend to use JSON instead of XML. A great JSON parser for objective-c is here: http://code.google.com/p/json-framework/
    Cheers,
    Marcelo

  • API for Updating Attribute in CZ

    Hi All,
    Could you please suggest me any Standard API to update the Attribute Value in cz_config_ext_attributes.
    Thank you,
    Aush

    Could you please suggest me any Standard API to update the Attribute Value in cz_config_ext_attributes.I do not see any reference on MOS that shows what API can be used to update this table.
    Have you reviewed the documentation? -- http://www.oracle.com/technetwork/documentation/applications-167706.html
    You may also review iREP and eTRM websites.
    http://irep.oracle.com/index.html
    http://etrm.oracle.com/
    Thanks,
    Hussein

  • Warning  6226: Ignoring value requested for first connection attribute 'TempSize'

    Hi
    Was trying to load, here is what I see. Appreciate your help.
    con1: Command> load cache group g_sdata_awt commit every 1000 rows;
    5056: The cache operation fails: error_type=<TimesTen Error>, error_code=<3407>, error_message: [TimesTen]TT3407: Cannot allocate space to store ownership information for global cache groups because temporary data partition free space is below the minimum threshold of 3000000 bytes - from grid member DDGRID_DD_TTDB_1
    The command failed.
    con1: Command>
    [timesten@timesten101 info]$ ttisql -connstr "dsn=DD_TTDB;tempsize=4096";
    Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
    Type ? or "help" for help, type "exit" to quit ttIsql.
    connect "dsn=DD_TTDB;tempsize=4096";
    Warning  6226: Ignoring value requested for first connection attribute 'TempSize' -- value currently in use: 32, requested value: 4096
    Connection successful: DSN=DD_TTDB;UID=timesten;DataStore=/home/timesten/TimesTen/ttdev/DD_TTDB;DatabaseCharacterSet=AL32UTF8;ConnectionCharacterSet=US7ASCII;DRIVER=/home/timesten/TimesTen/ttdev/lib/libtten.so;LogDir=/home/timesten/TimesTen/ttdev/logs/DD_TTDB;PermSize=8196;TempSize=4096;TypeMode=0;OracleNetServiceName=VIS1;
    (Default setting AutoCommit=1)
    Command>
    I tried :
    HOWTO : Understand Modifying TimesTen PermSize And TempSize First Connect Database Attributes (Doc ID 1081008.1)
    It did not help! Thanks a lot.
    Anil

    Hi Chris, Thanks a lot again! I guess I followed the steps.
    Sorry in a rush to get this done, not able to read all the docs.
    Still getting the error, can you please point to me where I am going wrong:
    Sorry for being childish pest here, tried it hard but couldnt get too far.
    [timesten@timesten101 ~]$ ttadmin -rampolicy manual DD_ttdb
    RAM Residence Policy            : manual
    Manually Loaded In RAM          : False
    Replication Agent Policy        : manual
    Replication Manually Started    : False
    Cache Agent Policy              : manual
    Cache Agent Manually Started    : False
    [timesten@timesten101 ~]$ ttdaemonadmin -stop;
    TimesTen Daemon stopped.
    [timesten@timesten101 ~]$ ttdaemonadmin -start;
    TimesTen Daemon startup OK.
    [timesten@timesten101 ~]$ ttstatus;
    TimesTen status report as of Mon Feb 10 08:47:28 2014
    Daemon pid 19519 port 53396 instance ttdev
    TimesTen server pid 19528 started on port 53397
    Data store /home/timesten/TimesTen/ttdev/DD_TTDB
    There are no connections to the data store
    RAM residence policy: Manual
    Data store is manually unloaded from RAM
    Replication policy  : Manual
    Cache Agent policy  : Manual
    PL/SQL enabled.
    Accessible by group ttadmin
    End of report
    [timesten@timesten101 ~]$
    [timesten@timesten101 ~]$ ttadmin -rampolicy inuse DD_ttdb
    RAM Residence Policy            : inUse
    Replication Agent Policy        : manual
    Replication Manually Started    : False
    Cache Agent Policy              : manual
    Cache Agent Manually Started    : False
    [timesten@timesten101 ~]$ ttstatus
    TimesTen status report as of Mon Feb 10 08:47:59 2014
    Daemon pid 19519 port 53396 instance ttdev
    TimesTen server pid 19528 started on port 53397
    Data store /home/timesten/TimesTen/ttdev/DD_TTDB
    There are no connections to the data store
    Replication policy  : Manual
    Cache Agent policy  : Manual
    PL/SQL enabled.
    Accessible by group ttadmin
    End of report
    [timesten@timesten101 ~]$ ttisql -connstr "dsn=DD_TTDB;uid=cacheadm;pwd=cacheadm;oraclepwd=cacheadm";
    Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
    Type ? or "help" for help, type "exit" to quit ttIsql.
    connect "dsn=DD_TTDB;uid=cacheadm;pwd=cacheadm;oraclepwd=cacheadm";
    15019: Only the instance admin may alter the TempSize attribute
    The command failed.
    Done.
    [timesten@timesten101 ~]$

  • API for RA_CUSTOMER_TRX_ALL to update attribute columns

    Hi,
    Not sure if this is the right place for this but does anybody know if there is an API for updating RA_CUSTOMER_TRX_ALL table
    I'm wanting to update the Attibute columns.
    Thanks
    Malcolm

    Oracle typically does not provide APIs for ATTRIBUTE columns as these need to be maintained by customers.
    HTH
    Srini

  • API for Proxy Server Connection

    Hi,
    can anybody tell me any API for Proxy Server Connection in java EXCLUDING
    httpclient(apache) and setting system setting and making a urlconnection.

    hey thanx for replying
    Firstly i clear my requirement
    I want some other way of connecting to Proxy Server Irrespective of Httpclient and setting system properties and then making url Connection ,these ways are clear to me .
    I found one API HTTPClient (not belonging to apache Httpclient) its different
    u check this at
    http://www.innovation.ch/java/HTTPClient/api/index-all.html#_S_
    But the problem is this API Does't support NTLM
    i tried to found higher version of this API but i did't get .
    API should support :
    1. NTML
    2.JDK 1.4
    3.SOCKS (not necessary)
    4.HTTP protocol (other like FTP ... not necessary)

  • When i try to submit an application with Application Loader, the wizard is blocked on "Send API itunes connect usage, waiting for response". Any idea ?

    When i try to submit an application with Application Loader, the wizard is blocked on "Send API itunes connect usage, waiting for response". Any idea ?

    Thank you, Vincent! It's still down for me, but at least I know someone had the same issue. Hoping it's going to work over here soon
    Best!

  • Lack of true Ubuntu 64-bit support for Connect add-in

    Dear Adobe,
    This well-worn conversation seems to have been asked a few times before, and ignored a few times before, so you'll forgive me for re-opening it again.
    I downloaded the 64-bit debian package of your Adobe Connect add-in yesterday from Adobe's website. Here it is sitting on my local disk:
    $ ls ~/.shared/
    total 540108
    drwxrwxrwx 2 root     root          4096 2012-05-31 15:00 ./
    drwxr-xr-x 5 root     root          4096 2012-04-23 22:24 ../
    -rw-r--r-- 1 root     root     540016672 2012-05-27 00:03 temp.tar
    -rw-r--r-- 1 root     root       4026194 2012-05-30 22:51 ConnectAddin64.deb
    I then installed the package. However, when I tried to join my meeting, before the "Connecting..." screen appears with the progress bar, a blank white page flashed very briefly saying "Adobe Connect add-in not installed". Unsurprisingly, I wasn't able to join my meeting, and your online diagnostics site also confirmed that the add-in wasn't installed in my browser (Firefox 11).
    Then, reading other users' tales of woe, I located and analysed the installed binary, and this is what I saw:
    $ readelf -h /usr/local/connectaddin
    ELF Header:
      Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
      Class:                             ELF32
      Data:                              2's complement, little endian
      Version:                           1 (current)
      OS/ABI:                            UNIX - System V
      ABI Version:                       0
      Type:                              EXEC (Executable file)
      Machine:                           Intel 80386
      Version:                           0x1
      Entry point address:               0x8055810
      Start of program headers:          52 (bytes into file)
      Start of section headers:          7629080 (bytes into file)
      Flags:                             0x0
      Size of this header:               52 (bytes)
      Size of program headers:           32 (bytes)
      Number of program headers:         9
      Size of section headers:           40 (bytes)
      Number of section headers:         42
      Section header string table index: 39
    This is a 32-bit binary. There is absolutely no mistake about it. And even though it is a GTK binary,  it fails to work on a 64-bit system with 32-bit dual support due to the fact it appears to have the search paths to its libraries hard-coded into it:
    $ export GTK_PATH=/usr/lib32/gtk-2.0
    $ ./connectaddin
    (connectaddin:5416): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so: wrong ELF class: ELFCLASS64
    (connectaddin:5416): Gtk-WARNING **: Loading IM context type 'ibus' failed
    You notice how GTK_PATH is ignored. The path in the above message is where the 32-bit binary would be sitting if I were on a 32-bit native system. However, as I'm on a 64-bit system, my 32-bit libraries are in:
    $ ls /usr/lib32/gtk-2.0/2.10.0/immodules
    total 180
    drwxr-xr-x 2 root root  4096 2012-05-31 17:23 ./
    drwxr-xr-x 5 root root  4096 2012-05-31 17:38 ../
    -rw-r--r-- 1 root root 18740 2011-04-15 02:48 im-am-et.so
    -rw-r--r-- 1 root root  5516 2011-04-15 02:48 im-cedilla.so
    -rw-r--r-- 1 root root  7060 2011-04-15 02:48 im-cyrillic-translit.so
    -rw-r--r-- 1 root root 17976 2011-03-04 13:49 im-ibus.so
    -rw-r--r-- 1 root root  7484 2011-04-15 02:48 im-inuktitut.so
    -rw-r--r-- 1 root root  6160 2011-04-15 02:48 im-ipa.so
    -rw-r--r-- 1 root root  9620 2011-04-15 02:48 im-multipress.so
    -rw-r--r-- 1 root root  9540 2011-04-15 02:48 im-thai.so
    -rw-r--r-- 1 root root 18728 2011-04-15 02:48 im-ti-er.so
    -rw-r--r-- 1 root root 18728 2011-04-15 02:48 im-ti-et.so
    -rw-r--r-- 1 root root  7372 2011-04-15 02:48 im-viqr.so
    -rw-r--r-- 1 root root 26284 2011-04-15 02:48 im-xim.so
    Will somebody please let us users know when Adobe will be (or won't be, for that matter) actually providing a true 64-bit linux version of their Adobe Connect add-in, instead of packaging the 32-bit version of the add-in in an archive that says 64-bit?
    Thanks in advance,

    That is the last supported player for Linux using the NPAPI. Chrome's new API, PPAPI, is still going to be supported in Linux, Mac and PC OS's and will have the current version of Flash Player for all those OS's.
    Here is Adobe's statement regarding Flash Player on Linux OS's.
    Adobe wrote:
    Linux:
    Adobe has been working closely with Google to develop a single, modern API for hosting plug-ins within the browser. The PPAPI, code-named "Pepper", aims to provide a layer between the plug-in and browser that abstracts away differences between browser and operating system implementations. You can find more information on the Pepper API at http://code.google.com/p/ppapi/.
    Because of this work, Adobe has been able to partner with Google in providing a "Pepper" implementation of Flash Player for all x86/64 platforms supported by the Google Chrome browser. Google will begin distributing this new Pepper-based Flash Player as part of Chrome on all platforms, including Linux, later this year.
    For Flash Player releases after 11.2, the Flash Player browser plug-in for Linux will only be available via the "Pepper" API as part of the Google Chrome browser distribution and will no longer be available as a direct download from Adobe. Adobe will continue to provide security updates to non-Pepper distributions of Flash Player 11.2 on Linux for five years from its release.
    Flash Player will continue to support browsers using non-"Pepper" plug-in APIs on platforms other than Linux.
    Adobe will be providing a debug player implementation of the Flash Player browser plug-in on Linux, and will update this document once there are more details on how it will be distributed.
    The full release can be seen here: http://www.adobe.com/devnet/flashplatform/whitepapers/roadmap.html

  • Duplicate check for Connection Objects in CRM

    Hi,
    I want to implement a duplicate check for connection objects in CRM. The duplicate check shall use the address of the connection object and perhaps additonal attributes. I have found a duplicate check for business partners using the basis address service and TREX as index pool. However, I couldn't find a similar functionality for connection objects. Does somebody know:
    1) How to implement a duplicate check for connection objects which is based on the address of the connection object?
    2) Is there a way to use the TREX-based duplicate check which is integrated into the basis address service for connection objects?
    Thanks in advance!
    Best regards,
    Frank

    I also have a requirement to check for duplicate address at connection object level and we are using SAP data servies to validate the address. Can anyone share their experience.

  • Need API for getting List price and unit price before Order entry

    Hello,
    I have requirement of provide unit & list price before order entry (Oracle Pricing and availability form provide the same).
    Please suggest any API for the same.
    Thanks
    Akil.

    Hi,
    Thanks luko,
    I got API QP_PREQ_PUB.PRICE_REQUEST, and its return output as expected,
    Just have confusion that how many qualifiers we have to send
    Here is my sample code
    OR REPLACE PROCEDURE xx_web_get_price (
    IN     NUMBER,
    IN     NUMBER,
    IN     NUMBER,
    IN     NUMBER,
    IN     VARCHAR2,
    IN     VARCHAR2,
    IN     VARCHAR2,
    IN     NUMBER,
    OUT NUMBER,
    OUT NUMBER,
    OUT VARCHAR2,
    OUT VARCHAR2)
    QP_PREQ_GRP.LINE_TBL_TYPE;
    QP_PREQ_GRP.QUAL_TBL_TYPE;
    QP_PREQ_GRP.LINE_ATTR_TBL_TYPE;
    QP_PREQ_GRP.LINE_DETAIL_TBL_TYPE;
    QP_PREQ_GRP.LINE_DETAIL_QUAL_TBL_TYPE;
    QP_PREQ_GRP.LINE_DETAIL_ATTR_TBL_TYPE;
    QP_PREQ_GRP.RELATED_LINES_TBL_TYPE;
    QP_PREQ_GRP.CONTROL_RECORD_TYPE;
    QP_PREQ_GRP.LINE_TBL_TYPE;
    QP_PREQ_GRP.QUAL_TBL_TYPE;
    QP_PREQ_GRP.LINE_ATTR_TBL_TYPE;
    QP_PREQ_GRP.LINE_DETAIL_TBL_TYPE;
    QP_PREQ_GRP.LINE_DETAIL_QUAL_TBL_TYPE;
    QP_PREQ_GRP.LINE_DETAIL_ATTR_TBL_TYPE;
    QP_PREQ_GRP.RELATED_LINES_TBL_TYPE;
    VARCHAR2 (240);
    VARCHAR2 (240);
    QP_PREQ_GRP.QUAL_REC_TYPE;
    QP_PREQ_GRP.LINE_ATTR_REC_TYPE;
    QP_PREQ_GRP.LINE_REC_TYPE;
    QP_PREQ_GRP.LINE_DETAIL_REC_TYPE;
    QP_PREQ_GRP.LINE_DETAIL_REC_TYPE;
    QP_PREQ_GRP.RELATED_LINES_REC_TYPE;
    QP_Attr_Mapping_PUB.Contexts_Result_Tbl_Type;
    QP_Attr_Mapping_PUB.Contexts_Result_Tbl_Type;
    INTEGER;
    BINARY_INTEGER;
    VARCHAR2 (240);
    VARCHAR2 (60);
    oe_debug_pub.debug_on;
    oe_debug_pub.initialize;
    := OE_DEBUG_PUB.Set_Debug_Mode ('FILE');
    oe_Debug_pub.setdebuglevel (5);
    ('File : ' || l_file_val);
    QP_Attr_Mapping_PUB.
    (p_request_type_code           => 'ONT',
    => 'L',
    => l_pricing_contexts_Tbl,
    => l_qualifier_Contexts_Tbl);
    := 1;
    ---- Control Record
    .pricing_event := 'LINE';                           -- 'LINE';
    .calculate_flag := 'Y';    --QP_PREQ_GRP.G_SEARCH_N_CALCULATE;
    .simulation_flag := 'N';
    .source_order_amount_flag := 'Y';
    .rounding_flag := 'Q';
    .manual_discount_flag := 'Y';
    .request_type_code := 'ONT';
    .TEMP_TABLE_INSERT_FLAG := 'Y';
    ---- Line Records ---------
    .request_type_code := 'ONT';
    .line_id := 2125125; -- Order Line Id. This can be any thing for this script
    .line_Index := '1';                           -- Request Line Index
    .line_type_code := 'LINE';           -- LINE or ORDER(Summary Line)
    .pricing_effective_date := SYSDATE;    -- Pricing as of what date ?
    .active_date_first := SYSDATE;  -- Can be Ordered Date or Ship Date
    .active_date_second := SYSDATE; -- Can be Ordered Date or Ship Date
    .active_date_first_type := 'NO TYPE';                   -- ORD/SHIP
    .active_date_second_type := 'NO TYPE';                  -- ORD/SHIP
    .line_quantity := 1;                            -- Ordered Quantity
    .line_uom_code := p_uom; --'Ea';                         -- Ordered UOM Code
    .currency_code := p_currency_code; -- 'USD';                           -- Currency Code
    .price_flag := 'Y'; -- Price Flag can have 'Y' , 'N'(No pricing) , 'P'(Phase)
    (1) := line_rec;
    ------ Line Attribute Record
    .LINE_INDEX := 1;
    .PRICING_CONTEXT := 'ITEM';                               
    .PRICING_ATTRIBUTE := 'PRICING_ATTRIBUTE3';
    .PRICING_ATTR_VALUE_FROM := 'ALL';
    .VALIDATED_FLAG := 'N';
    (1) := line_attr_rec;
    .LINE_INDEX := 1;
    .PRICING_CONTEXT := 'ITEM';                                 --
    .PRICING_ATTRIBUTE := 'PRICING_ATTRIBUTE1';
    .PRICING_ATTR_VALUE_FROM := p_item_id;
    .VALIDATED_FLAG := 'N';
    (2) := line_attr_rec;
    .LINE_INDEX := 1;
    .PRICING_CONTEXT := 'ITEM';                              
    .PRICING_ATTRIBUTE := 'PRICING_ATTRIBUTE2';
    .PRICING_ATTR_VALUE_FROM := p_category_id;
    .VALIDATED_FLAG := 'N';
    (3) := line_attr_rec;
    ------ Qualifier Attribute Record
    .LINE_INDEX := 1; -- Attributes for the above line. Attributes are attached with the line index
    .QUALIFIER_CONTEXT := 'MODLIST';
    .QUALIFIER_ATTRIBUTE := 'QUALIFIER_ATTRIBUTE4';
    .QUALIFIER_ATTR_VALUE_FROM := p_price_list_id;
    .COMPARISON_OPERATOR_CODE := '=';
    .VALIDATED_FLAG := 'Y';
    (1) := qual_rec;
    .LINE_INDEX := 1;
    .QUALIFIER_CONTEXT := 'CUSTOMER';
    .QUALIFIER_ATTRIBUTE := 'QUALIFIER_ATTRIBUTE2';
    .QUALIFIER_ATTR_VALUE_FROM := p_customer_account_id;
    .COMPARISON_OPERATOR_CODE := '=';
    .VALIDATED_FLAG := 'Y';
    (2) := qual_rec;
    .LINE_INDEX := 1;
    .QUALIFIER_CONTEXT := 'CUSTOMER';
    .QUALIFIER_ATTRIBUTE := 'QUALIFIER_ATTRIBUTE40';
    .QUALIFIER_ATTR_VALUE_FROM := p_customer_category; --'INDUSTRIAL';  
    .COMPARISON_OPERATOR_CODE := '=';
    .VALIDATED_FLAG := 'Y';
    (3) := qual_rec;
    QP_PREQ_PUB.PRICE_REQUEST (p_line_tbl,
    -- Return Status Information ..
    := x_return_status_text;
    := x_return_status;
    := x_line_tbl.FIRST;
    IF I IS NOT NULL
    THEN
    := x_line_tbl (I).unit_price;
    := x_line_tbl (I).adjusted_unit_price;
    END IF;
    xx_web_get_price;                                     
    Regards,
    akil.

  • Java API for running entire ".sql" files on a remote DB ( mySQL or Oracle)?

    Hi,
    Would anyone happen to know if there's a java API for executing entire ".sql" files (containing several different SQL commands), on a remote database server ?
    It's enough if the API works with MySQL and/or Oracle.
    Just to demonstrate what i'm looking for:
    Suppose you've created sql file "c:/test.sql" with several script lines:
    -- test.sql:
    insert into TABLE1 values(3,3);
    insert into TABLE1 values(5,5);
    create table TABLE2 (name VARCHER) ENGINE innoDB; -- MYSQL specific
    Then the java API should look something like:
    // Dummy java code:
    String driver="com.mysql.jdbc.Driver";
    String url= "jdbc:mysql://localhost:3306/myDb";
    SomeAPI.executeScriptFile( "c:/test.sql", driver, url);
    Thanks.

    No such a API, but it's easy to parse all sqls in a file, then run those command:
    For instance:
    import java.sql.*;
    import java.util.Properties;
    /* A demo show how to load some sql statements. */
    public class testSQL {
    private final static Object[] getSQLStatements(java.util.Vector v) {
    Object[] statements = new Object[v.size()];
    Object temp;
    for (int i = 0; i < v.size(); i++) {
    temp = v.elementAt(i);
    if (temp instanceof java.util.Vector)
    statements[i] = getSQLStatements( (java.util.Vector) temp);
    else
    statements[i] = temp;
    return statements;
    public final static Object[] getSQLStatements(String sqlFile) throws java.
    io.IOException {
    java.util.Vector v = new java.util.Vector(1000);
    try {
    java.io.BufferedReader br = new java.io.BufferedReader(new java.io.
    FileReader(sqlFile));
    java.util.Vector batchs = new java.util.Vector(10);
    String temp;
    while ( (temp = br.readLine()) != null) {
    temp = temp.trim();
    if (temp.length() == 0)
    continue;
    switch (temp.charAt(0)) {
    case '*':
    case '"':
    case '\'':
    // System.out.println(temp);
    break; //Ignore any line which begin with the above character
    case '#': //Used to begin a new sql statement
    if (batchs.size() > 0) {
    v.addElement(getSQLStatements(batchs));
    batchs.removeAllElements();
    break;
    case 'S':
    case 's':
    case '?':
    if (batchs.size() > 0) {
    v.addElement(getSQLStatements(batchs));
    batchs.removeAllElements();
    v.addElement(temp);
    break;
    case '!': //Use it to get a large number of simple update statements
    if (batchs.size() > 0) {
    v.addElement(getSQLStatements(batchs));
    batchs.removeAllElements();
    String part1 = temp.substring(1);
    String part2 = br.readLine();
    for (int i = -2890; i < 1388; i += 39)
    batchs.addElement(part1 + i + part2);
    for (int i = 1890; i < 2388; i += 53) {
    batchs.addElement(part1 + i + part2);
    batchs.addElement(part1 + i + part2);
    for (int i = 4320; i > 4268; i--) {
    batchs.addElement(part1 + i + part2);
    batchs.addElement(part1 + i + part2);
    for (int i = 9389; i > 7388; i -= 83)
    batchs.addElement(part1 + i + part2);
    v.addElement(getSQLStatements(batchs));
    batchs.removeAllElements();
    break;
    default:
    batchs.addElement(temp);
    break;
    if (batchs.size() > 0) {
    v.addElement(getSQLStatements(batchs));
    batchs.removeAllElements();
    br.close();
    br = null;
    catch (java.io.FileNotFoundException fnfe) {
    v.addElement(sqlFile); //sqlFile is a sql command, not a file Name
    Object[] statements = new Object[v.size()];
    for (int i = 0; i < v.size(); i++)
    statements[i] = v.elementAt(i);
    return statements;
    public static void main(String argv[]) {
    try {
    String url;
    Object[] statements;
    switch (argv.length) {
    case 0: //Use it for the simplest test
    case 1:
    url = "jdbc:dbf:/.";
    if (argv.length == 0) {
    statements = new String[1];
    statements[0] = "select * from test";
    else
    statements = argv;
    break;
    case 2:
    url = argv[0];
    statements = getSQLStatements(argv[1]);
    break;
    default:
    throw new Exception(
    "Syntax Error: java testSQL url sqlfile");
    Class.forName("com.hxtt.sql.dbf.DBFDriver").newInstance();
    //Please see Connecting to the Database section of Chapter 2. Installation in Development Document
    Properties properties = new Properties();
    Connection con = DriverManager.getConnection(url, properties);
    Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
    ResultSet.CONCUR_READ_ONLY);
    //Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
    // stmt.setMaxRows(0);
    stmt.setFetchSize(10);
    final boolean serializeFlag = false;//A test switch to serialize/deserialize the resultSet
    ResultSet rs;
    for (int i = 0; i < statements.length; i++) {
    if (statements[i] instanceof java.lang.String) {
    String temp = (java.lang.String) statements;
    switch (temp.charAt(0)) {
    case 'S':
    case 's':
    case '?':
    System.out.println(temp);
    rs = stmt.executeQuery(temp);
    if (serializeFlag) {
    // serialize the resultSet
    try {
    java.io.FileOutputStream fileOutputStream = new
    java.io.FileOutputStream("testrs.tmp");
    java.io.ObjectOutputStream
    objectOutputStream = new java.io.
    ObjectOutputStream(fileOutputStream);
    objectOutputStream.writeObject(rs);
    objectOutputStream.flush();
    objectOutputStream.close();
    fileOutputStream.close();
    catch (Exception e) {
    System.out.println(e);
    e.printStackTrace();
    System.exit(1);
    rs.close(); //Let the CONCUR_UPDATABLE resultSet release its open files at once.
    rs = null;
    // deserialize the resultSet
    try {
    java.io.FileInputStream fileInputStream = new
    java.io.FileInputStream("testrs.tmp");
    java.io.ObjectInputStream objectInputStream = new
    java.io.ObjectInputStream(
    fileInputStream);
    rs = (ResultSet) objectInputStream.
    readObject();
    objectInputStream.close();
    fileInputStream.close();
    catch (Exception e) {
    System.out.println(e);
    e.printStackTrace();
    System.exit(1);
    ResultSetMetaData resultSetMetaData = rs.
    getMetaData();
    int iNumCols = resultSetMetaData.getColumnCount();
    for (int j = 1; j <= iNumCols; j++) {
    // System.out.println(resultSetMetaData.getColumnName(j));
    /* System.out.println(resultSetMetaData.getColumnType(j));
    System.out.println(resultSetMetaData.getColumnDisplaySize(j));
    System.out.println(resultSetMetaData.getPrecision(j));
    System.out.println(resultSetMetaData.getScale(j));
    System.out.println(resultSetMetaData.
    getColumnLabel(j)
    + " " +
    resultSetMetaData.getColumnTypeName(j));
    Object colval;
    rs.beforeFirst();
    long ncount = 0;
    while (rs.next()) {
    // System.out.print(rs.rowDeleted()+" ");
    ncount++;
    for (int j = 1; j <= iNumCols; j++) {
    colval = rs.getObject(j);
    System.out.print(colval + " ");
    System.out.println();
    rs.close(); //Let the resultSet release its open tables at once.
    rs = null;
    System.out.println(
    "The total row number of resultset: " + ncount);
    System.out.println();
    break;
    default:
    int updateCount = stmt.executeUpdate(temp);
    System.out.println(temp + " : " + updateCount);
    System.out.println();
    else if (statements[i] instanceof java.lang.Object[]) {
    int[] updateCounts;
    Object[] temp = (java.lang.Object[]) statements[i];
    try {
    for (int j = 0; j < temp.length; j++){
    System.out.println( temp[j]);
    stmt.addBatch( (java.lang.String) temp[j]);
    updateCounts = stmt.executeBatch();
    for (int j = 0; j < temp.length; j++)
    System.out.println((j+1)+":"+temp[j]);
    for (int j = 0; j < updateCounts.length; j++)
    System.out.println((j+1)+":" +updateCounts[j]);
    catch (java.sql.BatchUpdateException e) {
    updateCounts = e.getUpdateCounts();
    for (int j = 0; j < updateCounts.length; j++)
    System.out.println((j+1)+":"+updateCounts[j]);
    java.sql.SQLException sqle = e;
    do {
    System.out.println(sqle.getMessage());
    System.out.println("Error Code:" +
    sqle.getErrorCode());
    System.out.println("SQL State:" + sqle.getSQLState());
    sqle.printStackTrace();
    while ( (sqle = sqle.getNextException()) != null);
    catch (java.sql.SQLException sqle) {
    do {
    System.out.println(sqle.getMessage());
    System.out.println("Error Code:" +
    sqle.getErrorCode());
    System.out.println("SQL State:" + sqle.getSQLState());
    sqle.printStackTrace();
    while ( (sqle = sqle.getNextException()) != null);
    stmt.clearBatch();
    System.out.println();
    stmt.close();
    con.close();
    catch (SQLException sqle) {
    do {
    System.out.println(sqle.getMessage());
    System.out.println("Error Code:" + sqle.getErrorCode());
    System.out.println("SQL State:" + sqle.getSQLState());
    sqle.printStackTrace();
    while ( (sqle = sqle.getNextException()) != null);
    catch (Exception e) {
    System.out.println(e.getMessage());
    e.printStackTrace();

  • Problem Create System Object in the Portal for connecting CRM abap

    Hi, i creating system in the portal (JCX) for connecting system ABAP CRM (CRX), after create system try run test connection and show messages error:
    Test Connection with Connector
      Test Details:
    The test consists of the following steps:
    1. Retrieve the default alias of the system
    2. Check the connection to the backend application using the connector defined in this system object
      Results
    Retrieval of default alias successful
    Connection failed. Make sure that Single Sign-On is configured correctly
    In the logs the portal (NWA) show messages:
    Failed in creating the JCO Connection.
    The logs operation system (log Security_audit.log)
    Error> occured  >Thu Jun 23 11:34:41,278<RfcException: message: 'mshost' missing  Return code: RFC_INVALID_PARAMETER(19  Return code: RFC_INVALID_PARAMETER(19)    error group: 101 key: FC_ERROR_PROGRAM
         at com.sap.mw.rfc.api.RfcOptions.checkParameters(RfcOptions.java:438)
         at com.sap.mw.rfc.api.RfcApi.RfcOpen(RfcApi.java:688)
         at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:1079)
         at com.sap.mw.jco.JCO$Client.connect(JCO.java:3256)
    Plase help, any idea?

    message: 'mshost' missing Return
    During the System Object Creating in System Landscape, there is any entry as Message Server Host: CRM MS HOST
    and Message Server Port : sapmsSID and add this entry in etc/services --> bottom samsSID 36NN/tcp where NN is instance number.
    Try this and let me know.
    Thanks
    SM

  • Problem JMS-c api for message Acknowledgement

    Hi,
              I am working in a project that uses bea-JMS C api for
              Communictions.In my project i am using topic messaging for message reciving and sending..Here i am using durablesubscriber for receiving and client Acknowledgement to Acknowledge the message.
              In receiving function I store the message in another JmsMessage for Client-Acknowledgement.
              Here comes one problem that, while i Acknowledge on the receive function each and every message Acknowledge correctly.But while i Acknowledge that message from some other function it return -1 as , that it cannot Acknowledge.The other function is working in another thread.
              Wheather the seprate thread will make the problem for confirmation.

    Similar to JDBC connections, JMS sessions and their related child producers and consumers are not thread-safe (with the one exception of the session.close() method).
              For example, without added application level locking, its not safe to acknowledge a message from one thread while another thread receives or produces a message. This has special implications for asynchronous consumers, as once the asynchronous consumer is created, access to the session and objects is limited to code within the "onMessage()" and "onException()" callbacks.
              This behavior is detailed in the JMS specification.
              Tom

Maybe you are looking for

  • Storing and Linking from background

    Hi Experts, We have documents stored in OmniDocs Document Management systems. These documents need to be linked to SAP Business Objects (Sales Order etc.). Our development environment is Java/JCo. I had seen several posts with this scenario but need

  • Lumia 1020 shut down

    My lumia I got back in December before Christmas it worked great till the new update 8.1 came in I downloaded it three weeks ago an it worked fine till the next day. I usually watch a video or u tube on the phone when a go to bed so I did an woke up

  • Mobile Flash Design / Flash Lite Workshop in San Francisco

    Hello, I will be running the Flash Design for Mobile Devices workshops this Spring: in San Francisco: 2 days, Saturday, May 10th & 17th, 10am — 5pm All mobile Flash development will be covered while emphasis will be placed on Flash Lite development f

  • What is a Screen Name

    Your eprint registration asks for a "Screen Name".  What is a "Screen Name"?

  • OIM 11g Approvals - error - Please help

    I am getting the follwing error message when I follow instruction of the Custom Approval Process for Assign Role Scenario.Metalink article [1207077.1] Sample #8 Custom Approval Process for Assign Role Scenario link:https://support.oracle.com/CSP/ui/f