Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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數據庫

֮ǰÎÒÒ²ÓÐ談論過.netÖÐ對²»Í¬數據庫µÄ連½Ó²Ù×÷£¬這´Î單談談Oracle£¬Æä實ÄãÒª連½Óµ½Oracle數據庫ÊÇÒªÒªÇóÓÐ個Oracle.DataAccess.dll¡£¿ÉÒÔµ½Oracle網Õ¾ÏÂ載¡£Èç¹ûÄã°²裝ÁËOracleÁË£¬Ò² ......

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

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

¹ØÓÚoracleµÄһЩÔÓÆßÔӰ˵IJÙ×÷

1¡¢¸ü¸Ä±íÃû/ÁÐÃû
Ê×ÏÈ£¬ÒªÒÔsysdbaÉí·ÝµÇ¼£¬²ÅÄܶԱíÃû/ÁÐÃû½øÐиü¸Ä£º
(1)µÇ½sqlplus£¬¿ÉÒÔÒÔnolog·½Ê½µÇ½£¬¹ØÓÚÕâÖֵǽ·½·¨£¬¿ÉÔÚsqlplusµÄͼ±êÉÏÓÒ¼ü£¬µã»÷ÊôÐÔ£¬ÔÚ"Ä¿±ê"À¸¸ÄΪ£º"D:\oracle\product\10.2.0\client_1\BIN\sqlplusw.exe /nolog"£¬È»ºóÔÙË«»÷sqlplusͼ±ê¾Í¿É½øÈë¡£
ÓÐʱoracle²¢²»ÔÚ±¾µØµçÄÔÉÏ£¬µ ......

»ùÓÚOCCI·ÃÎÊOracleµÄ¼Ç¼

ÎÒÔÚoracle 9iµÄ»·¾³Ï¿ª·¢ÁËocciµÄÓ¦Ó㬽á¹û·Åµ½10g(10.2.0.3)·þÎñÆ÷ÉÏÔËÐв»ÁË(Ö»×°ÁËwindows °æµÄ10g·þÎñ¶Ë)£¬Ö»ºÃ°ÑËùÓÐÒÀÀµµÄ9iµÄdll¿½¹ýÈ¥£¬½á¹ûÁ¬½Óocci±¨´í£º
Error while trying to retrieve text for error ORA-32101
µ½http://www.oracle.com/technology/global/cn/software/tech/oci/instantclient/index.ht ......

oracle °²×°Ö®ºó


Ò»¡¢²ÎÊýÉèÖÃ
--1¡¢ÉèÖÃA£º
db_block_size = 8192
db_domain = ''
db_file_multiblock_read_count = 16
db_name = bidata
db_recovery_file_dest = /export/home/app/oracle/oracle/product/10.2.0/db_1/flash_recovery_area
db_recovery_file_dest_size = 10737418240
dispatchers = '(PROTOCOL=TCP) (SERVICE=b ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ