随笔分类 -  [36] Oracle

摘要: 阅读全文
posted @ 2023-06-01 17:52 emanlee 阅读(165) 评论(0) 推荐(0) 编辑
摘要:Oracle 查询数据库表(查看当前用户下的表)的数量 SELECT count(*)FROM sys.user_tables; 统计表中记录数量 第一步:新增count_rows 函数 CREATE OR REPLACE FUNCTION count_rows ( table_name IN va 阅读全文
posted @ 2023-05-22 08:59 emanlee 阅读(2632) 评论(0) 推荐(0) 编辑
摘要:lnitialization errorOracle Client没有正确安装OracleHomeKey:OracleHomeDir: 阅读全文
posted @ 2022-06-24 18:33 emanlee 阅读(2198) 评论(0) 推荐(0) 编辑
摘要:解决PL SQL developer 中文汉字乱码问题, 中文都显示为问号 ??? 如下图所示。 一:检查以下编码 select userenv('language') from dual 二:检查以下编码 select * from V$NLS_PARAMETERS 三:检查Windows的系统 阅读全文
posted @ 2022-04-12 23:20 emanlee 阅读(4908) 评论(0) 推荐(1) 编辑
摘要:Oracle 把某一个字段合并到一起 column1 column2 column3 id_1 name_1 lable_1 id_1 name_1 lable_2 变为 column1 column2 column3 id_1 name_1 lable_1,lable_2 -- SQL -- se 阅读全文
posted @ 2022-01-11 19:05 emanlee 阅读(1129) 评论(0) 推荐(0) 编辑
摘要:Oracle 11g 48核 32核 windows 2008 r2 64 oracle 11g版本,11.2.0.4可以支持超过36个CPU。 减少CPU数量: 阅读全文
posted @ 2021-12-17 20:41 emanlee 阅读(510) 评论(0) 推荐(0) 编辑
摘要:REF http://blog.itpub.net/23556054/viewspace-1115506/ 查看 oracle 数据库是否启动: 一、LINUX: 1、用 ps -ef|grep ora 查看,是否有oracle的进程,linux下还可以用ipcs查看 2、查看监听的方法 cd /o 阅读全文
posted @ 2021-12-17 11:13 emanlee 阅读(878) 评论(0) 推荐(0) 编辑
摘要:用exp,imp 导出再导入即可。 1 exp导出旧数据库 2 创新新数据库的用户、表空间 3 imp导入到新数据库 阅读全文
posted @ 2021-10-22 08:15 emanlee 阅读(172) 评论(0) 推荐(0) 编辑
摘要:Oracle 查找重复记录的方法: select * from table1 group by c1,c2,c3 having count(*) >1; 阅读全文
posted @ 2021-07-09 18:18 emanlee 阅读(282) 评论(0) 推荐(0) 编辑
摘要:1 将视图中的数据变成表数据,将表导出。 create table test_table as( select * from view_table); 2 用sql development 导出,或者 exp 导出 现在ORACLE 12C通过expdp的views_as_tables来实现了该功能 阅读全文
posted @ 2021-03-15 16:52 emanlee 阅读(2044) 评论(0) 推荐(0) 编辑
摘要:select to_date('2009-12-25 14:23:31','yyyy-mm-dd,hh24:mi:ss') from dual 2009-12-25 14:23:31 ORA-01861: literal does not match format string 1). ORA-01 阅读全文
posted @ 2021-03-15 12:46 emanlee 阅读(2713) 评论(0) 推荐(0) 编辑
摘要:Navacat连接Oracle数据库的时候,会提示ORA-12737:Instant Client Light:unsupported server character set ZHS16GBK 1 Oracle 版本, Windows 版本, Navicat 版本: 这三个必须是一样的 32位,或 阅读全文
posted @ 2021-03-10 18:05 emanlee 阅读(388) 评论(0) 推荐(0) 编辑
摘要:UPDATE tablename SET id = ROWNUM; 阅读全文
posted @ 2021-03-05 21:34 emanlee 阅读(444) 评论(0) 推荐(0) 编辑
摘要:oracle有点麻烦,需要使用序列和触发器达到目的。具体步骤如下:一、创建数据表create table AAA_employee(Id int ,DeptNo number,EmpNo number,Ename varchar2(16),Job varchar2(32),Sal float,Hir 阅读全文
posted @ 2021-03-05 20:19 emanlee 阅读(1170) 评论(0) 推荐(0) 编辑
摘要:EXP-00056: 遇到 ORACLE 错误 12560ORA-12560: TNS: 协议适配器错误EXP-00000: 导出终止失败 exp 用户名/密码@服务器:端口/服务名 file=文件名 示例: exp a/a@162.16.200.182:1521/orcl.site file=d: 阅读全文
posted @ 2020-11-05 08:25 emanlee 阅读(3219) 评论(0) 推荐(0) 编辑
摘要:示例: select 'select a.xh,a.dj,a.xzb from xsjbxxb a where a.xzb=' || chr(39) || a.xzb || chr(39) || ' order by dj desc for update;'from xsjbxxb a 结果: se 阅读全文
posted @ 2019-10-22 13:16 emanlee 阅读(6382) 评论(0) 推荐(0) 编辑
摘要:The table is as follows: I want to create the following: Solution 1 This may be an improved way (also with regexp and connect by): 阅读全文
posted @ 2019-09-03 17:39 emanlee 阅读(1823) 评论(0) 推荐(0) 编辑
摘要:首先,我们要解除oracle安装的windows版本检测1、编辑安装包内文件 database\stage\prereq\db\refhost.xml 在 <OPERATING_SYSTEM> <VERSION VALUE="5.2"/> </OPERATING_SYSTEM>后面增加下面节点 <O 阅读全文
posted @ 2019-04-23 15:34 emanlee 阅读(592) 评论(0) 推荐(0) 编辑
摘要:select aaa.*,bbb.xh from (select xn,xq,kcdm,kcmc,xf,xkkh,kcxz from jxrwbview where xn='2017-2018' group by xn,xq,kcdm,kcmc,xf,xkkh,kcxz ) aaa inner jo 阅读全文
posted @ 2018-10-10 10:03 emanlee 阅读(2192) 评论(0) 推荐(0) 编辑
摘要:SQL> exec pro_gz_day_report; ORA-01031: insufficient privileges ORA-06512: at "....", line 6 ORA-06512: at line 2 限不足无法创建表,可以通过如下方案解决: grant create an 阅读全文
posted @ 2016-03-10 21:17 emanlee 阅读(773) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示