title: Java ORA-01034: ORACLE not available
body: <p>My problem is in Exception Block I have shown,I can connect using GUI(PL/SQL developer) but my Eclipsedlink is getting exception while getting connection using Web Application. Please help me.
  Thanks in Advance.</p>
  
  <p>I am using ojdbc14.jar, I am getting connection using Normal java(core), but with Eclipse link alone this problem exists.</p>
  
  <p>Tesing.java :</p>
  
  <pre><code>        String URL = "jdbc:oracle:thin:@IP:1521:devt2x";
          String USER = "username";
          String PASS = "password";
          Class.forName("oracle.jdbc.driver.OracleDriver");
          conn = DriverManager.getConnection(URL, USER, PASS);
          if(conn != null)
              System.out.println("connects");
          else
              System.out.println("not connects");
  
  ouput :
  </code></pre>
  
  <p><strong><code>connects</code></strong></p>
  
  <p>tnsnames.ora</p>
  
  <pre><code>CHENNAIDB.WORLD =
    (DESCRIPTION =
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = TCP)(HOST = IP)(PORT = 1521))
        (ADDRESS = (PROTOCOL = TCP)(HOST = IP)(PORT = 1526))
      )
      (CONNECT_DATA =
        (SID = devt2x)
      )
    )
  </code></pre>
  
  <p>Persistence.xml</p>
  
  <pre><code>&lt;property name="javax.persistence.jdbc.driver" value="oracle.jdbc.OracleDriver" /&gt;
  &lt;property name="javax.persistence.jdbc.url"
                  value="jdbc:oracle:thin:@(DESCRIPTION =(ADDRESS_LIST =(ADDRESS=(PROTOCOL = TCP)(HOST = IP)(PORT = 1521)))(CONNECT_DATA = (SERVICE_NAME =  devt2x)(SERVER = DEDICATED)))" /&gt;
              &lt;property name="javax.persistence.jdbc.user" value="username" /&gt;
              &lt;property name="javax.persistence.jdbc.password" value="password" /&gt;
  </code></pre>
  
  <p>Exception I am getting : No problem in mapping</p>
  
  <pre><code>[EL Finer]: 2012-11-20 11:39:39.021--ServerSession(2693887)--Thread(Thread[main,5,main])--DriverManager connect failed, trying direct connect.
  [EL Finer]: 2012-11-20 11:39:39.021--ServerSession(2693887)--Thread(Thread[main,5,main])--java.sql.SQLException: ORA-01034: ORACLE not available
  ORA-27123: unable to attach to shared memory segment
  Linux Error: 13: Permission denied
  </code></pre>