Oracle²¢·¢Á¬½ÓÊýµÄÉèÖÃ
²»ÄÜÁ¬½ÓOracleÊý¾Ý¿âÁË,ÌáʾÏà¹ØµÄ´íÎó
OERR: ORA-12519 TNS:no appropriate service handler found
¿Í»§¶ËÁ¬½Ó¼äЪÐÔʧ°Ü£¬±¨´íORA-12519
Cause: the listener could not find any available service handlers that are
appropriate for the client connection.
Action: run "lsnrctl services" to ensure that the instance(s) have registered
with the listener, and are accepting connections. ¼ì²élsnrctl service £¬instanceÒѾע²á£¬
״̬ÏÔʾreadyʱ£¬¿ÉÒÔÁ¬½Ó¡£
When the listener believes the current number of connections has reached maximum load,
it may set the state of the service handler for an instance to "blocked" and begin refusing
incoming client connections with either of the following errors: ora-12519 or ora-12516
²ÉÓ÷þÎñ¶¯Ì¬×¢²áµÄ·½Ê½£¬ÓÉPMON ͨ¹ýSERVICE_UPDATE À´µÃµ½Ä¿Ç°Á¬½ÓÇé¿ö£¬µ«SERVICE_UPDATE ÓÐʱ¼ä¼ä¸ô£¬
ËùÒÔ£¬listenerÏÔʾµÄÁ¬½ÓÊýºÍµ±Ç°Êµ¼ÊµÄÁ¬½ÓÊý¿ÉÄܲ»Í¬¡£
²éѯ½â¾ö·½·¨:
²é¿´Ò»ÏÂÊý¾Ý¿âÏÖÓеĽø³ÌÊý£¬ÊÇ·ñÒѾ´ïµ½²ÎÊýprocessesµÄ´óС¡£
1.select count(*) from v$process; È¡µÃÊý¾Ý¿âĿǰµÄ½ø³ÌÊý¡£
2.select value from v$parameter where name = 'processes'; È¡µÃ½ø³ÌÊýµÄÉÏÏÞ¡£
3.ÈçÒÑ´ïµ½ÉÏÏÞ£¬ÐÞ¸ÄinitSID.oraÖеÄprocessesµÄ´óС¡£
4.ÖØÐÂÆô¶¯Êý¾Ý¿âµ½nomount״̬Ï£¬Ö´ÐÐcreate spfile from pfile; ²¢startup open¡£
²éѯÊý¾Ý¿â×ÔÆô¶¯ÒÔÀ´×î´óµÄ²¢·¢ÊýÁ¿
ÐÞ¸Ä×î´óÁ¬½ÓÊý:
alter system set processes = 300 scope = spfile;
ÖØÆôÊý¾Ý¿â:
shutdown immediate;
startup;
--²é¿´
Ïà¹ØÎĵµ£º
Òò¿ª·¢ÒªÇó£¬ÐèÒª¶ÔoracleÀïµÄÊý¾ÝÓëÊý¾ÝÎļþ×÷±È½Ï¡£Èç²ÉÓÿͻ§¶ËÁ¬½ÓoracleµÄ·½Ê½ÔòÏÔµÃСÌâ´ó×ö£¬ÇÒ¹¤×÷Á¿´ó£¬²»Ò×ά»¤¡£Ö±½Ó²ÉÓô洢¹ý³Ì£¬µ÷ÓÃUTL_FILE°üµÄ¹«¹²¹ý³Ì£¬ÏԵ÷½±ãµÃ¶à¡£
Ê×ÏÈ£¬ÐèÒª°ÑÊý¾ÝÎļþËùÔÚµÄĿ¼ע²áµ½oracleÖУ¬ÓÃcreate directory¡£¡£¡£Óï¾ä£¬È»ºó°Ñ´ËÄ¿ ......
sql server
Ìæ»»null:isnull(arg,value)
Èç:select isnull(price,0.0) from orders ,Èç¹ûpriceΪnullµÄ»°£¬ÓÃ0 ......
±¾ÎÄ×ªÔØ:http://blog.csdn.net/flm_0722/archive/2009/10/08/4643566.aspx
Ò»¡¢ÉèÖóõʼ»¯²ÎÊý job_queue_processes
¡¡¡¡sql> alter system set job_queue_processes=n;£¨n>0£©
¡¡¡¡job_queue_processes×î´óֵΪ1000
¡¡¡¡
¡¡¡¡²é¿´job queue ºǫ́½ø³Ì
¡¡¡¡sql>select name,description from v$bgprocess;
......
OracleµÄsql*plusÊÇÓëoracle½øÐн»»¥µÄ¿Í»§¶Ë¹¤¾ß¡£ÔÚsql*plusÖУ¬¿ÉÒÔÔËÐÐsql*plusÃüÁîÓësql*plusÓï¾ä¡£
ÎÒÃÇͨ³£Ëù˵µÄDML¡¢DDL¡¢DCLÓï¾ä¶¼ÊÇsql*plusÓï¾ä£¬ËüÃÇÖ´ÐÐÍêºó£¬¶¼¿ÉÒÔ±£´æÔÚÒ»¸ö±»³ÆÎªsql bufferµÄÄÚ´æÇøÓòÖУ¬²¢ÇÒÖ»Äܱ£´æÒ»Ìõ×î½üÖ´ÐеÄsqlÓï¾ä£¬ÎÒÃÇ¿ÉÒÔ¶Ô±£´æÔÚsql bufferÖеÄsql Óï¾ä½øÐÐÐ޸ģ¬È»ºóÔÙ´ ......
ǰÌìÓÐÈËÌáÁËÐèÇó£¬Ïë¶Ôij¸ö×ֶνøÐа´Î»µÄ»ò²Ù×÷¡£±¾À´½¨Òé²éѯ³öÀ´Ö®ºóÔÚÓ¦ÓóÌÐòÀïÃæ´¦Àí£¬µ«ÊÇÊý¾ÝÁ¿±È½Ï´ó£¬¾õµÃ»¹ÊÇ·µ»ØÒ»¸ö·Ö×鼯ËãÖ®ºóµÄÖµ±È½ÏºÏÊÊ¡£
Á½¸öÎÊÌ⣬һ¸öÊǰ´Îª»òµÄ²Ù×÷£¬Õâ¸ö²Î¿¼Á˱ðÈ˵ÄÎĵµ£¬ÓÃbitandº¯ÊýʵÏÖ¡£ ÔÎÄÈçÏ£º
http://blog.chinahr.com/blog/hewy0526/post/112968
È»ºó¾ÍÊÇ×Ô¶¨ÒåµÄ ......