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

oracle×Ö·û¼¯

×÷Ϊһ¸öORACLE DBA,ÔÚ¹¤×÷Öлᾭ³£´¦ÀíÓÉÓÚ×Ö·û¼¯²úÉúµÄһЩÎÊÌâ¡£µ«Êǵ±ÕæÕýÏëдһЩÕâ·½ÃæµÄ¶«Î÷ʱ£¬È´Í»È»ÓÖûÓÐÁËÍ·Ð÷¡£·¢ÁË°ëÌì´ô£¬»¹ÊǾö¶¨ÓÃÁ½¸ö×Ö·û¼¯·½ÃæµÄÀý×Ó×÷ΪÇÐÈëµã£¬µ¹²»Ê§ÎªÒ»¸öÍ·Ð÷£¬Ëµ²»¶¨ÔÚʵÑéµÄ¹ý³ÌÖУ¬ÎÊÌâ¾Í»áÒ»¸ö½Ó×ÅÒ»¸öµÄ¸¡ÏÖ³öÀ´¡£
ÏÖÔÚ£¬ÈÃÎÒÃÇÇÐÈëÕýÌâ¡£
ÎÒÓõÄÊý¾Ý¿âÊÇoracle10.2.0.3,Êý¾Ý¿â×Ö·û¼¯ÊÇal32utf8¡£
¿Í»§¶Ë¾ÍÊÇͬһ̨»úÆ÷µÄwindows xp.
ÏÂÃæÊÇÑÝʾµÄÀý×Ó£º
SQL> drop table test purge;
Table dropped.
SQL> create table test(col1 number(1),col2 varchar2(10));
Table created.
--session 1 ÉèÖÿͻ§¶Ë×Ö·û¼¯Îª zhs16gbk£¨ÐÞ¸Ä×¢²á±ínls_langÏîµÄcharacterset Ϊzhs16gbk£© Ïò±íÖвåÈëÁ½¸öÖÐÎÄ×Ö·û¡£
SQL> insert into test values(1,'Öйú'); --1Ϊsession 1µÄ±ê¼Ç
1 row created.
SQL> commit;
Commit complete.
--session 2 ÉèÖÿͻ§¶Ë×Ö·û¼¯ al32utf8£¨ÐÞ¸Ä×¢²á±ínls_langÏîµÄcharacterset Ϊal32utf8£©£¬ÓëÊý¾Ý¿â×Ö·û¼¯Ïàͬ¡£ Ïò±íÖвåÈëÁ½¸öºÍsession 1ÏàͬµÄÖÐÎÄ×Ö·û¡£
SQL> insert into test values(2,'Öйú'); --2Ϊsession 2µÄ±ê¼Ç
1 row created.
SQL> commit;
Commit complete.
--session 1
SQL> select * from test;
COL1 COL2
---------- --------------------
2 £¿??
1 Öйú
--session 2
SQL> select * from test;
COL1 COL2
---------- ----------
2 Öйú
1 ä¸浗
´Ósession 1ºÍsession 2µÄ½á¹ûÖпÉÒÔ¿´µ½£¬ÏàͬµÄ×Ö·û£¨×¢Ò⣬ÎÒÖ¸µÄÊÇÎÒÃÇ¿´µ½µÄ£¬ÏÔʾΪÏàͬµÄ×Ö·û£©£¬ÔÚ²»Í¬µÄ×Ö·û¼¯ÊäÈë»·¾³Ï£¬ÏÔʾ³ÉÁËÂÒÂë¡£
ÔÚzhs16gbk×Ö·û¼¯µÄ¿Í»§¶Ë£¬ÎÒÃÇ¿´µ½ÁËutf8×Ö·û¼¯¿Í»§¶ËÊäÈëµÄÏàͬµÄÖÐÎıä³ÉÁËÂÒÂë-->col1=2µÄcol2×Ö¶Î
ÔÚutf8×Ö·û¼¯¿Í»§¶Ë£¬ÎÒÃÇ¿´µ½zhs16gbk×Ö·û¼¯µÄ¿Í»§¶ËÊäÈëµÄÖÐÎıä³ÉÁËÁíÍâµÄ×Ö·û -->col1=1µÄcol2×Ö¶Î
´ÓÕâ¸öÀý×ÓÀÎÒÃǺÃÏñ¸Ð¾õµ½³öÁËʲôÎÊÌ⣬Ҳ¿ÉÄÜ»áÁªÏëÆðÏÖʵ»·¾³ÖгöÏÖµÄÂÒÂëÎÊÌâ¡£
ÎÊÌâËƺõÓÐÁË˼·£¬ok£¬ÈÃÎÒÃǼÌÐø°ÑʵÑé×öÏÂÈ¥£º
--session 1 £¨»òÕßsession 2£¬ÔÚÕâÀïÎÞËùν£©
SQL> select col1,dump(col2,1016) from test;
COL1
----------
DUMP(COL2,1016)
--------------------------------------------------------------------------------
2
Typ=1 Len=4 CharacterSet=AL32UTF8: d6,d0,b9,fa
1
Typ=1 Len=6 CharacterSet=AL32UTF8: e4


Ïà¹ØÎĵµ£º

oracle ±í¿Õ¼ä²Ù×÷

oracle±í¿Õ¼ä²Ù×÷Ïê½â
  1
  2
  3×÷Õߣº   À´Ô´£º    ¸üÐÂÈÕÆÚ£º2006-01-04 
  5
  6 
  7½¨Á¢±í¿Õ¼ä
  8
  9CREATE TABLESPACE data01
 10DATAFILE '/ora ......

ORACLE±¸·Ý²ßÂÔ(ORACLE BACKUP STRATEGY)

ORACLE±¸·Ý²ßÂÔ(ORACLE BACKUP STRATEGY)
2007Äê11ÔÂ02ÈÕ ÐÇÆÚÎå 16:03
¸ÅÒª
1¡¢Á˽âʲôÊDZ¸·Ý
2¡¢Á˽ⱸ·ÝµÄÖØÒªÐÔ
3¡¢Àí½âÊý¾Ý¿âµÄÁ½ÖÖÔËÐз½Ê½
4¡¢Àí½â²»Í¬µÄ±¸·Ý·½Ê½¼°ÆäÇø±ð
5¡¢Á˽âÕýÈ·µÄ±¸·Ý²ßÂÔ¼°ÆäºÃ´¦
  
Ò»¡¢Á˽ⱸ·ÝµÄÖØÒªÐÔ
¿ÉÒÔ˵£¬´Ó¼ÆËã»úϵͳ³öÊÀµÄÄÇÌìÆ𣬾ÍÓÐÁ˱¸·ÝÕâ¸ö¸ÅÄ ......

ORACLE Êý¾Ý¿â£¨²éѯ Ö÷¼üÍâ¼üÔ¼Êø£©

 --   ²éѯÍâ¼üÔ¼Êø(²éij±íµÄËùÓи¸±í)  
  select   c.constraint_name,cc.column_name,rcc.owner,rcc.table_name,rcc.column_name  
  from   user_constraints   c,user_cons_columns   cc,user_cons_columns   rcc  
  where   c.owner=' ......

oracleµÄ¶¨Ê±ÈÎÎñjob

      ÏîÄ¿¾­ÀíÈÃ×öÀúÊ·Êý¾Ý±¸·Ý£¬Éæ¼°µ½ÈçºÎ½«ÒµÎñ±íÖеļǼµ¼³öµ½ÀúÊ·±íÖУ¬×Ô¼º×ʼÏëÄѵÀÊǸú×Ô¶¯¶ÔÕ˺Í×Ô¶¯ÉÏ´«³ÌÐòÒ»Ñùд¸ö³ÌÐòÈ»ºó½«³ÌÐò·ÅÔÚϵͳµÄÈÎÎñ¼Æ»®ÀﶨʱÔËÐУ¿»¹ÊÇÎÊÎÊÏîÄ¿¾­Àí°É£¬ÎÊÏîÄ¿¾­Àí£¬Äǵ¼³ö¼Ç¼Ôõô×ö¡£ÏîÄ¿¾­Àí˵£¬Êý¾Ý¿âÀïÓ¦¸ÃÓÐÕâ¸ö¹¦ÄÜ°É¡£»ÐÈ»´óÎò£¬ÒþÔ¼¼ÇµÃÖ ......

Oracle¹ÜÀíÓëά»¤.Êý¾Ý¿âµÇ¼µÄÉíÖ¤ÑéÖ¤

Oracle¹ÜÀíÓëά»¤.Êý¾Ý¿âµÇ¼µÄÉíÖ¤ÑéÖ¤
²Ýľ¹Ï
20080505
Ò»¡¢Ð´ÔÚÇ°Ãæ
 Ôø¾­²¢²»ÖªµÀconn / as sysdbaΪºÎÎÔÚunixϸãÁË°ëÌì·½Öª£¬»¹ÐèÒª¼ÓÉÏ"ºÅ£¬Oracle 10gÀï
ÖÕÓÚÒ²¿¼Âǵ½ÁËÕâ¸öÎÊÌ⣬²»ÔÙÊܵ½" as sysdba "µÄÏÞÖÆ¡£
 ÈçÏÂËùʾ£º
 
 [oracle@liwei admin]$ sqlplus / as sysdba
  ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ