OracleϵÄÖÐÎÄÅÅÐò
alter session set nls_sort='schinese_pinyin_m';
select * from dept order by
nlssort(name,'NLS_SORT=SCHINESE_PINYIN_M');
Oracle9i֮ǰ£¬ÖÐÎÄÊÇ°´ÕÕ¶þ½øÖƱàÂë½øÐÐÅÅÐòµÄ¡£
ÔÚoracle9iÖÐÐÂÔöÁË°´ÕÕÆ´Òô¡¢²¿Êס¢±Ê»
ÅÅÐò¹¦ÄÜ¡£ÉèÖÃNLS_SORTÖµ
SCHINESE_RADICAL_M °´ÕÕ²¿Ê×£¨µÚһ˳Ðò£©¡¢±Ê»®£¨µÚ¶þ˳Ðò£©ÅÅÐò
SCHINESE_STROKE_M
°´Õձʻ®£¨µÚһ˳Ðò£©¡¢²¿Ê×£¨µÚ¶þ˳Ðò£©ÅÅÐò
SCHINESE_PINYIN_M °´ÕÕÆ´ÒôÅÅÐò£¬ÏµÍ³µÄĬÈÏÅÅÐò·½Ê½ÎªÆ´ÒôÅÅÐò
¾Ù
ÀýÈçÏ£º
±íÃûΪ dept £¬ÆäÖÐname×Ö¶ÎÊÇÖÐÎÄ£¬ÏÂÃæ·Ö±ðʵÏÖ°´ÕÕµ¥Î»Ãû³ÆµÄ±Ê»®¡¢²¿Ê׺ÍÆ´ÒôÅÅÐò¡£
1: //°´Õձʻ®ÅÅÐò
2:
select * from dept order by
nlssort(name,'NLS_SORT=SCHINESE_STROKE_M');
3: //°´ÕÕ²¿Ê×ÅÅÐò
4: select
* from dept order by nlssort(name,'NLS_SORT=SCHINESE_RADICAL_M');
5:
//°´ÕÕÆ´ÒôÅÅÐò£¬´ËΪϵͳµÄĬÈÏÅÅÐò·½Ê½
6: select * from dept order by
nlssort(name,'NLS_SORT=SCHINESE_PINYIN_M');
×¢Ò⣬¸Ã
SQLÖ¸Áî²¢·Ç±ê×¼Ö¸ÁÔÚSQLServerÏÂÃæµÄʵÏÖ·½Ê½²¢²»Ïàͬ¡£
ת×Ô£ºhttp://blog.chinaunix.net/u/28618/showart_464260.html
Ïà¹ØÎĵµ£º
[root@vmfs sysconfig]# lvdisplay |grep db_d
LV Name /dev/db_v4/db_d_22
LV Name /dev/db_v4 ......
--´´½¨±í¿Õ¼ä
create tablespace Ãû³Æ
(
datafile='·¾¶\Ãû³Æ.ora',
size='50M',
autoextend='on'
)
/
--´´½¨ÁÙʱ±í¿Õ¼ä
create temporary tablespace Ãû³Æ
(
tempfile='·¾¶\Ãû³Æ.ora',
size='50M',
autoextend='on'
)
/
--´´½¨Óû§
create user Óû§Ãû idtenified by ÃÜÂë
/
--ΪÓû§Ö¸¶¨ ......
а²×°ÁËһ̨Êý¾Ý¿â·þÎñÆ÷£¬°æ±¾ÊÇ10.2.0.1µÄ£¬ÒòΪÏÖÔÚ×îеÄÊÇ10.2.0.4µÄ¡£ °æ±¾µÍÁË£¬bug¶à¡£ËùÒԾͶÔÊý¾Ý¿â×öÁËÒ»¸öÉý¼¶¡£
·þÎñÆ÷ÊÇwindows 2003µÄϵͳ£¬¶¼ÊÇ¿ÉÊÓ»°²Ù×÷¡£ ÏÂÒ»²½µÄÎÊÌâ¡£ 10.2.0.4µÄpatchset ÀïÃæÒ²ÓÐÏêϸµÄ°²×°ËµÃ÷¡£ Ö®×ö¸ö×ܽá ......
SQL Server¿ª·¢ÕßOracle¿ìËÙÈëÃÅ http://kb.cnblogs.com/a/853694 ¼òµ¥¸ÅÄîµÄ½éÉÜ 1. Á¬½ÓÊý¾Ý¿â
S: use mydatabase
O: connect username/password@DBAlias
conn username/password@DBAlias 2. ÔÚOracleÖÐʹÓÃDual, DualÊÇO ......
1.µ¼ÈëÊý¾ÝÃüÁimp userid=fkprod/fkprod full=y file=xxx.dmp
2.µ¼³öÊý¾Ý¿â¶ÔÏóÃüÁ
ʹÓÃtools--->export user objectÖ»Äܵ¼³öÊý¾Ý±í½Å±¾²»ÄÜ´ø³öÊý¾Ý,
»òÕßʹÓÃexp user/pwd file=/dir/xxx.dmp log=xxx.log full=y commit=y ignore=y
×¢Ò⣺Èç¹ûÄãÒªÔ¶³ÌµÇ¼µ½Êý¾Ý¿â·þÎñÆ÷µ¼³ö£¬¿ÉÒÔÔÚ±¾µØSQLPLUS×öÈçÏÂÃüÁ ......