oracle×Ö·û¼¯
²é¿´Oracle ±í½á¹¹µÄ´´½¨ºÍ×îºóÐÞ¸Äʱ¼ä
SELECT a.owner, a.table_name, created, last_ddl_time
from dba_tables a, SYS.dba_objects b
WHERE a.tablespace_name = 'USERS'
AND a.owner = b.owner
AND a.table_name = b.object_name
AND object_type = 'TABLE'
²é¿´oracleµÄ×Ö·û¼¯
¸ñʽ£º NLS_LANG = language_territory.charset¡¡¡¡ËüÓÐÈý¸ö×é³É²¿·Ö(ÓïÑÔ¡¢µØÓòºÍ×Ö·û¼¯)
1£©¡¢²éѯoracle server¶ËµÄ×Ö·û¼¯
select userenv(‘language’) from dual;
2£©¡¢ÈçºÎ²éѯdmpÎļþµÄ×Ö·û¼¯
ÓÃoracleµÄexp¹¤¾ßµ¼³öµÄdmpÎļþÒ²°üº¬ÁË×Ö·û¼¯ÐÅÏ¢£¬dmpÎļþµÄµÚ2ºÍµÚ3¸ö×ֽڼǼÁËdmpÎļþµÄ×Ö·û¼¯¡£Èç¹ûdmpÎļþ²»´ó£¬±ÈÈçÖ»Óм¸M»ò¼¸Ê®M£¬¿ÉÒÔÓÃUltraEdit´ò¿ª(16½øÖÆ·½Ê½)£¬¿´µÚ2µÚ3¸ö×Ö½ÚµÄÄÚÈÝ£¬Èç0354£¬È»ºóÓÃÒÔÏÂSQL²é³öËü¶ÔÓ¦µÄ×Ö·û¼¯:
select nls_charset_name(to_number('0354','xxxx')) from dual; ¡¡¡¡
Èç¹ûdmpÎļþºÜ´ó£¬±ÈÈçÓÐ2GÒÔÉÏ(ÕâÒ²ÊÇ×î³£¼ûµÄÇé¿ö)£¬ÓÃÎı¾±à¼Æ÷´ò¿ªºÜÂý»òÕßÍêÈ«´ò²»¿ª£¬¿ÉÒÔÓÃÒÔÏÂÃüÁî(ÔÚunixÖ÷»úÉÏ):
¡¡¡¡cat exp.dmp |od -x|head -1|awk '{print $2 $3}'|cut -c 3-6
È»ºóÓÃÉÏÊöSQLÒ²¿ÉÒԵõ½Ëü¶ÔÓ¦µÄ×Ö·û¼¯¡£
3)¡¢²éѯoracle client¶ËµÄ×Ö·û¼¯
¡¡¡¡ÔÚwindowsƽ̨Ï£¬¾ÍÊÇ×¢²á±íÀïÃæÏàÓ¦OracleHomeµÄNLS_LANG¡£»¹¿ÉÒÔÔÚdos´°¿ÚÀïÃæ×Ô¼ºÉèÖ㬱ÈÈç: ¡¡¡¡set nls_lang=AMERICAN_AMERICA.ZHS16GBK
¡¡¡¡ÕâÑù¾ÍÖ»Ó°ÏìÕâ¸ö´°¿ÚÀïÃæµÄ»·¾³±äÁ¿¡£
¡¡¡¡ÔÚunixƽ̨Ï£¬¾ÍÊÇ»·¾³±äÁ¿NLS_LANG¡£
¡¡¡¡$echo $NLS_LANG
¡¡¡¡AMERICAN_AMERICA.ZHS16GBK
Ô´Îĵµ <http://database.ctocio.com.cn/278/9345778_1.shtml>
Ïà¹ØÎĵµ£º
Oracle IOÎÊÌâ½âÎö
Êý¾Ý¿âµÄ×÷ÓþÍÊÇʵÏÖ¶ÔÊý¾ÝµÄ¹ÜÀíºÍ²éѯ¡£ÈκÎÒ»¸öÊý¾Ý¿âϵͳ£¬±ØÈ»´æÔÚ¶ÔÊý¾ÝµÄ´óÁ¿¶Á»òÕßд»òÕßÁ½ÖвÙ×÷¶¼´óÁ¿´æÔÚ¡£IOÎÊÌâÒ²ÍùÍùÊǵ¼ÖÂÊý¾Ý¿âÐÔÄÜÎÊÌâµÄÖØÒªÔÒò¡£ÔÚÕâƪÎÄÕÂÖУ¬Ö÷Òª°ïÖú´ó¼ÒÔÚÀí½âOracleµÄ¶Áд²Ù×÷»úÖƵĻù´¡ÉÏ£¬Áé»î½â¾öÓöµ½µÄ¸÷ÖÖ³£¼ûµÄIOÎÊÌâ¡£
1 OracleÖÐIOµÄ²úÉú
IOµ±È»°üÀ ......
oracle 9i
http://www.oracle.com/technology/global/cn/software/products/oracle9i/index.html
oracle 9i ÔÚÏßÎĵµ
http://download.oracle.com/docs/cd/B10501_01/nav/docindex.htm
oracle 10g/11g ÏÂÔØ
http://www.oracle.com/technology/software/products/database/index.html ......
1.desc(ÃèÊö£© emp ÃèÊöempÕâÕűí
2.desc dept ²¿Ãűí
3.desc salgrade нˮµÈ¼¶
4.select *from table ²éÕÒ±íÖеÄÔªËØ
5.dual &nbs ......
¡¡¡¡Ò»¡¢ÒýÑÔ
¡¡¡¡Êý¾Ý²Ö¿â¼¼ÊõÊÇÄ¿Ç°ÒÑÖªµÄ±È½Ï³ÉÊìºÍ±»¹ã·º²ÉÓõĽâ¾ö·½°¸£¬ÓÃÓÚÕûºÍµçÐÅÔËÓªÆóÒµÄÚ²¿ËùÓзÖÉ¢µÄÔʼҵÎñÊý¾Ý£¬²¢Í¨¹ý±ã½ÝÓÐЧµÄÊý¾Ý·ÃÎÊÊֶΣ¬¿ÉÒÔÖ§³ÖÆóÒµÄÚ²¿²»Í¬²¿ÃÅ£¬²»Í¬ÐèÇ󣬲»Í¬²ã´ÎµÄÓû§Ëæʱ»ñµÃ×Ô¼ºËùÐèµÄÐÅÏ¢¡£Êý¾Ý²Ö¿âϵͳÐèÒªÄܹ»¼°Ê±µØ×·×ٺͷÖÎö´óÁ¿µÄÀúÊ·Êý¾Ý£¬²¢Äܹ»¼°Ê±×ö³ö·ÖÎöºÍÔ¤ ......
Õâ¸öÆäʵºÜ¼òµ¥£¬²»¹ý×Ô¼º¾³£Íü¼Ç£¬ËùÒÔ¼ÇÏÂÀ´
sqlplus /nolog£»
connect / as sysdba
alter user sys identified by password£»
alter user system identified by password£» ......