Online schema change

JamesBowen

19+ years progress programming and still learning.
I need to do a online schema change (i.e. users using the application and website) and I am having a small problem with schema locking. Users are having to wait for the new schema to be applied and the website is not delivering content.

I'm using 10.1B and I've done some reading and I should be able to do the schema change without affecting the users.

I've tried setting the SESSION:SCHEMA-ALLOW attribute but still has the schema locking issue. I was also looking for a start-up parameter but I could not find it in the documentation.
 
I need to add a new field to an existing table. There are no new index and no indexes need to be modified.

I using the data dictionary to add the new field. But when I am in the data dictionay (CHUI) I am automatically creating a schema lock.

So how do I add a new field whilst the multi-user database is in use?
 
You need to create a .df file and use Admin -> Load Data and Definitions -> Data Definitions. Then check the "Add new objects on-line" box.

It should work like a champ.
 
Thanks tom I've reaslise my mistake now. I am now able the add the new field but it affecting the CRC of the compiled code. I understand that I need to make sure the pos/order is greater the last existing field in the table.

I found a KB # P12542. But it looks like I will need to upgrade to 10.1C or 10.2A.
 
Trabajando con esquemas en BDD

Tengo una base de datos, en la cual tenía todas mis tablas asignadas al schema area, pero por situaciones de mejoras, se crearon 3 esquemas mas (indices, catálogos y datos), y se distribuyeron las tablas correspondientes en estos esquemas.

Al querer realizar una consulta de catálogos por medio de un aplicativo que se tiene para ello, no me muestra información alguna; pero al realizar un tabanalys sí existe información.

El cambio de esquemas se realizó con un dump y load y el movimiento de las tablas (esqueleto, se hizo por medio de un tablemove.

Pueden auxiliarme si es que omití algún paso y/o si hice lo correcto o en su defecto que me falta hacer para poder visualizar la información?.

De antemano, gracias por el apoyo. :(
 
Re: Trabajando con esquemas en BDD

Tengo una base de datos, en la cual tenía todas mis tablas asignadas al schema area, pero por situaciones de mejoras, se crearon 3 esquemas mas (indices, catálogos y datos), y se distribuyeron las tablas correspondientes en estos esquemas.

Al querer realizar una consulta de catálogos por medio de un aplicativo que se tiene para ello, no me muestra información alguna; pero al realizar un tabanalys sí existe información.

El cambio de esquemas se realizó con un dump y load y el movimiento de las tablas (esqueleto, se hizo por medio de un tablemove.

Pueden auxiliarme si es que omití algún paso y/o si hice lo correcto o en su defecto que me falta hacer para poder visualizar la información?.

De antemano, gracias por el apoyo. :(

ENGLISH TRANSLATION
I have a database, where tables had all my schema assigned to the area, but improvements situations were set up three more schemes (indexes, catalogs and data), and distributed the corresponding tables in these schemes.

Wanting to make a query catalogs via an application that you have to do, do not show me any information, but to make a tabanalys information does exist.

The schema change is performed with a dump and load and movement of the tables (skeleton, was made through a tablemove.

They can assist me if I omitted some way and / or if you did the right thing or else I need to do to display the information?.

In advance, thanks for the support.
 
Re: Trabajando con esquemas en BDD

have you try to execute: SESSION:SCHEMA-CHANGE = "NEW OBJECTS".
??? normaly, after this you can add fields, tables, indexes on a on-line database.
 
Back
Top