Joining tables : Smart Access Connection

Here's my scenario...
I have data from 1 system existing as standard HANA tables.
I have data from a second system, coming into HANA as a Smart Access Connection.
My task is to build queries against each system's tables to obtain relevant data from each system, and then a top level query to join system A data to system B data.
I'm from a SQL Server background, so my natural instinct is to NOT to join tables from linked servers directly to 'local' tables.
I would normally query the remote source, stage the required data into a local temporary table, and then join local-to-local.
However, I am unsure as to the best approach in this new world of HANA.
I did some reading here : SAP HANA Smart Data Access - Using the SAP HANA Database - SAP Library
"SAP HANA Smart Data Access optimizes execution of queries by moving processing as far as possible to the database connected via SAP HANA Smart Data Access. The SQL queries then work in SAP HANA on virtual tables. The SAP HANA Query Processor optimizes the queries and executes the relevant part in the connected database, returns the result to SAP HANA and completes the operation"
.. but this is still a bit vague to me, and I am not sure that it was intended to be read in relation to simply querying the remote connection in isolation, or in queries involving other sources as well.
Would anyone be able to clarify, or point me to better suited reading material ?
many thanks for any pointers on this ....

Not possible within SQL Dev.
It pains me to suggest this.. but the simplest thing to do is to use an external table in Access to link to Oracle and make your joins in Access. I used to do it all the time and access is fairly good at only grabbing what is necessary from oracle. The only other product that comes to mind that does this type of operation is crystal reports.

Similar Messages

  • How to connect table and access or oracle table?

    so many question at a time . yes but pls hlp me to learn how to create a table that 'll connect to some database.

    You need to use JDBC to access the database, a TableModel to contain the memory image of the data and a JTable to display it. You can derive your TableModel from the DefaultTableModel class. There is a tutorial on JTable use that builds a Stock Quote table that fetches its data from a database in
    http://developer.java.sun.com/developer/Books/swing2/chapter18-01.html

  • Am inserting only one table in a join table view

    am in Jdeveloper 11.1.2.1.0
    hi i have the following view am only able to insert in one table,which is SMS_PARTY_ADDRESS,am not able to insert to the othe join table which is property, my view is
    <?xml version="1.0" encoding="windows-1252" ?>
    <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
    <!---->
    <ViewObject
      xmlns="http://xmlns.oracle.com/bc4j"
      Name="smsProp_partyAddress"
      Version="11.1.2.60.81"
      BindingStyle="OracleName"
      CustomQuery="true"
      PageIterMode="Full"
      UseGlueCode="false">
      <DesignTime>
        <Attr Name="_isExpertMode" Value="true"/>
      </DesignTime>
      <Properties>
        <SchemaBasedProperties>
          <LABEL
            ResId="sms1100.smsProp_partyAddress_LABEL"/>
        </SchemaBasedProperties>
      </Properties>
      <ViewAccessor
        Name="Sub_lov1"
        ViewObjectName="sms1100.Sub_lov"
        RowLevelBinds="true"/>
      <ListBinding
        Name="LOV_Town"
        ListVOName="Sub_lov1"
        ListRangeSize="-1"
        ComboRowCountHint="10"
        NullValueFlag="none"
        MRUCount="0">
        <AttrArray Name="AttrNames">
          <Item Value="Town"/>
        </AttrArray>
        <AttrArray Name="DerivedAttrNames">
          <Item Value="Suburb"/>
          <Item Value="PostalCode"/>
          <Item Value="TowId"/>
        </AttrArray>
        <AttrArray Name="ListAttrNames">
          <Item Value="Town"/>
          <Item Value="Suburb"/>
          <Item Value="PostalCode"/>
          <Item Value="Id"/>
        </AttrArray>
        <AttrArray Name="ListDisplayAttrNames">
          <Item Value="Town"/>
          <Item Value="Suburb"/>
          <Item Value="PostalCode"/>
          <Item Value="DsdRegion"/>
          <Item Value="ServiceDeliveryArea"/>
        </AttrArray>
        <DisplayCriteria/>
      </ListBinding>
      <SQLQuery><![CDATA[SELECT SmsPartyAddress.ADDRESS_LINE1,
           SmsPartyAddress.ID,
           SmsPartyAddress.ADDRESS_LINE2,
           SmsPartyAddress.ADDRESS_LINE3,
           SmsPartyAddress.ADDRESS_LINE4,
           SmsPartyAddress.ADDRESS_TYPE_IND,
           SmsPartyAddress.PAR_ID,
           SmsPartyAddress.PROP_ID,
           SmsPartyAddress.START_DT,
           SmsProperties.TOW_ID,
           SmsProperties.ID AS ID1,
           SmsProperties.ADDRESS_LINE,
           SmsProperties.ERF_NO,
           SmsProperties.WAR_ID,
           SmsProperties.ZONE,
            DECODE(TOW1.TOWN,NULL,TOW.TOWN,TOW1.TOWN)TOWN ,
           TOW.TOWN SUBURB,
           POSTAL_CODE
    FROM SMS_PARTY_ADDRESS SmsPartyAddress, SMS_PROPERTIES SmsProperties,
    SMS_TOWNS TOW
        ,SMS_TOWNS TOW1
        ,SMS_POSTAL_CODES PCOD
    WHERE SmsPartyAddress.PROP_ID = SmsProperties.ID(+)
    and TOW.PCOD_ID = PCOD.ID
        AND TOW.TOW_ID = TOW1.ID (+)
        --and TOW1.ID = SMSPROPERTIES.TOW_ID(+)
        and TOW.ID = SMSPROPERTIES.TOW_ID
        and SmsPartyAddress.prop_id = SmsProperties.id
         CONNECT BY PRIOR TOW.TOW_ID = TOW.ID]]></SQLQuery>
      <EntityUsage
        Name="SmsPartyAddress"
        Entity="sms1100.SmsPartyAddress"/>
      <EntityUsage
        Name="SmsProperties"
        Entity="sms1100.SmsProperties"
        Association="sms1100.proppaddAssociation"
        AssociationEnd="sms1100.proppaddAssociation.SmsProperties"
        SourceUsage="sms1100.smsProp_partyAddress.SmsPartyAddress"
        ReadOnly="true"
        Reference="true"
        DeleteParticipant="false"
        JoinType="LEFT OUTER JOIN">
        <DesignTime>
          <AttrArray Name="_srcAttributes">
            <Item Value="sms1100.SmsPartyAddress.PropId"/>
          </AttrArray>
          <AttrArray Name="_dstAttributes">
            <Item Value="sms1100.SmsProperties.Id"/>
          </AttrArray>
        </DesignTime>
      </EntityUsage>
      <ViewAttribute
        Name="AddressLine1"
        PrecisionRule="true"
        EntityAttrName="AddressLine1"
        EntityUsage="SmsPartyAddress"
        AliasName="ADDRESS_LINE1"/>
      <ViewAttribute
        Name="Id"
        IsUpdateable="while_insert"
        PrecisionRule="true"
        EntityAttrName="Id"
        EntityUsage="SmsPartyAddress"
        AliasName="ID"/>
      <ViewAttribute
        Name="AddressLine2"
        PrecisionRule="true"
        EntityAttrName="AddressLine2"
        EntityUsage="SmsPartyAddress"
        AliasName="ADDRESS_LINE2"/>
      <ViewAttribute
        Name="AddressLine3"
        PrecisionRule="true"
        EntityAttrName="AddressLine3"
        EntityUsage="SmsPartyAddress"
        AliasName="ADDRESS_LINE3"/>
      <ViewAttribute
        Name="AddressLine4"
        PrecisionRule="true"
        EntityAttrName="AddressLine4"
        EntityUsage="SmsPartyAddress"
        AliasName="ADDRESS_LINE4"/>
      <ViewAttribute
        Name="AddressTypeInd"
        IsNotNull="true"
        PrecisionRule="true"
        EntityAttrName="AddressTypeInd"
        EntityUsage="SmsPartyAddress"
        AliasName="ADDRESS_TYPE_IND"/>
      <ViewAttribute
        Name="ParId"
        PrecisionRule="true"
        EntityAttrName="ParId"
        EntityUsage="SmsPartyAddress"
        AliasName="PAR_ID"/>
      <ViewAttribute
        Name="PropId"
        PrecisionRule="true"
        EntityAttrName="PropId"
        EntityUsage="SmsPartyAddress"
        AliasName="PROP_ID"/>
      <ViewAttribute
        Name="StartDt"
        IsNotNull="true"
        PrecisionRule="true"
        EntityAttrName="StartDt"
        EntityUsage="SmsPartyAddress"
        AliasName="START_DT"/>
      <ViewAttribute
        Name="TowId"
        PrecisionRule="true"
        EntityAttrName="TowId"
        IsUpdateable="true"
        EntityUsage="SmsProperties"
        AliasName="TOW_ID"
        IsPersistent="true"/>
      <ViewAttribute
        Name="Id1"
        IsUpdateable="while_insert"
        PrecisionRule="true"
        EntityAttrName="Id"
        EntityUsage="SmsProperties"
        AliasName="ID1"/>
      <ViewAttribute
        Name="AddressLine"
        IsNotNull="true"
        PrecisionRule="true"
        EntityAttrName="AddressLine"
        EntityUsage="SmsProperties"
        AliasName="ADDRESS_LINE"/>
      <ViewAttribute
        Name="ErfNo"
        IsUnique="true"
        IsNotNull="true"
        PrecisionRule="true"
        EntityAttrName="ErfNo"
        EntityUsage="SmsProperties"
        AliasName="ERF_NO"/>
      <ViewAttribute
        Name="WarId"
        PrecisionRule="true"
        EntityAttrName="WarId"
        EntityUsage="SmsProperties"
        AliasName="WAR_ID"/>
      <ViewAttribute
        Name="Zone"
        IsNotNull="true"
        PrecisionRule="true"
        EntityAttrName="Zone"
        EntityUsage="SmsProperties"
        AliasName="ZONE"/>
      <ViewAttribute
        Name="Town"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="60"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="TOWN"
        Expression="TOWN"
        SQLType="VARCHAR"
        LOVName="LOV_Town">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="60"/>
        </DesignTime>
        <Properties>
          <SchemaBasedProperties>
            <CONTROLTYPE
              Value="combo_lov"/>
          </SchemaBasedProperties>
        </Properties>
      </ViewAttribute>
      <ViewAttribute
        Name="Suburb"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="60"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="SUBURB"
        Expression="SUBURB"
        SQLType="VARCHAR">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="60"/>
        </DesignTime>
      </ViewAttribute>
      <ViewAttribute
        Name="PostalCode"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="4"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="POSTAL_CODE"
        Expression="POSTAL_CODE"
        SQLType="VARCHAR">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="4"/>
        </DesignTime>
      </ViewAttribute>
      <AttrArray Name="KeyAttributes">
        <Item Value="Id"/>
      </AttrArray>
      <ResourceBundle>
        <PropertiesBundle
          PropertiesFile="SmsFrontService.SmsFrontServiceBundle"/>
      </ResourceBundle>
    </ViewObject>i what to insert in both table partyAddress and propertyaddress,the property table the Updateable="never" and is disable,am not able to set is to always

    use this method but the column i still disable
    <EntityUsage
    Name="SmsProperties"
    Entity="sms1100.SmsProperties"
    Association="sms1100.proppaddAssociation"
    AssociationEnd="sms1100.proppaddAssociation.SmsProperties"
    SourceUsage="sms1100.smsProp_partyAddress.SmsPartyAddress"
    Reference="true"
    ReadOnly="false"
    DeleteParticipant="false"
    JoinType="LEFT OUTER JOIN">
    public class smsProp_partyAddressImpl extends ViewObjectImpl {
        protected void create(AttributeList attributeList) {
        // The view row will already have created "blank" entity instances
          SmsPropertiesImpl newProperty = new SmsPropertiesImpl();
        SmsPartyAddressImpl newPostal = new SmsPartyAddressImpl();
        //SmsPropertiesViewImpl newProperty = getSmsPropertiesView2();
        //SmsPartyAddressViewImpl  newPostal = getSmsPartyAddressView1();
        //SmsPropertiesImpl newProperty = getSmsPropertiesView2();
        //SmsPartyAddressImpl  newPostal = getSmsPartyAddressView1();
        try {
        // Let postal Address "blank" entity instance to do programmatic defaulting
        newProperty.create(attributeList);
        // Let postalAddress "blank" entity instance to do programmatic
        // defaulting passing in new SmsPropertiesImpl instance so its attributes
        // are available to the SmsPartyAddressImpl's create method.
        newPostal.create(newProperty);
        catch (JboException ex) {
        newProperty.revert();
        newPostal.revert();
        throw ex;
        catch (Exception otherEx) {
        newProperty.revert();
        newPostal.revert();
        throw new RowCreateException(true /* EO Row? */,
        "SmsProperties" /* EO Name */,
        otherEx /* Details */);
    }but the updatable="Always"
    the view is
    <?xml version="1.0" encoding="windows-1252" ?>
    <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
    <!---->
    <ViewObject
      xmlns="http://xmlns.oracle.com/bc4j"
      Name="smsProp_partyAddress"
      Version="11.1.2.60.81"
      BindingStyle="OracleName"
      CustomQuery="true"
      PageIterMode="Full"
      UseGlueCode="false"
      RowClass="sms1100.smsProp_partyAddressRowImpl"
      ComponentClass="sms1100.smsProp_partyAddressImpl"
      RowInterface="sms1100.common.smsProp_partyAddressRow"
      ClientRowProxyName="sms1100.client.smsProp_partyAddressRowClient">
      <DesignTime>
        <Attr Name="_isExpertMode" Value="true"/>
        <Attr Name="_codeGenFlag2" Value="Access|Coll|Prog|VarAccess"/>
        <Attr Name="_isCodegen" Value="true"/>
      </DesignTime>
      <Properties>
        <SchemaBasedProperties>
          <LABEL
            ResId="sms1100.smsProp_partyAddress_LABEL"/>
        </SchemaBasedProperties>
      </Properties>
      <ViewAccessor
        Name="Sub_lov1"
        ViewObjectName="sms1100.Sub_lov"
        RowLevelBinds="true"/>
      <ListBinding
        Name="LOV_Town"
        ListVOName="Sub_lov1"
        ListRangeSize="-1"
        ComboRowCountHint="10"
        NullValueFlag="none"
        MRUCount="0">
        <AttrArray Name="AttrNames">
          <Item Value="Town"/>
        </AttrArray>
        <AttrArray Name="DerivedAttrNames">
          <Item Value="Suburb"/>
          <Item Value="PostalCode"/>
          <Item Value="TowId"/>
        </AttrArray>
        <AttrArray Name="ListAttrNames">
          <Item Value="Town"/>
          <Item Value="Suburb"/>
          <Item Value="PostalCode"/>
          <Item Value="Id"/>
        </AttrArray>
        <AttrArray Name="ListDisplayAttrNames">
          <Item Value="Town"/>
          <Item Value="Suburb"/>
          <Item Value="PostalCode"/>
          <Item Value="DsdRegion"/>
          <Item Value="ServiceDeliveryArea"/>
        </AttrArray>
        <DisplayCriteria/>
      </ListBinding>
      <SQLQuery><![CDATA[SELECT SmsPartyAddress.ADDRESS_LINE1,
           SmsPartyAddress.ID,
           SmsPartyAddress.ADDRESS_LINE2,
           SmsPartyAddress.ADDRESS_LINE3,
           SmsPartyAddress.ADDRESS_LINE4,
           SmsPartyAddress.ADDRESS_TYPE_IND,
           SmsPartyAddress.PAR_ID,
           SmsPartyAddress.PROP_ID,
           SmsPartyAddress.START_DT,
           SmsProperties.TOW_ID,
           SmsProperties.ID AS ID1,
           SmsProperties.ADDRESS_LINE,
           SmsProperties.ERF_NO,
           SmsProperties.WAR_ID,
           SmsProperties.ZONE,
            DECODE(TOW1.TOWN,NULL,TOW.TOWN,TOW1.TOWN)TOWN ,
           TOW.TOWN SUBURB,
           POSTAL_CODE
    FROM SMS_PARTY_ADDRESS SmsPartyAddress, SMS_PROPERTIES SmsProperties,
    SMS_TOWNS TOW
        ,SMS_TOWNS TOW1
        ,SMS_POSTAL_CODES PCOD
    WHERE SmsPartyAddress.PROP_ID = SmsProperties.ID(+)
    and TOW.PCOD_ID = PCOD.ID
        AND TOW.TOW_ID = TOW1.ID (+)
        --and TOW1.ID = SMSPROPERTIES.TOW_ID(+)
        and TOW.ID = SMSPROPERTIES.TOW_ID
        and SmsPartyAddress.prop_id = SmsProperties.id
         CONNECT BY PRIOR TOW.TOW_ID = TOW.ID]]></SQLQuery>
      <EntityUsage
        Name="SmsPartyAddress"
        Entity="sms1100.SmsPartyAddress"/>
      <EntityUsage
        Name="SmsProperties"
        Entity="sms1100.SmsProperties"
        Association="sms1100.proppaddAssociation"
        AssociationEnd="sms1100.proppaddAssociation.SmsProperties"
        SourceUsage="sms1100.smsProp_partyAddress.SmsPartyAddress"
        Reference="true"
        ReadOnly="false"
        DeleteParticipant="false"
        JoinType="LEFT OUTER JOIN">
        <DesignTime>
          <AttrArray Name="_srcAttributes">
            <Item Value="sms1100.SmsPartyAddress.PropId"/>
          </AttrArray>
          <AttrArray Name="_dstAttributes">
            <Item Value="sms1100.SmsProperties.Id"/>
          </AttrArray>
        </DesignTime>
      </EntityUsage>
      <ViewAttribute
        Name="AddressLine1"
        PrecisionRule="true"
        EntityAttrName="AddressLine1"
        EntityUsage="SmsPartyAddress"
        AliasName="ADDRESS_LINE1"/>
      <ViewAttribute
        Name="Id"
        IsUpdateable="while_insert"
        PrecisionRule="true"
        EntityAttrName="Id"
        EntityUsage="SmsPartyAddress"
        AliasName="ID"/>
      <ViewAttribute
        Name="AddressLine2"
        PrecisionRule="true"
        EntityAttrName="AddressLine2"
        EntityUsage="SmsPartyAddress"
        AliasName="ADDRESS_LINE2"/>
      <ViewAttribute
        Name="AddressLine3"
        PrecisionRule="true"
        EntityAttrName="AddressLine3"
        EntityUsage="SmsPartyAddress"
        AliasName="ADDRESS_LINE3"/>
      <ViewAttribute
        Name="AddressLine4"
        PrecisionRule="true"
        EntityAttrName="AddressLine4"
        EntityUsage="SmsPartyAddress"
        AliasName="ADDRESS_LINE4"/>
      <ViewAttribute
        Name="AddressTypeInd"
        IsNotNull="true"
        PrecisionRule="true"
        EntityAttrName="AddressTypeInd"
        EntityUsage="SmsPartyAddress"
        AliasName="ADDRESS_TYPE_IND"/>
      <ViewAttribute
        Name="ParId"
        PrecisionRule="true"
        EntityAttrName="ParId"
        EntityUsage="SmsPartyAddress"
        AliasName="PAR_ID"/>
      <ViewAttribute
        Name="PropId"
        PrecisionRule="true"
        EntityAttrName="PropId"
        EntityUsage="SmsPartyAddress"
        AliasName="PROP_ID"/>
      <ViewAttribute
        Name="StartDt"
        IsNotNull="true"
        PrecisionRule="true"
        EntityAttrName="StartDt"
        EntityUsage="SmsPartyAddress"
        AliasName="START_DT"/>
      <ViewAttribute
        Name="TowId"
        PrecisionRule="true"
        EntityAttrName="TowId"
        EntityUsage="SmsProperties"
        AliasName="TOW_ID"/>
      <ViewAttribute
        Name="Id1"
        IsUpdateable="while_insert"
        PrecisionRule="true"
        EntityAttrName="Id"
        EntityUsage="SmsProperties"
        AliasName="ID1"/>
      <ViewAttribute
        Name="AddressLine"
        IsNotNull="true"
        PrecisionRule="true"
        EntityAttrName="AddressLine"
        EntityUsage="SmsProperties"
        AliasName="ADDRESS_LINE"/>
      <ViewAttribute
        Name="ErfNo"
        IsUnique="true"
        IsNotNull="true"
        PrecisionRule="true"
        EntityAttrName="ErfNo"
        EntityUsage="SmsProperties"
        AliasName="ERF_NO"/>
      <ViewAttribute
        Name="WarId"
        PrecisionRule="true"
        EntityAttrName="WarId"
        EntityUsage="SmsProperties"
        AliasName="WAR_ID"/>
      <ViewAttribute
        Name="Zone"
        IsNotNull="true"
        PrecisionRule="true"
        EntityAttrName="Zone"
        EntityUsage="SmsProperties"
        AliasName="ZONE"/>
      <ViewAttribute
        Name="Town"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="60"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="TOWN"
        Expression="TOWN"
        SQLType="VARCHAR"
        LOVName="LOV_Town">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="60"/>
        </DesignTime>
        <Properties>
          <SchemaBasedProperties>
            <CONTROLTYPE
              Value="combo_lov"/>
          </SchemaBasedProperties>
        </Properties>
      </ViewAttribute>
      <ViewAttribute
        Name="Suburb"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="60"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="SUBURB"
        Expression="SUBURB"
        SQLType="VARCHAR">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="60"/>
        </DesignTime>
      </ViewAttribute>
      <ViewAttribute
        Name="PostalCode"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="4"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="POSTAL_CODE"
        Expression="POSTAL_CODE"
        SQLType="VARCHAR">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="4"/>
        </DesignTime>
      </ViewAttribute>
      <AttrArray Name="KeyAttributes">
        <Item Value="Id"/>
      </AttrArray>
      <ResourceBundle>
        <PropertiesBundle
          PropertiesFile="SmsFrontService.SmsFrontServiceBundle"/>
      </ResourceBundle>
    </ViewObject>am also geting this error in my view after i set readOnly="false"
    Remove updateable flag from entity usage or mark attributes as key attributes for this entity usage
    i follow your link

  • Creation of RFC destination for SAP-Access Connectivity

    Hi,
           I want to create a RFC destination for SAP-Access connectivity.
    Can I get some help regarding it's connection type,activation type and gateway options required for the same.
    Regrads,
    Anthony D'souza

    Hi
    Please see the following:
    1. Create an entry in Trxn DBCA for SQL Server in SAP, you are creating a database connection for the SQL server in SAP.
    2. You use this connection, and write Native SQL stmnts...between EXECSQL...ENDEXEC to fetch the data..and then normal ABAP statements to put that data into your ztable.
    TABLE DBCON Entry can be like this...depends on your External database..
    CON_NAME          Raj                      Logical name for connection
    DBMS                   MSS                   Microsoft SQL Server
    USER_NAME        <User name>       For SQL Server
    PASSWORD         <password>         " "
    CON_ENV             MSSQL_SERVER=<server> MSSQL_DBNAME=<database name>
    DB_RECO                 Availability type for an open database connect
    FUNCTION z_houston_connect.
    ""Local interface:
    EXEC SQL.
    CONNECT TO 'RAJ' AS 'V'
    ENDEXEC.
    EXEC SQL.
    SET CONNECTION 'V'
    ENDEXEC.
    *- Get the data from MS-SQL Server
    EXEC SQL.
    open C1 for
    select
    l.loc_id,
    l.loc_name,
    a.acc_id,
    a.acc_name,
    d.person
    from ho_loc_mast as l
    inner join snd_acc_mast as a on l.loc_id = a.loc_id
    inner join snd_acc_addr as d on a.loc_id = d.loc_id and
    a.acc_id = d.acc_id
    where l.loc_id = '001'
    ENDEXEC.
    DO.
    EXEC SQL.
    FETCH NEXT C1 into :wa-c_locid, :wa-c_locname, :wa-c_acc_id, :wa-c_acc_name, :wa-c_person
    ENDEXEC.
    IF sy-subrc = 0.
    PERFORM loop_output.
    ELSE.
    EXIT.
    ENDIF.
    ENDDO.
    EXEC SQL.
    CLOSE C1
    ENDEXEC.
    ENDFUNCTION.
    Regards,
    Raj

  • An Error Occurred while trying to join "my wireless access point"

    Hi,
    I've been using wireless access for a year and never had a problem connecting.
    But starting yesterday I get a +*An Error Occurred while trying to join "my wireless access point", Please try again.+* Message.
    I have 2 Mac's and have no problem connecting with the other one. It’s just the IMac.
    I tried everything including resetting router, changing password, adding a $ to the password, accessing without password, deleting the whole air port and create a new one, but still getting the same message.
    I might need to add, while I was working with the IMac I didn’t use wireless for a few hours, but when I got back to my browser I noticed that I was connected to a different wireless service. (FONFREEINTERNET if it matters) I have no idea why, since I didn’t change it.
    Anyways, I tried to switch back to my access point, but it wouldn’t let me. It’ll just give me the +*An Error Occurred while trying to join "my wireless access point", Please try again.+* Message.
    Funny is when I use the FONFREEINTERNET access point the internet seems to work fine.
    I could look up Google without a problem, but when I tried to connect to Facebook for example it won’t let me. Instead a FONFREEINTERNET page will pop up with some options on how to pay! (by minute/or day/or week…)
    I get the strange feeling that they planted some kind of bug/virus!!!
    I don’t know what else to do.
    Anyone knows that problem? What can I do?
    Any help is greatly appreciated!
    I researched on FONFREEINTERNET, there’s a spot close to my house/guess that’s the one I used…
    http://maps.fon.com/ ZIP CODE 904-0113 and you’ll see a coffee pod, which is about 2 minutes walk from my house.

    Hello Tesserax,
    I get the same error message again...
    I tried the 3 suggested steps again, but unfortunately it did not work.
    After a Restart, Sleep or just the awaking from Screensaver mode I’m disconnected from my wireless Network anymore.
    Even if the Computer was asleep for just a second!
    I am able to fix the problem temporarily with Network Preferences → Assist me → Diagnostics
    Choose Airport → Choose network → Enter Password (Even if I check safe password it’ll ask me every time) → and than usually all lights on the left menu switch from red to green and I get the popup message “A Network Change has been detected. Your Internet seems to work fine.” (similar - I’m at work and don’t remember exactly)
    And it works fine…until the screensaver comes on or it sleeps again
    I have the Problem with my IMac and Mini but the IMac at least remembers my password…
    Any Ideas
    I’m connected through a Buffalo WZR2-G300N wireless router

  • Unable to retrieve tables from this connection

    I have been using Dreamweaver for over 5 years. I have been
    using an Access database and ASP the entire time. I am using a
    Windows 2000 server for the database and web site. I have used
    every verson of Dreamweaver since Ultra Dev. When I bought verson 8
    and upgraded to 8.0.2, I began getting the following message when I
    try to edit or create a recordset.
    "Unable to retrieve tables from this connection, click on the
    'Define...' button to test this connection."
    I don't know what to do. Is this a widespread problem? Is it
    a Windows problem? Is it a Dreamweaver problem? Is it a network
    problem?
    Please HELP!

    Did you ever get an answer for this ?
    I am having the same issue but using XP professional.

  • Joining tables in different databases

    Hi,
    I know we can access multiple databases like Oracle, Informix etc. through a single toplink session using session broker. Also in toplink documentation it says there is a work around for joining tables that exists in different databases i.e. joining an Oracle table with an Informix Table. If anyone had tried this or if it is possible, please let me know how to do this.
    Thanks..

    If I could know, how to perform or some sample code, for the following two steps it would be great.
    Write descriptor ammendment code to bind together that go from (A) to (B) and (B) to (A).
    Be sure to map the ammendment descriptors in the mapping workbench.Or please point me to the right toplink documentation or examples.
    Thanks a lot for your help.

  • Select distinct problem with muliple join tables, help needed

    Hi,
    I have two main tables. Each has its of sub joined tables.
    guest_id_for_reservation connects two major tables. This has
    to be that way
    because my guest may change the room status from single to
    double (and the
    similar exceptional requests).
    guests reservation
    guest_id_for_reservation
    countrytable hoteltable
    delegationtable roomtype
    I form a query. I want to select distinct those results. But
    it does not
    work.
    If I do not include any table related to reservation table
    and its sub
    joined tables (disregarding guest_id_for_reservation), it
    works.
    Is there a specific syntax for select distinct of this type
    or any
    workaround.?
    Thank you
    Hakan

    Hi I'm still battling with this - have connected the AX to my Imac via ethernet and it shows up fine in Airport Utility. Status light is green and it says its set up to connect to my existing wireless network using wireless connection. Security in Network Preferences is the same for both: WPA2 Personal.
    So I don't think there's a problem with the AX, and my current wireless network (BT Home Hub) is working fine.
    And when I restore factory settings Airport Utility can see the AX before updating settings so the wireless side of AX must work too.
    I'm figuring it must be something about the settings that mean AU can't see it anymore. But I can't work out what, since security is the same.
    Any ideas would be great!

  • Why data change in linked table in Access - link from Oracle DB

    Can someone please help me to solve this situation? I try to find out why data is changed from Oracle to Access. I must come back to this thread because lot of data in my Oracle database is defined as NUMBER(22), and I am using Access heavily.
    Here is the problem:
    In Access, I created ODBC connection (System DSN) to Oracle 9.2 database by using Oracle driver (NOT Microsoft ODBC for Oracle). Then I linked tables from Access with the Oracle table. What happens is that the number in Access linked table is displayed as a scientific number. Is there a way that I can preserve whatever I have in Oracle database?
    For example:
    Comp_ID in Oralce is defined as NUMBER(22) = 40000000000324003; In Access it looks like this 4.0000000000324E+16.
    What I have in my system:
    1- Oracle 9.2 client
    2- Oracle driver
    3- Access 2003
    4- Jet - SP 8

    Can someone please help me to solve this situation? I try to find out why data is changed from Oracle to Access. I must come back to this thread because lot of data in my Oracle database is defined as NUMBER(22), and I am using Access heavily.
    Here is the problem:
    In Access, I created ODBC connection (System DSN) to Oracle 9.2 database by using Oracle driver (NOT Microsoft ODBC for Oracle). Then I linked tables from Access with the Oracle table. What happens is that the number in Access linked table is displayed as a scientific number. Is there a way that I can preserve whatever I have in Oracle database?
    For example:
    Comp_ID in Oralce is defined as NUMBER(22) = 40000000000324003; In Access it looks like this 4.0000000000324E+16.
    What I have in my system:
    1- Oracle 9.2 client
    2- Oracle driver
    3- Access 2003
    4- Jet - SP 8

  • 10g bug? Can't see tables in Access-Dababase

    I successfully create a database connection to an Access-Database,but i can't find these tables that i have defined in Access.
    thanks.

    This appears to be a bug in 10g. We are not correctly handling tables in Access. Thanks for alerting us to the problem.
    - John McGinnis
    Oracle JDeveloper Team

  • Right order of joining tables

    Hi everybody,
    I have read the SQL Tuning section of Performance Tuning Oracle Book of Oracle 10g. v.2.
    In 11.5.4. paragraph titled "Controlling the Access Path and Join Order with Hints" , in the second note there is a small paragraph about the right join of the tables....
    In whichever query i try ,i've noticed that altering the joining order of the tables the sql statistics (consistent gets , sorts(memory/disk)) are the same regardless of the join order....
    Can you please give me an example or a source in which the modification of the join order of the tables in a sql query produce different results ...in statistics????
    Thanks , a lot
    Simon

    Duplicate post. Don't answer this thread please Right order of joining tables.
    Cheers, APC

  • Joining tables rom HR master to documents DB?

    SAP Gurus, I seek your wisdom
    I'm trying to join tables in quickviewer that show the personal information of who created the doc.(particularly the names) in my purchasing doc. reports.
    Is there a way to get data element ERNAM to link to USRID? Or some other method. Please help.

    Hi David,
    When saving documents using ArchiveLink, the actual document is saved in the Archive server and a reference link entry is saved in the link tables within SAP Basis. The link tables used are TOA01, TOA02, TOA03 or TOAHR. When saving the documents, a unique id is generated for each document, before storing the document in the archive system. This unique id is also stored in the link tables as DOCUMENT ID.
    Using ArchiveLink, you can store any kind of document like JPG, FAX, DOC, PDF...etc. Each document class would have its own size, for eg., the same file stored as JPG file would be probably of the size 150KB, but the same file when stored as BMP file would probably be of the size 2500 KB.
    ArchiveLink supports various kinds of connections to the Archive Server. You can use HTTP or RFC connection to the Archive server. Alternately, you can also store the documents in an R/3 Database repository.
    SAP provides SAP CONTENT SERVER which uses  HTTP type of connection. Depending on your business requirement, you can determine, what kind of documents you would mostly need to save. Once this has been determined, you can calculate how many documents you are planning to store approximately in a year. This would help you calculate the size of the server that you should be taking.
    For searching documents, you can use some transactions like OAAD, OADR..etc. However, please note that ArchiveLink does not support text searches within the stored documents.
    Please let me know if you should need any further information on this.
    Best Regards,
    Sindhu Sreedharan.

  • Conditions on Outer Joined Tables

    I'm trying to understand how Discoverer handles conditions created on outer joined tables. We're using Discoverer Plus 11.1.1.3.
    I have a query using two tables connected by an outer join. While I want all records back from the first table, I don't want all records back from the outer joined table. So, if I typed the SQL directly in a SQL Editor, I would put the '(+)' in each condition. However, I find that in Discoverer, sometimes it does this, and sometimes it doesn't. If it does not put the '(+)' on all conditions as well as the join, that essentially nullifies the outer join and makes it an standard join.
    For example, I expanded an item on the outer joined table in the Items dialog to see its list of values, and selected one, to add the column to the worksheet and create a condition. No (+). But when I deleted this and created the condition using the Condition dialog, I got a (+). Then I created another condition using the condition dialog. I used the IN operator and pasted in a list (this item had no item class to choose from)--no (+).
    When I tried manually adding (+) after the item name in the condition dialog, it put quotes around the whole thing and treated it as a string.
    I can find nothing in the documentation that discusses this. Is is possible to control whether or not it uses the (+)?
    Thank you, Scott Newman

    Dear Michael,
    Last night I had a call from user who was experiencing a very strange behaviour of her Discoverer workbook.
    I replicated the issue on my machine and could not believe my eyes. A condition on an item was being ignored. I then analysed the workbook and realised it was due to a condition on an item from an outer-joined folder. I did not have the strength after a long day to deal with it and was looking forward to having some fun the next day. Firstly, I tried few tricks such as NVL, LENGTH functions in a test query in Toad. I hate to give up but I did and searched threads on this forum and opened few. The very first thread I read was this one and I laughed when I read your advice. Only until the moment I tested it in the troubled workbook. It worked like a charm. I take my hat off to you Michael. I have rarely experienced such a satisfaction when solving a tricky problem during my 9-year-long Oracle Discoverer journey. This goes straight to my little text file with interesting problems and solutions.
    Thank you very much. I owe you a beer or two.
    It is great to have an expert like you, always ready to share his knowledge with his colleagues.
    P.S.
    My apologies for this massive post, I could not resist expressing my joy and gratitude.
    Jozef Hlavaty

  • Joining tables across databases in OBIEE Physical Layer

    I was facing this problem of joining tables across databases in Physical layer of OBIEE admin tool.
    I had a requirement to combine two tables from 2 different databases A and B respectively. I had created one database object (OBIEE Object) in the physical layer and I had created two connection pools under that pointing to the required databases. I was able to view the data (right click on the table object --> popup menu option "View Data" ) though I had to go through the "Select connection Pool" window and select the required connection pool. I was able to join the tables and was able to complete the star schema in BMM and bring them up to the presentation layer. Conistency check was also successful. Everything went fine so far.
    But when I started building the report, I started getting error whenever I chose the table which was supposed to be queried by using the second connection pool. The error message was something like "table or view does not exist at OCI call OCIStmtExecute". I assume that this was happening because the systm was not able to understand which connection pool to choose (because there were two pools defined under one database object) and by default the server was choosing the first one. If anybody is having a different opinion or definite information about this, kindly update with your reply.
    I could resolve this problem after creating a separate database object with a separate connection pool defined under it, which points to the second database. Imported the required table under this database object. (Infact it was reverse. When I re-imported the table, OBIEE Admin tool, by default created its own database object and the connection pool separately for the imported table).
    Once this was done then I went ahead as usual by joining the tables across these two different database objects and modelling was already done (ofcourse with a little more tweaking since the mapping had to be redone between BMM and Physical layers). Now I could build the report in the reporting layer without encountering any error.
    Appreciate and welcome any further additions/updations/corrections regarding this issue(?).
    -MMishra.
    Edited by: user13483341 on Nov 29, 2011 8:20 AM
    Edited by: user13483341 on Nov 29, 2011 8:20 AM
    Edited by: user13483341 on Nov 29, 2011 8:24 AM

    Hi Deepak, Thanks for your reply.
    Appreciate if you can help me with another thread "possibility of multi-currency in OBIA 7.9.6.2 financial anlytics".
    - MMishra.

  • ORA-12560: TNS: protocol adapter error while linking tables in Access

    One of my app dev is encountering an interesting error message while linking Oracle tables from Access. I am not able to able to reproduce this in my desktop or anywhere else. Details enclosed. Can you guys point me to a solution? Thanks in advance!
    ODBC: Oracle Client version 10.2.0.1
    Desktop : Win XP ; Access 2003
    =>Able to login to the Oracle database sucessfully using sqlplus.
    =>Able to create an ODBC datasource to Oracle database.("Test Connection" works fine)
    =>But encountering the TNS protocol adpater error while linking the table(Access->File->Get External Data-> Link tables).
    =>Not able to link any table in any schema in any Oracle database. Hence this is not a data centric issue.
    What did I do?
    => Uninstalled Oracle 8 client and installed Oracle 10 client. No luck. Encountering the same error.
    => Turned on the ODBC trace and reproduced the error. The log is enclosed:
    MSACCESS 79c-ed4     ENTER SQLAllocEnv
              HENV * 0013C620
    MSACCESS 79c-ed4     EXIT SQLAllocEnv with return code 0 (SQL_SUCCESS)
              HENV * 0x0013C620 ( 0x09d31788)
    MSACCESS 79c-ed4     ENTER SQLAllocConnect
              HENV 09D31788
              HDBC * 0013C730
    MSACCESS 79c-ed4     EXIT SQLAllocConnect with return code 0 (SQL_SUCCESS)
              HENV 09D31788
              HDBC * 0x0013C730 ( 0x09d31830)
    MSACCESS 79c-ed4     ENTER SQLSetConnectOption
              HDBC 09D31830
              SQLINTEGER 103 <SQL_LOGIN_TIMEOUT>
              SQLPOINTER 0x00000014
    MSACCESS 79c-ed4     EXIT SQLSetConnectOption with return code 0 (SQL_SUCCESS)
              HDBC 09D31830
              SQLINTEGER 103 <SQL_LOGIN_TIMEOUT>
              SQLPOINTER 0x00000014 (BADMEM)
    MSACCESS 79c-ed4     ENTER SQLSetConnectAttrW
              SQLHDBC 09D31830
              SQLINTEGER 30002 <unknown>
              SQLPOINTER [Unknown attribute 30002]
              SQLINTEGER -3
    MSACCESS 79c-ed4     EXIT SQLSetConnectAttrW with return code 0 (SQL_SUCCESS)
              SQLHDBC 09D31830
              SQLINTEGER 30002 <unknown>
              SQLPOINTER [Unknown attribute 30002]
              SQLINTEGER -3
    MSACCESS 79c-ed4     ENTER SQLDriverConnectW
              HDBC 09D31830
              HWND 001D04E4
              WCHAR * 0x74329A38 [      -3] "******\ 0"
              SWORD -3
              WCHAR * 0x74329A38
              SWORD 2
              SWORD * 0x00000000
              UWORD 1 <SQL_DRIVER_COMPLETE>
    MSACCESS 79c-ed4     EXIT SQLDriverConnectW with return code -1 (SQL_ERROR)
              HDBC 09D31830
              HWND 001D04E4
              WCHAR * 0x74329A38 [      -3] "******\ 0"
              SWORD -3
              WCHAR * 0x74329A38
              SWORD 2
              SWORD * 0x00000000
              UWORD 1 <SQL_DRIVER_COMPLETE>
              DIAG [S1000] [Oracle][ODBC][Ora]ORA-12560: TNS: protocol adapter error (12560)
              DIAG [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed (0)
              DIAG [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed (0)
    MSACCESS 79c-ed4     ENTER SQLErrorW
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638
              WCHAR * 0x047EE8B8
              SWORD 4095
              SWORD * 0x0013C624
    MSACCESS 79c-ed4     EXIT SQLErrorW with return code 0 (SQL_SUCCESS)
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638 (12560)
              WCHAR * 0x047EE8B8 [     126] "[Oracle][ODBC][Ora]ORA-12560: TNS: protocol adapter error\ a\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0"
              SWORD 4095
              SWORD * 0x0013C624 (126)
    MSACCESS 79c-ed4     ENTER SQLErrorW
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638
              WCHAR * 0x047EE950
              SWORD 4019
              SWORD * 0x0013C624
    MSACCESS 79c-ed4     EXIT SQLErrorW with return code 0 (SQL_SUCCESS)
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638 (0)
              WCHAR * 0x047EE950 [      66] "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed"
              SWORD 4019
              SWORD * 0x0013C624 (66)
    MSACCESS 79c-ed4     ENTER SQLErrorW
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638
              WCHAR * 0x047EE9E6
              SWORD 3944
              SWORD * 0x0013C624
    MSACCESS 79c-ed4     EXIT SQLErrorW with return code 0 (SQL_SUCCESS)
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638 (0)
              WCHAR * 0x047EE9E6 [      66] "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed"
              SWORD 3944
              SWORD * 0x0013C624 (66)
    MSACCESS 79c-ed4     ENTER SQLErrorW
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638
              WCHAR * 0x047EEA7C
              SWORD 3869
              SWORD * 0x0013C624
    MSACCESS 79c-ed4     EXIT SQLErrorW with return code 100 (SQL_NO_DATA_FOUND)
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638
              WCHAR * 0x047EEA7C
              SWORD 3869
              SWORD * 0x0013C624
    MSACCESS 79c-ed4     ENTER SQLFreeConnect
              HDBC 09D31830
    MSACCESS 79c-ed4     EXIT SQLFreeConnect with return code 0 (SQL_SUCCESS)
              HDBC 09D31830
    Edited by: user5598619 on Feb 10, 2009 5:37 PM

    Thanks a lot for your quick reply.
    I've read all the posts mentioned (quite a few more) but I couldn't find any suggested solution to the "non-oracle10g"-problem other than using the global db name instead of the sid - which didn't help in our case:
    However, in a last desperate attempt to solve the problem on my own before launching another cry-for-help-post I did try running the configuration assistant using the correct password for the SYS user 8-} and - strange but true - it did work :-)
    Needless to say: I used the global db name of course, so I can't say what would have happened without it, but I trust your hint was a legitimate one.
    Anyway - I gues that error Message concerning a "non-oracle10g database" was slightly misleading in this case.... grrrr.
    Andreas

Maybe you are looking for

  • Alerts In CRM 5.0(step by step)

    Hi Team, I am working in CRM 5.0. plz give me a step by step settings for alerts In CRM 5.0 Reminder Alert I have to make changes in alert settings. The problem is that even the default alert "Time to wrap up" is not coming up. In all the previous in

  • W530 - Display Backlight Bug

    Hi,I use an external monitor with my laptop. On resuming, Windows automatically detects the monitor and switches to it using Projector Mode*. That works for me, however, the laptop's backlight remains lit at its regular brightness level. I sidesteppe

  • Is there a patch to enable Photoshop Elements 10 to import NEF images from a Nikon 7100?

    I bought a Nikon 7100.  The NEF files taken with the Nikon 7100 cannot be imported into the organizer.  The error message is "the files selected to import did not contain any supported file types.  The file is damaged or is in a format that cannot be

  • How do you customize alerts on messages

    Messages on Mountain lion had a custom set of sounds for each alert. On messages in Mavericks i'm only seeing a menu for "message received". Where do I go to customize the others?

  • Ipod classic 40gb 4th generation problems

    ipod classic 4th generation error 1429, can't reset via ipod itself, yet when itunes regonized ipod, it freezes when trying to restore it. ipod also have a folder with explanation mark icon. Windows 7 also wants to format the drive on ipod. Help as I