BlogJava :: 首页 :: 联系 :: 聚合  :: 管理
  37 Posts :: 3 Stories :: 24 Comments :: 0 Trackbacks

For over one year I am working on the PLM MatrixOne platform which connects to the database Oracle.And for long time, we only connect to the romote oracle DB server via the matrixone client. util recently, I have got one license and install MatrixOne enoviav6r2009 and Oracle locally.But after all, Oracle makes our computer repsond slowly, that's why I want to install MySQL instead. 

I got the latest MySQL version [MySQL Installer 5.5.17] as well as Connector/ODBC.  I create an ODBC Data Source to use with ENOVIA Live Collaboration and try to configure the enovia to connect to MySQL,but It always produces the following error

#301  System Error #1  State 42S02: [MySQL][ODBC 5.1 Driver][mysqld-5.5.17]Table test.mxschema' doesn't exist
  #189  System Error #1  State 42000: [MySQL][ODBC 5.1 Driver][mysqld-5.5.17]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE = InnoDB' at line 6

From the beginning , I thougt It's the DB type problem,But It seems to be due to the syntax change of MYSQL5.5 and the envia 2009 is not compatible with MySQL 5.5, so I downgrade the MySQL to version MySQL 5.1.59 and finally, It works perfectly.This time,if you try to connect the matrixone client to the MySQL, It will create mx* tables in the MySQL test database.Most of the table contain empty data except
and they only have some administrator creator and guest data,you need to install AEF and more Central data.

It's an easy thing, but takes me one week, I write this paragraph only to save people some time.

Schema Agent
The following is the SchemaAgent tool introduction which I refer to the SchemaAgent_ReadMe:
The Business Document Generator originated from MatrixOne Europe to provide an offline HTML view of the schema featuring lookups that are not provided in the Business or Mql tools. In time this tool was integrated with Spinner so provides schema extracts or dumps into tab-delimited text files. The Business Document Generator is now known as SchemaExtractor and has been enhanced to reflect new versions of Matrix with System and Matrix Business Objects added to the Documentation set.

The Spinner concept was first introduced from Australia with a ‘dynamic’ script that permitted policy access definitions to be maintained and updated in Excel spreadsheets without maintaining the script. In North America, this dynamic scripting method was extended to the entire schema with an additional looping feature so was born SpinnerAgent.

The integration of the SchemaExtractor and SpinnerAgent is the package called Schema Agent.

DB Case Sensitivity: Allow BINARY attribute in MySQL

Meanwhile, On MySQL, VARCHAR defaults to a case insensitive collation.For instance,you can create dimension in  matrixone with name H and h(lowercase), MySQL will fail due to this restriction and produces the following errors:

Add dimension mOhm
Error: #1900068: mod dimension failed
Error: #1900005: Name 'mOhm' not unique

.You can solve this problem by adding the attribute binary.

alter table mxdimension modify mxName  varchar(128CHARACTER SET binary;
  alter table mxunit modify mxName  varchar(128CHARACTER SET binary;

And if you are facing the following errors while importing attributes,you need to delete the attributes in matrixone manually(default data type is not real or integer) and use the spinner to import again.

Modify attribute Capacity
Error: #1900068: mod attribute failed
Error: #1500680: A dimension can only be applied to a real or integer attribute.
Modify attribute Frequency
Error: #1900068: mod attribute failed
Error: #1500680: A dimension can only be applied to a real or integer attribute.

Migrate data(Matrix Objects) between different database

I donot know how to  import/export matrix data object using the Spinner tool ,and instead we can use the MQL export/import command in the following way.


export bus 'Business Skill' * * into file c:\\businessskill.exp;
import bus 'Business Skill' * * from file c:\\businessskill.exp;

MxEclipse Install:
1. get the zip file from the official website
2. copy the jar file in the folder features to $eclispe_home/features folder, unpack the jar and then delete the jar file.
3. copy the jar file in the folder plugins to $eclispe_home/plugins folder and also the com.matrixone.plugin.library_10.7.1.jar, and you need to update the jars in the com.matrixone.plugin.library_10.7.1.jar if you upgrade.
4 restart the eclipse and you will see the mxeclipse plugin.

Two userful development tools
easy explorer

eclipse decomplier plugin 
update site:


posted on 2011-11-12 09:49 Life is no respector of any genius. 阅读(1606) 评论(0)  编辑  收藏 所属分类: MatrixOne