数据库相关
MoonlightCloud
这个作者很懒,什么都没留下…
展开
-
oracle分页查询SQL
分页查询,第二页,每页10条数据select * from ( select row_limit.*, rownum rownum_ from ( select count_num.*, count(1)over() totalnum_ from ( select * from mdkzwmx where lgrpcd ='9999' and b...原创 2019-05-30 09:45:35 · 2278 阅读 · 0 评论 -
ORACLE 新建数据库及用户
--创建表空间和数据库文件及默认表空间大小 create tablespace StockSpace datafile '/data/oracle/oradata/orcl/stock.dbf' size 200m;--设置数据库自动增长alter database datafile '/data/oracle/oradata/orcl/stock.dbf' autoextend on;...原创 2019-05-30 09:11:10 · 138 阅读 · 0 评论 -
ORACLE启动关闭脚本,修改dbstart脚本
1.拷贝$ORACLE_HOME/bin/dbstart 到home目录下2.修改编写启动脚本,如下#!/bin/bash # # chkconfig: 2345 89 20 # description: starts the oracle listener and instance status() { pid=`ps -ef | grep ora_pmon | g...原创 2019-06-11 23:10:17 · 358 阅读 · 0 评论