ʹÓÃCodeSmithÉú³ÉoracleÊý¾Ý¿â±íµÄʵÌå²ã(Model)
ʹÓÃCodeSmithÉú³ÉoracleÊý¾Ý¿â±íµÄʵÌå²ã(Model)
http://blog.csdn.net/dacong/archive/2009/01/27/3853663.aspx
×Ô¼ºÐ´µÄ£¬CodeSimthÖеÄÀý×Ó¶¼ÊÇmsSQL serverµÄ£¬ËùÒÔ×Ô¼ºÐ´Á˸öÖ§³ÖOracleÊý¾Ý¿â±íµÄ£¬²»Ò»¶¨ºÜÍêÉÆ£¬ÊÊÓþͺã¬Êý¾ÝÀàÐÍûÓÐÖÜÈ«¿¼ÂÇ£¬Ö»¿¼ÂÇÁ˳£ÓõÄһЩÀàÐÍ£¬Ôö¼ÓÁ˸ö±íÃû×ÖÊôÐÔ£¬²ÉÓõÄ.net2.0Îҽṹ£¬Ã»ÓÐʹÓÃ3.0ÖеÄ×Ô¶¯ÊôÐÔ¡£
CodeSmith Professional 5.0.1.4983
ÒªÇó×Ô¼º½¨Á¢Ò»¸öOracleSchemaPrivider,Á¬½Óµ½ÄãµÄoracleÊý¾Ý¿â£¬Ñ¡ÔñÒ»¸ö±í¡¾Éú³É¡¿
view plaincopy to clipboardprint?
<%@ CodeTemplate Language="C#" TargetLanguage="C#" Description="Generates a very simple business object." ResponseEncoding="UTF-8" %>
<%@ Property Name="DevelopersName" Type="String" Category="Context" Default="dacong" Description="×÷Õß" %>
<%@ Property Name="Suffix" Type="String" Category="Context" Default="Info" Description="ÀàÃûºóê¡" %>
<%@ Property Name="NameSpace" Type="String" Category="Context" Default="dacong" Description="The namespace to use for this class,²»°üÀ¨Model" %>
<%@ Property Name="SourceTable" Type="SchemaExplorer.TableSchema" Category="Context" Description="Table that the object is based on." %>
<%@ Assembly Name="SchemaExplorer" %>
<%@ Assembly Name="System.Data" %>
<%@ Import Namespace="SchemaExplorer" %>
<%@ Import Namespace="System.Data" %>
/******************************************************************************
----------------------------------------------------------------
Ä£¿éÃû³Æ: <%= GetClassName(SourceTable) %>[Ä£ÐÍ]
±àÕß : <%=DevelopersName %> ´´½¨ÈÕÆÚ: <%=DateTime.Now.Date.ToString("yyyyÄêMMÔÂddÈÕ")%>
¹¦ÄÜÃèÊö:
----------------------------------------------------------------
ÐÞ¸ÄÈÕÆÚ:&n
Ïà¹ØÎĵµ£º
ËäȻѧϰJavaºÜ¾ÃÁË£¬×Ô¼ºÒ²Á¬½Ó¹ýһЩÊý¾Ý¿â£¬±ÈÈçmysqlÖ®ÀàµÄ£¬Èç½ñÄØ£¬Ò²Ñ§Ï°ÁËÒ»¶Îʱ¼äµÄOracle£¬È»¶øÄØ£¬½ñÌìÊÇÎÒµÚÒ»´ÎÁ¬½ÓOracle£¬ºÙºÙ£¬Ó¦¸Ã»¹²»ËãÌ«³Ù°É¡£
½ñÌìÄØ£¬Óе㱿׾£¬´ó¼ÒĪЦ£¡
ÎÒÕâÊÇÒ»¸ö²éѯÀý×Ó
Ê×ÏÈ£¬Ô ......
sys/change_on_install
system/manager
sysman/oem_temp
scott/tiger
aqadm /aqadm
Dbsnmp/dbsnmp
Óû§Ãû ¿ÚÁî µÇ¼Éí·Ý¼°ËµÃ÷
sys/change_on_install SYSDBA»òSYSOPER£¬µ«²»ÄÜÒÔNORMALµÇ¼£¬¿É×÷ΪĬÈϵÄϵͳ¹ÜÀíÔ±¡£
system/Manager SYSDBA»òNORMAL£¬µ«²»ÄÜÒÔSYSOPERµÇ¼£¬¿É×÷ΪĬÈϵÄϵͳ¹ÜÀíÔ±¡£
scott/Tig ......
QTPÁ¬½Óoracle²¢²Ù×÷Êý¾Ý¿âµÄ·½·¨ÕâÀïÒÔoracle 9iΪÀý×Ó£¬ÆäËûµÄÊý¾Ý¿âÁ¬½Ó·½·¨ÊÇÏàͨµÄ¡£
a.Ê×ÏÈÒªÔÚ±¾»ú½¨ÒéODBCÊý¾ÝÔ´£¬Õâ¸öÊôÓÚ»ù±¾²Ù×÷£¬ÕâÀï²»½²£¬Ìø¹ý£»
b.»ñÈ¡oracleµÄÁ¬½Ó´®µÄ·½·¨£¬ÔÚ±¾µØÐ½¨Ò»¸ö.txtÎļþ£¬ÐÞ¸ÄÀ©Õ¹ÃûÃû*.udl£¬Ë«»÷*.udlÎļþ£¬´ò¿ªÊý¾Ý¿âÁ´½ÓÊôÐÔ£¬¶¨Î»µ½“Ìṩ³ÌÐò”Ñ¡ÏÔ¿¨£¬ ......
oracleÐÐתÁÐͨÓùý³Ì(ת)
»·¾³oracle 10g
¹¤×÷¹ØÏµ,³£×öЩÐÐתÁб¨±í,±¨±íͨ³£²»ÊÇÔÚ´óÊý¾Ý¼¯ºÏÉÏ´¦Àí.
ËùÒÔдÁ˸ö¹ý³Ì.
±¾¹ý³Ì±È½ÏÊʺÏÔÚÓÚÐèÒª¶¯Ì¬Êä³ö±¨±íµÄµØ·½,ÀýÈçwebÖÐ.
²»ÊǺÜÍêÃÀ,µ«ÒѾ¿ÉÒÔ½â¾ö¾ø´ó²¿·ÖµÄÎÊÌâ.
create or replace function func_RowToCol(
viewName Varchar2,
grpCols Varchar2,
colC ......
ÈçºÎ²éѯoracleÖеĹؼü×Ö£¬Ö´ÐУº
select * from v$reserved_words
ÆäʵÄÚǶµÄfunction£¬¾ÍÊÇÒ»¸öϵͳµÄpackageÄÚµÄfunction»òÕßprocedure¡£Èç¹ûÖªµÀÕâ¸ö¸ù±¾µÄÔÒò£¬ÒªÕÒµ½Õâ¸öÄÚǶµÄ×Ô´øfunction¾ÍºÜ¼òµ¥ÁË¡£
ÕâÀïÄÚǶµÄ×Ô´øµÄfucntionºÍprocedureµÄ¶ÔÏ󣬯äʵ¾ÍÊÇSTANDARDÕâ¸ö°üÀïµÄ¶ÔÏó¡£¶ø
OracleÀï¶ÔÓÚfuncti ......