2016-08-26 1 views
3

Oracle Instant Client 64 비트를 설치했습니다. SchemaSpy로 연결할 때 아래와 같은 오류 메시지가 나타납니다.SchemaSpy로 Oracle에 연결할 수 없습니다.

참고 :이 두 파일이 C 존재 : \ 응용 프로그램 \ instantclient_12_1 \ ojdbc6.jar C : \ 응용 프로그램 \ instantclient_12_1 \ ocijdbc12.dll

그리고 "C : \ 응용 프로그램 \ instantclient_12_1 \"는에 통로.

나는 C : \ app \ instantclient_12_1 \ ojdbc7.jar도 시도해 본 결과가 같다.

Windows 7 64 비트.

정상적으로 작동하도록하는 사람의 도움을 크게 주시면 감사하겠습니다.

오류 메시지 : 여기

Failed to load driver [oracle.jdbc.driver.OracleDriver] from classpath [file:/C:/app/instantclient_12_1/ojdbc6.jar] 

Make sure the reported library (.dll/.lib/.so) from the following line can be 
found by your PATH (or LIB*PATH) environment variable 

java.lang.UnsatisfiedLinkError: C:\app\instantclient_12_1\ocijdbc12.dll: Specified process not found 
    at java.lang.ClassLoader$NativeLibrary.load(Native Method) 
    at java.lang.ClassLoader.loadLibrary0(Unknown Source) 
    at java.lang.ClassLoader.loadLibrary(Unknown Source) 
    at java.lang.Runtime.loadLibrary0(Unknown Source) 
    at java.lang.System.loadLibrary(Unknown Source) 
    at oracle.jdbc.driver.T2CConnection$1.run(T2CConnection.java:4115) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:4111) 
    at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:308) 
    at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:662) 
    at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:54) 
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:560) 
    at net.sourceforge.schemaspy.SchemaAnalyzer.getConnection(SchemaAnalyzer.java:582) 
    at net.sourceforge.schemaspy.SchemaAnalyzer.analyze(SchemaAnalyzer.java:157) 
    at net.sourceforge.schemaspy.Main.main(Main.java:42) 
E=3I=3 

답변

2

방법 오라클 데이터베이스에 대해 SchemaSpy 6를 실행하는 것 :

Dependecies

당신이 당신의 컴퓨터에 다음과 같은 가능한이 있는지 확인 :

  1. schemaspy.org에서 최신 버전까지, 다음은 schemaspy-6.0.0-rc1에 대한 프로세스를 설명합니다.
  2. Oracle JDBC 씬 드라이버. 그렇지 않으면 Oracle OCI를 사용해야합니다. Oracle Database 12.1.0.2 JDBC Driver & UCP Downloads
  3. SchemaSpy는 GraphViz를 사용하여 다이어그램을 생성하고 에서 가져와야합니다. PATH 변수를 업데이트해야하고 C:\Program Files (x86)\Graphviz2.38\bin을 추가하십시오 (버전이 다운로드 한 버전과 맞는지 확인하십시오).

데이터베이스 유형

참고 SchemaSpy 데이터베이스 유형으로 오라클 OCI (-t 오라) 및 Oracle 씬 (-t orathin)를 지원합니다. 사용 가능한 데이터베이스 유형의 목록을 얻으려면 :

java -jar schemaspy-6.0.0-rc1.jar -dbhelp 

구성 당신은 schemaspy.properties라는 파일에 대부분의 구성 매개 변수를 넣을 수 있습니다

schemaspy-6.0.0-rc1.jar와 같은 디렉토리에이 파일을 넣어.

schemaspy.properties :

# type of database. Run with -dbhelp for details 
schemaspy.t=orathin 
# path to the dowloaded oracle jdbc drivers, for example 
schemaspy.dp=C:\tools\dbdoc\drivers\ojdbc7.jar 
# database properties: host, port number, name user, password 
schemaspy.host=[orcale database host] 
schemaspy.port=[orcale database port, usualy 1521] 
schemaspy.db=[database name or SID] 
schemaspy.u=[username] 
schemaspy.p=[password, for complexer ones, put it in quotation marks] 

# output dir to save generated files 
schemaspy.o=C:\tools\dbdoc\output 

# db scheme for which generate diagrams 
schemaspy.s=[scheme name] 

생성 장소의 구성, 지금 당신이해야 할 모든 실행으로 문서

:

java -jar schemaspy-6.0.0-rc1.jar 
관련 문제