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

²é¿´Oracle×Ö·û¼¯¼°ÔõÑùÐÞ¸Ä×Ö·û¼¯£¨zt£©


Ò»¡¢Ê²Ã´ÊÇoracle×Ö·û¼¯ ¡¡¡¡
Oracle×Ö·û¼¯ÊÇÒ»¸ö×Ö½ÚÊý¾ÝµÄ½âÊ͵ķûºÅ¼¯ºÏ,ÓдóС֮·Ö,ÓÐÏ໥µÄ°üÈݹØϵ¡£ORACLE
Ö§³Ö¹ú¼ÒÓïÑÔµÄÌåϵ½á¹¹ÔÊÐíÄãʹÓñ¾µØ»¯ÓïÑÔÀ´´æ´¢£¬´¦Àí£¬¼ìË÷Êý¾Ý¡£ËüʹÊý¾Ý¿â¹¤¾ß£¬´íÎóÏûÏ¢£¬ÅÅÐò´ÎÐò£¬ÈÕÆÚ£¬Ê±¼ä£¬»õ±Ò£¬Êý×Ö£¬ºÍÈÕÀú×Ô¶¯ÊÊÓ¦±¾µØ
»¯ÓïÑÔºÍƽ̨¡£ ¡¡¡¡
Ó°ÏìoracleÊý¾Ý¿â×Ö·û¼¯×îÖØÒªµÄ²ÎÊýÊÇNLS_LANG²ÎÊý¡£
ËüµÄ¸ñʽÈçÏÂ: ¡¡¡¡NLS_LANG = language_territory.charset ¡¡¡¡
ËüÓÐÈý¸ö×é³É²¿·Ö(ÓïÑÔ¡¢µØÓòºÍ×Ö·û¼¯)£¬Ã¿¸ö³É·Ö¿ØÖÆÁËNLS×Ó¼¯µÄÌØÐÔ¡£
ÆäÖÐ: ¡¡¡¡
Language Ö¸¶¨·þÎñÆ÷ÏûÏ¢µÄÓïÑÔ£¬territory Ö¸¶¨·þÎñÆ÷µÄÈÕÆÚºÍÊý×Ö¸ñʽ£¬charset Ö¸¶¨×Ö·û¼¯¡£Èç:AMERICAN _ AMERICA. ZHS16GBK ¡¡¡¡
´ÓNLS_LANGµÄ×é³ÉÎÒÃÇ¿ÉÒÔ¿´³ö£¬ÕæÕýÓ°ÏìÊý¾Ý¿â×Ö·û¼¯µÄÆäʵÊǵÚÈý²¿·Ö¡£
ËùÒÔÁ½¸öÊý¾Ý¿âÖ®¼äµÄ×Ö·û¼¯Ö»ÒªµÚÈý²¿·ÖÒ»Ñù¾Í¿ÉÒÔÏ໥µ¼Èëµ¼³öÊý¾Ý£¬Ç°ÃæÓ°ÏìµÄÖ»ÊÇÌáʾÐÅÏ¢ÊÇÖÐÎÄ»¹ÊÇÓ¢ÎÄ¡£
¶þ.²é¿´Êý¾Ý¿â×Ö·û¼¯
ÕâÉæ¼°Èý·½ÃæµÄ×Ö·û¼¯£¬
Ò»ÊÇoracel server¶ËµÄ×Ö·û¼¯;
¶þÊÇoracle client¶ËµÄ×Ö·û¼¯;
ÈýÊÇdmpÎļþµÄ×Ö·û¼¯¡£
ÔÚ×öÊý¾Ýµ¼ÈëµÄʱºò£¬ÐèÒªÕâÈý¸ö×Ö·û¼¯¶¼Ò»Ö²ÅÄÜÕýÈ·µ¼Èë¡£ ¡¡
¡¡1¡¢²éѯoracle server¶ËµÄ×Ö·û¼¯ ¡¡¡¡
       ÓкܶàÖÖ·½·¨¿ÉÒÔ²é³öoracle server¶ËµÄ×Ö·û¼¯£¬±È½ÏÖ±¹ÛµÄ²éѯ·½·¨ÊÇÒÔÏÂÕâÖÖ:
      SQL>select userenv(‘language’) from dual; ¡¡¡¡
      ½á¹ûÀàËÆÈçÏÂ:AMERICAN _ AMERICA. ZHS16GBK ¡¡¡¡
   2¡¢ÈçºÎ²éѯdmpÎļþµÄ×Ö·û¼¯ ¡¡¡¡
     
ÓÃoracleµÄexp¹¤¾ßµ¼³öµÄdmpÎļþÒ²°üº¬ÁË×Ö·û¼¯ÐÅÏ¢£¬dmpÎļþµÄµÚ2ºÍµÚ3¸ö×ֽڼǼÁËdmpÎļþµÄ×Ö·û¼¯¡£Èç¹ûdmpÎļþ²»´ó£¬±ÈÈçÖ»ÓÐ
¼¸M»ò¼¸Ê®M£¬¿ÉÒÔÓÃUltraEdit´ò¿ª(16½øÖÆ·½Ê½)£¬¿´µÚ2µÚ3¸ö×Ö½ÚµÄÄÚÈÝ£¬Èç0354£¬È»ºóÓÃÒÔÏÂSQL²é³öËü¶ÔÓ¦µÄ×Ö·û¼¯: ¡¡¡¡
      SQL> select nls_charset_name(to_number('0354','xxxx')) from dual; ¡¡¡¡
        ZHS16GBK ¡¡¡¡
     Èç¹ûdmpÎļþºÜ´ó£¬±ÈÈçÓÐ2GÒÔÉÏ(ÕâÒ²ÊÇ×î³£¼ûµÄÇé¿ö)£¬ÓÃÎı¾±à¼­Æ÷´ò¿ªºÜÂý»òÕßÍêÈ«´ò²»¿ª£¬¿ÉÒÔÓÃÒÔÏÂÃüÁî(ÔÚunixÖ÷»úÉÏ): ¡¡¡¡
      cat exp.dmp |od -x|head -1|awk '{print $2 $3


Ïà¹ØÎĵµ£º

jdbcÁ¬½ÓOracle

      ËäȻѧϰJavaºÜ¾ÃÁË£¬×Ô¼ºÒ²Á¬½Ó¹ýһЩÊý¾Ý¿â£¬±ÈÈçmysqlÖ®ÀàµÄ£¬Èç½ñÄØ£¬Ò²Ñ§Ï°ÁËÒ»¶Îʱ¼äµÄOracle£¬È»¶øÄØ£¬½ñÌìÊÇÎÒµÚÒ»´ÎÁ¬½ÓOracle£¬ºÙºÙ£¬Ó¦¸Ã»¹²»ËãÌ«³Ù°É¡£
    ½ñÌìÄØ£¬Óе㱿׾£¬´ó¼ÒĪЦ£¡
    ÎÒÕâÊÇÒ»¸ö²éѯÀý×Ó
    Ê×ÏÈ£¬Ô ......

oracle¸´Ï°£¨Ò»£© Ö®OracleÌåϵ½á¹¹

      ѧϰOracle DBAÒ²°ë¸ö¶àѧÆÚÁË£¬½ñÌìÃÍÈ»²Å·¢ÏÖ£¬Ô­À´ÎÒµÄÊ黹ÊǺÜеģ¬ÉϿβÙ×÷ʱºòÒ²Ö»ÊÇÖªµÀ´ó¸ÅÔõô×ö£¬µ«ÊÇÒªÕæµÄÈ«²¿×Ô¼º×ö£¬¶ø²»È¥·­Ê黹ÊÇÓÐÒ»¶¨µÄÄѶȵģ¬ËùÒÔÄØ£¬½ñÌ쿪ʼ½«DBA´ÓÍ·¸´Ï°Ò»±é£¬Í¬Ê±ÔÙ²Ù×÷Ò»±é¡£
      µÚÒ»Õ£¬Ñ§µÄÊÇOracleµÄÌåϵ½á¹¹£ ......

Oracle¸üжàÐÐ

¸üжàÐеIJ½Ö裺
²½Öè¶à£¬µ«Ð§ÂʱȽϸߣº
1¡¢create table ÁÙʱ±í value (select a.id,a.name,b.name,... from table1 a,table2 b where a.id=b.id)
2¡¢É¾³ýtable1ÖеļǼ£¬²»Òªdrop
3¡¢insert into table1 select ÄãÐèÒªµÄ×ֶΠfrom ÁÙʱ±í¡£
select * from tb_ai03
create table tb_ai031 as select * from tb ......

Oracle´æ´¢¹ý³Ì×ܽá(Ò»¡¢»ù±¾Ó¦ÓÃ)

1¡¢´´½¨´æ´¢¹ý³Ì
create or replace procedure test(var_name_1 in type,var_name_2 out type) as
--ÉùÃ÷±äÁ¿(±äÁ¿Ãû ±äÁ¿ÀàÐÍ)
begin
--´æ´¢¹ý³ÌµÄÖ´ÐÐÌå
end test;
´òÓ¡³öÊäÈëµÄʱ¼äÐÅÏ¢
E.g:
create or replace procedure test(workDate in Date) is
begin
dbms_output.putline('The input date is: ......

Oracle »µ¿é ×ܽá


OracleÊý¾Ý¿â³öÏÖ»µ¿éÏÖÏóÊÇÖ¸£ºÔÚOracleÊý¾Ý¿âµÄÒ»¸ö»ò¶à¸öÊý¾Ý¿é£¨Ò»¸öÊý¾Ý¿éµÄÈÝÁ¿ÔÚ´´½¨Êý¾Ý¿âʱÓÉdb_block_size²ÎÊýÖ¸¶¨£¬È±Ê¡Îª8K£©ÄÚ³öÏÖÄÚÈÝ»ìÂÒµÄÏÖÏó¡£ÓÉÓÚÕý³£µÄÊý¾Ý¿é¶¼Óй̶¨µÄºÏ·¨ÄÚÈݸñʽ£¬»µ¿éµÄ³öÏÖ£¬µ¼ÖÂÊý¾Ý¿â½ø³ÌÎÞ·¨Õý³£½âÎöÊý¾Ý¿éµÄÄÚÈÝ£¬½ø¶øʹÊý¾Ý¿â½ø³Ì±¨´íÄËÖÁ¹ÒÆ𣬲¢¼¶Áªµ¼ÖÂÕû¸öÊý¾Ý¿âʵÀý³ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ