dbf

Php, odbc & vfp

感情迁移 提交于 2019-11-30 07:41:09
问题 I'm trying to connect a dbf database with php. I've tried several different ways, with no luck. PHP: 5.3.8 File: C:\xampp\htdocs\work\vcabdoc.dbf 1rst way: created data source dbvfp, driver C:\Windows\system32\vfpodbc.dll used $odbc = odbc_connect ('dbvfp', '', '') or die('Could Not Connect to ODBC Database!'); Warning: odbc_connect() [function.odbc-connect]: SQL error: [Microsoft][ODBC Visual FoxPro Driver]File c:\xampp\htdocs\work\vcabdoc.dbf is not a database., SQL state S1000 in

Oracle数据库安装以及使用脚本创建数据库授权

徘徊边缘 提交于 2019-11-29 21:00:44
安装数据库 事实上 Oracle 安装 1 、安装准备 Oracle 的安装包下载以后是两个压缩包,同时选中两个压缩包右击进行解压 2 、解压完成如下图所示 3 、双击 setup.exe 文件进行安装,会弹出以下窗口 安全配置:随即会进入安装界面,此时让我们填写电子邮箱,邮箱不是必填选项,可填可不填,不填写的话会有一个提示,我们可直接无视,点击是进入下一步 安装选项:直接选择默认创建和配置一个数据库 ( 安装完数据库管理软件后,系统会自动创建一个数据库实例 ) 。 安装类型:我们选择系统默认的桌面类 典型安装:重要步骤。建议只需要将 Oracle 基目录更新下,目录路径不要含有中文或其它的特殊字符。全局数据库名可以默认,且口令密码,必须要牢记。密码输入时,有提示警告,不符合 Oracel 建议时不用管。 如密码太简单,系统会提示不符合 oracle 的标准,我们直接点击是即可 概要:当填写密码等信息以后,系统会显示所有的配置信息,如我们需要修改配置点击后退可进行重新填写,如果没有问题,我们直接点击完成即可。 安装产品:因为 Oracle 的数据库比较大,安装阶段需要一段的时间,我们不用做任何操作,直接等待系统安装完成。 数据库管理软件文件及 dbms 文件安装完后,会自动创建安装一个实例数据库默认前面的 orcl 名称的数据库 实例数据库创建完成以后,系统会弹出一个数据库信息

What's the easiest way to read a FoxPro DBF file from Python?

六眼飞鱼酱① 提交于 2019-11-29 20:20:08
I've got a bunch of FoxPro (VFP9) DBF files on my Ubuntu system, is there a library to open these in Python? I only need to read them, and would preferably have access to the memo fields too. Update : Thanks @cnu, I used Yusdi Santoso's dbf.py and it works nicely. One gotcha: The memo file name extension must be lower case, i.e. .fpt , not .FPT which was how the filename came over from Windows. cnu You can try this recipe on Active State . There is also a DBFReader module which you can try. For support for memo fields . I prefer dbfpy . It supports both reading and writing of .DBF files and

How to solve “Call to undefined function dbase_open() ” error in windows

做~自己de王妃 提交于 2019-11-29 15:21:16
Hi i want to load DBF file to mysql, am using xampp,php version 5.5.6 i had write the below code, But am getting Error --- Fatal error: Call to undefined function dbase_open() in C:\xampp\htdocs\imports\import_geo.php on line 47 $dbf = dbase_open('OUTLETS/regions.dbf', 0); $num_records = dbase_numrecords($dbf); for($i=1;$i<=$num_records;$i++) { $record = dbase_get_record_with_names($dbf, $i); $stmt_bricks->execute(array( ':id' => $next_brick_id, ':type' => 'Region', ':code' => $record['REG_CODE'], ':descr' => $record['REG_DESC'], )); $regions_code_to_id[$record['REG_CODE']] = $next_brick_id++;

Encoding problems with dBase III .dbf files on different machines

本秂侑毒 提交于 2019-11-29 12:59:03
I'm using C# and .NET 3.5, trying to import some data from old dbf files using ODBC with Microsoft dBase Driver. The dbf's are in dBase III format and using ibm850 encoding for strings. Now, when I run my program on my machine, all string data read from OdbcDataReader comes out converted to UTF-16 or UTF-8 or something, idk and I save it as UTF-8 and everything is ok, but when I try to use this program on an XP box, some characters aren't converted correctly to UTF-8. 'Õ' for example. There may be some others too. Characters like 'Ä', 'Ö' and 'Ü' are ok. This is the problem. Maybe the ODBC or

Trying to Import FoxPro DBF File to SQL Server

女生的网名这么多〃 提交于 2019-11-29 08:47:35
As the title says, I'm trying to import a FoxPro dbf file into sql server using openrowset. At first I tried to export the DBF to an xls file and import using the Import/Export wizard. This works pretty well normally, but there is one field that sometimes holds a really long string, and this string is being truncated at 4096 characters during the export from the dbf to xls. I found an old post with instructions on how to do this using openrowset. When I try the first answer: select * from openrowset('MSDASQL', 'Driver=Microsoft Visual FoxPro Driver; SourceDB=\\path\; SourceType=DBF', 'select *

记一次使用logmnr查找操作人流程

大城市里の小女人 提交于 2019-11-29 08:17:26
经常遇到开发的需求,帮我查一下是谁修改了表里面的记录,是谁对表进行了DDL操作,此类问题可以使用logmnr解决 1.根据操作时间定位归档日志 SELECT name FROM V$ARCHIVED_LOG WHERE CREATOR='ARCH' AND FIRST_TIME BETWEEN TO_DATE('','') AND TO_DATE('',''); 2.将归档日志加载进logmnr EXEC SYS.DBMS_LOGMNR.ADD_LOGFILE('/xxx/xxx/1_158827_757933172.dbf'); 3.打开logmnr EXEC SYS.DBMS_LOGMNR.START_LOGMNR(OPTIONS=>16); 4.从视图根据条件查找 SELECT * FROM V$LOGMNR_CONTENTS WHERE TABLE_NAME='XXXXXX' AND OPERATION='DELETE'; 5.关闭logmnr exec SYS.DBMS_LOGMNR.END_LOGMNR; 但是从上面得到的信息中,发现OS_USERNAME和MACHINE_NAME是空的,没有这两个我们是没有办法定位到人的,而这两个为空的原因是这个人很早就登录了,做操作是之后才做的,所以他的登录信息需要从之前的归档里面查找。但是因为一上午产生的归档特别多

Reading DBF files with pyodbc

流过昼夜 提交于 2019-11-29 07:23:33
In a project, I need to extract data from a Visual FoxPro database, which is stored in dbf files, y have a data directory with 539 files I need to take into account, each file represents a database table, so I've been doing some testing and my code goes like this: import pyodbc connection = pyodbc.connect("Driver={Microsoft Visual FoxPro Driver};SourceType=DBF;SourceDB=P:\\Data;Exclusive=No;Collate=Machine;NULL=No;DELETED=Yes") tables = connection.cursor().tables() for _ in tables: print _ this prints only 15 tables, with no obvious pattern, always the same 15 tables, I thought this was

Php, odbc & vfp

被刻印的时光 ゝ 提交于 2019-11-29 05:19:21
I'm trying to connect a dbf database with php. I've tried several different ways, with no luck. PHP: 5.3.8 File: C:\xampp\htdocs\work\vcabdoc.dbf 1rst way: created data source dbvfp, driver C:\Windows\system32\vfpodbc.dll used $odbc = odbc_connect ('dbvfp', '', '') or die('Could Not Connect to ODBC Database!'); Warning: odbc_connect() [function.odbc-connect]: SQL error: [Microsoft][ODBC Visual FoxPro Driver]File c:\xampp\htdocs\work\vcabdoc.dbf is not a database., SQL state S1000 in SQLConnect in C:\xampp\htdocs\WORK\odbc.php on line 5 2nd way: include('\xampp\php\PEAR\adodb\adodb.inc.php');

Read/Write xBASE (DBASE 3-5 /DBF) files [closed]

早过忘川 提交于 2019-11-29 02:32:23
Is there any good library for reading / writing DBF files in java or any other language ? You might give this library a try: http://dans-dbf-lib.sourceforge.net/ It is open source (GPL) and pure Java. Its easy to get to via OleDB provider, such as via .Net, Visual Foxpro would obviously be able to read it natively. A quick google for dbase and jdbc brought back a number of links for an xbase jdbc driver called StelsDBF. Can't say I've used it or know more than a quick google, but that would be my Java answer. An alternative Java solution would be to set up an ODBC data source for dbase and