²é¿´¡¢ÐÞ¸Äoracle×Ö·û¼¯£¬²é¿´oracle°æ±¾
·½·¨Ò»£º
1) ²é¿´·þÎñÆ÷¶Ë×Ö·û¼¯£º ²é¿´°æ±¾£º
select * from v$nls_parameters; select * from v$version
select * from nls_database_parameters;
select * from sys.props$;
2) Ð޸ķþÎñÆ÷¶Ë×Ö·û¼¯(ÓÃsysÓû§)£º
Ê×ÏÈÖ´ÐУºupdate props$ set value$ = 'WE8ISO8859P1' where name ='NLS_CHARACTERSET';
update props$ set value$ = 'china' where name ='NLS_LANGUAGE';
Ìá½»£¨commit£©£¬È»ºó£¬ÖØÐÂÆô¶¯Êý¾Ý¿â£»
3£©Óÿͻ§¶Ë¹¤¾ß£¨PL/SQL DEVELOP or PB etc.£©²éѯÊý¾Ý¿â£¬ÈôÏÔʾÂÒÂ룬ÏȲéѯ³öÊý¾Ý¿â¶ËµÄ×Ö·û¼¯£¬È»ºó£¬´Ó×¢²á±íÖÐÐÞ¸ÄNLS_LANG×ֶεÄÖµ£¬¿ÉÄÜΪAMERICAN_AMERICA.WE8ISO8859P1»òÕßSIMPLIFIED CHINESE_CHINA.ZHS16GBK»òÕßNAµÈ¡£
·½·¨¶þ£º
alter system enable restricted session;
alter database ORCL character set ZHS16GBK;
alter database ORCL national character set ZHS16GBK;
·½·¨Èý£º
8iÒÔÉÏ°æ±¾¿ÉÒÔͨ¹ýalter databaseÀ´ÐÞ¸Ä×Ö·û¼¯£¬µ«Ò²Ö»ÏÞÓÚ×Ó¼¯µ½³¬¼¯£¬²»½¨ÒéÐÞ¸Äprops$±í£¬½«¿ÉÄܵ¼ÖÂÑÏÖØ´íÎó¡£
¡¡¡¡
Startup nomount;
Alter database mount exclusive; feedom.net
Alter system enable restricted session;
Alter system set job_queue_process=0;
Alter database open;
Alter database character set zhs16gbk;
Ïà¹ØÎĵµ£º
´¥·¢Æ÷
q ´¥·¢Æ÷Êǵ±Ìض¨Ê¼þ³öÏÖʱ×Ô¶¯Ö´ÐеĴ洢¹ý³Ì
q Ìض¨Ê¼þ¿ÉÒÔÊÇÖ´ÐиüеÄDMLÓï¾äºÍDDLÓï¾ä
q ´¥·¢Æ÷²»Äܱ»ÏÔʽµ÷ÓÃ
q ´¥·¢Æ÷µÄ¹¦ÄÜ£º
q ......
alter system kill session'50,492';
--ÒÔϼ¸¸öΪÏà¹Ø±í
SELECT * from v$lock;
SELECT * from v$sqlarea;
SELECT * from v$session;
SELECT * from v$process ;
SELECT * from v$locked_object;
SELECT * from all_objects;
SELECT * from v$session_wait; ......
SQLµÄÓÅ»¯Ó¦¸Ã´Ó5¸ö·½Ãæ½øÐе÷Õû£º
1.È¥µô²»±ØÒªµÄ´óÐͱíµÄÈ«±íɨÃè
2.»º´æСÐͱíµÄÈ«±íɨÃè
3.¼ìÑéÓÅ»¯Ë÷ÒýµÄʹÓÃ
4.¼ìÑéÓÅ»¯µÄÁ¬½Ó¼¼Êõ
5.¾¡¿ÉÄܼõÉÙÖ´Ðмƻ®µÄCost
SQLÓï¾ä£º
ÊǶÔÊý¾Ý¿â(Êý¾Ý)½øÐвÙ×÷µÄΩһ;¾¶£»
ÏûºÄÁË70%~90%µÄÊý¾Ý¿â×ÊÔ´£»¶ÀÁ¢ÓÚ³ÌÐòÉè¼ÆÂß¼£¬Ïà¶ÔÓÚ¶Ô³ÌÐòÔ´´úÂëµÄÓÅ»¯£¬¶ÔSQLÓï¾äµÄÓÅ»¯Ô ......