Separate internet gateway for a given vlan
In my scenario, I have a layer 3 switch acting as my core/root bridge/vtp server for around 30 vlans. On it I've defined the gateway of last resort to be the lan IP address of my internet firewall. I've brought in a new internet connection and new firewall that I will eventually use as a replacement. I've created a new vlan and put the new firewall in it. Before I change the gateway of last resort on my core switch to be the new firewall, is it possible for me to select a particular vlan, vlan 25 for example, and configure it to use the new firewall as its internet gateway for testing?
Not sure what firewall you have, do not do layer 3 for this vlan on the core router. Create a layer 2 link between the new firewall and the core router. Define the test vlan default gateway as a virtual IP on the firewall on the vlan say 10.100.0.1.
Then on the clientson the new vlan just point them to this 10.100.0.1 as default. on the new firewall just do a static route for 0.0.0.0 to the internet
Similar Messages
-
Separate Internet service for Guest Wireless
Hi all,
I was reading about security concerns having guest wireless sharing the corporate Internet services and therefore looking towards the path where a separate basic Internet serivce can be provided for them keeping the corporate side safe.
In doing that what i was thinking would be the way:
Extend the Guest Wireless VLAN from the core switch where the SVI is currently at to the new ADSL router's Inside interface. And in doing that I will need to configure the ADSL router for the right DHCP scope and DNS entries and finally remove the SVI from the core switch so it simple does switching across to this ADSL service.
Let me know if i am on the right track or if i am missing something.
Regards!Hi George,
it is a simple setup with just one controller. and the WLC is talking to the ISE to authenticate including the web auth login for the guest.
So to ans your Q, i think No, the WLC deosnt push the guest to the DMZ. the guest VLAN is hanging off the core switch at the moment. and using their corporate Internet service.
i hope the above answered your doubts. Cheers! -
Use Linux server NAT gateway for Windows domain?
Well, I'm kinda new to this...
I don't have a hardware router appliance, and I am short on Windows licences, so I figured that a Linux box would make a cheap NAT router (and firewall). I remembered that Linux generally can supply DNS & DHCP out of the box - but come to think of it, they are both optional.
I didn't stop to think that the DHCP could be on the windows domain controller, but I guess it would make excellent sense to keep AD & DNS & DHCP all together on one DC... the linux box would just become a 'router appliance', nothing more.
The second DC just DNS and AD, no DHCP - and both of them ( andall clients) pointing to the inside IP of the Linux box as the gateway.
Thanks very much for all the suggestions, I think I'm on track now :-)We're short on machines and I want to set up a lab network.
I have a 2008R2 and a 2008Standard that I want to use as domain controllers (R2 as 'primary', so to speak).
I understand its bad practice to make DC's multi-homed, but need to set up an internet gateway to my lab network - and I was wondering if it's possible to use a handy Linux box (Centos 6) as the NAT gateway & DHCP. (Using the Linux box as an Internet gateway for my Windows domain)
Has anybody ever done this successfully? I guess the trick would be getting DNS updates passed to the Windows NS from the Linux DHCP server??
This topic first appeared in the Spiceworks Community -
No internet access for vlan devices
Hey folks,
I'm new to cisco and have only recently started study for my ccna. In preperation for this i've gotten my hands on a cisco emi 3550-48 port switch so i can play and test some scenario's.
Now, I've setup a couple of vlans (200,201 and 202) and i've assigned them to fa0/3, 0/5 a0/7 respectively. i suppose it's irrelevant which ports are assign, they are just the ports i've assigned while typing this.
I know the cisco forums are full of people saying the intervlan routing isnt working and it just turns out to be the static route on the router in the end but i have set all that up and i can not get internet access on my vlan networks. The wierd thing is the switch itself can ping the internet no problem.
Here is my setup :
I've assigned ip addresses as follows :
vlan 200 - 10.10.200.254/24
vlan 201 - 10.10.201.254/24
vlan 202 - 10.10.202.254/24
I then enabled intervlan routing by issueing "IP ROUTING"
At this point I configured the VDSL modem/router (zyxel F1000) on IP Address 192.168.1.2/30 and I configured interface fa0/1 with the following commands :
interface fa0/1
no switchport
ip address 192.168.1.1 255.255.255.252
no shutdown
I then set the default route using :
ip route 0.0.0.0 0.0.0.0 192.168.1.2
Finally I configured three static route's on my Zyxel F1000 modem/router to send traffic back to my three vlans using the gateway 192.168.1.1
As i said above, If I plug into fa 0/3 (vlan 200) and lets say I give myself an ip address of 10.10.200.20, 255.255.255.0 and gateway 10.10.200.254. I can ping the othe vlns and devices on the other vlans no problem but bot for love nor money can i get onto the internet. For clarifications sake my dns is set to 8.8.8.8
Stranger still is the fact that the switch can ping hostnames and ips on the internet no problem. Has anyone got any ideas what could possibly be wrong?? I'm completely stumped.
Regards,
Thomas QuigleyHey guys,
Thanks for the speedy replies. I have been trying this for about 2 weeks now and last night after posting this message to the cisco forums I got my hands on an old Sonicwall router. I decided to test the connection using this as I suspected that Zyxel router is buggy.
I setup a PPPoE connection on the sonicwall and set that up as my default route matching exactly the ip settings listed above and it worked immediately.
I knew the setup I had ran above was right it was just tormenting me that it wouldn't work. Turns out its the piece of crap Zyxek VDSL modem.
Thanks for taking the time to read my post and offer advice.
Cheers,
TQ -
Urgent help needed-----Internet Gateway & VPN Gateway---???---
Hi All,
First of all apologies as I am new to Cisco.
I have 2 sites Main site routers 1 is configured for internet having IP address 10.10.10.48. 2nd router is configured for VPN on separate data link configured with bgp protocol having ip address 10.10.10.51. My LAN computers are configured with 10.10.10.48 gateway for internet access.
DR-Site have 1 router configured for internet having IP 192.168.1.48. 2nd router is configured for VPN on separate data link configured with bgp protocol having ip address 192.168.1.52. My LAN computers are configured with 192.168.1.48 gateway for internet access.
Problem:-
if I need to connect with VPN I need to change default gateway from both ends otherwise VPN can not access network's from both ends in this case I loose internet because gateway is not there to service internet.
How to overcome this problem.
ThanksHave you thought about implementing Policy Based routing to send all Internet traffic to the Internet router, and all other traffic to your VPN router? You will then have to move your client's default gateway to the 3560 by creating a SVI. Then add the routing policy to the SVI. And you would do the same at the DR.
-
Enable responses from 2 separate internet connections on the same system
Hello List
I am hoping one of the network gurus here can help me out. I've spent quite a few hours trawling these forums and others online to try to find the answer to my question, but success has not been forthcoming.
My situation is this. I have a system that functions as a server that is connected to two separate internet connections. The G5 tower is hooked up to each via Ethernet. Each connection has a manually configured connection with a fixed IP. The gateways for each are using different IP ranges, the IP for en0 is 10.0.1.59 and en2's IP is 192.168.1.145. They each have different gateways configured as well, 10.0.1.1 and 192.168.1.1 respectively. 192.168.1.145 is the DMZ system for that internet connection. Here is the default entry in the system's routing table:
Destination Gateway Flags Refs Use Netif Expire
default 10.0.1.1 UGSc 4 8 en0
I need both interfaces to reply to requests to their public IPs backthrough the correct gateway and not the default gateway. This is because of bandwidth constraints and the need to perform nightly backups of substantial amounts of data from our business hour VOIP connection, but allow the existing default gateway to remain first in the network service order list.
I have thus far tried the following based on what I could learn from this and other forums across the Web. I have enabled forwarding with the following command:
sudo sysctl -w net.inet.ip.forwarding=1
Then I have applied a fwd rule to ipfw that purports to route requests made to the en2 local address back through the correct gateway:
sudo ipfw add fwd 192.168.1.1 ip from 192.168.1.145 to not 192.168.1.145 out
However, this does not work and there is no response from en2 gateway when trying to access the system from that gateway's public IP.
Can anyone see something obvious that I'm missing or point me at an online resource that will let me figure out how to get this working?
Many thanks in advance.I sounds like what you need is a static route to the IP address of whatever is on the other end of the Retrospect request. The command would look something like this:
sudo route -n add -host host_address -gateway router_address
where host_address is the IP address of whatever the Retrospect request is going to, and router_address is the gateway you want it to go out of.
A caveat here is that the route entry does not survive a reboot, so you'd want to create a startup item, or preferably a launch daemon to do this for you automatically on startup. -
Enable responses from 2 internet gateways on the same system
Hello
I tried this question in the Tiger Networking forum but didn't get a response so I'm giving it a shot here.
I am hoping one of the network gurus here can help me out. I've spent quite a few hours trawling these forums and others online to try to find the answer to my question, but success has not been forthcoming.
My situation is this. I have a system that functions as a server that is connected to two separate internet connections. The G5 tower is hooked up to each via Ethernet. Each connection has a manually configured connection with a fixed IP. The gateways for each are using different IP ranges, the IP for en0 is 10.0.1.59 and en2's IP is 192.168.1.145. They each have different gateways configured as well, 10.0.1.1 and 192.168.1.1 respectively. 192.168.1.145 is the DMZ system for that internet connection. Here is the default entry in the system's routing table:
Destination Gateway Flags Refs Use Netif Expire
default 10.0.1.1 UGSc 4 8 en0
I need both interfaces to reply to requests to their public IPs backthrough the correct gateway and not the default gateway. This is because of bandwidth constraints and the need to perform nightly backups of substantial amounts of data from our business hour VOIP connection, but allow the existing default gateway to remain first in the network service order list.
I have thus far tried the following based on what I could learn from this and other forums across the Web. I have enabled forwarding with the following command:
sudo sysctl -w net.inet.ip.forwarding=1
Then I have applied a fwd rule to ipfw that purports to route requests made to the en2 local address back through the correct gateway:
sudo ipfw add fwd 192.168.1.1 ip from 192.168.1.145 to not 192.168.1.145 out
However, this does not work and there is no response from the en2 gateway when trying to access the system from that gateway's public IP.
Can anyone see something obvious that I'm missing or point me at an online resource that will let me figure out how to get this working?
Many thanks in advance.I sounds like what you need is a static route to the IP address of whatever is on the other end of the Retrospect request. The command would look something like this:
sudo route -n add -host host_address -gateway router_address
where host_address is the IP address of whatever the Retrospect request is going to, and router_address is the gateway you want it to go out of.
A caveat here is that the route entry does not survive a reboot, so you'd want to create a startup item, or preferably a launch daemon to do this for you automatically on startup. -
RV320: Need to use as gateway for multiple subnets
We just purchased an RV320 as a replacement/upgrade to an RV042. Our Internet connection was upgraded to 200Mbps and the RV042 wouldn't handle that throughput.
Our internal network has 4 subnets, all connected via a layer 3 switch. The RV320 is connected to one of those subnets and is the default gateway for the entire network.
The RV042 had a "multiple subnets" setting that allowed it to perform NAT for the directly connected subnet and the other 3 subnets in our network. We would just add the other networks to the list in the RV042 and everything was fine.
The RV320 doesn't seem to have the same functionality (or am I missing something?). It looks like there is some sort of multiple subnet support, but when we try to add another subnet the interface seems to be asking us to define a single IP address in that subnet (an IP address for the router?) as if all subnets will be directly attached to the router using VLANs (which is not the case in our network).
We can set up the "advanced routing" option to define the other 3 internal subnets and how to route to them, etc. but will the RV320 perform NAT for the other subnets without any adidtional configuration?
Can anyone shed any light on this?
Many thanks!Precept,
My name is Ismael, iam with Small Business Support Center. I like to start by asking is there a particular reason that the switch is handling Layer 3/or DHCP? Normally when an RV042 is implemented you would need a Layer 3 switch as the RV042 only supports one DHCP scope.In addition all The RV0XX series does not support 802.1q VLAN.
With RV320 you can setup multiple subnets under advance routing and still allow for it to pass DHCP for all of your 4 subnets and create 801.2q Vlan subinterfaces . Setting RV320 in this manner can create an ease in managing the network.
If you are considering the RV320 to do Layer 3 / DHCP simply create your 4 Vlans or subnets. Add them to the DHCP scope and enable DHCP server for all subnets. Switch would have to be configured to Layer 2 for this to work. The link below is a knowledge portal that could assist in creating DHCP and Vlans. Hope this helps you.
http://sbkb.cisco.com/ -
Network Magic has difficulty identifying the Internet gateway
I am using a Netgear WNR854T router in a secondary position. The primary router is a Verizon (FIOS) Actiontec. I have given the Netgear router a static address of 192.168.1.55 and have set 192.168.1.1 (the Verizon router) as the primary gateway. Network magic incorrectly shows the Netgear as the Internet connection. Occasionally this will change and the Verizon router will be shown as the Internet gateway. When this happens all of my computers (wireless and wired) will show me connected to a new network. Is there some settings in either of these routers that I should check or change so that the Verizon router is consistently viewed as the gateway? Internet connectivity seems to be OK no matter which router Network Magic seems to think is the gateway. I can not address the Netgear router over the network for some reason (must physically attach it to a computer) Thanks for any help.
Hi, is DHCP disabled on your Netgear router?
My Cisco Network Magic Configuration:
Router: D-Link WBR-2310 A1 FW:1.04, connected to Comcast High Speed Internet
Desktop, iMac: NM is on the Windows Partition, using Boot camp to access Windows, Windows 7 Pro 32-bit RTM, Broadcom Wireless N Card, McAfee Personal Firewall 2009,
Mac Partition of the iMac is using Mac OS X 10.6.1 Snow Leopard
Laptop: Windows XP Pro SP3, Intel PRO/Wireless 2200BG, McAfee Personal Firewall 2008
Please note that though I am a beta tester for Network Magic, I am not a employee of Linksys/Cisco and am volunteering my time here to help other NM users. -
Error fetching data from a foxpro db using Oracle Gateway for ODBC
Hi.
I have an 10.2.0.1 database an a 11.2.0 Oracle Gateway for ODBC installed and configured.
The dblink test works fine, I can connect with the foxpro database because if I execute desc centros I can see the
columns of table centros.
The problem comes when I try to execute Select * from centros@fox1;
A syntax error is returned ([Microsoft][ODBC Visual FoxPro Driver]Syntax error. {42000,NativeErr = 200})
I paste down the output of the trace file with HS_FDS_TRACE_LEVEL=255
If I run select codcen from centros@fox1; another error is shown. Tell me if you want the other trace file.
select codcen from centros@fox1
ERROR en lÝnea 1:
ORA-00904: "CODCEN": identificador no vßlido
Oracle Corporation --- JUEVES MAY 31 2012 13:11:24.765
Heterogeneous Agent Release
11.2.0.1.0
Oracle Corporation --- JUEVES MAY 31 2012 13:11:24.750
Version 11.2.0.1.0
Entered hgogprd
HOSGIP for "HS_FDS_TRACE_LEVEL" returned "255"
Entered hgosdip
setting HS_OPEN_CURSORS to default of 50
setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
setting HS_FDS_RECOVERY_PWD to default value
setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
setting HS_IDLE_TIMEOUT to default of 0
setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
setting HS_NLS_NCHAR to default of "UCS2"
setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
setting HS_FDS_DATE_MAPPING to default of "DATE"
setting HS_RPC_FETCH_REBLOCKING to default of "ON"
setting HS_FDS_FETCH_ROWS to default of "100"
setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
setting HS_FDS_MAP_NCHAR to default of "TRUE"
setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
setting HS_FDS_QUERY_DRIVER to default of "TRUE"
setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
Parameter HS_FDS_QUOTE_IDENTIFIER is not set
setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
Default value of 32 assumed for HS_FDS_SQLLEN_INTERPRETATION
setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
setting HS_FDS_DELAYED_OPEN to default of "TRUE"
setting HS_FDS_WORKAROUNDS to default of "0"
Exiting hgosdip, rc=0
ORACLE_SID is "DAVID"
Product-Info:
Port Rls/Upd:1/0 PrdStat:0
Agent:Oracle Database Gateway for ODBC
Facility:hsa
Class:ODBC, ClassVsn:11.2.0.1.0_0008, Instance:DAVID
Exiting hgogprd, rc=0
hostmstr: 2057416704: HOA After hoagprd
hostmstr: 2057416704: HOA Before hoainit
Entered hgoinit
HOCXU_COMP_CSET=1
HOCXU_DRV_CSET=178
HOCXU_DRV_NCHAR=1000
HOCXU_DB_CSET=178
HOCXU_SEM_VER=102000
Entered hgolofn at 2012/05/31-13:11:25
Exiting hgolofn, rc=0 at 2012/05/31-13:11:25
HOSGIP for "HS_OPEN_CURSORS" returned "50"
HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
Invalid value of 32 given for HS_FDS_SQLLEN_INTERPRETATION
treat_SQLLEN_as_compiled = 1
Exiting hgoinit, rc=0 at 2012/05/31-13:11:25
hostmstr: 2057416704: HOA After hoainit
hostmstr: 2057416704: HOA Before hoalgon
Entered hgolgon at 2012/05/31-13:11:25
reco:0, name:SYSTEM, tflag:0
Entered hgosuec at 2012/05/31-13:11:25
Exiting hgosuec, rc=0 at 2012/05/31-13:11:25
HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
using SYSTEM as default value for "HS_FDS_DEFAULT_OWNER"
HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
Entered hgocont at 2012/05/31-13:11:25
HS_FDS_CONNECT_INFO = "Prueba_Foxpro"
RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
Entered hgogenconstr at 2012/05/31-13:11:25
dsn:Prueba_Foxpro, name:SYSTEM
optn:
Entered hgocip at 2012/05/31-13:11:25
dsn:Prueba_Foxpro
Exiting hgocip, rc=0 at 2012/05/31-13:11:25
##>Connect Parameters (len=39)<##
## DSN=Prueba_Foxpro;
#! UID=SYSTEM;
#! PWD=*
Exiting hgogenconstr, rc=0 at 2012/05/31-13:11:25
Entered hgopoer at 2012/05/31-13:11:26
hgopoer, line 233: got native error 0 and sqlstate 01000; message follows...
[*Microsoft][Administrador de controladores ODBC] El controlador no admite una versión de ODBC distinta de la que la necesita la aplicación (vea SQLSetEnvAttr)*. {01000}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:26
hgocont, line 2686: calling SqlDriverConnect got sqlstate 01000
Entered hgolosf at 2012/05/31-13:11:26
ODBC Function-Available-Array 0xFFFE 0x00FF 0xFF00 0xAA7F 0x03B3 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0xEE00 0x395C
Exiting hgolosf, rc=0 at 2012/05/31-13:11:26
DriverName:VFPODBC.DLL, DriverVer:06.86.0001
DBMS Name:Visual FoxPro, DBMS Version:03.00.0000
Exiting hgocont, rc=0 at 2012/05/31-13:11:26 with error ptr FILE:hgocont.c LINE:2686 ID:SQLDriverConnect
Entered hgopoer at 2012/05/31-13:11:26
hgopoer, line 233: got native error 0 and sqlstate HYC00; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Driver not capable {HYC00}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:26
hgolgon, line 795: calling SQLGetInfo got sqlstate HYC00
SQLGetInfo returns N for SQL_CATALOG_NAME
Exiting hgolgon, rc=0 at 2012/05/31-13:11:26 with error ptr FILE:hgolgon.c LINE:795 ID:GetInfo: Support catalogs
hostmstr: 2036506624: HOA After hoalgon
RPC Calling nscontrol(0), rc=0
hostmstr: 2036506624: RPC Before Upload Caps
hostmstr: 2036506624: HOA Before hoaulcp
Entered hgoulcp at 2012/05/31-13:11:26
Entered hgowlst at 2012/05/31-13:11:26
Exiting hgowlst, rc=0 at 2012/05/31-13:11:26
SQLGetInfo returns 0x0 for SQL_OWNER_USAGE
TXN Capable:1, Isolation Option:0x2
SQLGetInfo returns 0 for SQL_MAX_SCHEMA_NAME_LEN
SQLGetInfo returns 128 for SQL_MAX_TABLE_NAME_LEN
SQLGetInfo returns 0 for SQL_MAX_PROCEDURE_NAME_LEN
SQLGetInfo returns ` (0x60) for SQL_IDENTIFIER_QUOTE_CHAR
SQLGetInfo returns Y for SQL_COLUMN_ALIAS
16 instance capabilities will be uploaded
capno:1964, context:0x00000000, add-info: 0
capno:1989, context:0x00000000, add-info: 0
capno:1991, context:0x0001ffff, add-info: 0
capno:1992, context:0x0001ffff, add-info: 1, translation:"`"
capno:3042, context:0x00000000, add-info: 0, translation:"42"
capno:3047, context:0x00000000, add-info: 0, translation:"57"
capno:3049, context:0x00000000, add-info: 0, translation:"59"
capno:3050, context:0x00000000, add-info: 0, translation:"60"
capno:3066, context:0x00000000, add-info: 0
capno:3067, context:0x00000000, add-info: 0
capno:3068, context:0x00000000, add-info: 0
capno:3069, context:0x00000000, add-info: 0
capno:3500, context:0x00000001, add-info: 91, translation:"42"
capno:3501, context:0x00000001, add-info: 93, translation:"57"
capno:3502, context:0x00000001, add-info: 107, translation:"59"
capno:3503, context:0x00000001, add-info: 110, translation:"60"
Exiting hgoulcp, rc=0 at 2012/05/31-13:11:26
hostmstr: 2036506624: HOA After hoaulcp
hostmstr: 2036506624: RPC After Upload Caps
hostmstr: 2036506624: RPC Before Upload DDTR
hostmstr: 2036506624: HOA Before hoauldt
Entered hgouldt at 2012/05/31-13:11:27
NO instance DD translations were uploaded
Exiting hgouldt, rc=0 at 2012/05/31-13:11:27
hostmstr: 2036506624: HOA After hoauldt
hostmstr: 2036506624: RPC After Upload DDTR
hostmstr: 2036506624: RPC Before Begin Trans
hostmstr: 2036506624: HOA Before hoabegn
Entered hgobegn at 2012/05/31-13:11:27
tflag:0 , initial:1
hoi:0x12f094, ttid (len 54) is ...
00: 54455354 2E524547 52455353 2E524442 [TEST.REGRESS.RDB]
10: 4D532E44 45562E55 532E4F52 41434C45 [MS.DEV.US.ORACLE]
20: 2E434F4D 2E663033 63383037 372E392E [.COM.f03c8077.9.]
30: 34342E37 3735 [44.775]
tbid (len 10) is ...
0: 09002C00 07030000 0104 [..,.......]
Exiting hgobegn, rc=0 at 2012/05/31-13:11:27
hostmstr: 2036506624: HOA After hoabegn
hostmstr: 2036506624: RPC After Begin Trans
hostmstr: 2036506624: RPC Before Describe Table
hostmstr: 2036506624: HOA Before hoadtab
Entered hgodtab at 2012/05/31-13:11:27
count:1
table: CENTROS
Entered hgopdsc at 2012/05/31-13:11:27
Describing procedure CENTROS
Output hoada
hgopdsc, line 1426: NO hoada to print
Exiting hgopdsc, rc=942 at 2012/05/31-13:11:27
The hoada for table CENTROS follows...
hgodtab, line 904: NO hoada to print
Exiting hgodtab, rc=0 at 2012/05/31-13:11:27
hostmstr: 2036506624: HOA After hoadtab
hostmstr: 2036506624: RPC After Describe Table
hostmstr: 2036506624: RPC Before SQL Bundling
hostmstr: 2036506624: HOA Before hoxpars
Entered hgopars, cursor id 1 at 2012/05/31-13:11:27
type:0
SQL text from hgopars, id=1, len=23 ...
00: 53454C45 4354202A 2046524F 4D202243 [SELECT * FROM "C]
10: 454E5452 4F5322 [ENTROS"]
Exiting hgopars, rc=0 at 2012/05/31-13:11:28
hostmstr: 2036506624: HOA After hoxpars
hostmstr: 2036506624: RPC After SQL Bundling
hostmstr: 2036506624: RPC Before SQL Bundling
hostmstr: 2036506624: HOA Before hoxopen
Entered hgoopen, cursor id 1 at 2012/05/31-13:11:28
hgoopen, line 87: NO hoada to print
Deferred open until first fetch.
Exiting hgoopen, rc=0 at 2012/05/31-13:11:28
hostmstr: 2036506624: HOA After hoxopen
hostmstr: 2036506624: HOA Before hoxdscr
Entered hgodscr, cursor id 1 at 2012/05/31-13:11:28
Allocate hoada @ 023E983C
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]*Descriptor type out of range* {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:1(codcen): dtype:1 (CHAR), prc/scl:8/0, nullbl:0, octet:8, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:2(litcen): dtype:1 (CHAR), prc/scl:45/0, nullbl:0, octet:45, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:3(codpos): dtype:1 (CHAR), prc/scl:5/0, nullbl:0, octet:5, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:4(codprov): dtype:1 (CHAR), prc/scl:2/0, nullbl:0, octet:2, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:5(codmun): dtype:1 (CHAR), prc/scl:3/0, nullbl:0, octet:3, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:6(codecol): dtype:1 (CHAR), prc/scl:2/0, nullbl:0, octet:2, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:7(codesin): dtype:1 (CHAR), prc/scl:2/0, nullbl:0, octet:2, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:8(cb): dtype:1 (CHAR), prc/scl:4/0, nullbl:0, octet:4, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:9(cs): dtype:1 (CHAR), prc/scl:4/0, nullbl:0, octet:4, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:10(digitocon): dtype:1 (CHAR), prc/scl:2/0, nullbl:0, octet:2, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:11(cuenta): dtype:1 (CHAR), prc/scl:10/0, nullbl:0, octet:10, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopcda at 2012/05/31-13:11:28
Column:12(solar): dtype:2 (NUMERIC), prc/scl:5/0, nullbl:0, octet:10, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopcda at 2012/05/31-13:11:28
Column:13(construido): dtype:2 (NUMERIC), prc/scl:5/0, nullbl:0, octet:10, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:14(domicen): dtype:1 (CHAR), prc/scl:40/0, nullbl:0, octet:40, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:15(telef): dtype:1 (CHAR), prc/scl:11/0, nullbl:0, octet:11, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:16(fax): dtype:1 (CHAR), prc/scl:11/0, nullbl:0, octet:11, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:17(cif): dtype:1 (CHAR), prc/scl:11/0, nullbl:0, octet:11, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:18(litloc): dtype:1 (CHAR), prc/scl:30/0, nullbl:0, octet:30, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
hgodscr, line 910: Printing hoada @ 023E983C
MAX:18, ACTUAL:18, BRC:100, WHT=5 (SELECT_LIST)
hoadaMOD bit-values found (0x200:TREAT_AS_CHAR)
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
1 CHAR N 8 8 0/ 0 0 0 200 codcen
1 CHAR N 45 45 0/ 0 0 0 200 litcen
1 CHAR N 5 5 0/ 0 0 0 200 codpos
1 CHAR N 2 2 0/ 0 0 0 200 codprov
1 CHAR N 3 3 0/ 0 0 0 200 codmun
1 CHAR N 2 2 0/ 0 0 0 200 codecol
1 CHAR N 2 2 0/ 0 0 0 200 codesin
1 CHAR N 4 4 0/ 0 0 0 200 cb
1 CHAR N 4 4 0/ 0 0 0 200 cs
1 CHAR N 2 2 0/ 0 0 0 200 digitocon
1 CHAR N 10 10 0/ 0 0 0 200 cuenta
3 DECIMAL N 7 7 5/ 0 0 0 0 solar
3 DECIMAL N 7 7 5/ 0 0 0 0 construido
1 CHAR N 40 40 0/ 0 0 0 200 domicen
1 CHAR N 11 11 0/ 0 0 0 200 telef
1 CHAR N 11 11 0/ 0 0 0 200 fax
1 CHAR N 11 11 0/ 0 0 0 200 cif
1 CHAR N 30 30 0/ 0 0 0 200 litloc
Exiting hgodscr, rc=0 at 2012/05/31-13:11:28 with error ptr FILE:hgodscr.c LINE:615 ID:Transfer Octet Length
hostmstr: 2036506624: HOA After hoxdscr
hostmstr: 2036506624: RPC After SQL Bundling
hostmstr: 2036506624: RPC Before SQL Bundling
hostmstr: 2036506624: HOA Before hoxclse
Entered hgoclse, cursor id 1 at 2012/05/31-13:11:28
Exiting hgoclse, rc=0 at 2012/05/31-13:11:28
hostmstr: 2036506624: HOA After hoxclse
hostmstr: 2036506624: HOA Before hoadafr
Entered hgodafr, cursor id 1 at 2012/05/31-13:11:28
Free hoada @ 023E983C
Exiting hgodafr, rc=0 at 2012/05/31-13:11:28
hostmstr: 2036506624: HOA After hoadafr
hostmstr: 2036506624: HOA Before hoxpars
Entered hgopars, cursor id 1 at 2012/05/31-13:11:28
type:0
SQL text from hgopars, id=1, len=235 ...
00: 53454C45 43542041 312E2263 6F646365 [SELECT A1."codce]
10: 6E222C41 312E226C 69746365 6E222C41 [n",A1."litcen",A]
20: 312E2263 6F64706F 73222C41 312E2263 [1."codpos",A1."c]
30: 6F647072 6F76222C 41312E22 636F646D [odprov",A1."codm]
40: 756E222C 41312E22 636F6465 636F6C22 [un",A1."codecol"]
50: 2C41312E 22636F64 6573696E 222C4131 [,A1."codesin",A1]
60: 2E226362 222C4131 2E226373 222C4131 [."cb",A1."cs",A1]
70: 2E226469 6769746F 636F6E22 2C41312E [."digitocon",A1.]
80: 22637565 6E746122 2C41312E 22736F6C ["cuenta",A1."sol]
90: 6172222C 41312E22 636F6E73 74727569 [ar",A1."construi]
A0: 646F222C 41312E22 646F6D69 63656E22 [do",A1."domicen"]
B0: 2C41312E 2274656C 6566222C 41312E22 [,A1."telef",A1."]
C0: 66617822 2C41312E 22636966 222C4131 [fax",A1."cif",A1]
D0: 2E226C69 746C6F63 22204652 4F4D2022 [."litloc" FROM "]
E0: 43454E54 524F5322 204131 [CENTROS" A1]
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 200 and sqlstate 42000; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Syntax error. {42000,NativeErr = 200}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgopars, line 457: calling SQLPrepare got sqlstate 42000
Exiting hgopars, rc=28500 at 2012/05/31-13:11:28 with error ptr FILE:hgopars.c LINE:487 ID:Prepare stmt
hostmstr: 2036506624: HOA After hoxpars
hostmstr: 2036506624: RPC After SQL BundlingThe first issue I see is that Oracle 10.2.0.1 was never certified with DG4ODBC 11. Only 10.2.0.4 or 10.2.0.5 can be used as the Oracle database HS kernel requires a gateway compatibility patch and this patch is included in 10.2.0.4 or 10.2.0.5 Oracle database patch set.
Then another error in the trace is that for each column description you have an error:
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]*Descriptor type out of range* {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
It seems it is not critical as DG4ODBC continues, but a more detailed analysis would require an ODBC trace.
When looking at the table description it seems the column names are all in lower letters, for example: solar. So commonly Dg4ODBC needs to quote the names
00: 53454C45 43542041 312E2263 6F646365 [SELECT A1."codce]
10: 6E222C41 312E226C 69746365 6E222C41 [n",A1."litcen",A]
20: 312E2263 6F64706F 73222C41 312E2263 [1."codpos",A1."c]
30: 6F647072 6F76222C 41312E22 636F646D [odprov",A1."codm]
40: 756E222C 41312E22 636F6465 636F6C22 [un",A1."codecol"]
50: 2C41312E 22636F64 6573696E 222C4131 [,A1."codesin",A1]
60: 2E226362 222C4131 2E226373 222C4131 [."cb",A1."cs",A1]
70: 2E226469 6769746F 636F6E22 2C41312E [."digitocon",A1.]
80: 22637565 6E746122 2C41312E 22736F6C ["cuenta",A1."sol]
90: 6172222C 41312E22 636F6E73 74727569 [ar",A1."construi]
A0: 646F222C 41312E22 646F6D69 63656E22 [do",A1."domicen"]
B0: 2C41312E 2274656C 6566222C 41312E22 [,A1."telef",A1."]
C0: 66617822 2C41312E 22636966 222C4131 [fax",A1."cif",A1]
D0: 2E226C69 746C6F63 22204652 4F4D2022 [."litloc" FROM "]
E0: 43454E54 524F5322 204131 [CENTROS" A1]
and according to the trace the FoxPro ODBC driver doesn't like these quotes and reports a syntax error.
So this explains at least why select codcen from centros@fox1 will fail. In general the Oracle database is case insensitive and translates all object names to upper case and the select it will pass to the foreign database would be similar to:
select CODCEN from CENTROS => which will fail as FoxPro is case sensitive. So the error message ORA-00904 (missing column name) is correct and the statement you need to use is:
select "codcen" from centros@fox1;
But this might lead again to the Syntax error you got earlier => You need to check which sign (single quote, back tick, double quote) Foxpro uses to quote object names and then set the gateway parameter HS_FDS_QUOTE_IDENTIFIER accordingly.
To check which character can be used to quote column/table names you might use the Microsoft ODBc test utility which was distributed in the old MDAC 2.8:
http://www.microsoft.com/downloads/details.aspx?familyid=5067faf8-0db4-429a-b502-de4329c8c850&displaylang=en
Edited by: kgronau on Jun 1, 2012 7:27 AM
If you know where I can download the MS FoxPro ODBC driver, please let me know and I'll check. -
My wife and I have separate have separate user accounts on our IMac. We have separate Apple IDs for iTunes. How can we use iCloud on our separate iPhones without sharing contacts, calendars, etc.
If have separate iCloud accounts and want to keep your all your iCloud data separate, you can create separate user accounts for each of you, then sign into your individual iCloud account within your user account.
If you want to just add both iCloud calendars on your Mac, you can sign into one iCloud account in System Preferences>iCloud, then add the second account in System Preferences>Internet Accounts>iCloud and only check Calendars with this second account. -
Internet Gateway Listed in Network Connections
Anyone know why I would have an Internet Gateway listed in Network Connections? If I disable it I cannot access the Internet. No other PC in my home has this, except one desktop. Running XP.
Thanks
Jim
Solved!
Go to Solution.My advise is..
If you do not have at least two game consoles behind this router, turn off UPnP in the router.
This is done in the router at Advanced -> UPnP.
By game consoles, any two..
#1 For example: X-box, PlayStation.
#2 A special type of computer with no keyboard or mouse. And it is usually connected to a TV.
If you are the original poster (OP) and your issue is solved, please remember to click the "Solution?" button so that others can more easily find it. If anyone has been helpful to you, please show your appreciation by clicking the "Kudos" button. -
For any given Bookmarks folder, is it possible to have the subfolders all appear *above* the individual links (as they do in Internet Explorer), rather than mixed together alphabetically? (Or is there perhaps an add-on that will allow me to do this?)
Provisional solution is to place one or more zeros in front of your folder names, that way they should always appear on top in their alphabetical order.
-
GuysNeed some assistance on providing internet access at a branch site for clients. Any thoughts and suggestions welcome and appreciatedWe have a number of branch offices connected over ISP managed MPLS network, any-2-any. I am looking at implementing some kind of internet access at the branch offices, either wired or wireless. We manage all the L1 and L2 connectivity at the sites, and the L3 side at our hub offices, of which we have 2, mainly for internet traffic etc, which isnt provided by our MPLS ISPCurrently all internet traffic for all sites goes to our data centre and is routed out through our firewall. Routing isnt an issue here, its more the best way to set this up securely.My initial thoughts were to set aside a whole bunch of ports on a seperate PVLAN that would connect the clients to the network (I am not conerned about the clients talking to each other, as long as they cant reach the local vlans). But the problem may lie at the firewall end, as I will need to specify specific hosts for port 80, 443 traffic only. Would a seperate DHCP scope, of say a /28, allowing 16 hosts only be an idea? Then I wouldnt have to mess around with firewall changes for different hosts all the timeThanks
Hi,
How are things going?
I agree with Darshana. You could connect to Internet by using a router. Router can be configured to enable all users in a network to share a single connection to the Internet. Routing and Remote Access of windows server provides built-in
routing services that can be used to connect an organization to the Internet through a routed connection to an ISP.
You can also configure a windows server as a NAT server in your network. A network address translator is an IP router that can translate IP addresses and TCP or UDP port numbers of packets as they are being forwarded. NAT translates private
IP addresses to external, public IP addresses. Then the computers of LAN can access Internet.
Best Regards,
Tina
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] -
Finding the complete hierarchy of all child records for a given root
Hi,
We need to find the hierarchy starting from a given root by exploding the hierarchy of each child present in the hierarchy.
Consider a data as given below.
Seq_no denotes a primary key.
Child_id denotes the child node in the hierarchy
Parent_id indicates the immediate parent of the child record
Root_id denotes the starting point of the hierarchy.
Within a given hierarchy the root_id will remain the same and parent_id will keep on changing as required.
Seq_No Child_id Parent_id Root_id
101 1 NULL 1
102 2 1 1
103 3 2 1
104 4 1 1
105 5 3 1
106 4 NULL 4
107 7 4 4
108 8 4 4
109 9 7 4
110 3 NULL 3
111 4 3 3
112 5 3 3
The requirement is to pull the hierarchy starting from a given root traversing down the path by exploding the hierarchy of each and every child present in that hierarchy. It is explained using below example.
For root_id value as 4, the expected o/p is
child_id path
7 /7
9 /7/9
8 /8
For root_id value as 3, the expected o/p is
child_id path
4 /4
7 /4/7 ---> Hierarchy with root_id 4 gets exploded
8 /4/8
9 /4/7/9
5 /5
For root_id value as 1, the expected o/p is
child_id path
2 /2
3 /2/3 ---> Hierarchy with root_id 3 gets exploded
4 /2/3/4 ---> Hierarchy with root_id 4 gets exploded
7 /2/3/4/7
9 /2/3/4/7/9
8 /2/3/4/8
5 /2/3/5
4 /4
7 /4/7
8 /4/8
9 /4/7/9
5 /5
5 /2/3/5
Also, additionally, if there exist any cyclic child records in the hierarchy, the exploding should stop there itself.
CREATE TABLE xyz
SEQ_NO NUMBER,
ITEM_ID NUMBER,
PARENT_ITEM_ID NUMBER,
ROOT_ITEM_ID NUMBER
Insert into xyz
(SEQ_NO, ITEM_ID, ROOT_ITEM_ID)
Values
(1, 1, 1);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(2, 2, 1, 1);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(3, 3, 1, 1);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(4, 4, 2, 1);
Insert into xyz
(SEQ_NO, ITEM_ID, ROOT_ITEM_ID)
Values
(8, 3, 3);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(9, 10, 3, 3);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(10, 11, 10, 3);
Insert into xyz
(SEQ_NO, ITEM_ID, ROOT_ITEM_ID)
Values
(12, 10, 10);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(13, 12, 10, 10);
Insert into xyz
(SEQ_NO, ITEM_ID, ROOT_ITEM_ID)
Values
(14, 11, 11);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(15, 13, 11, 11);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(16, 14, 11, 11);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(21, 23, 13, 11);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(104, 16, 91, 14);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(19, 16, 12, 10);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(20, 17, 16, 10);
Insert into xyz
(SEQ_NO, ITEM_ID, ROOT_ITEM_ID)
Values
(101, 110, 110);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(102, 111, 110, 110);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(103, 17, 110, 110);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(29, 31, 17, 10);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(30, 32, 17, 10);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(31, 33, 16, 10);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(35, 49, 23, 11);
Insert into xyz
(SEQ_NO, ITEM_ID, ROOT_ITEM_ID)
Values
(41, 14, 14);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(42, 91, 14, 14);
Insert into xyz
(SEQ_NO, ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID)
Values
(43, 92, 91, 14);
COMMIT;
Pl advise.
Thanks,
- Ajit
Edited by: 952105 on Aug 10, 2012 10:44 AMMy application tracks the product master that stores a product configuration along with its all child/sub-child records. There exists many such configurations for various parts.
There can exist only one configuration for a given product at any point in time. But, at the same time, this product can be a part of other product configurations too (i.e. it can exist as a child in other hierarchies).
Now, the business requirement is to pull the hierachy starting from a given product (as a root). This should also pull the hierarchy of each child/subchild existing under its hieararchy, if there exist a separate configuration for those child/subchild products.
SET DEFINE OFF;
CREATE TABLE XYZ
ITEM_ID NUMBER,
PARENT_ITEM_ID NUMBER,
ROOT_ITEM_ID NUMBER,
QUANTITY NUMBER,
LINE_ID VARCHAR2(10 BYTE)
Here, root_item_id denotes the product for which the configuration has been defined. All its child/sub-child records gets stored under this root_item_id itself. The parent_item_id column will get stored appropriately based on the immediate parent of the product under that hierarchy.
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(2, 1, 1, 5, '1.1');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(3, 1, 1, 5, '1.2');
Insert into XYZ
(ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(1, 1, 1, '1.0');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(4, 2, 1, 6, '1.1.1');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(10, 3, 3, 4, '1.1');
Insert into XYZ
(ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(3, 3, 4, '1.0');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(11, 10, 3, 15, '1.1.1');
Insert into XYZ
(ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(10, 10, 7, '1.0');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(12, 10, 10, 9, '1.1');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(16, 12, 10, 99, '1.1.1');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(17, 16, 10, 77, '1.1.1.1');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(31, 17, 10, 2, '1.1.1.1.1');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(33, 16, 10, 5, '1.1.1.2');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(32, 17, 10, 3, '1.1.1.1.2');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(14, 11, 11, 10, '1.2');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(13, 11, 11, 9, '1.1');
Insert into XYZ
(ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(11, 11, 8, '1.0');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(23, 13, 11, 77, '1.1.1');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(49, 23, 11, 5, '1.1.1.1');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(16, 91, 14, 56, '1.1.2');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(92, 91, 14, 10, '1.1.1');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(91, 14, 14, 8, '1.1');
Insert into XYZ
(ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(14, 14, 6, '1.0');
Insert into XYZ
(ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(110, 110, 1, '1.0');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(17, 110, 110, 1, '1.2');
Insert into XYZ
(ITEM_ID, PARENT_ITEM_ID, ROOT_ITEM_ID, QUANTITY, LINE_ID)
Values
(111, 110, 110, 1, '1.1');
COMMIT;
The expected result for product with root_item_id as 14
item_id hierarchy_path
11 /11
13 /11/13
23 /11/13/23
49 /11/13/23/49
14 /11/14 -- it should explode the hierarchy of product with id 14
91 /11/14/91 as there exists a configuration for this product as a root
16 /11/14/91/16
92 /11/14/91/92
In above example, it should explode the hierarachy of other products too (item_id 13,23 etc) if there exists a product configuration (starting with root_item_id as 13 or 23 etc.) for them in the table.
Thanks,
- Ajit
Maybe you are looking for
-
Display a word document in a flex3 ria
hi, I am new to flex developing and i would like to how you can display documents in a flex application. I want to let the user read word, ppt, pdf documents from the site rather than making them down the docs and read. Can anybody help me in this ?
-
ACS Express 5.0 - "unique authentication" what does it mean?
Hi to all, the ACS Express 5.0 datasheet states: "Cisco ACS Express supports a maximum of 50 AAA clients and 350 unique user logins in a 24-hour period" It's clear what's the meaning of the max 50 AAA clients...in fact what is not clear is regarding
-
Flattening PSD's to Jpeg sometimes loses adjustment layer effects.
When applying the glowing edges filter or find edges filter to an image and then using an adjustment layer such as Hue/Sat or Levels the flattened image no longer retains the adjustments added. The same image using a conte crayon filter and adjustmen
-
I do not want firefox to ask me if I want to return to a previous session every time I open it
I think every time I turn the computer on or re open Firefox I am asked if I want to return to a previous session . I do not want to be asked.
-
Everything under network status failed
My wifi isnt turning on even though i do it manually so i cant even go into my safari,mail,or anything also when i go to network diagnostics everything under the network status are all red/failed and it doesnt even show on the startup page and tool b