oracle11g

Setting Oracle 11g Session Timeout

房东的猫 提交于 2020-01-11 04:44:05
问题 After rebooting the server, the oracle connection from the Tomcat server times out every night. Prior to the reboot, the connection didn't timeout. Now, in the morning, the application throws a JDBC connection error while accessing the DB. Restarting Tomcat corrects the issue. I'm assuming that's due to the connections being re-established. I think, this is due to the Oracle DB timing out the session. How can the session timeout be disabled in Oracle 11g? Thanks! Steve Config.groovy with dev

java.lang.ClassCastException: org.jboss.jca.adapters.jdbc.jdk6.WrappedConnectionJDK6 cannot be cast

六眼飞鱼酱① 提交于 2020-01-10 14:45:13
问题 Application Version: JBoss 7.0.0, Oracle 11g (ojdbc6.jar) and JDK 6 version I have a problem when I am trying to insert the value for CLOB Data type using CLOB.createTemporary function, getting the below exception. java.lang.ClassCastException: org.jboss.jca.adapters.jdbc.jdk6.WrappedConnectionJDK6 cannot be cast to oracle.jdbc.OracleConnection After searching in multiple forums, did not find any solution. https://forums.oracle.com/forums/thread.jspa?threadID=279238 Basic steps required to

java.lang.ClassCastException: org.jboss.jca.adapters.jdbc.jdk6.WrappedConnectionJDK6 cannot be cast

寵の児 提交于 2020-01-10 14:45:11
问题 Application Version: JBoss 7.0.0, Oracle 11g (ojdbc6.jar) and JDK 6 version I have a problem when I am trying to insert the value for CLOB Data type using CLOB.createTemporary function, getting the below exception. java.lang.ClassCastException: org.jboss.jca.adapters.jdbc.jdk6.WrappedConnectionJDK6 cannot be cast to oracle.jdbc.OracleConnection After searching in multiple forums, did not find any solution. https://forums.oracle.com/forums/thread.jspa?threadID=279238 Basic steps required to

ORA-12514 error after restarting the server

巧了我就是萌 提交于 2020-01-10 06:01:07
问题 I have oracle 11g installed on server and .Net oracle clients will access the database. Till yesterday i was connecting from clients using this connection string: User ID=dbcplas;Password=pwd123;Data Source=(DESCRIPTION = (ADDRESS =(PROTOCOL = TCP)(HOST = 172.17.26.7)(PORT = 1521))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = orcl.cplas3.com))) Till yesterday I was able to use Oracle SQL Developer in the same client. Today morning we restarted the server for maintanance. After restarting

Oracle 11g on Mac OS X

Deadly 提交于 2020-01-10 04:15:32
问题 I need to install Oracle Database on Mac OS X. I recently developped a NodeJS application using MySQL and now, I need this one to be compatible with Oracle, this is why I need Oracle Database on my Mac OS X, I will developped the Oracle version of the application... What's the best way to install Oracle on Mac OS X? I tried to install Oracle using this page : http://www.oracle.com/technetwork/apps-tech/intel-macsoft-096467.html Installed package : Version 11.2.0.4.0 (32-bit) Instant Client

Oracle 11g: Unpivot multiple columns and include column name

筅森魡賤 提交于 2020-01-10 01:04:27
问题 I'm triyng to unpivot multiple columns in my dataset. Here's what my data look like. CREATE TABLE T5 (idnum NUMBER,f1 NUMBER(10,5),f2 NUMBER(10,5),f3 NUMBER(10,5) ,e1 NUMBER(10,5),e2 NUMBER(10,5) ,h1 NUMBER(10,5),h2 NUMBER(10,5)); INSERT INTO T5 (IDNUM,F1,F2,F3,E1,E2,H1,H2) VALUES (1,'10.2004','5.009','7.330','9.008','8.003','.99383','1.43243'); INSERT INTO T5 (IDNUM,F1,F2,F3,E1,E2,H1,H2 VALUES (2,'4.2004','6.009','9.330','4.7008','4.60333','1.993','3.3243'); INSERT INTO T5 (IDNUM,F1,F2,F3,E1

Oracle 11g XE greek character set not displaying

孤人 提交于 2020-01-09 05:40:18
问题 I used an Oracle 11g EE to create my database and access it through PHP using PDO, and all was working good. But i had to change to 11g XE because i wanted to use it freely inside my company. Now, greek characters won't display on PHP (i get �������� instead). I tried to change the character set with : shutdown immediate; startup mount; alter system enable restricted session; alter system set job_queue_processes=0; alter database open; alter database character set internal_use EL8MSWIN1253;

How to handle Day Light Saving in Oracle database

对着背影说爱祢 提交于 2020-01-08 18:08:15
问题 In one of the Oracle database server it is showing "+01:00" when I fire the "Select dbtimezone from dual" does that mean in summer the clock will shift one hour ahead ?. In another server it is showing "+00:00" does that mean the database server setting is GMT ? but I am using the sysdate in oracle pl/sql. Client is saying the Aix server is on DST so would that mean the DB server will adopt the AIX server setting after clock change ? How to fix this problem. 回答1: Answer is: It depends. In

How to handle Day Light Saving in Oracle database

回眸只為那壹抹淺笑 提交于 2020-01-08 18:07:42
问题 In one of the Oracle database server it is showing "+01:00" when I fire the "Select dbtimezone from dual" does that mean in summer the clock will shift one hour ahead ?. In another server it is showing "+00:00" does that mean the database server setting is GMT ? but I am using the sysdate in oracle pl/sql. Client is saying the Aix server is on DST so would that mean the DB server will adopt the AIX server setting after clock change ? How to fix this problem. 回答1: Answer is: It depends. In

How to handle Day Light Saving in Oracle database

左心房为你撑大大i 提交于 2020-01-08 18:06:44
问题 In one of the Oracle database server it is showing "+01:00" when I fire the "Select dbtimezone from dual" does that mean in summer the clock will shift one hour ahead ?. In another server it is showing "+00:00" does that mean the database server setting is GMT ? but I am using the sysdate in oracle pl/sql. Client is saying the Aix server is on DST so would that mean the DB server will adopt the AIX server setting after clock change ? How to fix this problem. 回答1: Answer is: It depends. In