Oracle °²×°ÏµÁÐ ¾²Ä¬°²×°Êý¾Ý¿âÈí¼þ
ÔںܶàÆóÒµ¼¶°²×°Êý¾Ý¿âʱ£¬³£³£Óдó¹æÄ£µÄ°²×°ÈÎÎñ£¬ÕâʱʹÓÃÏìÓ¦ÎļþÀ´ÅúÁ¿°²×°¿ÉÒÔÌá¸ß¹¤×÷ЧÂÊ£¬ÏÂÃæ½éÉÜÊý¾Ý¿âÈí¼þµÄ¾²Ä¬°²×°·½Ê½¡£
Ò»¡¢Êý¾Ý¿â·þÎñÆ÷¶Ë°²×°
1. Éú³É°²×°ÏìÓ¦Îļþ
$./runInstaller -record -destinationFile /tmp/install_database_10g.rsp
Õâʱ»áÆô¶¯Í¼ÐνçÃæÀ´Â¼ÖÆÎÒÃÇÐèÒªµÄÏìÓ¦Îļþ¡£
×¢Ò⣺
µ±°²×°½çÃæµ½´ï×îºóÒ»²½Ê±Ñ¡Ôñcancel
µÃµ½Õâ¸öÏìÓ¦ÎļþÎÒÃǾͿÉÒÔ¾²Ä¬°²×°oracleÁË
install_database.rspÎļþÊÇÓɺܶà²ÎÊý×é³ÉµÄ£¬²¢ÇÒÓÐÏêϸµÄ˵Ã÷£º
Ò»°ãÎÒÃÇÐèҪעÒâµÄ²ÎÊýÓУº
2 .ÐÞ¸ÄÏìÓ¦ÎļþµÄÏà¹Ø²ÎÊý
UNIX_GROUP_NAME="oinstall" ----°²×°Óû§×é
from_LOCATION="/software/db/10g/Disk1/stage/products.xml" –-°²×°Ô´ÎļþµØÖ·
ORACLE_HOME="/u01/oracle/product/db10gr2" ---ORACLE_HOME
ORACLE_HOME_NAME="db10gr2" ---- ORACLE_HOME_NAME
SELECTED_LANGUAGES={"en","zh_CN","zh_TW"} ----ÓïÑÔ
COMPONENT_LANGUAGES={"en","zh_CN","zh_TW"} ----ÓïÑÔ
INSTALL_TYPE="Enterprise Edition" --ÆóÒµ°æ
3.¾²Ä¬°²×°Êý¾Ý¿âÈí¼þ
$./runInstaller -silent -responseFile /tmp/install_database_10g.rsp
4. ¾²Ä¬Éý¼¶
½âѹoracleÉý¼¶°ü£¬ÔÚresponseĿ¼ÏÂÓÐpatchset.rspÏàÓ¦Îļþ£¬ÐÞ¸ÄÏàÓ¦µÄ²ÎÊý£º
UNIX_GROUP_NAME="oinstall" ----°²×°Óû§×é
from_LOCATION="/software/db/10g/patch/Disk1/stage/products.xml" –-Éý¼¶Ô´ÎļþµØÖ·
ORACLE_HOME="/u01/oracle/product/db10gr2" ---ORACLE_HOME
ORACLE_HOME_NAME="db10gr2" ---- ORACLE_HOME_NAME
COMPONENT_LANGUAGES={"en","zh_CN","zh_TW"} ----ÓïÑÔ
È»ºóÔÙÖ´ÐÐ
./runInstaller -silent -responseFile ./patchset.rsp
¶þ¡¢Êý¾Ý¿â¿Í»§¶Ë°²×°Èí¼þ
1.Éú³ÉÏìÓ¦Îļþ
$./runInstaller -record -destinationFile /tmp/install_database10g_clt.rsp
Õâʱ»áÆô¶¯Í¼ÐνçÃæÀ´Â¼ÖÆÎÒÃÇÐèÒªµÄÏìÓ¦Îļþ¡£
×¢Ò⣺
µ±°²×°½çÃæµ½´ï×îºóÒ»²½Ê±Ñ¡Ôñcancel
µÃµ½Õâ¸öÏìÓ¦ÎļþÎÒÃǾͿÉÒÔ¾²Ä¬°²×°oracleÁË
install_database10g_clt.rspÎļþÊÇÓɺܶà²ÎÊý×é³ÉµÄ£¬²¢ÇÒÓÐÏêϸµÄ˵Ã÷£º
2.ÐÞ¸ÄÏìÓ¦Îļþ²ÎÊý
Ò»°ãÎÒÃÇÐèҪעÒâµÄ²ÎÊýÓУº
UNIX_GROUP_NAME="oinstall" ----°²×°Óû§×é
from_LOCATION="/software/db/10gclt/Disk1/stage/products.xml" –-°²×°Ô´ÎļþµØÖ·
ORACLE_HOME="/app/oracle/product/dbclt10gr2" ---ORACLE_HOME
ORACLE_HOME_NAME
Ïà¹ØÎĵµ£º
oracle±í¿Õ¼ä²Ù×÷Ïê½â
1
2
3×÷Õߣº À´Ô´£º ¸üÐÂÈÕÆÚ£º2006-01-04
5
6
7½¨Á¢±í¿Õ¼ä
8
9CREATE TABLESPACE data01
10DATAFILE '/ora ......
½ñÌìÓÐͬÊ´òµç»°ÒªÇóÒª°Ñoracle¿âÀïµÄÒ»ÕűíµÄ¶¨Òåµ¼³ö¸ösqlÎļþ£¬µ±Ê±µÄµÚÒ»·´Ó¦¾ÍÊÇÒª½ÌËûÓÃexp/impÀ´»ñµÃ±í½á¹¹¶¨ÒåÎļþ£¬Ôڵ绰ÀïÃæ˵ÁË°ëÌ컹ÊÇûÄ̻ܽáËû£¬Ö»ºÃÅÜÁËÒ»ÌË»ú·¿¡£Â·ÉϾÍÔÚÏ룬oracleÕæÊÇÌÖÑᣬΪʲô²»ÔÚÆóÒµ¹ÜÀíÆ÷ÀïÖ±½Ó¼ÓÉϸö±í½á¹¹µ¼³öµÄÑ¡Ï»¹Òªº¦ÎÒÕâôÅÜÒ»ÌË£¬ÕæÊÇ@@#!!@!#@@@@
ÎÊÁËÏÂÒªµ¼³öÄÄ ......
¡¡¡¡Ò». ¸ÅÊö
¡¡¡¡Oracle´æ´¢¹ý³Ì¿ª·¢µÄÒªµãÊÇ£º
¡¡¡¡• ʹÓÃNotepadÎı¾±à¼Æ÷£¬ÓÃOracle PL/SQL±à³ÌÓïÑÔдһ¸ö´æ´¢¹ý³Ì;
¡¡¡¡• ÔÚOracleÊý¾Ý¿âÖд´½¨Ò»¸ö´æ´¢¹ý³Ì;
¡¡¡¡• ÔÚOracleÊý¾Ý¿âÖÐʹÓÃSQL*Plus¹¤¾ßÔËÐд洢¹ý³Ì;
¡¡¡¡• ÔÚOracleÊý¾Ý¿âÖÐÐ޸Ĵ洢¹ý³Ì;
¡¡¡¡• ͨ¹ý±àÒë´íÎóµ÷ÊÔ´æ´¢¹ ......
ÒÔÇ°·¢¹ýһƪÒƶ¯Êý¾ÝÎļþµÄ·½·¨µÄÎÄÕ£¬²Î¼û
http://blog.csdn.net/wh62592855/archive/2009/11/20/4843764.aspx
²»¹ýµ±Ê±Ö»¸ø³öÁËÒ»¸öʾÀý¶øÒÑ£¬½ñÌìÔÚÊéÖп´µ½ÁËÁíÒ»ÖÖ·½·¨£¬×ܽáһϣ¬¼ÇÔÚÕâÀï¡£
OracleÌṩÁËÁ½ÌõÒƶ¯Êý¾ÝÎļþµÄÓï¾ä
1
ALTER TABLESPACE ±í¿Õ¼äÃû
RENAME DATAFILE 'ÎļþÃû' [,'ÎļþÃû']...
TO ' ......
ϵͳ»¹Ô¶Î
½öΪϵͳ±í¿Õ¼äÖеĶÔÏó±ä»¯ËùÓá£ËüÊÇÔÚÊý¾Ý¿â´´½¨Ê±ÔÚϵͳ±í¿Õ¼äÖд´½¨µÄ¡£ÏµÍ³»¹Ô¶Î¼È¿ÉÒÔ´æÔÚ²¢¹¤×÷ÔÚ×Ô¶¯Ä£Ê½Ï£¬Ò²¿ÉÒÔ´æÔÚ²¢¹¤×÷ÔÚÊÖ¶¯Ä£Ê½Ï¡£
·Çϵͳ»¹Ô¶Î
ΪÆäËû±í¿Õ¼äÖжÔÏóµÄ±ä»¯ËùʹÓᣵ±Ò»¸öÊý¾Ý¿â¾ßÓжà¸ö±í¿Õ¼äʱ¾ÍÐèÒªÖÁÉÙÒ»¸öÊÖ¶¯µÄ·Çϵͳ»¹Ô¶Î»òÒ»¸ö×Ô¶¯¹ÜÀíµÄ»¹Ô±í¿Õ¼ä¡£
×Ô¶¯Ä£Ê½ ......