2
的我使用11克Express版本,Eclipse的朱諾,Java 6的持久性,Oracle瘦,ORA-12505,TNS監聽器目前不知道SID
甲骨文啓動並運行甚至試圖立即停機和啓動,但沒有得到SID聽者錯誤
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="default" transaction-type="RESOURCE_LOCAL">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<class>com.crspdemo.Employee</class>
<properties>
<property name="javax.persistence.jdbc.url" value="jdbc:oracle:thin:@localhost:1521:jsfDatabase"/>
<property name="javax.persistence.jdbc.password" value="admin"/>
<property name="javax.persistence.jdbc.driver" value="oracle.jdbc.driver.OracleDriver"/>
<property name="javax.persistence.jdbc.user" value="system"/>
<!--<property name="eclipselink.ddl-generation" value="create-tables"/>-->
</properties>
</persistence-unit>
</persistence>
錯誤:
Caused by: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.2.0.v20110202-r8913): org.eclipse.persistence.exceptions.DatabaseException
內部異常:java.sql.SQLException中:監聽拒絕合作並出現以下錯誤nnection: ORA-12505,TNS:監聽器目前不知道SID的連接描述符中給出
LISTNER.ORA