µ¥ÀÌÅͺ£À̽º »ý¼º 2
ÀÛ¼ºÀÚ °ü¸®ÀÚ ÀÛ¼º½Ã°£ 2003-06-10 13:13:22
 

»õ·Î¿î µ¥ÀÌŸº£À̽º¸¦ »ý¼ºÇϱâ À§Çؼ­´Â ±âÁ¸ÀÇ µ¥ÀÌŸº£À̽º¸¦ ¼Ò°ÅÇÏ°í »õ·Î¿î µ¥ÀÌŸº£À̽º¸¦ »ý¼ºÇÏ´Â °æ¿ì¿Í ±âÁ¸ÀÇ ORACLE HOME µð·ºÅ丮¸¦ ÀÌ¿ëÇÏ¿© »õ·Î¿î ORACLE_SID¸¦ »ç¿ëÇÑ µ¥ÀÌŸº£À̽º Ãß°¡ÀÇ °æ¿ì°¡ ÀÖ°Ú´Ù. ´ÙÀ½Àº ÀÌ µÎ °æ¿ì¿¡ ´ëÇÑ ¼³¸íÀÌ´Ù.
A. ±âÁ¸ÀÇ µ¥ÀÌŸº£À̽º¸¦ ¼Ò°ÅÇÏ°í »õ·Î¿î µ¥ÀÌŸº£À̽º¸¦ »ý¼ºÇÏ´Â °æ¿ì

ÀÌ °æ¿ì¿¡´Â ±âÁ¸ÀÇ ÇÊ¿ä°¡ ¾ø°Ô µÈ µ¥ÀÌŸº£À̽º¸¦ ±¸¼ºÇÏ´Â data files, log files, control fileµéÀ» ¼Ò°ÅÇÑ ÈÄ, µ¥ÀÌŸº£À̽º »ý¼º ÀÛ¾÷À» ÇÒ ¼ö ÀÖ´Ù. ¸¸¾à ÇÊ¿äÇÑ data¸¦ °è¼Ó À¯ÁöÇϱâ À§Çؼ­´Â IMP/EXP±â´ÉÀ» ÀÌ¿ëÇÏ¸é µÈ´Ù. ¾Æ·¡´Â ±âÁ¸ÀÇ µ¥ÀÌŸº£À̽º¿¡ ´ëÇÑ SID, DB_NAMEµî¿¡ ´ëÇÑ È¯°æÀ» °è¼Ó ÀÌ¿ëÇÏ´Â °æ¿ì¿¡ À־ÀÇ »ý¼º¹æ¹ýÀÌ´Ù.

1. init<SID>.ora È­ÀÏ ¹× config<SID>.ora È­ÀÏÀÇ ¼öÁ¤
init<SID>.ora È­ÀÏÀÇ rollback_segmenns parameter¿¡´Â ÀÌÀüÀÇ µ¥ÀÌŸº£À̽º¿¡¼­ ÀÌ¿ëÇß´ø rollback segmentµéÀÌ Á¤ÀǵǾî ÀÖ´Ù. »õ·Î¿î µ¥ÀÌŸº£À̽º¸¦ »ý¼ºÇϱâ À§Çؼ­´Â ÀÌ Parameter¸¦ ¸ÕÀú »èÁ¦¸¦ ÇØ¾ß ÇÏ°í µ¥ÀÌŸº£À̽º »ý¼ºÀ» ¸¶Ä£ÈÄ ´Ù½Ã »õ·Î¿î µ¥ÀÌŸº£À̽º ȯ°æ¿¡ ¸Â°Ô ¼³Á¤À» ÇØ ÁÖ¾î¾ß ÇÑ´Ù. ¸¸¾à »õ·Î¿î µ¥ÀÌŸº£À̽ºÀÇ control È­Àϵ鿡 ´ëÇÑ º¯°æÀÌ ÇÊ¿äÇÏ´Ù¸é config<SID>.ora È­ÀÏÀÇ CONTROL_FILES Parameter¸¦ ¼öÁ¤ÇØ¾ß ÇÑ´Ù.

2. CREATING DATABASE
1) ±âÁ¸ÀÇ DATABASE¸¦ »ý¼ºÇϸ鼭 »ç¿ëµÈ SHELL SCRIPT($ORACLE_HOME/dbs/crdbORATEST.sql, crdb2ORATEST.sql È­ÀÏ)¸¦ ÆíÁýÇÏ¿© »õ·Î¿î ȯ°æÀÇ DATABASE¿¡ ¸Â°Ô ¼öÁ¤ÇÑ´Ù. ¿¹¸¦ µé¾î datafile¿¡ ´ëÇÑ °æ·Î, È­ÀÏ À̸§ ¹× Å©±â°¡ ±× ¿¹°¡ µÇ°Ú´Ù.

2) ¼öÁ¤µÈ SCRIPT FILEÀ» ¼öÇàÀ» ÅëÇؼ­ »õ·Î¿î µ¥ÀÌŸº£À̽º »ý¼º.
- $cd $ORACLE_HOME/dbs
$svrmgrl / sqldba lmode=y

SVRMGR> connect internal
SVRMGR> startup nomount
Statements processed.
SVRMGR> @crdbORA7
:
SVRMGR> @crdb2ORA7

3) CATALOG VIEW »ý¼º ¹× PROCEDURAL OPTION INSTALL
- $cd $ORACLE_HOME/rdbms/admin
$svrmgrl
SVRMGR> connect internal;
SVRMGR> @catalog
SVRMGR> @catproc
SVRMGR> @catexp
SVRMGR> create user scott identified by tiger
default tablespace tools
temporary tablespace temp
quota unlimited on tools
quota unlimited on temp;
SVRMGR> grant connect to scott;

3. °¢ TOOL¿¡ °ü·ÃµÈ TABLE »ý¼º
1) SQL*Plus install
- $ cd $ORACLE_HOME/sqlplus/admin/help
$ SYSTEM_PASS=system/manager;export SYSTEM_PASS
$ helpins
- $ cd $ORACLE_HOME/sqlplus/admin
$ sqlplus system/manager @pupbld
$ cd $ORACLE_HOME/sqlplus/demo
$ sqlplus scott/tiger @demobld

2) SQL*Forms30 install
- $ cd $ORACLE_HOME/forms30/admin
$ sqlplus system/manager
SQL> set compatibility v6
SQL> @iadtable
SQL> @iadindex
SQL> @iadview
SQL> @iadgrant
3) SQL*Menu50 install
- $ cd $ORACLE_HOME/menu5/admin
$ sqlplus system/manager
SQL> set compatibility v6
SQL> @menutabs
SQL> @menuvws
SQL> @menuidxs
SQL> @menugrts

4) SQL*Reportwriter install
- $ cd $ORACLE_HOME/sqlreport/admin
$ sqlplus system/manager
SQL> @srw_updpro
SQL> @srw_prac
SQL> @srw_icen
SQL> @srw_newid
SQL> @srw_cmdn
SQL> @srw_grnt

B. »õ·Î¿î ORACLE_SID¸¦ »ç¿ëÇÑ µ¥ÀÌŸº£À̽º Ãß°¡

1. ±âÁ¸ÀÇ µ¥ÀÌŸº£À̽º¸¦ ¹é¾÷ÇÑ´Ù.
(ÆĶó¸ÞŸ È­ÀÏ, µ¥ÀÌŸ È­ÀÏ, ÄÁÆ®·Ñ È­ÀÏ, ¸®µÎ ·Î±× È­ÀÏ)

2. ȯ°æ¼³Á¤
1) »õ·Î¿î µ¥ÀÌŸº£À̽º¸¦ Ãß°¡Çϱâ À§Çؼ­´Â OSÀÇ DBA group¿¡ ¼ÓÇÑ OS user¸¦ »õ·Î Ãß°¡ÇÑ´Ù. À̶§ ÀÌ userÀÇ shell parameterµé Áß ORACLE¿¡ °üÇÑ parameterµéÀÌ Á¤ÀÇ°¡ ¿Ã¹Ù¸£°Ô µÇ¾î ÀÖ¾î¾ß ÇÑ´Ù. ORACLE_SID, ORACLE_HOME, ORACLE_BASE, NLS_LANG, TNS_ADMIN, LD_LIBRARYPATHµîÀÇ parameterµéÀÌ ±× ÁÖµÈ ´ë»óÀÌ µÇ°Ú´Ù.

¿¹) ±âÁ¸ ȯ°æ : ORACLE_SID=ORACLE7
»õ·Î¿î ȯ°æ : ORACLE_SID=ORATEST

2) Oracle Parameter È­ÀÏ ¹× config È­ÀÏ »ý¼º
- ±âÁ¸ÀÇ $ORACLE_HOME/dbs/initORACLE_SID.ora È­ÀÏÀ» ÀÌ¿ëÇÏ¿© »õ·Î¿î ORACLE_SID¸¦ °®´Â Parameter È­ÀÏÀ» ¸¸µç´Ù.

¿¹) $ mkdir $HOME/dbs
$ cp $ORACLE_HOME/dbs/initORACLE7.ora $HOME/dbs/initORATEST.ora
$ cp $ORACLE_HOME/dbs/configORACLE7.ora $HOME/dbs/configORATEST.ora

initORATEST.ora ¹× configORATEST.oraÀÇ ³»¿ëÁß¿¡ ORACLE7ºÎºÐÀ» ORATEST·Î ¼öÁ¤ÇÏ°í initORATEST.ora È­ÀÏÀÇ DB_NAME°ú configORATEST.ora È­ÀÏÀÇ control_filesÀÇ È­ÀÏ À̸§À» »õ·Î¿î ȯ°æ¿¡ ¸Â°Ô ÁöÁ¤ÇÑ´Ù. ¶ÇÇÑ, initORATEST.ora È­ÀÏÀÇ rollback_segments parameterÀÇ ¼³Á¤À» Ãë¼ÒÇØ ÁØ´Ù. ÀÌ Parameter´Â µ¥ÀÌŸº£À̽º »ý¼º ÀÛ¾÷ ÈÄ ´Ù½Ã ¼³Á¤ÇØ ÁØ´Ù.

3. CREATING DATABASE
1) ±âÁ¸ÀÇ DATABASE¸¦ »ý¼ºÇϸ鼭 »ç¿ëµÈ SHELL SCRIPT¸¦ º¹»çÇÏ¿© »õ·Î¿î ȯ°æÀÇ
DATABASE¸¦ »ý¼º ( $ORACLE_HOME/dbs/crdbORATEST.sql, crdb2ORATEST.sql È­ÀÏÀÇ
³»¿ëÁß, SID ¹× redo log file, data fileµé¿¡ °üÇÑ path ¼öÁ¤ )

¿¹)
$cp $ORACLE_HOME/dbs/crdbORACLE7.sql $HOME/dbs/crdbORACLE7.sql
$cp $ORACLE_HOME/dbs/crdb2ORACLE7.sql $HOME/dbs/ crdb2ORACLE7.sql

$cd $HOME/dbs
- $vi crdbORATEST.sql -- ORACLE7À¸·Î µÇ¾îÀÖ´Â ºÎºÐÀ»
- $vi crdb2ORATEST.sql -- ORATEST·Î º¯°æÇÑ´Ù.

2) ¼öÁ¤µÈ SCRIPT FILEÀ» ¼öÇàÀ» ÅëÇؼ­ »õ·Î¿î µ¥ÀÌŸº£À̽º »ý¼º.
- $cd $HOME/dbs
$svrmgrl
SVRMGR> connect internal
SVRMGR> startup nomount pfile=$HOME/dbs/initORATEST.ora
Statements processed.
SVRMGR> @crdbORATEST
:
SVRMGR> @crdb2ORATEST
:

CATALOG VIEW »ý¼º ¹× PROCEDURAL OPTION INSTALL°ú °¢ TOOL¿¡ °ü·ÃµÈ TABLE »ý¼ºÀº À§¿¡¼­ ¼³¸íµÇ¾ú´ø A.2.3°ú A.3 ³»¿ë¿¡ µû¶ó ÀÛ¾÷ÇÑ´Ù.


¸ñ·Ï | ÀÔ·Â | ¼öÁ¤ | ´äº¯ | »èÁ¦