1、4.4乱码问题 174.5流程问题 184.6字典乱码 181、文档描述本文档描述了POBA 快速开发平台2.4的版本升级到3.0的主要升级功能及相关问题与解决方案。示例环境:Jboss4.2.3+Oracle10g2、功能变化新版软件与原软件相比,增加或改动以下功能:1、重写了OU,支持虚拟组织,支持时限功能。2、支持多语种。3、增加了全文检索引擎。4、增强了组件的功能。5、取消了EJB。6、工作流引入事务处理机制。3、升级步骤3.1 数据备份建议在数据库更新前做好数据备份。执行命令:开始菜单-运行 exp username/pwdorcl full=y file=D:/daochu.dmp
2、;或直接通过oracle客户端工具导出。3.2 应用系统备份 建议在升级前,先将JBOSS的war包备份(操作略)。3.3 数据库升级3.3.1 新增数据库表(1)人员表OU_PERSON(2)用户组表OU_GROUP(3)用户所归属的用户组表OU_USERGROUP(4)用户组的角色授权表OU_GROUPROLE(5)员工履历表OU_RESUME(6)岗位表OU_POSITION(7)部门岗位人员表OU_POSTUSER(8)职务表OU_JOB执行脚本如下:/*=*/* Table: OU_PERSON */CREATE TABLE OU_PERSON ( ID INTEGER NOT NU
3、LL, ORGCODE VARCHAR2(128) NOT NULL, CODE VARCHAR2(64) NOT NULL, USERNAME VARCHAR2(128) NOT NULL, USERTYPE VARCHAR2(32) NOT NULL, PWD VARCHAR2(128) NOT NULL, CAID VARCHAR2(64), EMAIL VARCHAR2(128), LANG VARCHAR2(32), STATUS CHAR(1) NOT NULL, ACCOUNTID VARCHAR2(128), BTYPE VARCHAR2(1), FIRSTNAME VARCH
4、AR2(128), LASTNAME VARCHAR2(128), NICKNAME VARCHAR2(32), SEXTYPE VARCHAR2(1), BIRTHDAY VARCHAR2(10), IDTYPE VARCHAR2(64), IDNO VARCHAR2(64), COUNTRY VARCHAR2(64), ADDRESS VARCHAR2(128), POSTCODE VARCHAR2(6), MOBILEPHONE VARCHAR2(16), TELEPHONE VARCHAR2(32), OFFICE VARCHAR2(128), OCCUPATION VARCHAR2(
5、32), COMPANY VARCHAR2(128), SEQNO INTEGER NOT NULL, CREATETIME VARCHAR2(19), LOGINTIME VARCHAR2(19), PWDTIME VARCHAR2(19), PWDTIPS VARCHAR2(255), PWDANSWER VARCHAR2(128), DESCR VARCHAR2(255); OU_GROUP */CREATE TABLE OU_GROUP ( NAME VARCHAR2(128) NOT NULL, GRPADM VARCHAR2(64), DESCR VARCHAR2(255), CO
6、NSTRAINT PK_OU_GROUP PRIMARY KEY (ID) OU_USERGROUP */CREATE TABLE OU_USERGROUP ( ORGPK INTEGER NOT NULL, USERPK INTEGER NOT NULL, USERCODE VARCHAR2(64) NOT NULL, USERNAME VARCHAR2(64) NOT NULL, GROUPORG VARCHAR2(128) NOT NULL, GROUPCODE VARCHAR2(64) NOT NULL, CONSTRAINT PK_OU_USERGROUP PRIMARY KEY (
7、ID) OU_GROUPROLE */CREATE TABLE OU_GROUPROLE ( ROLEORGCODE VARCHAR2(128) NOT NULL, ROLECODE VARCHAR2(32) NOT NULL, CONSTRAINT PK_OU_GROUPROLE PRIMARY KEY (ID) OU_RESUME */CREATE TABLE OU_RESUME ( USERCODE VARCHAR2(32) NOT NULL, TYPE VARCHAR2(1) NOT NULL, BEGINTIME VARCHAR2(19), DONETIME VARCHAR2(19)
8、, COMMENTS VARCHAR2(255), CONSTRAINT PK_OU_RESUME PRIMARY KEY (ID) OU_POSITION */CREATE TABLE OU_POSITION ( ORGNAME VARCHAR2(128) NOT NULL, DEPTPK INTEGER NOT NULL, DEPTCODE VARCHAR2(128) NOT NULL, DEPTNAME VARCHAR2(128) NOT NULL, PARENTPK INTEGER, POSTID VARCHAR2(32) NOT NULL, POSTNAME VARCHAR2(64)
9、 NOT NULL, POSTTYPE VARCHAR2(1) NOT NULL, POSTNUM INTEGER NOT NULL, STATUS VARCHAR2(1) NOT NULL, JOBPK INT NOT NULL, OFFICALRANK VARCHAR2(16) NOT NULL, JOBLEVEL VARCHAR2(16) NOT NULL, BEGINTIME VARCHAR2(19) NOT NULL, ENDTIME VARCHAR2(19) NOT NULL, CREATETIME VARCHAR2(19) NOT NULL, DEPTSEQ INTEGER NO
10、T NULL, JOBDESCRIPTION CLOB, CONSTRAINT PK_OU_POSITION PRIMARY KEY (ID) OU_POSTUSER */CREATE TABLE OU_POSTUSER ( POSTPK INTEGER NOT NULL, PERSONPK INTEGER NOT NULL, CREATETIME VARCHAR2(10) NOT NULL, CONSTRAINT PK_OU_POSTUSER PRIMARY KEY (ID) OU_JOB */CREATE TABLE OU_JOB ( JOBID VARCHAR2(32) NOT NULL
11、, JOBNAME VARCHAR2(64) NOT NULL, CONSTRAINT PK_OU_JOB PRIMARY KEY (ID)3.3.2 修改数据库表修改数据库表如下:(执行脚本附后) 表名 字段 类型 意义= = = =OU_ORGANIZE ID INT 组织流水号OU_ORGANIZE BEGINTIME VARCHAR(19) 有效起时OU_ORGANIZE ENDTIME VARCHAR(19) 有效止时OU_ORGANIZE CREATETIME VARCHAR(19) 创建时间OU_DEPARTMENT ORGPK INT 组织流水号OU_DEPARTMENT BE
12、GINTIME VARCHAR(19) 有效起时OU_DEPARTMENT ENDTIME VARCHAR(19) 有效止时OU_USER ORGPK INT 组织流水号OU_USER DEPTPK INT 部门流水号OU_USER BEGINTIME VARCHAR(19) 有效起时OU_USER ENDTIME VARCHAR(19) 有效止时OU_USER PERSONPK INT 人员流水号OU_USERACCOUNTTYPE VARCHAR(1) 帐号类型: D:默认帐号;P:兼职;E:外部兼职OU_VIRTUALORG ORGPK INT 组织流水号OU_VIRTUALORG BE
13、GINTIME VARCHAR(19) 有效起时OU_VIRTUALORG ENDTIME VARCHAR(19) 有效止时OU_VIRTUALDEPT ORGPK INT 组织流水号OU_VIRTUALDEPT ORGCODE VARCHAR(64) 组织号OU_VIRTUALDEPT VTYPE VARCHAR(1) 虚拟部门的类型OU_VIRTUALDEPT BEGINTIME VARCHAR(19) 有效起时OU_VIRTUALDEPT ENDTIME VARCHAR(19) 有效止时OU_VIRTUALDEPT LINKORGPK INT 链接部门的组织流水号OU_VIRTUALDE
14、PT LINKORGNAME VARCHAR(128) 链接部门的组织名称OU_VIRTUALDEPT LINKDEPTPK INT 链接部门的部门流水号OU_VIRTUALDEPT SOURCENAME VARCHAR(128) 链接部门的部门原始名称OU_VIRTUALDEPT STATUS VARCHAR2(1)OU_VIRTUALUSER ORGCODE VARCHAR(64) 组织号OU_VIRTUALUSER USERORGCODE VARCHAR(128) 用户所在的组织号OU_VIRTUALUSER USERPK INT 用户记录流水号OU_VIRTUALUSER BEGINT
15、IME VARCHAR(19) 有效起时OU_VIRTUALUSER ENDTIME VARCHAR(19) 有效止时OU_USERROLE ORGPK INT 组织流水号OU_USERROLE USERPK INT 用户记录流水号OU_USERROLE VORGCODE VARCHAR(64) 虚拟组织号WF_RIGHTS VORGCODE VARCHAR(64) 虚拟组织号WF_INSTANCE FLOWVORGCODE VARCHAR(64) 流程绑定的虚拟组织号WF_TODO VORGCODE VARCHAR(64) 办理人所在的虚拟组织WF_TODO USERPK INT 办理人的人
16、员流水WF_DONE VORGCODE VARCHAR(64) 办理人所在的虚拟组织WF_DONE USERPK INT 办理人的人员流水EFORM_DATA USERPK INT 表单所有人的用户流水号EFORM_ATTACH STATUS VARCHAR(1) 附件状态(N:新增;R:修订;D:删除;C:拷贝)执行脚本:alter table OU_ORGANIZE add ID INT;alter table OU_ORGANIZE add BEGINTIME VARCHAR2(19);alter table OU_ORGANIZE add ENDTIME VARCHAR2(19);al
17、ter table OU_ORGANIZE add CREATETIME VARCHAR2(19);comment on column OU_ORGANIZE.ID is 组织流水号;comment on column OU_ORGANIZE.BEGINTIME is 有效起时comment on column OU_ORGANIZE.ENDTIME is 有效止时comment on column OU_ORGANIZE.CREATETIME is 创建时间alter table OU_DEPARTMENT add ORGPK INT;alter table OU_DEPARTMENT ad
18、d BEGINTIME VARCHAR2(19);alter table OU_DEPARTMENT add ENDTIME VARCHAR2(19);comment on column OU_DEPARTMENT.ID is comment on column OU_DEPARTMENT.BEGINTIME is comment on column OU_DEPARTMENT.ENDTIME is alter table OU_USER add ORGPK INT;alter table OU_USER add DEPTPK INT;alter table OU_USER add BEGIN
19、TIME VARCHAR2(19);alter table OU_USER add ENDTIME VARCHAR2(19);alter table OU_USER add PERSONPK INT;alter table OU_USER add ACCOUNTTYPE VARCHAR2(1);comment on column OU_USER.ORGPK is comment on column OU_USER.DEPTPK is 部门流水号comment on column OU_USER.BEGINTIME is comment on column OU_USER.ENDTIME is
20、comment on column OU_USER.personpk is 人员流水号,对应与ou_person表中的一条记录comment on column OU_USER.accounttype is 帐号类型D:兼职帐号;外部兼职alter table OU_VIRTUALORG add ORGPK INT;alter table OU_VIRTUALORG add BEGINTIME VARCHAR2(19);alter table OU_VIRTUALORG add ENDTIME VARCHAR2(19);comment on column OU_VIRTUALORG.ORGPK
21、 is comment on column OU_VIRTUALORG.BEGINTIME is comment on column OU_VIRTUALORG.ENDTIME is alter table OU_VIRTUALDEPT add ORGPK INT;alter table OU_VIRTUALDEPT add ORGCODE VARCHAR2(64);alter table OU_VIRTUALDEPT add VTYPE VARCHAR2(1);alter table OU_VIRTUALDEPT add BEGINTIME VARCHAR2(19);alter table
22、OU_VIRTUALDEPT add ENDTIME VARCHAR2(19);alter table OU_VIRTUALDEPT add LINKORGPK INT;alter table OU_VIRTUALDEPT add LINKORGNAME VARCHAR2(128);alter table OU_VIRTUALDEPT add LINKDEPTPK INT;alter table OU_VIRTUALDEPT add SOURCENAME VARCHAR2(128);alter table OU_VIRTUALDEPT add STATUS VARCHAR2(1);alter table OU_VIRTUALDEPT add LINKORGCODE VARCHAR2(128);alter table OU_VIRTUALDEPT add VORGPK INTEGER;comment
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1