Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

C#±¸·ÝOracle´úÂë

ÏîÄ¿¿ª·¢ÖУ¬ÐèÒªÔ¶³Ì±¸·ÝÊý¾Ý¿â£¬ÒÔÏÂΪC#Ô¶³Ì±¸·ÝÊý¾Ý¿âµÄ´úÂë
 /// <summary>
/// Êý¾Ý¿â±¸·Ý
/// </summary>
/// <param name="fileName">dmpÎļþÃû³Æ</param>
/// <param name="logFileName">logÎļþÃû³Æ</param>
/// <returns>true:±¸·Ý³É¹¦;false:±¸·Ýʧ°Ü</returns>
public static bool DBBackup(string dmpFileName, string logFileName)
{
// ·µ»ØÖµ
bool result = false;
// ±¸·ÝÃüÁî,´ÓxmlÎļþÖлñÈ¡ "/c EXP Óû§Ãû/ÃÜÂë@Êý¾Ý¿â·þÎñÃû FULL=Y INCTYPE=COMPLETE "
string backupCmd = MsgXml.GetConfig(XMLKey.BackupCommand.ToString());
// cmdÖÐÊäÈëµÄ²ÎÊýÄÚÈÝ
string arg = backupCmd + " FILE= " + dmpFileName + " LOG= " + logFileName;
try
{
// Èç¹ûdmpÎļþ²»´æÔÚ£¬´´½¨Îļþ²¢ÊÍ·Å
if (!File.Exists(dmpFileName))
{
File.Create(dmpFileName).Dispose();
}
// Èç¹ûlogÎļþ²»´æÔÚ£¬´´½¨Îļþ²¢ÊÍ·Å
if (!File.Exists(logFileName))
{
File.Create(logFileName).Dispose();
}
// ¿ªÆôнø³Ì
Process process = new Process();
// ´ò¿ªÔËÐÐcmd
process.StartInfo.FileName = "cmd.exe";
// ÒªÔËÐеÄÃüÁî
process.StartInfo.Arguments = arg;
// ¹Ø±ÕshellµÄʹÓÃ
process.StartInfo.UseShellExecute = false;
// Öض¨Ïò±ê×¼ÊäÈë
process.StartInfo.RedirectStandardInput = true;
process.StartInfo.RedirectStandardError = true;
// ÉèÖò»ÏÔʾcmdÔËÐнçÃæ
process.StartInfo.CreateNoWindow = true;

// Æô¶¯½ø³Ì
process.Start();
// TODO ½ø³ÌÌõ ÕýÔÚ±¸·Ý£¬ÇëÉÔºò...
pr


Ïà¹ØÎĵµ£º

OracleÊý¾Ý¿â¼àÌýÅäÖÃ

½ü¶Îʱ¼äºÜ¶àÍøÓÑÌá³ö¼àÌýÅäÖÃÏà¹ØÎÊÌ⣬¿Í»§ÖÕ¶Ë(Client)ÎÞ·¨Á¬½Ó·þÎñÆ÷¶Ë(Server)¡£±¾ÎÄÏÖ¶Ô¼àÌýÅäÖÃ×÷Ò»¼òµ¥½éÉÜ£¬²¢Ìá³öһЩ¿Í»§ÖÕ¶ËÎÞ·¨Á¬½Ó·þÎñÆ÷¶ËµÄ½â¾ö˼·£¬Ô¸¶Ô¹ã´óÍøÓÑÓë¶ÁÕßÓÐһЩ°ïÖú¡£
 
Ò»¡¢¼àÌýÆ÷(LISTENER)
¡¡¡¡¼àÌýÆ÷ÊÇOracle»ùÓÚ·þÎñÆ÷¶ËµÄÒ»ÖÖÍøÂç·þÎñ£¬Ö÷ÒªÓÃÓÚ¼àÌý¿Í»§¶ËÏòÊý¾Ý¿â·þÎñÆ÷¶ËÌá ......

Oracle´æ´¢¹ý³Ì·ÖÒ³

תÔØ
from: http://cid-4e5d038451e31a25.spaces.live.com/blog/cns!4E5D038451E31A25!140.entry
create or replace procedure P_QuerySplit(
      sqlscript varchar2,     --±íÃû/SQLÓï¾ä
      pageSize integer,     ......

Ƥ·ôµÄÓ÷¨ (asp.net C#)

 ¿´ÁËÒ»ÏÂvisual web developer
ÖÐ×Ô´øµÄ¸öÈËÕ¾µã£¬·¢ÏÖ
aspnet2.0
ÀïÃæµÄºÜ¶à¼¼ÊõʹÓÃÆðÀ´È·ÊµºÜÓÅÑÅ£¬±È½ÏµäÐ͵ÄÓÐ
login
¿Ø¼þºÍÓû§ÏµÍ³¡¢
MasterPage
¡¢Ö÷ÌâºÍƤ·ô¡¢
SiteMap
µÈµÈ¡£ÕâЩÌØÐÔ£¬ÉõÖÁ²»ÐèÒª½Ì³Ì¾Í¿ÉÒԺܿìÉÏÊÖ¡£±¾ÎÄÒª½éÉܵÄÊÇÖ÷ÌâºÍƤ·ôµÄÓ¦Óá£

(Ò»)
ÈçºÎʹÓÃ


1£©
ÔÚÄ ......

oracle²åÈëʱÈçºÎ²åÈëuuId

 ÊÇÏëÉú³ÉGUIDÂð£¿
SQL> select   sys_guid() from dual ;
SYS_GUID()
--------------------------------
F18031C69D8345DEB305D4B2E796A282
Äã¿ÉÒ԰ѱíµÄÖ÷¼ü×ֶεÄȱʡֵÉèΪsys_guid()
insert into luxian_info (id) values(sys_guid()); ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ