pdm怎么导入oracle,Oracle数据反向导入到pdm

本文介绍了如何利用PowerDesigner数据库建模工具反向导入Oracle数据库的过程,包括创建JDBC连接,选择要导入的表,以及通过执行特定脚本来设置中文名称。此外,还提到了Physical Options设置,以排除表空间语句在预览中的显示。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一、前置条件

已存在oracle数据库

已安装PowerDesigner数据库建模工具

二、在PowerDesigner中创建jdbc数据库连接

点击 “File>Reverse Engineer>Database”

200bc5f154a678ebaf3cd77d3d152c9f.png

9bbb70911d083fc1b86e2c3d8ad50f9b.png

选择数据源,如果之前没有创建则点击"Configure"进行配置

3eeb999461eca0182dae87a44ec31dd0.png

e1e212ecd152c767e07ef5f3933d5e54.png

bef26f6210e31596ff93b111662ab5db.png

三、开始导入

选择要导入的表

29de62c39752f4cec570e742fa87ddd1.png

3aabb021647b834cf536d74b90b3a968.png

21f1db7b955d0af2f8ee7b98a2d42c96.png

四、设置

使name显示中文名称,点击 "Tools>Excute Commands>Edit/Run Scripts ",执行以下脚本

9b75317f8a421e6c980ce5ba745befab.png

Option Explicit

ValidationMode = True

InteractiveMode = im_Batch

Dim mdl ' the current model

' 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

Dim Tab 'running table

for each Tab in folder.tables

if not tab.isShortcut then

tab.name = tab.comment

Dim col ' running column

for each col in tab.columns

if col.comment="" then

else

col.name= col.comment

end if

next

end if

next

Dim view 'running view

for each view in folder.Views

if not view.isShortcut then

view.name = view.comment

end if

next

' go into the sub-packages

Dim f ' running folder

For Each f In folder.Packages

if not f.IsShortcut then

ProcessFolder f

end if

Next

end sub

Physical Options(Common)设置,使Preview标签页没有表空间语句

6fa2df127b2f262b1585c3fa63e1da76.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值