Oracle¿ØÖÆÎļþ³£ÓòÙ×÷
ÏÞÖÆ¿ØÖÆÎļþµÄ´óС
a.)²éѯ¿É¸´Óò¿·ÖµÄ±£´æÌìÊý(²»ÄÜÖ±½Ó¿ØÖÆ´óС,±£´æÌìÊýÔ½´óÊý¾ÝÔ½¶à)
SELECT name,value from v$parameter WHERE name = 'control_file_record_keep_time';
b.)ÉèÖÿɸ´Óò¿·Ö±£´æʱ¼ä
ALTER SYSTEM SET CONTROL_FILE_RECORD_KEEP_TIME = 14;
c.)ÉèÖò»¿É¸´Óò¿·ÖµÄ´óС.ÔÚCREATE DATABASE»òCREATE CONTROLFILEÓï¾äÖиø¶¨ÏÂÁвÎÊý,ÒÔ¼ä½Ó¿ØÖÆ´óС.
MAXDATAFILES
MAXINSTANCES
MAXLOGFILES
MAXLOGHISTORY
MAXLOGMEMBERS
×¢ÒâÕâЩ²ÎÊý»áÏÞÖÆÊý¾Ý¿âµÄÍØÕ¹ÐÔ.ÀýÈçMAXDATAFILES = 100ʱ,×î¶àÖ»ÄÜÓÐ100Êý¾ÝÎļþ. ²é¿´¿ØÖÆÎļþÅäÖÃ
SELECT type, record_size, records_total, records_used from v$controlfile_record_section; ²é¿´¿ØÖÆÎļþλÖÃ
SELECT value from v$parameter WHERE name = 'control_files';
»ò
SELECT * from v$controlfile; Ìí¼Ó»òÒƶ¯¿ØÖÆÎļþ,ÐèÒªÖØÆôÊý¾Ý¿â. ×¢Òâ±ä¸üÇ°ºó×Ðϸ¼ìÑé,È·ÈÏ.
SPFILEģʽ: ALTER SYSTEM SET CONTROL_FILES = ·¾¶\ÎļþÒ»','·¾¶¶þ\Îļþ¶þ', '·¾¶Èý\ÎļþÈý' SCOPE = SPFILE;
PFILEģʽ: Ö±½ÓÐ޸IJÎÊýÎļþµÄCONTROL_FILES
È·Èϵ±Ç°PFILEģʽ: show parameter pfile; ±¸·Ý¿ØÖÆÎļþ
ALTER DATABASE BACKUP CONTROLFILE TO '·¾¶\Îļþ';
»ò
ALTER DATABASE BACKUP CONTROLFILE TO TRACE ±¾Ä£Ê½»áÔÚºǫ́¸ú×ÙµµÎļþ¼ÐÖÐÉú³ÉÒ»¸ö×îеĸú×ÙÎļþ,ÄÚº¬Éú³É¿ØÖÆÎļþµÄSQL
Ïà¹ØÎĵµ£º
Oracle 9i±È8i¶àÁËÄÄЩÐÂÌØÐÔ£¿
¼òҪ˵£º
9i¸üÒ×ÓÚ¹ÜÀí¡£
Ïêϸ˵£º
²¢·¢¼¯Èº£¬8i OPSÉý¼¶Îª9i RAC£¬8i½áµã¼äÓÃÓ²Å̽»»»ÐÅÏ¢£¬9i½áµã¼ä²ÉÓøßËÙÍøÏߵĻº´æÈÛºÏ(Cache Fusion)¼¼Êõ½»»»ÐÅÏ¢£¬½»»»ËÙ¶ÈÌá¸ß100±¶ÒÔÉÏ¡£
9i¿ÉÒÔÔÚÏßÐÞ¸ÄÄں˲ÎÊýºÍÄÚ´æ·ÖÅä£ ......
1.oracle×Ö·û¼¯ÎÊÌ⣺
Êý¾Ý¿â×Ö·û¼¯ÎªZHS16BGK£¬ºº×ÖÔÚÊý¾Ý¿â´æ·ÅµÄʱºòÕ¼ÓÃÁ½¸ö×Ö½Ú
Êý¾Ý¿â×Ö·û¼¯ÎªUTF8£¬ºº×ÖÔÚÊý¾Ý¿âÀï´æ·ÅµÄʱºòÕ¼ÓÃÈý¸ö×Ö½Ú
ÓÉÓÚ×Ö·û¼¯²»Í¬£¬µ¼ÖÂÏÖÔÚÊý¾Ý¿âIMPµÄʱºòÓÐЩ±íµÄ×ֶγ¤¶È²»¹»£¬³öÏÖORA-12899: value too large for columnµÄ´íÎó¡£
ͨ¹ýÐÞ¸Ä×Ö·û¼¯¿ÉÒÔ½â¾öÕâÖÖÎÊÌâ¡£
2.utf-8ºÍunico ......
--single line method
select ascii('A') Big_A from dual;
select chr(65) A, chr(122) z, chr(223) ch3 from dual;
select concat('sigo','way') from dual;
select initcap('sigoway') from dual;
select instr('ababab','a',-1,2), instr('ababab','a',1,3) from dual;
select instrb('ababab','a',1,3) from dua ......
1. ϵͳÅäÖùý³Ì
2.1. oracle°²×°Ìõ¼þ¼ì²é
2.1.1. Ó²¼þ¼ì²é
¼ì²éÓ²¼þÇé¿öÊÇ·ñ·ûºÏoracle 10g µÄ°²×°ÒªÇó¡£ÒÔrootµÇ¼ϵͳ£¬ÓÃϱíÃüÁîÊä³öµÄÖµÓ¦´óÓÚ»òµÈÓÚ½¨ÒéÖµ¡£
¼ì²éÏîÄ¿
ÃüÁî ......