Unix Technical Forum

Table Creation on Primary Server

This is a discussion on Table Creation on Primary Server within the Informix forums, part of the Database Server Software category; --> We have recently started Informix Replication. Our Secondary Server is in "Read Only" mode. We have a issue after ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 01:01 PM
dhaya.snidhi@gmail.com
 
Posts: n/a
Default Table Creation on Primary Server

We have recently started Informix Replication. Our Secondary Server is
in "Read Only" mode. We have a issue after doing this.When we create a
permanent table on the Primary Server and try to load records into the
table we get the following "ISAM error: the file is locked.".

When we stop replication or create the same table temporarly we do not
get the error.

When we create a new Database in Primary server it does not give error
and we can see the new DB in the Secondary Server.

Is this normal for Primary server to not allow creation of permanent
table in a replicated environment.

Comments..

Dhaya
Commercial Bank

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 01:01 PM
Superboer
 
Posts: n/a
Default Re: Table Creation on Primary Server

sounds like a bug, contact TS

Superboer.

dhaya.sni...@gmail.com schreef:

> We have recently started Informix Replication. Our Secondary Server is
> in "Read Only" mode. We have a issue after doing this.When we create a
> permanent table on the Primary Server and try to load records into the
> table we get the following "ISAM error: the file is locked.".
>
> When we stop replication or create the same table temporarly we do not
> get the error.
>
> When we create a new Database in Primary server it does not give error
> and we can see the new DB in the Secondary Server.
>
> Is this normal for Primary server to not allow creation of permanent
> table in a replicated environment.
>
> Comments..
>
> Dhaya
> Commercial Bank


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-20-2008, 01:01 PM
RoB via DBMonster.com
 
Posts: n/a
Default Re: Table Creation on Primary Server

I've seen this problem before. It normally appears after creating an index on
a table on the primary. The table will be locked in exclusive mode until the
index has been replicated across to the secondary. There will be a message in
the online log stating that it's replicating the index and another one when
it has finished.

The only workaround seems to be to wait until the index has been replicated
before you do anything else on the table. This is quite annoying when
creating tables with several indexes within a script as the behaviour changes
when dealing with an HDR primary.

--
Message posted via http://www.dbmonster.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-20-2008, 01:01 PM
RoB via DBMonster.com
 
Posts: n/a
Default Re: Table Creation on Primary Server

I've seen this problem before. It normally appears after creating an index on
a table on the primary. The table will be locked in exclusive mode until the
index has been replicated across to the secondary. There will be a message in
the online log stating that it's replicating the index and another one when
it has finished.

The only workaround seems to be to wait until the index has been replicated
before you do anything else on the table. This is quite annoying when
creating tables with several indexes within a script as the behaviour changes
when dealing with an HDR primary.

--
Message posted via DBMonster.com
http://www.dbmonster.com/Uwe/Forums....ormix/200609/1

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-20-2008, 01:01 PM
Madison Pruet
 
Posts: n/a
Default Re: Table Creation on Primary Server

dhaya.snidhi@gmail.com wrote:
> We have recently started Informix Replication. Our Secondary Server is
> in "Read Only" mode. We have a issue after doing this.When we create a
> permanent table on the Primary Server and try to load records into the
> table we get the following "ISAM error: the file is locked.".


I'm assuming that you are using HDR and not ER. With HDR, when an
index is created on the primary, it must be transfered to the secondary.
This transfer occurs as part of the commit. While this transfer
occurs, the index is locked.

We are doing work in the next release which I think should address this
issue to a large degree.

M.P.

>
> When we stop replication or create the same table temporarly we do not
> get the error.
>
> When we create a new Database in Primary server it does not give error
> and we can see the new DB in the Secondary Server.
>
> Is this normal for Primary server to not allow creation of permanent
> table in a replicated environment.
>
> Comments..
>
> Dhaya
> Commercial Bank
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:17 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com