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

oracle Ïà關µÄsql語¾ä

Êý¾Ý×Öµädict×ÜÊÇÊôÓÚOracleÓû§sysµÄ¡£
¡¡¡¡1¡¢Óû§£º
¡¡¡¡¡¡select username from dba_users;
¡¡¡¡¸Ä¿ÚÁî
¡¡¡¡¡¡alter user spgroup identified by spgtest;
¡¡¡¡2¡¢±í¿Õ¼ä£º
¡¡¡¡¡¡select * from dba_data_files;
¡¡¡¡¡¡select * from dba_tablespaces;//±í¿Õ¼ä
¡¡¡¡¡¡select tablespace_name,sum(bytes), sum(blocks)
¡¡¡¡¡¡¡¡from dba_free_space group by tablespace_name;//¿ÕÏбí¿Õ¼ä
¡¡¡¡¡¡select * from dba_data_files
¡¡¡¡¡¡¡¡where tablespace_name='RBS';//±í¿Õ¼ä¶ÔÓ¦µÄÊý¾ÝÎļþ
¡¡¡¡¡¡select * from dba_segments
¡¡¡¡¡¡¡¡where tablespace_name='INDEXS';
¡¡¡¡3¡¢Êý¾Ý¿â¶ÔÏó£º
¡¡¡¡¡¡select * from dba_objects;
¡¡¡¡¡¡CLUSTER¡¢DATABASE LINK¡¢FUNCTION¡¢INDEX¡¢LIBRARY¡¢PACKAGE¡¢PACKAGE BODY¡¢
¡¡¡¡¡¡PROCEDURE¡¢SEQUENCE¡¢SYNONYM¡¢TABLE¡¢TRIGGER¡¢TYPE¡¢UNDEFINED¡¢VIEW¡£
¡¡¡¡4¡¢±í£º
¡¡¡¡¡¡select * from dba_tables;
¡¡¡¡¡¡analyze my_table compute statistics;->dba_tablesºó6ÁÐ
¡¡¡¡¡¡select extent_id,bytes from dba_extents
¡¡¡¡¡¡where segment_name='CUSTOMERS' and segment_type='TABLE'
¡¡¡¡¡¡order by extent_id;//±íʹÓõÄextentµÄÐÅÏ¢¡£segment_type='ROLLBACK'²é¿´»Ø¹ö¶ÎµÄ¿Õ¼ä·ÖÅäÐÅÏ¢
¡¡¡¡¡¡ÁÐÐÅÏ¢£º
¡¡¡¡¡¡¡¡select distinct table_name
¡¡¡¡¡¡¡¡from user_tab_columns
¡¡¡¡¡¡¡¡where column_name='SO_TYPE_ID';
¡¡¡¡5¡¢Ë÷Òý£º¡¡
¡¡¡¡¡¡select * from dba_indexes;//Ë÷Òý£¬°üÀ¨Ö÷¼üË÷Òý
¡¡¡¡¡¡select * from dba_ind_columns;//Ë÷ÒýÁÐ
¡¡¡¡¡¡select i.index_name,i.uniqueness,c.column_name
¡¡¡¡¡¡¡¡from user_indexes i,user_ind_columns c
¡¡¡¡¡¡¡¡¡¡where i.index_name=c.index_name
¡¡¡¡¡¡¡¡¡¡and i.table_name ='ACC_NBR';//Áª½ÓʹÓÃ
¡¡¡¡6¡¢ÐòÁУº
¡¡¡¡¡¡select * from dba_sequences;
¡¡¡¡7¡¢ÊÓͼ£º
¡¡¡¡¡¡select * from dba_views;
¡¡¡¡¡¡select * from all_views;
¡¡¡¡text ¿ÉÓÃÓÚ²éѯÊÓͼÉú³ÉµÄ½Å±¾
¡¡¡¡8¡¢¾Û´Ø£º
¡¡¡¡¡¡select * from dba_clusters;
¡¡¡¡9¡¢¿ìÕÕ£º
¡¡¡¡¡¡select * from dba_snapshots;
¡¡¡¡¿ìÕÕ¡¢·ÖÇøÓ¦´æÔÚÏàÓ¦µÄ±í¿Õ¼ä¡£
¡¡¡¡10¡¢Í¬Òå´Ê£º
¡¡¡¡¡¡select * from dba_synonyms
¡¡¡¡¡¡¡¡where table_owner='SPGROUP';
¡¡¡¡¡¡¡¡//if owner is PUBLIC,then the synonyms is a public synonym.
¡¡¡¡¡¡¡¡¡¡if owner is one


Ïà¹ØÎĵµ£º

oracle°üºÍREF CURSOR

     Ê×ÏÈ£¬ÐèÒªÖØÐÂÕûÀíÒ»ÏÂÏà¹Ø¸ÅÄoracleÊý¾Ý¿âÖк¯ÊýµÄ×÷Óã¬ÊÇÖ»Äܱ»±ðÈ˵÷Ó㬴洢¹ý³Ì¿ÉÒÔµ¥¶ÀÖ´ÐУ¬²¢ÇÒ¿ÉÒÔµ÷Óô洢¹ý³Ì£¬¶ø°üµÄ×÷Óðü¿ÉÒÔ½«ÈκγöÏÖÔÚ¿éÉùÃ÷µÄÓï¾ä ( ¹ý³Ì , º¯Êý , Óαê , Óαê , ÀàÐÍ , ±äÁ¿ ) ·ÅÓÚ°üÖÐ , Ï൱ÓÚÒ»¸öÈÝÆ÷ . ½«ÉùÃ÷Óï¾ä·ÅÈë°üÖеĺô¦ÊÇ : Óû§¿ÉÒÔ´ÓÆäË ......

µ¼ÈëOracleʵÀý

--´´½¨Óû§
create user iagent identified by ia
--profile default 
default  tablespace users
temporary tablespace temp;
--account unlock;
 
--ɾ³ýÓû§
drop user iagent cascade;
--ÐÞ¸ÄÓû§ÃÜÂë
  alter  user  iagent  identified   by ia;
--¸ø´´½¨µ ......

oracleµÄlicenseºÍÕý°æʹÓÃÎÊÌâ

oracleµÄlicenseºÍÕý°æʹÓÃÎÊÌâ
url:http://blog.csdn.net/outget1/archive/2009/10/15/4675028.aspx
2008-06-30 23:42
1, Õý°æOracle ²úÆ·ºÍµÁ°æµÄÇø±ð
Ö±±¼Ö÷Ì⣬ÕâÊÇÐí¶àÑз¢²»×¢ÒâµÄµØ·½¡£¶ÔÓÚÉÌÓ㨾ÍÊÇÄã²»ÊÇÔÚ¼ÒÀ×Ô¼ºÍ棩£¬ÑϸñÀ´Ëµ£¬¾ÍÊÇÒ»ÕÅÐí¿ÉÖ¤Ö½µÄÇø±ð¡£²»¹ÜÊÇʲôʱºò£¬ÏÂÔصİ汾¶¼¿ÉÒÔ½¨Á¢Êý¾Ý¿â²¢ ......

oracleÓÅ»¯1

--ÉèÖÃÃÜÂë·¨¹ýÆÚ
alter profile default limit PASSWORD_LIFE_TIME unlimited;
alter profile default limit FAILED_LOGIN_ATTEMPTS unlimited;
--È¡ÏûÉó¼Æ
alter system set audit_trail='FALSE' scope=spfile;
--¶¨ÒåÁ¬½ÓÊý¾Ý¿âµÄ×î´ó½ø³ÌÊý
alter system set processes=1024 scope=spfile;
--¹Ø±ÕÀ¬»ø»ØÊÕÕ¾
al ......

Ê·ÉÏ×îÇ¿µÄFQA for ORACLE(±¸·ÝÓë»Ö¸´²¿·Ö)

Q]ÈçºÎ¿ªÆô/¹Ø±Õ¹éµµ
Q]ÈçºÎ¿ªÆô/¹Ø±Õ¹éµµ
[A]Èç¹û¿ªÆô¹éµµ£¬Çë±£Ö¤log_archive_start=true¿ªÆô×Ô¶¯¹éµµ£¬·ñÔòÖ»ÄÜÊÖ¹¤¹éµµ£¬Èç¹ûÊǹرÕÁ˹鵵£¬ÔòÉèÖøòÎÊýΪfalse
×¢Ò⣺Èç¹ûÊÇOPS/RAC»·¾³£¬ÐèÒªÏÈ°Ñparallel_server = true×¢Ê͵ô£¬È»ºóÖ´ÐÐÈçϲ½Ö裬×îºóÓÃÕâ¸ö²ÎÊýÖØÐÂÆô¶¯
1¡¢¿ªÆô¹éµµ
a. ¹Ø±ÕÊý¾Ý¿âshutdown im ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ