Обсуждение: Problem with Database Migration Wizard

Поиск
Список
Период
Сортировка

Problem with Database Migration Wizard

От
Simone Merli
Дата:
Hi all! :)

I've a problem when i run database migration wizard, i've added in
/etc/pg_hba.conf my host with trust (option)

When i try to migrate access db to postgresql (selecting dbtype: access)
i got these error msg:

An error has occured in Database Migration Wizard:Database
Wizard:frm:Wizard:dbConnect:

Number : -2147217843
Description: Impossible to run application, Information file on
workgroup is open in exclusive mode or from another user**

** bad translation of italian msg.

Do you have any idea to resolv the problem?

Thanks.
s.

--

Simone Merli
E-Mail: simoz(at)ada2.unipv.it
Home: http://ada2.unipv.it/~simoz/

Re: Problem with Database Migration Wizard

От
"Dave Page"
Дата:
Hi,

This is a problem connecting to the Access database rather than PostgreSQL. Often it is caused by the Access database
beingopened in Access at the same time you try to migrate it. 

Regards, Dave.

_____________Original message ____________
Subject:    [pgadmin-support] Problem with Database Migration Wizard
Sender:    "Simone Merli" <simoz@ada2.unipv.it>
Date:        Sat, 30 Nov 2002 19:06:07 +0000

Hi all! :)

I've a problem when i run database migration wizard, i've added in
/etc/pg_hba.conf my host with trust (option)

When i try to migrate access db to postgresql (selecting dbtype: access)
i got these error msg:

An error has occured in Database Migration Wizard:Database
Wizard:frm:Wizard:dbConnect:

Number : -2147217843
Description: Impossible to run application, Information file on
workgroup is open in exclusive mode or from another user**

** bad translation of italian msg.

Do you have any idea to resolv the problem?

Thanks.
s.

--

Simone Merli
E-Mail: simoz(at)ada2.unipv.it
Home: http://ada2.unipv.it/~simoz/

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org



32 Character Constraint Name Bug?

От
"the kay (efesar)"
Дата:
First of all, sorry for the long post. I think I found a bug.

I get this error when I click on my table "fearuser" in the tree
schemas->public->tables (table definition to follow).

==========

pgAdmin  II Error

An error has occurred in pgAdmin II:frmMain.tvTable:

Number: 457
Description: This key is already associated with an element of this
collection

OK

==========

After clicking OK, the fearuser table is displayed, but only Checks (0) and
Columns (30) are displayed. I think there is an error displaying the foreign
keys. I have two foreign keys, one with the name
"fearusersecuritylevel_fearuser" (which is 32 characters long) and
"fearusersecuritylevel_fearusers" (which is 33 characters long). I think
there is a bug in either PG or PGAdmin. I understand the name limit in PG is
32 characters, but it seems to have created a 33 character long object name.
I think PGAdmin is truncating it to 32 characters, and it can't add two of
the same names to the foreign key list.

This was a mistake when I created the foreign keys. I accidentally misnamed
one of the foreign keys. I would like to rename it, but as far as I know I
can't rename constraints. Also, I can't drop the constraint because
(according to the documentation) "To remove FOREIGN KEY constraints you need
to recreate and reload the table". Reloading the table is not possible (or
would be extremely hard) because at least 50 views and 20 tables depend on
this table.

Speaking of which ... does PGAdmin do dependency checking? If not, I might
be able to lend a hand in writing some code to check dependencies (like the
MSSQL Enterprise Manager) ... that might be a useful feature I've always
imagined ... I was also looking at the part about adding foreign keys to
tables ... is that hard to code or has it just been on nobody's priority
list? I might be able to help there too ... (this is off topic -- i should
subscribe to the hacker list) ...

Anyway here is the table definition so you can see what I'm talking about
with the 32/33 chars:

================

-- Table: fearuser
CREATE TABLE fearuser (
  status int4 DEFAULT 1,
  startdate timestamptz DEFAULT now(),
  modifydate timestamptz DEFAULT now(),
  securitylevel int4 DEFAULT 0,
  realname text,
  username text,
  password text,
  location text,
  email text,
  url text,
  affliliation text,
  contactinfo text,
  profile text,
  newsletter bool DEFAULT 't',
  forumupdates bool DEFAULT 't',
  showpublic bool DEFAULT 't',
  userid int4 DEFAULT nextval('fearuser_userid_seq'::text) NOT NULL,
  occupation text,
  aim text,
  yim text,
  msnsm text,
  icq text,
  interest text,
  additional text,
  history text,
  skill text,
  desire text,
  philosophy text,
  logintime timestamptz DEFAULT now(),
  lastlogintime timestamptz DEFAULT now(),
  CONSTRAINT fearuser_pkey PRIMARY KEY (userid),
  CONSTRAINT fearusersecuritylevel_fearuser FOREIGN KEY (securitylevel)
REFERENCES fearusersecuritylevel (securityid) ON DELETE NO ACTION ON UPDATE
NO ACTION NOT DEFERRABLE INITIALLY IMMEDIATE,
  CONSTRAINT fearusersecuritylevel_fearusers FOREIGN KEY (status) REFERENCES
fearuserstatus (userstatusid) ON DELETE NO ACTION ON UPDATE NO ACTION NOT
DEFERRABLE INITIALLY IMMEDIATE
) WITH OIDS;
REVOKE ALL ON TABLE fearuser FROM PUBLIC;
GRANT ALL ON TABLE fearuser TO webmstrz;

=====

other info:

postgres 7.2
pgadmin II 1.4.2

=====

-Keith Woodell


30/31 Character Constraint Name Bug? (correction)

От
"the kay (efesar)"
Дата:
ps ... i can't count, i guess one is 30 chars long and the other is 31 chars
long. sorry about that.