Route add command

Hi!
I have a machine with many network interfaces. I would like to add a command to say that for a destitanations tha packets shoudl be sent on port hme0 and that the source IP should be x.x.x.x
I now the following command but how can I specific the interface hme0?
route add 172.24.169.136 10.211.4.1 -setsrc 10.211.4.211

Hi!
Thanks for the help. I managed to add the route record. My problem is that it's not in the wright place.
My netstat -rn is:
Destination Gateway Flags Ref Use Interface
192.168.1.0 192.168.1.41 U 1 0 qfe0
192.168.1.0 192.168.1.43 U 1 0 qfe1
10.211.4.0 10.211.4.28 U 1 117 hme0
172.24.169.0 10.211.4.214 U 1 6 hme0:1
224.0.0.0 10.211.4.28 U 1 0 hme0
default 10.211.4.1 UG 1 255
127.0.0.1 127.0.0.1 UH 5 77 lo0
After adding the following route:
route add 10.211.4.0/24 10.211.4.214 -interface
And the resulting netstat is:
Destination Gateway Flags Ref Use Interface
192.168.1.0 192.168.1.41 U 1 0 qfe0
192.168.1.0 192.168.1.43 U 1 0 qfe1
10.211.4.0 10.211.4.28 U 1 119 hme0
10.211.4.0 10.211.4.214 U 1 0 hme0:1
172.24.169.0 10.211.4.214 U 1 6 hme0:1
224.0.0.0 10.211.4.28 U 1 0 hme0
default 10.211.4.1 UG 1 259
127.0.0.1 127.0.0.1 UH 5 77 lo0
So this means that the new rout record for 10.211.4.0 was put in the routing table below the old registration. If I know well the routing table is used from top to down it means that new registartion has no effect. Is there any way to put this as the first registration or at least above the old one?
Thanks.

Similar Messages

  • Does MAC OS have a "route add" command similar to a DOS command?

    Does MAC OS have a "route add" command similar to a DOS command?
    I know that with DOS, you can type "route add 192.168.x.x MASK 255.255.x.x 192.168.x.x" to add a route on your PC,but does MAS OS X(10.4.9) have something similar to it? I have a network printer that my winXP can access but my MAC cannot. I was unable to ping it from both wINXP and MAC. But after I added the route to my winXP I was able to ping and print to it. I do not know if I can do the same to my MAC. Does anyone know what the command is?
    Thank you in advance.

    Yes, and Welcome! ...
    http://www.osxfaq.com/man/8/route.ws
    And to make it permanent...
    http://www.osxfaq.com/tips/kluskens/index.ws

  • OpenVPN: Can connect & ping, but not more; route add command failed

    Hi folks,
    I have a problem with openVPN.
    Our university provides an openVPN server to which we can connect. Some time ago, my setup (with given config) works without any problems. But now, it simply fails. I'll need openVPN to tunnel into university to get access to "internal net" wikis and terminal servers for doing my master thesis.
    The openVPN connects to the server and all routes are set correctly. I can ping various server in the internet but I can't connect to them (via browser or any other apps).
    The version of openVPN is openvpn 2.1_rc20-1
    That's the config I use:
    root [/etc/openvpn] cat openfaupn.conf
    client
    #daemon uni-wlan
    dev tun
    proto udp
    remote 131.188.30.102 1194
    resolv-retry infinite
    user nobody
    group nobody
    persist-key
    persist-tun
    ca /etc/openvpn/openfaupn.crt
    ns-cert-type server
    comp-lzo
    #verb 3
    mute 20
    auth-user-pass /etc/openvpn/openvpn_password
    redirect-gateway
    This are the routes before and after issuing "openvpn --config openfaupn.conf":
    18:12:27 [~] route
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    192.168.8.0 * 255.255.255.0 U 0 0 0 eth0
    default 192.168.8.1 0.0.0.0 UG 0 0 0 eth0
    18:15:46 [~] route
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    faui02.informat 192.168.8.1 255.255.255.255 UGH 0 0 0 eth0
    10.222.0.1 10.222.1.49 255.255.255.255 UGH 0 0 0 tun0
    10.222.1.49 * 255.255.255.255 UH 0 0 0 tun0
    192.168.8.0 * 255.255.255.0 U 0 0 0 eth0
    131.188.0.0 10.222.1.49 255.255.0.0 UG 0 0 0 tun0
    172.16.0.0 10.222.1.49 255.255.0.0 UG 0 0 0 tun0
    172.17.0.0 10.222.1.49 255.255.0.0 UG 0 0 0 tun0
    141.67.0.0 10.222.1.49 255.255.0.0 UG 0 0 0 tun0
    192.168.0.0 10.222.1.49 255.255.0.0 UG 0 0 0 tun0
    10.0.0.0 10.222.1.49 255.0.0.0 UG 0 0 0 tun0
    default 10.222.1.49 0.0.0.0 UG 0 0 0 tun0
    Does anyone have a clue?!
    Last edited by johannesheld (2009-11-17 23:01:59)

    As mentioned in that linked post, I'll provide the information of "ip a s" before and after starting openfaupn.
    18:16:21 [~] ip a s
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
    link/ether 00:1a:4d:47:3b:e3 brd ff:ff:ff:ff:ff:ff
    inet 192.168.8.2/24 brd 192.168.8.255 scope global eth0
    5: pan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
    link/ether aa:f4:04:3e:ee:72 brd ff:ff:ff:ff:ff:ff
    18:16:27 [~] ip a s
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
    link/ether 00:1a:4d:47:3b:e3 brd ff:ff:ff:ff:ff:ff
    inet 192.168.8.2/24 brd 192.168.8.255 scope global eth0
    5: pan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
    link/ether aa:f4:04:3e:ee:72 brd ff:ff:ff:ff:ff:ff
    8: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 100
    link/[65534]
    inet 10.222.1.50 peer 10.222.1.49/32 scope global tun0
    18:17:24 [~]
    Downgrading to 2.0.9 doesn't work either.
    Last edited by johannesheld (2009-11-18 17:37:03)

  • Network Manager Role - route add/delete command

    How to establish role (RBAC) to modify routing table ? When I use embeded Network Management profile for this purpose, after running route add command I receive message that running route command needs root priviledges.

    Could explain in more details ?
    What I want achieve is to give some users ability to modify routing table. For that purpose I established role named service. I have assingend built in profile Network Management to that role via SMC. I established also right profile named Service Commands with /usr/sbin/route command. But when I am trying modify routing table I receive the following error:
    service@host > route add 1.1.1.2 10.93.5.254
    *route: must be root to alter routing table: Permission denied*Below is listing profiles assing with RBAC role service:
    service@host > profiles -l service
          Service Commands:
              /usr/sbin/route    euid=0, egid=0
              /usr/sbin/snoop    euid=service, egid=1
              /usr/sbin/ifconfig    euid=0, egid=0
          Device Management:
              /usr/sbin/allocate    uid=0
              /usr/sbin/deallocate    uid=0
          Network Management:
              /etc/init.d/asppp    uid=0, gid=sys
              /etc/init.d/inetinit    uid=0, gid=sys
              /etc/init.d/inetsvc    uid=0, gid=sys
              /etc/init.d/nscd    uid=0, gid=sys
              /etc/init.d/rpc    uid=0, gid=sys
              /etc/init.d/sysid.net    uid=0, gid=sys
              /etc/init.d/sysid.sys    uid=0, gid=sys
              /etc/init.d/uucp    uid=0, gid=sys
              /usr/bin/netstat    uid=0
              /usr/bin/rup    euid=0
              /usr/bin/ruptime    euid=0
              /usr/bin/setuname    euid=0
              /usr/sbin/asppp2pppd    euid=0
              /usr/sbin/ifconfig    uid=0
              /usr/sbin/in.named    uid=0
              /usr/sbin/ipqosconf    euid=0
              /usr/sbin/route    uid=0
              /usr/sbin/snoop    uid=0
              /usr/sbin/spray    euid=0
          All:
    service@host > grep service /etc/user_attr
    service::::profiles=Service Commands,Device Management,Network Management;type=role
    user1::::profiles=Service Commands,Network Management,Service,All;roles=service;type=normal

  • Route add/delete broke my networking

    I have run into a networking problem on my cluster, and I cannot figure out what changed.
    I had a cluster configured and working.  Its access network is 192.168.10.0/24.  I have other networks, including a node management network on 10.29.130.0/24.  The access network is private to my lab; it's here I have my AD defined. 
    The management network is a 'lab' network that has a gateway available so we can access the lab from our corporate network with no issues.  In other words, the access network is only routed within my private lab, but the management network can be routed
    to corporate access.
    But, as you know, Windows simply doesn't like creating two different networks with default gateways.  So before building the cluster, I removed the gateway from the management network, ensuring there was only a single gateway configured on each host. 
    Ran the validation and it came through fine (typical network warnings about non-routed networks not able to reach other networks, but that is expected and presents no problems).  Built the cluster.
    I wanted to try to create an environment that would allow me to access the physical hosts through the management network, so I tried issuing a route add command specific to the management network. 
    route add 10.29.130.0 mask 255.255.255.0 10.29.130.1 if 3
    It didn't work as expected (I am by no means a networking expert, but I figured I would try it.)  Since it didn't work, I deleted it.
    route delete 10.29.130.0 mask 255.255.255.0 10.29.130.1 if 3
    Came back and ran another validation wizard on the cluster and now the validation fails with the following error (to each of the other nodes in the cluster):
    Network interfaces FT4-Infra01.VSPEX.COM - Mgmt and FT4-Infra03.VSPEX.COM - Mgmt are on the same cluster network, yet address 10.29.130.37 is not reachable from 10.29.130.35 using UDP on port 3343.
    I check my firewall, and those ports are open on all node for all firewall profiles.  From FT4-Infra01 (the machine I was messing with), I can ping the other nodes of the cluster.  From the other nodes in the cluster, I cannot ping FT4-Infra01. 
    Yes, I know ping is a different rule, but I always go back to basics.  And the fact that it is not responding to pings after playing with the route is strange.
    Does anybody have any ideas about what playing with the route command could have changed?  I am assuming that is the cause because everything worked fine before issuing the command and now these errors are there.  No other changes were made to
    the cluster or the nodes.
    .:|:.:|:. tim

    Hi Tim,
    I suggest referring to the following links:
    http://blogs.technet.com/b/aevalshah/archive/2012/05/15/windows-server-2008-r2-failover-clustering-best-practice-guide.aspx
    http://blogs.technet.com/b/meamcs/archive/2013/11/09/microsoft-windows-multi-site-failover-cluster-best-practices.aspx
    Best Regards,
    Vincent Wu
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • How to save routing entries permanently after route add

    Hi guys,
    I have added routing entries through route add command. I know i can add routing entries permanently thru -p option in route add command but didin't use that option. How to save those routing entries now?
    Thanks...

    The filename you are looking for is /etc/inet/static_routes which is available only on Solaris 10 update 3 or later:
    root_sol10u3# route -p add -net 192.168.138.0/24 192.168.136.1
    root_sol10u3# cat /etc/inet/static_routes
    # File generated by route(1M) - do not edit.
    -net 192.168.128.0/22 192.168.136.1
    -net 192.168.138.0/24 192.168.136.1
    -net 172.31.68.0/24 192.168.149.253
    -net 172.31.69.0/24 192.168.149.253
    root_sol10u3#For Solaris 10 update 2 or earlier, persistent static routes are not implemented. Additionally, the old RC script method suggested above also will not work for Solaris 10 given the host isn't always guaranteed to reach the "multiuser" milestone and subsequently run the legacy /etc/rc*/S* scripts (say if a filesystem fails to mount). For those releases, you should create a new manifest file as follows:
    root_sol10u2# cat /var/svc/manifest/network/RKstatic-routes.xml
    <?xml version="1.0"?>
    <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
    <!--
            Static Route SMF Manefest
            To be replaced by official Sun mechanism in next solaris release
    -->
    <service_bundle type='manifest' name='RKstatic-routes'>
    <service
      name='network/RKstatic-routes'
      type='service'
      version='1'>
        <create_default_instance enabled='true' />
        <single_instance/>
        <dependency name='network'
            grouping='require_any'
            restart_on='error'
            type='service'>
                <service_fmri value='svc:/network/service' />
        </dependency>
      <exec_method
        type='method'
        name='start'
        exec='/lib/svc/method/RKstatic-routes start'
        timeout_seconds='60' />
      <exec_method
        type='method'
        name='stop'
        exec='/lib/svc/method/RKstatic-routes stop'
        timeout_seconds='60' />
      <property_group name='startd' type='framework'>
        <propval name='duration' type='astring' value='transient' />
      </property_group>
      <stability value='Unstable' />
    </service>
    </service_bundle>
    root_sol10u2#Then create the method script:
    root_sol10u2# cat /lib/svc/method/RKstatic-routes
    #!/bin/sh
    # RKstatic-routes
    # To be called by the network/RKstatic-route SMF service
    ACTION=${ACTION:-add}
    setup_routes () {
    #Route to networks.
    /usr/sbin/route $ACTION net 172.1.0.0 -netmask 255.255.0.0 10.1.0.0
    /usr/sbin/route $ACTION net 172.2.0.0 -netmask 255.255.0.0 10.2.0.0
    case "$1" in
        start)
            echo "${ACTION}ing static routes"
            setup_routes
        stop)
            ACTION=delete
            echo "${ACTION}ing static routes"
            setup_routes
            echo "Usage: $0 {start|stop}"
            exit 1
    esac
    root_sol10u2#Then, import and enable/start the service:
    root_sol10u2# svccfg -v import /var/svc/manifest/network/RKstatic-routes.xml
    root_sol10u2# svcadm enable network/RKstatic-routes
    root_sol10u2# To stop:
    root_sol10u2# svcadm disable network/RKstatic-routes
    root_sol10u2# For posterity, here is a pre-Solaris 10 version:
    root_sol9# cat /etc/init.d/staticRoutes.sh
    #!/bin/sh
    case "$1" in
            start)
                    test -f /etc/routes.conf || exit 0
                    while read type route gateway
                    do
                            /usr/sbin/route add $type $route $gateway
                    done < /etc/routes.conf
            stop)
                    test -f /etc/routes.conf || exit 0
                    while read type route gateway
                    do
                            /usr/sbin/route delete $type $route $gateway
                    done < /etc/routes.conf
                    echo "Usage: /etc/init.d/routes { start | stop }"
    esac
    root_sol9# cat /etc/routes.conf
    172.1.2.0/24 172.1.2.4
    172.1.3.0/24 172.1.3.4
    root_sol9# ln -s /etc/rc2.d/S70staticRoutes /etc/init.d/staticRoutes.sh
    root_sol9#Best Regards,
    Bryan Wood

  • Setting VarChar Variable with String Parameter in Crystal Report Add Command

    Setting a VarChar Variable with a String Parameter in a Crystal Report 2008 SP6.3 Add Command is causing an error with a SQL State of 42000.  The Error Code depends on which value I select for the parameter.  I created the @DateOpt string parameter in the Modify Command window, not in the report. If I comment out line 14 of the SQL the error does not occur.
    I have attached the SQL Code and screen shots of the errors.   Please tell me what I am doing wrong.

    Since your parameter is of type STRING, you need to enclose references to it within the Command inside single quotes.
    For example, instead of
    SET @BeginDate ={?BeginDate}
    use
    SET @BeginDate ='{?BeginDate}'
    hth,
    - ido

  • Route add problem in solaris 10 zone

    hi all
    when i add route in one of my solaris 10 zone.. i get the following error. any workaround?
    # route add xxx.xxx.255/24 10.xxx.xxx.1
    add net xxx.xxx.255/24: gateway 10.xxx.xxx.1: insufficient privileges
    thanks
    peter

    it means i can only add route in globle zone? but
    global zone and sub-zones are using diff IP and
    interface cards. so how?But they're children of the same kernel. There can only be one routing table (at the moment, anyway). So make your route adds from global and watch them appear in the netstat output of your non-global zones.
    I agree that this is a confusing and poorly documented aspect of zones, however. I will admit to you that I barely understand it myself. However, there is a good answer to a question I had about this in comp.unix.solaris. Search that newsgroup for "Viewing non-global routes from global zone". A similar question fell on deaf ears here.
    Also, I would recommend searching this forum for "zone routes" or "zone routing" as this is a frequently hit topic.
    --gc1973                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Add Command button not in the Database Expert: VS2003

    We are using VS2003 and the bundled version of Crystal Reports.  We have no plans of upgrading right now, unless we have to. What I'm trying to do should be simple...
    We have an existing report that lists incomplete orders, including invoice# and items in the order.  One of the possible order items is "MISC", however, that is not descriptive, so I am trying to add a SQL query that will look up the actual MISC item text based on Invoice # (one of the fields in the report).  I was trying to do this via a subreport.
    The help file and this Youtube video ( [Crystal Reports Tutorial Creating SQL Commands| http://www.youtube.com/watch?v=BHNHsIUbcn8]  ) suggest the way to do this is to click "Add Command to Report" from the Database expert, which will let me add my own SQL command.
    However, "Add Command" is not visible, and I cannot get it to appear.   Under what circumstances would it be hidden or disabled?  How do I get it to appear so I may add a custom SQL item to the existing report?
    Any help is greatly appreciated.   Thank you in advance.

    Not possible with your version of CR. You'd have to upgrade to the current version of Crystal Reports (12.x).
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • Crystal Reports shuts down when trying to use the Add Command feature

    I am using Crystal Reports 9 with and Oracle database.  I go to new report, as a blank report, new connection to oracle, double click add command, paste the sql and click ok and crystal shuts down at that point.  Any one have this happen before?? Please help??

    Hi Allison,
    Have you tried with  basic syntax at command level.
    If you face any problem using Add command in crystal designer, just try to reinstall the product.
    Regards,
    Naveen.

  • Using the 'route print' Command in Windows 7 - Detailed Screen Captures

    The 'route print' Command from an Administrative Command Prompt in Windows 7 provides a variety of useful information.  Let's take a look at the output of a 'route print' Command to examine how the output data is grouped and to understand its logic.
    Let's begin by simply issuing the following command:
    route print
    An Administrative Command Prompt output shows the following the following sections of the Command Output:
    Figure 1 - Issuing the 'route print' Command from an Administrative Command Prompt in Windows 7
     Observing the output of the Command indicates there are 5 Major Sections.  The Sections include:
    Interface List
    IPv4 Route Table
    IPv4 Persistent Routes
    IPv6 Route Table
    IPv6 Persistent Routes
    On this Workstation a single Physical Network Interface is visible and has been assigned a DHCP Address of '10.1.1.36'. 
    The IP Stack for this Workstation is as follows:
    IP Address: 10.1.1.36
    Subnet Mask: 255.255.255.0
    Default Gateway: 10.1.1.1
    DNS Server: 10.1.1.1
    DHCP Server: 10.1.1.1
    DNS Suffix: YYY.YYY.isp-provider.net
    Most of the time our focus is upon the IPv4 Routing Table output.  Here are the sections of the IPv4 Routing Table output for reference.
    Figure 2 - The IPv4 Route Table output listing the 'all networks' route through the Default Gateway.
    The next IPv4 Routing Table entry indicates '10.1.1.36' (the Host Workstation' is a member of the '10.1.1.1/24' Network and would route packets out the '10.1.1.36' Interface.
    Figure 3 - The Workstation Host at '10.1.1.36' is a member of the '10.1.1.0/24' Network Subnet.
     The next IPv4 Routing Table entry indicates '10.1.1.36' may receive a Broadcast from the '10.1.1.0/24' Network (as noted by the Subnet Mask of '255.255.255.255').
    Figure 4 - The Workstation Host at '10.1.1.36' can offer a Broadcast on the '10.1.1.0/24 Network' (as noted by the 255.255.255.255 Subnet Mask).
     Another IPv4 Routing Table entry focused on Broadcast Addresses is the following.  The Host Workstation at '10.1.1.36' may offer Network Broadcasts to the '10.1.1.0/24' Network.
    Figure 5 - The Workstation Host at '10.1.1.36' can receive Network Broadcasts from the '10.1.1.0/24' Network (as noted by the '10.1.1.255' Network Destination).
     The next IPv4 Routing Table entries (3 of them) are focused on the Loopback Network Values of '127.0.0.0/8',  '127.0.0.1/32' and the Loopback Network Address of '127.255.255.255/32' respectively.  These Addresses provide Services to the Local Host (or Loopback Adapter).  The Loopback Network Destination of '127.0.0.0' provides access to the Loopback Network through '127.0.0.1' the Loopback IP Address.  The Loopback IP Address of '127.0.0.1/32' receives Limited Local Broadcast to the Loopback Network while the Loopback IP Address of '127.255.255.255/32' provides Limited Broadcast to the Loopback Network.
    Figure 6 - The Workstation Host at '10.1.1.36' uses 3 Addresses for Services to the 'Local Host'. All 3 Addresses incorporate the '127.x.x.x' format.
     Next the Routing Table includes 2 specific entries for the Multicast Network (224.0.0.0/4) for both the 'Local Host' or Loopback  Address of '127.0.0.1' and the Host IP Address of '10.1.1.36' that are '224.0.0.0/4' .  These are used for Multicast Network functions.
    Figure 7 - The Workstation Host at '10.1.1.36' includes 2 Multicast Addresses (starting with '240.0.0.0') reserved for use through either the Loopback Address '127.0.0.1' or the Host IP Address '10.1.1.36'.
     The last 2 Routing Table entries provides Services through Limited Broadcast Addresses.  The Network Destination of '255.255.255.255/32' are the Limited Broadcast Address Ranges for both the Loopback Adapter '127.0.0.1' and the Host IP Address '10.1.1.36'.
    Figure 8 - The Workstation Host at '10.1.1.36' includes 2 Limited Broadcast IP Address Values to Service both the Loopback Network '127.0.0.1' and the Host IP Network '10.1.1.36'.
    Finally, upon understanding the sections of the Windows 7 Routing Table there are additional functions available when using the 'route' Command.  This Blog entry is focused solely on output from the 'route print' Command.
    Summary: In this Blog entry focused on using the 'route print' Command from an Administrative Command Prompt in Windows 7.  Each of the defined routes for a Workstation running Windows 7 Enterprise were reviewed for reference.
    Lynn Lunik
    Chief Security Architect
    IT Pro Secure Corporation
    and exchangesummit.net
    blog <at> itprosecure.com

    I thought, it is my browser issues of not seeing the images.
    but as seen on the other comments, this not in my browser case.
    Can someone check on this and repost the images if needed?

  • Add command with SAP SAP Tables & Clusters.

    Hi All,
    One of my customer is using the SAP integration kit and the document states that we can have a Add Command option in Crystal Reports XI against the SAP tables.
    So in Crystal Reports can we create an ADD COMMAND option against the SAP tables?
    Regards,
    Prashant Saduwale

    Post your question to the Business Object Integration Kits forum

  • Excel data source and the use of add command

    HI, Looking for suggestions on how to work with multiple inputs that cannot be joined directly.  Here's the background.
    The Report currently reads in two different Ecel files and uses 3 SQL commands to query an Oracle Database.  I need to join the 5 data sources and am having issues with the 2 excel files.  In one file I need to be able to derive a field based on another column in the file In order to create the join condition to the SQL commands.  I'd equate this to a case statement in SQL, but how goes one do that using the 'add command' feature?  What is the syntax?
    Next I would need to join (left outer) the two excel files using two fields from file A (a1, a2) and 3 fields from file B (b1,b2,b3), where a1=b1 and b2 <= a2  <= b3 when rows from A exist in B.  If row A does not exist in B then we still want it in the report and available to left outer join to the 3 oractab data sources.
    runtime is also a concern.
    Any Suggestions?

    hi Elena,
    in this case the use of subreports is not recommended. that's because you're exporting to excel and you need data in columns across the report. subreports will not, unfortunately, give you what you need.
    this would bring you back to joining the datasources. what i would recommend is looking into using 'oracle database link' to link your oracle db to excel files. here's one article as an example but you may be able to find a better one. if you have questions on this please ask them on an oracle forum as the syntax that you need will be database specific.
    a lot of databases have this type of technology which allows you to create a view to other data. sql server has 'linked servers', sap hana has 'smart data access'. essentially you are creating a non-materialized view to the external data. then this view is available on the main oracle server where you established this connection. this should be a lot easier than trying to bring a bunch of command objects together off independent datasources inside of crystal.
    -jamie

  • How to pass db source data to condition of add command ?

    I add a command (select * from abc where a='xy') to report,
    and I want to pass field (order number) of table xyz to 'xy'.
    How to do it?
    abc is one sql table ,  xyz is another table.

    why not you link them in the Links section
    link xy of the add command to xy of the table.
    is it hard?
    i mean
    in the add Command
    select xy from sometable
    and in the table there is a field called xy
    so in the links, you can link them together.
    good luck

  • Linking 2 tables with Sql Expressions or add command

    Hi
    I want to make a custom table using a union all using cr2008 but I'm unable to find/enable the sql expressios field? It's just not there?
    I've tried using the add command is the database expert but I cant see how to get this work.. I have 2 data sources that each consist of identical tables (but different data).  I have 2 tables I want to link:
    datasource1 statstable
    datasource2 statstable
    So I want to do:
    SELECT * FROM datasource1 statstable
    UNION ALL
    SELECT * FROM datasource2 statstable
    but it wont let me do this as the 2 stats tables are in different datasouces.
    I would really appreciate any help you can give me.
    thanks

    you can not do this unless you use busines views.
    you can not create one report based on two different datasources using crystal reports,
    my advice to you to solve this problem
    start to look for the "business views"
    which allow you to create a strucutre based on many different datasources, you create 2 connections for your datasources and map them in the view.
    then you use those business views in crysal reports to create you report.
    it may looks complicated, but i admit its too easy and not hard.
    you can get a small book about business views manager which comes with BO XI R2 or Xi 3.0
    from the business objects support site.
    i hope it was clear for you
    good luck

Maybe you are looking for

  • DVD Sound issues with Siundblaster Audigy ADVANVED

    Hi. I've searched endlessly through the net and this forum, but so far I havent found a resolution to my problem. When I play DVDs I get very bad popping. Its identical for each DVD and makes watching a DVD on my PC unbearable. I dont have any proble

  • How do i get the camera roll to view new photos first then the old photos?

    Does anyone know how I can get the camera roll to have the new photos on top and the older photos on the bottom?  I hat having to scroll down to see the new photos.

  • Expdp from diff home

    Hi if i m having two oracle home 10g and 11g on same server and i want to do expdp of 11g database from 10g home is it possible ? for exp it is possible but i m not able to do it using expdp plz suggest

  • Can see the test page, Can register the provider but error in portlet

    Hi all, I have done the following settings in my web.xml web.xml <servlet> <servlet-name>calsample</servlet-name> <servlet-class>oracle.portal.provider.v1.http.HttpProvider</servlet-class> <init-param> <param-name>provider_root</param-name> <param-va

  • Math and circle rotation

    Okay this is a math question! :-) I worked on a logo for a class I'm taking in Illustrator. It looks like this: I created one tiny chair icon and then rotated it around the circle to space them. Thing is: I had to guess at the angle until I got it sp