[b]二、Power Designer通过JDBC连接Oracle10g数据库[/b]
打开Power Designer 15.2.0
1、点击菜单‘File Reverse Engineer Database …’,
在弹出的对话框中,选择‘Oracle‘,点’确定‘按钮。
2、在弹出的‘Database Reverse Engineering Options’窗口中,选择‘Using a data source’,点击‘Using a data source’下面输入框右侧的按钮。
3、在弹出的‘Connect to a Data Source’窗口中,选择‘Connection Profile’,点击‘Configure…’按钮,弹出‘Configure Data Connections’窗口,选择‘Connection Profiles’tab页,点击其按钮栏中的左起第二个按钮,弹出‘Connection Profile Definition’窗口,在该窗口中设置Oracle数据库连接。
4、‘Connection Profile Definition’窗口中,‘Connection Type’选择‘JDBC’,‘DBMS Type’选择‘Oracle 10g’,其他参数根据Oracle连接参数进行设置。
5、在‘Database Reverse Engineering Options’窗口中,设置完data source后,点击‘确定’按钮,弹出数据库内容窗口,选择需要导入到Power Designer的数据库内容,,点击‘OK’按钮,Power Designer将选中的内容导入到自己的工作区中。
一、 16:29:06 [ALTER - 0 row(s), 0.000 secs] [Error Code: 547, SQL State: 23000] The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_CO". The conflict occurred in database " ", table "tableMain", column 'ColA'.
... 1 statement(s) executed, 0 row(s) affected, exec/fetch time: 0.000/0.000 sec [0 successful, 0 warnings, 1 errors]
因为被关联的子表中'ColA'有一些数据不在主表tableMain中存在。
打开Power Designer 15.2.0
1、点击菜单‘File Reverse Engineer Database …’,
在弹出的对话框中,选择‘Oracle‘,点’确定‘按钮。
2、在弹出的‘Database Reverse Engineering Options’窗口中,选择‘Using a data source’,点击‘Using a data source’下面输入框右侧的按钮。
3、在弹出的‘Connect to a Data Source’窗口中,选择‘Connection Profile’,点击‘Configure…’按钮,弹出‘Configure Data Connections’窗口,选择‘Connection Profiles’tab页,点击其按钮栏中的左起第二个按钮,弹出‘Connection Profile Definition’窗口,在该窗口中设置Oracle数据库连接。
4、‘Connection Profile Definition’窗口中,‘Connection Type’选择‘JDBC’,‘DBMS Type’选择‘Oracle 10g’,其他参数根据Oracle连接参数进行设置。
5、在‘Database Reverse Engineering Options’窗口中,设置完data source后,点击‘确定’按钮,弹出数据库内容窗口,选择需要导入到Power Designer的数据库内容,,点击‘OK’按钮,Power Designer将选中的内容导入到自己的工作区中。
一、 16:29:06 [ALTER - 0 row(s), 0.000 secs] [Error Code: 547, SQL State: 23000] The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_CO". The conflict occurred in database " ", table "tableMain", column 'ColA'.
... 1 statement(s) executed, 0 row(s) affected, exec/fetch time: 0.000/0.000 sec [0 successful, 0 warnings, 1 errors]
因为被关联的子表中'ColA'有一些数据不在主表tableMain中存在。

被折叠的 条评论
为什么被折叠?



