【零点起飞学Oracle】教程文章相关的互联网学习教程文章

Oracle 11.2.0.4 For Windows 64bit+32bit 数据库

转自 https://www.cnblogs.com/ShaYeBlog/p/7729714.html1.Oracle11G 32BIT介质官方链接适用于Windows 32bit的Oracle Database 11G 第2版U4(11.2.0.4)Oracle11.2.0.4 Windows32BIT介质盘https://updates.oracle.com/Orion/Services/download/p13390677_112040_WINNT_1of6.zip?aru=16919969&patch_file=p13390677_112040_WINNT_1of6.ziphttps://updates.oracle.com/Orion/Services/download/p13390677_112040_WINNT_2of6.zip?aru...

Oracle Coherence中文教程二:安装Oracle Coherence

安装Oracle Coherence本章提供说明安装Oracle Coherence的java(简称为Coherence)。本章不包括安装连贯性的说明*扩展的客户端分发(C ++和。NET)或相干*网站。请参阅Oracle Coherence的客户指南和Oracle Coherence的Oracle Coherence的网络,用户指南,安装这些组件的说明。 本章包含以下各节: 系统要求 提取分派 设置环境变量 初次运行连贯性2.1系统需求 以下是建议的最低系统要求安装在开发环境中的连贯性: 65...

【Oracle】表、视图、序列、索引【代码】

表(数据类型、约束)、修改表结构表的创建:create table 表名(字段名 数据类型 [约束]); 表的删除:drop table 表名;oracle表包括: 表名、字段、数据类型、[约束] 其中: (1)数据类型①数字number 默认长度为38,小数长度为0number(n) 最大长度为nnumber(n,m) 最大长度为n,其中小数部分长度为minteger 相当于number(38)②字符串 char(n) 字符串长度固定为n,不足的用空白字符补充varchar2...

关于在Oracle 数据库存储m³(立方米)【图】

--------------注意:如下操作是在RHEL的VNC中执行的,并不是在secureCRT中执行的。------------ --------------原因:若是在secureCRT执行,m3会显示成:m鲁,见如下的截图,是啥原因我还没研究-- 如下是实验的过程:[oracle@lei1 ~]$ export NLS_LANG=AMERICAN_AMERICA.AL32UTF8 [oracle@lei1 ~]$ sqlplus scott/aaaaaaSQL*Plus: Release 11.2.0.3.0 Production on Sat Jun 20 10:02:14 2015Copyright (c) 1982, 2011, Oracle. Al...

DBA_Oracle Erp并发程序运行状态查询和监控(案例)

2014-08-09 Created By BaoXinjian Looking on how to check long running concurrent request in Oracle Apps 11i or R12? Here’s the overview of the SQL query script to detect the session information of each program.First you need to get the listing of running concurrent request in Oracle Apps 11i or R12. You can use the SQL query script as below to obtain the list of running request.[sql] view plainco...

Oracle中的ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired【图】

向某个数据库用户中插入、更新、删除一个表的数据,或是增加一个表的主键、索引时,出现下面的错误: ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired 这是因为有事务正在进行或是事务已经被锁,因此导致不成功 1)用dba权限的用户查询数据库中有哪些锁select t2.username,t2.sid,t2.serial#,t2.logon_time from v$locked_object t1,v$session t2 where t1.session_id=t2.sid order by t2.logon_...

oracle--表,用户,授权

1、 为避免错误,最好,在新创建的表空间,用户名和密码,都是和原来的用户名和密码都一样的,这样节省很多麻烦事。第五部:一些常用命令1、表操作查看当前用户有哪了些表:select * from tab;select table_name from user_tables; //当前用户的表select table_name from all_tables; //所有用户的表select table_name from dba_tables; //包括系统表查看某表的表结构:desc table_name;2、用户操作查看所有用户: select * from a...

ORACLE设置密码无过期

适用于ORACLE11G//获取用户所属的profileSELECT username,PROFILE FROM dba_users;//查看profile的密码有效期 默认是180天SELECT * FROM dba_profiles s WHERE s.profile=‘DEFAULT‘ AND resource_name=‘PASSWORD_LIFE_TIME‘;//修改密码有效期ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED; //如果数据库已经提示密码即将过期,则你进行以上设置后,还需要再修改一次密码使用sysdba登录 修改密码即可。 备忘:如果...

Oracle绑定变量【图】

什么时绑定变量?Oracle中每一个提交的SQL语句都会经历解析,解析分为两种一种是软解析,这种解析在执行sql的时候直接到share pool中取出执行计划即 可,不是特别占用资源。而另一种硬解析,整个过程需要解析,制定执行路径,优化访问步骤等需要耗费大量的cpu资源同时也会占用门闩(latch)资源(因为进行一次硬解析需要进程在共享池中分配一块内存将执行计划放入)。提升硬件能力并不能解决门闩占用问题。因为门闩 是为了顺序访...

plsql连接本机多个版本oracle数据库【图】

plsql默认只会读取当前数据库主目录下的tns,配置了主目录就是配置的这个主目录下的tns,没配置自动获取的就是最后安装的数据库的主目录,如何读取到其他数据库主目录下的tns呢,其实只需要在当前读取的主目录tns中配置其他实例连接串即可 本机配置tns,IP默认就localhost或者127.0.0.1都行 原文:https://www.cnblogs.com/ZwyBky/p/14490188.html

ORACLE数据库--order by----ORA-01785 ORDER BY必须是select-list 表达式的数目【代码】

sql语句真是博大精深啊!下面是报错的sql语句:select lb.contno,decode(cont.conttype, ‘1‘, cont.appntno, ‘2‘, cont.insuredno),decode(cont.conttype, ‘1‘, cont.appntname, ‘2‘, cont.insuredname),to_date(lb.create_time),to_char(lb.sum_total, ‘9999999990.99‘),to_char(lb.sum_price, ‘9999999990.99‘),to_char(lb.sum_tax, ‘9999999990.99‘),lb.sid,lb.managecomfrom LIS_BUSI_TRANSACTIONS lb, lccont c...

Oracle数据库自增失败【图】

使用oracle数据库时,mybatis-plus设置自增,添加数据的时候失败@TableId(value = "ID", type = IdType.AUTO) private Integer id;; ORA-01400: 无法将 NULL 插入 ("JIANG"."T_PRODUCT"."ID"); nested exception is java.sql.SQLException: ORA-01400: 无法将 NULL 插入 ("JIANG"."T_PRODUCT"."ID")需要在数据库设置触发器先创建序列create sequence SEQ_T_DEVICEincrement by 1start with 1minvalue 1maxvalue 9999999ordercache ...

Oracle insert update 时间处理【代码】

24小时表示方法:to_date(’2004-06-3023:59:59’,’yyyy-mm-dd hh24:mi:ss’)12小时表示方法:to_date(’2004-06-3023:59:59’,’yyyy-mm-dd hh:mi:ss’)insertinto settle_white values(‘15‘,‘S7551581‘,to_date(‘2016-04-12 20:20:59‘,‘yyyy-mm-dd hh24:mi:ss‘),to_date(‘2016-04-12 20:20:59‘,‘yyyy-mm-dd hh24:mi:ss‘),‘0‘,‘1‘,sysdate,sysdate,‘aaa‘);update settle_white t SET t.start_tm = to_date(‘2...

在oracle中使用merge into实现更新和插入数据【代码】

目录oracle中使用merge intoDUAL表解释使用场景用法单表多表oracle中使用merge intoDUAL表解释在Oracle数据库中,dual是Oracle中的一个伪表,在Oracle数据库中的select语句的语法为:SELECT column_1, column_2, ... FROM table_name;即在使用select语句时,如果没有表名,就没办法执行查询,而当我们想查看当前时间sysdate或者想计算出一个表达式例如2+3的值的时候,如果没有表是无法执行操作的,故Oracle数据库出现了伪表dual...

oracle 按时间段统计15分钟内的数据【代码】

string sql = "select to_char(StartTime, ‘yyyy‘)||‘-‘|| to_char(StartTime, ‘mm‘)||‘-‘|| to_char(StartTime, ‘dd‘)||‘ ‘|| to_char(StartTime, ‘hh24‘)||‘:‘|| floor(to_char(StartTime, ‘mi‘)/15)*15 statime, sum(Count) as Counts from table where StartTime <= to_date(‘2016-11-29 18:00:00‘ ,‘YYYY-MM-DD hh24:mi:ss‘) group by to_char(StartTime, ‘yyyy‘)||‘-‘|| to_char(StartTime, ‘mm‘...