Linux C++ program connection to Windows based Oracle server.

Hi
The tools I m using are
Window XP
Linux Feodra 4 (X86)
Oracle 10g release 2
Oracle Instant client of 10g realse 2 for linux (oracle-instantclient-basic-10.2.0.3-1.i386.rpm)
Basic
sqlplus
devel
I want to connect C++ program on Fedora linux to windows based oracle database. Orcale database is on Wondows XP machine.
I have installed all the instant client pacakages.Set the Environment Variables (including LD_LIBRARY_PATH and id.so.conf)
I have copmpiled the code successfully and Have .o file
The compling comnnad is
g++ -c test.cpp -I/usr/lib/oracle/10.2.0.4/client/
BUt problem in linking the Code. The linking Command is
g++ -o test test.o -L/usr/lib/oracle/10.2.0.4/client/lib/ -I/usr/lib/oracle/10.2.0.4/client/
The error either is
Can not open the file test: usr/profile/ld.................
or
Undefine reference to oracle::occi:Environment........
I have searched the internet to get some solution. But I think there is linking problem due to differnet OS.
Please help me out to resolve this problem.
Regards

Hello,
Are you also including the Oracle library files in the compile/link? I don't see them here. Something like:
g++ -o test test.o -L/usr/lib/oracle/10.2.0.4/client/lib/ -I/usr/lib/oracle/10.2.0.4/client/ -lclntsh -locci
Regards,
Mark

Similar Messages

  • Oracle raise ORA-03113 when connect to a remote oracle server using toad

    Hi there,
    when i use the tool toad connect to a remote oracle server which located in a different city,
    when i submit a query in toad,
    if the query returns many rows of data, it will raise the error ORA-03113:end-of-file on communication channel,
    however if the query returns only a few rows, i won't raise such error,
    however, when i use sqlplus connect to that remote server, it won't raise such error,
    what's the reason is, can any one tell me how to tackle this problem if using the tool toad. thanks/

    hi my oracle vsersion is:
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE 11.2.0.1.0 Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    my oracle server is 2 nodes rac server,
    and i've tried two different kind version of toad v9.6 and v10.5, and both have the same problem
    once i query a table, if the result returned more than 30 rows, then it will raise that error, if query returns less than 30 rows, it's ok.
    i assume it is a problem concern with network, but i don't know why no such error raise when using sqlplus ?

  • Sending XML file from SAP to Windows Based file server with FTP function

    Hi Gurus,
    We are using SAP BW 3.0B version.
    I need to convert data in ODS to XML format and send this XML file to remote server which  is not a SAP application server, it is just a Window Based file server with FTP function..
    By writing some ABAP code I have converted ODS data into XML format (which gets saved in my local system)
    (Is that I need to put this file in Application Server to send it to the other servers? )
    Now the thing is how I can send this file to that Windows Based file server.
    plz suggest me.... what can be done......
    Thanks in Advance
    Madhusudhan
    Edited by: Madhusudhan Raju on Dec 3, 2009 4:25 AM

    I dont think the above code support windows OS. Because I always execute this script via UNIX.
    I think you can try this option, go to command prompt, goto the destination path where you have an XML file using cd....
    ftp (destination servername), specify the username and password.
    afterthat, use the command put and filename.
    check whether the file had reached destination successfully or not.
    For automation purpose, you can use the following script like
    ftp: -s: test.txt  (servername)
    In test.txt,
    UserName
    Password
    bin
    cd /files
    put file.xml
    bye
    Also, you can check in SM69, there will be some SAP external commands to automate the file transfer.
    Thanks
    Sat
    http://support.microsoft.com/?kbid=96269

  • Howto connect a windows client oracle on a linux serveur 9i

    Hi all,
    I just want help for connecting one windows (2000 Pro) oracle client to a linux (Red Hat 8) oracle serveur. Thanks for all

    Well, the first step is to configure TNS. The Net Configuration Assistant will help you there if your DBA hasn't already set things up for you (sent you a tnsnames.ora file, pointed the client at a shared tnsna,es.ora file, set up OID, etc).
    Once you can tnsping the database from a command prompt, you can set up your ODBC DSN, assuming you want to use ODBC to connect.
    Justin

  • Remote connection from my MacBook Pro to my windows based Exchange server

    I have just purchased a MacBook Pro (my first Mac). I am attempting to set it up so I can access my office server which is windows based (Exchange). With my previous notebook, I simply accessed it throught the laptop's "Windows Remote Desktop Connection" by typing in the server address in "Remote Desktop Connection'". Is there any procedure to access my office desktop remotely through my Mac?

    "Is there any procedure to access my office desktop remotely through my Mac? "
    Just download the Mac version of RDC from http://www.microsoft.com/mac

  • Solaris nis client can't connect to Windows 2008 NIS Server across subnets

    I have been using Microsoft Windows Server for NIS for years to centralize some accounts accessing Solaris and Linux OS.
    Windows 2003 R2 Indentity Management for UNIX version of Server for NIS was last working version with Solairs.
    After upgrading Domain to Windows 2008 all Solaris clients that are on different subnets fail to bind and connect to NIS servers now.
    These servers already were setup using ypinit -c to manually add the NIS servers to connect to and prior to Windows 2008 this worked.
    Now no Solaris nis clients on different subnets (no firewall between) can connect , but other Unix/Linux OS connect fine.
    Is this a known issue and can we get a resolution as it seems only Solaris is affected?

    Hi Mid.Hudson-IT,
    Before we begin ,we should ensure we have configured the printer server correctly .
    Here is a link for reference of configuring the printer server .
    Print server role: Configuring a print server
    https://technet.microsoft.com/en-us/library/cc775791(v=ws.10).aspx
    "I can map all of the printers on the network to the print server as-well as install the drivers correctly and I can resolve the IP and server name via DNS"
    From this sentence ,I can`t figure out whether you have tried to ping the server both with the IP adress and name adress from the client ?
    If we can ping the print server from the client,we can ensure the connection to the printer server is good .
    Then we can try to install the printer driver directly to have a check .In the adress bar of Windows Explorer ,input "\\server name \the printer name"
    If we cannot ping the print server ,we should troubleshoot the network issue firstly.
    We also can check the event viewer for more information to troubleshoot this issue .
    Best regards

  • Connecting to Windows Small Business Server

    I need some help getting my iMac connected to a Windows Small Business Server (SBS). Our office is located in another building that runs a SBS with multiple Windows XP clients. I have a new Intel based iMac located in my house that is getting it's internet access through a linksys access point that is connected to the SBS (the SBS is assigning my iMac a local IP address - DNS server). I have no problems sending email and access the internet from the iMac. On the SBS side of things, I set up a new account on the SBS for the iMac (user name and password). The problem I'm having is when I go to Networks on the iMac, click on the server's name and type in the account information it tells my the alias is not valid. Any help would be great or a link to some web information with direction would be appreciated. Thanks,
    Mark

    Did you recently upgrade the firmware of the TC?
    The new firmware includes a vpn for the BTMM but it is not accessible to users.
    I suggest if you port forward the required ports in the TC it should work but the best idea might be to go back a firmware. 7.5.2 works much better with the older TC anyway.

  • Connecting to Windows Small Business Server 2011 Standard

    Company recently upgraded from an old server to Windows Small Business Server 2011 Standard. I would like to connect to a MS Exchange acct remotely through Entourage.   I have used the settings provided by the IT dept but they are not working. Any suggestions?
    Thanks!

    Hi,
    Based on my experience, there is no upgrade path for OEM licensing. In addition, only SBS 2008 Standard can upgrade to SBS 2011 Standard, and there is no path to so
    that from SBS 2011 Essentials. I am sorry to say that you may need a migration instead of an upgrade.
    Best regards,
    Susie
    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]

  • Authenticating a Mac into a Windows-based Proxy Server.

    Hello.
    Once again, I have come to find help from the wisest Mac users there are.
    Now, my school network is Windows based. I can connect to the network and I can access the INTRANET (which contains the webmail and moodle, our CMS, etc.), but I cannot get through the proxy to get onto the INTERNET.
    I use DAVE X to connect to the shared drives on the server. I tried to get DAVE X to authenticate to the proxy with the NT credential, although it did not work. I also tried to authenticate using Authoxy using its authentication method, but that also did not work.
    The built in authentication also does not work. The page I get whatever authentication method I try (or even if I try without authentication) is "Access Denied".
    What I know is that the school uses WinGate or BlueCoat to handle proxy authentication and then they use WinProxy to censor material deemed inappropriate to be displayed in a school environment.
    Hopefully we have some users here who are knowlegable in this area and can help me with this problem.
    I thank you in advance.
    Jeffrey

    Hello. I'm also having trouble with a proxy and authentication, which is why I ran across your post.
    Have you tried using Firefox (and entering your proxy information in its preferences - Firefox doesn't use proxies specified in System Preferences)?
    In my situation, software that relies on the proxy settings in System Preferences (Safari, iTunes, Widgets, Software Update) does not work. It doesn't matter what I enter for name and password, it never works.
    However, if I enter the same proxy info in Firefox, Firefox can successfully authenticate and I can surf the Web.
    This probably won't help you much but I thought I'd throw it out there. Good luck!

  • Wyse Thin client not connecting to Windows 2008 R2 server

    Configuration
    SBS 2011 Server 
    Windows 2008 R2 server with Remote Desktop Services installed, License Manager installed.
    WYSE WT3125SE thin clients with Windows CE 5
    I setup the Windows 2008 with Remote Desktop Services and was able to successfully connect the Thin client.   Then I installed the License Manger and applied my Open license using User Cals.  Was able to login.  Next day I get the following
    error-"Because of a security error, the client could not connect to the remote computer.  Verify that you are logged onto the network and then try connecting again"    I still can connect fine from other machines even Windows Home Ed.  
    I remove license server and still was unable to connect.   Built a second Windows 2008 R2 server with RDS on it.  Was able to connect without issue.   Pointed it to the first RDS server license manager and have still been able to connect with
    the Thin Client.   The thin client can rdp to the SBS server without issue in admin mode, can connect to RDS2 server but not RDS1 with the license manger.    So my issue is with the license and so my question is what is it with the license server
    running on that server that is keeping thin client from connecting.  I even did a reload of RDS1 and tested connecting throughout the process and it worked up until I applied the license and then it stops. And then if I uninstall the license, rds, remove
    from domain still not able to connect.  Any help would be appreciated.

    We had the same problem with older terminals after cloning a 2008R2 rds server and sysprep it.
    The original rds server worked fine but when the old terminals connect to the new 1 they come up with the error : Because
    of a security error, the client could not connect to the remote computer.  Verify that you are logged onto the network and then try connecting again"
    After reading all of the postings about this issue and tried the reactivate solution of the license server,
    I was sure that it had something to do with the x509 certificates that are generated the first time you connect to a valid license server.
    What I did, I installed a new license server activate it but did not install licenses on it.
    I pointed the defective rds server to the newly installed license server and deleted the following registry keys:
               HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM
    Certificate
    X509 Certificate
    X509 Certificate ID
    X509 Certificate2
    Then reboot.
    After the reboot all old terminals can connect fine again. As final step I pointed the rds server to the same license server as the other ones,
    reboot and all worked fine.
    So conclusion is that when you pont a rds server to a license server that has the new type of licenses on it it will generate the wrong x509 certificates
    that are not supported by the older clients, by pointing it first to 1 without any rds calls on it, it generates the older x509 certificates which are compatible with the older rdp clients then the switch to new license server will then not regenerate the
    x509 certs so it keeps working.
    I hope this helps someone
    This issue was driving me crazy so very happy that it is resolved now
    Cheers Frits

  • Can't connect to Windows shared file server

    I'm trying to connect to our Windows shared file server. I can add the drive and see it, however, when I open the folders nothing is there. I called Apple Support who said that it was most likely a Windows-related issue and that I may need to install some Windows driver on the PC the file server is on to get this to work (he wasn't exactly sure what the fix was for this). Has anyone experienced anything similar? And if so, what's the fix???

    Reinfire,
    sorry to horn in on this question, but i am having a similar problem, but in reverse. I am trying to connect from Win 8.1 to my mavericks iMac but it will not connect. I am sure that it's related to SMB but the fix you have posted did nothing for it.
    Any ideas?

  • Problems in connecting to Windows SBS 2003 server from OSX 10.5.x

    Hi there
    Out of many Macs (all 10.5.4) in our network, I have been able to authenticate others to the Active Directory and share File services of the Windows Small Business Server (SBS) 2003. But one is having problems. They have authenticated to the active directory correctly from Directory utility.
    But when I try to access the SBS server, there is a message "Connecting to smb://myserver..." displayed for indefinite time. Also, I don't find the smb listed in Directory utility. Is that a problem? If so, how can it be fixed? I searched Internet but couldn't find a way to download smb client.
    Please help.

    It certainly works for me although I have 10.5.2. No special settings, just server address, username and password and it connects. To confirm I just tried it once more a moment ago by creating a new VPN configuration. No problems at all. Is your problem related to a single computer or is it so that now 10.5 computers can connect?

  • Mavericks 10.9.5 cannot connect to windows share on server 2008r2 via SMB or CIFS

    hey anyone,
    on several macs at a client all running Mavericks 10.9.5. everything was working smooth.
    then all of a sudden anytime i try to connect to a specific share on server 2008r2 via SMB or CIFS.
    it connects (with authentication). but the share wont open. and crashes the finder. everytime.
    i can open other shares on the same server without any problems.
    i've tried this on several machines all with a similar result.
    all permissions on the server are correct as well as on all Macs.
    anyone have any similar issues and a way to get the finder from crashing?
    will updating Yosemite help? or create more problems with SMB connectivity
    help
    GT

    2) Try to connect using AFP address:
    9/20/14 3:43:54.980 PM NetAuthSysAgent[540]: AFP error -1 mapped to EIO
    9/20/14 3:43:54.980 PM NetAuthSysAgent[540]: ERROR: AFP_GetServerInfo - connect failed 5
    9/20/14 3:43:54.980 PM NetAuthSysAgent[540]: AFP error -1 mapped to EIO
    I'm getting the same error messages when trying to connect over a VPN to a Mountain Lion server, from a Yosemite (10.10.2) iMac. The same Yosemite iMac at the same time has no trouble connecting to a Snow Leopard server on the same network.
    By the way, there is no such thing as a "G5 (Intel) Mac". What you have is a Mac Pro tower. The G5 processors predated Intel. A lot of people tend to use "G5" as a generic term for a Mac aluminum tower. Why does it matter? Because if you not had not said "Intel", you would be getting replies having to do with the age of the computer in question.

  • Steps to take when a Windows-based database server changes domains

    For reasons beyond my control, my oracle 10 database servers, running Windows Server 2003 R2, have had their domain names changes. Oracle now does not work (none of the databases is addressable, the only error that gets thrown was a packet receive error).
    These are test boxes for the most part and so I am able to recreate the databases easily enough. I figured I would uninstall all of the Oracle bits and reinstall, assuming that this would reset the host name defaults. This did not work. After reinstalling, Oracle still thinks that the server name is "name.olddomain.mycompany.com" even though there is nothing in the registry or file system that I can find which uses the old domain name.
    Does anyone have suggestions for how to fully remove the oracle configuration from this machine so that it picks up the correct names upon reinstallation? I no longer have physical access to the box so if I can avoid having someone pave the OS, that would be most helpful.
    Thank you for any suggestions you might have.

    rocketrob wrote:
    It is actually all of the above issues. Enterprise Manager could not connect but I fixed that as you described. That done, client computers could not connect -- they were receiving 'packet receive errors'. The IP address and name of the machine changed, but I updated the tnsnames.ora files on both the server and the client, rebooted everything (just in case) and it still didn't work.
    My concerns over whether the services were using old domain accounts led me to try uninstalling Oracle. I uninstalled, restarted and then reinstalled. Once reinstalled, I created a quick database and found that it was created with the old domain name for some reason.
    I did notice that the listener service seemed to start and then stop but I have not investigated that aspect of it yet at all.
    Since I have uninstalled Oracle again on this one machine, I am going to look for any and all traces of oracle in the registry and on the disk and try removing them before reinstalling again.
    Thanks for any further help you can provide.I suggest that you have all of the services related to Oracle running using the SYSTEM account, rather than a specific domain account - that could eliminate some of the problems you are experiencing. The listener service starting and stopping is a critical clue - it probably points to a problem with the listener.ora file. Take, for example, this listener.ora file:
    TRACE_LEVEL_LISTENER = 0
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = OR10)
          (ORACLE_HOME = C:\oracle\product\10.2.0)
          (SID_NAME = OR10)
        (SID_DESC =
          (GLOBAL_DBNAME = LT)
          (ORACLE_HOME = C:\oracle\product\10.2.0)
          (SID_NAME = LT)
        (SID_DESC =
          (GLOBAL_DBNAME = OR11)
          (ORACLE_HOME = C:\Oracle\Product\11.1.0)
          (SID_NAME = OR11)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = AIRFORCE_2)(PORT = 1521))
    SAVE_CONFIG_ON_STOP_LISTENER = TRUENote in the above in the LISTENER = section that there is a HOST = entry, in this case specifying AIRFORCE_2. AIRFORCE_2, because it contains an _ character, is not DNS compliant and will cause issues with Enterprise Manager Database Control. If the listener.ora file specified AIRFORCE_2.myolddomain.com, and the domain name was changed to myNEWdomain.com, the listener will fail to start (or will stop immediately) unless this section is changed. If instead of a computer name an IP address was listed, for example 192.10.1.78, and the IP address of the computer changed to 192.100.50.20, the listener will fail to start (or will stop immediately) unless this section is changed.
    It is good that you caught the changes needed in the tnsname.ora. Without the listener service running, the clients will not be able to connect to the database instance.
    Charles Hooper
    IT Manager/Oracle DBA
    K&M Machine-Fabricating, Inc.

  • How to connect to Windows 2008 VPN server with certificate support

    Unfortunatelly if I select any Windows 2008 server compatible protocol (PPTP, L2TP) I cannot select PKI certificate, its only available for Cisco VPN. Yet my company has 1000 laptops and utilizing Windows 2008 Server for VPN (Cisco is too expensive and unnecessary because VPN is part of Windows Server). PKI certificate is required for connection security.
    Any plans to enable certificates for PPTP or L2TP in 2.1 firmware? Even better would be to add SSTP protocol with certificate support, because it takes only one standard TCP connection (https) per user (uses least possible NAT resources for heavy loaded NATed WiFi spots). Also in some public places https is the only option to connect as PPTP and L2TP are filtered.

    Hi Shahzad,
    >>how to connect sql server 2008 r2 sp2 with visual studio 2013 ultimate?
    Based on your issue, if you wan to connect the sql server 2008 r2 sp2 from VS2013 IDE. I suggest you can try the Ammar and darnold924's suggestion to check your issue.
    In addition, I suggest you can also refer the following steps to connect the sql server 2008 r2 sp2 with visual studio 2013 ultimate.
    Step1: I suggest you can go to VIEW->SQL Server Object Explorer->Right click SQL Server->Add SQL Server.
    Step2: After you connect the SQL Server 2008 r2 sp2 fine, I suggest you can go to VIEW->Server Explorer-> right click the Data Connection->Add Connection.
    And then you can create the connect string in the Add Connection dialog box.
    Hope it help you!
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for