Oracle数据库服务启动与关闭
开启:
net start oracledbconsoleorcl
net start oracleOraDb10g_home1iSQL*Plus
net start oracleOraDb10g_home1TNSListener
net start oracleServiceORCL
net start oraclejobschedulerorcl //可以禁用
关闭:
net stop oracledbconsoleorcl
net stop oracleOraDb10g_home1iSQL*Plus
net stop oracleOraDb10g_home1TNSListener
net stop oracleServiceORCL
net stop oraclejobschedulerorcl//可以禁用
对应服务里面的名称 services.msc
相关文档:
Oracle时间日期操作
sysdate+(5/24/60/60) 在系统时间基础上延迟5秒
sysdate+5/24/60 在系统时间基础上延迟5分钟
sysdate+5/24 在系统时间基础上延迟5小时
sysdate+5 在系统时间基础上延迟5天
add_months(sysdate,-5) 在系统时间基础上延迟5月
add_months(sysdate,-5*12) 在系统时间基础上延迟5年
上月末的日期:sel ......
在执行一个存储过程建表时,出现了这个ORA-38301:无法对回收站中的对象执行DDL/DML错误。发现原来这是10G的一个新特性,回收站。对于drop的表并不是直接删除掉的。而是放在回收站中了。RecycleBin。
可是在回收站中没有查到这个表。
select * from recyclebin;
很奇怪。
进行删除操作。
进行删除后,还是不能对该 ......
当Oracle的多个存储过程都使用公共的常量时,我们可以建一个专门的package用来管理所有的常量。定义的示例大致如下:
create or replace package GLOBAL_CONSTANT is
/*数值类常量*/
/*比率*/
rate_tax CONSTANT NUMBER := 1.17; -- 税率   ......
在oracle中批量数据的导出是借助sqlplus的spool来实现的。批量数据的导入是通过sqlload来实现的。
大量数据的导出部分如下:
/***************************
* sql脚本部分 demo.sql begin
**************************/
/**************************
* @author meconsea
* @date 20050 ......
using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Syste ......