Oracle

Oracle 10g accepting 5 digit year in a Date

风流意气都作罢 提交于 2021-02-02 09:55:13
问题 I managed to enter the date 21-Feb-12017 (I know it's not a correct date) in Oracle 10g into a date column. Oracle accepted the date fine. When I tried to select it back in SQL Developer, SQL Developer displayed it as NULL. But when I tried to retrieve the date thru java, I got the value back as how I inserted. Wondering what's going on because I could also see that Oracle converted a different 5 digit year into a 4 digit year. I entered 21-Feb-21019 and Oracle converted the year to 4581

How to represent Oracle Interval in Java

…衆ロ難τιáo~ 提交于 2021-02-02 09:15:27
问题 I'm using Java 7 with hibernate 4. Want to use oracle Interval data type (http://psoug.org/definition/INTERVAL.htm) to represent a interval of a certain number of days. Wondering what Java Type to use to map this Oracle Interval Object. I would like to use standard Java objects and not any oracle.sql.* objects as mentioned in this document http://docs.oracle.com/cd/B28359_01/java.111/b31224/datacc.htm. Here's the table I'm playing with: CREATE TABLE "MyTest" ( "ID" NUMBER(14,0) NOT NULL

ORA-00933 SQL command not properly ended but good in SQL Developer

独自空忆成欢 提交于 2021-02-02 09:01:29
问题 I am hoping someone can find what is the issue with my query because I am unable to see fault in it and Oracle SQL Developer seems to run the same query as the code in my Java Swing Application just fine. My query in SQL Developer: SELECT ad.ID,ad.Script_Name,ad.Current_Status, ad.Issues_found_during_run,ad.Testers, ad.Run_Date,ad.Tools,u.fTag,u.role, dbms_lob.substr(u.avatar) FROM allData ad INNER JOIN users u ON u.fTag = ad.lastUserWhoUpdated GROUP BY ad.ID,ad.Script_Name,ad.Current_Status,

ORA-00933 SQL command not properly ended but good in SQL Developer

╄→гoц情女王★ 提交于 2021-02-02 08:59:30
问题 I am hoping someone can find what is the issue with my query because I am unable to see fault in it and Oracle SQL Developer seems to run the same query as the code in my Java Swing Application just fine. My query in SQL Developer: SELECT ad.ID,ad.Script_Name,ad.Current_Status, ad.Issues_found_during_run,ad.Testers, ad.Run_Date,ad.Tools,u.fTag,u.role, dbms_lob.substr(u.avatar) FROM allData ad INNER JOIN users u ON u.fTag = ad.lastUserWhoUpdated GROUP BY ad.ID,ad.Script_Name,ad.Current_Status,

ORA-00933 SQL command not properly ended but good in SQL Developer

有些话、适合烂在心里 提交于 2021-02-02 08:59:21
问题 I am hoping someone can find what is the issue with my query because I am unable to see fault in it and Oracle SQL Developer seems to run the same query as the code in my Java Swing Application just fine. My query in SQL Developer: SELECT ad.ID,ad.Script_Name,ad.Current_Status, ad.Issues_found_during_run,ad.Testers, ad.Run_Date,ad.Tools,u.fTag,u.role, dbms_lob.substr(u.avatar) FROM allData ad INNER JOIN users u ON u.fTag = ad.lastUserWhoUpdated GROUP BY ad.ID,ad.Script_Name,ad.Current_Status,

ORA-12514: TNS: no listener 解决方案

痴心易碎 提交于 2021-02-02 06:05:19
服务端 :oracle 11g 客户端 : pl/sql 问题描述 : 用客户端 pl/sql 连接登录的时候,提示 "ORA-12514: TNS: no listener"。 在服务器用 telnet localhost 1521 和 telnet 127.0.0.1 1521 都可以,但是 telnet IP 1251 不行。 解决方案 : 将服务端的 \product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora 的 (ADDRESS = (PROTOCOL = TCP)(HOST =127.0.0.1)(PORT = 1521)) 改为: (ADDRESS = (PROTOCOL = TCP)(HOST =计算机名)(PORT = 1521)) 然后重启 11gClientListener 服务 https://www.cnblogs.com/heige/p/3544762.html 来源: oschina 链接: https://my.oschina.net/u/4323130/blog/4238974

Oracle GoldenGate For BigData

不打扰是莪最后的温柔 提交于 2021-02-02 04:43:58
1. Oracle GoldenGate For BigData截至2018-11-20的最新版是12c (12.3.2.1),官方文档首页:https://docs.oracle.com/en/middleware/goldengate/big-data/12.3.2.1/index.html 2. 该版本中对Oracle GoldenGate For BigData官方文档的学习主要是两篇文档,一是Using Oracle GoldenGate for Big Data, 二是Understanding the Java Adapter and Oracle GoldenGate for Big Data。其他文档主要是新版特性,公司著作权,或者对这两篇文档的分拆说明等。 3. Using Oracle GoldenGate for Big Data这里主要介绍了(待补充)。。。。。详细内容在另一篇博客中讲解。 4. Understanding the Java Adapter and Oracle GoldenGate for Big Data这里主要介绍了(待补充)。。。。。详细内容在另一篇博客中讲解。 来源: oschina 链接: https://my.oschina.net/u/3651261/blog/2878652

PageHelper分页插件的原理是什么

前提是你 提交于 2021-02-02 04:43:07
作者:祖大俊 原文: https: / /my.oschina.net/zudajun /blog/ 745232 PageHelper是一款好用的开源免费的Mybatis第三方物理分页插件,其实我并不想加上好用两个字,但是为了表扬插件作者开源免费的崇高精神,我毫不犹豫的加上了好用一词作为赞美。 原本以为分页插件,应该是很简单的,然而PageHelper比我想象的要复杂许多,它做的很强大,也很彻底,强大到使用者可能并不需要这么多功能,彻底到一参可以两用。但是,我认为,作为分页插件,完成物理分页任务是根本,其它的很多智能并不是必要的,保持它够傻够憨,专业术语叫stupid,简单就是美。 我们将简单介绍PageHelper的基本使用和配置参数的含义,重点分析PageHelper作为Mybatis分页插件的实现原理。 1. PageHelper的maven依赖及插件配置 < dependency > < groupId > com.github.pagehelper </ groupId > < artifactId > pagehelper </ artifactId > < version > 4.1.6 </ version > </ dependency > PageHelper除了本身的jar包外,它还依赖了一个叫jsqlparser的jar包,使用时

SQL: getting the max value of one column and the corresponding other columns [duplicate]

有些话、适合烂在心里 提交于 2021-02-02 03:42:27
问题 This question already has answers here : Fetch the row which has the Max value for a column (35 answers) Closed 4 years ago . ID| tag | version -----+-----+----- 1| A | 10 2| A | 20 3| B | 99 3| C | 30 3| F | 40 desired output: 1 A 10 2 A 20 3 B 99 How can I get the max version of every ID and the corresponding tag for that version? Speed is important (I have around 28m rows) so a nested Select won't do it. Also a simple Group by ID with a max(version) doesn't work because I also need the

SQL: getting the max value of one column and the corresponding other columns [duplicate]

喜欢而已 提交于 2021-02-02 03:40:14
问题 This question already has answers here : Fetch the row which has the Max value for a column (35 answers) Closed 4 years ago . ID| tag | version -----+-----+----- 1| A | 10 2| A | 20 3| B | 99 3| C | 30 3| F | 40 desired output: 1 A 10 2 A 20 3 B 99 How can I get the max version of every ID and the corresponding tag for that version? Speed is important (I have around 28m rows) so a nested Select won't do it. Also a simple Group by ID with a max(version) doesn't work because I also need the