随笔分类 -  ORACLE

摘要:ORA-01858:a non-numeric character was found where a numeric was expected 异常。 我的代码: 主要是绑定变量带出来的问题。 出错原因是:preparedstatement在执行的时候不能把带有to_date的参数的串替换为sql 阅读全文
posted @ 2017-07-10 00:11 越 影 阅读(1052) 评论(0) 推荐(0)
摘要:检查监听状态:C:\Documents and Settings\Administrator>lsnrctl statusLSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 15-11月-2012 11:30:32Copyright (c) 1991, 2010, Oracle. All rights reserved.正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=20121114-1728)(PORT=1521)))LISTENER 的 STATUS------- 阅读全文
posted @ 2012-11-15 11:55 越 影 阅读(23070) 评论(0) 推荐(0)
摘要:1、首先到官网上下载oracle 11g x64位软件包下载地址: http://download.oracle.com/otn/linux/oracle11g/R2/linux.x64_11gR2_database_1of2.zip http://download.oracle.com/otn/linux/oracle11g/R2/linux.x64_11gR2_database_2of2.zip2、安装包检测及安装[root@struggle ~]# rpm -q binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-.. 阅读全文
posted @ 2011-12-05 15:13 越 影 阅读(14212) 评论(2) 推荐(0)
摘要:由于把oracle 11g 全部装在机器上,导致机器太卡,于是卸载oracle 装上客户端,果然 效果明显。首先要去官网上下载oracle 11客户端,(我用的是64位系统)地址:http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html下载:instantclient-basic-win-x86-64-*** ;核心包 instantclient-sqlplus-windows.x64- **;sqlplus包将其全部解压到 D:\Program Files\instantcli.. 阅读全文
posted @ 2011-11-21 10:32 越 影 阅读(48341) 评论(0) 推荐(2)
摘要:在Oralce中有个数据切割函数: substr。substr('要切割的值',从第几个位置开始切割,切割几位);如下例: substr('hello word', 3, 2) would return 'll' substr('hello word', 5) would return 'o word' substr('hello word', -3, 3) would return 'ord' substr('hello word', -6, 3) would re 阅读全文
posted @ 2011-07-23 18:50 越 影 阅读(511) 评论(0) 推荐(0)