Tuesday, 2010-02-16

grantcmorning00:06
*** PaulM05 has joined #ingres01:12
*** KermitTheFragger has joined #ingres01:16
Deyanshort question - if i do a checkpoint on server1, scp it to server2, can i recreate the database by using only that, single checkpoint ?02:02
Deyan(on server2)02:03
Deyan(on server2 i regularly delete that database, it is a test server)02:04
Deyani know i can use unloaddb, etc, but i was just curious02:05
PaulM05you can but only if you have the same locations, in the same order with the same physical paths02:05
Deyanyep, they are on identical locations02:06
DeyanPaulM05: thanks you02:07
Deyans/thanks/thank/02:08
PaulM05there's a Support knowledgebase document on it - just checking if there's the equivalent on the wiki02:08
PaulM05can't find it :(02:16
Deyanit is fine, i appreciate the effort anyway02:20
PaulM05ok - sorry about that02:20
Deyani need to practice database recovery... :)02:20
Deyanproblem is, i do not have time to do that :)02:21
Deyani am a ful-time software developer, i am not supposed to be DBA02:21
PaulM05:)02:22
Deyani am thinking to refine this backup system to generate HTML report so our system managers can see if everything went well...02:23
Deyanand an idea just came to my head, that is not Ingres related...02:23
Deyanbut kind of intersting for generating HTML...02:23
Deyani am thinking to write a set of BASH functions02:23
Deyanthat could give me ability to do something like:02:24
Deyan#!/bin/sh02:24
Deyanhtml02:24
Deyan title "report page"02:24
Deyan body02:24
Deyan  para "some text"02:24
Deyan body_02:24
Deyanhtml_02:24
Deyansorry for spam02:25
Deyanthis small peace of valid BASH code could actually be enough to generate a simple HTML02:25
Deyankhm, i kinda like it02:25
PaulM05sounds good - brb02:26
* grantc wonders why Deyan does not use Perl/PHP/etc..02:26
Deyangrantc: i would if i do not want this not to introduce any unnecessary dependencies...02:27
grantcthe way I monitor the backups is to receive an email of the output if $? != 002:28
Deyanand coding this above is piece of cake02:28
Vroomfondledoes Ingres have an equivalent of "if not exists" when creating a table? Or do I *have* to check iitables to see if the table already exists?03:20
grantcVroomfondle, you have to check03:21
PaulM05there's no "CREATE OR REPLACE" at the moment - it came up at the last code sprint but it's not been implemented yet03:21
Vroomfondleah, k03:21
*** cthibert has joined #ingres03:53
DeyanPaulM05: not even in the latest build ?04:19
PaulM05unless it's very recent04:20
PaulM05I haven't seen a change that implements it04:20
Deyani have a weir problem here ... two servers, 100% same data, and query produces different output04:38
Deyanserver1 gives 4 rows, server2 gives 2 rows04:38
PaulM05what's the difference between the servers?04:44
Deyanok, help table helped me to find the difference04:51
Deyanserver1 table had indices04:51
Deyanserver2 did not04:51
Deyanfunny thing is, server2 produces correct result04:51
Deyan(without indices)04:51
PaulM05could be that the index are corrupt - you could try re-creating them - or it could just be a bug :)04:52
*** atrofast has joined #ingres04:57
Deyani am thinking about doing it05:01
Deyanto recreate index...05:01
DeyanPaulM05: there is a difference in config, that i just realised05:01
Deyanpage size is different05:01
Deyancan that cause difference ?05:02
DeyanIMHO it should not...05:02
PaulM05you're right05:02
PaulM05but first we need to find out the difference that's causing the behaviour then we can pinpoint the bug (it does sound like a bug)05:03
Deyanyeah, i agree05:03
Deyanlet's first find out if i will get the same problem after i recreate indices05:03
PaulM05yep - good plan05:04
*** atrofast has quit IRC05:07
PaulM05excuse me I'm off to lunch now05:07
*** PaulM05 is now known as PaulM05_lunch05:07
*** atrofast has joined #ingres05:12
*** rossand has joined #ingres05:39
*** ChanServ sets mode: +o rossand05:39
*** PaulM05_lunch is now known as PaulM0505:46
*** gerhard has joined #ingres05:53
gerhardHi all05:53
PaulM05hi gerhard05:54
gerhardI suppose the "...user does not have privileges in config.dat..." message is well known to all who have to sometimes add / change vnode entries on Windows clients...?06:06
gerhardAt time of installation, Ingres installer (for newer 9.x.x releases) will add "...privileges..." lines for all users in admin group to config.dat, right?06:12
PaulM05tbh I don't know06:13
PaulM05are you trying to create global vnodes as a non-Admin user?06:14
gerhardI think it is that way.06:15
gerhardthe problem: an admin user is added to a Windows (client) machine *after* Ingres installation06:18
gerhard...and that user - despite the fact being admin - is not capable of adding / changing vnode entries with netutil or VDBA06:19
PaulM05yes because it's the config.dat privileges that count06:20
gerhardright, two workarounds:06:37
gerhard1. log off / log in as a user that is in the config.dat06:38
gerhard2. "notepad config.dat", find existing privileges line, make a copy for desired user06:39
gerhardand a variant of 2.06:39
gerhardiisetres ii.%computername%.privileges.user.%username% SERVER_CONTROL,NET_ADMIN,MONITOR,TRUSTED06:40
*** DarylM has joined #ingres06:40
gerhardof course, having to ingstop / ingstart so Ingres reads new config.dat...06:41
gerhard...which will introduce a new problem because ingstop might also throw the "user does not have privileges messages"06:42
PaulM05if it's configured to start/stop as a service you can get around that06:42
gerhardOK, you're right, "net stop ingres_database_ii" is an alternative...06:43
*** cthibert has left #ingres06:44
gerhardbut nevertheless, my customers complain about Ingres being not very "Windows-compliant" here and to be honest, they're right...06:45
*** cthibert has joined #ingres06:48
gerhardwhy not throw away all that privileges lines stuff and make it like any Windows admin would expect it....?06:49
PaulM05because it has to work on non-Windows platforms as well06:50
gerhard--> user is Windows-admin --> then he is also Ingres-admin06:51
PaulM05that would be a nice feature - but I wouldn't want to "throw away" what's there already06:51
gerhardOK, that was a little bit harsh (-:06:52
gerharddon't get me wrong: I like Ingres' consistent look-and-feel on both Win and *nix systems06:53
gerhardbut why not make a distinction where it really *does* make sense.06:55
PaulM05like I said it would be a nice feature - are you offering to code it? ;)06:58
gerhardThere also has been a *VDBA* around for years only for Windows machines and I think that was not a big problem...06:59
gerhard...because people consider it normal to work the GUI way on Windows and the CLI way on Linux.07:00
PaulM05we did have VDBA on Linux and Unix for a while - but not since we went Open Source as it used a proprietary library07:01
gerhardThat means 2.5 / 2.6 on Linux had a VDBA? Really?07:02
PaulM052.6 only I'm not sure it was in 2.507:03
gerhardI'm quite curious about the new Java-based admin stuff. Are there any (community) Ingres releases around that already ship this?07:06
PaulM05not yet07:06
PaulM05I don't think there's enough there yet to ship07:07
PaulM05but I got the impression that they'd be looking to put something out to the community07:08
PaulM05when I don't know07:09
*** atrofast has quit IRC07:12
gerhardAnother issue / question concerning Ingres on Windows: we have been using Ingres on Windows since Ingres II 2.007:14
gerhardand most of the time, it was mandatory to have an operating system user "ingres" on the machine.07:15
grantcgerhard, that's no longer the case since 9.1 (perhaps 9.0)07:16
gerhardyep07:16
grantcregarding your  windows user issue - are they configuring installation passwords or a hard coded user/passwd for the server?07:17
gerhardhard coded user / pass07:18
grantcthen I propose two solutions/alternative mechanisms07:19
gerhardfor our (future) Windows server machines we are thinking about installing without an os user ingres...07:19
grantceither have the application use a connection string of the form "@server,tcp_ip,listenaddress[user,passwd]::db"07:19
gerhard...but are unsure about the consequences.07:19
grantcor remotely configure netuil from the server07:20
gerhardYes, I know that connection string stuff, have successfully tried it for sql / isql07:21
grantcit should work for all the interfaces afaik07:22
gerhardproblem: we have some (Crystal Report) applications that need ODBC-System-DSNs and for the DSN you first need a vnode entry07:22
grantcthen your only and perhaps best option is to configure each PC remotely using a script07:23
grantcin fact once you have written the script it's quicker to remotely do it rather than go to each PC.07:24
gerhardor could I fiddle that @server.... stuff into an ODBC DSN...? Don't think it is possible the GUI way but maybe directly in the registry or with odbcconf command...?07:24
grantcI did it for a CA world conference07:24
grantcI don't know how it could be done for a DSN07:25
*** Mud has joined #ingres07:25
grantcIt's worth raising an issue for07:25
*** mull has joined #ingres07:25
gerhardYou mean kicking off some "netutil -f answerfile" action remotely by using tools like psexec, right?07:26
gerhardI have sometimes worked around the config.dat issue by right-clicking on the DOS-Box shortcut and do a "run-as"07:27
gerhardI'll test a little bit with the DSN stuff and give feedback maybe in a few days...07:27
grantcsomething like that although you'll need to have a vnode defined for each client PC IIRC on the PC/server doing the remote configuring07:28
gerhardback to the the topic running Ingres as ingres vs. running Ingres as built-in system account on Windows servers...07:29
gerhardhow could I manage - without an OS user ingres - that the owner for each table in DB is still ingres?07:30
grantcthe owner of each table will be whoever created it07:32
gerhardIt was always convention for us that the DB owner is ingres and the owner of all DB objects is also ingres07:32
grantcwithout an OS user I'm not sure how you'll authenticate as ingres07:33
gerhardSo that means if Ingres-DBMS installed to run as built-in system account (also sometimes titled LocalSystem)...07:33
gerhard...and being logged in as Administrator...07:33
grantcyou can now install as anyuser provided that user has the necessary rights07:34
gerhardI could do createdb... / isql ... / create table...07:34
grantcso if you install ingres as admin then admin is the user you will use07:34
gerhard...and everything would be owned by Administrator, right?07:34
grantcAdmin is created as a default user IIRC07:34
grantcyup07:34
*** Deyan is now known as Dejan07:35
gerhardcould I run something like "create user ingres identified by Ingres..." against iidbdb even if ingres is not an os user on the server?07:36
grantcyou can create users with a dbms password07:39
grantchowever the dbms password is in addition to an OS password, unless you either enable null authentication or use installation passwords07:39
*** Mud has quit IRC07:44
gerhardnull authentication: yes, I know that dirty little trick (-:07:44
gerhardcreate user with a dbms password - how would I do that?07:45
*** Mud has joined #ingres07:50
grantccreate user username with password = 'secret'07:57
*** Alex| has quit IRC07:57
grantchowever every app has to specify that password on connection using the dbms password flag or parameter07:58
grantcnot sure how it would work using an ODBC DSN / without additional code07:58
gerhardhow would that look like for usage of isql? I have used the -uingres Flag in the past, but only for systems where ingres existed as OS user.07:59
grantci think it's -P07:59
gerhardhow would I grant DBA privs to user ingres?08:00
gerhardwill test that out on a VM08:00
grantceither using accessdb / vdba when editing a user or using the relevant privileges with "create user"08:01
*** PaulM05 has quit IRC08:01
grantchttp://docs.ingres.com/Ingres/9.2/SQL%20Reference%20Guide/createuser.htm08:01
*** gerhard has quit IRC08:05
Dejanhow can i enable journaling of imadb ?08:09
grantcckpdb +j imadb08:13
grantcthe ima tables we supply are not journalable08:13
*** zxiiro has joined #ingres08:42
*** ChanServ sets mode: +v zxiiro08:42
*** Mud has quit IRC08:47
*** grantc has quit IRC08:54
*** Mud has joined #ingres09:08
FrankWI have a table field for which the C API descriptor looks like the following when I do a "select * from tpoly":09:34
FrankW {ds_dataType = 61, ds_nullable = 1, ds_length = 65534, ds_precision = -1, ds_scale = 0, ds_columnType = 0, ds_columnName = 0x607cc0 "shape"}09:34
FrankWI do not see a datatype corresponding to 61 in the iiapi set of IIAPI_*_TYPE values.  How should I interprete it?09:35
cthibertFrankW type 61 should be DB_POLY_TYPE and 62 is DB_MPOLY_TYPE.  I09:52
FrankWwhere would I find these declared?09:52
cthibertI'm looking further to determine why it's not showing up right.  It's declared in common/hdr/hdr/iicommon.h09:52
cthibertAnd types are defined in common/adf/adg/adgdttab.roc09:53
cthibertProbably haven't made it to the API definitions yet.  I'll look.09:53
FrankWiicommon.h does not appear to be installed in the "files" are of the database.09:53
FrankWwarmerda@gdal64[71]% pwd09:54
FrankWwarmerda@gdal64[72]% find . -name iicommon.h -print09:54
FrankWwrk/home/warmerda/ingres/server/install/II/ingres was my directory.09:54
cthibertIt's in the code.  src/common09:54
FrankWOGR's configure expects to be pointed at an installed database for include files.09:55
cthibertYup.  Understood.  I'm looking for where those definitions should be in our code to ensure they get to the right place.09:55
FrankWmy attempt to read back a "select * from tpoly" in OGR is failing because as soon as I try to do IIapi_getColumns() to fetch data for the type 61 column, I get IIAPI_ST_NODATA.09:56
FrankWwhich I interprete as the end of the resultset.09:56
FrankWIIAPI_ST_NO_DATA I should say.09:56
FrankWI even tried forcing a continue, but I get IIAPI_ST_NO_DATA for all subsequent requests.09:57
FrankWFor now I've just disabled this one test in my test script, but in the long term I hope we can address it.09:57
cthibertAbsolutely.  The cause appears to be not propagating the types to the API headers.  I'll be updating that soon.09:58
FrankWI have created a gdal ticket for tracking the issue.10:03
cthibertFrankW - Another note to this.  The data held in the table isn't pure WKB.  It's a stream of data that includes the WKB.  So, a select * won't return 'usuable' data from an API view.  The asBinary/asText calls parse out the appropriate data.10:14
cthibertThe data types should still be reflected in the API, but just wanted you to be aware that it's not a 'pure' WKB stream that will be retrieved via that call.10:16
*** KermitTheFragger has quit IRC10:17
FrankWcthibert:  understood10:18
*** Alex| has joined #ingres10:19
*** ChanServ sets mode: +o Alex|10:19
Dejancan someone explain what do i need to make a copy of a database by using .ckp file only?10:27
Dejani have server1 and server210:27
Dejani moved ckp file from server1 to server210:27
Dejan(they have the same locations)10:27
Dejanwhat else should i copy in order to use rollforwarddb to create copy of the database on server2 via rollforwarddb ?10:28
Dejani usually do unloaddb10:28
Dejanfor this10:29
Dejanbut for some reasons i need this approach now10:29
DejanPaulM told me it is possible10:29
Dejanbut i am doing something wrong :)10:29
*** DerMeister has joined #ingres10:42
*** atrofast has joined #ingres10:46
Dejan\q10:55
*** Dejan has quit IRC11:05
*** Mud has quit IRC11:44
*** Mud has joined #ingres11:50
*** rossand1 has joined #ingres11:50
*** rossand has quit IRC11:52
*** DerMeister has quit IRC12:34
*** Alex| has quit IRC12:55
*** cthibert has left #ingres13:57
*** zxiiro has quit IRC14:00
*** zxiiro has joined #ingres15:09
*** ChanServ sets mode: +v zxiiro15:09
*** Mud has quit IRC15:46
*** Mud has joined #ingres15:50
*** mull has quit IRC15:57
*** rossand1 has quit IRC17:11
*** cytrinox_ has joined #ingres19:21
*** cytrinox has quit IRC19:23
*** cytrinox_ is now known as cytrinox19:23
*** Mud has quit IRC19:44
*** Mud has joined #ingres19:50
*** zxiiro has quit IRC20:06
*** Adross has joined #ingres21:17
AdrossI am trying to design an ingres query that will select the primary key of a given table, the name of each of the tables that the given table references, and the primary key of each of those tables. In mysql, I would use information_schema.key_column_usage table, but I'm not sure which table to use on ingres. The closest is iiref_constraints21:19
Adrossso, basically, is there a way to output the primary key of a given table in ingres21:20
*** Alex| has joined #ingres22:38
*** ChanServ sets mode: +o Alex|22:38
*** Adross has quit IRC22:52
*** Mud has quit IRC23:03
*** Mud has joined #ingres23:36
*** Mud has quit IRC23:45
*** Mud has joined #ingres23:50

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!