Oracle ²é¿´Óû§È¨ÏÞÒÔ¼°Ë÷Òý
1.²é¿´ËùÓÐÓû§
select * from all_users; -------²é¿´ËùÓеÄÓû§
select * from user_users; --------²é¿´µ±Ç°Óû§
2.²é¿´Óû§»ò½ÇɫϵͳȨÏÞ£º
select * from user_sys_privs; --------²é¿´µ±Ç°Óû§µÄȨÏÞ
3.²é¿´½ÇÉ«Ëù°üº¬µÄȨÏÞ
select * from role_sys_privs; -------
4.²é¿´Óû§¶ÔÏóȨÏÞ
select * from all_tab_privs; --------²é¿´ËùÓõÄÓû§µÄ¿É²Ù×÷±íȨÏÞ
select * from user_tab_privs; --------²é¿´µ±Ç°Óû§µÄ±í¿É²Ù×÷ȨÏÞ
5.²é¿´Óû§»ò½ÇÉ«ËùÓµÓеĽÇÉ«
select * from user_role_privs; ------²é¿´µ±Ç°Óû§µÄ½ÇÉ«
²é¿´±íµÄÔ¼ÊøÌõ¼þ°üº¬£ºÖ÷¼ü Íâ¼ü¡£ ÒÔ¼°Ë÷Òý
select * from user_constraints where TABLE_NAME='£¿'; -----²é¿´Ä³Ò»¸ö±íµÄÔ¼Êø
select constraint_type,constraint_name,search_condition from all_constraints
where table_name='£¿';
select * from user_cons_columns where TABLE_NAME='£¿'; -----ijһ¸öÔ¼ÊøµÄ¹¹³É
select index_name,index_type,status,blevel from user_indexes where table_name = '£¿'; -----²é¿´Ä³Ò»¸ö±íµÄËùÓÐË÷Òý
SELECT table_name, index_name, column_name, column_position from user_ind_columns WHERE table_name='£¿'; ----²é¿´Ë÷ÒýµÄ¹¹³É
Ïà¹ØÎĵµ£º
°²×°¸ÅÊö
±¾Æª½éÉÜÈçºÎ°²×°OracleÈí¼þ£¬Òª°²×°OracleÈí¼þÍƼöʹÓÃOracleͨÓð²×°¡£OracleͨÓð²×°³ÌÐòÊÇÒ»¸öͼÐÎÓû§½çÃ棨GUI£©¹¤¾ß£¬Ê¹Äú¿ÉÒԲ鿴OracleÈí¼þÒÑÔÚ¼ÆËã»úÉÏ°²×°»ò°²×°ÐµÄOracleÈí¼þ£¬²¢Ð¶ÔØOracleÈí¼þ£¬ÒÔϽ«ÐÖúÄúÍê³É°²×°¹ý³Ì¡£
¼ì²éÏȾöÌõ¼þ
°²×°³ÌÐò֮ǰ£¬Oracle¹«Ë¾Ö´ÐÐÒ»¸öÏȾöÌõ¼þ¼ì²éµÄ×Ô¶¯±àº ......
Èí¼þÏÂÔØ
µ½http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.htmlÏÂÔØÈçÏÂÈý¸ö°ü£º
instantclient-basic-win32-11.1.0.7.0.zip
instantclient-jdbc-win32-11.1.0.7.0.zip
instantclient-sqlplus-win32-11.1.0.7.0.zip
½«ÕâÈý¸ö°ü·Ö±ð½âѹ£¬È»ºóÄÚÈݷŵ½D:\instantclient_11_1ÏÂ
......
1.ÓÃOracleÓû§µÇ½Linux·þÎñÆ÷;
2.ÔÚÖն˴°¿ÚÊäÈë sqlplus /nolog
[oracle@hylinux ~]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on ÐÇÆÚ¶þ 7ÔÂ 29 14:26:16 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
& ......
oracle ·ÖÇø±íµÄ½¨Á¢·½·¨
OracleÌṩÁË·ÖÇø¼¼ÊõÒÔÖ§³ÖVLDB(Very Large DataBase)¡£·ÖÇø±íͨ¹ý¶Ô·ÖÇøÁеÄÅжϣ¬°Ñ·ÖÇøÁв»Í¬µÄ¼Ç¼£¬·Åµ½²»Í¬µÄ·ÖÇøÖС£·ÖÇøÍêÈ«¶ÔÓ¦ÓÃ͸Ã÷¡£
OracleµÄ·ÖÇø±í¿ÉÒÔ°üÀ¨¶à¸ö·ÖÇø£¬Ã¿¸ö·ÖÇø¶¼ÊÇÒ»¸ö¶ÀÁ¢µÄ¶Î£¨SEGMENT£©£¬¿ÉÒÔ´æ·Åµ½²»Í¬µÄ±í¿Õ¼äÖС£²éѯʱ¿ÉÒÔͨ¹ý²éѯ±íÀ´·ÃÎʸ÷¸ö· ......