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

Oracle DBA ±ÊÊÔÌâ

author£ºskate
time£º2010-05-26
Oracle DBA ±ÊÊÔÌâ
£¨´ðÌâʱ¼ä60·ÖÖÓ£©
ÍøÉÏ¿´¼ûһƪDBAµÄÃæÊÔÌ⣬¾õµÃͦʵÓõģ¬¶ø²»ÏñÓеÄÃæÊÔŪµÃºÜÐ飬ºÜÀíÏ뻯¡£
Unix/Linux퉀1¡¢ÈçºÎ²é¿´Ö÷»úcpu£¬ÄÚ´æ¡¢IPºÍ´ÅÅÌ¿Õ¼ä?
2¡¢Äã³£ÓõĽø³Ì¹ÜÀí¡¢Ö÷»úÐÔÄܲ쿴ÃüÁîÓÐÄÄЩ£¿
3¡¢½¨Á¢×édbaºÍ¸Ã×éÏÂÓû§oracle£¬Ä¬ÈÏshellΪbash¡£
4¡¢ÈçºÎ²é¿´Óû§oracleµÄµÇ½ÀúÊ·ºÍÃüÁî²Ù×÷ÀúÊ·£¿
5¡¢Ð´crontab£¬Èýű¾/opt/test.shÔÚÿÖÜÈÕÍíÉÏ8:00Ö´ÐС£
6¡¢ÈçºÎ²éÕÒµ±Ç°Ä¿Â¼¼°ÆäËùÓÐ×ÓĿ¼Ïº¬ÓГORA-”»ò“warning”×Ö·ûÄÚÈݵÄËùÓдølogºó׺µÄÎļþ¡£
7¡¢Ð´Ò»¸öshell£¬Íê³É×Ô¶¯µÇ½Êý¾Ý¿â£¨Óû§ÃûÃÜÂëÊÇtest/testpwd, ÍøÂçÁ¬½Ó´®ÊÇdb_wending£©²¢»ñÈ¡Êý¾Ý¿âµ±Ç°SCNµÄ¹¦ÄÜ¡£
Oracle Database퉀1¡¢ÈçºÎ¿ìËÙÁ˽âÒ»¸öÒѾ­ÔËÐкܾõÄÊý¾Ý¿âϵͳ£¿
2¡¢ÈçºÎ»ñµÃSQLÓï¾äµÄÖ´Ðмƻ®ºÍͳ¼ÆÐÅÏ¢£¿
3¡¢ÁгöÄã³£ÓõÄÊý¾Ý×ÖµäÊÓͼºÍ¶¯Ì¬ÐÔÄÜÊÓͼ¡£
4¡¢³ÂÊöʹÓùýµÄÊý¾Ý¿â±¸·ÝºÍ»Ö¸´¼¼Êõ£¬¼°ÆäÓÅȱµã¡£
5¡¢ÃèÊö table/segment/tablespace/datafile/extent/block Ö®¼äµÄ¹Øϵ¡£
6¡¢Ç°Ì¨ÏµÍ³·´Ó³·Ç³£Âý£¬ÐèÒªÄãÈ¥·ÖÎöÕï¶Ï¡£ÇëÏêϸ³ÂÊöÕï¶ÏÁ÷³Ì£¬°üÀ¨Ð´Ï¿ÉÄÜÓõ½µÄ²Ù×÷ϵͳÃüÁî¡¢Êý¾Ý¿âÊÓͼµÈ¡£
7¡¢¹«Ë¾×¼±¸°ÑOracle9iÉý¼¶ÎªOracle10.2.0.4£¬µ«Åú×¼µÄÍ£¿âʱ¼ä½öΪ10·ÖÖÓ£¬Äã´òËãÈçºÎÓ¦¶Ô£¿
8¡¢Ïêϸ³ÂÊöRAC¡¢Dataguard¡¢Streams Replication¡¢Advanced ReplicationµÈOracle HA¼¼ÊõµÄÔ­ÀíºÍÓÅȱµã¡£
9¡¢Ð´´æ´¢¹ý³Ì£¬°Ñµ±Ç°Óû§ÏÂÊý¾Ý¿â¶ÔÏó¸öÊýÐÅÏ¢°´¶ÔÏóÀàÐÍ·Ö×éÊä³öÀ´¡£
10¡¢ÇëдÏÂÄã³£¹Ø×¢µÄoracle³õʼ»¯²ÎÊý¡£
---end---


Ïà¹ØÎĵµ£º

OracleµÄ»ù±¾²Ù×÷£«Oracle×Ö¶ÎÀàÐÍ£¨zz£©

ÔÚOracle¹ØÓÚʱ¼äÊôÐԵĽ¨±í
Example:
create table courses(
cid varchar(20) not null primary key,
cname varchar(20) not null,
ctype integer,
ctime date DEFAULT SYSDATE,
cscore float not null
)
insert into courses values('ss01','java',0,TO_DATE('2009-8-28','yyyy-mm-dd'),94)
insert into course ......

Ubuntu10.04Ï°²×°Oracle 10G






<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
-->
¹«ÍøÖÕÓÚͨµÄ£¬ÎÒµÄubuntu
Ò²ÖÕÓÚ¿ÉÒÔ¼ÌÐøʹÓÃÁË¡£¡£¡£


Ê×ÏȰѱ¾×ÓµÄubuntu
´Ó9.04
Éý¼¶µ½10.04
£¬·¢ÏÖϵͳ±ä³ÉÓ¢ºº»ìÓÃÁË£¬ÖØÑ¡ÓïÑÔÖ§³Ö°üÒ²²»¿ÉÒÔ£¬ÊäÈë·¨Ò²Ìí¼Ó²»ÉÏ£¬µ¹ÊÇûÓÐÍøÉÏÓÐÈËÌáµ½µÄϵͳÏìÓ¦·Ç³£»ºÂýµÄÎ ......

ÈçºÎÐÞ¸ÄOracleĬÈÏÓû§ÃÜÂëÓÐЧÆÚʱ¼ä

ÈçºÎÐÞ¸ÄOracleĬÈÏÓû§ÃÜÂëÓÐЧÆÚʱ¼ä
1¡¢²é¿´Óû§µÄproifleÊÇÄĸö£¬Ò»°ãÊÇdefault£º
     sql>SELECT username,PROFILE from dba_users;
2¡¢²é¿´Ö¸¶¨¸ÅÒªÎļþ£¨Èçdefault£©µÄÃÜÂëÓÐЧÆÚÉèÖãº
     sql>  SELECT * from dba_profiles s WHERE 
   ......

oracle³£¼ûÓï¾ä

----±¾Óû§ËùÓµÓеÄϵͳȨÏÞ:
select * from user_sys_privs;
---±¾Óû§¶ÁÈ¡ÆäËûÓû§¶ÔÏóµÄȨÏÞ:
¡¡select * from user_tab_privs;
-----Ìí¼ÓȨÏÞ
GRANT CREATE USER,DROP  USER,ALTER USER ,CREATE ANY VIEW ,
DROP ANY  VIEW,EXP_FULL_DATABASE,IMP_FULL_DATABASE,
DBA,CONNECT,RESOURCE,CREATE&nbs ......

Oracle¶àÐмǼºÏ²¢/Á¬½Ó/¾ÛºÏ×Ö·û´®µÄ¼¸ÖÖ·½·¨

ʲôÊǺϲ¢¶àÐÐ×Ö·û´®£¨Á¬½Ó×Ö·û´®£©ÄØ£¬ÀýÈ磺
SQL> desc test;
Name     Type          Nullable Default Comments
------- ------------ -------- ------- --------
COUNTRY VARCHAR2(20) Y       &nb ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ