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

ÔÚORACLE 10gµÇ½´´½¨ÐÂÓû§

ÔÚORACLE 10gµÇ½´´½¨ÐÂÓû§£º
 
ÔÚORACLE 10gµÇ½´´½¨ÐÂÓû§£º
1¡¢ÓÃsys Óû§µÇ¼
2¡¢create user test1 identified by test123;
3¡¢grant connect,resource to test1;
ÓÃtest1µÇ½£º sqlplus test1/test123
°²×°ÍêÁËOracleÊý¾Ý¿â£¬ÍüÁËÔÚ¿ÚÁî¹ÜÀíÖиøSCOTT½âËøÔõô°ì
 
 
 
ÎÊÌâ²¹³ä£º
ÔËÐÐcmdsqlplus/nolog »Ø³µ
SQL>conn/as sysdba »Ø³µ
SQL>alter user scott account unlock; »Ø³µ
SQL>disconnect »Ø³µSQL>conn scott/tiger@oral; »Ø³µ
È»ºóÊäÈëÁ½´Îж¨ÒåµÄ¿ÚÁî·Ö±ð»Ø³µÈ·Èϼ´¿É


Ïà¹ØÎĵµ£º

OracleÖÐINSTR,SUBSTR·½·¨

INSTR·½·¨µÄ¸ñʽΪ
INSTR(Ô´×Ö·û´®, Ä¿±ê×Ö·û´®, ÆðʼλÖÃ, Æ¥ÅäÐòºÅ)
ÀýÈ磺INSTR('CORPORATE FLOOR','OR', 3, 2)ÖУ¬Ô´×Ö·û´®Îª'CORPORATE FLOOR', Ä¿±ê×Ö·û´®Îª'OR'£¬ÆðʼλÖÃΪ3£¬È¡µÚ2¸öÆ¥ÅäÏîµÄλÖá£
ĬÈϲéÕÒ˳ÐòΪ´Ó×óµ½ÓÒ¡£µ±ÆðʼλÖÃΪ¸ºÊýµÄʱºò£¬´ÓÓұ߿ªÊ¼²éÕÒ¡£
ËùÒÔSELECT INSTR('CORPORATE FLOOR' ......

Oracle 10046ʼþ

ºÜ¶àʱºò£¬¶ÔÊý¾Ý¿â½øÐÐÐÔÄÜÕï¶Ï¿ÉÒÔʹÓÃSQL¸ú×ٵķ½·¨£¬°ÑһЩÐÅÏ¢¼Ç¼ÔÚtraceÎļþÀïÒÔºó·ÖÎö¡£Ò»°ãÇé¿öÏÂÎÒÃÇ¿ÉÒÔͨ¹ý³õʼ»¯²ÎÊýSQL_TRACE=TRUEÀ´ÉèÖÃSQL¸ú×Ù¡£
ÎÒÃÇÒ²¿ÉÒÔͨ¹ýÉèÖÃ10046ʼþÀ´½øÐÐSQL¸ú×Ù£¬²¢ÇÒ¿ÉÒÔÉèÖò»Í¬µÄ¸ú×Ù¼¶±ð£¬±ÈʹÓÃSQL_TRACE»ñµÃ¸ü¶àµÄÐÅÏ¢¡£
Level 0   Í£ÓÃSQL¸ú×Ù£¬Ï൱ÓÚSQL_T ......

ʹÓÃOracleµÄTkprof¹¤¾ß

Ô­ÎĵØÖ·£ºhttp://space.itpub.net/12330444/viewspace-249140
¹ØÓÚtkprofµÄÏêϸʹÓÃÇé¿ö¿ÉÔÚoracle10gÁª»úÎĵµPerformance Tuning GuideÖÐÕÒµ½¡£
TkprofÊÇÒ»¸ö·ÖÎöORACLE¸ú×ÙÎļþ²¢ÇÒ²úÉúÒ»¸ö¸ü¼ÓÈËÐÔ»¯ÇåÎúµÄÊä³ö½á¹ûµÄ¿ÉÖ´Ðй¤¾ß£»¿ÉÓÃÀ´¸ñʽ»¯sql trace²úÉúµÄÎļþ£¬ÈÃÄã¸üÈÝÒ׿´¶®traceµÄÄÚÈÝ¡£
Tkprof´æ·ÅλÖãºC:\ ......

Oracle DBA£º±Ø±¸16´ó¼¼Äܺ;­µäÊé¼®»ã×Ü

Ò»¸ö³ÆÖ°µÄÊý¾Ý¿âDBA½ö½öÈ¡µÃORACLE³§¼ÒÈÏÖ¤ÊDz»¹»µÄ£¬¹Ø¼üÊÇÕæʵ»·¾³µÄÀúÁ·£¬±ÊÕß´ÓÊÂORACLE DBA¶àÄ꣬¾­ÀúORACLE°æ±¾´Ó8iµ½10g(×¢£º¶ÔÓÚÒ»¸ö¹«Ë¾»òµ¥Î»µÄÕæʵ»·¾³£¬¶ÔÓÚ°æ±¾µÄ×·ÇóÊ×ÒªµÄ£¬¹Ø¼üµÄÎȶ¨ÐÔ)£¬²Ù×÷ϵͳ´Ówindows µ¥»ú¡¢Ë«»úµ½Ö÷Á÷IBM¡¢HPµÄUNIX²Ù×÷ϵͳ£¬ÒÔÏÂÊDZÊÕ߶àÄê´ÓÊÂORACLE DBAµÄһЩÐĵã¬Ï£ÍûÄܸø³õÑ ......

ORACLEµÄ±í·ÖÎö²ßÂÔ


¶Ô±í½øÐзÖÎö£¬Í¨³£Çé¿öÏ¿ÉÒÔ¶Ô±í£¬Ë÷Òý£¬ÁнøÐе¥¶À·ÖÎö£¬»òÕß½øÐÐ×éºÏ·ÖÎö£¬µ«ÕâÈýÕßÄÄЩÊÇÏà¶ÔÖØÒªµÄ£¬ÄÄЩ·ÖÎöÏԵò»ÄÇôÖØÒª£¿Í¨¹ý±¾ÆªÎÄÕµÄʵÑéÏàÐÅ´ó¼ÒÒ²»á¶ÔÖ±·½Í¼ÓиüÒ»²½µÄÁ˽â.
1.Ê×ÏÈ´´½¨²âÊÔ±í,²¢²åÈë100000ÌõÊý¾Ý
SQL> create table test(id number,nick varchar2(30));
Table created.
SQL> b ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ