JDBC - one select using different servers...

hi
I have an AS400 table and SQL server table and need do a JOIN in a select, I did this:
SELECT GNORP.COORG, GNORG.ORDES, GNORP.CPAIS, GNPAI.PADES, GNORP.ORV01 FROM ((GNORP GNORP LEFT OUTER JOIN GNORG GNORG ON GNORP.COORG = GNORG.COORG) LEFT OUTER JOIN SERVIDOR_CBL.GN_3_0.dbo.GNPAI GNPAI ON GNORP.CPAIS = GNPAI.COPAI) ORDER BY GNORP.COORG, GNORP.CPAIS
in this case "SERVIDOR_CBL.GN_3_0.dbo.GNPAI" I said the serverName.BDName.Owner.TableName
But give me an error... Anyone know how can I do this??
Thanks in advance...

Of course, give me this error:
java.sql.SQLException: [SQL0114] La base de datos
relacional GN_3_0 no coincide con el servidor actual
You didn't provide the Java code that produced that error.
In this case, it's pretty straightforward to guess what that means in Enlgish, but in general, you'll have a better chance of getting help if you translate variable names, error messages, etc. to English, simply because that's the primary language spoken on these forums.
(There are of course people who speak other languages here, so if your English is really awful, you might be better off posting in your native lanaguage and hoping that somebody who speaks that language will answer. That doesn't seem to be the case with you though.)
I trying to execute the select by JDBC this way
because I read this in forums to do by this way, so I
can�t do it and I think here may be there are someone
which had this problem....
Did you read the posts about why this isn't a JDBC issue?
Have you explicitly set something up on one of those two servers to allow it to present the other one as if it were all part of one big "virtual" server?
If so, you might want to look it docs or user groups for that product, as your problem is probably related more to the details of that product than to JDBC.
If not, then you're wasting your time even trying to do this with JDBC.

Similar Messages

  • HT201371 In the next ios update, could we get the fingerprint function to unlock the phone and open up different apps in one swipe, using different fingers for different apps?

    In the next ios update, could we get the fingerprint function to unlock the phone and open up different apps in one swipe, using different fingers for different apps?

    This is primarily a user-to-user support forum. Following is a link for feedback/suggestions to Apple: http://www.apple.com/feedback/

  • How to host one application using different database connection on OAS?

    Hi,
    Jdeveloper - 10.1.3.4
    Application - ADF/BC
    Oracle Application Server - 10.1.3
    Above our the specifications for our application,
    We have two database schemas different for development and production therfore we have different databse connections for the two,
    we have one application which is in production and enhacements on the same application are done by the development team.
    Since we have two different schemas for developement and prduction we use different database connections for the application on development and production.
    The problem is our Model and View Controller project are same, only the database connection file changes that's why we are able to host only on application at a time on our OAS. This is probably because the URL generated by OAS for developemnt and prodyction application is same.
    Is there a way we can host two instances of the same application with two different database connections on the a single OAS.
    Thanks & Regards,
    Raksha

    Use different deployment profiles each with a different context root for your application?
    See: http://one-size-doesnt-fit-all.blogspot.com/2009/02/configuring-separate-dev-test-prod-urls.html

  • Same eMail address using different servers?

    I,m new with the iPhone and am a little confused with eMail. When I initially setup the iPhone it synced perfectly and setup my mail fine for wifi. However when on edge I couldn't send. So I followed the Apple mail tutorial and fixed it to work on edge but now it won't send on wifi. Is there a way to set up 2 outgoing severs so it can just pick the one that works depending on whether your on edge or wifi? Also, if I travel out of edge am I going to run into the same problem again?
    Thanks,
    MarkII
    Message was edited by: MarkII

    Who is your email account provider?
    You can send when connected to your Wi-Fi network at home or when connected to any Wi-Fi network but only not when connected with EDGE?
    If you can send when connected to your Wi-Fi network, this indicates your are using an email account provided by your internet service provider and if so, this is why you can send with the account using your ISP's SMTP server since you are connected to the internet via your ISP when using your Wi-Fi network at home.
    Do you know if your email account provider be it your ISP or other has an authenticated SMTP server?
    If so, this should allow for sending with this account regardless which Wi-Fi network and internet service provider you are connected to and when connected via EDGE.
    My primary account is my .Mac account which has an authenticated SMTP server. I connect to various Wi-Fi networks on a regular basis - my Wi-Fi network at home, the Wi-Fi network at my office which is with a different internet service provider and a number of free Wi-Fi networks that I access at various restaurants and a coffee shop that I frequent often and when using EDGE without any problems.
    Most ISPs block the use of SMTP servers that are outside of their network unless the SMTP server that is outside of their network is authenticated. These restrictions are in place as part of an overall effort to prevent spam emanating from the ISP's domain. When using an authenticated SMTP server on any network, it is easier to track down the user that is violating the provider's terms of use and most people don't use an authenticated SMTP server for any underhanded use.

  • One select using dynamic statements....

    Hello ,
    I am using for all entries. I want to combine all in one because currently I have to write two select statements based on condition for internal table not empty.
    IF IT_WIID[] IS NOT INITIAL.
    SELECT * FROM zcust into CORRESPONDING FIELDS OF TABLE i_t01_dup
             FOR ALL ENTRIES IN IT__WIID
             WHERE WI_ID = IT_WIID-WI_D
             AND RECNO IN TRECNO.
    ESLE.
    SELECT * FROM zcust into CORRESPONDING FIELDS OF TABLE i_t01_dup
             WHERE RECNO IN TRECNO.
    ENDIF.
    Regards,
    Jainam.
    Edited by: Jainam Shah on Mar 5, 2010 8:31 PM

    OK, I wrote a test program myself which proves my theory. I can't believe I am resorting to a p***ing contest instead of going home for the weekend.
    First count SE16 records on DD02L by specifying 'A' for AS4LOCAL field and note down the count.
    Then, try this program:
    REPORT y_sk_test .
    PARAMETERS: p_itabfl TYPE c AS CHECKBOX DEFAULT 'X',
                p_as4lcl TYPE dd02l-tabclass DEFAULT 'A'.
    DATA: t_dd02l TYPE STANDARD TABLE OF dd02l INITIAL SIZE 0 WITH HEADER LINE,
          t_itab  TYPE STANDARD TABLE OF dd02l INITIAL SIZE 0 WITH HEADER LINE.
    IF p_itabfl = 'X'.
      t_itab-tabname = 'T000'.
      APPEND t_itab.
    ENDIF.
    SELECT *
    INTO   TABLE t_dd02l
    FROM   dd02l
    FOR ALL ENTRIES IN t_itab
    WHERE  tabname = t_itab-tabname
      AND  as4local = p_as4lcl.
    DESCRIBE TABLE t_dd02l LINES sy-tfill.
    WRITE: / 'Number of rows selected:', sy-tfill.
    If you uncheck the checkbox, the count matches the SE16 count and I didn't have to use the IF ELSE block.

  • Run specific published app in one collection using different credentials

    Hi,
    I have a collection of published apps using rdweb with apps accessed by and run by a user in a group. I was wondering how i can allow one of the apps in the users rdweb to be launched using alternate credentials.
    I.e. i log on as userA. I get my list of allowed apps in RDWeb. Among those apps is an app, let's call it AppX. I want that app to be launched using credentials of a user account named userB.
    I know this is possible using citrix xenapp on server 2008 R2. Can it be done on native RDS 2012 R2 (no citrix)?
    This posting is provided "AS IS" with no warranties or guarantees and confers no rights

    You could create a custom rdp file as described here -> http://tech.jesseweeks.me/2013/07/configuring-custom-rdp-shortcuts-for.html
    Add or change the "prompt for credentials on client:i:1" line to the rdp file in step 7.
    distribute the rdp file to the user.  
    HTH,
    JB 

  • Select using different instances

    I hope this is not off topic here:
    How do I access different tables in different instances? I found anything in documentation.

    Did u create DB link???
    after creating dblinks it should be ok....
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Frank([email protected]):
    I hope this is not off topic here:
    How do I access different tables in different instances? I found anything in documentation.<HR></BLOCKQUOTE>
    null

  • Setting mail with Cox (or other services with different servers for pop and smtp)

    My Cox mail account uses different servers for pop and smtp (my personal ISP 1&1 does too).
    The mail applet on my Blackberry Curve 8330 with Verizon does not allow to define different servers for pop and smtp, and further, for SSL smtp mail, the port is fixed at 995 and cannot be changed, while Cox (and 1&1) want to use 587 or something like that.
    As a result, I can only receive mail with these services.
    I also have yahoo mail, which works fine, so I can send mail with it and it is not a life-and-death situation, but I would like to be able to just reply to email sent to my Cox address.
    I called Verizon and they said BlackBerry provides the mail access through their servers and the applet, so there is nothing they can do.
    Is there a way to set it such that I can not only receive but also send mail through either of these services?
    Thanks in advance,
    Didier
    PS: Other than that, the Curve on Verizon rocks!!! so much better down here than AT&T it's not even funny.

    OK, thank you for the input.
    The problem I have with this solution is like the one I have now using yahoo.
    There are 2 problems:
    1) mailing lists want the mail to come from the account that is subscribed, so if the cox account is subscribed, I can't contribute from the blackberry, and if the blackberry account is subscribed, I don't get my mail in Outlook. Neither is good for me.
    2) people who send me mail to the Cox account and get replies from me from the blackberry continue responding to the account that can send from the blackberry (not Cox), and from that point on I do not have that mail on the computer.
    The issue of having two copies is no big deal, I just delete the mail I do not need. I would rather have two than none.
    Really, Blackberry should modify the email service so that they directly support mail systems like those of Cox and 1&1. I am sure there are others. They should also allow the use of another port for SSL than 995. I have not seen anyone using 995 for SSL.
    Until recently, I had a BB provided by my employer, and we had a BES, and that worked really well. I would like to emulate as much of that functionality as possible without having to pay somebody another $10 or $20 a month just for the priviledge of having an account on a private BES server.
    Anyway, thanks for the exchange and suggestions.
    Didier

  • Connecting to different servers with Oracle Rdb

    Hi,
    I have downloaded the Odbc-Driver driver for Rdb and made successful connections to my database server. The name of the server is hardcoded with the odbc administrator. How is it possible to use different servers from asp-script ?
    regards
    Martin

    I have done this, but the Driver (Oracle Rdb Driver, Version 3.00.02.04) do not understand the "DB"-Parameter correctly. The databasename is transferred to the server without the attach-command. So I can only make the connect to a preattached service. This is a known problem by Oracle.

  • How to join THREE different tables into internal table using one select statement .

    How to join THREE different tables into internal table using one select statement .
    Hi experts,
    I would like to request your guidance in solving the problem of joining the data from three different database tables into one internal table
    Scenario:
    Database tables:
    SPFLI
    SFLIGHT
    SBOOK.
    Table Fields:
    SPFLI - CARRID CONNID COUNTRYFR CITYFRM COUNTRYTO CITYTO
    SFLIGHT - CARRID CONNID FLDATE SEATSMAX SEATSOCC SEATSMAX_C
    SEATSOCC_C SEATSMAX_F SEATSOCC_F
    SBOOK - CARRID CONNID CLASS
    MY INTERNAL TABLE IS IT_XX.
    Your help much appreciated.
    Thanks in advance.
    Pawan.

    Hi Pawan,
    please check below codes. hope it can help you.
    TYPES: BEGIN OF ty_xx,
            carrid     TYPE spfli-carrid   ,
            connid     TYPE spfli-connid   ,
            countryfr  TYPE spfli-countryfr,
            cityfrom   TYPE spfli-cityfrom  ,
            countryto  TYPE spfli-countryto,
            cityto     TYPE spfli-cityto   ,
            fldate     TYPE sflight-fldate ,
            seatsmax   TYPE sflight-seatsmax ,
            seatsocc   TYPE sflight-seatsocc ,
            seatsmax_b TYPE sflight-seatsmax_b,
            seatsocc_b TYPE sflight-seatsocc_b,
            seatsmax_f TYPE sflight-seatsmax_f,
            seatsocc_f TYPE sflight-seatsocc_f,
            class      TYPE sbook-class,
          END OF ty_xx,
          t_xx TYPE STANDARD TABLE OF ty_xx.
    DATA: it_xx TYPE t_xx.
    SELECT spfli~carrid
           spfli~connid
           spfli~countryfr
           spfli~cityfrom
           spfli~countryto
           spfli~cityto
           sflight~fldate
           sflight~seatsmax
           sflight~seatsocc
           sflight~seatsmax_b
           sflight~seatsocc_b
           sflight~seatsmax_f
           sflight~seatsocc_f
           sbook~class
      INTO TABLE it_xx
      FROM spfli INNER JOIN sflight
      ON spfli~carrid = sflight~carrid
      AND spfli~connid = sflight~connid
      INNER JOIN sbook
      ON spfli~carrid = sbook~carrid
      AND spfli~connid = sbook~connid.
    Thanks,
    Yawa

  • Using Teststand, need to know how to select a different active x servers in the labview adapter configurat​ion...

    Hi,
    When I open TestStand using a seq. file, I can see all the VI's that are called, but when I try to open them for editing, I see this message;
    "The labview adapter is currently configured to run tests in an environment that does not support editing VI's. In order to edit or create VI's, you must select a different labview Active X server in the lab view adapter environment"
    So, I clicked on all the options allowed to me in the "Module Adapter" (is this the same as the drop down menu (by default)"Labview Standard Prototype adapters") but I was still unable to open the VI�s for editing�
    Anyone know how or why?

    Hi,
    You will find the option under Configure | Adapters...then select the labview and press the configure button.
    So if you are not able to do this then it could be because your system doesn't have the LabVIEW development system or you do not have adminstrator rights (Teststand login) or it could be that your VI's have been saved without diagrams.
    What are you logged in as?
    Do you know if you have labVIEW?
    Regards
    Ray Farmer

  • How to use one ipod on another computer using different music

    Here's my situation: I want to use my son's ipod on my computer. I want to erase the tunes on his ipod and use my itune playlist (Not to worry-I've bought him a new nano...) with his ipod.
    I also want to be able to install the new nano and have the new nano read his existing itune list on his computer. Any advice?

    You just need to connect the iPod and if it is set for automatic update you will get a message that your iPod is linked to a different library and asking if you want to link to this one and replace all your songs etc. Pressing "Yes" will remove all the songs currently on the iPod and replace them with yours. Alternatively you can restore your iPod, this will erase the hard drive, reload the software and put it back to default settings. Once the restore is complete it should connect to iTunes and give you a prompt to rename the iPod and automatically update your library onto the fresh installation: Restoring iPod to Factory Settings
    For info: iPod 101
    The iPod offers three ways to transfer music from your computer. You can select one of the following update modes from the iPod Preferences menu in iTunes (Edit=>Preferences=>'iPod' tab):
    1) Automatically update all songs and playlists. This is the default mode, in which your entire music library, including playlists, is automatically synced to your iPod. If the music library on your computer exceeds the iPod storage capacity, you are prompted to select a different update method.
    2) Automatically update selected playlists only. With this option, iTunes automatically copies the playlists you have selected to the iPod when you connect it to the computer.
    3) Manually manage songs and playlists. You can also choose to transfer music to the iPod manually. This allows you to drag and drop individual songs and playlists from iTunes to the iPod.
    As for the new one, just connect it to your son's computer and it will walk you through the installation and update from his iTunes.

  • What are the entities that can be re-used in different servers, SI App, SI instance? And how?

    Greetings,
    What are the entities that can be re-used in different servers, SI App, SI instance? And how?
    e.g. can I use a deployed IQStreamable@app1  into app2?
    can I use a deployed observable/app1/siInstance1/Server1 into another query/app3/siInstance3/server2?
    On the presentation titled "04 – Installing, Deploying and Maintaining the SQL Server 2008 R2 StreamInsight Runtime Engine" with file name SQL10R2UPD05-DECK-04.pptx on ecn.channel9.msdn.com/o9/learn/SQL2008R2TrainingKit/Presentations/SQL10R2UPD05-DECK-04/SQL10R2UPD05-DECK-04.pptx
    It is mentioned one of the deployment option is "Deployment: Standalone Server"
    and it mention the following:
    "Use this option for the following scenarios:
    - Metadata objects need to be shared between applications
      - Event Types
      - Adapter Types
      - Query Templates
    - A data source registered with the server provides an event stream for another existing application"
    Could you please provide good example that explain the above statement?
    Cheers, Muhammad

    First, that statement - and those materials - refer to the "legacy" StreamInsight query/adapter model. They do not refer to how things work with the Reactive model introduced in version 2.1. Specifically, it talks about Dynamic Query Composition (DQC).
    You cannot use a deployed Observable in another instance of StreamInsight. You may be able to use them across applications in the same instance - off the top of my head, I'm not sure. I'm getting ready to get on a plane but will take a look at it later.
    Typically, however, applications act as containers (comparable to .NET AppDomains) so I don't think that you'd be able to do this easily. That said, the code and assemblies
    can be reused across multiple instances/applications. You would have separate instances of the classes involved but you would be able to reuse the query logic. That's a common use case.
    Can you be more specific about your use case and what you are trying to accomplish here? It's possible that there are alternative ways to do what you are trying to do.
    DevBiker (aka J Sawyer)
    Microsoft MVP - Sql Server (StreamInsight)
    If I answered your question, please mark as answer.
    If my post was helpful, please mark as helpful.

  • Using different color sets for button in one menu

    Hi!
    In DVDSP4 you can have three different sets of color mapping for your menu buttons.
    I'm using TIFFs as backgrounds and a simple black/white TIFF for overlay. I do want to use different colors for my buttons in the same menu. Can I do this with a black/white overlay, or do I have to use an overlay with (four different) colors? My wish is to be able to create one or two color sets and just assigning any of them to one or more buttons in one menu.
    G4 Dual, FCP5, DVDSP4, BitVice, Soundtrack Pro   Mac OS X (10.4.3)   2 GB RAM, SuperDrive

    One Overlay is fine
    What you need to do is set up the color sets in Inspector and assign them to the different buttons. Take a look for "Color Mapping Sets" in the PDF where it details how to do it (PG 219 in DVD SP 3, PG 238 DVD SP 4). Note that it works for selected and activated states for the buttons, not normal state.
    Also note, at least for me anyway, this has always been a buggy feature where sometimes it works properly and sometimes it does not. Never figured out why why either, but sometimes it does not flag the proper set to be used

  • My serial number for Logic Studio doesn't work. I used one from a different box and it worked. How can I get a new number?

    My serial number for Logic Studio doesn't work. I used one from a different box and it worked. How can I get a new number?

    http://support.apple.com/kb/TS2005
    http://support.apple.com/kb/HT1861
    https://ssl.apple.com/support/proapps/serialnumbers/

Maybe you are looking for

  • Ipod 4g os 4.3 crashes itunes (latest) at every sync

    every time i start to sync my ipod 4g 32gb with latest firmware and itunes it crashes (no error message, just hangs) have to kill itunes with the task manager, have no idea how to fix it. all on my ipod is perfectly legal, not tinkered in any way. La

  • How to count no of records returned from a query?

    Hello, I need to find out how many records displayed from a query without writing any other queries. i mean that. I have a query such as: query = "select * from users"; and the resultset for it is rs. and i need to display how many records fetched fr

  • ERROR LOADING bcp -w option generated data files

    Hi, I have to migrate data from SQL Server to Oracle. The unload_script is this: bcp "CLEPSIDRA.dbo.InversionesAceptadas" out "[CLEPSIDRA].[dbo].[InversionesAceptadas].dat" -q -c -t "<EOFD>" -r "<EORD>" -Usa -Pas -STIEPO When I execute the load scrip

  • [svn:fx-3.x] 5709: Accepted BugQuash patch SDK-20278 for bug SDK-15690.

    Revision: 5709 Author: [email protected] Date: 2009-03-28 13:57:51 -0700 (Sat, 28 Mar 2009) Log Message: Accepted BugQuash patch SDK-20278 for bug SDK-15690. This makes it possible to initialize ToggleButtonBar with a selectedIndex of -1 so that no b

  • My MacBook Pro mid 2009 recognizes cds but not rented DVDs.

    My MacBook Pro mid 2009 recognizes all disks except movies that I have rented from Netflix!! Why?!? Is this the DVD or my drive?