ORACLE³£Óýű¾ÃüÁî
Óû§µÄ¹ÜÀí
Ò»¡¢ORACLEµÄ°²È«Óò
1¡¢TABLESPACE QUOTAS£º±í¿Õ¼äµÄʹÓö¨¶î
2¡¢DEFAULT TABLESPACE£ºÄ¬Èϱí¿Õ¼ä
3¡¢TEMPORARY TABLESPACE£ºÖ¸¶¨ÁÙʱ±í¿Õ¼ä¡£
4¡¢ACCOUNT LOCKING£ºÓû§Ëø
5¡¢RESOURCE LIMITE£º×ÊÔ´ÏÞÖÆ
6¡¢DIRECT PRIVILEGES£ºÖ±½ÓÊÚȨ
7¡¢ROLE PRIVILEGES£º½ÇÉ«ÊÚȨÏȽ«Ó¦ÓÃÖеÄÓû§»®Îª²»Í¬µÄ½ÇÉ«£¬
¶þ¡¢´´½¨Óû§Ê±µÄÇåµ¥£º
1¡¢Ñ¡ÔñÒ»¸öÓû§Ãû³ÆºÍ¼ìÑé»úÖÆ£ºA£¬¿´µ½Óû§Ãû£¬Êµ¼Ê²Ù×÷ÕßÊÇË£¬ÒµÎñÖнÇÉ«¡£
2¡¢Ñ¡ÔñºÏÊʵıí¿Õ¼ä£º
3¡¢¾ö¶¨¶¨¶î£º
4¡¢¿ÚÁîµÄÑ¡Ôñ£º
5¡¢ÁÙʱ±í¿Õ¼äµÄÑ¡Ôñ£ºÏȽ¨Á¢Ò»¸öÁÙʱ±í¿Õ¼ä£¬È»ºóÔÚ·ÖÅä¡£²»·ÖÅ䣬ʹÓÃSYSTEM±í¿Õ¼ä
6¡¢CREATE USER
7¡¢ÊÚȨ£ºA£¬Óû§µÄ¹¤×÷Ö°ÄÜ
B£¬Óû§µÄ¼¶±ð
Èý¡¢Óû§µÄ´´½¨£º
1¡¢ÃüÁ
CREATE USER Ãû³Æ IDENTIFIED BY ¿ÚÁî DEFAULT TABLESPACE ĬÈϱí¿Õ¼äÃû TEMPOARAY
TABLESPACE ÁÙʱ±í¿Õ¼äÃû
QUOTA 15M ON ±í¿Õ¼äÃû
[PASSWORD EXPIRE]£ºµ±Óû§µÚÒ»´ÎµÇ½µ½ORACLE£¬´´½¨Ê±ËùÖ¸¶¨µÄ¿ÚÁî¹ýÆÚʧЧ£¬Ç¿ÆÈÓû§×Ô¼º¶¨ÒåÒ»¸öпÚÁî¡£
[ACCOUNT LOCK]£º¼ÓÓû§Ëø
QUOTA UNLIMITED ON TABLESPACE£º²»ÏÞÖÆ£¬ÓжàÉÙÓжàÉÙ¡£
[PROFILE Ãû³Æ]£ºÊÜPROFILEÎļþµÄÏÞÖÆ¡£
ËÄ¡¢ÈçºÎ¿ØÖÆÓû§¿ÚÁîºÍÓû§Ëø
1¡¢Ç¿ÆÈÓû§Ð޸ĿÚÁALTER USER Ãû³Æ IDENTIFIED BY пÚÁî PASSWORD EXPIRE£»
2¡¢¸øÓû§¼ÓËø£ºALTER USER Ãû³Æ ACCOUNT [LOCK|UNLOCK]
3¡¢×¢ÒâÊÂÏ
A¡¢ËùÓвÙ×÷¶Ôµ±Ç°Á¬½ÓÎÞЧ
B¡¢1µÄ²Ù×÷ÊÊÓÃÓÚµ±Óû§Íü¼Ç¿ÚÁîʱ¡£
Îå¡¢¸ü¸Ä¶¨¶î
1¡¢ÃüÁALTER USER Ãû³Æ QUOTA 0 ON ±í¿Õ¼äÃû
ALTER USER Ãû×Ö QUOTA £¨ÊýÖµ£©K|M|UNLIMITED ON ±í¿Õ¼äÃû£»
2¡¢Ê¹Ó÷½·¨£º
A¡¢¿ØÖÆÓû§Êý¾ÝÔö³¤
B¡¢µ±Óû§ÓµÓÐÒ»¶¨µÄÊý¾Ý£¬¶ø¹ÜÀíÔ±²»ÏëÈÃËûÔÚÔö¼ÓеÄÊý¾ÝµÄʱºò¡£
C¡¢µ±½«Óû§¶¨¶îÉèΪÁãµÄʱºò£¬Óû§²»ÄÜ´´½¨ÐµÄÊý¾Ý£¬µ«ÔÓÐÊý¾ÝÈÔ¿É·ÃÎÊ¡£
Áù¡¢DROPÒ»¸öUSER
1¡¢DROP USER Ãû³Æ
ÊʺÏÓÚɾ³ýÒ»¸öеÄÓû§
2¡¢DROP USER Ãû³Æ CASCADE£º ɾ³ýÒ»¸öÓû§£¬½«Óû§µÄ±í£¬Ë÷ÒýµÈ¶¼É¾³ý¡£
3¡¢¶ÔÁ¬½ÓÖеÄÓû§²»ºÃÓá£
Æß¡¢ÐÅÏ¢»ñÈ¡£º
1¡¢DBA_USERS:Óû§Ãû£¬×´Ì¬£¬¼ÓËøÈÕÆÚ£¬Ä¬Èϱí¿Õ¼ä£¬ÁÙʱ±í¿Õ¼ä
2¡¢DBA_TS_QUOTAS:Óû§Ãû£¬±í¿Õ¼äÃû£¬¶¨¶î¡£
Á½¸ö±íµÄÁ¬½Ó×ֶΣºUSERNAME
GRANT CREATE SESSION TO ̞
PROFILEµÄ¹ÜÀí£¨×ÊÔ´
Îļþ£©
Ò»¡¢PROFILEµÄ¹ÜÀíÄÚÈÝ£º
1¡¢CPUµÄʱ¼ä
2¡¢I/OµÄʹÓÃ
3
Ïà¹ØÎĵµ£º
ORACLE PL/SQLÓëSQL SERVER T-SQLһЩ±È½Ï
×Ö·û´®Á¬½Ó
OracleÓÃ|| ·ûºÅ×÷ΪÁ¬½Ó·û£¬¶øSQL ServerµÄÁ¬½Ó·ûÊǼӺţº+ ¡£
Oracle²éѯÈçÏÂËùʾ£ºSelect ‘Name’ || ‘Last Name’ from tableName
SQL Server²éѯÈçÏ£ºSelect ‘Name’ + ‘Last Name’
GUID
OracleÓÃSYS_GUID ......
½ñÌì¸Õ×°ÁË oracle
¼Ç¼һ²¿·Ö´úÂë ÒÔ±¸Ê¹ÓÃ
cmd²Ù×÷
Á¬½ÓÊý¾Ý¿â sqlplus "Óû§Ãû/ÃÜÂë"
²»Çø·Ö´óСд
c/Ô´Ê/Ð޸ĺó ÐÞ¸ÄsqlÓï¾ä
lÊý×Ö Êý×Ö ÏÔʾ¼¸Ðе½¼¸ºÅµÄsqlÓï¾ä
/Ö´ÐÐ
shutdown ¹Ø±Õ·þÎñ
startup Æô¶¯·þÎñ
save ·¾¶/ÎļþÃû.ºó׺ ±£´æ»º³åÇøsqlÓï¾ä
get Îļþ ......
oracleÌṩÈýÖָ߼¶±¸·Ý¹¦ÄÜ
¸ß¼¶¸´ÖÆ£¨Advanced Replication£©
Á÷¸´ÖÆ£¨Streams Replication£©
±¸¿â£¨Dataguard£©
Ò» dataguard£º
dataguardÔڸ߿ÉÓü°ÈÝÔÖ·½ÃæÒ»°ãÊÇdbaµÄÊ×Ñ¡£¬²»¹ÜÊÇÎïÀí±¸Óÿ⣨physical standby database£©»¹ÊÇÂß¼±¸Óÿ⣨logical standby database£©£¬ËüÃǶ¼¾ßÓÐһЩ¹²Í¬µÄ´ýÕ÷¡£
ÅäÖú͹ÜÀí· ......
¡¡¡¡alter any cluster ÐÞ¸ÄÈÎÒâ´ØµÄȨÏÞ
¡¡¡¡alter any index ÐÞ¸ÄÈÎÒâË÷ÒýµÄȨÏÞ
¡¡¡¡alter any role ÐÞ¸ÄÈÎÒâ½ÇÉ«µÄȨÏÞ
¡¡¡¡alter any sequence ÐÞ¸ÄÈÎÒâÐòÁеÄȨÏÞ
¡¡¡¡alter any snapshot ÐÞ¸ÄÈÎÒâ¿ìÕÕµÄȨÏÞ
¡¡¡¡alter any table ÐÞ¸ÄÈÎÒâ±íµÄȨÏÞ
¡¡¡¡alter any trigger ÐÞ¸ÄÈÎÒâ´¥·¢Æ÷µÄȨÏÞ
¡¡¡¡alter clu ......
·ÖÇø±í¡¢·ÖÇøË÷ÒýºÍÈ«¾ÖË÷Òý£º
ÔÚÒ»¸ö±íµÄÊý¾Ý³¬¹ý¹ý2000ÍòÌõ»òÕ¼ÓÃ2G¿Õ¼äʱ£¬½¨Ò齨Á¢·ÖÇø±í¡£
create table ta(c1 int,c2 varchar2(16),c3 varchar2(64),c4 int constraint pk_ta primary key (c1)) partition by range(c1)(partition p1 values less than (10000000),partition p2 values less than (20000000),part ......