How to troubleshoot Miracast pairing/connecting?

Using Windows 8.1. I'm having trouble getting Miracast to pair properly with a TV. Using certain modes on the TV, sometimes I manage to add it as a device, for a few seconds anyway, but establishing an actual connection in the Project menu never works.
Is there a way to enable logging to see what's going on in the pairing/adding process, and when trying to connect for projection?

Hi,
How did you operate? Have you add it successfully?
If yes, remove it completely, and then follow this guide to get it:
Windows 8.1 on your big screen with Miracast
http://blogs.windows.com/bloggingwindows/2013/11/12/windows-8-1-on-your-big-screen-with-miracast/
Note: Wireless display is available on most new Windows 8.1 PCs, but some PC manufacturers might choose not to include it on some new and upgraded PCs. Specifically, your PC needs WDDM 1.3 display and NDIS 6.4 Wi-Fi drivers, enabled by the IHV and OEM for
Miracast. If you don’t see “Add a wireless display” when you tap the
Devices charm and tap Project, try going to Windows Update and downloading all available updates (including optional drivers). If you still don’t see it, check for additional updates on your PC manufacturer’s support site,
or contact them to ask how you can get this feature on your PC.
Karen Hu
TechNet Community Support

Similar Messages

  • How to troubleshoot iphone 5s connectivity issue with iTunes on Windows 7

    When I connect my new iPhone 5s to my Windows 7 home edition PC with the latest version of iTunes, the PC recognizes it. From My Computer I can see a new item "iPhone", which can be opened to show internal storage (photos). However iTunes never sees my phone. If I run diagnostics from iTunes it reports that no devices are found. In the meanwhile, my iPad can connect and get recognized by iTunes without any problem.
    What is missing?
    Thanks.

    Okay I found the solution - I'm still surprised this actually worked - which is to connect the phone through a powered USB hub. That's it! iTunes finally wakes up and syncs my phone!
    I hope this helps those who might stumble over the same issue.
    Cheers.

  • Where/how to troubleshoot external gateway and internal connection brokers etc.??????

    We have gateway.domain.org as our external/internal gateway server.
    It goes from gateway.domain.org to rdbroker.domain.local, rdbroker is the DNS address for two connection broker servers.
    After this it should set up the connection and create a remote desktop to one of the RDS host servers in the RDS host farm.
    Sometimes this works, sometimes it doesn't -- for different user accounts and different computers.
    How to troubleshoot this??
    We know the firewall rules for DMZ etc. etc. are properly configured because everything IS observed to work, just not all the time consistently. We get errors about cannot contact the computer, cannot establish remote desktop connection...
    Thank you, Tom

    Hi Tom,
    Firstly, you need to recheck the DNS entry is well setup for your case. Are you using DNS RR for Load balancing the server or 3rd party load balancer? Have you setup the proper certificate for your case?
    Please check whether required ports is opened? We need to open TCP port 443 and UDP port 3391 and forward them to your RD Gateway server. Also need to specify the external FQDN of your RD Gateway server in deployment properties under RDS server manager. If
    you have RDWeb and RDG on the same server this would be the same FQDN that your users will use for RDWeb. Please see whether you have properly configured RD RAP and RD CAP policy. 
    You can go through beneath article for more details.
    Step by Step Windows 2012 R2 Remote Desktop Services – Part 3
    https://msfreaks.wordpress.com/2013/12/26/windows-2012-r2-remote-desktop-services-part-3/
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    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 Support, contact [email protected]

  • My mac will not send or receive email's... its not internet connection... my iPhone still receives emails... so I'm not sure how to troubleshoot this problem, any ideas?

    my mac will not send or receive email's... its not internet connection... my iPhone still receives emails... so I'm not sure how to troubleshoot this problem, any ideas?

    What does the Mail Connection Doctor return?
    The link in my first replay included :
    If you still can’t send or receive email
    Mail Connection Doctor may be able to tell you more about the issue.

  • HT204291 3th. gen apple TV with 5.2.1 and mac mini with 10.8.3, only black screen on TV after selecting Apple TV on the airplay icon. how to troubleshoot?

    I have a 3th Gen Apple TV and a late 2012 mac mini with IOS 10.8.3
    - Connected thru HDMI to an ASUS monitor
    - Apple tv connected with wire
    - Mac Mini connected wireless.
    - I can see the Airplay icon on the screen
    - I can select my apple TV on the icon pull-down menu (first time it asked me for apple TV password)
    - Once selected, my monitor resolution changes and apple TV goes to a blank screen. On the pull-down menu, my apple TV papears selected and the option "match desktop size to:" is selected for my Apple TV.
    Any ideas on how to troubleshoot?
    Additional Info:
    - I can stream from iTunes music with no problem
    - From an Air (on same wireless network) I can mirror my display. And form iPad and iPhone I can stream video and music.

    Welcome to the Apple Community.
    Try the following steps, check whether things are working after each step where appropriate, before trying the next.
    Check AirPlay is turned on on the Apple TV (turn it off and on if it already is)
    Check that both devices are on the same network (Settings > Wifi, on the mobile device and Settings > General > Network, on the Apple TV).
    Restart the Apple TV (Settings > General > Restart).
    Restart the Apple TV by removing ALL the cables for 30 seconds.
    Restart your router. (Also try removing it’s power cord for at least 30 seconds)
    Restart your mobile device.
    If you are still having problems, the following article(s) may help you.
    Troubleshooting AirPlay
    Troubleshooting Wi-Fi networks and connections
    Recommended Wi-Fi settings
    Wifi Diagnostic Software (for Mac users)
    You may also find some help on this page, where I’ve collected some of the more unusual solutions to network issues.
    When making adjustments to your network for better optimisation, you may find some of the points mentioned on this page helpful.

  • Help to troubleshoot a 3G connection.

    Hello!
    I need help to troubleshoot a 3G connection.
    It's a CISCO2921/K9 with UC license and a 3G Interface.
    I used the manual to make the configuration, step by step, I can send and receive SMS by 3G network, and connect, take a IP, DNS etc, but I don't able to ping or send and receive data with the 3G connection.
    See the information:
    show ip int br
    Interface                  IP-Address      OK? Method Status                Protocol
    Embedded-Service-Engine0/0 unassigned      YES NVRAM  administratively down down    
    GigabitEthernet0/0         192.168.50.1    YES NVRAM  up                    up      
    GigabitEthernet0/1         192.168.6.253   YES DHCP   up                    up      
    GigabitEthernet0/2         unassigned      YES NVRAM  administratively down down    
    Cellular0/0/0              unassigned      YES NVRAM  up                    up      
    Cellular0/0/1              unassigned      YES unset  down                  down    
    Dialer1                    191.27.49.172   YES IPCP   up                    up      
    NVI0                       192.168.50.1    YES unset  up                    up      
    I have a radio ISP connected on interface G0/1 and my internal network is connected in G0/0 on a Layer 3 Switch.
    3G configuration:
    chat-script hspa-R7 "" "AT!SCACT=1,1" TIMEOUT 60 "OK"
    cellular 0/0/0 gsm profile create 1 zap.vivo.com.br PAP vivo vivo
    interface Cellular0/0/0
     ip address negotiated
     ip nat outside
     ip virtual-reassembly in
     encapsulation slip
     dialer persitent
     dialer pool-member 1
     async mode interactive
    interface Dialer1
     ip address negotiated
     ip nat outside
     ip virtual-reassembly in
     encapsulation slip
     dialer pool 1
     dialer idle-timeout 0
     dialer string hspa-R7
     dialer persistent
     dialer-group 99
    ip nat inside source list 1 interface GigabitEthernet0/1 overload
    ip nat inside source list 89 interface Cellular0/0/0 overload
    ip nat inside source list 90 interface Dialer1 overload
    access-list 1 permit any
    access-list 89 permit any
    access-list 90 permit any
    ip route 0.0.0.0 0.0.0.0 Dialer1
    ip route 0.0.0.0 0.0.0.0 192.168.6.1
    access-list 1 permit any
    access-list 89 permit any
    access-list 90 permit any
    line 0/0/0
     exec-timeout 0 0
     script dialer hspa-R7
     modem InOut
     no exec
     transport input all
    Dialer1 is up, line protocol is up (spoofing)
      Hardware is Unknown
      Internet address is 191.27.49.172/32
      MTU 1500 bytes, BW 56 Kbit/sec, DLY 20000 usec,
         reliability 255/255, txload 1/255, rxload 1/255
      Encapsulation SLIP, loopback not set
      Keepalive set (10 sec)
      DTR is pulsed for 1 seconds on reset
      Interface is bound to Ce0/0/0
      Last input never, output never, output hang never
      Last clearing of "show interface" counters 00:15:57
      Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
      Queueing strategy: fifo
      Output queue: 0/40 (size/max)
      5 minute input rate 0 bits/sec, 0 packets/sec
      5 minute output rate 0 bits/sec, 0 packets/sec
         0 packets input, 0 bytes
         508 packets output, 41923 bytes
    Bound to:
    Cellular0/0/0 is up, line protocol is up
      Hardware is QuadBand HSPA+R7/HSPA/UMTS QuadBand EDGE/GPRS and GPS for AT&T
      Description: PrimaryWANDesc_
      Internet address will be assigned dynamically by the network
      MTU 1500 bytes, BW 5760 Kbit/sec, DLY 20000 usec,
         reliability 255/255, txload 1/255, rxload 1/255
      Encapsulation SLIP, loopback not set
      Keepalive not supported
      Interface is bound to Di1 (Encapsulation SLIP)
      Last input never, output never, output hang never
      Last clearing of "show interface" counters never
      Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
      Queueing strategy: fifo
      Output queue: 0/10 (size/max)
      5 minute input rate 0 bits/sec, 0 packets/sec
      5 minute output rate 0 bits/sec, 0 packets/sec
         0 packets input, 0 bytes, 0 no buffer
         Received 0 broadcasts (0 IP multicasts)
         0 runts, 0 giants, 0 throttles
         0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
         508 packets output, 41923 bytes, 0 underruns
         0 output errors, 0 collisions, 0 interface resets
         0 unknown protocol drops
         0 output buffer failures, 0 output buffers swapped out
         0 carrier transitions
         DCD=up  DSR=up  DTR=up  RTS=up  CTS=up
    Profile Information
    ====================
    Profile password Encryption level: 7
    Profile 1 = ACTIVE* **
    PDP Type = IPv4
    PDP address = 191.27.49.172
    Access Point Name (APN) = zap.vivo.com.br
    Authentication = PAP
    Username: vivo
    Password: 0870191E5D495746335B2E
        Primary DNS address = 187.100.246.254
        Secondary DNS address = 187.100.246.251
    Profile 2 = INACTIVE
    PDP Type = IPv4
    Access Point Name (APN) = wap.cingular
    Authentication = None
    Username:
    Password: 03
      * - Default profile
    Data Connection Information
    ===========================
    Data Transmitted = 41923 bytes, Received = 0 bytes
    Profile 1, Packet Session Status = ACTIVE
        IP address = 191.27.49.172
        Primary DNS address = 187.100.246.254
        Secondary DNS address = 187.100.246.251
        Negotiated QOS Parameters:
        Precedence = Normal Priority, Delay = Class 2
        Reliability = Unack GTP, LLC, Ack RLC, Protected data
        Peak = 256 kB/sec, Mean = 50000 kB/hr
        Traffic Class = Interactive
        Uplink Max = 11.5Mbps, Guaranteed = Subscribed
        Downlink Max = 42Mbps, Guaranteed = Subscribed
        Max SDU size = 1500 bytes
        SDU error ratio = 1E-4, BER = 1E-5
    Profile 2, Packet Session Status = INACTIVE
        Inactivity Reason = Normal inactivate state
    Profile 3, Packet Session Status = INACTIVE
        Inactivity Reason = Normal inactivate state
    Profile 4, Packet Session Status = INACTIVE
        Inactivity Reason = Normal inactivate state
    Profile 5, Packet Session Status = INACTIVE
        Inactivity Reason = Normal inactivate state
    Profile 6, Packet Session Status = INACTIVE
        Inactivity Reason = Normal inactivate state
    Profile 7, Packet Session Status = INACTIVE
        Inactivity Reason = Normal inactivate state
    Profile 8, Packet Session Status = INACTIVE
        Inactivity Reason = Normal inactivate state
    Profile 9, Packet Session Status = INACTIVE
        Inactivity Reason = Normal inactivate state
    Profile 10, Packet Session Status = INACTIVE
        Inactivity Reason = Normal inactivate state
    Profile 11, Packet Session Status = INACTIVE
        Inactivity Reason = Normal inactivate state
    Profile 12, Packet Session Status = INACTIVE
        Inactivity Reason = Normal inactivate state
    Profile 13, Packet Session Status = INACTIVE
        Inactivity Reason = Normal inactivate state
    Profile 14, Packet Session Status = INACTIVE
        Inactivity Reason = Normal inactivate state
    Profile 15, Packet Session Status = INACTIVE
        Inactivity Reason = Normal inactivate state
    Profile 16, Packet Session Status = INACTIVE
        Inactivity Reason = Normal inactivate state
    Network Information
    ===================
    Current Service Status = Normal, Service Error = None
    Current Service = Combined
    Packet Service = HSPA+ (Attached)
    Packet Session Status = Active
    Current Roaming Status = Home
    Network Selection Mode = Automatic
    Country = BRA, Network = VIVO
    Mobile Country Code (MCC) = 724
    Mobile Network Code (MNC) = 23
    Location Area Code (LAC) = 27135
    Routing Area Code (RAC) = 4
    Cell ID = 57743
    Primary Scrambling Code = 115
    PLMN Selection = Automatic
    Registered PLMN =  , Abbreviated =
    Service Provider = VIVO
    Radio Information
    =================
    Radio power mode = ON
    Current Band = WCDMA 850, Channel Number = 4385
    Current RSSI = -60 dBm
    Band Selected = Auto
    Number of nearby cells = 1
    Cell 1
        Primary Scrambling Code = 0x73
        RSCP = -63 dBm, ECIO = -7 dBm
    Modem Security Information
    ==========================
    Card Holder Verification (CHV1) = Disabled
    SIM Status = OK
    SIM User Operation Required = None
    Number of CHV1 Retries remaining = 3
    Incoming Message Information
    SMS stored in modem = 1
    SMS archived since booting up = 0
    Total SMS deleted since booting up = 0
    Storage records allocated = 30
    Storage records used = 1
    Number of callbacks triggered by SMS = 0
    Number of successful archive since booting up = 0
    Number of failed archive since booting up = 0

    Refer this URL for how to configure the modem through serial port
    http://docs.sun.com:80/ab2/coll.47.11/SYSADV2/@Ab2PageView/17395?DwebQuery=modem+configuration&Ab2Lang=C&Ab2Enc=iso-8859-1
    Thanks,
    Senthilkumar
    Developer Technical Support
    Sun Microsystems, Inc.
    http://www.sun.com/developers/support

  • How does a BlackBerry handheld connect to BES for the first time?

    How does a Blackberry device connect to BlackBerry Enterprise Server (BES) for the first time? Is there a risk that a rogue BlackBerry handheld connects to BES?
    Thank you in advance!

    Hi and Welcome to the Forums!
    When a BES admin sets up a BB on BES, they configure the unique BB PIN into their BES and also create credentials that are required to actually complete the registration process on the BB. So, while there is no perfect security anywhere, I don't think the risk you are concerned about is high enough to warrant any attention.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • TS1398 Hi. My wifi keeps disconnecting. I kkep turning the wifi on and off in settings but will disconnect again after a minute or so. I use an ipad2 and my ios is updated. How to troubleshoot? - kay peralta

    Hi. My wifi keeps disconnecting. I keep turning the wifi on and off in settings but will disconnect again after a minute or so. I use an ipad2 and my ios is updated. How to troubleshoot? - kay peralta

    Is this happening with one particular network or with all?  Make sure iOS is updated on the device.
    Try this:
    Reboot ipad by pressing and holding both the home and sleep/wake buttons at the same time until the apple logo appears on the screen, then let go. Then try to connect to network.
    Go to settings, Toggle airplane mode on/off. Make sure bluetooth is off. Turn on wif (airplane mode off). Try to connect.
    Reset Network Settings
    Go to settings/general/reset/reset network settings. Then try to connect to network.
    If its your home router, then reboot router by unplugging for 5-10min. (do this while you're resetting network settings).
    If problem persists, then check for firmware updates on your router.(you check router manufacturer support website for downloads and instructions).

  • I kept having errors on my Apple ID with frostycup=1 and STATUS_CODE_ERROR. How to troubleshoot them?

    How to troubleshoot them and eliminate the frostycup=1 and STATUS_CODE_ERROR.

    Hey Lee,
    To make sure we are on the same page you are trying to access and download content the Mac App Store. From the time of your post, I do know that the multiple online stores were having issues with accessing content. Any time you have issues with connecting to any store, take a look at the link below to check the status of all of Apple’s services. If you cannot access that content now let me know. 
    Apple Services, Stores, and iCloud
    https://www.apple.com/support/systemstatus/
    Take care,
    -Norm G.  

  • I am unintentionally come to delete the bluetooth connection to my heart rate monitor in my iPhone 4s. How can I restore the connection?

    I am unintentionally come to delete the bluetooth connection to my heart rate monitor in my iPhone 4s. How can I restore the connection?

    Thanks, but unfortunately for me the Polar H7 does not have any buttons or anything that can actively affect the pairing, it is manifest just a transmitter. Pairing can apparently only be done by finding the Polar H7 in the unit that you want to pair with (my 4s) and after my delete of the device, my iPhone 4s does not retrieve it as a Bluetooth device.

  • How to solve unable to connect ipad issue

    Has anyone been able to solve the unable to connect to network issue?

    Some things to try first:
    1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    4. Go into your router security settings and change from WEP to WPA with AES.
    5.  Renew IP Address: (especially if you are droping internet connection)
        •    Launch Settings app
        •    Tap on Wi-Fi
        •    Tap on the blue arrow of the Wi-Fi network that you connect to from the list
        •    In the window that opens, tap on the Renew Lease button
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    iOS 6 Wifi Problems/Fixes
    How To: Workaround iPad Wi-Fi Issues
    http://www.theipadfan.com/workaround-ipad-wifi-issues/
    Another Fix For iOS 6 WiFi Problems
    http://tabletcrunch.com/2012/10/27/fix-ios-6-wifi-problems-ssid/
    Wifi Doesn't Connect After Waking From Sleep - Sometimes increasing screen brightness prevents the failure to reconnect after waking from sleep. According to Apple, “If brightness is at lowest level, increase it by moving the slider to the right and set auto brightness to off.”
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    How to Fix a Poor Wi-Fi Signal on Your iPad
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Fix-A-Poor-Wi-Fi-Signal-O n-Your-iPad.htm
    iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Connect iPad to Wi-Fi (with troubleshooting info)
    http://thehowto.wikidot.com/wifi-connect-ipad
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • How can I prevent "the connection has timed out" message.

    Sorry, this is a duplicate. Can't determine how to delete. Mike.
    Frequently takes a full minute to get to first page. Happens on IE as well as FF, also on my email client. After an hour or so, Thunderbird can no longer reach my email,with an error. To recover I have to reboot.
    Occasionally "try again" button works on the "connection has timed out" message
    Some tools which access the web take a long time to “update”,
    is hard to recreate have not proven or disproven the firewall is a problem. Don't think WinXP firewall is on.
    Tried refresh of Adobe Flash Player per suggestion in Firefox Support forum, no help.

    Hello there, FloridaAce.
    The following Knowledge Base article offers up some practical first steps for troubleshooting Wi-Fi connectivity issues with an iOS device:
    iOS: Troubleshooting Wi-Fi networks and connections
    If going through the initial recommended steps doesn't yield a resolution to your issue, you may want to run through this section as well:
    Wi-Fi disconnects or signal strength is less than expected
    Move closer to the Wi-Fi router (access point).
    Check for sources of potential interference.
    Remove any case, stand, or other accessories from your iOS device and see if signal strength improves.
    Reset network settings by tapping Settings > General > Reset > Reset Network Settings. Note: This will reset all network settings including
    previously connected Wi-Fi networks and passwords
    recently used Bluetooth accessories
    VPN and APN settings
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • How to correct close database connection after report generation

    Hello
    I have problem a with alive database connection after report creation and report  closing. How to properly to close connection to database?
    Best regards
    Edited by: punkers84 on Jun 17, 2011 10:38 AM

    that's what I am doing... after viewing the report, I call the close method on the window closing event of the container window. but the connection is still open. I had a lot of other issues with my jdbc driver but after downgrading to an older version those issues are resolved.Only this one is still there! Is there any other way to close the connection (like using dbcontroller or etc.)?

  • How to do a Generic Connectivity (ODBC) ?

    Hello,
    Generic Connectivity provide Oracle Database to connect another
    database via ODBC. In my case, it is Oracle 8.1.6 which connects
    to Sybase Enterprise 11 on Win NT. The Module "Generic
    Connection" is installed. I view it by the Oracle Universal
    Installer and I have configured the Windows ODBC Manager to
    connect to Sybase.
    This is what I've done step by step:
    1. C:\Oracle\Ora81\hs\Admin\iniths_syb.ora
    HS_FDS_CONNECT_INFO = SPS_NACIONAL
    HS_FDS_TRACE_LEVEL = ON
    HS_FDS_TRACE_FILE_NAME = hs_syb.log
    2. C:\Oracle\Ora81\Network\Admin\Listener.ora
    LISTENER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = nacional)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = oracle)
    (ORACLE_HOME = c:\Oracle\Ora81)
    (SID_NAME = oracle)
    (SID_DESC =
    (SID_NAME = hs_syb)
    (ORACLE_HOME = c:\Oracle\Ora81)
    (PROGRAM = hs_syb)
    I reload the listener by the following command :
    lsnrctl
    stop
    start
    3. C:\Oracle\Ora81\Network\Admin\Tnsname.ora
    ORACLE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = host)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = oracle)
    hs_syb =
    (DESCRIPTION=
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = host)(PORT = 1521))
    (CONNECT_DATA =
    (SID=hs_syb)
    (HS = OK)
    I test the tnsname at the prompt command line :
    tnsping hs_syb
    (It's OK)
    4. Database Link
    CREATE PUBLIC DATABASE LINK syb
    USING 'hs_syb';
    5. Test database link
    select * from emp@syb;
    And Errors occur :
    ORA-28509: unable to establish a connection to non-Oracle system
    ORA-02063: preceding line from SYB
    6. I read again the documentation
    http://technet.oracle.com/doc/oracle8i_816/server.816/a76960/hs_g
    enco.htm
    and I found some tables to be feed with data by the HS_ADMIN
    packtage :
    This is what I have added :
    EXEC DBMS_HS.CREATE_FDS_CLASS ('hs_syb','Uses ODBC Driver')
    EXEC DBMS_HS.CREATE_FDS_INST ('hs_syb','hs_syb','SYC Sybase
    System 10/11')
    EXEC DBMS_HS.CREATE_INST_INIT
    ('hs_syb','hs_syb','HS_DB_NAME','SYBDATA','F')
    (Drop procedure :
    EXEC DBMS_HS.DROP_INST_INIT
    ('hs_syb','hs_syb','HS_FDS_CONNECT_INFO')
    EXEC DBMS_HS.DROP_FDS_INST ('hs_syb','hs_syb')
    EXEC DBMS_HS.DROP_FDS_CLASS ('hs_syb');
    I test one more time the connection,
    And I have the same error message as step 5.
    7. I put in the initialization file (initoracle.ora) the
    parameter
    Hs_Autoregister = true (It is true by default and it doesn't
    change errors. Is it another parameters for HS ?)
    In fact, I don't really understand the notion of "AGENT" for HS
    (Heterogeneous Services) in Oracle. Is it something to enable or
    is it automatic because the iniths_syb.ora file is in the path
    ORACLE_HOME\hs\admin ???
    What is it missing for the Generic Connectivity ? Any
    suggestion ? Say me what is the wrong step in this process or
    what I have forgotten.
    Thank you in advance.
    Jobar Team

    Hello
    You're right, step two needs to set (PROGRAM = hsodbc). I understand this when I saw hsodbc.exe in the path ORACLE_HOME\Bin (and at prompt I try agtctl.exe but without sucess, an utility for Heterogeneous Services).
    Now when I test the connection I can hear Oracle running something.
    This is what I've done step by step (following my previous message)I test with Sybase Entreprise and Sybase Anywhere :
    8. C:\Oracle\Ora81\Database\initoracle.ora
    I set a parameter in init file and I reload Oracle database :
    global_names = false
    OR in SQL+
    alter session set global_names=false;
    WITH SYBASE ENTREPRISE
    9. C:\Oracle\Ora81\hs\Admin\iniths_syb.ora
    At the beginning my iniths_syb.ora file was wrong then I correct parameters by viewing errors in C:\Oracle\Ora81\hs\trace :
    #Using a dsn file generate by the Windows ODBC Manager
    HS_FDS_CONNECT_INFO="FILEDSN=C:\sybase.dsn"
    HS_FDS_TRACE_LEVEL = ON
    HS_FDS_TRACE_FILE_NAME = C:\hs_syb.log
    set SYBASE=C:\\Sybase\\ASE
    Contents of sybase.dsn
    [ODBC]
    DRIVER=Sybase System 11
    UID=USERNAME
    SRVR=SVRNAME
    DB=master
    10. Test Database link
    CREATE PUBLIC DATABASE LINK syb
    CONNECT TO USERNAME IDENTIFIED BY SECRET
    USING 'hs_syb';
    select * from anytable@syb;
    ORA-00942: table or view does not exist
    [Transparent gateway for ODBC]393330(0,0,1[[]])
    ORA-02063: preceding 2 lines from SYB
    I try to set parameters in iniths_syb.ora without success :
    HS_DB_DOMAIN=SVRNAME
    HS_DB_NAME=master
    HS_FDS_DEFAULT_OWNER=USERNAME
    WITH SYBASE ANYWHERE
    11. C:\Oracle\Ora81\hs\Admin\iniths_any.ora
    #Using a dsn file generate by the Windows ODBC Manager
    HS_FDS_CONNECT_INFO="FILEDSN=C:\anywhere.dsn"
    HS_FDS_TRACE_LEVEL = ON
    HS_FDS_TRACE_FILE_NAME = C:\hs_any.log
    Contents of anywhere.dsn
    [ODBC]
    DRIVER=Adaptive Server Anywhere 6.0
    UID=USERNAME
    Integrated=No
    AutoStop=Yes
    EngineName=SERVICE
    12. Test Database link
    CREATE PUBLIC DATABASE LINK anywhere
    CONNECT TO USERNAME IDENTIFIED BY SECRET
    USING 'hs_any';
    select * from anytable@anywhere;
    In SYBASE ANYWHERE I've got this data
    select * from anytable
    go
    dateini col1 col2
    2002-02-01 00:00:00.0000 1.5000 1.4000
    In ORACLE I've got
    SQL> select * from anytable@anywhere;
    dateini col1 col2
    01/02/02 1 1
    There isn't the decimal.
    The reason doesn't like to be 1.4 or 1,4 because in Anywhere and in Oracle It is the same insert "insert into anytable values ('02/02/01', 1.5, 1.4)".
    13. Now I try a select of one column
    select col1 from anytable@anywhere;
    this error occur :
    ORA-00904 invalid column name
    I am sure that this column exist ! "select * from anytable@anywhere;" and "select count(*) from anytable@anywhere;" are OK.
    14. And this doesn't work anymore :
    insert into bx_surcharge@anywhere values ('01/02/02',1,2);
    ORA-02047: cannot join the distributed transaction in progress
    15. Step 6 and 7 doesn't mean to be necessary ? And Where are used parameters of the "ODBC Connectivity Requirements" in the documentation. http://technet.oracle.com/doc/oracle8i_816/server.816/a76960/hs_genco.htm (And How to use Datatype Mapping ?)
    So How to successful a ODBC connection (Maybe I forget some parameters) ? For me, using a connection with ODBC is generic and have to work fine with any type of datasource, isn't it ?
    Have you got any idea to deal ? Thanks a lot.
    Jobar Team

  • How to create a new connection from SAPGUI to Test drive?

    Hi,
    I have installed Sap Netweaver Test drive on a linux virtual machine (windows host). The installation was successful and I was able to start the instance (application server and the database), yet I don't know how to create a new connection from my SAPGUI client (7.20) to this server. The static IP address of the server is 192.168.1.160.
    I entered the following values for my new connection entry
    Description: SAP Netweaver
    Application server: 192.168.1.160
    Instance number: 01
    System ID: DB2
    SAProuter: /H/192.168.1.160/S/3201/H/
    But it does not work. Any idea about the values needed  for creating a new entry?
    Thanks in advance,
    Dariyoosh

    >
    Dibya R Das wrote:
    > Why are you entering a router string? Can't you reach a box directly from your machine?
    >
    > Doesn't a ping to that host & a "telnet <host/ip address> 3201" work from your machine to the SAP System.
    >
    > Remove the router string you wont need if the above works.
    >
    > - Regards, Dibya
    Hello there,
    Thank you very much for your answer which solved my problem. In fact there was no need of providing router string.
    Kind Regards,
    Dariyoosh

Maybe you are looking for

  • Using ODBC without the 8i or 9i Client

    Connecting Access.mdb on a windows station to Oracle 8i or 9i using ODBC Can an oracle ODBC driver be installed programatically on a station without installing the complete 8i or 9i client? The Microsoft ODBC driver for Oracle produces a message stat

  • Read Infotype  0167 and writes WT in Internal Table

    Hi gurus, I need to read the healt plans in IT0167 in the payroll. I am using the P0167 PAR1-BEG function, and it reads the table, but, do not write any wage type in IT table. Do you know what I am missing?

  • I ran a scan on my computer and it found 1,288 errors how can I get rid of them?

    I did a scan test on my desktop and found that I have run sections(10 errors), user software settings(195 errors), system software settings(867 errors), ActiveX and com sections(78 errors), file associations(92 errors), uninstall sections(known as ad

  • Width of Report Fields

    HTML_DB Version : 1.6 In Reports, the width is being set to the max width of the data. How can I change the width of fields in Reports ? abhay

  • Web Maps

    Does anyone know how interactive maps are produced in Flash? I have three GIS layers in the form of shapefiles. Two of the layers are lines while the other is a polygon. I would like to add the data in a way that allows for the polygon to overlay on