Hi there,
Try:
CurFrame.StartMenu.AllBias = MB_INVISIBLE;
This should work fine in the initialise block.
Kind regards
Matt
From: openroa...@googlegroups.com [mailto:openroa...@googlegroups.com] On Behalf Of Maxime Richez
Sent: 30 May 2013 14:11
To: openroa...@googlegroups.com
Subject: [openroad-users] Menubar invisible
Hi everybody,
In Openroad 2006, is it possible to hide the menubar dynamically ? Don't know how to do that, here's is my non-working code:
initialize()=
declare
fullaccess=integer;
enddeclare
{
//Grant full access
fullaccess=callproc P_FullAccess(typeapp='SP_ARTICLE');
if (fullaccess=0) then
menufield(curframe.startmenu).allbias=fb_invisible;
else
menufield(curframe.startmenu).allbias=fb_changeable;
endif;
Thanks for your help !
Maxime Richez
Saluc SA.--
You received this message because you are subscribed to the Google Groups "OpenROAD Users Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openroad-user...@googlegroups.com.
Visit this group at http://groups.google.com/group/openroad-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Turning off journaling on the database is quite dangerous isn’t it? Unless you have a checkpoint to go back to.
To view this discussion on the web visit https://groups.google.com/d/msgid/openroad-users/29996af1-e32c-49df-af79-aa4e1a5651a8%40email.android.com.
For more options, visit https://groups.google.com/groups/opt_out.
Confidentiality/Privilege Notice:
This communication is confidential and may be legally
privileged. If you are not the
intended recipient please delete the message and notify the sender at Ports of
Auckland Limited. Any use, disclosure, copying, distribution or retention of
this communication is strictly prohibited.
Hi Maxime,
It’s not clear if you are running these commands via OpenROAD logic or externally using command line SQL. Look at copydb, there are options for pulling out just the index definitions. Anyway, I’ve assumed you are implementing within OpenROAD.
I think the best approach is to maintain the list of the indexes yourself. Keep them hardcoded in your logic, store them in a table, or better, load them from an external script. If a site has custom indexes for performance you probably need to be aware and track them by site. I prefer to have external scripts for rebuilding indexes from time to time. I think rebuilding indexes in parallel is faster.
If you plan to use nojournaling, make sure you re-enable journaling and run checkpoint immediately after the operation.
Make sure your transaction log is large enough for the deleted set. I recommend avoid disabling transaction logging. It is dangerous unless you have the entire DB to yourself and have performed full checkpoint before and after the operation. If something goes wrong, the database will be marked corrupt and you’ll need to rollback. If you cannot change the size of your log, then try deleting in a couple of passes.
Make a Backup!!!! First run a checkpoint. if something messes up you can easily recover.
My suggested approach:
copy table bigtable() into 'archives\bigtable.ing'; /*make a backup binary*/
or
create table bigtable_bak where id = 4; /* or an online backup */
set autocommit on;
set nojournaling on bigtable; /*Don’t forget your checkpoint before this step*/
drop index1;
drop index2;
drop index3;
modify bigtable to heap; /* sometimes this is faster */
delete from bigtable where id=4 and (some filter1); /* small bites for small txn log*/
delete from bigtable where id=4 and (some filter2);
delete from bigtable where id=4 and (some filter3);
modify bigtable to btree on …. /* you should do this anyway */
create index1 …;
create index2 …;
create index3 …;
set journaling on bigtable; /*now need a checkpoint*/
After each step, be sure to check if the previous step was successful (with inquire_sql) take appropriate action.
I run regular maintenance type jobs from OpenROAD on a scheduler on a separate server. The vnode is configured with user Ingres so it can perform schema level operations like drop, create and modify which are not normally run in the other parts of the application. The jobs are scheduled after hours because some operations lock the entire schema for a period. eg (create table as …).
Btw here is the syntax for parallel index create. You might need exec immediate.
create index
(index1 on bigtable (field1) with structure = btree),
(index2 on bigtable (field2,field3) with structure = btree),
(index3 on bigtable (field4,field5) with structure = btree);
Paul
--
You received this message because you are subscribed to the Google Groups
"OpenROAD Users Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to openroad-user...@googlegroups.com.
To post to this group, send email to openroa...@googlegroups.com.
Visit this group at http://groups.google.com/group/openroad-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/openroad-users/51C83751.5060600%40saluc.com.
If then chunk you try to delete is the majority of the table,
You could try some kind of a double buffering approach.
Insert subselect everything that is not id=4 into another table.
then modify to truncated.
Kim
To view this discussion on the web visit https://groups.google.com/d/msgid/openroad-users/005801ce712d%24f0f3a750%24d2daf5f0%24%40com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openroad-users/005801ce712d%24f0f3a750%24d2daf5f0%24%40com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openroad-users/6D99C72ED5E8384492B1B0D975E36C596C4D40ED40%40herkules.bordingdata.dk.
Long time ago I had a similar problem.
I used copydb to give me a script that could recreate primary and secondary indexes.
The con: copydb is not a speed monster and you need to use a user with enough rights (could be the right to use –u flag).
The pro: I will always have the latest greatest syntax of the statements and my code is not dependent on any index changes that may happen.
Kim
To view this discussion on the web visit https://groups.google.com/d/msgid/openroad-users/51C948C7.4000600%40saluc.com.
Hi Maxime,
It sounds as though this is a once off purge of data – it should be scheduled out of hours.
I think if you truncate the table it has no worse impact than disabling journaling.
Of course, the safest approach is to leave journaling running.
This approach:
create
temporarytable as select * from xxx where id<>4;
has a problem if the table is in use while you are operating, also a risk of losing data if id is null.
I guess you can lock out other activity if you access the database in single user mode (-S).
Paul
ps. You’ll get knowledgeable Ingres DBA responses at info-ingres. (comp.databases.ingres or info-...@kettleriverconsulting.com), this is afterall an OpenROAD forum. J
To view this discussion on the web visit https://groups.google.com/d/msgid/openroad-users/51C9482A.70705%40saluc.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openroad-users/6D99C72ED5E8384492B1B0D975E36C596C4D40ED63%40herkules.bordingdata.dk.
To view this discussion on the web visit https://groups.google.com/d/msgid/openroad-users/6D99C72ED5E8384492B1B0D975E36C596C4D40ED63%40herkules.bordingdata.dk.
Correct or via call system from the code
To view this discussion on the web visit https://groups.google.com/d/msgid/openroad-users/51C94E05.8060206%40saluc.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openroad-users/51C94CD0.6090803%40ipauland.com.
I’d be comfortable with truncate too - as long as you have a complete backup of the DB before starting.
fyi, here is a copy of log from earlier this month, the script failed due to disk space. 10GB gone. We needed to go back to the previous night checkpoint. Thankfully the table was journaled.
create table crm_document_doctype as select * from crm_document
Executing . . .
(28478 rows)
continue
* * drop table crm_document
Executing . . .
continue
* * * * * * * * * * * * * * * * * * *
Executing . . .
E_US1263 Error allocating file system resource or bad file specification
given. Check disk space, disk quota, open file quota and the physical
location.
(Sun Jun 02 16:13:15 2013)
- Terminated by Errors
Ingres Version II 9.2.0 (int.w32/143) logout
Sun Jun 02 16:13:19 2013
From: openroa...@googlegroups.com [mailto:openroa...@googlegroups.com] On Behalf Of Paul A.
Sent: Tuesday, 25 June 2013 5:55 PM
To: openroa...@googlegroups.com
To view this discussion on the web visit https://groups.google.com/d/msgid/openroad-users/51C94CD0.6090803%40ipauland.com.
Maxime,
It is possible to obtain the primary key structure information and index information from the system catalogues. This can then be used to reapply the table structure and any secondary indexes. I believe the information can be retrieved as any user, however, you will need enough rights (dba / schema owner) to recreate the indexes.
We use this approach in a scheduled task to check for any changes to the database tables and indexes, with the last version being stored in an archive system for comparison against.
Martin Bloomfield
Application Developer & Database Administrator
IT Branch
Chemicals Regulation Directorate
Health and Safety Executive
YORK
* martin.b...@hse.gsi.gov.uk
8 www.pesticides.gov.uk www.hse.gov.uk
P Save a tree... please don't print this e-mail unless you really need to
This email was received from the INTERNET and scanned by the Government Secure Intranet anti-virus service supplied by Vodafone in partnership with Symantec. (CCTM Certificate Number 2009/09/0052.) In case of problems, please call your organisation’s IT Helpdesk.
Communications via the GSi may be automatically logged, monitored and/or recorded for legal purposes.
--
You received this message because you are subscribed to the Google Groups "OpenROAD Users Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openroad-user...@googlegroups.com.
To post to this group, send email to openroa...@googlegroups.com.
Visit this group at http://groups.google.com/group/openroad-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/openroad-users/6D99C72ED5E8384492B1B0D975E36C596C4D40ED63%40herkules.bordingdata.dk.
For more options, visit https://groups.google.com/groups/opt_out.
*****************************************************************************************************************
Please note : Incoming and outgoing email messages are routinely monitored for compliance with our policy on the use of electronic communications and may be automatically logged, monitored and / or recorded for lawful purposes by the GSI service provider.
Interested in Occupational Health and Safety information?
Please visit the HSE website at the following address to keep yourself up to date
*****************************************************************************************************************
To view this discussion on the web visit https://groups.google.com/d/msgid/openroad-users/51C94FF5.8030408%40saluc.com.
Maxime,
If this is a onetime operation you are contemplating, you might consider using for backup:
relocatedb –new_database=newdatabasename
(issued from the command line), since that makes an exact copy of your database and contents.
That way, while you are working out your ultimate solution, you can use the new_database version to try things out.
Then when you are happy, you might use a relocated-created copy as your backup.
- this is an approach that has worked for me in the past.
Regards,
Sean.
To view this discussion on the web visit https://groups.google.com/d/msgid/openroad-users/013801ce717d%24379b5320%24a6d1f960%24%40com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openroad-users/51C9584C.7060309%40ipauland.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openroad-users/51C960A0.7010405%40saluc.com.