Sjoerd Mullender | 1 Sep 2008 10:52
Picon
Favicon

Re: Using the MAPI library

Erin's Ghost wrote:
> hello,
>  
> do you have some sort of tutorial on how to build the MAPI library on
> Windows (for use in an external program that connects to monet) ?

The best we have currently available is
http://monetdb.cwi.nl/projects/monetdb//MonetDB/Documentation/Windows-Installation.html

You will need to figure out which parts you need if you only want Mapi
(part of the Clients package).

--

-- 
Sjoerd Mullender

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Monetdb-developers mailing list
Monetdb-developers@...
https://lists.sourceforge.net/lists/listinfo/monetdb-developers
Sjoerd Mullender | 2 Sep 2008 15:30
Picon
Favicon

Re: MonetDB5/src/modules/kernel algebra.mx, MonetDB_5-6, 1.196, 1.196.2.1

When propagating I noticed this.  This change, and the accompanying
change in SQL, is not allowed on the stable branch.

With this change, a new SQL cannot work with an old MonetDB5 and that
makes this change unacceptable.  If you want to fix a bug than you will
just have to work around it on the SQL side without adding new features
in MonetDB5.

Your release manager.

Sorry Niels.

Niels Nes wrote:
> Update of /cvsroot/monetdb/MonetDB5/src/modules/kernel
> In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv28287/src/modules/kernel
> 
> Modified Files:
>       Tag: MonetDB_5-6
> 	algebra.mx 
> Log Message:
> added thetauselect/thetaselect these correctly handle nil cases (the sql semantics way)
> 
> 
> U algebra.mx
> Index: algebra.mx
> ===================================================================
> RCS file: /cvsroot/monetdb/MonetDB5/src/modules/kernel/algebra.mx,v
> retrieving revision 1.196
> retrieving revision 1.196.2.1
> diff -u -d -r1.196 -r1.196.2.1
(Continue reading)

Stefan Manegold | 6 Sep 2008 13:34
Picon
Picon
Favicon

Re: [Monetdb-checkins] MonetDB5/src/mal/Tests tst026.stable.out, , 1.5, 1.6 tst1505.stable.out, , 1.25, 1.26 tst220.stable.out, , 1.39, 1.40 tst280.stable.out, , 1.28, 1.29 tst903.stable.out, , 1.52, 1.53

On Sat, Sep 06, 2008 at 11:22:09AM +0000, Martin Kersten wrote:
> Update of /cvsroot/monetdb/MonetDB5/src/mal/Tests
> In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv8410/mal/Tests
> 
> Modified Files:
> 	tst026.stable.out tst1505.stable.out tst220.stable.out 
> 	tst280.stable.out tst903.stable.out 
> Log Message:
> The function aggr.count() now returns a lng, because we have to support
> tables with more then 3G tuples.
> The grouping operations still assume 32 bits to be sufficient.

Since we (as far as I can tell) can only support ~2G tuples on 32-bit
systems, what about using "wrd" instead of "lng", i.e., 32-bit on 32-bit
systems & 64-bit on 64-bit systems?

In fact, with with Sjoerd recent changes, BAT cardinalities are of type
"BUN" which is currently defined as "oid"; hence, BATs are limited ~2G
tuples in case of 32-bit OIDs (even/also on 64-bit systems with 32-bit OIDs)
--- a VoID column can obvoiusly not handle more in case of 32-bit OIDs ...

Stefan

> 
> 
> U tst026.stable.out
> Index: tst026.stable.out
> ===================================================================
> RCS file: /cvsroot/monetdb/MonetDB5/src/mal/Tests/tst026.stable.out,v
> retrieving revision 1.5
(Continue reading)

Martin Kersten | 6 Sep 2008 13:50
Picon
Picon
Favicon

Re: [Monetdb-checkins] MonetDB5/src/mal/Tests tst026.stable.out, , 1.5, 1.6 tst1505.stable.out, , 1.25, 1.26 tst220.stable.out, , 1.39, 1.40 tst280.stable.out, , 1.28, 1.29 tst903.stable.out, , 1.52, 1.53

Stefan Manegold wrote:
> On Sat, Sep 06, 2008 at 11:22:09AM +0000, Martin Kersten wrote:
>   
>> Update of /cvsroot/monetdb/MonetDB5/src/mal/Tests
>> In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv8410/mal/Tests
>>
>> Modified Files:
>> 	tst026.stable.out tst1505.stable.out tst220.stable.out 
>> 	tst280.stable.out tst903.stable.out 
>> Log Message:
>> The function aggr.count() now returns a lng, because we have to support
>> tables with more then 3G tuples.
>> The grouping operations still assume 32 bits to be sufficient.
>>     
>
> Since we (as far as I can tell) can only support ~2G tuples on 32-bit
> systems, what about using "wrd" instead of "lng", i.e., 32-bit on 32-bit
> systems & 64-bit on 64-bit systems?
>
> In fact, with with Sjoerd recent changes, BAT cardinalities are of type
> "BUN" which is currently defined as "oid"; hence, BATs are limited ~2G
> tuples in case of 32-bit OIDs (even/also on 64-bit systems with 32-bit OIDs)
> --- a VoID column can obvoiusly not handle more in case of 32-bit OIDs ...
>
> Stefan
>   
would indeed be more 'precise' or less of an overshoot.
We need to adjust the group count as well.... so might do it in one blow
tonight Niels will adjust SQL for this change
i have to shop now : (((
(Continue reading)

sylver_b | 9 Sep 2008 09:24
Picon
Favicon

Re: Cannot get perl talking to monetdb5 nightly stable

Hi Everyone,

I'm also experiencing some difficulties with Perl - i've spent the past 3 days trying to get this to work but i can't find any log, any error message etc ...

I've installed all the perl libs , but when i run the test script, it's just stay there indefinitely with no output,no error - this is the script :
cat monetdb2.pl

#!/usr/bin/perl

use DBI();

  my $dbh = DBI->connect('dbi:monetdb:');

  my $sth = $dbh->prepare('SELECT * FROM env');
  $sth->execute;
  $sth->dump_results;

I'm running monetdb with the following command:
root <at> ulys:~# mserver5 --dbinit="include sql;" --dbname=demo --daemon=yes
# MonetDB server v5.6.0, based on kernel v1.24.0
# Serving database 'demo'
# Compiled for i686-pc-linux-gnu/32bit with 32bit OIDs dynamically linked
# Copyright (c) 1993-2008 CWI, all rights reserved
# Visit http://monetdb.cwi.nl/ for further information
#warning: please don't forget to set your vault key!
#(see /root/MonetDB/etc/monetdb5.conf)
# Listening for connection requests on mapi:monetdb://127.0.0.1:50000/
# MonetDB/SQL module v2.24.0 loaded

when i kill the monetdb daemon, my perl script is throwing this error :
# ./monetdb2.pl
Caught a SIGPIPE at /usr/local/share/perl/5.8.8/MonetDB/CLI/MapiPP.pm line 93
$ = eval {...} called from file `/usr/local/share/perl/5.8.8/MonetDB/CLI/MapiPP.pm' line 93
$ = MonetDB::CLI::MapiPP::Req::query('MonetDB::CLI::MapiPP::Req=HASH(0x83a66e0)', 'SELECT * FROM env') called from file `/usr/local/share/perl/5.8.8/DBD/monetdb.pm' line 567
$ = eval {...} called from file `/usr/local/share/perl/5.8.8/DBD/monetdb.pm' line 567
$ = DBD::monetdb::st::execute('DBI::st=HASH(0x83a683c)') called from file `./monetdb2.pl' line 8
Aborted

Also i can connect with no problem with mclient (no password required).

Please advise on how to get perl talking to monetdb5.

Thanks in advance,
SB
 
------ original message -------

[Monetdb-developers] Cannot get perl talking to monetdb5 nightly stable
From: Rt Ibmer <rtibmx <at> ya...> - 2008-06-17 02:06
I am using the nightly stable build of monetdb5. All outside of perl->monetdb seems to
be working just fine. I just can't get perl to talk to the db.

Here's what I did:

- installed from nightly stable source on Fedora 8

- copied the source from http://homepages.cwi.nl/~mk/MonetDB/The-Perl-Library.html into
mytest.pl

- tried running: perl /tmp/mytest.pl

but it came back complaining about missing libs in <at> INC.

So then I added these steps:

- /var/tmp/MonetDB-1213632062/MonetDB-client/clients/src/perl
- make install
and also ran make instlal in the various subdirs like MonetDB-CLI and others (not sure if
this step was necessar)

Then I tried running the script and this time it executed without the <at> INC errors. So this
was progress.

However all I get is this:
-------
Start a simple Monet MIL interaction

data sources: dbi:monetdb:
--------

and then nothing. It just sits there indefinitely. In playing with the source of the .pl I
see that it is the "my $dbh = DBI->connect( $dsn, ..."
that execution stops at. 

I have merovingian running and the db is started. I also tried with merovigan stopped and
just using mserver5 --dbinit="include sql;" but I had the same result.

Am I doing something wrong? Thanks.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Monetdb-developers mailing list
Monetdb-developers@...
https://lists.sourceforge.net/lists/listinfo/monetdb-developers
sylver_b | 9 Sep 2008 10:36
Picon
Favicon

Re : Cannot get perl talking to monetdb5 nightly stable

Hi 

For the one wondering why the Perl lib doesn't work with monetdb , this is the answer from the developer :

>MonetDB::CLI::MapiPP still speaks protocol version 4, not 5.
>Maybe the libMapi based MonetDB::CLI::MapiLib works with the
>current version - I didn't test it.

SB

----- Message d'origine ----
De : sylver_b <sylver_b-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>
À : monetdb-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Envoyé le : Mardi, 9 Septembre 2008, 8h24mn 06s
Objet : RE: [Monetdb-developers] Cannot get perl talking to monetdb5 nightly stable

Hi Everyone,

I'm also experiencing some difficulties with Perl - i've spent the past 3 days trying to get this to work but i can't find any log, any error message etc ...

I've installed all the perl libs , but when i run the test script, it's just stay there indefinitely with no output,no error - this is the script :
cat monetdb2.pl

#!/usr/bin/perl

use DBI();

  my $dbh = DBI->connect('dbi:monetdb:');

  my $sth = $dbh->prepare('SELECT * FROM env');
  $sth->execute;
  $sth->dump_results;

I'm running monetdb with the following command:
root <at> ulys:~# mserver5 --dbinit="include sql;" --dbname=demo --daemon=yes
# MonetDB server v5.6.0, based on kernel v1.24.0
# Serving database 'demo'
# Compiled for i686-pc-linux-gnu/32bit with 32bit OIDs dynamically linked
# Copyright (c) 1993-2008 CWI, all rights reserved
# Visit http://monetdb.cwi.nl/ for further information
#warning: please don't forget to set your vault key!
#(see /root/MonetDB/etc/monetdb5.conf)
# Listening for connection requests on mapi:monetdb://127.0.0.1:50000/
# MonetDB/SQL module v2.24.0 loaded

when i kill the monetdb daemon, my perl script is throwing this error :
# ./monetdb2.pl
Caught a SIGPIPE at /usr/local/share/perl/5.8.8/MonetDB/CLI/MapiPP.pm line 93
$ = eval {...} called from file `/usr/local/share/perl/5.8.8/MonetDB/CLI/MapiPP.pm' line 93
$ = MonetDB::CLI::MapiPP::Req::query('MonetDB::CLI::MapiPP::Req=HASH(0x83a66e0)', 'SELECT * FROM env') called from file `/usr/local/share/perl/5.8.8/DBD/monetdb.pm' line 567
$ = eval {...} called from file `/usr/local/share/perl/5.8.8/DBD/monetdb.pm' line 567
$ = DBD::monetdb::st::execute('DBI::st=HASH(0x83a683c)') called from file `./monetdb2.pl' line 8
Aborted

Also i can connect with no problem with mclient (no password required).

Please advise on how to get perl talking to monetdb5.

Thanks in advance,
SB
 
------ original message -------

[Monetdb-developers] Cannot get perl talking to monetdb5 nightly stable
From: Rt Ibmer <rtibmx <at> ya...> - 2008-06-17 02:06
I am using the nightly stable build of monetdb5. All outside of perl->monetdb seems to
be working just fine. I just can't get perl to talk to the db.

Here's what I did:

- installed from nightly stable source on Fedora 8

- copied the source from http://homepages.cwi.nl/~mk/MonetDB/The-Perl-Library.html into
mytest.pl

- tried running: perl /tmp/mytest.pl

but it came back complaining about missing libs in <at> INC.

So then I added these steps:

- /var/tmp/MonetDB-1213632062/MonetDB-client/clients/src/perl
- make install
and also ran make instlal in the various subdirs like MonetDB-CLI and others (not sure if
this step was necessar)

Then I tried running the script and this time it executed without the <at> INC errors. So this
was progress.

However all I get is this:
-------
Start a simple Monet MIL interaction

data sources: dbi:monetdb:
--------

and then nothing. It just sits there indefinitely. In playing with the source of the .pl I
see that it is the "my $dbh = DBI->connect( $dsn, ..."
that execution stops at. 

I have merovingian running and the db is started. I also tried with merovigan stopped and
just using mserver5 --dbinit="include sql;" but I had the same result.

Am I doing something wrong? Thanks.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Monetdb-developers mailing list
Monetdb-developers@...
https://lists.sourceforge.net/lists/listinfo/monetdb-developers
Niels Nes | 9 Sep 2008 11:08
Picon
Picon
Favicon

Re: Re : Cannot get perl talking to monetdb5 nightly stable

On Tue, Sep 09, 2008 at 01:36:21AM -0700, sylver_b wrote:
>    HiÂ
>    For the one wondering why the Perl lib doesn't work with
>    monetdb , this is the answer from the developer :
>    >MonetDB::CLI::MapiPP still speaks protocol version 4, not 5.
>    >Maybe the libMapi based MonetDB::CLI::MapiLib works with the
>    >current version - I didn't test it.
>    SB
>    ----- Message d'origine ----
>    De : sylver_b <sylver_b@...>
>    Ã : monetdb-developers@...
>    Envoyé le : Mardi, 9 Septembre 2008, 8h24mn 06s
>    Objet : RE: [Monetdb-developers] Cannot get perl talking to
>    monetdb5 nightly stable
>    Hi Everyone,
>    I'm also experiencing some difficulties with Perl - i've spent
>    the past 3 days trying to get this to work but i can't find any
>    log, any error message etc ...
>    I've installed all the perl libs , but when i run the test
>    script, it's just stay there indefinitely with no output,no
>    error - this is the script :
>    cat monetdb2.pl
>    #!/usr/bin/perl
>    use DBI();
>    Â Â my $dbh = DBI->connect('dbi:monetdb:');
>    Â Â my $sth = $dbh->prepare('SELECT * FROM env');
Sorry the example is wrong here. It should be 'SELECT * FROM env() env',
ie the table env is replaced by a function some time ago.

Also I just needed to add the path 
$prefix/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/
to my PERL5LIB environment variable.

With that it seems to work.

Niels

>    Â Â $sth->execute;
>    Â Â $sth->dump_results;
>    I'm running monetdb with the following command:
>    root <at> ulys:~# mserver5 --dbinit="include sql;" --dbname=demo
>    --daemon=yes
>    # MonetDB server v5.6.0, based on kernel v1.24.0
>    # Serving database 'demo'
>    # Compiled for i686-pc-linux-gnu/32bit with 32bit OIDs
>    dynamically linked
>    # Copyright (c) 1993-2008 CWI, all rights reserved
>    # Visit http://monetdb.cwi.nl/ for further information
>    #warning: please don't forget to set your vault key!
>    #(see /root/MonetDB/etc/monetdb5.conf)
>    # Listening for connection requests on
>    mapi:monetdb://127.0.0.1:50000/
>    # MonetDB/SQL module v2.24.0 loaded
>    when i kill the monetdb daemon, my perl script is throwing this
>    error :
>    # ./monetdb2.pl
>    Caught a SIGPIPE at
>    /usr/local/share/perl/5.8.8/MonetDB/CLI/MapiPP.pm line 93
>    $ = eval {...} called from file
>    `/usr/local/share/perl/5.8.8/MonetDB/CLI/MapiPP.pm' line 93
>    $ =
>    MonetDB::CLI::MapiPP::Req::query('MonetDB::CLI::MapiPP::Req=HAS
>    H(0x83a66e0)', 'SELECT * FROM env') called from file
>    `/usr/local/share/perl/5.8.8/DBD/monetdb.pm' line 567
>    $ = eval {...} called from file
>    `/usr/local/share/perl/5.8.8/DBD/monetdb.pm' line 567
>    $ = DBD::monetdb::st::execute('DBI::st=HASH(0x83a683c)') called
>    from file `./monetdb2.pl' line 8
>    Aborted
>    Also i can connect with no problem with mclient (no password
>    required).
>    Please advise on how to get perl talking to monetdb5.
>    Thanks in advance,
>    SB
>    Â
>    ------ original message -------
>    [Monetdb-developers] Cannot get perl talking to monetdb5
>    nightly stable
>    From: Rt Ibmer <rtibmx <at> ya...> - 2008-06-17 02:06
>    I am using the nightly stable build of monetdb5. All outside of
>    perl->monetdb seems to
>    be working just fine. I just can't get perl to talk to the db.
>    Here's what I did:
>    - installed from nightly stable source on Fedora 8
>    - copied the source
>    from [1]http://homepages.cwi.nl/~mk/MonetDB/The-Perl-Library.h
>    tml into
>    mytest.pl
>    - tried running: perl /tmp/mytest.pl
>    but it came back complaining about missing libs in  <at> INC.
>    So then I added these steps:
>    - /var/tmp/MonetDB-1213632062/MonetDB-client/clients/src/perl
>    - make install
>    and also ran make instlal in the various subdirs like
>    MonetDB-CLI and others (not sure if
>    this step was necessar)
>    Then I tried running the script and this time it executed
>    without the  <at> INC errors. So this
>    was progress.
>    However all I get is this:
>    -------
>    Start a simple Monet MIL interaction
>    data sources: dbi:monetdb:
>    --------
>    and then nothing. It just sits there indefinitely. In playing
>    with the source of the .pl I
>    see that it is the "my $dbh = DBI->connect( $dsn, ..."
>    that execution stops at.Â
>    I have merovingian running and the db is started. I also tried
>    with merovigan stopped and
>    just using mserver5 --dbinit="include sql;" but I had the same
>    result.
>    Am I doing something wrong? Thanks.
> 
> References
> 
>    1. http://homepages.cwi.nl/~mk/MonetDB/The-Perl-Library.html

> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Monetdb-developers mailing list
> Monetdb-developers@...
> https://lists.sourceforge.net/lists/listinfo/monetdb-developers

--

-- 

Niels Nes, Centre for Mathematics and Computer Science (CWI)
Kruislaan 413, 1098 SJ Amsterdam, The Netherlands
room C0.02,  phone ++31 20 592-4098, fax ++31 20 592-4312
url: http://www.cwi.nl/~niels   e-mail: Niels.Nes@...

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
sylver_b | 10 Sep 2008 01:56
Picon
Favicon

ODBC, no database selected

Hi Eveyone,

I'm trying to connect to monetdb with this time, ODBC - but still no luck.

Here is the output of my script :

./monetdb2.pl
DBI connect('DSN_MonetDB','monetdb',...) failed: [unixODBC][MonetDB][ODBC Driver 1.0]Client unable to establish connection (SQL-08001)(DBD: db_login/SQLConnect err=-1) at ./monetdb2.pl line 6
[unixODBC][MonetDB][ODBC Driver 1.0]Client unable to establish connection (SQL-08001)(DBD: db_login/SQLConnect err=-1)

cat monetdb2.pl
#!/usr/bin/perl

use DBI();


my $dbh = DBI-> connect('dbi:ODBC:DSN_MonetDB', 'monetdb', 'monetdb', {database => demo}) or die ($DBI::errstr . "\n");

if (!$dbh)
{
  print "$DBI::err\n$DBI::errstr\n$DBI::state";
}
else
{
  $dbh->disconnect if ($dbh);
}

  my $sth = $dbh->prepare('SELECT * FROM env() env');
  $sth->execute;
  $sth->dump_results;

This the merovingian output :
tail -f /root/MonetDB/var/log/merovingian.log
MSG demo[11229]: # MonetDB server v5.6.0, based on kernel v1.24.0
MSG demo[11229]: # Serving database 'demo'
MSG demo[11229]: # Compiled for i686-pc-linux-gnu/32bit with 32bit OIDs dynamically linked
MSG demo[11229]: # Copyright (c) 1993-2008 CWI, all rights reserved
MSG demo[11229]: # Visit http://monetdb.cwi.nl/ for further information
MSG demo[11229]: # Listening for connection requests on mapi:monetdb://ulys:50001/
ERR merovingian[11224]: client error: no database specified
MSG merovingian[11224]: database 'demo' already running since 2008-09-10 00:17:32, up min/avg/max: 30/2181/7036, crash average: 0.00 0.00 0.00 (6-5=0)
MSG merovingian[11224]: proxying client 127.0.0.1:59244 for database 'demo' to mapi:monetdb://ulys:50001/
MSG merovingian[11224]: client has 127.0.0.1:59244 disconnected from proxy

ERR merovingian[11224]: client error: no database specified

This is the content of my odbc.ini & odbcinst.ini :

[DSN_MonetDB]
Description     = ODBC Driver for MonetDB SQL Server
Driver          = /root/MonetDB/lib/libMonetODBC.so
Port            = 50000
Host            = localhost
Database        = demo
User            = monetdb
Password        = monetdb
Debug           = 1
Trace           = 1
DebugFile       = /var/log/odbc-debugfile.log
TraceFile       = /var/log/odbc-tracefile.log

odbcinst.ini
[DSN_MonetDB]
Description     = ODBC Driver for MonetDB SQL Server
Driver          = /root/MonetDB/lib/libMonetODBC.so
Setup           = /root/MonetDB/lib/libMonetODBCs.so
FileUsage       = 1
CommLog         = 1
Debug           = 1

I also tried with PHP odbc, same result - how to specify the DB right from the script ?


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Monetdb-developers mailing list
Monetdb-developers@...
https://lists.sourceforge.net/lists/listinfo/monetdb-developers
Stefan Manegold | 10 Sep 2008 07:19
Picon
Picon
Favicon

Re: ODBC, no database selected

Hi "sylver_b",

just a simple & quick saniy check:

How did you start your MonetDB server?

Can you connect with `mclient -lsql`?

Stefan

On Tue, Sep 09, 2008 at 04:56:47PM -0700, sylver_b wrote:
> Hi Eveyone,
> 
> I'm trying to connect to monetdb with this time, ODBC - but still no luck.
> 
> Here is the output of my script :
> 
> ./monetdb2.pl
> DBI connect('DSN_MonetDB','monetdb',...) failed: [unixODBC][MonetDB][ODBC Driver 1.0]Client
unable to establish connection (SQL-08001)(DBD: db_login/SQLConnect err=-1) at ./monetdb2.pl line 6
> [unixODBC][MonetDB][ODBC Driver 1.0]Client unable to establish connection (SQL-08001)(DBD:
db_login/SQLConnect err=-1)
> 
> cat monetdb2.pl
> #!/usr/bin/perl
> 
> use DBI();
> 
> 
> my $dbh = DBI-> connect('dbi:ODBC:DSN_MonetDB', 'monetdb', 'monetdb', {database => demo}) or die
($DBI::errstr . "\n");
> 
> if (!$dbh)
> {
>   print "$DBI::err\n$DBI::errstr\n$DBI::state";
> }
> else
> {
>   $dbh->disconnect if ($dbh);
> }
> 
>   my $sth = $dbh->prepare('SELECT * FROM env() env');
>   $sth->execute;
>   $sth->dump_results;
> 
> This the merovingian output :
> tail -f /root/MonetDB/var/log/merovingian.log
> MSG demo[11229]: # MonetDB server v5.6.0, based on kernel v1.24.0
> MSG demo[11229]: # Serving database 'demo'
> MSG demo[11229]: # Compiled for i686-pc-linux-gnu/32bit with 32bit OIDs dynamically linked
> MSG demo[11229]: # Copyright (c) 1993-2008 CWI, all rights reserved
> MSG demo[11229]: # Visit http://monetdb.cwi.nl/ for further information
> MSG demo[11229]: # Listening for connection requests on mapi:monetdb://ulys:50001/
> ERR merovingian[11224]: client error: no database specified
> MSG merovingian[11224]: database 'demo' already running since 2008-09-10 00:17:32, up min/avg/max:
30/2181/7036, crash average: 0.00 0.00 0.00 (6-5=0)
> MSG merovingian[11224]: proxying client 127.0.0.1:59244 for database 'demo' to mapi:monetdb://ulys:50001/
> MSG merovingian[11224]: client has 127.0.0.1:59244 disconnected from proxy
> 
> ERR merovingian[11224]: client error: no database specified
> 
> This is the content of my odbc.ini & odbcinst.ini :
> 
> [DSN_MonetDB]
> Description     = ODBC Driver for MonetDB SQL Server
> Driver          = /root/MonetDB/lib/libMonetODBC.so
> Port            = 50000
> Host            = localhost
> Database        = demo
> User            = monetdb
> Password        = monetdb
> Debug           = 1
> Trace           = 1
> DebugFile       = /var/log/odbc-debugfile.log
> TraceFile       = /var/log/odbc-tracefile.log
> 
> odbcinst.ini
> [DSN_MonetDB]
> Description     = ODBC Driver for MonetDB SQL Server
> Driver          = /root/MonetDB/lib/libMonetODBC.so
> Setup           = /root/MonetDB/lib/libMonetODBCs.so
> FileUsage       = 1
> CommLog         = 1
> Debug           = 1
> 
> I also tried with PHP odbc, same result - how to specify the DB right from the script ? 
> 
> 
>       
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Monetdb-developers mailing list
> Monetdb-developers@...
> https://lists.sourceforge.net/lists/listinfo/monetdb-developers

--

-- 
| Dr. Stefan Manegold | mailto:Stefan.Manegold@... |
| CWI,  P.O.Box 94079 | http://www.cwi.nl/~manegold/  |
| 1090 GB Amsterdam   | Tel.: +31 (20) 592-4212       |
| The Netherlands     | Fax : +31 (20) 592-4312       |

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Fabian Groffen | 10 Sep 2008 08:55
Picon
Picon
Favicon

Re: ODBC, no database selected

Hi Sylver,

On 09-09-2008 16:56:47 -0700, sylver_b wrote:
[snip]
> my $dbh = DBI-> connect('dbi:ODBC:DSN_MonetDB', 'monetdb', 'monetdb',
> {database => demo}) or die ($DBI::errstr . "\n");

My perl is pretty much non-existant.  However, it looks as if you *do*
specify that you want to use a database, "demo" in this  case.

> This the merovingian output :
> tail -f /root/MonetDB/var/log/merovingian.log
> MSG demo[11229]: # MonetDB server v5.6.0, based on kernel v1.24.0
> MSG demo[11229]: # Serving database 'demo'
> MSG demo[11229]: # Compiled for i686-pc-linux-gnu/32bit with 32bit OIDs
> dynamically linked
> MSG demo[11229]: # Copyright (c) 1993-2008 CWI, all rights reserved
> MSG demo[11229]: # Visit http://monetdb.cwi.nl/ for further information
> MSG demo[11229]: # Listening for connection requests on mapi:monetdb://
> ulys:50001/
> ERR merovingian[11224]: client error: no database specified
> MSG merovingian[11224]: database 'demo' already running since
> 2008-09-10 00:17:32, up min/avg/max: 30/2181/7036, crash average: 0.00
> 0.00 0.00 (6-5=0)
> MSG merovingian[11224]: proxying client 127.0.0.1:59244 for database
> 'demo' to mapi:monetdb://ulys:50001/
> MSG merovingian[11224]: client has 127.0.0.1:59244 disconnected from
> proxy
> 
> ERR merovingian[11224]: client error: no database specified

Merovingian here sees no database requested.  The other successful calls
in this log snippet are from mclient or something?

> I also tried with PHP odbc, same result - how to specify the DB right
> from the script ?

Weird.  Maybe the odbc driver doesn't catch up the database argument
(yet).

Sjoerd, any idea on this one?

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

Gmane