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

Oracle pfile/spfile²ÎÊýÎļþÏê½â

ÔÚ´´½¨Êý¾Ý¿âʱ£¬SPFileÎļþÖв¿·Ö±ØÐ뿼ÂǵIJÎÊýÖµ£º
¡¡¡¡»ù±¾¹æÔò
¡¡¡¡a.ÔÚSPFileÎļþÖУ¬ËùÓвÎÊý¶¼ÊÇ¿ÉÑ¡µÄ£¬Ò²¾ÍÊÇ˵ֻÐèÒªÔÚ³õʼ»¯²ÎÊýÎļþÖÐÁгöÄÇЩÐèÒªÐ޸ĵIJÎÊý£¬ÆäËü±£³ÖĬÈÏÖµ¼´¿É¡£
¡¡¡¡b.SPFileÎļþÖÐÖ»Äܰüº¬²ÎÊý¸³ÖµÓï¾äºÍ×¢ÊÍÓï¾ä¡£×¢ÊÍÓï¾äÒÔ“#”·ûºÏ¿ªÍ·£¬Êǵ¥ÐÐ×¢ÊÍ¡£
¡¡¡¡c.SPFileÎļþÖÐÁгöµÄ²ÎÊýÊDz»·Ö´ÎÐòµÄ¡£
¡¡¡¡d.SPFile²ÎÊýµÄÃû³ÆºÍÖµÊDz»Çø·Ö´óСдµÄ£¬Ö»ÓÐÔÚUnixϵͳÖУ¬ÓÉÓÚ²Ù×÷ϵͳ±¾ÉíÇø·ÖÎļþÃû³ÆºÍ·¾¶µÄ´óСд£¬²ÅÐèÒªÔÚÉèÖòÎÊýʱעÒâ´óСдÎÊÌâ¡£
¡¡¡¡e.ÈôÒªÔÚSPFileÎļþµÄͬһÐÐÉèÖöà¸ö²ÎÊý£¬ÐèҪʹÓÿոñ·Ö¸ô¡£±ÈÈ磺PROCESSES=100 CPU_COUNT=1 OPEN_CURSORS=10
¡¡¡¡f.¶ÔÓÚ¿ÉÒÔ¾ßÓжà¸öÖµµÄ³õʼ»¯²ÎÊý£¬ÐèÒª½«ËùÓеÄÖµ·ÅÔÚÒ»¸öÀ¨ºÅÄÚ£¬²¢Ê¹ÓöººÅ½øÐзָô£¬±ÈÈçROLLBACK_SEGMENTS=(SEG1,SEG2,SEG3,SEG4,SEG5)
¡¡¡¡g.ÔÚSPFileÎļþÖУ¬¿ÉÒÔʹÓÃIFILE²ÎÊýÒýÓÃÆäËüµÄSPFileÎļþ¡£
¡¡¡¡h.¶ÔÓÚ¾ßÓÐ×Ö·û´®ÀàÐÍÖµµÄ²ÎÊý£¬Èç¹û×Ö·û´®Öаüº¬¿Õ¸ñ»òÖÆ±í·û£¬±ØÐëʹÓõ¥ÒýºÅ»òË«ÒýºÅ½«×Ö·û´®À¨ÆðÀ´£¬±ÈÈ磺NLS_TERRITORY="CZECH REPUBLIC"
¡¡¡¡³£ÓòÎÊý£º
¡¡¡¡DB_NAMEºÍDB_DOMAIN
¡¡¡¡È«¾ÖÊý¾Ý¿âÃûͨ³£Óɱ¾µØÊý¾Ý¿â±êʶ£¨DB_NAME£©ºÍÍøÂçÓòÃû£¨DB_DOMAIN£©×é³É£¬ÔÚÍøÂçÖÐΨһ±êʶһ¸öOracle£¬ÔÚÖ»ÓÐÒ»¸öʵÀýµÄÇé¿öÏ£¬DB_NAMEÓëʵÀý±êʶSIDÏàͬ¡£
¡¡¡¡È«¾ÖÊý¾Ý¿âÃûÔÚÊý¾Ý¿â´´½¨ºó¿ÉÒÔ¸ü¸Ä£¬Ê¹Óá¾Alter DataBase RENAME GLOBAL_NAME¡¿Óï¾ä£¬Óï¾äÖ´Ðгɹ¦ºó£¬±ØÐëÖØÆôOracle²¢Öؽ¨¿ØÖÆÎļþ£¨Öؽ¨¿ØÖÆÎļþÊÇÒ»¼þ±È½ÏΣÏյŤ×÷£¬Òò´Ë£¬½¨Òé±ÜÃâÐÞ¸ÄÈ«¾ÖÊý¾Ý¿âÃû£©¡£
¡¡¡¡DB_NAMEͬʱ´æ´¢ÔÚÊý¾ÝÎļþ¡¢¿ØÖÆÎļþºÍÖØ×öÈÕÖ¾ÎļþÖУ¬Èç¹ûDB_NAME²ÎÊýÖ¸¶¨µÄÊý¾Ý¿âÃûÓë¿ØÖÆÎļþµÄ±£³Ö²»Ò»Ö£¬Oracle½«ÎÞ·¨Æô¶¯¡£
¡¡¡¡CONTROL_FILE
¡¡¡¡¿ØÖÆÎļþ±£´æÓйØÓÚÊý¾Ý¿âÎïÀí½á¹¹µÄ»ù±¾ÐÅÏ¢£¬Ã¿¸öOracle¶¼±ØÐëÖÁÉÙÓµÓÐÒ»¸ö¿ØÖÆÎļþ¡£Oracle½¨Òé´´½¨Á½¸ö¿ØÖÆÎļþ£¬²¢ÇÒÓ¦µ±½«ËûÃÇ·Ö±ð·ÅÖÃÔÚ²»Í¬µãÓ²ÅÌÉÏ¡£
¡¡¡¡DB_Block_Buffer
¡¡¡¡Õⲿ·ÖÄÚ´æµÄ×÷ÓÃÖ÷ÒªÊÇÔÚÄÚ´æÖлº´æ´ÓÊý¾Ý¿âÖжÁÈ¡µÄÊý¾Ý¿é£¬Êý¾Ý¿â»º³åÇøÔ½´ó£¬ÎªÓû§ÒѾ­ÔÚÄÚ´æÀïµÄ¹²ÏíÊý¾ÝÌṩµÄÄÚ´æ¾ÍÔ½´ó£¬ÕâÑù¿ÉÒÔ¼õÉÙËùÐèÒªµÄ´ÅÅÌÎïÀí¶Áд´ÎÊý¡£
¡¡¡¡ÔÚOracle 9iÒÔǰ°æ±¾Êý¾Ý¿âÖУ¬»º³åÊÇÓÉdb_block_buffers*db_block_sizeÀ´¾ö¶¨£¬db_block_size²ÎÊýÊÇÔÚ´´½¨Êý¾Ý¿âʱÉèÖõģ¬Ëü¾ö¶¨Êý¾Ý¿âÀïÿ¸ö¿éµÄ´óС£¬9iÒÔǰ²»ÄܸıäÒѾ­´æÔÚµÄÊý¾Ý¿âµÄ¿é´óС£¬


Ïà¹ØÎĵµ£º

oracleÐÞ¸ÄÓû§ÃÜÂë

1¡¢Ê¹ÓÃoracleÓû§µÇ¼£¬Á¬½ÓÊý¾Ý¿â
[oracle@wuzj ~]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Feb 26 12:06:29 2009
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
SQL> conn /as sysdba
Connected.
//²é¿´Óû§
SQL> select username,password from dba_users;
......

OracleÒÆ¶¯datafileµÄλÖÃ

Ëæ×Åʱ¼äµÄÍÆÒÆ£¬ÓпÉÄÜÔ­À´Ã»Óй滮ºÃµÄÊý¾ÝÎļþËùÔÚµÄÅ̿ռäÒѾ­²»¹»ÁË£¬»òÕßÎÒÃÇÓÐÐèÒª°ÑÒ»¸ödatafileÒÆ¶¯ºÃÆäËûµÄµØ·½£¬ÕâʱºòÎÒÃǸÄÈçºÎ²Ù×÷ÄØ£¿
ÕâÀïÓÐ×î¼òµ¥µÄÒ»¸ö·½·¨
1. offlineÊý¾ÝÎļþËù±»°üº¬µÄtablespace£¬
alter tablespace testts offline;
2. rename Ô­ÓеÄdatafileÖ¸Ïòеķ¾¶
#cp /opt/oracle/orad ......

oracle³£ÓÃsqlÓï¾ä

ÐÞ¸ÄÁÐÊôÐÔ
alter table tablename modify(name ,varchar2(10)) Áпí¶È²»µÃСÓÚÐÞ¸ÄǰµÄ¿í¶È
ÈÕÖ¾¹ÜÀí
ÊÓͼ v$logfile
alter database add logfile 'd:\orcl01.log' size 10m;//Ìí¼Ó×é
alter database add logfile member 'd:\orcl02.log' to group 4;//Ïò4×éÖÐÌí¼Ó³ÉÔ±
alter database drop logfile member 'd: ......

ʵÏÖORACLEÈçºÎÈ¥³ýijЩÓû§µÄDROPȨÏÞ!

ÓÐʱÔÚ½øÐÐÏîÄ¿¿ª·¢¹ý³ÌÖУ¬ÓÉÓÚһЩÎó²Ù×÷»áµ¼ÖÂÊý¾Ý¿âµÄ±í¸øÎóɾ³ýµô£¬ÎªÁ˱ÜÃâÕâÒ»Çé¿öµÄ·¢Éú£¬ÈçºÎÑϸñ¿ØÖÆÄ³Óû§²»ÄܶÔ×Ô¼ºµÄ¿â½øÐÐDROPȨÏÞ£¬ÐèÒª½øÐÐÏà¹ØÉèÖã¬ÓÉÓÚĬÈÏconnectµÄȨÏÞÒ²ÊǾßÓÐdrop×Ô¼ºÓû§µÄ±í½á¹¹£¬Í¨¹ýproduct_user_profileÖ»ÄÜÏÞÖÆsql*plusµÄ²Ù×÷£¬¶ø²»ÄÜÏÞÖÆÆäËüµÚÈý·½oracleÁ¬½Ó¹¤¾ß£¬×îÓÐЧµÄ· ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ