PowerDesigner remotely connect to Oracle database

1. Double-click to run PowerDesigner ->Create Model ->Choose to create a physical model, as shown in the figure below.
Insert picture description here
Insert picture description here
2. If it is the first time to link, you need to configure the link data source, as follows: Database -> Configure Connections…
Select Connection Profiles -> click the Add Data Source button (as shown in the figure to add a data source)
Insert picture description here
3. Fill in the relevant information in the pop-up window The details are as follows:
Insert picture description here
4. Enter the password in Password, and click OK to test the connection.
Insert picture description here
If an error is reported: Non SQL Error: Could not load class oracle.jdbc.driver.OracleDriver, please see step 5.
If an error is reported: Could not Initialize JavaVM, please see step 6.

5. If an error is reported: Non SQL Error: Could not load class oracle.jdbc.driver.OracleDriver, it means that the ojdbc14.jar file is not found, you can download the ojdbc4.jar file on the Internet and store it in a fixed folder (I put it in the PowerDesigner installation directory), and then select the JDBC driver jar again files, retest the connection. As shown in the figure below:
Insert picture description here
6. If an error is reported: Could not Initialize JavaVM, it means that the JAVA environment is configured incorrectly. First, power designer needs to run in a 32-bit jdk environment. You can download the 32-bit jdk first, and then press and install the downloaded jdk. , And then set the environment variables. This is the version of the jdk file I downloaded. The environment variables have the following items ("C:\Program Files (x86)\Java\" is the jdk installation path):
JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_66
CLASSPATH=%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar
path=C:\Program Files (x86)\Java\jdk1.8.0 _66\bin After
Insert picture description here
Insert picture description here
installation, specify the file path of JAR, JAVA, JAVAC, JAVADOC to the installation folder of the installed jdk, Tool ->General Options... ->Variables, as shown below:
Insert picture description here
Their path is the installed 32-bit jdk The executable file with the corresponding name in the bin directory inside.
After this setting, the connection should be successful. For the rest, click OK directly, and the default operation is fine.

PS:
SQLSTATE = UNKNOWN
Io exception: Invalid number format for port number --This error refers to the wrong format in the URL.
SQLSTATE = UNKNOWN
Io exception: The Network Adapter could not establish the connection --This error refers to the network failure. Or the IP of the remote server is wrong.
SQLSTATE = 99999
ORA-28040: no matching authentication protocol-this error means that the Oracle version on the remote server is too high, and the Oracle client installed on the machine needs to be upgraded.

7. After retesting, the connection can be tested successfully. Then select Database -> Connect..., enter the correct content and click connect to link.
Insert picture description here
8. After the connection is successful, you can use reverse engineering to generate PDM, create a PDM model, and then select Database -> Update Model from Database..., confirm that the entries are correct and click OK. As shown below:
Insert picture description here
9. After clicking OK in step 8, select the Table, View, etc. to be reversed in the pop-up window. After selecting the content to be displayed, click Ok, and then wait for completion.
Insert picture description here
PS: The downloaded JDK installation file does not have to be consistent with the version in the text, you can choose an updated or suitable version for installation.

Guess you like

Origin blog.csdn.net/sinat_31633205/article/details/104346533