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

OracleÓû§½ÇɫȨÏÞ¹ÜÀí

£¨Ò»£©Ê²Ã´½ÐÓû§£¨user£©£º
A user is a name defined in the database that can connect to and access objects.
Óû§ÊÇÓÃÁ¬½ÓÊý¾Ý¿âºÍ·ÃÎÊÊý¾Ý¿â¶ÔÏóµÄ¡££¨Óû§ÊÇÓÃÀ´Á¬½ÓÊý¾Ý¿â·ÃÎÊÊý¾Ý¿â£©¡£
£¨¶þ£©Ê²Ã´½Ðģʽ(schema)£º
A schema is a collection of database objects (used by a user.).
Schema objects are the logical structures that directly refer to the database’s data.
ģʽÊÇÊý¾Ý¿â¶ÔÏóµÄ¼¯ºÏ¡£Ä£Ê½¶ÔÏóÊÇÊý¾Ý¿âÊý¾ÝµÄÂß¼­½á¹¹¡£
£¨°ÑÊý¾Ý¿â¶ÔÏóÓÃģʽ·Ö¿ª³É²»Í¬µÄÂß¼­½á¹¹£©¡£
£¨Èý£©Óû§£¨user£©Óëģʽ(schema)µÄÇø±ð£º
Schemas and users help database administrators manage database security.
Óû§ÊÇÓÃÀ´Á¬½ÓÊý¾Ý¿â¶ÔÏ󡣶øģʽÓÃÊÇÓô´½¨¹ÜÀí¶ÔÏóµÄ¡£Ä£Ê½¸úÓû§ÔÚoracle ÊÇÒ»¶ÔÒ»µÄ¹Øϵ¡£
£¨ ²»¹ýdb2È´²»Í¬£¬db2 Ò»¸öÓû§¿ÉÒÔ¶ÔÓ¦¶à¸öģʽ£¬db2 Óû§ÊÇϵͳ£¬ËûÊ×ÏȱØÐë»ñµÃϵͳÓû§²ÅÄܳÉΪÊý¾Ý¿âÓû§£¬Ò²¾ÍÊÇÊý¾Ý¿âÓû§¾ÍÊÇϵͳÓû§£¬Ö»ÓÐģʽ²ÅÊÇÊý¾Ý¿âÀàËÆÓû§¡£ÓÐÐËȤ¿ÉÒÔÈ¥Ñо¿¡£ÕâÀï¾Í²»ÅÜÌâÁË£¬ÕâÒ²ÊÇdb2ÌØÓеģ©¡£
´Ó¶¨ÒåÖÐÎÒÃÇ¿ÉÒÔ¿´³öschemaΪÊý¾Ý¿â¶ÔÏóµÄ¼¯ºÏ£¬ÎªÁËÇø·Ö¸÷¸ö¼¯ºÏ£¬ÎÒÃÇÐèÒª¸øÕâ¸ö¼¯ºÏÆð¸öÃû×Ö£¬ÕâЩÃû×Ö¾ÍÊÇÎÒÃÇÔÚÆóÒµ¹ÜÀíÆ÷µÄ·½°¸Ï¿´µ½µÄÐí¶àÀàËÆÓû§ÃûµÄ½Úµã£¬ÕâЩÀàËÆÓû§ÃûµÄ½ÚµãÆäʵ¾ÍÊÇÒ»¸öschema£¬schemaÀïÃæ°üº¬Á˸÷ÖÖ¶ÔÏóÈçtables, views, sequences, stored procedures, synonyms, indexes, clusters, and database links¡£Ò»¸öÓû§Ò»°ã¶ÔÓ¦Ò»¸öschema,¸ÃÓû§µÄschemaÃûµÈÓÚÓû§Ãû£¬²¢×÷Ϊ¸ÃÓû§È±Ê¡schema¡£ÕâÒ²¾ÍÊÇÎÒÃÇÔÚÆóÒµ¹ÜÀíÆ÷µÄ·½°¸Ï¿´µ½schemaÃû¶¼ÎªÊý¾Ý¿âÓû§ÃûµÄÔ­Òò¡£OracleÊý¾Ý¿âÖв»ÄÜд´½¨Ò»¸öschema£¬ÒªÏë´´½¨Ò»¸öschema£¬Ö»ÄÜͨ¹ý´´½¨Ò»¸öÓû§µÄ·½·¨½â¾ö(OracleÖÐËäÈ»ÓÐcreate schemaÓï¾ä£¬µ«ÊÇËü²¢²»ÊÇÓÃÀ´´´½¨Ò»¸öschemaµÄ)£¬ÔÚ´´½¨Ò»¸öÓû§µÄͬʱΪÕâ¸öÓû§´´½¨Ò»¸öÓëÓû§ÃûͬÃûµÄschem²¢×÷Ϊ¸ÃÓû§µÄȱʡshcema¡£¼´schemaµÄ¸öÊýͬuserµÄ¸öÊýÏàͬ£¬¶øÇÒschemaÃû×ÖͬuserÃû×ÖÒ»Ò» ¶ÔÓ¦²¢ÇÒÏàͬ£¬ËùÓÐÎÒÃÇ¿ÉÒÔ³ÆschemaΪuserµÄ±ðÃû£¬ËäÈ»ÕâÑù˵²¢²»×¼È·£¬µ«ÊǸüÈÝÒ×Àí½âһЩ¡£Ò»¸öÓû§ÓÐÒ»¸öȱʡµÄschema£¬ÆäschemaÃû¾ÍµÈÓÚÓû§Ãû£¬µ±È»Ò»¸öÓû§»¹¿ÉÒÔʹÓÃÆäËûµÄschema¡£Èç¹ûÎÒÃÇ·ÃÎÊÒ»¸ö±íʱ£¬Ã»ÓÐÖ¸Ã÷¸Ã±íÊôÓÚÄÄÒ»¸öschemaÖеģ¬ÏµÍ³¾Í»á×Ô¶¯¸øÎÒÃÇÔÚ±íÉϼÓÉÏȱʡµÄshemanÃû¡£±ÈÈçÎÒÃÇÔÚ·ÃÎÊÊý¾Ý¿âʱ£¬·ÃÎÊscottÓû§ÏµÄemp±í£¬Í¨¹ýselect *


Ïà¹ØÎĵµ£º

oracle·ÖÒ³

racle·ÖÒ³²éѯÓï¾ä
ĬÈÏ·ÖÀà   2009-12-23 18:17   ÔĶÁ43   ÆÀÂÛ0   ×ֺţº ´ó´ó  ÖÐÖР СС Oracle·ÖÒ³²éѯÓï¾ä
±¾ÎÄתÔØ×Ô£ºyangtingkun.itpub.net/post/468/100278
OracleµÄ·ÖÒ³²éѯÓï¾ä»ù±¾ÉÏ¿ÉÒÔ°´ÕÕ±¾Îĸø³öµÄ¸ñʽÀ´½øÐÐÌ×Óá£
·ÖÒ³²éѯ¸ñʽ£º
sql ´úÂë ......

Oracle ѧϰ֪ʶµã£¨Ò»£©

 Ò» µÇ¼SQLPLUS
    sqlplusÓû§Ãû/ÃÜÂë@Êý¾Ý¿âʵÀýasµÇ¼½ÇÉ«;
Èç:Óû§sys(ÃÜÂëΪ123)ÒÔsysdbaµÄ½ÇÉ«µÇ¼Êý¾Ý¿âORACL£¬ÎÒÃÇ¿ÉÒÔÊäÈ룺sqlplus sys/123@oracl as sysdba;
    ÕâÖֵǼ·½Ê½»áÖ±½Ó±©Â¶ÃÜÂ룬Èç¹ûÏëÒþ²ØÃÜÂ룬¿ÉÒÔÔÚ´ËÊ¡ÂÔÃÜÂëµÄÊäÈ룬È磺sqlplus sys@oracl as sysdb ......

OracleÁ½±í(¶à±í)¹ØÁªupdateµÄд·¨

update customers a
   set    city_name=(select b.city_name from tmp_cust_city b where b.customer_id=a.customer_id)
   where  exists (select 1
                  from  ......

OracleµÄÔÚÏßÖض¨Òå

Basic Steps for Manual Online Reorganization Commands and procedures used:
1.DBMS_REDEFINITION.CAN_REDEF_TABLE
2.CREATE TABLE …
3.DBMS_REDEFINITION.START_REDEF_TABLE
4.DBMS_REDEFINITION.COPY_TABLE_DEPENDENTS and DBMS_REDEFINITION.CONS_ORIG_PAGRAMS
SELECT object_name,base_table_name, ......

ORACLEÊý¾Ý¿âÓû§ÓëȨÏÞ¹ÜÀí


ORACLEÊǶàÓû§ÏµÍ³£¬ËüÔÊÐíÐí¶àÓû§¹²Ïíϵͳ×ÊÔ´¡£ÎªÁ˱£Ö¤Êý¾Ý¿âϵͳµÄ°²È«£¬Êý¾Ý¿â¹ÜÀíϵͳÅäÖÃÁËÁ¼ºÃµÄ°²È«»úÖÆ¡£

2. 1 ORACLEÊý¾Ý¿â°²È«²ßÂÔ

½¨Á¢ÏµÍ³¼¶µÄ°²È«±£Ö¤
ϵͳ¼¶ÌØȨÊÇͨ¹ýÊÚÓèÓ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ