Can oracle PLSQL program communicate to VFP (Visual Foxpro) Database.

Hello All,
I am using dataabse 9i in windows 2003 - 32 bit server.
I have couple of application in forms and Visual Foxpro(VFP). The VFP program can commucate to the oracle database.
when I am inserting/updating/deleting some data to the oracle database it should insert/update/delete the record in VFP database.
For this I have created triggers in the oracle tables so that when DML oreration are happening in the database it can triggered and same time the VFP tables can be updated by the oracle triggers. But my problem is I am not able to connect to the VFP table from the Oracle.
Any body have any idea on it, Please suggest.
Thanks,
SUN

Oracle has a facility called Heterogeneous Services. It uses odbc or ole to communicate to third party databases.
You need a Foxpro ODBC driver, and you need to set up several Net related files.
Please refer to http://download.oracle.com/docs/cd/B10501_01/server.920/a96544/gencon.htm#1656
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • Can forms communicate to VFP (Visual Foxpro)

    Hello All,
    I am using forms 6i and dataabse 9i in windows 2003 server.
    I have couple of application in forms and Visual Foxpro(VFP). The VFP program can commucate to the oracle database.
    Here I am looking forms connect to VFP database (As per my knowledge it is not possible, if there is any way to connect) , or when I am inserting some data to the oracle database it should insert the record into VFP database.
    For this I have created triggers in the oracle tables so that when DML oreration are happening in the database it can triggered and same time the VFP tables can be updated by the oracle triggers. But my problem is I am not able to connect to the VFP table from the Oracle.
    Any body have any idea on it, Please suggest.
    Thanks,
    SUN

    Here is the code i have cut down the code and giving u only necessary code (not tested may be some syntax errors or missing end ifs etc etc)
    Before u start
    - Install Open Client Adaptor from Oracle forms Installer
    - Create ODBC DSN named 1C and in advance property set username scott and password tiger
    Procedure get_data(vfrom_date date, vto_date date) IS
      connection pls_integer;
      cursor_rec    pls_integer;
      stmt_rec   varchar2(4000);
    BEGIN     
      stmt_rec := 'select [ref], [#date], [#sumd], [#sumc], [#docnum], [#cur], [#acc] from [#rec]
                    where [#date] >= datevalue('''||vfrom_date||''') and [#date] < datevalue('''||vto_date||''') order by [#acc], [#sumd], [#sumc]';
      connection := oca.dbconnect('scott/tiger@odbc:1c_db');
      cursor_rec := oca.execute(connection,stmt_rec); 
      go_block('datablk');
      clear_block;
      loop
      begin
          oca.fetch_row(connection,cursor_rec); 
              oca.coldata(connection,cursor_rec,1,:ref_no);     
              oca.coldata(connection,cursor_rec,2,vdate);     
              oca.coldata(connection,cursor_rec,3,:debit_amt);     
              oca.coldata(connection,cursor_rec,4,:credit_amt);
              oca.coldata(connection,cursor_rec,5,:docnum);          
              oca.coldata(connection,cursor_rec,6,vcurstyp_code);                     
              oca.coldata(connection,cursor_rec,7,:acc);                     
          next_record;     
        exception when no_data_found then
            -- message('NO MORE ROWS');
             clear_record;
             exit;
        end;
      end loop;
      first_record;
      oca.close(connection,cursor_recapp);
      oca.disconnect(connection);
    exception
      when oca.connection_error then
        set_application_property(cursor_style,'NORMAL');
        message('OCA-Connection error');
      when oca.cursor_error then
      set_application_property(cursor_style,'NORMAL');
        message('OCA-Cursor error');
      when others then
      set_application_property(cursor_style,'NORMAL');
        message(sqlerrm||'Other Error');
    end;
    plz mark correct/helpful if it is
    Baig,
    [My Oracle Blog|http://baigsorcl.blogspot.com/]

  • I want to connect Visual foxpro database through forms6i.

    Hi ,
    I want to connect Visual foxpro database through forms6i.
    actually i want to access Visual foxpro database in forms6i and retrive and update data from forms6i.
    please help me urgently how can i do this in forms6i.
    Thanks,
    Md.Muniruzzaman Khan
    Email : [email protected]

    do the following steps for hetrogenous service
    Step 1
    Create ODBC named Access1.
    Step 2
    Go to urs inithsodbc.ora file which reside at
    ORACLE_HOME\hs\admin\inithsodbc.ora
    and overrite by
    # This is a sample agent init file that contains the HS parameters that are
    # needed for an ODBC Agent.
    # HS init parameters
    HS_FDS_CONNECT_INFO = Access1
    HS_FDS_TRACE_LEVEL = off
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    Step 3
    Add the following entry to the tnsnames.ora file:
    ACCESS1.WORLD =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
    (CONNECT_DATA=(SID=ACCESS1))
    (HS=OK)
    Step 4
    Add the following entry into the listener.ora file:
    (SID_DESC=
    (SID_NAME=ACCESS1)
    (ORACLE_HOME=D:\Oracle)
    ---Define urs oracle home path in mine case it is at D:\Oracle--
    (PROGRAM=hsodbc)
    Step 5
    Reload the listener from contol panel services yours listener service
    Step 6
    Create a database link using:
    CREATE DATABASE LINK access1.world CONNECT TO "MyUser" IDENTIFIED BY "MyPassword" USING 'ACCESS1.WORLD';
    Step 7
    Connect to scott/tiger
    Query the table using:
    SELECT *
    FROM [email protected];
    Step 8
    Same you can connect to urs forms and write above sql in cursor
    Acknowledge me.
    Khurram Siddiqui

  • How can a LabView process communicate with a Visual c++ process

    How can a single Labview process communicate with another Visual c++ Process?
    Both Application are running separately. The LabView  Application must have the Possibility to send command to the C++ Application and receive Data from this process.
    Thanks.

    Thank y for your answer.
    The c++ application has already been written but don´t have an external interface.
    The LabView application can have an activeX  interface other dlls.
    Do you have some LabView example code using activeX interface other another Method to communicate with a c++ application?
    I have no practical experience with the interprocess communication.
    Any example in LabView will help me.
    Thanks

  • Crytsal Reports 11 cannot connect to Visual Foxpro Database table

    I hope someone can help me here. I have read through the other posts here, but can't seem to fiind the answer I need.
    We use Crystal Reports to pull information from our Sage databases to create and distribute reports. Currently this is working fine on the original server. However, we decided to move the installation of Crystal Reports from one server to another.
    In setting up the new server, I keep getting the message "The database table (table name) cannot be found. Proceed to remove this table from the report?" It displays this message for all the different tables in which data is trying to be accessed. Once I click No to all of these notifications, the correct info is poplulated in the report just fine. I need to get this corrected. It does not do this on the original installation.
    Also if I open Database Expert and single click too expand the "Current Connections" folder, I get a message that pops up saying "Database Connector Error: 'HY010:[Microsoft][ODBC Visual Foxpro Driver] Function sequence error'". When I click OK to that, I get another similar error that reads "Database Connector Error: 'IM001:[Microsoft][ODBC Driver Manager] Driver does not support this function'"
    Please let me know of any ideas that you may have as to what may be causing this issue. I have tried reinstalling the ODBC drivers, Runtime files, and Crystal. I appreciate any help.

    I tried what you mentioned but it did not work. I believe it has to do with a "SQLNumResultCols" in SQL. The reason I say this is because I did a trace on both the server that is working and the server that is not and this is the first key that displayed an error in the SQL.LOG file. Here is this section of the SQL.LOG file for the server that isnt working...
    dde             2e94-28b0     EXIT  SQLNumResultCols  with return code -1 (SQL_ERROR)
              HSTMT               03442998
              SWORD *             0x0012F3F4
              DIAG [HY010] [Microsoft][ODBC Visual FoxPro Driver]Function sequence error (0)
    And here is this section of the SQL.LOG file for the server that is working...
    dde             eb8-c94     EXIT  SQLNumResultCols  with return code 0 (SQL_SUCCESS)
              HSTMT               03542508
              SWORD *             0x0012F3F4 (5)
    I believe if I can figure out what is causing this, I will be able to resolve this issue, but I am not a programmer and I am having a very hard time with this. Any help is appreciated.

  • JSP and Microsoft Visual FoxPro Database

    Hi!
    I am developing a website in JSP, this is placed on a linux server. I want to connect to the FoxPro databasefiles(*.dbf) on another server.
    How can i do this?
    I've tried this connectionstring, but it only works on my local machine that runs on Windows XP:
    Connection c = DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Visual FoxPro Driver};UID=;PWD=;SourceDB=" + db + ";SourceType=DBF;Exclusive=No;BackgroundFetch=Yes;Collate=Machine;Null=Yes;Deleted=Yes;");
    This connection string is not usable on the server where the JSP-page runs.

    Hi!
    I am developing a website in JSP, this is placed on a
    linux server. I want to connect to the FoxPro
    databasefiles(*.dbf) on another server.
    How can i do this?
    I've tried this connectionstring, but it only works
    on my local machine that runs on Windows XP:
    Connection c =
    DriverManager.getConnection("jdbc:odbc:Driver={Microso
    ft Visual FoxPro Driver};UID=;PWD=;SourceDB=" + db +
    ";SourceType=DBF;Exclusive=No;BackgroundFetch=Yes;Coll
    ate=Machine;Null=Yes;Deleted=Yes;");The above is a JDBC related question it belongs to the JDBC forum.
    List of forums: http://forum.java.sun.com/index.jspa?tab=java
    This connection string is not usable on the server
    where the JSP-page runs.JDBC connection has nothing to do with the presence of JSPs, it will work just fine whether JSPs exist or not.
    I encourage you to read this http://www.catb.org/~esr/faqs/smart-questions.html#forum at your leisure.

  • Can Oracle view refer a table in Sql Server Database

    Can a view created in Oracle database refer a table created in SQL Server database. If yes, how do we do it. Code will be very help full.
    Again, if yes does it require any special software and what would be price of that software.
    Thanks for your response in advance.
    Venkat Sathiamurthy

    You would need to configure Oracle Heterogeneous Connectivity to create a database link to the SQL Server system. This can either be done via the Oracle Transparent Gateway for Microsoft SQL Server, which retails for $15,000 per server at http://store.oracle.com or by configuring Oracle Generic Connectivity and using ODBC to go after the SQL Server data. Depending on the operating system you run Oracle on, there may be a free (or cheap) ODBC driver for SQL Server that could be used.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Can Oracle Express 10g be set up so a database is accessible without acct?

    I have a test database set up on one Windows Virtual PC and apps that need to connect to it on another.
    I can see the database from the app VPC fine through sqldeveloper, but I need to log in with a username and password (which I can't seem to set to blank).
    This is a local test environment that has no external access, so I'm not concerned about security. Is it possible to make the database visible without a user account at all? Or is there a way to set a blank password?
    Thanks.

    Nope. No way. User names are vital in Oracle databases.
    --olaf                                                                                                                                                                                               

  • How to create linked server in sql 2005 to access free table visual foxpro 9 step by step

    Hi All, I want to connect to dbf file visual foxpro by using linked server in sql 2005, but i can't do, i hope getting best anwser from every body in forum.
    Thanks all.

    Hi doanpq,
    Please download and install OLE DB Provider for Visual FoxPro 9.0, which exposes OLE DB interfaces that you can use to access Visual FoxPro databases and tables from other programming languages and applications. Please see:
    http://www.microsoft.com/en-us/download/details.aspx?id=14839
    Then, please follow up the following article to create a linked server:
    Creating Linked Servers:
    http://technet.microsoft.com/en-us/library/ff772782(v=sql.105).aspx
    For more information, you can also take a look at the following article, especially Dave K's comment:
    http://blog.dbase.integralwebsolutions.co.za/2008/10/accessing-your-dbf-tables-via-linked.html
    Elvis Long
    TechNet Community Support

  • Windows 8.1 - Office 2013 - Visual FoxPro - excel data connection problems

    Hi i have an excel document with existing data links to a foxpro database. these links worked on windows 8 with office 2013 but since getting windows 8.1 the links no longer work.
    After much searching i have found i need to installed VFPOLEDBSetup.msi
    This does not fix the issue. The ODBC Data sources located Control Panel\All Control Panel Items\Administrative Tools still have no reference to FoxPro and within excel if i select from other sources and the other/advanced i can see the Microsoft OLE DB
    provider for visual fox pro but it crashes excel.
    in Windows 8 ODBC Data sources located Control Panel\All Control Panel Items\Administrative Tools i have listed two items Visual FoxPro Database and Visual FoxPro Tables but both these are missing in Windows 8.1.
    What do i need to do to correct other than not to use Windows 8.1
    Many Thanks

    Hello,
    Thank you for your question.
    I am trying to involve someone familiar with this topic to further look at this issue.
    Thanks,
    George Zhao
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click "[email protected]"

  • Java.sql.SQLException: [Microsoft][ODBC Visual FoxPro Driver]Syntax error

    Hi all,
    I am able to INSERT and SELECT records from FoxPRo database successfully.
    The driver is Sun JDBC-ODBC bridge
    The DELETE statement throws no exception.
    I've tried to execute PACK after the DELETE call and got following exception:
    java.sql.SQLException: [Microsoft][ODBC Visual FoxPro Driver]File must be opened exclusively.So I tried USE MYTABLE EXCLUSIVE in a Statement before calling PACK and got the exception:
    java.sql.SQLException: [Microsoft][ODBC Visual FoxPro Driver]Syntax error or access violationI've also tried inserting the USE MYTABLE EXCLUSIVE before calling DELETE but got the same exception above.
    The ODBC DSN for MYTABLE is setup as:
    - Free Tables (not database)
    - Null (checked)
    - Deleted (checked)
    - Fetch data in background (checked)
    I am not able to issue any of the following commands to FoxPro using java
    OPEN - To open a table
    CLOSE - To close a table
    USE - To open a table for uer either in exclusive mode or shared mode
    The exception being generated is :
    java.sql.SQLException: [Microsoft][ODBC Visual FoxPro Driver]Syntax error or access violationThe help file of the Microsoft Visual Foxpro Driver states that the driver has support for the above commands.I a not able to get the way to issue the above commands to the driver using java.
    In setting up the ODBC DSN I saw no "read only" setting.
    In the Visual Foxpro table, I saw no READ ONLY settings.And also, there are no delete permission grants and there is no user database sesssion concept.
    I've tried all of the above with DSN mapped to a database(NOT free tables) and setting AUTO-COMMIT OFF and AUTO-COMMIT ON.But in vain. The same exceptions as those stated above persisted.
    Environment:
    Microsoft Windows XP Professional
    JDK version "1.4.2_09"
    Microsoft Visual Foxpro 06.00.8167
    Microsoft Visual Foxpro Driver 6.01.8629.01
    Don't know what else to try.
    Can anybody please help me.
    Thanks in advance
    Archana

    java.sql.SQLException: [Microsoft][ODBC Visual FoxPro Driver]File must be opened exclusively.
    In the Visual Foxpro table, I saw no READ ONLY settings.And also, there are
    no delete permission grants and there is no user database sesssion concept.
    The ODBC DSN for MYTABLE is setup as:
    - Free Tables (not database)
    - Null (checked)
    - Deleted (checked)If you're using Visual Foxpro database(.DBC), you should see "Exclusive" option too. You can try check it, but I don't know whether your issue will disappear.

  • Visual Foxpro DBC file reporting OLEDB vs ODBC

    I have been tasked with converting some CRX 8 reports to run dynamically in a VS website.  The current datasource is hard coded into the report as a network share via ODBC. I cannot use ODBC for this, but will be converting the reports to use OLEDB.  I cannot find any discussions or documents on how to set the datasource programmatically for Visual Foxpro .DBC files. I am not too familiar with Visual Foxpro databases. Can anyone point me in the right direction? Thanks in advance

    As a BTW., note that I still do not know version of CR you are using. I can only guess it is 'Crystal Reports Basic for Visual Studio 2008" (v. 10.5.x)...
    Based on that assumption, 1st thing to do is update CR to SP 1. See here for links to downloads.
    Ok. Once you have converted the report to use OLD DB, you will want to look at some code examples here:
    Crystal Reports for .NET SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki
    (vbnet_web_simplelogonengine.zip would be the 1st one to look at)
    More resources:
    Crystal Reports for Visual Studio 2005 Walkthroughs (applies to all versions of .NET and CR)
    SAP Crystal Reports .NET SDK Developer Guide
    SAP Crystal Reports .NET API Guide
    And do use the search box in the top right corner. I find that simple search strings (e.g.; 'crystal net OLE DB') work best.
    - Ludek

  • Does oracle application server's plsql program accord with corba criterion?

    Does oracle application server's plsql program accord with corba criterion?

    You need to purchase a have a support contract to have access to that.
    You can try upgrading to the latest JDK 6 an latest WLS 10.3.6, you have the chance the issue is fixed in the latest 11g release.
    Best Regards
    Luz

  • Can anybody send me ebook for 'oracle 10g programming with pl/sql'

    Hi
    can any one send me ebook for oracle's 'oracle 10g programming with pl/sql', 'java'
    My mail id is: [email protected]
    Thanking in advance.

    I hope it can guide you to get ebooks for your request.
    http://www.oracle.com/technology/tech/pl_sql/index.html
    Cheers
    Vigneswaran

  • I can't open the Oracle JiInitiator program v1.3.1.28

    Hi
    After installing the Firefox V3.6.10 , I can't open the Oracle JiInitiator program v1.3.1.28.
    Please note that, the Oracle JiInitiator program v1.3.1.28. Was installed and running normal on windows explorer 8?
    So please help me
    Thanks
    Essam

    When you updated to Mavericks and qualified for the free iWork apps and then installed them, the old iWork apps were rounded up and put into a folder name iWork' 09 and the three new versions of the apps are scattered in the apps folder in alphabetical order.

Maybe you are looking for

  • Accidentally took off quick time player and Itunes wont open now

    so I have a pentium 3 windows 2000 IBM laptop terrible i know i was trying to get more memory onto my computer by deleting programs i didnt need and a supposed "computer wiz" told me that i didnt need quick time player to run Itunes. so i took it off

  • FD - Free of Charge Delivery and Pricing Error

    Hello Gurus, I want to make a Free of Charge Delivery. In VA01 I chose FD. Prior to doing that I have checked the following: - Item Category = KLN - Schedule Line Category = CP In KLN, Pricing tab is left blank So why when I want to create a Free of

  • Batch Change Dates in Aperture

    I want to batch change hundreds of images in 1 event (or project) in Aperture 3 to be timed apart by the time designation I set forth on the batch process. I have easily done this in iPhoto 8 by selecting all the photos, ctrl-clicking "batch change"

  • Licensing issue by using Applications AC and PC

    Hi, The SAP GRC 10.0 solution comes as bundled solution for AC, PC and RM. While downloading the SAP GRC 10.0 all the three components are downloaded but in a dormant state. With the release of GRC 10.0, Access Control and Process Control are offered

  • Original application file name

    hello, is it possible to view original application file name while searching document (attached file name not document name)? is it possible.currently i am not using EasyDMS. points will be awarded,be sure. thx in advance..