Oracleʱ¼ä¾«È·µ½Ê±¡¢·Ö¡¢Ãë´¦Àí·½·¨
Ò»°ãÊý¾Ý¿âÖÐʱ¼äµÄ¸ñʽΪDATEÀàÐÍ£¬¶øÎÒÃÇ´ÓÒ³ÃæÖлñÈ¡µÄʱ¼äÍùÍùΪStringÀàÐÍ£¬Õâ¸ö¾ÍÐèÒªÀàÐ͵Äת»»¡£Ò»°ãÎÒÃÇ»áͨ¹ýµ÷Óà Java.text.SimpleDateFormat JAVAÀàÀ´¶ÔÆä½øÐÐת»»¡£Õâ¸öJAVAÀàÖÐÎÒÃǾ³£Óõ½µÄ·½·¨ÓÐÁ½¸ö£¬Ò»¸öÊÇformat(½«Ê±¼ä¸ñʽµÄÊý¾Ýת»»³ÉStringÀàÐÍ)£¬ÁíÒ»¸ö¾ÍÊÇ parse(½«StringÀàÐÍת»»³ÉDATEÀàÐÍ)¡£ÎÒÃÇÒ»°ã¿ÉÒÔ½«parse·â×°µ½×Ô¼ºµÄ·½·¨ÖУ¬Àý:
/**
* ·½·¨ÃèÊö£ºÒ³ÃæÖÐ×Ö·û´®×ª»¯ÎªÈÕÆÚÀàÐÍ
*
* ÊäÈë²ÎÊý£º´ÓÒ³ÃæÖеõ½µÄÒÔ×Ö·û´®ÐÎʽ±íʾµÄÈÕÆÚÊý¾Ý
* Êä³ö²ÎÊý£º×ª»»ºóµÄÈÕÆÚ
*/
Public class TimeExh{
public static Date transToDate(String strDatefromPage) {
Date date = null;
//´Ë´¦Îªyyyy-MM-dd ÔòΪ2005-1-13
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
//½¨Á¢Ò»¸öÒ»¶¨¸ñʽµÄ SimpleDateFormat
if(strDatefromPage==null) {
return new Date();
}
if (strDatefromPage.length()>10) {
sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
//´Ë´¦Ê±¼ä·½Ê½Îª2005-1-13 20:00:12
}
try {
date = sdf.parse(strDatefromPage);
} catch (Exception ex) {
ex.printStackTrace();
}
return date;
}
}
¡¡¡¡ÔÚOracleÊý¾Ý¿âÖÐÌṩÁËto_dateµÄ·½·¨À´¶ÔStringÀàÐ͵Äʱ¼äÀ´½øÐÐת»»¡£¶øÔÚOracleÊý¾Ý¿âÖв»Äܽ«Ê±¼äÖ±½Ó·Åµ½VOÖд«¸øÊý¾Ý¿â£¬ÕâÑùÊý¾Ý¿âÖеÄʱ¼äΪ¸ñÁÖÊÏʱ¼ä£¬²»·ûºÏÖйúÈ˵Äʱ¼äÏ°¹ß¡£ËùÒÔÔÚÕâÀïÓÐÁ½Öв»Í¬µÄ´¦Àí·½Ê½½øÐд¦Àí¡£
¡¡¡¡µÚÒ»ÖÖ£ºVOÖд洢ʱ¼äµÄÀàÐÍΪStringÀàÐÍ¡£
¡¡¡¡ÎÒÔÚÕâÀïдһ¸ö¼òµ¥µÄVOΪ£º
public class DateVO {
..........//Ê¡ÂÔµô¶¨Ò岿·Ö
public void setStart_Date(String Start_Date){
start_Date= start_Date
}
Ïà¹ØÎĵµ£º
oracleÄÚÖóÌÐò°ü
STANDARDºÍDBMS_STANDARD ¶¨ÒåºÍÀ©Õ¹PL/SQLÓïÑÔ»·¾³
DBMS_ALERT Ö§³ÖÊý¾Ý¿âʼþµÄÒ첽֪ͨ
DBMS_APPLICATION_INFO ÔÊÐíΪ¸ú×ÙÄ¿µÄ¶ø×¢²áÓ¦ÓóÌÐò
DBMS_AQ&DBMS_AQADM ¹ÜÀíoracle advanced queuingÑ¡¼þ
DBMS_DEFER¡¢DBMS_DEFER_SYSºÍDBMS_DEFER_QUERY ÔÊÐí¹¹½¨ºÍ¹ÜÀíÑÓ³ÙµÄÔ¶³Ì¹ý³Ìµ÷ÓÃ
DBMS_DDL ......
OracleÊý¾Ýµ¼Èëµ¼³öimp/exp¾ÍÏ൱ÓÚoracleÊý¾Ý»¹ÔÓ뱸·Ý¡£expÃüÁî¿ÉÒÔ°ÑÊý¾Ý´ÓÔ¶³ÌÊý¾Ý¿â·þÎñÆ÷µ¼³öµ½±¾µØµÄdmpÎļþ£¬impÃüÁî¿ÉÒÔ°ÑdmpÎļþ´Ó±¾µØµ¼Èëµ½Ô¶´¦µÄÊý¾Ý¿â·þÎñÆ÷ÖС£ ÀûÓÃÕâ¸ö¹¦ÄÜ¿ÉÒÔ¹¹½¨Á½¸öÏàͬµÄÊý¾Ý¿â£¬Ò»¸öÓÃÀ´²âÊÔ£¬Ò»¸öÓÃÀ´ÕýʽʹÓá£
Ö´Ðл·¾³£º¿ÉÒÔÔÚSQLPLUS.EXE»òÕßDOS£¨ÃüÁîÐУ©ÖÐÖ´Ð ......
ºÃûÓÐÅöSolarisÁË£¬ÊÖÓÐЩÉúÁË£¬¿´À´ÕæҪװ¸ösolaris£¬Æ½Ê±¶àÍæÍæ¡£
ÔÚsolarisÉÏ×°Oracle 10gÏÈ¡£
1. ¼ì²é°²×°ÒÀÀµ°ü
¹Ù·½ÒªÇóµÄ°ü
SUNWarc
SUNWbtool
SUNWhea
SUNWlibm
SUNWlibms
SUNWsprot
SUNWtoo
SUNWi1of
SUNWi1cs
SUNWi15cs
SUNWxwfnt
Ö´ÐÐÃüÁî
# pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibm SU ......
--²é³öËùÓб»ËøסµÄ±í
select b.owner TABLEOWNER, b.object_name TABLENAME, c.OSUSER LOCKBY, c.USERNAME LOGINID, c.sid SID, c.SERIAL# SERIAL
from v$locked_object a,dba_objects b, v$session c
where b.object_id = a.object_id AND a.SESSION_ID =c.sid;
--ͨ¹ýSID, SERIAL½âËø
--alter system kill sessio ......
OracleÆô¶¯¹ý³Ì½éÉܼ°ÃüÁ»¹Óйرա£
дÔÚÇ°Ã棺Æô¶¯Êý¾Ý¿âÇ°£¬ÇëÏÈÆô¶¯¼à³ÌÐò¡£
lsnrctl start
Æô¶¯µÄÈý¸ö²½Ö裬ÒÀ´ÎΪ1.´´½¨²¢Æô¶¯ÊµÀý¡¢2.×°ÔØÊý¾Ý¿â¡¢3.´ò¿ªÊý¾Ý¿â¡£
¿ÉÒÔͨ¹ýÃüÁîstartupÀ´ÊµÏÖ¡£
startup ÃüÁî¸ñʽ
startup [ nomount | mount | open | force ] [ restrict ] [ pfile=filename ];
·½·¨1 -- st ......