Thursday, 26 February 2009

GET ERROR ORA-00942 ON DATA MOVE STEP

For data move when you are not dba and not data move user additional privileges are required:

8228281 04-FEB-09 2 (null) 11 1875 MIGRATION NO RELEASE MYSQL QUICK
MIGRATION STOPED IN CONVERT STEP WHEN MIGRATE TABLE AND DATA

where hrcp2 is the user doing the data move:

Multi schema requires the following if you are not dba:

--disable triggers and disable table constraints
alter any table to hrcp2;

--disable primary keys also affects indexes.
create any index to hrcp2;
drop any index to hrcp2;
alter any index to hrcp2;

and if you are not the dba or the datamove user:

--select to get the datatypes (where 1 = 0) and insert to insert the data
grant select any table to hrcp2;
grant insert into table to hrcp2;

(optionally sqldeveloper created) datamove user is granted:
alter any trigger
and on each table is individually granted
select insert and alter

not sure how datamove user gets around:
create any index to hrcp2;
drop any index to hrcp2;
alter any index to hrcp2;
which is implicitly required as disabling a primary key constraint affects an
index.

Friday, 27 June 2008

Installing mathematical fonts

THERE HAS GOT TO BE A MORE CONVIENIENT WAY TO GET MATHEMATICAL/
FULL UNICODE FONT SET
, please post if you have better information

Getting mathematical fonts on Linux

There may be mathematical truetype fonts already on your system
or available through you packaging system.
I searched the internet for them.

http://www.mozilla.org/projects/mathml/fonts/
points to a STIX Fonts Project beta font download
http://www.mozilla.org/projects/mathml/fonts/stix/STIXBeta.zip

download and extract these fonts they are *.otf they can
be converted to *.ttf as described here:

http://www.stuermer.ch/blog/convert-otf-to-ttf-font-on-ubuntu.html

the ttf fonts can be installed in Linux and installed in the
fallback directory (which may need to be created)
jdk1.5.0_06jre/lib/fonts/fallback

I tried the raw *.otf and it did not work so the conversion
to ttf may well be necessary.

I copied to /usr/share/fonts/truetype

Then I did
xset fp rehash
and could use the fonts but they may have been already installed.

Testcase (supplied by customer):

create table test ( testcol VARCHAR2(10));

insert into test values (unistr('\D835\DCAB'));

then view the table in SQLDeveloper.

Please comment if you have any problem/improvements.

Tuesday, 27 May 2008

Issue:Square boxes as text characters Solution:Add fonts

Chinese characters in Linux see Debian Chinese How To [1] basically:
  1. create a jre/lib/fonts/fallback directory if necessary and
  2. copy or link the fonts files into this directory. (On my Linux system: /usr/share/fonts/truetype/arphic/gbsn00lp.ttf )
  3. I will install Japanese fonts when the business need arises.