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

OracleÓû§¡¢È¨ÏÞ¡¢½ÇÉ«¹ÜÀí

OracleÓû§¡¢È¨ÏÞ¡¢½ÇÉ«¹ÜÀí
Oracle ȨÏÞÉèÖÃ
Ò»¡¢È¨ÏÞ·ÖÀࣺ
ϵͳȨÏÞ£ºÏµÍ³¹æ¶¨Óû§Ê¹ÓÃÊý¾Ý¿âµÄȨÏÞ¡££¨ÏµÍ³È¨ÏÞÊǶÔÓû§¶øÑÔ)¡£
ʵÌåȨÏÞ£ºÄ³ÖÖȨÏÞÓû§¶ÔÆäËüÓû§µÄ±í»òÊÓͼµÄ´æȡȨÏÞ¡££¨ÊÇÕë¶Ô±í»òÊÓͼ¶øÑԵģ©¡£
¶þ¡¢ÏµÍ³È¨ÏÞ¹ÜÀí£º
1¡¢ÏµÍ³È¨ÏÞ·ÖÀࣺ
DBA: ÓµÓÐÈ«²¿ÌØȨ£¬ÊÇϵͳ×î¸ßȨÏÞ£¬Ö»ÓÐDBA²Å¿ÉÒÔ´´½¨Êý¾Ý¿â½á¹¹¡£
RESOURCE:ÓµÓÐResourceȨÏÞµÄÓû§Ö»¿ÉÒÔ´´½¨ÊµÌ壬²»¿ÉÒÔ´´½¨Êý¾Ý¿â½á¹¹¡£
CONNECT:ÓµÓÐConnectȨÏÞµÄÓû§Ö»¿ÉÒԵǼOracle£¬²»¿ÉÒÔ´´½¨ÊµÌ壬²»¿ÉÒÔ´´½¨Êý¾Ý¿â½á¹¹¡£
¶ÔÓÚÆÕͨÓû§£ºÊÚÓèconnect, resourceȨÏÞ¡£
¶ÔÓÚDBA¹ÜÀíÓû§£ºÊÚÓèconnect£¬resource, dbaȨÏÞ¡£
2¡¢ÏµÍ³È¨ÏÞÊÚȨÃüÁ
[ϵͳȨÏÞÖ»ÄÜÓÉDBAÓû§ÊÚ³ö£ºsys, system(×ʼֻÄÜÊÇÕâÁ½¸öÓû§)]
ÊÚȨÃüÁSQL> grant connect, resource, dba to Óû§Ãû1 [,Óû§Ãû2]...;
[ÆÕͨÓû§Í¨¹ýÊÚȨ¿ÉÒÔ¾ßÓÐÓësystemÏàͬµÄÓû§È¨ÏÞ£¬µ«ÓÀÔ¶²»ÄÜ´ïµ½ÓësysÓû§ÏàͬµÄȨÏÞ£¬systemÓû§µÄȨÏÞÒ²¿ÉÒÔ±»»ØÊÕ¡£]
Àý£º
SQL> connect system/manager
SQL> Create user user50 identified by user50;
SQL> grant connect, resource to user50;
²éѯÓû§ÓµÓÐÄÄÀïȨÏÞ£º
SQL> select * from dba_role_privs;
SQL> select * from dba_sys_privs;
SQL> select * from role_sys_privs;
ɾ³ýÓû§£ºSQL> drop user Óû§Ãû cascade;  //¼ÓÉÏcascadeÔò½«Óû§Á¬Í¬Æä´´½¨µÄ¶«Î÷È«²¿É¾³ý
3¡¢ÏµÍ³È¨ÏÞ´«µÝ£º
Ôö¼ÓWITH ADMIN OPTIONÑ¡ÏÔòµÃµ½µÄȨÏÞ¿ÉÒÔ´«µÝ¡£
SQL> grant connect, resorce to user50 with admin option;  //¿ÉÒÔ´«µÝËù»ñȨÏÞ¡£
4¡¢ÏµÍ³È¨ÏÞ»ØÊÕ£ºÏµÍ³È¨ÏÞÖ»ÄÜÓÉDBAÓû§»ØÊÕ
ÃüÁSQL> Revoke connect, resource from user50;
˵Ã÷£º
1£©Èç¹ûʹÓÃWITH ADMIN OPTIONΪij¸öÓû§ÊÚÓèϵͳȨÏÞ£¬ÄÇô¶ÔÓÚ±»Õâ¸öÓû§ÊÚÓèÏàͬȨÏÞµÄËùÓÐÓû§À´Ëµ£¬È¡Ïû¸ÃÓû§µÄϵͳȨÏÞ²¢²»»á¼¶ÁªÈ¡ÏûÕâЩÓû§µÄÏàͬȨÏÞ¡£
2£©ÏµÍ³È¨ÏÞÎÞ¼¶Áª£¬¼´AÊÚÓèBȨÏÞ£¬BÊÚÓèCȨÏÞ£¬Èç¹ûAÊÕ»ØBµÄȨÏÞ£¬CµÄȨÏÞ²»ÊÜÓ°Ï죻ϵͳȨÏÞ¿ÉÒÔ¿çÓû§»ØÊÕ£¬¼´A¿ÉÒÔÖ±½ÓÊÕ»ØCÓû§µÄȨÏÞ¡£
Èý¡¢ÊµÌåȨÏÞ¹ÜÀí
1¡¢ÊµÌåȨÏÞ·ÖÀࣺselect, update, insert, alter, index, delete, all  //all°üÀ¨ËùÓÐȨÏÞ
execute  //Ö´Ðд洢¹ý³ÌȨÏÞ
user01:
SQL> grant select, update, insert on product to user02;
SQL> grant all o


Ïà¹ØÎĵµ£º

OracleÊý¾ÝÎļþµÄÌØÐÔ

ÎÒÃÇ´ó¼Ò¶¼ÖªµÀÿ¸öOracleÊý¾Ý¿â¶¼»áÓÐÒ»¸ö»òÊǶà¸öÎïÀíµÄOracleÊý¾ÝÎļþ,Êý¾Ý¿âÐÅÏ¢(½á¹¹,Êý¾Ý)µÄÖ÷Òª×÷ÓÃÊÇÀ´±£´æÔÚÕâЩÏà¹ØµÄÊý¾ÝÎļþ,¶øÇÒÖ»ÓÐÕâЩÏà¹ØµÄÎļþOracle²ÅÄܹ»½âÊÍÓë¹ÜÀíÕâЩ´æ´¢.OracleÊý¾ÝÎļþ¾ßÓÐÒÔÏÂһЩÌØÐÔ:
1.Ò»¸öÊý¾ÝÎļþ½ö½ö¹ØÁªÒ»¸öÊý¾Ý¿â,OracleÊý¾ÝÎļþÓëÊý¾Ý¿âÖ®¼ä¶ÔÓ¦¹ØϵÊÇÒ»¶ÔÒ»¹Øϵ,µ±È»· ......

out ÁË oracle 8i

½üÀ´½ÓÁ˸ö¼òµ¥µÄϵͳ×ö£¬Íâ°üµÄ£¬ÓõÄÊý¾Ý¿âÊÇoracle8i,
Ò»¿ªÊ¼ÎÒʹÓà ojdbc6.jarÀ´×öÁ¬½Ó£¬Á¬²»ÉÏ£¬ÕÒÒ»·¬£¬Ô­À´¹Ù·½oracle8i³öµÄÇý¶¯Ö»ÓÐ class12.jar ºÍclass14.jar ,×îÒªÃüµÄÊDz»Ö§³Öjdk1.4¼°1.4ÒÔÉϵģ¬¹¤×÷Á¿ÂíÉϾÍÉÏÀ´ÁË¡£²»¸ÊÐÄ°¡¡£
×îºóÊÔÁËÏ£¬ÄÜÓõÄÖ»ÓÐojadb14.jar £¬Á¬ÉÏÁË£¬²»¹ýͨ¹ýhibernateÉú³ÉµÄsqlÊµÔ ......

Oracle ·Çϵͳ±í¿Õ¼ä'noncrit ' ÎÞ·¨Ê¹ÓÃϵͳ»ØÍ˶Î

Ò»£º»Ø¹ö¶Î¸ÅÊö
¡¡¡¡»Ø¹ö¶ÎÓÃÓÚ´æ·ÅÊý¾ÝÐÞ¸Ä֮ǰµÄÖµ£¨°üÀ¨Êý¾ÝÐÞ¸Ä֮ǰµÄλÖúÍÖµ£©¡£»Ø¹ö¶ÎµÄÍ·²¿°üº¬ÕýÔÚʹÓõĸûعö¶ÎÊÂÎñµÄÐÅÏ¢¡£Ò»¸öÊÂÎñÖ»ÄÜʹÓÃÒ»¸ö»Ø¹ö¶ÎÀ´´æ·ÅËüµÄ»Ø¹öÐÅÏ¢£¬¶øÒ»¸ö»Ø¹ö¶Î¿ÉÒÔ´æ·Å¶à¸öÊÂÎñµÄ»Ø¹öÐÅÏ¢¡£
»Ø¹ö¶ÎµÄ×÷ÓÃ
¡¡¡¡ÊÂÎñ»Ø¹ö£ºµ±ÊÂÎñÐ޸ıíÖÐÊý¾ÝµÄʱºò£¬¸ÃÊý¾ÝÐÞ¸ÄÇ°µÄÖµ£¨¼´Ç°Ó°Ïñ£ ......

oracleÖؽ¨ÃÜÂëÎļþ


[oracle@dba01 dbs]$ orapwd file=/oracle/app/oracle/product/10.2.0/db_1/dbs/orapworcl password=oracle entries=20 force=y
[oracle@dba01 dbs]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Sat May 29 13:07:10 2010
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Con ......

oracle Öؽ¨¿ØÖÆÎļþ

ORACLEµÄ¿ØÖÆÎļþÊÇÊý¾Ý¿âµÄ·Ç³£ÖØÒªµÄÎļþ£¬Ëü±£´æ×ÅÊý¾Ý¿âµÄÁ¬½ÓʵÀý(instance)ºÍdatabaseµÄÒ»¸öÇÅÁº£¬Ëü¶¨ÒåÁ˵±Ç°Êý¾Ý¿âÎïÀíÐÅÏ¢µÄ״̬¡£Òò´Ë¿ØÖÆÎļþ¶ÔÓÚÒ»¸öÊý¾Ý¿âÀ´ËµÊǷdz£ÖØÒªµÄ£¬ÔÚijЩʱºòÎÒÃÇÐèÒªÖØд´½¨¿ØÖÆÎļþ£º
1¡£µ±¿ØÖÆÎļþ¶ªÊ§µÄʱºò£¬²¢ÇÒûÓÐ×î½üµÄÎļþCopy±¸·Ý£¨Ò»°ãÔÚ½¨¿âÍê³ÉºóµÄÉú³ÉÒ»¸ö´´½¨Con ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ