测试环境:power designer 16.5、vs2010、win7

对于破解版的power designer经常出现崩溃、停止工作的情况

请运行pdlegacyshell16.exe,不要运行PdShell16.exe

一、如何调试power designer中的vbs

1.修改注册HKEY_CURRENT_USER\Software\Microsoft\WindowsScript\Settings,将值改为1

2.在要调试的vbs脚本中插入Stop语句

3.启动power designer,选择Tools -> Execute Commands -> Edit/Run Script,打开要步骤2中的脚本执行,当执行到Stop语句时,就会触发vs2010调试该脚本

二、添加oracle 表空间相关参数

 create table MAMS_AMDAYINDEX
(
amdayindexid VARCHAR2(25) not null,
indexdate VARCHAR2(10),
amuid VARCHAR2(10),
nomonfundsales NUMBER(18,2),
ppiperiodamt NUMBER(18,2),
)
tablespace TBS_DEPT -- 表段MAMS_AMDAYINDEX放在表空间TBS_DEPT中
pctfree 10 -- 块保留10%空间留给更新该块数据使用
initrans 1 -- 初始化事务槽个数
maxtrans 255 -- 最大事务槽个数
storage -- 存储参数
(
initial 16 -- 区段(extent)一次扩展16
minextents 1 -- 最小区段数
maxextents unlimited -- 最大区段数
); pctfree 10,比如一个数据块插入数据直到还剩余10%的空间就不再插入,留下10%用做将来数据更新使用(因为存在可变长度的字段)。这样可以防止迁移行和链接行出现
initrans,maxtrans 表示可以再一个数据块上并发操作的事务槽个数,最大个数
minextents,maxextents 表示可以给该表分配区段的最小最大个数

在powerdesigner 16.5中添加以上参数

1.双击表,弹出table properties窗口
2.选择标签页physical options,注意不是 physical options(Common)
3.在左边折叠树找到<physical_properties>,<segment_attributes_clause>,在pctfree,initrans,<deprecated>maxtrans,<storage>,initial,minextents,maxextents,tablespace。选择到右边即可
4.选中pctfree在右下角有设置值大小的输入栏
5.在preview检查sql参数是否生效

在标签页physical options左下角有一个apply to,可以设置一次性应用到其他表格

三、取消oracle中的大小写敏感(取消oracle的双引号)

Database -> Edit Current DBMS -> General -> Script -> Sql -> Format -> CaseSensitivityUsingQuote -> No

四、关闭name自动复制到code

Tools -> General Options -> Dialog -> Operating modes -> Name to Code mirroring -> 取消打钩

五、几个有用的脚本

将comment字段复制到name字段,在逆向工程数据库时,将注释写到name上

'******************************************************************************
'* File: CopyComment2Name.vbs
'* Title: Copy Comment to Name Conversion
'* Purpose: To update existing objects in your model with your current naming
'* standards based in your model options by executing the Comment to Name.
'*
'* Model: Physical Data Model
'* Objects: Table, Column, View
'* Category: Naming Standards
'* Author: Tang Tao
'* Created: Apr 11, 2017
'* Mod By:
'* Modified:
'* Version: 1.0
'* Comment:
'* v1.0 - Must have Conversion Tables assigned as a model option and
'* turn on Enable Name/Comment Conversion
'******************************************************************************
Option Explicit
ValidationMode = True
InteractiveMode = im_Batch
' the current model
Dim mdl ' get the current active model
Set mdl = ActiveModel
If (mdl Is Nothing) Then
MsgBox "There is no current Model "
ElseIf Not mdl.IsKindOf(PdPDM.cls_Model) Then
MsgBox "The current model is not an Physical Data model. "
Else
ProcessFolder mdl
End If
Private sub ProcessFolder(folder)
'On Error Resume Next
'running table
Dim tab
for each tab in folder.tables
if not tab.isShortcut then
if tab..Comment <> "" then
tab.Name = tab.Comment
end if
' running column
Dim col
for each col in tab.columns
if col.Comment <> "" and not col.Replica then
col.Name= col.Comment
end if
next
end if
next
'running view
Dim view
for each view in folder.Views
if not view.isShortcut then
view.Name = view.Comment
end if
next ' go into the sub-packages
' running folder
Dim f
For Each f In folder.Packages
if not f.IsShortcut then
ProcessFolder f
end if
Next
end sub 将name字段复制到comment字段,在设计物理模型时,不需要输入两次。 '******************************************************************************
'* File: CopyName2Comment.vbs
'* Title: Copy Name to Comment Conversion
'* Purpose: To update existing objects in your model with your current naming
'* standards based in your model options by executing the Name To Comment.
'*
'* Model: Physical Data Model
'* Objects: Table, Column, View
'* Category: Naming Standards
'* Author: Tang Tao
'* Created: Apr 11, 2017
'* Mod By:
'* Modified:
'* Version: 1.0
'* Comment:
'* v1.0 - Must have Conversion Tables assigned as a model option and
'* turn on Enable Name/Comment Conversion
'******************************************************************************
Option Explicit
ValidationMode = True
InteractiveMode = im_Batch 'the current model
Dim mdl 'get the current active model
Set mdl = ActiveModel
If (mdl Is Nothing) Then
MsgBox "There is no current Model "
ElseIf Not mdl.IsKindOf(PdPDM.cls_Model) Then
MsgBox "The current model is not an Physical Data model. "
Else
ProcessFolder mdl
End If Private sub ProcessFolder(folder)
'On Error Resume Next
'running table
Dim tab
for each tab in folder.tables
if not tab.isShortcut then
tab.Comment = tab.Name
'running column
Dim col
for each col in tab.Columns
if col.Name<>"" and not col.Replica then
col.Comment = col.Name
end if
next
end if
next 'running view
Dim view
for each view in folder.Views
if not view.isShortcut then
view.Comment = view.Name
end if
next 'go into the sub-packages
'running folder
Dim f
For Each f In folder.Packages
if not f.IsShortcut then
ProcessFolder f
end if
Next
end sub

---------------------
作者:tangtao_xp
来源:CSDN
原文:https://blog.csdn.net/tangtao_xp/article/details/70842063

power designer 16.5 使用总结[转]的更多相关文章

  1. 使用Navicat Premium 12导出SQL语句并在Power Designer 16.5中生成物理模型

    内容简介 本文主要介绍使用Navicat Premium 12导出建表SQL(使用MySQL数据库)文件,并在Power Designer 16.5中使用导出的SQL文件来生成物理模型的步骤. 操作步 ...

  2. Sybase Power Designer 16.5破解版下载

    http://pan.baidu.com/s/1ddsjs  下载后正常安装,然后将压缩文件里的dll文件拷到安装目录下覆盖原文件,启动Power Designer后,选择help-->abou ...

  3. Power Designer导出实体类和NHibernate xml文件

    Power Designer导出实体类和NHibernate xml文件 今天研究了一下通过PowerDesigner生成实体类和NHibernate所需要的xml文件,方法是通过Power Desi ...

  4. power designer的安装

    PowerDesigner的安装 原由:新学期要开概要设计(软件设计与体系结构)这门课,老师推荐了两个CASE工具. Rational Rose Power Designer 本来想找rose的资源, ...

  5. power designer

    概述 Power Designer 是Sybase公司的CASE工具集,使用它可以方便地对管理信息系统进行分析设计,他几乎包括了数据库模型设计的全过程.利用Power Designer可以制作数据流程 ...

  6. Power Designer Repository 使用指南(一)

    最近wait4friend在进行建模的时候,总是被问如果在Power Designer里面进行版本的控制.原始的方法是对PDM文件进行SVN管理,不过这个方法比较土,并且不方便版本直接图形的比较.其实 ...

  7. Power Designer 转C#实体类方法

    1.打开Power Designer菜单 Tools,选择如图    2.弹出方框中选择PD安装目录下的如图地址 3.object language选择正确目录后,可选如图语言,如C#.再填写name ...

  8. power designer和uml应用

    1.power designer和uml应用,它们可以帮助我们画图power designer还能在画图时帮助你完成代码.对于新手是很合适的一个画图工具, 2.这就是power designer 的示 ...

  9. Oracle学习-Power Designer、visio 2003、Oracle sql developer、OEM、expdp

    Oracle的体系太庞大了.对于刚開始学习的人来说,难免有些无从下手的感觉. 经过一学期的学习对Oracle学习有了一些深入的了解,由于之前学习过Oracle的一些主要的知识.所以学习起来上手比較快一 ...

随机推荐

  1. js的cookie和sesession详解

    会话(Session)跟踪是Web程序中常用的技术,用来跟踪用户的整个会话.常用的会话跟踪技术是Cookie与Session.Cookie通过在客户端记录信息确定用户身份,Session通过在服务器端 ...

  2. 潭州课堂25班:Ph201805201 django 项目 第二十八课 新闻elasticsearch搜索前后功台能实现 (课堂笔记)

    后端功能实现 文件,类,字段,命名不要改动, 在apps/news/search_indexes.py中创建如下类:(名称固定为search_indexes.py) # -*-# -*- coding ...

  3. [ZJOI2013]K大数查询

    Description: 给定一个序列,支持两种操作 1.在[L,R]的每个位置上加上一个数 (注意一个位置上有多个数) 2.查询[L,R]上所有数中的第K大 Hint: \(n,m<=5e4\ ...

  4. g++ 动态库的编译及使用

    #ifndef __HELLO_H_ #define __HELLO_H_ void print(); #endif #include "hello.h" #include < ...

  5. K Besk [POJ 3111]

    描述 Demy有n颗宝石.她的每个珠宝都有一些价值vi和重量wi.自从丈夫约翰在最近的金融危机爆发后,已经决定出售一些珠宝.她决定自己会保留最好的珠宝.她决定保留这样的宝石,使他们的具体价值尽可能大. ...

  6. python字符串面试题:找出一个字符串中第一个字母和最后一个字符是第一次重复,中间没有重复且最长的子串

    1.给出任意一个字符串,打印一个最长子串字符串及其长度,如果有相同长度的子字符串,都要一起打印出来,该子字符串满足以下条件, 第一个字母和最后一个字符是第一次重复 这个子字符串的中间字母没有重复 这个 ...

  7. 超详细 Spring @RequestMapping 注解使用技巧

    @RequestMapping 是 Spring Web 应用程序中最常被用到的注解之一.这个注解会将 HTTP 请求映射到 MVC 和 REST 控制器的处理方法上. 在这篇文章中,你将会看到 @R ...

  8. centos6.8 固定IP

    # vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=static IPADDR=192.168.0.116 NET ...

  9. python之类和对象

    对象(object)基本上可以看做数据(特性)以及由一系列可以存取.操作这些数据的方法所组成的集合. 类,可以看成种类,类型,从一组对象中提取到的相似部分.所有的对象都属于一个类,称为类的实例. 之前 ...

  10. C/JS_二分法查找

    1. 二分法查找 前提: 数据是排好序的. 题设:给出一个有序arr,从中找出key,arr的区间是array[ low , higt]. 步骤: (1)mid=(low+high)/2 (2)arr ...