oracle¼àÌýÆô¶¯²»ÁË
1 ÎÊÌâÃèÊö
oracleÊý¾Ý¿âÔÚ·þÎñÆ÷ÉÏÔËÐÐÕý³££¬µ«ÊDz»ÄÜͨ¹ýÍøÂçÁ¬½Ó£¨¼´Ê¹Óÿͻ§¶Ë²»ÄÜÁ¬½ÓÊý¾Ý¿â£¬ÔÚ·þÎñÆ÷¶ËÕý³££¬Õï¶ÏµÄ³õ²½ÔÒòΪ¼àÌýÆ÷ÎÊÌ⣩¡£ÔÚ·þÎñÆ÷¶ËʹÓÃÒÔÏÂÃüÁ
bash-3.1$ cd $ORACLE_HOME/bin
bash-3.1$ ./lsnrctl
LSNRCTL> status
½á¹û³öÏÖ£º
CONNECT (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
È»ºó¾ÍÍ£Ö¹²»¶¯ÁË£¬Ê¹ÓÃ
LSNRCTL> start
ºóûÓÐÈκη´Ó¦£¬Æä½á¹ûÊǼàÌýÆ÷Æô¶¯²»ÁË¡£
2 ·ÖÎöÎÊÌâ
Ê×ÏÈ£¬Ê¹ÓÃÒÔÏÂÃüÁî
bash-3.1$ cd $ORACLE_HOME/network/admin
bash-3.1$ ls
ºó£¬·¢ÏÖlistener.oraºÍtnsnames.oraÎļþ¶¼ÔÚ¸ÃĿ¼Ï£¬È»ºó
bash-3.1$ cat listener.ora
ÀïÃæÓв¿·ÖÄÚÈÝÈçÏ£º
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = RHEL)(PORT = 1521))
)
)
È»ºó£¬Ôٲ鿴tnsnames.oraÎļþ
bash-3.1$ cat tnsnames.ora
ÀïÃæµÄÄÚÈÝÈçÏ£º
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = RHEL)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
ʹÓÃhostnameÃüÁîÀ´²é¿´Ö÷»úÃûÊÇ·ñÓÐ´í£¬ÈçÏÂ
bash-3.1$ hostname
µÃµ½µÄ½á¹ûÊÇ£ºRHEL
ÖÁ´Ë£¬ÕâÁ½¸öÎļþ¶¼ºÜÕý³££¬ËµÃ÷¼àÌýµÄÅäÖÃÊÇûÓÐÎÊÌâµÄ£¬ÓÚÊÇÏëµ½ÎÊÌâ¿ÉÄܳöÔÚ·þÎñÆ÷µÄIPÉÏ¡£
²é¿´Ò»Ï·þÎñÆ÷µÄÍøÂçÅäÖ㬹ûÈ»·¢ÏÖÔÀ´·þÎñÆ÷Óжà¸öIPµØÖ·´¦ÓÚ»îԾ״̬£¬¶øÎÒÃǵÄORACLE¼àÌýµÄÊÇÖ÷»úÃû£¨ÎҵĻúÆ÷ÊÇRHEL£¬¿ÉÒÔ´ÓÉÏÃæµÄºìÉ«×ÖÌåÖп´µ½£©¡£Òò´Ë£¬µ±·þÎñÆ÷ÉϳöÏÖ¶à¸ö»îÔ¾µÄIPʱ£¬¼àÌýÆ÷¾ÍÎÞ·¨È·¶¨¸Ã¼àÌýÄĸöIP£¬ÕâÑù¾Í»á³öÏÖ¼àÌýÎÞ·¨Æô¶¯µÄÎÊÌâ¡£
3 ½â¾öÎÊÌâ
½â¾öµÄ°ì·¨ÊÇÖ±½Ó½«¼àÌýÆ÷ÅäÖÃΪ¼àÌýIP£¬Æä½â¾öµÄ°ì·¨ÊÇ£¬ÐÞ¸ÄÉÏÊöµÄÁ½¸öÎļþ£¨listener.oraºÍtnsnames.oraÎļþ£©ÖеĺìÉ«×ÖÌå±ê¼ÇµÄµØ·½£¬½«ÔÀ´µÄÖ÷»úÃû¸ÄΪÄãËùÒª¼àÌýµÄIPµØÖ·£¨Ö¸ÄãµÄÊý¾Ý¿â·þÎñÆ÷ÏòÓ¦ÓóÌÐòÌṩµÄIPµØÖ·£¬ÎÒµÄÊý¾Ý¿â·þÎñÆ÷µÄIPÊÇ192.168.0.110£©£¬Îҵĸü¸ÄÊÇ£º
ÐÞ¸Älistener.oraÎļþÖеÄLISTENER£¬Ð޸ĺóΪ£º
LISTENER =
Ïà¹ØÎĵµ£º
¡öÀÖÖª
“ËÊÇ˵ÄË”£¬ÕâÊÇΨÃÀÖÐ͸×ÅÓÄÔ¹µÄÒ»Ê׸裬µ«È´»áĪÃûµØµçµ½ÐÄÖеÄÀÛ¡£Ñ§Ï°Ì«ÀÛ£¬¹¤×÷Ì«ÀÛ£¬Éú»îÌ«ÀÛ£¬Á¬¸èÃûÌý×Ŷ¼ÄÇôÀÛ¡£
²ß»®µÄµÚÒ»±¾Ê顶´óÏó——Thinking in UML¡·£¬´ÓÔË×÷£¬µ½ÉÏÊУ¬µ½³©Ïú£¬µ½¾µä£¬µ½¹úÄÚUMLµÚÒ»Ê飬һÄêÖ®ÄÚʵÏÖÁËÒ»¸ö¸öûÓÐÃιýµÄÃÎÏë¡£ÕýÈçÕâÊ׸èÖеÄÒ ......
½ñÌìÔÚÏîÄ¿¿ª·¢ÖУ¬·¢ÏÖÊý¾Ý¿âÁ¬½ÓÊý¹ý¶à£¬oracleÖдæÔںܶ೬ʱÁ¬½Ó¡£µ¼ÖÂÐÂÔö¿Í»§¶ËÎÞ·¨Á¬½Óµ½Êý¾Ý¿â¡£ËùÒÔÉèÖÃÁËÇ¿ÖÆÊÍ·ÅoracleÁ¬½ÓÊôÐÔ¡£
ÔÚÍøÉϲéѯÁËÉèÖÃ˵Ã÷ÈçÏ£º
sqlplus /nolog
´ò¿ªsqlplus
connect system/bianqiwei@orcltns as sysdba
ʹÓþßÓÐdbaȨÏÞµÃÓû§µÇ½oracle
show p ......
(1)PfileÎļþ
Pfile£¨Parameter File£©ÎļþÊÇ»ùÓÚÎı¾¸ñʽµÄ²ÎÊýÎļþ£¬º¬ÓÐÊý¾Ý¿âµÄÅäÖòÎÊý¡£
Oracle 9iÔÚ°²×°Ê±ÎªÃ¿¸öÊý¾Ý¿â½¨Á¢ÁËÒ»¸öPfile£¬Ä¬ÈϵÄÃû³ÆΪ“init+Àý³ÌÃû.ora”£¬ÕâÊÇÒ»¸öÎı¾Îļþ£¬¿ÉÒÔÓÃÈκÎÎı¾±à¼¹¤¾ß´ò¿ª¡£
ϱíΪÊý¾Ý¿âµÄ³õʼ»¯²Î ......
ÔÚLinuxÏ°²×°Oracle Database 9i
2009Äê05ÔÂ11ÈÕ ÐÇÆÚÒ» 20:49
http://www0.ccidnet.com/tech/guide/2001/11/20/58_3761.html
Oracle9i 2000Äê10ÔÂÔÚOracle Open WorldÉÏ·¢²¼£¬Îª Oracle Êý¾Ý¿â¡¢Ó¦Ó÷þÎñÆ÷ºÍ¿ª·¢¹¤¾ßÒý½øÁËÐí¶àй¦ÄÜ¡£Oracle9iÊÇÒµ½çµÚÒ»¸öÍêÕû¡¢¼òµ¥µÄÓÃÓÚ»¥ÁªÍøµÄÐÂÒ»´úÖÇÄÜ»¯µÄ¡¢Ð×÷¸÷ÖÖÓ¦ÓõÄÈí ......
²é¿´±»ËøµÄ±í
select p.spid,a.serial#,
c.object_name,b.session_id,b.oracle_username,b.os_user_name from
v$process p,v$session a, v$locked_object b,all_objects c
where p.addr=a.p ......