##############启动##############1、nomount 模式【 加载实例和spfile(参数文件)】什么是实例?实例是你去安装oracle,或者跑oracle的一个平台,运行库的话,首先对硬件资源有一定占用,比如说最关键就是内存,加载实例对内存有一定占用,假如我占用了1G的内...
分类:
数据库 时间:
2016-03-21 21:30:51
阅读次数:
232
约束的概念:约束是在表中定义的用于维护数据库完整性的一些规则。通过为表中的字段定义约束,可以防止将错误的数据插入到表中。注意:1.如果某个约束只作用于单独的字段,既可以在字段级定义约束,也可以在表级定义约束;但如果某个约束将作用于多个字段,必须在表级定义约束。2.oracle中的约束通过名称来进行识...
分类:
数据库 时间:
2016-03-21 21:31:12
阅读次数:
364
vi /etc/yum.repos.d/base.repo [Base]name=basebaseurl=file:///mnt/Serverenabled=1gpgcheck=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release yu...
分类:
数据库 时间:
2016-03-21 21:27:04
阅读次数:
168
升级步骤:(1) 备份数据库(2) 运行patchset,升级oracle 软件(3) 准备新的ORACLE_HOME(4) 运行dbua 或者脚本升级实例(5) 检查升级后的版本信息和无效对象 备份数据库升级数据库是一个十分危险的事情,在生产库上,升级之前最好做一个全库的备份,以便在升级失败时可以...
分类:
数据库 时间:
2016-03-21 21:26:39
阅读次数:
350
1、decode[实现if ..then 逻辑] 注:第一个是表达式,最后一个是不满足任何一个条件的值 select ename,decode(deptno,10,'部门10',20,'部门20',30,'部门30','其他部门') "所在部门" from emp; select ename,dec...
分类:
数据库 时间:
2016-03-21 21:26:25
阅读次数:
262
Table: Person Table: Address Write a SQL query for a report that provides the following information for each person in the Person table, regardless if
分类:
数据库 时间:
2016-03-21 20:14:24
阅读次数:
328
The Employee table holds all employees. Every employee has an Id, a salary, and there is also a column for the department Id. The Department table hol
分类:
数据库 时间:
2016-03-21 20:13:40
阅读次数:
258
区别: char:存储的数据时固定长度的; varchar:存储的数据可变长度 举例: 在数据表中定义两个数据项char(200)和varchar(200),同时存入字符串串"Hello Word", char类型便会用这200多的数据长度存储这十几个字符,简直很汗!; varchar类型会按需索取
分类:
数据库 时间:
2016-03-21 19:58:37
阅读次数:
183
Write a SQL query to get the nth highest salary from the Employee table. For example, given the above Employee table, the nth highest salary where n =
分类:
数据库 时间:
2016-03-21 19:58:44
阅读次数:
180
The Employee table holds all employees including their managers. Every employee has an Id, and there is also a column for the manager Id. Given the Em
分类:
数据库 时间:
2016-03-21 19:59:04
阅读次数:
221
Given a Weather table, write a SQL query to find all dates' Ids with higher temperature compared to its previous (yesterday's) dates. For example, ret
分类:
数据库 时间:
2016-03-21 19:51:49
阅读次数:
197
Suppose that a website contains two tables, the Customers table and the Orders table. Write a SQL query to find all customers who never order anything
分类:
数据库 时间:
2016-03-21 19:45:39
阅读次数:
197
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xxx...}: java.lang.IllegalStateException: Couldn't read row 0, col -1 from Curs
分类:
数据库 时间:
2016-03-21 19:41:35
阅读次数:
317
一:通过System.Data.OracleClient(需要安装Oracle客户端并配置tnsnames.ora)1. 添加命名空间System.Data.OracleClient引用2. using System.Data.OracleClient;3. string connString =
分类:
数据库 时间:
2016-03-21 18:27:04
阅读次数:
186
序号 交接内容 交接目标与要点 交接物 交接状态 交接开始时间 交接结束时间 负责人 备注 1 人事关系 与开发项目组成员互识,并了解其职责 开发项目组成员清单 2016/2/29 2016/2/29 2 资产及权限 了解所有服务器的资产信息 获取所有服务器的管理权限 生产服务器清单 灾备服务器清单
分类:
数据库 时间:
2016-03-21 18:25:09
阅读次数:
523
1. 概述 1.1. 优点: l 将表分区比一个表在单个磁盘或者文件系统存储能够存储更多数据 l 可以通过drop分区删除无用数据,也可以通过增加分区添加数据 l 查询可以通过分区裁剪进行优化,设置可以显示指定查找分区 l 对于聚合函数的全表查询,可以并行对分区查询,汇总得到结果 l 可以对分区指定
分类:
数据库 时间:
2016-03-21 18:22:53
阅读次数:
276
使用SQL中的SELECT语句可以查询出数据库的全部结果,在JDBC的操作中数据库的所有查询记录将使用ResultSet进行接收,并使用ResultSet显示内容。
分类:
数据库 时间:
2016-03-21 18:22:37
阅读次数:
234