使用Xshell 连接远程Linux 数据库服务器,当切换到sqlplus 控制台时,输入错误字符的时候,使用回退键修改时,显示^H. 解决方法:$ stty erase ^H : 与退格键相关的设置是erase,它表示删除最后一个字符。 stty(set tty,设置tty)命令用于检查和修改当前 ...
分类:
数据库 时间:
2016-08-06 09:59:43
阅读次数:
354
spring文档地址 : http://docs.spring.io/spring/docs/4.2.0.RC1/spring-framework-reference/htmlsingle/#transaction-declarative-annotations 说明: 代理模式中,只拦截外部方法调 ...
分类:
数据库 时间:
2016-08-06 09:52:00
阅读次数:
4949
一、ORM 连表 一对多 1、创建表,主动指定外键约束。 2、操作。 类:repr 一对多: 单表 连表 ... ...
分类:
数据库 时间:
2016-08-06 09:50:46
阅读次数:
283
一数据库服务器执行shutdown immediate时,遇到了下面ORA错误,如下所示: $ sqlplus / as sysdba SQL*Plus: Release 10.2.0.4.0 - Production on Fri Aug 5 10:56:24 2016 Copyright (c)... ...
分类:
数据库 时间:
2016-08-06 09:50:23
阅读次数:
242
SQLAlchemy“采用简单的Python语言,为高效和高性能的数据库访问设计,实现了完整的企业级持久模型”。SQLAlchemy的理念是,SQL数据库的量级和性能重要于对象集合;而对象集合的抽象又重要于表和行。因此,SQLAlchmey采用了类似于Java里Hibernate的数据映射模型,而不 ...
分类:
数据库 时间:
2016-08-06 09:47:20
阅读次数:
193
没有currentSession配置错误,即在我们使用currentSession的时候要在hibernate.cfg.xml中进行相关的事务配置:1、本地事务<property name="hibernate.current_session_context_class">thread</prope ...
分类:
数据库 时间:
2016-08-06 09:47:44
阅读次数:
171
数据源1 数据源2 注:xx1Mapper.java 和 xx1Mapper.xml 、 xx2Mapper.java 和 xx2Mapper.xml 上下文中不能出现同名的 结果:操作db1 调用 mapper1 ,操作db2 调用 mapper2 ...
分类:
数据库 时间:
2016-08-06 08:36:55
阅读次数:
239
1. win+r 2. control 3. 打开数据源 4. 点击添加 5. 选择Oracle in OraClient11g_home1 ,点击完成 6. 填写,查看具体参数信息点击Help 7. 点击Test Connection ...
分类:
数据库 时间:
2016-08-06 08:31:23
阅读次数:
149
需要 commons-dbcp2 com.oracle.ojdbc6 配置地址 http://commons.apache.org/proper/commons-dbcp/configuration.html 示例地址http://svn.apache.org/viewvc/commons/prop ...
分类:
数据库 时间:
2016-08-06 08:26:28
阅读次数:
284
JDBC is a Java database connectivity technology (Java Standard Edition platform) from Oracle Corporation. This technology is an API for the Java progr ...
分类:
数据库 时间:
2016-08-06 08:21:56
阅读次数:
673
Many Apache projects support interaction with a relational database. Creating a new connection for each user can be time consuming (often requiring mu ...
分类:
数据库 时间:
2016-08-06 08:19:20
阅读次数:
216
1. oracle 2. mysql 3. ...
分类:
数据库 时间:
2016-08-06 08:14:58
阅读次数:
173
In computing, ODBC (Open Database Connectivity) is a standard programming language middleware API for accessing database management systems (DBMS). Th ...
分类:
数据库 时间:
2016-08-06 08:14:16
阅读次数:
201