摘要:LSNRCTL命令启动、关闭和查看监听器的状态的方法从lsnrctl status命令的输出中得到监听器状态,包括如下的信息:监听器的启动时间监听器的运行时间监听器参数文件listener.ora的位置,通常位于$ORACLE_HOME/network/admin目录下监听器日志文件的位置1. 查看...
阅读全文
随笔分类 - Database
摘要:一些ORACLE中的进程被杀掉后,状态被置为"killed",但是锁定的资源很长时间不释放,有时实在没办法,只好重启数据库。现在提供一种方法解决这种问题,那就是在ORACLE中杀不掉的,在OS一级再杀。1.下面的语句用来查询哪些对象被锁:select object_name,machine,s.si...
阅读全文
摘要:1. 安装PLSQL软件;2. 安装Oracle Client; http://www.oracle.com/technetwork/topics/winsoft-085727.html3. 解压Oracle Client的安装包至特定路径;4. Oracle Client程序文件所在文件夹内创建 ...
阅读全文
摘要:Mysql update error:Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable ...
阅读全文
摘要:case如下:1. 后台程序要升级, 修改了一些功能,但是没有修改或者添加action的参数。2. 数据库需要升级,执行了一些sql,修改过action的值。3. 当修改某个已经存在的记录,然后保存的时候发现,暴出这个错误:No result defined for action xxx and result input。==================原因:升级数据库的时候 修改某个表的记录的 时间戳使用了这个 “currenttimestamp”。在windos平台下测试的时候,没有发现问题,在unix平台下 出问题了。现象:在windows下,那一列出来的值都是 类似 “2013-0
阅读全文
摘要:DB2 异常: A communication error has been detected. Communication protocol being used: Reply.fill().
阅读全文
摘要:Queries in MongoDB: db.collection.find() db.collection.findOne() db.collection.find( <query>, <projection> ) db.collection.findOne( <query>, <projection> ) Operators: $or, $lt, $gt, $in, dot notation, $elemMatch Query Document: db.collection.find( {} ) db.collection.find() db
阅读全文
摘要:Install MongoDB in win7: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/(1)Download MongoDB zip , and unzip it.(2)Config the mongoDB, config log and data dir. a. create a file "mongod.cfg" in the folder. b. add two items, more options please refer to the MongoDB manual:
阅读全文
摘要:场景: 使用.sql 文件 导入一个数据库备份时, 报错如下:10:35:12 Restoring D:\Mine\ichangtou\DataBase.sqlRunning: mysql.exe --defaults-extra-file="c:\users\admini~1\appdata\local\temp\tmpn9oimb.cnf" --host=localhost --user=root --port=3306 --default-character-set=utf8 --comments < "D:\\Mine\\xxx\\DataBase.
阅读全文
摘要:sql 行列转换、 内连接、左连接、右连接
阅读全文
摘要:在Postgresql数据库中,作为主键的id,经常使用serial字段。例如:CREATE TABLE tbl_test(id serial NOT NULL,CONSTRAINT pk_t14 PRIMARY KEY (id))那么 默认数据库会为tbl_test表中的字段 id 生成一个序列:CREATE SEQUENCE tbl_test_id_seq INCREMENT 1 MINVALUE 1 MAXVALUE 9223372036854775807 START 1 CACHE 1;如何获取sequence的洗一个或者当前值:select nextval('tbl_tes.
阅读全文
摘要:第一种安装方法: 用命令行 在线安装: 参见wiki: http://wiki.ubuntu.org.cn/PostgreSQL另外可以参见:http://blog.sina.com.cn/s/blog_6af33caa0100ypck.htmlhttp://www.cnblogs.com/Yu/archive/2012/04/30/2476656.html=======================================================================1. 首先下载安装包: 我用的是这个版本 postgres_9.1.2-1.i386.opensc
阅读全文

浙公网安备 33010602011771号