»õ·Î¿î database »ý¼º
ÀÛ¼ºÀÚ °ü¸®ÀÚ ÀÛ¼º½Ã°£ 2003-06-10 10:34:32
 

1. ȯ°æ¼³Á¤

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

1) ORACLE_SID °áÁ¤

»õ·Î¿î OS ACCOUNT¸¦ »ý¼ºÇÏ°í ±âÁ¸ ORACLE HOME µð·ºÅä ¸®¿¡ ÀÖ´Â .profile(.cshrc) ÆÄÀÏÀ» »õ·Î¿î ACCOUNTÀÇ HOME µð·ºÅ丮¿¡ º¹»çÇÏ¿© ORACLE_SIDºÎºÐÀ» ´ÙÀ½°ú °°ÀÌ º¯°æÇÑ´Ù.

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


2) Parameter ÆÄÀÏ ¹× config ÆÄÀÏ »ý¼º

- ±âÁ¸ÀÇ $ORACLE_HOME/dbs/initORACLE_SID.oraÈ­ÀÏÀ» ÀÌ ¿ëÇÏ¿©

»õ·Î¿î ORACLE_SID¸¦ °®´Â ParameterÈ­ÀÏÀ» ¸¸µç ´Ù.

$ cd $ORACLE_HOME/dbs
$ cp initORACLE7.ora initORATEST.ora
$ cp configORACLE7.ora configORATEST.ora

- initORATEST.ora ¹× configORATEST.oraÀÇ ³»¿ëÁß¿¡ ORACLE7 ºÎºÐÀ» ORATEST·Î ¼öÁ¤ÇÑ´Ù.


2. CREATING DATABASE

1) ±âÁ¸ÀÇ DATABASE¸¦ »ý¼ºÇϸ鼭 »ç¿ëµÈ SHELL SCRIPT¸¦ º¹»çÇÏ¿© ¼öÁ¤ÇÏ°í »õ·Î¿î ȯ°æÀÇ DATABASE¸¦ »ý¼º

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

2) ¼öÁ¤µÈ SCRIPT FILEÀ» ¼öÇàÀ» ÅëÇؼ­ »õ·Î¿î µ¥ÀÌŸº£À̽º »ý ¼º.

$ cd $ORACLE_HOME/dbs
$ svrmgrl
SQLDBA> connect internal
SQLDBA> startup nomount
Statements processed.
SQLDBA> @crdbORATEST
:
SQLDBA> @crdb2ORATEST
:

3) CATALOG VIEW »ý¼º ¹× PROCEDURAL OPTION INSTALL

$ cd $ORACLE_HOME/rdbms/admin
$ sqldba lmode=y
SQLDBA> connect internal;
SQLDBA> @catalog
SQLDBA> @catproc
SQLDBA> @catexp
SQLDBA> create user scott identified by tiger
default tablespace tools
temporary tablespace temp
quota unlimited on tools
quota unlimited on temp;
SQLDBA> grant connect to scott;

ÁÖÀÇ »çÇ×:
1. userÀÇ ±×·ìÀº dba¸¦ ºÎ¿©ÇÑ´Ù... useradd -g dba isaya
1. userÀÇ È¨µð·ºÅ丮¿Í oracle Ȩµð·ºÅ丮¿¡¼­ Æ۹̼ÇÀº 775 ·Î ¼³Á¤ÇÑ´Ù.
2. /etc/oratab ¿¡ SID°ª ¼³Á¤ÇÑ´Ù..


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