Examples to reading *.dbf files

Is there any examples to read data from *.dbf files?
Thanks alot!

Hi,
You can read .dbf files with LabVIEW DataBase Toolkit. If you already have this toolkit, look at the examples that get installed with the it. It uses activeX property and methods to connect and access data in a database.
If you do a search on NI web site of postings related to database access, you'll find a lot of information
LabVIEW Database Connectivity Toolset
http://sine.ni.com/apps/we/nioc.vp?cid=6429〈=US
Zvezdana S.
National Instruments

Similar Messages

  • Reading DBF files

    hello everyone,
    I need to write some beans to read/write DBF files (foxpro). But I dont even know how to start working, any suggested readings/hints/links would be very helpful.
    Thanks a lot for your time!

    You should be able to access them through JDBC. So start with the JDBC tutorial here:
    http://java.sun.com/docs/books/tutorial/

  • A better example (writing/reading text files)

    ...i dont have the code here with me its at the university, im new to java!! When i write to the text file it just comes out as:
    0
    6
    12
    18
    24
    30
    ... right up to 96
    what i want to be written to the file is
    16
    this is the total number of inegers that are divisble by 6 exactly, from 0 - 100...is this any easier to understand. Hopefully it will be..
    i think a part of the code to get the numbers divisble by 6 is:
    int total = 0;
    int num;
    if (num % 6 = = 0)
    six.println(total);
    Thanx

    you should use a counter that increments everytime a number divisible by 6 is registered. Then print the amount in the counter out to the file.

  • LSMW file read & convert file name

    Guys
    This is pretty hot - any ideas to automate will be helpful.
    Is there a way to programmatically change the default name for the LSMW file read and file convert names?
    For example if read & conv file is
    Plant_Master_Material.lsmw.read & Plant_Master_Material.lsmw.conv,
    I want to programmatically append userid and make the file name look like
    Plant_Master_Material_myid.lsmw.read & Plant_Master_Material_myid.lsmw.conv.
    It can be done manually via step specify file in LSMW, but I want to automate that step.

    Hi Iqbal,
    Its not possible to make it automatically,
    name for the LSMW file read and file convert will as such like this
    PROJECT_SUBPROJECT_OBJECT.lsmw.read & lsmw.conv.
    This can not be changed...if u need it u can have u r userid under u r object name...
    Reward if useful..

  • Reading foxpro dbf files from forms6i

    hi all,
    can anyone tell me how can i read a dbf file and access data from that.
    Thanks
    Uday

    Exec_Sql Package allows you to acess non Oracle Database
    You will have to follow following steps as follows:-
    1-First Find OCA.PLL and EXEC_SQL.PLL libraray.
    2-Attach Both libraries to ur concerned Forms.
    3-Create VFP odbc driver.
    3-Create a Button to write follwing codes on WHEN-BUTTON-PRESSED trigger or u can write
    these code on any Trigger as you required.
    Decalre
    conidodbc exec_sql.conntype;
    B varchar2(100);
    C varchar2(100);
    curid exec_sql.cyrstype;
    sqlstr varchar2(1000);
    nres pls_integer;
    Begin
    --This exec_sql.open_connection Procedure connect your 
    --non Oracle Database through ODBC Driver
    coniidodbc:=exec_sql.open_connection
    ('scott/tiger@odbc:yourodbcdivername');
    --exec_sql.opne_cursor return the curid of your non
    --Oracle Database
    curid:=exec_sql.opne_cursor(conidodbc);
    --It is Your non Oracle Database Statement follow there
    --Syntax rule of your non Oracle Database Syntax
    sqlstr:='Select A from yourdbffilename ';
    --exec_sql.Parse procedure parse your Stement to non
    --Oracle Database
    exec_sql.Parse(connidodbc,curid,sqlstr,exec_sql.V7);
    --After succesful Parsing it Executes your Ststment
    nres:=exec_sql.execute(conidodbc,curid);
    --exec_sql.Define column mapping for your local
    --variable to Non Oracle Database Column
    exec_sql.Define column (conidodbc,curid,B,30);
    while (Exec_Sql.fetch_rows(conidodbc,curid)>0)
    loop
    --Exec_Sql.column_value intiliaze your Non Oracle
    --Database to your Local Variable
    Exec_Sql.column_value (conidodbc,curid,1,B);
    C:=B;
    message('C value '||C);
    end loop;
    End;
    --Rest Explanation About Exec_Sql Package Find Help in
    --You Forms Still If any Problem then add me on MSN my id
    --is [email protected] may be I can help you more
    Thanks
    Khurram Siddiqui

  • Reading DBF & XLS files from ODI-AIX

    Hi all
    I need to read DBF (Foxpro) and XLS files from ODI 10.1.3.5 for AIX 6.x
    Anyone knows what drivers we need to install or any other kind of method to read them?
    Thanks in advance
    Ernest !

    Ernest,
    To load DBF on AIX, you will need to use a DBF Foxpro jdbc driver. One of the drivers can be purchased from http://www.csv-jdbc.com/stels_dbf_jdbc.htm
    or
    http://www.hxtt.com/dbf.html
    Copy the driver in the $ODI_HOME/oracledi/drivers directory and restart the agent if you have any.
    Then you need to configure a Dbase physical dataserver + physical schema with the following JDBC URL
    jdbc:jstels:dbf:/yourserverpath/dir_containing_dbf_files
    Obviously, you will also need to define the corresponding logical schema
    And after you define a model based on the logical schema, you will define the datastore. The "resource name" will contain name of the dbf file without the .dbf.
    For XLS, you can try the drivers from the listed above.
    HTH

  • How to read a .dbf file on 64 bit sql server?

    We are running 64 bit windows server 2003 / sql server 2005. 
    I need to use openrowset to read a dbf file. 
    Is there ANY way to do that?

    The basic issue is that 64 bit processes cannot load 32 bit dlls.  Many drivers only release in 32 bit mode.  I am not sure if there is an intent to add 64 bit drivers in the future.  There is a way to work around this issue, but it is sort of roundabout.  You can install SQL Express in 32 bit mode and double hop to the dbf file (or any other 32 bit only provider) through 64 bit SQLNCLI.  The 32 bit express instance can OPENROWSET using all the 32 bit drivers, and the 64 bit SQLNCLI provider can connect to the 32 bit express instance.
    I hope that helps,
    John

  • Oracle Forms can read the DBF files ?

    hi,
    i have 2 PC : the first with sco-unix and a database d-base with files .DBF
    and the second PC with windows xp pro and data base oracle
    i want to know if Oracle Forms can read the DBF files from the first PC and load the data to oracle data base.
    thank's

    Lido,
    If you can create an ODBC connector for your d-Base files you should be able to use ODBC to read the data from these files. The alternative would be to use TEXT_IO (Forms 6i/Client Server) or CLIENT_TEXT_IO (WebUtils) to read the .DBF files (as I recall, d-Base simply wrote a comma delimited data file). Using this method will require you to understand the layout of the .dbf file so you know which data element is which.
    Which method you use depends on which version of Oracle Forms you are using and if your application is web deployed or Client/Server.
    Craig...

  • To read COMTRADE file in Labview there is an example provided. Can somebody provide the sample .cfg and .dat files required for its working?

    To read COMTRADE file in Labview there is an example provided. Can somebody provide the sample .cfg and .dat files required for its working?

    Thanks for the reply.
    But this library doesn't contain any sample .cfg and .dat files which can be read and understood. Can you please provide the same?

  • Oracle XE 11g x64 does not run. No *DBF files inside of the XE folder. Windows 7 Pro x64.

    Hello everyone!
    I hope you are doing well all. In my case I have some troubles by installing Oracle XE 11g on my PC. My OS is Windows 7 Pro x64.
    1. I activated the Administrator mode on my PC (net user Administrator /active:yes)
    2. Started the setup as Administrator. The setup process was finished successfully with no errors showed.
    3. Started the Database, OracleServiceXE, OracleXETNListener and other services.
    4. Tried to connect using sqlplus-> connect system ->password, what in result gave me ORA-01034 Oracle not available and ORA-27101 Shared memory realm does not exist errors.
    5. Then I recognized that my C:\oraclexe\app\oracle\oradata\XE folder is empty when it should be usually full with 6 DBF file.
    6. I opened the cloneDBCreation.log and it contains these data:
    SQL> Create controlfile reuse set database "XE"
      2  MAXINSTANCES 8
      3  MAXLOGHISTORY 1
      4  MAXLOGFILES 16
      5  MAXLOGMEMBERS 3
      6  MAXDATAFILES 100
      7  Datafile
      8  'C:\oraclexe\app\oracle\oradata\XE\system.dbf',
      9  'C:\oraclexe\app\oracle\oradata\XE\undotbs1.dbf',
    10  'C:\oraclexe\app\oracle\oradata\XE\sysaux.dbf',
    11  'C:\oraclexe\app\oracle\oradata\XE\users.dbf'
    12  LOGFILE
    13  GROUP 1 SIZE 51200K,
    14  GROUP 2 SIZE 51200K,
    15  RESETLOGS;
    SP2-0640: Not connected
    SQL> exec dbms_backup_restore.zerodbid(0);
    SP2-0640: Not connected
    SP2-0641: "EXECUTE" requires connection to server
    SQL> shutdown immediate;
    ORA-12560: TNS:protocol adapter error
    SQL> startup nomount pfile="C:\oraclexe\app\oracle\product\11.2.0\server\config\scripts\initXETemp.ora";
    ORA-12560: TNS:protocol adapter error
    SQL> Create controlfile reuse set database "XE"
      2  MAXINSTANCES 8
      3  MAXLOGHISTORY 1
      4  MAXLOGFILES 16
      5  MAXLOGMEMBERS 3
      6  MAXDATAFILES 100
      7  Datafile
      8  'C:\oraclexe\app\oracle\oradata\XE\system.dbf',
      9  'C:\oraclexe\app\oracle\oradata\XE\undotbs1.dbf',
    10  'C:\oraclexe\app\oracle\oradata\XE\sysaux.dbf',
    11  'C:\oraclexe\app\oracle\oradata\XE\users.dbf'
    12  LOGFILE
    13  GROUP 1 SIZE 51200K,
    14  GROUP 2 SIZE 51200K,
    15  RESETLOGS;
    SP2-0640: Not connected
    SQL> alter system enable restricted session;
    SP2-0640: Not connected
    SQL> alter database "XE" open resetlogs;
    SP2-0640: Not connected
    SQL> alter database rename global_name to "XE";
    SP2-0640: Not connected
    SQL> alter system switch logfile;
    SP2-0640: Not connected
    SQL> alter system checkpoint;
    SP2-0640: Not connected
    SQL> alter database drop logfile group 3;
    SP2-0640: Not connected
    SQL> ALTER TABLESPACE TEMP ADD TEMPFILE 'C:\oraclexe\app\oracle\oradata\XE\temp.dbf' SIZE 20480K REUSE AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED;
    SP2-0640: Not connected
    SQL> select tablespace_name from dba_tablespaces where tablespace_name='USERS';
    SP2-0640: Not connected
    SQL> select sid, program, serial#, username from v$session;
    SP2-0640: Not connected
    SQL> alter user sys identified by "&&sysPassword";
    SP2-0640: Not connected
    SQL> alter user system identified by "&&systemPassword";
    SP2-0640: Not connected
    SQL> alter system disable restricted session;
    SP2-0640: Not connected
    SQL> @C:\oraclexe\app\oracle\product\11.2.0\server\config\scripts\postScripts.sql
    SQL> connect "SYS"/"&&sysPassword" as SYSDBA
    ERROR:
    ORA-12560: TNS:protocol adapter error
    SQL> set echo on
    SQL> spool C:\oraclexe\app\oracle\product\11.2.0\server\config\log\postScripts.log
    I spent around 2 days to come to this reason and now I do not know what to do next.
    My actions to resolve this problem:
    1. Checked if my user has administrative rights and belongs to ora_dba. It does!
    2. Turned Microsoft UAC off.
    3. Set the system and local variables of ORACLE_BASE, ORACLE_HOME, ORACLE_SID, PATH, TNS-ADMIN to the appropriate values in Enivornment Variables:
         - ORACLE_BASE -> C:\oraclexe
         - ORACLE_HOME -> %ORACLE_BASE%\app\oracle\product\11.2.0\server
         - ORACLE_SID -> XE
         - Added to PATH -> C:\oraclexe\app\oracle\product\11.2.0\server\bin;
         - TNS_ADMIN -> %ORACLE_HOME%\network\admin
    4. Removed Oracle XE 11g and reinstalled to another drive. No sense!
    Some more errors:
    1. C:\oraclexe\app\oracle\product\11.2.0\server\config\log\XE.bat.log
    Instance created.
    DIM-00019: create service error
    O/S-Error: (OS 1387) Ein Mitglied konnte in der lokalen Gruppe nicht hinzugefugt oder entfernt werden, da das Mitglied nicht vorhanden ist.
    It means -> O/S-Error: (OS 1387) Unable to add or remove a member from the local group because this member does not exist.
    I understand that I need to logon as batch job. I added me to this policy in User Rights Assignments, but still I get these "DIM-00019: create service error" and "O/S-Error: (OS 1387)". And I guess just therefore my database is not starting well.
    2. 127.0.0.1:8080/apex/f?p=4950 is not starting in browser. It is probably because the database is not running appropriately. For this issue have already seen one topic in Google that the HTTP Properties inside the Listener Status must be set to 8080 to make this link work. But in my case I do not see this line in my Listener Status:
    Some other information relevant to the issue:
    1)  echo %USERNAME% - Administrator
         echo %USERDOMAIN% - ildar-PC
    2) Listener.log:
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
          (PROGRAM = extproc)
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
          (PROGRAM = extproc)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
          (ADDRESS = (PROTOCOL = TCP)(HOST = ildar-PC)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)
    3) Tnsnames.log
    XE =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = ildar-PC)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
        (CONNECT_DATA =
          (SID = PLSExtProc)
          (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
    4) Sqlnet.log:
    SQLNET.AUTHENTICATION_SERVICES = (NTS)
    5) While connecting by sqlplus, I get this errors/messages:
    6) Confirmation that I've got admin rights and I am in ORA_DBA:
    If u need some more information from me, please let me know!!
    Guys please help me to solve this issue, 'cause I've almost got frustrated to find out the solution of this problem. Thank you beforehand!!
    Kind regards,
    ildar

    I have tried to install both of them lots of times but in each case I receive the same in my XE.bat file:
    Instance created.
    DIM-00019: create service error
    O/S-Error: (OS 1387) Unable to add or remove a member from the local group because this member does not exist.
    Have checked OS 1387 error at Microsoft Support and as possible cause of the problem they give as follows:
    This issue can occur if the environment has a disjointed namespace (i.e. the domain has different NetBIOS and DNS names). For example, assume that the domain has a NetBIOS name of "domain.com" and a DNS name of "domain-old.com." When users are added in the Windows UI, they are displayed in the format of domain\ComputerName. However, you notice in the error log that there was an attempt to add a computer account in the format of domain-old\ComputerName. (System Center 2012 R2 Data Protection Manager install fails and generates ID: 4323: "A member could not be added")
    Tried to find out my DNS name, but it is impossible because I don't have any domain installed and my machine is not connected to it. Some other blog (Install Oracle 11gR2 on Windows) advices to work with adding my computer account to some non-real windows domain (just for the purpose of resolving the network) as well and reinstall the database then. If I undestand it right I need minimum 2 machines for this. But I own just one, where the server is based and thought that is enough to run the database... no idea ..

  • How to connect with dbf file driver in C#.

    Hi
    I am using the following command in powerbuilder application to connect dbf file and to select the record from dbf file.
    DBemp.dbparm="ConnectString='Driver={Microsoft dBase Driver (*.dbf)};Dbq="+ls_path+";Uid=;Pwd='". It is working fine in powerbuilder . I am looking for the same command to apply in C#. Please any help would be very appreciate.
    I had used  the following command in C# before but it is not working in every machine
    OdbcConnection dBaseConnection = new OdbcConnection("Driver={Microsoft dBASE Driver (*.dbf)};DriverID=277;Dbq=" + filePath +";");
    The above command in C# is working fine in some machine but some machine it is not working especially 64 bit operating system.
    If I can get the same command as in powerbuilder , I think would be working in every machine. Please can u help
    DBemp.dbparm="ConnectString='Driver={Microsoft dBase Driver (*.dbf)};Dbq="+ls_path+";Uid=;Pwd='".
    With Many Thanks
    Pol
    polachan

    Does it work if you go to Project Properties and force 32-bit or 64-bit modes? (For example, uncheck the ‘Prefer 32-bit’ option, then select ‘x86’ in Platform Target for Debug and Release configurations. Then try the ‘x64’ Platform Target
    too).

  • Any Mac software for opening DBF files?

    I have a mac that is not running Windows.
    I would like to at least view the contents of a dbf file. I have tried without success to find (google) such a program.
    Is there anything out there that will help me?
    Thanks.
    -- Jillaine

    Try V.K.'s suggestion first - NeoOffice is free and though its database section is extremely clunky you might be able to get it to work with your file.
    Apple's now unsupported office program AppleWorks can import DBF files: Apple no longer sell it but you might be able to find a copy; ask for advice in the AppleWorks Forum - you might even be able to find someone who will convert it for you if you ask nicely. (You would still have to open it yourself, so you would need to ask them to export it as text).
    FileMaker Pro can import XML and ODBC files but I can't see any evidence that it will import DBF files - you would need to contact their Support on this.
    You only other option would be to try to find someone with Windows and a suitable program who can open the file and convert it to text, either tab or comma delimited, and then open that in (for example) Bento which is art least cheap, or NeoOffice.

  • ORACLE 9i startup problems. Try to open dbf file which doesn't exist

    Hi all,
    I'm trying to startup one oracle instance from sqlplus.
    I can mount the database but i can't open it because try to open one dbf file incorrect.
    Anyone know where i can indicate wich files should use? Perhps it's in the init.ora file?
    Regards

    I am not sure which method rdomene used but I would think he probably used the alter database backup control file to trace command (since he could mount the db)to create a text version that he could look at.
    I have head about people who did not know Oracle provided a means of dumping a text version of the control file to trace who used UNIX strings or a binary editor to see the contents.
    It is unfortunat that the text version, which can be used to reconstruct the control file, does not preserve the rman data.
    HTH -- Mark D Powell --

  • Reading of File from legacy system into SAP Application Server using SAP XI

    Hi All,
      I have a file in <b>Legacy System with Exchange rates information data</b> i have to read that file using SAP XI process and put that file in SAP Application Server in SAP Specific Format and latter i have to use program RFTBFF00 to upload the file in the Application Server into SAP Tables.
      Can anybody tell me how can i do this with some example of same scenario.
      It would be better if anybody provides code example as i am new to SAP XI.
    Thanks in advance.
    Warm Regards,
    Rayeez.

    Hi Shaik,
    You need the access to the file system of ur legacy application and then you can follow this link for the required ifnormation
    File & Header
    Regards
    Vishnu

  • Error 1004 occurred at Open VI Reference in Directory of Top Level VI.vi- Check Path.vi- Read PNG File.vi- ValveUI.xctl:LoadBackgroundImage.vi- ValveUI.xctl:Facade 1.vi:29- ValveUI.xctl:Facade 1.vi.ProxyCaller

    I am trying to dynamically load the background image of an XControl facade using a 'LoadBackgroundImage.vi' that I have written. This SubVI has worked with a normal VIs panel before. It utilizes the 'Read PNG File.vi' from Labview to read in a transparent PNG file to overwrite the Facade background. When the XControl is loaded during design-time it generates an Error 1004 indicating that the 'Read PNG File.vi' is not in memory. I have tried to place a static reference to this vi to force it to load but I still get this error. What is the solution?
    Attachments:
    Error Dialog.PNG ‏9 KB
    LoadBackgroundImage_VI.PNG ‏33 KB

    Darin, thanks for your reply.
    The XControl Facade is rendered on the Main FP when the Main.vi is opened in design mode. Previously I have placed a PNG image onto the Facade pane (i.e. drag-n-drop the image onto the Facade FP during design) and it is displayed on the Main.vi FP in design mode when Main is loaded. However, when I include a call to Read PNG File.vi in the Facade I get the 1004 error. You may not see this error without using a Simple Error Dialog. This failure to find Read PNG File.vi in memory is the main issue.
    I have tried to use SubPanels before - they are useless for my purposes for many reasons (they don't show the underlying SubVI pane in design mode, they require the use of SubVI references to load - preventing the use of direct wiring to the SubVI connector, etc.).
    Do you know how to dynamically load and call 'Read PNG File.vi' so that Labview is forced to load the VI and then Read PNG File can load the PNG image? I can get 'Read PNG File.vi' to dynamically load and show property values but to call it with the 'Call By Reference Node Function' I need a strict type def to be generated, etc. So what are the steps needed to create a dynamic call to 'Read PNG File.vi'? I haven't seen any good working examples that show how to create the strict typedefs that are required etc. There is no right-click > Make Type Def > ...  for Read PNG File.vi or other ways to do this that I have noticed. Showing a finished example doesn't show you how to do it (menu selections, etc.). Or, do I have to hand construct these typedefs by reverse engineering the VI?

Maybe you are looking for

  • My files are a mess - how can I start over in iTunes?

    Over the years, my music files have become scattered all over between different locations on my internal drive and various externals. I have tons of duplicates, lost files, and it's just a general mess. I would like to do a search for all my music fi

  • Best Practice Analyzer for Exchange 2013

    Greetings, I have upgraded the messaging infrastructure from Exchange 2007 to Exchange 2013. I want to test the Health of the system through ExBPA for Exchange 2013. But i don't find any setup for Exchange 2013 like it was in 2010. I went through an

  • Static again,......

    I have this interface interface AttachmentServiceIF extends Remote {    public abstract DataHandler getAttachment(String name) throws SOAPException; }and this method inside another class which implements that interface public DataHandler getAttachmen

  • Unwanted "launch application" box comes up when trying to download a file

    On trying to download an exe file from a web page, the download page comes up and immediately goes to the 'launch application' box.

  • Can anybody help... I need to enable thumbnail preview in Win7 64bit

    Can anybody help... I need to enable thumbnail preview in Win7 64bit I have tried the Adobe regfix and no luck at all Any assistance is greatly appreciated.