<?xml version="1.0" encoding="euc-kr"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>misoidc &gt; À¥È£½ºÆÃ &gt; ¸Þ´º¾ó</title>
<link>http://www.ssanweb.com/bbs/board.php?bo_table=menual</link>
<description>Å×½ºÆ® ¹öÀü 0.2 (2004-04-26)</description>
<language>ko</language>
<item>
<title>¿ø°Ý¼­¹ö¿¡¼­ authorized_keys ·Î ÀÎÁõ¾ÈµÉ¶§</title>
<link>http://www.ssanweb.com/bbs/board.php?bo_table=menual&amp;wr_id=90</link>
<description><![CDATA[SElinux °¡ Àû¿ëµÈ°æ¿ì À¥¼­¹ö¸¦ ¶ì¿ì°í ºê¶ó¿ìÁ®¿¡¼­ Á¢±ÙÀ» ½Ãµµ ÇÏ¿´À¸³ª<br><span id="callbacknestallegrett0tistorycom228511" style="width: 1px; height: 1px; float: right;"></span><br>You don't have permission to access /...../... on this server.<br><br>ÀÌ¶õ 403 ÆÛ¹Ì¼Ç ¿¡·¯°¡ ³µÀ» °æ¿ì.<br><br>selinux¸¦ disable ½ÃÄÑÁÖ´Â °£´ÜÇÑ ¹æ¹ýÀÌ ÀÖ°ÚÀ¸³ª<br><br>restoreconÀ» ÀÌ¿ëÇÏ¿© ¿¡·¯¸¦ ¸·¾Æº»´Ù.<br><br># restorecon -R -v .ssh/<br>]]></description>
<dc:creator>½ÑÀ¥È£½ºÆÃ</dc:creator>
<dc:date>Thu, 31 Jul 2014 11:58:15 +0900</dc:date>
</item>
<item>
<title>pptp vpn ¿¬°á¼­ 711 ¿À·ù</title>
<link>http://www.ssanweb.com/bbs/board.php?bo_table=menual&amp;wr_id=89</link>
<description><![CDATA[<OL>
<LI><SPAN>½ÃÀÛÀ» Å¬¸¯ ÇÏ¿© °Ë»ö Ã¢¿¡ <B>cmd</B> ¸¦ ÀÔ·ÂÇÕ´Ï´Ù.</SPAN></LI>
<LI><SPAN>»ó´ÜÀÇ °Ë»ö °á°ú¿¡ <B>[cmd]</B>¸¦ <B>¸¶¿ì½º ¿À¸¥ÂÊ Å¬¸¯</B>ÇÏ¿© <B>[°ü¸®ÀÚ ±ÇÇÑÀ¸·Î ½ÇÇà]</B>À» Å¬¸¯ÇÏ¿© ¸í·É ÇÁ·ÒÇÁÆ®¸¦ ½ÇÇàÇÕ´Ï´Ù.</SPAN></LI>
<LI><SPAN><B>SFC /SCANNOW</B> ÀÔ·Â ÈÄ Enter¸¦ ÀÔ·Â ÇÕ´Ï´Ù.</SPAN></LI>
<LI><SPAN>½Ã½ºÅÛ ÆÄÀÏ¿¡ ¹®Á¦°¡ ÀÖ´ÂÁö¸¦ Å½»öÇÏ¸ç, º¹±¸°¡ °¡´ÉÇÑ ºÎºÐÀº º¹±¸°¡ ÁøÇàÀÌ µË´Ï´Ù.</SPAN></LI>
<LI><SPAN>°Ë»ç°¡ 100% ¿Ï·á°¡ µÇ¸é, °á°ú ¸Þ½ÃÁö¸¦ È®ÀÎÇÕ´Ï´Ù.</SPAN></LI></OL>]]></description>
<dc:creator>½ÑÀ¥È£½ºÆÃ</dc:creator>
<dc:date>Mon, 13 Jan 2014 17:02:04 +0900</dc:date>
</item>
<item>
<title>¹Ì¼ÒÄÉÀÌ½º</title>
<link>http://www.ssanweb.com/bbs/board.php?bo_table=menual&amp;wr_id=87</link>
<description><![CDATA[11]]></description>
<dc:creator>½ÑÀ¥È£½ºÆÃ</dc:creator>
<dc:date>Tue, 30 Jul 2013 16:24:40 +0900</dc:date>
</item>
<item>
<title>MS-SQL ¸®ÇÃ¸®ÄÉÀÌ¼Ç (º´ÇÕº¹Á¦) Å×ÀÌºí Ãß°¡ ¹æ¹ý</title>
<link>http://www.ssanweb.com/bbs/board.php?bo_table=menual&amp;wr_id=85</link>
<description><![CDATA[<P>¸¶½ºÅÍ DB ¼­¹ö : 192.168.10.1 (NEULWON-1)<BR>¹Ì·¯¸µ DB ¼­¹ö : 192.168.10.2 (NEULWON-2)<BR><BR><BR><FONT color=#2d328d><B>1) Å×ÀÌºí Ãß°¡</B></FONT><BR><FONT color=#fe4c24><FONT color=#000000><BR><FONT color=#2d328d><B><SPAN style="COLOR: rgb(255,0,0)">¸ñÀû) neulwon DB ÀÇ test Å×ÀÌºí µ¿±âÈ­</SPAN></B><BR></FONT><BR>¸¶½ºÅÍ DB¼­¹ö(192.168.10.1)¿¡¼­ test Å×ÀÌºíÀ» ¸¸µé°í ³»¿ëÀ» insert ÇÕ´Ï´Ù.<BR>¹Ì·¯¸µ DB¼­¹ö(192.168.10.2)¿¡¼­µµ test Å×ÀÌºíÀ» ¸¸µé°í ³»¿ëÀ» insert ÇÕ´Ï´Ù.<BR>&gt; ÀÏ´ÜÀº ÀÌ·¸°Ô ¼öµ¿À¸·Î ¾ç¼­¹ö¿¡ °°Àº µ¥ÀÌÅ¸¸¦ ³Ö¾î³ö¾ß ÇÕ´Ï´Ù.<BR><BR></FONT><FONT color=#000000><B><FONT color=#008e37>¸¶½ºÅÍ DB¼­¹ö¿¡¼­..<BR>MS-SQL Server Management Studio &gt; º¹Á¦ &gt; ·ÎÄÃ °Ô½Ã<BR>&gt; 'neulwon_°Ô½Ã' ¸¦ ¿ìÅ¬¸¯ÇÏ¿© '¼Ó¼º'À» ¼±ÅÃ ÇÕ´Ï´Ù.<BR></FONT></B><BR>ÁÂÃø¸Þ´ºÁß¿¡ '¾ÆÆ¼Å¬' À» ¼±ÅÃÇÕ´Ï´Ù. (Ã³À½ ¼±ÅÃ½Ã ·ÎµùÇÏ´Âµ¥ ½Ã°£ÀÌ Á¶±Ý °É¸³´Ï´Ù.)<BR>±×·¯¸é ¿ìÃø¿¡ µ¿±âÈ­ Å×ÀÌºí ¸®½ºÆ®°¡ ³ª¿À°Ô µÇ´Âµ¥<BR>¿É¼ÇÀ¸·Î <B><FONT color=#fe4c24><SPAN style="COLOR: rgb(255,0,0)">'¼±ÅÃ Ç¥½ÃµÈ °³Ã¼¸¸ ¸ñ·Ï¿¡ Ç¥½Ã'</SPAN></FONT></B><SPAN style="COLOR: rgb(255,0,0)"> </SPAN>°¡ Ã¼Å©µÇ¾îÀÖ½À´Ï´Ù.<BR><B><FONT color=#fe4c24><SPAN style="COLOR: rgb(255,0,0)">ÀÌ°ÍÀ» ÇØÁ¦</SPAN></FONT></B>ÇÏ¸é Ãß°¡Çß´ø Å×ÀÌºí test °¡ º¸ÀÔ´Ï´Ù.<BR><BR>Ãß°¡ÇÑ Å×ÀÌºíÀ» ¼±ÅÃÇÏ¸é °£´ÜÇÑ ¾È³»¸»ÀÌ ³ª¿É´Ï´Ù. '¿¹' ¸¦ Å¬¸¯ÇÕ´Ï´Ù.<BR>±×¸®°í 'È®ÀÎ' ¹öÆ°À» ´©¸¨´Ï´Ù.<BR><BR><BR><FONT color=#2d328d><B>2) º¹Á¦ ¼³Á¤</B><BR></FONT><BR></FONT><FONT color=#000000><B><FONT color=#008e37>¸¶½ºÅÍ DB¼­¹ö¿¡¼­..<BR>MS-SQL Server Management Studio &gt; º¹Á¦ &gt; ·ÎÄÃ °Ô½Ã<BR>&gt; 'neulwon_°Ô½Ã' ¸¦ ¿ìÅ¬¸¯ÇÏ¿© '½º³À¼ô ¿¡ÀÌÀüÆ® »óÅÂ º¸±â'¸¦ ¼±ÅÃ ÇÕ´Ï´Ù.<BR></FONT></B><BR>'½ÃÀÛ' ¹öÆ°À» ´©¸£¸é »õ·Î¿î º´ÇÕÃ³¸®¸¦ À§ÇÑ ÀÛ¾÷ÀÌ ÁøÇàµË´Ï´Ù.</FONT></FONT></P>
<P><FONT color=#fe4c24><FONT color=#000000>(DBÅ©±â¿¡ µû¶ó ½Ã°£ÀÌ ÁÂ¿ìµË´Ï´Ù. ¼öºÐ ~ ¼ö½ÊºÐ ¼Ò¿ä)<BR><BR></FONT></FONT><FONT color=#fe4c24><BR><B><SPAN style="COLOR: rgb(255,0,0)">¡Ø Âü°í</SPAN><BR></B></FONT><FONT color=#000000><BR>1) ¹Ì·¯ DB¼­¹ö¿¡¼­ ÇÒÀÏÀº ¾ø½À´Ï´Ù.<BR>¸¶½ºÅÍ DB¼­¹ö º¹Á¦ ¼³Á¤ ÈÄ, ¹Ì·¯ DB¼­¹ö 'µ¿±âÈ­ »óÅÂ º¸±â' ¿¡¼­ »óÅÂ¸¦ º¸¸é<BR>'ÇöÀç ½º³À¼ô ÆÄÀÏÀº ÃÖ½Å ÆÄÀÏÀÌ ¾Æ´Ï¹Ç·Î ½º³À¼ôÀ» ´Ù½Ã ½ÇÇàÇØ¾ß ÇÕ´Ï´Ù.' ¶ó´Â ¸Þ¼¼Áö°¡<BR>³ªÅ¸³¯ ¼ö ÀÖÀ¸³ª ¾Æ¹«·± ¼³Á¤µµ ÇÏÁö ¾ÊÀºÃ¤ Á¶±Ý¸¸ ±â´Ù¸®¸é ÀÚµ¿À¸·Î µ¿±âÈ­ µË´Ï´Ù. <BR>(Á¤È®È÷ ¸»ÇÏÀÚ¸é ¸¶½ºÅÍ ¼­¹öÀÇ '½º³À¼ô ¿¡ÀÌÀüÆ® »óÅÂº¸±â' - '½ÃÀÛ' ÀÛ¾÷ ¿Ï·á ÈÄ)<BR><BR>2) Å×ÀÌºí µ¿±âÈ­ ÇØÁ¦½Ã<BR>'¾ÆÆ¼Å¬' Ç×¸ñ¿¡¼­ ÇØ´ç Å×ÀÌºí Ã¼Å© ÇØÁ¦ ÈÄ, 'È®ÀÎ' ¹öÆ°À» ´©¸£°í<BR>'½º³À¼ô ¿¡ÀÌÀüÆ® »óÅÂ º¸±â'¿¡¼­ '½ÃÀÛ' ¹öÆ°À» ´­·¯ »õ·Î¿î º´ÇÕ Ã³¸®¸¦ ÇÕ´Ï´Ù.</FONT></P>]]></description>
<dc:creator>½ÑÀ¥È£½ºÆÃ</dc:creator>
<dc:date>Thu, 09 May 2013 16:40:41 +0900</dc:date>
</item>
<item>
<title>[Linux] ÇÏµå¿þ¾î Á¤º¸ È®ÀÎÇÏ±â - dmidecode, lshw</title>
<link>http://www.ssanweb.com/bbs/board.php?bo_table=menual&amp;wr_id=84</link>
<description><![CDATA[1. lshw ¸¦ »ç¿ëÇÏ¿© ÇÏµå¿þ¾î »ó¼¼ Á¤º¸ È®ÀÎ(¸µÅ© ÂüÁ¶)<BR>
<DIV style="MARGIN-LEFT: 4em">- lshw ´Â rpm ÆÐÅ°Áö¸¦ º°µµ·Î ¼³Ä¡ÇØ¾ßµÊ<BR><BR>Âü°í±Û : <A title="[http://jonnychoe.egloos.com/5549359]·Î ÀÌµ¿ÇÕ´Ï´Ù." href="http://jonnychoe.egloos.com/5549359" target=_blank>http://jonnychoe.egloos.com/5549359</A><BR><BR></DIV>
<DIV>2. dmidecode <BR></DIV>
<DIV style="MARGIN-LEFT: 4em">- ¼³Ä¡ÇÒ ÇÊ¿ä¾øÀ½<BR>- dmidecode ¸í·ÉÀº ¼­¹ö ÇÏµå¿þ¾î, ¹ÙÀÌ¿À½º Á¤º¸¸¦ system DMI Å×ÀÌºí¿¡¼­ ÀÐ¾î¿Â´Ù.<BR>½Ã½ºÅÛÀÇ ÇöÀç configuration »óÅÂ»Ó¸¸ ¾Æ´Ï¶ó ÃÖ´ë Áö¿ø°¡´ÉÇÑ ¼³Á¤ Á¤º¸±îÁöµµ ºÒ·¯¿Â´Ù.<BR>¿¹¸¦ µé¾î, ½Ã½ºÅÛÀÇ ÇöÀç RAM Á¤º¸¿Í ÃÖ´ë È®Àå°¡´ÉÇÑ RAM Á¤º¸±îÁöµµ È®ÀÎÇÒ ¼ö ÀÖ´Ù.<BR><BR>dmidecode ÀÇ output ÇüÅÂ´Â ´ÙÀ½°ú °°´Ù.<BR><PRE style="BACKGROUND-COLOR: rgb(218,232,246); COLOR: rgb(88,118,147)">Record Header: Handle {record id}, DMI type {dmi type id}, {record size} bytes
Record Value: {multi line record value}</PRE>
<UL>
<LI><STRONG>record id:</STRONG> Unique identifier for every record in the DMI table.</LI>
<LI><STRONG>dmi type id:</STRONG> Type of the record. i.e BIOS, Memory etc.,</LI>
<LI><STRONG>record size:</STRONG> Size of the record in the DMI table.</LI>
<LI><STRONG>multi line record values:</STRONG> Multi line record value for that specific DMI type.</LI></UL>
<P>dmidecode ¸í·ÉÀÇ output ¿¹ :</P><SPAN style="FONT-FAMILY: monospace">
<DIV style="BORDER-BOTTOM: rgb(219,232,251) 1px solid; BORDER-LEFT: rgb(219,232,251) 1px solid; PADDING-BOTTOM: 10px; BACKGROUND-COLOR: rgb(219,232,251); PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BORDER-TOP: rgb(219,232,251) 1px solid; BORDER-RIGHT: rgb(219,232,251) 1px solid; PADDING-TOP: 10px" class=txc-textbox><PRE># <STRONG>dmidecode | head -15
</STRONG>
# dmidecode 2.9
SMBIOS 2.3 present.
56 structures occupying 1977 bytes.
Table at 0x000FB320.

Handle 0xDA00, DMI type 218, 11 bytes
OEM-specific Type
        Header and Data:
                DA 0B 00 DA B0 00 17 03 08 28 00

Handle 0x0000, DMI type 0, 20 bytes
BIOS Information
        Vendor: Dell Computer Corporation
        Version: A07
        Release Date: 01/13/2004</PRE></DIV><BR>DMI Å×ÀÌºíÀÇ ·¹ÄÚµå °¹¼ö¸¦ º¸±âÀ§ÇØ¼­´Â <BR><BR>
<DIV style="BORDER-BOTTOM: rgb(219,232,251) 1px solid; BORDER-LEFT: rgb(219,232,251) 1px solid; PADDING-BOTTOM: 10px; BACKGROUND-COLOR: rgb(219,232,251); PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BORDER-TOP: rgb(219,232,251) 1px solid; BORDER-RIGHT: rgb(219,232,251) 1px solid; PADDING-TOP: 10px" class=txc-textbox><PRE># dmidecode | grep ^Handle | wc -l
56

(or)

# dmidecode | grep structures
56 structures occupying 1977 bytes.</PRE></DIV><BR></SPAN>
<H3>DMI Types</H3>½Ã½ºÅÛÀÇ CPU Á¤º¸¸¦ º¸±âÀ§ÇØ¼­´Â type id 4 ¿É¼ÇÀ» dmidecode ¸í·É°ú ÇÔ²² ÁØ´Ù.<BR><BR>
<DIV style="BORDER-BOTTOM: rgb(219,232,251) 1px solid; BORDER-LEFT: rgb(219,232,251) 1px solid; PADDING-BOTTOM: 10px; BACKGROUND-COLOR: rgb(219,232,251); PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BORDER-TOP: rgb(219,232,251) 1px solid; BORDER-RIGHT: rgb(219,232,251) 1px solid; PADDING-TOP: 10px" class=txc-textbox><PRE># <STRONG>dmidecode -t 4
</STRONG># dmidecode 2.9
SMBIOS 2.3 present.

Handle 0x0400, DMI type 4, 35 bytes
Processor Information
        Socket Designation: Processor 1
        Type: Central Processor
        Family: Xeon
        Manufacturer: Intel
        ID: 29 0F 00 00 FF FB EB BF
        Signature: Type 0, Family 15, Model 2, Stepping 9
        Flags:
                FPU (Floating-point unit on-chip)
                VME (Virtual mode extension)
                DE (Debugging extension)
                PSE (Page size extension)
                TSC (Time stamp counter)
                MSR (Model specific registers)</PRE></DIV><BR>DMI type Àº ¾Æ·¡¿Í °°´Ù.<BR><BR>
<DIV style="BORDER-BOTTOM: rgb(219,232,251) 1px solid; BORDER-LEFT: rgb(219,232,251) 1px solid; PADDING-BOTTOM: 10px; BACKGROUND-COLOR: rgb(219,232,251); PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BORDER-TOP: rgb(219,232,251) 1px solid; BORDER-RIGHT: rgb(219,232,251) 1px solid; PADDING-TOP: 10px" class=txc-textbox><PRE>Type   Information
       ----------------------------------------
          0   BIOS
          1   System
          2   Base Board
          3   Chassis
          4   Processor
          5   Memory Controller
          6   Memory Module
          7   Cache
          8   Port Connector
          9   System Slots
         10   On Board Devices
         11   OEM Strings
         12   System Configuration Options
         13   BIOS Language
         14   Group Associations
         15   System Event Log
         16   Physical Memory Array
         17   Memory Device
         18   32-bit Memory Error
         19   Memory Array Mapped Address
         20   Memory Device Mapped Address
         21   Built-in Pointing Device
         22   Portable Battery
         23   System Reset
         24   Hardware Security
         25   System Power Controls
         26   Voltage Probe
         27   Cooling Device
         28   Temperature Probe
         29   Electrical Current Probe
         30   Out-of-band Remote Access
         31   Boot Integrity Services
         32   System Boot
         33   64-bit Memory Error
         34   Management Device
         35   Management Device Component
         36   Management Device Threshold Data
         37   Memory Channel
         38   IPMI Device
         39   Power Supply</PRE></DIV><BR><SPAN style="WIDTH: 1px; FLOAT: right; HEIGHT: 1px" id=callbacknestbwhitetistorycom4666398></SPAN>¶ÇÇÑ, type id ¸¦ ÀÔ·ÂÇÏ´Â ´ë½Å¿¡ Å°¿öµå¸¦ »ç¿ëÇÒ ¼öµµ ÀÖ´Ù.<BR><BR>´ÙÀ½Àº »ç¿ë°¡´ÉÇÑ Å°¿öµåÀÌ´Ù.<BR><BR>
<DIV style="BORDER-BOTTOM: rgb(219,232,251) 1px solid; BORDER-LEFT: rgb(219,232,251) 1px solid; PADDING-BOTTOM: 10px; BACKGROUND-COLOR: rgb(219,232,251); PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BORDER-TOP: rgb(219,232,251) 1px solid; BORDER-RIGHT: rgb(219,232,251) 1px solid; PADDING-TOP: 10px" class=txc-textbox><PRE>       Keyword     Types
       ------------------------------
       bios        0, 13
       system      1, 12, 15, 23, 32
       baseboard   2, 10
       chassis     3
       processor   4
       memory      5, 6, 16, 17
       cache       7
       connector   8
       slot        9</PRE></DIV><BR>type id 2 ¿Í 10 ¿¡ ´ëÇÑ Á¤º¸¸¦ º¸±â À§ÇØ Å°¿öµå baseboard ¸¦ »ç¿ëÇÑ ¿¹<BR><BR>
<DIV style="BORDER-BOTTOM: rgb(219,232,251) 1px solid; BORDER-LEFT: rgb(219,232,251) 1px solid; PADDING-BOTTOM: 10px; BACKGROUND-COLOR: rgb(219,232,251); PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BORDER-TOP: rgb(219,232,251) 1px solid; BORDER-RIGHT: rgb(219,232,251) 1px solid; PADDING-TOP: 10px" class=txc-textbox><PRE># <STRONG>dmidecode -t baseboard
</STRONG># dmidecode 2.9
SMBIOS 2.3 present.

Handle 0x0200, DMI type 2, 9 bytes
Base Board Information
        Manufacturer: Dell Computer Corporation
        Product Name: 123456
        Version: A05
        Serial Number: ..CN123456789098.

Handle 0x0A00, DMI type 10, 14 bytes
On Board Device 1 Information
        Type: SCSI Controller
        Status: Enabled
        De&#115;&#99;ription: LSI Logic 53C1030 Ultra 320 SCSI
On Board Device 2 Information
        Type: SCSI Controller
        Status: Enabled
        De&#115;&#99;ription: LSI Logic 53C1030 Ultra 320 SCSI
On Board Device 3 Information
        Type: Video
        Status: Enabled
        De&#115;&#99;ription: ATI Rage XL PCI Video
On Board Device 4 Information
        Type: Ethernet
        Status: Enabled
        De&#115;&#99;ription: Broadcom Gigabit Ethernet 1
On Board Device 5 Information
        Type: Ethernet
        Status: Enabled
        De&#115;&#99;ription: Broadcom Gigabit Ethernet 2</PRE></DIV><BR><BR><SPAN style="FONT-WEIGHT: bold"><SPAN style="FONT-SIZE: 14pt"><SPAN style="FONT-SIZE: 12pt">dmicode ¸¦ »ç¿ëÇÏ¿© RAM(Physical Memory) ¿¡ ´ëÇÑ Á¤º¸ È®ÀÎÇÏ±â</SPAN></SPAN></SPAN><BR><BR>½Ã½ºÅÛ¿¡¼­ Áö¿ø°¡´ÉÇÑ ÃÖ´ë RAM Å©±â´Â ¾ó¸¶ÀÎ°¡? <BR>¾Æ·¡ ¿¹´Â ÃÖ´ë RAM Å©±â°¡ 8GB ÀÓÀ» º¸¿©ÁØ´Ù.<BR><BR>
<DIV style="BORDER-BOTTOM: rgb(219,232,251) 1px solid; BORDER-LEFT: rgb(219,232,251) 1px solid; PADDING-BOTTOM: 10px; BACKGROUND-COLOR: rgb(219,232,251); PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BORDER-TOP: rgb(219,232,251) 1px solid; BORDER-RIGHT: rgb(219,232,251) 1px solid; PADDING-TOP: 10px" class=txc-textbox><PRE># <STRONG>dmidecode -t 16
</STRONG># dmidecode 2.9
SMBIOS 2.3 present.

Handle 0x1000, DMI type 16, 15 bytes
Physical Memory Array
        Location: System Board Or Motherboard
        Use: System Memory
        Error Correction Type: Multi-bit ECC
<STRONG>        Maximum Capacity: 8 GB
</STRONG>        Error Information Handle: Not Provided
        Number Of Devices: 4</PRE></DIV><BR>¸Þ¸ð¸®¸¦ ¾ó¸¶³ª È®ÀåÇÒ ¼ö ÀÖ´ÂÁö ¸¦ È®ÀÎÇÏ±â À§ÇØ /proc/meminfo ¸í·ÉÀ» »ç¿ëÇÏ¿© ÇöÀç ¸Þ¸ð¸® ÃÑ·®À» È®ÀÎÇÒ ¼ö ÀÖ´Ù.<BR><BR>
<DIV style="BORDER-BOTTOM: rgb(238,238,238) 1px solid; BORDER-LEFT: rgb(238,238,238) 1px solid; PADDING-BOTTOM: 10px; BACKGROUND-COLOR: rgb(238,238,238); PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BORDER-TOP: rgb(238,238,238) 1px solid; BORDER-RIGHT: rgb(238,238,238) 1px solid; PADDING-TOP: 10px" class=txc-textbox><PRE># grep MemTotal /proc/meminfo
MemTotal:      1034644 kB</PRE></DIV><BR>À§ ¿¹´Â ÇöÀç ½Ã½ºÅÛÀÌ 1 GB ¸Þ¸ð¸®¸¦ °¡Áö°í ÀÖÀ½À» È®ÀÎÇÒ ¼ö ÀÖÁö¸¸, ÀÌ°ÍÀÌ 1GB 1°³ÀÎÁö, 512MB 2°³ÀÎÁö, 256MB 4°³ÀÎÁö´Â ¾Ë ¼ö°¡ ¾ø´Ù.<BR><BR>dmidecode ¸í·ÉÀ» »ç¿ëÇÏ¿© memory ½½·Ô¿¡¼­ °¢°¢ »ç¿ëµÇ°í ÀÖ´Â RAM Å©±â¸¦ ¾Ë ¼ö ÀÖ´Ù.<BR><BR>¾Æ·¡ ¿¹´Â memory slot ÀÌ 4°³ÀÌ¸ç, ÇöÀç ½½·Ô 1,2 ¿¡ 512 MB RAM ÀÌ °¢°¢ ÀåÂøµÇ¾î ÀÖÀ½À» È®ÀÎÇÒ ¼ö ÀÖ´Ù.<BR><BR>
<DIV style="BORDER-BOTTOM: rgb(219,232,251) 1px solid; BORDER-LEFT: rgb(219,232,251) 1px solid; PADDING-BOTTOM: 10px; BACKGROUND-COLOR: rgb(219,232,251); PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BORDER-TOP: rgb(219,232,251) 1px solid; BORDER-RIGHT: rgb(219,232,251) 1px solid; PADDING-TOP: 10px" class=txc-textbox><PRE># <STRONG>dmidecode -t 17
</STRONG># dmidecode 2.9
SMBIOS 2.3 present.

Handle 0x1100, DMI type 17, 23 bytes
Memory Device
        Array Handle: 0x1000
        Error Information Handle: Not Provided
        Total Width: 72 bits
        Data Width: 64 bits
<STRONG>        Size: 512 MB  </STRONG><SPAN style="COLOR: red">[Note: Slot1 has 512 MB RAM]</SPAN>
        Form Factor: DIMM
        Set: 1
        Locator: DIMM_1A
        Bank Locator: Not Specified
        Type: DDR
        Type Detail: Synchronous
        Speed: 266 MHz (3.8 ns)

Handle 0x1101, DMI type 17, 23 bytes
Memory Device
        Array Handle: 0x1000
        Error Information Handle: Not Provided
        Total Width: 72 bits
        Data Width: 64 bits
<STRONG>        Size: 512 MB </STRONG><SPAN style="COLOR: red">[Note: Slot2 has 512 MB RAM]</SPAN>
        Form Factor: DIMM
        Set: 1
        Locator: DIMM_1B
        Bank Locator: Not Specified
        Type: DDR
        Type Detail: Synchronous
        Speed: 266 MHz (3.8 ns)

Handle 0x1102, DMI type 17, 23 bytes
Memory Device
        Array Handle: 0x1000
        Error Information Handle: Not Provided
        Total Width: 72 bits
        Data Width: 64 bits
<STRONG>        Size: No Module Installed</STRONG><SPAN style="COLOR: red"> [Note: Slot3 is empty]</SPAN>
        Form Factor: DIMM
        Set: 2
        Locator: DIMM_2A
        Bank Locator: Not Specified
        Type: DDR
        Type Detail: Synchronous
        Speed: 266 MHz (3.8 ns)

Handle 0x1103, DMI type 17, 23 bytes
Memory Device
        Array Handle: 0x1000

        Error Information Handle: Not Provided
        Total Width: 72 bits
        Data Width: 64 bits
<STRONG>        Size: No Module Installed </STRONG><SPAN style="COLOR: red">[Note: Slot4 is empty]</SPAN>
        Form Factor: DIMM
        Set: 2
        Locator: DIMM_2B
        Bank Locator: Not Specified
        Type: DDR
        Type Detail: Synchronous
        Speed: 266 MHz (3.8 ns)</PRE></DIV><BR><BR>
<H3>BIOS information È®ÀÎÇÏ±â</H3>
<DIV style="BORDER-BOTTOM: rgb(219,232,251) 1px solid; BORDER-LEFT: rgb(219,232,251) 1px solid; PADDING-BOTTOM: 10px; BACKGROUND-COLOR: rgb(219,232,251); PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BORDER-TOP: rgb(219,232,251) 1px solid; BORDER-RIGHT: rgb(219,232,251) 1px solid; PADDING-TOP: 10px" class=txc-textbox><PRE># <STRONG>dmidecode -t bios
</STRONG># dmidecode 2.9
SMBIOS 2.3 present.

Handle 0x0000, DMI type 0, 20 bytes
BIOS Information
        Vendor: Dell Computer Corporation
        Version: A07
        Release Date: 01/13/2004
        Address: 0xF0000
        Runtime Size: 64 kB
        ROM Size: 4096 kB
        Characteristics:
                ISA is supported
                PCI is supported
                PNP is supported
                BIOS is upgradeable
                BIOS shadowing is allowed
                ESCD support is available
                Boot from CD is supported
                Selectable boot is supported
                EDD is supported
                Japanese floppy for Toshiba 1.2 MB is supported (int 13h)
                5.25"/360 KB floppy services are supported (int 13h)
                5.25"/1.2 MB floppy services are supported (int 13h)
                3.5"/720 KB floppy services are supported (int 13h)
                8042 keyboard services are supported (int 9h)
                Serial services are supported (int 14h)
                CGA/mono video services are supported (int 10h)
                ACPI is supported
                USB legacy is supported
                LS-120 boot is supported
                BIOS boot specification is supported
                Function key-initiated network boot is supported

Handle 0x0D00, DMI type 13, 22 bytes
BIOS Language Information
        Installable Languages: 1
                en|US|iso8859-1
        Currently Installed Language: en|US|iso8859-1</PRE></DIV><BR><BR>
<H3>ÀåºñÀÇ Manufacturer, Model °ú Serial number È®ÀÎÇÏ±â</H3>
<DIV style="BORDER-BOTTOM: rgb(219,232,251) 1px solid; BORDER-LEFT: rgb(219,232,251) 1px solid; PADDING-BOTTOM: 10px; BACKGROUND-COLOR: rgb(219,232,251); PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BORDER-TOP: rgb(219,232,251) 1px solid; BORDER-RIGHT: rgb(219,232,251) 1px solid; PADDING-TOP: 10px" class=txc-textbox><PRE># <STRONG>dmidecode -t system
</STRONG># dmidecode 2.9
SMBIOS 2.3 present.

Handle 0x0100, DMI type 1, 25 bytes
System Information
        <STRONG>Manufacturer</STRONG>: Dell Computer Corporation
        <STRONG>Product Name</STRONG>: PowerEdge 1750
        Version: Not Specified
        <STRONG>Serial Number</STRONG>: 1234567
        UUID: 4123454C-4123-1123-8123-12345603431
        Wake-up Type: Power Switch

Handle 0x0C00, DMI type 12, 5 bytes
System Configuration Options
        Option 1: NVRAM_CLR:  Clear user settable NVRAM areas and set defaults
        Option 2: PASSWD:  Close to enable password

Handle 0x2000, DMI type 32, 11 bytes
System Boot Information
        Status: No errors detected</PRE></DIV><BR></DIV>]]></description>
<dc:creator>½ÑÀ¥È£½ºÆÃ</dc:creator>
<dc:date>Wed, 06 Mar 2013 14:15:36 +0900</dc:date>
</item>
<item>
<title>The 5 minute DBA: Default My.cnf File</title>
<link>http://www.ssanweb.com/bbs/board.php?bo_table=menual&amp;wr_id=83</link>
<description><![CDATA[<P>Because I was asked¡¦.What should I set my my.cnf parameters to? What are good default values? How much memory should I allocate to the db if I have X amount of ram? What is a good starting point for the mysql config files?</P>
<P>You¡¯re not really Googling for a my.cnf to use are you? You probably are, Shame on you! The best thing to do is to test before you make changes, and find the best configuration for your application. But your not going to are you? oh well I might as well accommodate you. I make no claims these will work for everyone. In fact if you hire me later on I may look at you funny after I analyze your system, and may call you funny names behind your back for using the wrong settings. Because there are a lot of people out their who are only database folks 5 minutes at a time (that¡¯s what these posts are about), they are probably going to stick the my-huge.cnf and go with that anyways. So why not throw out some common my.cnf¡¯s I use. Keep in mind, these are the most common, they may cause weird things to happen in some environments¡¦ that¡¯s why we always say test and benchmark before using. But if your googling for it, chances are your going to put it in anyways:)</P>
<P>And for those who spend more then 5 minutes a day as a DBA, please post your comments and make me look foolish for forgetting your favorite parameter. Remember these are generic starting points, for people who are not going to have a ton of time.</P>
<P>Alright here goes:</P>
<TABLE border=1>
<TBODY>
<TR>
<TD>32 bit system<BR>2GB of memory<BR>Dedicated DB Box<BR>All innodb tables</TD>
<TD>32 bit system<BR>4GB of memory<BR>Dedicated DB Box<BR>All Innodb tables</TD></TR>
<TR>
<TD>[mysqld]<BR>user = mysql<BR>pid-file = /var/run/mysqld/mysqld.pid<BR>socket = /var/run/mysqld/mysqld.sock<BR>port = 3306<BR>basedir = /mysql/<BR>datadir = /data01/data<BR>tmpdir = /tmp<BR>thread_cache_size = 64<BR>table_cache = 64<BR>key_buffer = 64M<BR>sort_buffer_size = 256K<BR>read_buffer_size = 256K<BR>read_rnd_buffer_size = 256K<BR>max_allowed_packet = 1M<BR>tmp_table_size=16M<BR>max_heap_table_size=16M<BR>query_cache_size=64M<BR>query_cache_type=1<BR>log_output=FILE<BR>slow_query_log_file=/mysql/slow1.log<BR>slow_query_log=1<BR>long_query_time=3<BR>log-error=/mysql/error.log<BR>innodb_data_home_dir = /data01/data<BR>innodb_data_file_path = ibdata1:1000M:autoextend<BR>innodb_buffer_pool_size = 768M<BR>innodb_additional_mem_pool_size = 8M<BR>innodb_flush_log_at_trx_commit = 1<BR>innodb_support_xa = 0<BR>innodb_lock_wait_timeout = 50<BR>innodb_flush_method=O_DIRECT<BR>innodb_log_files_in_group = 2<BR>innodb_log_file_size = 64M<BR>innodb_log_buffer_size = 8M<BR>innodb_thread_c&#111;&#110;currency = 8</TD>
<TD>[mysqld]<BR>user = mysql<BR>pid-file = /var/run/mysqld/mysqld.pid<BR>socket = /var/run/mysqld/mysqld.sock<BR>port = 3306<BR>basedir = /mysql/<BR>datadir = /data01/data<BR>tmpdir = /tmp<BR>thread_cache_size = 64<BR>table_cache = 64<BR>key_buffer = 64M<BR>sort_buffer_size = 256K<BR>read_buffer_size = 256K<BR>read_rnd_buffer_size = 256K<BR>max_allowed_packet = 1M<BR>tmp_table_size=16M<BR>max_heap_table_size=16M<BR>query_cache_size=64M<BR>query_cache_type=1<BR>log_output=FILE<BR>slow_query_log_file=/mysql/slow1.log<BR>slow_query_log=1<BR>long_query_time=3<BR>log-error=/mysql/error.log<BR>innodb_data_home_dir = /data01/data<BR>innodb_data_file_path = ibdata1:1000M:autoextend<BR>innodb_buffer_pool_size =2048M<BR>innodb_additional_mem_pool_size = 8M<BR>innodb_flush_log_at_trx_commit = 1<BR>innodb_support_xa = 0<BR>innodb_lock_wait_timeout = 50<BR>innodb_flush_method=O_DIRECT<BR>innodb_log_files_in_group = 2<BR>innodb_log_file_size = 128M<BR>innodb_log_buffer_size = 8M<BR>innodb_thread_c&#111;&#110;currency = 8</TD></TR></TBODY></TABLE>
<TABLE border=1>
<TBODY>
<TR>
<TD>32 bit system<BR>8GB+ of memory<BR>Dedicated DB Box<BR>All Innodb tables</TD>
<TD>64 bit system<BR>8GB of memory<BR>Dedicated DB Box<BR>All innodb tables</TD></TR>
<TR>
<TD>****** Go download a 64Bit OS. ******</TD>
<TD>[mysqld]<BR>user = mysql<BR>pid-file = /var/run/mysqld/mysqld.pid<BR>socket = /var/run/mysqld/mysqld.sock<BR>port = 3306<BR>basedir = /mysql/<BR>datadir = /data01/data<BR>tmpdir = /tmp<BR>thread_cache_size = 128<BR>table_cache = 256<BR>key_buffer = 64M<BR>sort_buffer_size = 256K<BR>read_buffer_size = 256K<BR>read_rnd_buffer_size = 256K<BR>max_allowed_packet = 1M<BR>tmp_table_size=32M<BR>max_heap_table_size=32M<BR>query_cache_size=128M<BR>query_cache_type=1<BR>log_output=FILE<BR>slow_query_log_file=/mysql/slow1.log<BR>slow_query_log=1<BR>long_query_time=2<BR>log-error=/mysql/error.log<BR>innodb_data_home_dir = /data01/data<BR>innodb_data_file_path = ibdata1:1000M:autoextend<BR>innodb_buffer_pool_size = 5120M<BR>innodb_additional_mem_pool_size = 8M<BR>innodb_flush_log_at_trx_commit = 1<BR>innodb_support_xa = 0<BR>innodb_lock_wait_timeout = 50<BR>innodb_flush_method=O_DIRECT<BR>innodb_log_files_in_group = 2<BR>innodb_log_file_size = 64M<BR>innodb_log_buffer_size = 8M<BR>innodb_thread_c&#111;&#110;currency = 8</TD></TR></TBODY></TABLE>
<TABLE border=1>
<TBODY>
<TR>
<TD>64 bit system<BR>16GB of memory<BR>Dedicated DB Box<BR>All Innodb tables</TD>
<TD>64 bit system<BR>32GB of memory<BR>Dedicated DB Box<BR>All Innodb tables</TD></TR>
<TR>
<TD>[mysqld]<BR>user = mysql<BR>pid-file = /var/run/mysqld/mysqld.pid<BR>socket = /var/run/mysqld/mysqld.sock<BR>port = 3306<BR>basedir = /mysql/<BR>datadir = /data01/data<BR>tmpdir = /tmp<BR>thread_cache_size = 128<BR>table_cache = 512<BR>key_buffer = 64M<BR>sort_buffer_size = 256K<BR>read_buffer_size = 256K<BR>read_rnd_buffer_size = 256K<BR>max_allowed_packet = 1M<BR>tmp_table_size=32M<BR>max_heap_table_size=32M<BR>query_cache_size=128M<BR>query_cache_type=1<BR>log_output=FILE<BR>slow_query_log_file=/mysql/slow1.log<BR>slow_query_log=1<BR>long_query_time=2<BR>log-error=/mysql/error.log<BR>innodb_data_home_dir = /data01/data<BR>innodb_data_file_path = ibdata1:1000M:autoextend<BR>innodb_buffer_pool_size = 12288M<BR>innodb_additional_mem_pool_size = 8M<BR>innodb_flush_log_at_trx_commit = 1<BR>innodb_support_xa = 0<BR>innodb_lock_wait_timeout = 50<BR>innodb_flush_method=O_DIRECT<BR>innodb_log_files_in_group = 2<BR>innodb_log_file_size = 128M<BR>innodb_log_buffer_size = 8M<BR>innodb_thread_c&#111;&#110;currency = 12</TD>
<TD>[mysqld]<BR>user = mysql<BR>pid-file = /var/run/mysqld/mysqld.pid<BR>socket = /var/run/mysqld/mysqld.sock<BR>port = 3306<BR>basedir = /mysql/<BR>datadir = /data01/data<BR>tmpdir = /tmp<BR>thread_cache_size = 256<BR>table_cache = 1024<BR>key_buffer = 64M<BR>sort_buffer_size = 256K<BR>read_buffer_size = 256K<BR>read_rnd_buffer_size = 256K<BR>max_allowed_packet = 1M<BR>tmp_table_size=32M<BR>max_heap_table_size=32M<BR>query_cache_size=128M<BR>query_cache_type=1<BR>log_output=FILE<BR>slow_query_log_file=/mysql/slow1.log<BR>slow_query_log=1<BR>long_query_time=2<BR>log-error=/mysql/error.log<BR>innodb_data_home_dir = /data01/data<BR>innodb_data_file_path = ibdata1:1000M:autoextend<BR>innodb_buffer_pool_size =24676M<BR>innodb_additional_mem_pool_size = 8M<BR>innodb_flush_log_at_trx_commit = 1<BR>innodb_support_xa = 0<BR>innodb_lock_wait_timeout = 50<BR>innodb_flush_method=O_DIRECT<BR>innodb_log_files_in_group = 2<BR>innodb_log_file_size = 128M<BR>innodb_log_buffer_size = 8M<BR>innodb_thread_c&#111;&#110;currency = 16</TD></TR></TBODY></TABLE>
<P>NOTE: If you change you log file size, you will get errors unless you move the old ones and allow innodb to recreate them ( do it with the DB down by the way )¡¦ once again I offer no warranty. You may also want to turn of swappiness to avoid swapping (http://www.bigdbahead.com/?p=101).</P>]]></description>
<dc:creator>½ÑÀ¥È£½ºÆÃ</dc:creator>
<dc:date>Wed, 06 Mar 2013 10:01:52 +0900</dc:date>
</item>
<item>
<title>[Àåºñ] OmniSwitch 6850-24x L2/L3 ½ºÀ§Ä¡ ¼³Á¤</title>
<link>http://www.ssanweb.com/bbs/board.php?bo_table=menual&amp;wr_id=82</link>
<description><![CDATA[L2/L3 ½ºÀ§Ä¡·Î ±×µ¿¾È ½Ã½ºÄÚ 3560G ½ºÀ§Ä¡¸¦ ÁÖ·Î »ç¿ëÇØ ¿Ô´Ù. <BR>ÇÏÁö¸¸ ÃÖ±Ù¿¡ 10G ¿Í 1G¸¦ È¥¿ëÇÑ L2/L3 ½ºÀ§Ä¡¸¦ »ìÆìº¸´Ù°¡<BR>¾ËÄ«ÅÚ-·ç½¼Æ® »çÀÇ ¿È´Ï½ºÀ§Ä¡ 6850 ½ºÀ§Ä¡¸¦ »ç¿ëÇÏ°Ô µÇ¾ú½À´Ï´Ù.<BR><BR>1~24 1G UTP Æ÷Æ®°¡ ÀÖ°í, 21~24 ³× Æ÷Æ®´Â GBIC À¸·Î ²Å¾Æ ±¤¿¬°áÀÌ °¡´ÉÇÏµµ·Ï µÇ¾î ÀÖ±¸¿ä,<BR>25,26 µÎ °³ÀÇ XFP 10G Æ÷Æ®°¡ ÀÖ½À´Ï´Ù.<BR><BR>ÄÜ¼Ö ¿¬°á½Ã aOS ¿î¿µ½Ã½ºÅÛÀÇ CLI (Command Line Interface)°¡ Á¸ÀçÇÏ´Âµ¥,<BR>½Ã½ºÄÚ Ä«Å»¸®½ºÆ®ÀÇ iOS¿Í À¯»çÇÏ°Ô µ¿ÀÛÇÏ¿´½À´Ï´Ù.<BR><BR>¿ì¼± ÄÜ¼Ö ¿¬°áÀ» ÇÏ´Âµ¥, ±âÁ¸ÀÇ ÄÜ¼Ö ÄÉÀÌºí·Î´Â ¿¬°áÀÌ µÇÁö ¾Ê¾Ò°í,<BR>Àåºñ¿¡¼­ Á¦°øÇÏ´Â RJ45 &lt;=&gt; RS232(¾Ï) ¾î´äÅÍ°¡ ¿À´Âµ¥ RJ45¿¡ ÀÏ¹Ý UTP ·£ÄÉÀÌºí·Î<BR>¿È´Ï½ºÀ§Ä¡ÀÇ ÄÜ¼Ö¿¡ ¿¬°áÇÏ°í RS232 ºÎºÐÀ» ÄÜ¼Ö ¿¬°áÇÒ ÄÄÀÇ ½Ã¸®¾ó¿¡ ¿¬°áÇÏ¸é µË´Ï´Ù.<BR><BR>ÀÏ´Ü ÄÜ¼Ö·Î ¿¬°áµÇ¸é <BR><BR><SPAN style="COLOR: rgb(51,102,255)">login : <SPAN style="COLOR: rgb(153,0,0)">admin</SPAN></SPAN><BR style="COLOR: rgb(51,102,255)"><SPAN style="COLOR: rgb(51,102,255)">password : <SPAN style="COLOR: rgb(153,0,0)">switch</SPAN></SPAN><BR style="COLOR: rgb(51,102,255)"><SPAN style="COLOR: rgb(51,102,255)"></SPAN><BR style="COLOR: rgb(51,102,255)"><SPAN style="COLOR: rgb(51,102,255)">Welcome to the Alcatel-Lucent OmniSwitch 6000</SPAN><BR style="COLOR: rgb(51,102,255)"><SPAN style="COLOR: rgb(51,102,255)">Software Version 6.4.3.520.R01 GA, April 08, 2010. </SPAN><BR style="COLOR: rgb(51,102,255)"><BR style="COLOR: rgb(51,102,255)"><SPAN style="COLOR: rgb(51,102,255)">Copyright(c), 1994-2010 Alcatel-Lucent. All Rights reserved.</SPAN><BR style="COLOR: rgb(51,102,255)"><BR style="COLOR: rgb(51,102,255)"><SPAN style="COLOR: rgb(51,102,255)">OmniSwitch(TM) is a trademark of Alcatel-Lucent registered</SPAN><BR style="COLOR: rgb(51,102,255)"><SPAN style="COLOR: rgb(51,102,255)">in the United States Patent and Trademark Office.</SPAN><BR style="COLOR: rgb(51,102,255)"><SPAN style="COLOR: rgb(51,102,255)"></SPAN><BR style="COLOR: rgb(51,102,255)"><SPAN style="COLOR: rgb(51,102,255)">-&gt; </SPAN><BR><BR>À§¿Í °°Àº ¿¬°áÀ» ÇÏ¸é µË´Ï´Ù.<BR><BR>¾ÏÈ£º¯°æ<BR><SPAN style="COLOR: rgb(51,51,255)">-&gt; password</SPAN><BR style="COLOR: rgb(51,51,255)"><BR>1) ÃÊ±â ¼³Á¤<BR><BR>1.1) ½Ã°£ ¹× Å¸ÀÓÁ¸ ¼³Á¤<BR><SPAN style="COLOR: rgb(51,51,255)">-&gt; system timezone kst</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">-&gt; system time HH:MM:SS</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">-&gt; show system</SPAN><BR style="COLOR: rgb(51,51,255)"><BR>1.2) ÃÊ±â¿¡´Â ½ºÀ§Ä¡¿¡ IP¸¦ ¼³Á¤ÇÏ°í telnetÀ¸·Î Á¢±ÙÇØµµ ¿¬°áÀÌ µÇÁö ¾Ê´Âµ¥,<BR>¾Æ·¡¿Í °°ÀÌ ÀÎÁõÀ» Ç®¾îÁà¾ß ÇÔ.<BR><SPAN style="COLOR: rgb(51,51,255)">-&gt; aaa authentication default local</SPAN><BR style="COLOR: rgb(51,51,255)"><BR>1.3) ¼³Á¤À» Àåºñ¸¦ ²¯´Ù°¡ ´Ù½Ã ÄÑµµ ¼³Á¤ÀÌ »ì¾ÆÀÖ°Ô ÇÏ·Á¸é,<BR><SPAN style="COLOR: rgb(51,51,255)">-&gt; write memory</SPAN><BR style="COLOR: rgb(51,51,255)"><BR>1.4) Àåºñ reboot<BR><SPAN style="COLOR: rgb(51,51,255)">-&gt; reload</SPAN><BR style="COLOR: rgb(51,51,255)"><BR>2) VLAN ¼³Á¤<BR>¾ÆÁ÷ Àß ¸ô¶ó¼­ ±×·² ¼öµµ ÀÖ´Âµ¥ VLAN ¾øÀÌ Æ÷Æ® ÇÏ³ª¸¸ IP¸¦ ÁöÁ¤ÇÏ´Â ¹æ¹ýÀº<BR>¾ø°í »óÀ§ÀÇ VLANÀ¸·Î ÁöÁ¤À» ÇØÁÖ°í IP¸¦ ¼³Á¤ÇØ¾ß ÇßÀ½.<BR><BR>2.1) VLAN º¸±â<BR><SPAN style="COLOR: rgb(51,51,255)">-&gt; show vlan</SPAN><BR style="COLOR: rgb(51,51,255)"><BR>2.2) VLAN »ý¼º<BR><SPAN style="COLOR: rgb(51,51,255)">-&gt; vlan 99</SPAN><BR style="COLOR: rgb(51,51,255)">(¹øÈ£¸¸ ÁöÁ¤ÇÏ¸é µÈ´Ù)<BR><BR>2.3) VLAN »èÁ¦<BR><SPAN style="COLOR: rgb(51,51,255)">-&gt; no vlan 99</SPAN><BR style="COLOR: rgb(51,51,255)"><BR>3) L3 ½ºÀ§Ä¡ ±¸¼º<BR>1~12¸¦ VLAN 100À¸·Î ÁöÁ¤ÇÏ°í 20.20.20.1/24 IP ¼³Á¤<BR><BR>3.1) ¼³Á¤<BR><SPAN style="COLOR: rgb(51,51,255)">-&gt; vlan 200</SPAN><BR style="COLOR: rgb(51,51,255)">(VLAN 200¹ø »ý¼º)<BR><SPAN style="COLOR: rgb(51,51,255)">-&gt; vlan 200 port default 1/1-12</SPAN><BR style="COLOR: rgb(51,51,255)">(1~12 ¹ø Æ÷Æ®¸¦ VLAN 100¿¡ ÇÒ´ç)<BR><SPAN style="COLOR: rgb(51,51,255)">-&gt; ip interface vlan-200 address 20.20.20.1/24 vlan 200</SPAN><BR style="COLOR: rgb(51,51,255)">(ÇØ´ç VLAN¿¡ 20.20.20.1/24 ÁÖ¼Ò ÇÒ´ç)<BR><BR>3.2) È®ÀÎ<BR><BR>(VLAN ¸ñ·Ï È®ÀÎ)<BR><SPAN style="COLOR: rgb(51,51,255)">-&gt; show vlan</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">vlan type admin oper 1x1 flat auth ip ipx tag lrn name </SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">-----+------+------+------+------+------+----+-----+-----+-----+-----+----------</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">1 std on on on on off on NA off on VLAN 1 </SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">99 std on on on on off on NA off on VLAN 99 </SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">100 std on off on on off on NA off on VLAN 100</SPAN><BR style="COLOR: rgb(51,51,255)"><BR>(VLAN ÇÒ´ç Æ÷Æ® ¸ñ·Ï È®ÀÎ)<BR><SPAN style="COLOR: rgb(51,51,255)">-&gt; show vlan port</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">vlan port type status</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">------+-------+---------+-------------</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">1 1/13 default inactive</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">1 1/14 default inactive</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">1 1/15 default forwarding</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">1 1/16 default inactive</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">1 1/17 default inactive</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">1 1/18 default inactive</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">1 1/19 default forwarding</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">1 1/20 default inactive</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">1 1/21 default inactive</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">1 1/22 default inactive</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">1 1/23 default forwarding</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">1 1/25 default inactive</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">1 1/26 default inactive</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">99 1/24 default forwarding</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">100 1/1 default inactive</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">100 1/2 default inactive</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">100 1/3 default inactive</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">100 1/4 default inactive</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">100 1/5 default inactive</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">100 1/6 default inactive</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">100 1/7 default inactive</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">100 1/8 default inactive</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">100 1/9 default inactive</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">100 1/10 default inactive</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">100 1/11 default inactive</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">100 1/12 default inactive</SPAN><BR style="COLOR: rgb(51,51,255)"><BR>(VLAN ÇÒ´ç IP È®ÀÎ)<BR><SPAN style="COLOR: rgb(51,51,255)">-&gt; show ip interface </SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">Total 4 interfaces</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">Name IP Address Subnet Mask Status Forward Device</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">--------------------+---------------+---------------+------+-------+--------</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">Loopback 127.0.0.1 255.0.0.0 UP NO Loopback</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">dhcp-client 0.0.0.0 0.0.0.0 DOWN NO vlan 1 </SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">vlan-100 20.20.20.1 255.255.255.0 DOWN NO vlan 100</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">vlan_99 10.99.99.1 255.0.0.0 UP YES vlan 99 </SPAN><BR style="COLOR: rgb(51,51,255)"><BR><BR>
<DIV>4) IP ¶ó¿ìÆÃ ¼³Á¤ (½ºÅÂÆ½)</DIV>
<DIV>
<DIV><FONT class=Apple-style-span color=#3333ff>-&gt; ip static-route 40.0.0.0 mask 255.0.0.0 gateway 20.20.20.139</FONT></DIV>
<DIV><FONT class=Apple-style-span color=#3333ff>-&gt; show ip route</FONT></DIV></DIV>
<DIV><BR></DIV>
<DIV>5) Æ÷Æ® Á¤º¸ º¸±â</DIV>
<DIV>
<DIV><FONT class=Apple-style-span color=#6633ff>-&gt; show interfaces 1/3 counters </FONT></DIV>
<DIV><FONT class=Apple-style-span color=#6633ff>1/3 ,</FONT></DIV>
<DIV><FONT class=Apple-style-span color=#6633ff>InOctets = 1697512645, OutOctets = 975263938,</FONT></DIV>
<DIV><FONT class=Apple-style-span color=#6633ff>InUcastPkts = 15865327, OutUcastPkts = 8779963,</FONT></DIV>
<DIV><FONT class=Apple-style-span color=#6633ff>InMcastPkts = 0, OutMcastPkts = 5098,</FONT></DIV>
<DIV><FONT class=Apple-style-span color=#6633ff>InBcastPkts = 5456, OutBcastPkts = 13983,</FONT></DIV>
<DIV><FONT class=Apple-style-span color=#6633ff>InPauseFrames = 0, OutPauseFrames = 0,</FONT></DIV>
<DIV><FONT class=Apple-style-span color=#6633ff>Sampling Interval 5 seconds</FONT></DIV>
<DIV><FONT class=Apple-style-span color=#6633ff>InPkts/s = 71318, OutPkts/s = 34765,</FONT></DIV>
<DIV><FONT class=Apple-style-span color=#6633ff>InBits/s = 61247760, OutBits/s = 29201904</FONT></DIV></DIV>
<DIV><BR></DIV>
<DIV>6) CPU, Memory µîÀÇ Á¤º¸ º¸±â</DIV>
<DIV>
<DIV><FONT class=Apple-style-span color=#3333ff>-&gt; show health</FONT></DIV>
<DIV><FONT class=Apple-style-span color=#3333ff>* - current value exceeds threshold</FONT></DIV>
<DIV><FONT class=Apple-style-span color=#3333ff>Device 1 Min 1 Hr 1 Hr</FONT></DIV>
<DIV><FONT class=Apple-style-span color=#3333ff>Resources Limit Curr Avg Avg Max </FONT></DIV>
<DIV><FONT class=Apple-style-span color=#3333ff>-----------------+-------+------+------+-----+---- </FONT></DIV>
<DIV><FONT class=Apple-style-span color=#3333ff>Receive 80 01 01 01 01 </FONT></DIV>
<DIV><FONT class=Apple-style-span color=#3333ff>Transmit/Receive 80 01 01 01 01 </FONT></DIV>
<DIV><FONT class=Apple-style-span color=#3333ff>Memory 80 71 71 71 71 </FONT></DIV>
<DIV><FONT class=Apple-style-span color=#3333ff>Cpu 80 09 12 12 16</FONT></DIV></DIV>
<DIV><BR><BR>7) Config ÆÄÀÏ °ü·Ã<BR><SPAN style="COLOR: rgb(51,102,255)">-&gt; dir</SPAN><BR style="COLOR: rgb(51,102,255)"><SPAN style="COLOR: rgb(51,102,255)">Listing Directory /flash:</SPAN><BR style="COLOR: rgb(51,102,255)"><SPAN style="COLOR: rgb(51,102,255)">drw 1024 Jul 19 10:38 certified/</SPAN><BR style="COLOR: rgb(51,102,255)"><SPAN style="COLOR: rgb(51,102,255)">-rw 317 Jul 19 10:41 boot.params </SPAN><BR style="COLOR: rgb(51,102,255)"><SPAN style="COLOR: rgb(51,102,255)">drw 1024 Jul 19 10:43 working/</SPAN><BR style="COLOR: rgb(51,102,255)"><SPAN style="COLOR: rgb(51,102,255)">-rw 11 Jul 13 03:36 boot.slot.cfg </SPAN><BR style="COLOR: rgb(51,102,255)"><SPAN style="COLOR: rgb(51,102,255)">-rw 64000 Jul 19 10:52 swlog1.log </SPAN><BR style="COLOR: rgb(51,102,255)"><SPAN style="COLOR: rgb(51,102,255)">-rw 64000 Dec 26 2010 swlog2.log </SPAN><BR style="COLOR: rgb(51,102,255)"><SPAN style="COLOR: rgb(51,102,255)">drw 1024 Dec 26 2010 switch/</SPAN><BR style="COLOR: rgb(51,102,255)"><SPAN style="COLOR: rgb(51,102,255)">drw 1024 Jul 13 03:36 network/</SPAN><BR style="COLOR: rgb(51,102,255)"><SPAN style="COLOR: rgb(51,102,255)">12284928 bytes free</SPAN><BR style="COLOR: rgb(51,102,255)"><BR>À§¿Í °°ÀÌ /flash ¿¡´Â working cerified Æú´õ°¡ ÀÖ´Âµ¥,<BR>working¿¡¼­ ÀÛ¾÷À» ÇÏ°Ô µÇ°í, reload ¸í·É¾î·Î rebootÀ» ÇÒ ¼ö ÀÖ´Âµ¥,<BR><BR><SPAN style="COLOR: rgb(51,51,255)">-&gt; reload</SPAN><BR style="COLOR: rgb(51,51,255)">¶ó ÇÏ¸é certified µð·ºÅÍ¸®¿¡¼­ ÀÐ¾î¼­ ÀçºÎÆÃÀ» ÇÏ°ÔµÇ°í,<BR><BR><SPAN style="COLOR: rgb(51,51,255)">-&gt; reload working no rollback-time </SPAN><BR style="COLOR: rgb(51,51,255)">ÀÌ¶ó ÇÏ¸é working µð·ºÅÍ¸®ÀÇ ¼³Á¤°ªÀ¸·Î ºÎÆÃÀ» ÇÕ´Ï´Ù.<BR><BR>½ÇÁ¦ ¼³Á¤ ÀÛ¾÷À» ÇÏ¸é ÀÌ°ÍÀº running-config ¶ó´Â ¸Þ¸ð¸®¿¡ ÀúÀåµÇ´Â °ÍÀÌ°í<BR><SPAN style="COLOR: rgb(51,51,255)">-&gt; write memory</SPAN><BR style="COLOR: rgb(51,51,255)">¿Í µ¿ÀÏÇÑ ¸í·É¾î·Î<BR><SPAN style="COLOR: rgb(51,51,255)">-&gt; copy running-config working</SPAN><BR style="COLOR: rgb(51,51,255)">¸Þ¸ð¸®ÀÇ ¼³Á¤ ³»¿ëÀ» working Æú´õ¿¡ º¹»çÇÏ´Â °ÍÀÔ´Ï´Ù.<BR><BR>¶ÇÇÑ,<BR><SPAN style="COLOR: rgb(51,51,255)">-&gt; copy working certified</SPAN><BR style="COLOR: rgb(51,51,255)">¶ó°í ÇÏ¿© working Æú´õ¿¡ ³»¿ëÀ» certified Æú´õ·Î ÀÏÄ¡¸¦ ½ÃÅ³ ¼ö ÀÖ½À´Ï´Ù.<BR><BR><SPAN style="COLOR: rgb(51,51,255)">-&gt; cd working</SPAN><BR style="COLOR: rgb(51,51,255)">¿¡¼­ dir ¸í·ÉÀ¸·Î º¸¸é, ºÎÆÃ ÀÌ¹ÌÁö ÆÄÀÏµéÀÌ ÀÖ°í ¼³Á¤ÆÄÀÏÀÎ boot.cfg ÆÄÀÏÀÌ ÀÖ½À´Ï´Ù.<BR><BR><SPAN style="COLOR: rgb(51,51,255)">-&gt; cp boot.cfg boot_L3.cfg</SPAN><BR style="COLOR: rgb(51,51,255)">À§ÀÇ ¸í·ÉÀ¸·Î ÇöÀç ¼³Á¤À» ´Ù¸¥ ÀÌ¸§À¸·Î º¹»çÇØ ³õÀ» ¼ö ÀÖ½À´Ï´Ù.<BR><BR><SPAN style="COLOR: rgb(51,51,255)">-&gt; vi boot.cfg</SPAN><BR style="COLOR: rgb(51,51,255)">¶ÇÇÑ vi ¸í·Éµµ ¼öÇàÇÏ¿© ±× ³»¿ëÀ» º¯°æÇÒ ¼ö ÀÖ½À´Ï´Ù.<BR><BR><BR>8) ¼³Á¤ ÃÊ±âÈ­<BR><SPAN style="COLOR: rgb(51,51,255)">-&gt; cd working</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">-&gt; rm boot.cfg</SPAN><BR style="COLOR: rgb(51,51,255)"><SPAN style="COLOR: rgb(51,51,255)">-&gt; reload working no rollback-timeout</SPAN><BR style="COLOR: rgb(51,51,255)"><BR><BR></DIV>
<DIV>9) Æ÷Æ® ¹Ì·¯¸µ</DIV>
<DIV>
<DIV><FONT class=Apple-style-span color=#3333ff>-&gt; policy condition c1 source ip 192.168.20.1</FONT></DIV>
<DIV><FONT class=Apple-style-span color=#3333ff>-&gt; policy action a1 mirror ingress 1/10</FONT></DIV>
<DIV><FONT class=Apple-style-span color=#3333ff>-&gt; policy rule r1 condition c1 action a1</FONT></DIV>
<DIV><FONT class=Apple-style-span color=#3333ff>-&gt; qos apply</FONT></DIV></DIV>
<DIV><BR></DIV>
<DIV>½ºÀ§Ä¡¿¡¼­ ¼Ò½º IP°¡ 192.168.20.1 ÀÎ ¸ðµç ÇÃ·Î¿ì¿¡ ´ëÇÏ¿© 10¹ø Æ÷Æ®·Î ¹Ì·¯¸µ ÇÏ°Ô µË´Ï´Ù. </DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV>10) ACL</DIV>
<DIV>
<DIV><BR></DIV>
<DIV>10.1) Layer2 ACL</DIV>
<DIV><FONT class=Apple-style-span color=#990000>-&gt; policy condition toMAC3 destination mac 00:00:00:00:00:03 </FONT></DIV>
<DIV><FONT class=Apple-style-span color=#990000>-&gt; policy action deny disposition drop</FONT></DIV>
<DIV><FONT class=Apple-style-span color=#990000>-&gt; policy rule r1 condition toMAC3 action deny</FONT></DIV>
<DIV><FONT class=Apple-style-span color=#990000>-&gt; qos apply</FONT></DIV>
<DIV><BR></DIV>
<DIV>10.2) Layer3 ACL</DIV>
<DIV><FONT class=Apple-style-span color=#3333ff>-&gt; policy condition fromIP1toIP3 source ip 10.0.0.100 destination ip 192.0.0.0 mask 255.0.0.0 </FONT></DIV>
<DIV><FONT class=Apple-style-span color=#3333ff>-&gt; policy action deny disposition deny</FONT></DIV>
<DIV><FONT class=Apple-style-span color=#3333ff>-&gt; policy rule r1 condition fromIP1toIP3 action deny</FONT></DIV>
<DIV><FONT class=Apple-style-span color=#3333ff>-&gt; qos apply</FONT></DIV>
<DIV><BR></DIV>
<DIV>10.3) Layer4 ACL</DIV>
<DIV><FONT class=Apple-style-span color=#6600cc>-&gt; policy service t445 destination tcp port 445 </FONT></DIV>
<DIV><FONT class=Apple-style-span color=#6600cc>-&gt; policy service t135 destination tcp port 135 </FONT></DIV>
<DIV><FONT class=Apple-style-span color=#6600cc>-&gt; policy service group tcp_group t445 t135 </FONT></DIV>
<DIV><FONT class=Apple-style-span color=#6600cc>-&gt; policy condition c1 service group tcp_group </FONT></DIV>
<DIV><FONT class=Apple-style-span color=#6600cc>-&gt; policy action deny disposition deny</FONT></DIV>
<DIV><FONT class=Apple-style-span color=#6600cc>-&gt; policy rule r1 condition c1 action deny </FONT></DIV>
<DIV><FONT class=Apple-style-span color=#6600cc>-&gt; qos apply</FONT></DIV></DIV>
<DIV></DIV>]]></description>
<dc:creator>½ÑÀ¥È£½ºÆÃ</dc:creator>
<dc:date>Tue, 05 Mar 2013 09:15:09 +0900</dc:date>
</item>
<item>
<title>MSSQL  _Log.LDF ÆÄÀÏ »çÀÌÆ® Ä¿Á³À»¶§ Á¤¸®ÇÏ´Â ¹æ¹ý</title>
<link>http://www.ssanweb.com/bbs/board.php?bo_table=menual&amp;wr_id=81</link>
<description><![CDATA[backup log&nbsp;µðºñ¸í with truncate_only<BR>dbcc shrinkdatabase (µðºñ¸í,20)&nbsp; --------- 20M ·Î ÁÙÀÌ°Ú´Ù´Â ¶æ.]]></description>
<dc:creator>½ÑÀ¥È£½ºÆÃ</dc:creator>
<dc:date>Wed, 20 Feb 2013 10:33:33 +0900</dc:date>
</item>
<item>
<title>MSSQL¿¡¼­ DB º¹¿ø ÈÄ »ç¿ëÀÚ¿¡ ·Î±×ÀÎÀÌ¸§ÀÌ ¾ø¾î ¿À·ù°¡ ³ª´Â ¹®Á¦</title>
<link>http://www.ssanweb.com/bbs/board.php?bo_table=menual&amp;wr_id=80</link>
<description><![CDATA[<SPAN class="pcol1 itemSubjectBoldfont"><FONT color=#333333 face=µ¸¿ò>
<P>¸ÕÀú Äõ¸®¸Å´ÏÀú¿¡¼­ ¿¬°áµÇÁö ¾ÊÀº °èÁ¤À» È®ÀÎÇÑ´Ù. <BR><BR>sp_change_users_login 'Report'<BR><BR>ÇÏ¸é »ç¿ëÀÚ´Â ÀÖ´Âµ¥ ¿¬°áµÇÁö ¾ÊÀº »ç¿ëÀÚÀÇ ¾ÆÀÌµð°¡ ³ª¿Â´Ù. 
<DIV class=autosourcing-stub>³ª¿À´Â ÀÌ¸§À» È®ÀÎÇÏ°í ·Î±×ÀÎÀÌ¸§À» µ¿ÀÏÇÏ°Ô ¸¸µé°í<BR><BR>
<P>sp_change_users_login 'Update_one', 'username', 'username' 
<DIV class=autosourcing-stub>
<P></P>¸¦ ÇØÁÖ¸é ¿¬°áÀÌ µÈ´Ù.<BR></DIV></DIV></FONT></SPAN>]]></description>
<dc:creator>½ÑÀ¥È£½ºÆÃ</dc:creator>
<dc:date>Tue, 19 Feb 2013 11:23:40 +0900</dc:date>
</item>
<item>
<title>centos 6.2 oracle 10g ¼³Ä¡</title>
<link>http://www.ssanweb.com/bbs/board.php?bo_table=menual&amp;wr_id=77</link>
<description><![CDATA[<DIV>
<P><FONT color=#000000><B>1) °¢Á¾ È¯°æº¯¼ö °ª ¼³Á¤ </B>( ²À ¿À¶óÅ¬ ¼³Ä¡¸¦ À§ÇØ¼­¸¸ ÇÊ¿äÇÑ °ÍÀÌ ¾Æ´Ñ ±âº»Àû ¼³Á¤µé )<BR></FONT></P>
<DIV style="BORDER-BOTTOM: rgb(193,193,193) 1px solid; BORDER-LEFT: rgb(193,193,193) 1px solid; PADDING-BOTTOM: 10px; BACKGROUND-COLOR: rgb(238,238,238); PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BORDER-TOP: rgb(193,193,193) 1px solid; BORDER-RIGHT: rgb(193,193,193) 1px solid; PADDING-TOP: 10px" class=txc-textbox>
<P style="MARGIN: 0px"></P>
<DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">
<DIV style="FONT-WEIGHT: bold">&lt; ÇÑ±Û manpages ¼³Ä¡ &gt;</DIV>
<DIV>yum -y install man-pages-ko.noarch</DIV></SPAN></DIV>
<DIV><B style="COLOR: rgb(0,0,0)"><BR></B></DIV>
<DIV><B style="COLOR: rgb(0,0,0)">&lt; /etc/hosts &gt;</B></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">127.0.0.1 mycent localhost localhost.localdomain localhost4 localhost4.localdomain4</SPAN></DIV>
<DIV><FONT color=#000000>
<DIV>::1 localhost localhost.localdomain localhost6 localhost6.localdomain6</DIV>
<DIV>192.168.200.3 mycent</DIV></FONT></DIV>
<DIV><FONT color=#000000><BR></FONT></DIV>
<DIV><FONT color=#000000>
<DIV><B>&lt; /etc/sysconfig/network &gt;</B></DIV>
<DIV>NETWORKING=yes</DIV>
<DIV>HOSTNAME=mycent</DIV><BR class=Apple-interchange-newline></FONT></DIV></DIV>
<DIV><FONT color=#000000>
<DIV><B>&lt; /etc/sysconfig/i18n &gt;</B></DIV>
<DIV>LANG="ko_KR.UTF-8"</DIV>
<DIV>SYSF&#111;&#110;T="en_US.UTF-8:en_US:en:ko_KR.eucKR:ko_KR:ko"</DIV></FONT></DIV>
<DIV><FONT color=#000000><B><BR></B></FONT></DIV>
<DIV><FONT color=#000000><B>&lt; /etc/redhat-release &gt;</B><BR>[root@mycent ]# cp /etc/redhat-release /etc/redhat-release.backup</FONT></DIV>
<DIV><FONT color=#000000>[root@mycent ]# vi /etc/redhat-release</FONT></DIV>
<DIV><FONT color=#000000>"CentOS release 6.2 (Final)" -&gt; "redhat-4"·Î º¯°æ</FONT></DIV>
<DIV><FONT color=#000000><B><BR></B></FONT></DIV>
<DIV><FONT color=#000000><B>&lt; /etc/sysctl.conf &gt;</B></FONT></DIV>
<DIV><FONT color=#000000>[root@mycent ]# cp /etc/sysctl.conf /etc/sysctl.conf.backup</FONT></DIV>
<DIV><FONT color=#000000>[root@mycent ]# vi /etc/sysctl.conf</FONT></DIV>
<DIV><FONT color=#000000>ÀÖ´Â Ç×¸ñÀº °ª ¼öÁ¤</FONT></DIV>
<DIV><FONT color=#000000>kernel.shmall = 2097152</FONT></DIV>
<DIV><FONT color=#000000>kernel.shmmax = 536870912</FONT></DIV>
<DIV><FONT color=#000000>¾ø´Â Ç×¸ñÀº °ª Ãß°¡</FONT></DIV>
<DIV><FONT color=#000000>kernel.shmmni = 4096</FONT></DIV>
<DIV><FONT color=#000000>fs.aio-max-nr = 1048576</FONT></DIV>
<DIV><FONT color=#000000>fs.file-max = 6815744</FONT></DIV>
<DIV><FONT color=#000000>kernel.sem = 250 32000 100 128</FONT></DIV>
<DIV><FONT color=#000000>net.ipv4.ip_local_port_range = 1024 65000</FONT></DIV>
<DIV><FONT color=#000000>net.core.rmem_default = 262144</FONT></DIV>
<DIV><FONT color=#000000>net.core.rmem_max = 4194304</FONT></DIV>
<DIV><FONT color=#000000>net.core.wmem_default = 262144</FONT></DIV>
<DIV><FONT color=#000000>net.core.wmem_max = 1048586</FONT></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">Ä¿³Î ¸Å°³º¯¼ö Àû¿ë</SPAN></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">[root@mycent ]# /sbin/sysctl -p</SPAN></DIV>
<DIV><FONT color=#000000><BR><B>&lt; /etc/security/limits.conf &gt;</B></FONT></DIV>
<DIV><FONT color=#000000>[root@mycent ]# cp /etc/security/limits.conf /etc/security/limits.conf.backup</FONT></DIV>
<DIV><FONT color=#000000>[root@mycent ]# vi /etc/security/limits.conf</FONT></DIV>
<DIV><FONT color=#000000>¾Æ·¡³»¿ë Ãß°¡</FONT></DIV>
<DIV><FONT color=#000000>#@student - maxlogins 4</FONT></DIV>
<DIV><FONT color=#000000>oracle soft nproc 2047</FONT></DIV>
<DIV><FONT color=#000000>oracle hard nproc 16384</FONT></DIV>
<DIV><FONT color=#000000>oracle soft nofile 1024</FONT></DIV>
<DIV><FONT color=#000000>oracle hard nofile 65536</FONT></DIV>
<DIV><FONT color=#000000># End of file</FONT></DIV>
<DIV><FONT color=#000000><BR><B>&lt; /etc/selinux/config &gt;</B></FONT></DIV>
<DIV><FONT color=#000000>[root@mycent ]# cp /etc/selinux/config /etc/selinux/config.backup</FONT></DIV>
<DIV><FONT color=#000000>[root@mycent ]# vi /etc/selinux/config</FONT></DIV>
<DIV><FONT color=#000000>"SELINUX=enforcing" -&gt; "SELINUX=disabled"·Î º¯°æ</FONT></DIV>
<DIV><FONT color=#000000><BR><B>&lt; /etc/pam.d/login &gt;</B></FONT></DIV>
<DIV><FONT color=#000000>[root@mycent ]# cp /etc/pam.d/login /etc/pam.d/login.backup</FONT></DIV>
<DIV><FONT color=#000000>[root@mycent ]# vi /etc/pam.d/login</FONT></DIV>
<DIV><FONT color=#000000>¾Æ·¡³»¿ë Ãß°¡</FONT></DIV>
<DIV><FONT color=#000000>session required pam_limits.so</FONT></DIV></DIV><FONT color=#000000><BR><B>2) ÇÊ¼ö ÆÐÅ°Áö ¼³Ä¡</B><BR></FONT>
<DIV style="BORDER-BOTTOM: rgb(193,193,193) 1px solid; BORDER-LEFT: rgb(193,193,193) 1px solid; PADDING-BOTTOM: 10px; BACKGROUND-COLOR: rgb(238,238,238); PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BORDER-TOP: rgb(193,193,193) 1px solid; BORDER-RIGHT: rgb(193,193,193) 1px solid; PADDING-TOP: 10px" class=txc-textbox>
<P style="MARGIN: 0px"></P>
<DIV><FONT color=#000000>[root@mycent ]# yum install binutils-2* compat-libstdc++-33* elfutils-libelf* gcc-4.* gcc-c++-4.* glibc-2.* glibc-common-2.* glibc-devel-2.* glibc-headers-2.* ksh* libaio-0.* libaio-devel-0.* libgomp-4.* libgcc-4.* libstdc++-4.* libstdc++-devel-4.* make-3.* sysstat-7.* unixODBC-2.* unixODBC-devel-2.* pdksh* libXp</FONT></DIV></DIV><FONT color=#000000><BR><B>3) ¿À¶óÅ¬ °èÁ¤ ¹× ±×·ì »ý¼º</B><BR></FONT>
<DIV style="BORDER-BOTTOM: rgb(193,193,193) 1px solid; BORDER-LEFT: rgb(193,193,193) 1px solid; PADDING-BOTTOM: 10px; BACKGROUND-COLOR: rgb(238,238,238); PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BORDER-TOP: rgb(193,193,193) 1px solid; BORDER-RIGHT: rgb(193,193,193) 1px solid; PADDING-TOP: 10px" class=txc-textbox>
<P style="MARGIN: 0px"></P>
<DIV><FONT color=#000000>[root@mycent ]# groupadd oinstall</FONT></DIV>
<DIV><FONT color=#000000>[root@mycent ]# groupadd dba</FONT></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">[root@mycent ]# useradd -g oinstall -G dba oracle</SPAN></DIV>
<DIV><FONT color=#000000>[root@mycent ]# passwd oracle</FONT></DIV>
<DIV><FONT color=#000000>[root@mycent ]# mkdir -p /opt/oracle/product/10.2.0/db_1 <B>(¼³Ä¡´ë»ó°æ·Î)</B></FONT></DIV>
<DIV><FONT color=#000000>[root@mycent ]# chown -R oracle:oinstall /opt/oracle</FONT></DIV>
<DIV><FONT color=#000000>[root@mycent ]# chmod -R 775 /opt/oracle </FONT></DIV></DIV><FONT color=#000000><BR><B>4) ¿À¶óÅ¬ °èÁ¤ È¯°æº¯¼ö ¼³Á¤</B><BR></FONT>
<DIV style="BORDER-BOTTOM: rgb(193,193,193) 1px solid; BORDER-LEFT: rgb(193,193,193) 1px solid; PADDING-BOTTOM: 10px; BACKGROUND-COLOR: rgb(238,238,238); PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BORDER-TOP: rgb(193,193,193) 1px solid; BORDER-RIGHT: rgb(193,193,193) 1px solid; PADDING-TOP: 10px" class=txc-textbox>
<P style="MARGIN: 0px"></P>
<DIV><FONT color=#000000>[root@mycent ]# su - oracle</FONT></DIV>
<DIV><FONT color=#000000>[oracle@mycent ]$ vi .bash_profile</FONT></DIV>
<DIV><FONT color=#000000># .bash_profile</FONT></DIV>
<DIV><FONT color=#000000><BR></FONT></DIV>
<DIV><FONT color=#000000># Get the aliases and functions</FONT></DIV>
<DIV><FONT color=#000000>if [ -f ~/.bashrc ]; then</FONT></DIV>
<DIV><FONT color=#000000>. ~/.bashrc</FONT></DIV>
<DIV><FONT color=#000000>fi</FONT></DIV>
<DIV><FONT color=#000000><BR></FONT></DIV>
<DIV><FONT color=#000000># User specific environment and startup programs</FONT></DIV>
<DIV><FONT color=#000000>export PATH=$PATH:$HOME/bin</FONT></DIV>
<DIV><FONT color=#000000><BR><SPAN style="WIDTH: 1px; FLOAT: right; HEIGHT: 1px" id=callbacknestopennesstistorycom1198951></SPAN></FONT></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">export</SPAN><SPAN style="COLOR: rgb(0,0,0)"> </SPAN><FONT color=#000000>TMP=/tmp;</FONT></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">export</SPAN><SPAN style="COLOR: rgb(0,0,0)"> </SPAN><FONT color=#000000>TMPDIR=$TMP;</FONT></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">export</SPAN><SPAN style="COLOR: rgb(0,0,0)"> </SPAN><FONT color=#000000>ORACLE_HOSTNAME=<B>mycent</B>;</FONT></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">export</SPAN><SPAN style="COLOR: rgb(0,0,0)"> </SPAN><FONT color=#000000>ORACLE_BASE=/opt/oracle;</FONT></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">export</SPAN><SPAN style="COLOR: rgb(0,0,0)"> </SPAN><FONT color=#000000>ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1;</FONT></DIV>
<DIV><FONT color=#000000>export ORACLE_SID=orcl;</FONT></DIV>
<DIV><FONT color=#000000>export TNS_ADMIN=$ORACLE_HOME/network/admin</FONT></DIV>
<DIV><FONT color=#000000>export ORA_NLS10=$ORACLE_HOME/nls/data</FONT></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">export ORACLE_TERM=xterm;</SPAN></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">export PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:.:$PATH;</SPAN></DIV>
<DIV><FONT color=#000000>export SHLIB_PATH=$ORACLE_HOME/lib:/usr/lib:/lib:/usr/local/lib;</FONT></DIV>
<DIV><FONT color=#000000>export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib:/lib:/usr/local/lib;</FONT></DIV>
<DIV><FONT color=#000000><BR></FONT></DIV>
<DIV><FONT color=#000000>if [ $USER = "oracle" ]; then</FONT></DIV>
<DIV><FONT color=#000000>if [ $SHELL = "/bin/ksh" ]; then</FONT></DIV>
<DIV><FONT color=#000000>ulimit -p 16384</FONT></DIV>
<DIV><FONT color=#000000>ulimit -n 65536</FONT></DIV>
<DIV><FONT color=#000000>else</FONT></DIV>
<DIV><FONT color=#000000>ulimit -u 16384 -n 65536</FONT></DIV>
<DIV><FONT color=#000000>fi</FONT></DIV>
<DIV><FONT color=#000000>fi</FONT></DIV>
<DIV><FONT color=#000000><BR></FONT></DIV>
<DIV><FONT color=#000000>if [ $USER = "oracle" ]; then</FONT></DIV>
<DIV><FONT color=#000000>if [ $SHELL = "/bin/ksh" ]; then</FONT></DIV>
<DIV><FONT color=#000000>ulimit -p 16384</FONT></DIV>
<DIV><FONT color=#000000>ulimit -n 65536</FONT></DIV>
<DIV><FONT color=#000000>else</FONT></DIV>
<DIV><FONT color=#000000>ulimit -u 16384 -n 65536</FONT></DIV>
<DIV><FONT color=#000000>fi</FONT></DIV>
<DIV><FONT color=#000000>fi</FONT></DIV></DIV><FONT color=#000000><BR><B>5) ¿À¶óÅ¬ ¼³Ä¡ ÇÁ·Î±×·¥ ±¸µ¿</B><BR></FONT>
<DIV style="BORDER-BOTTOM: rgb(193,193,193) 1px solid; BORDER-LEFT: rgb(193,193,193) 1px solid; PADDING-BOTTOM: 10px; BACKGROUND-COLOR: rgb(238,238,238); PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BORDER-TOP: rgb(193,193,193) 1px solid; BORDER-RIGHT: rgb(193,193,193) 1px solid; PADDING-TOP: 10px" class=txc-textbox>
<P style="MARGIN: 0px"></P>
<DIV><FONT color=#000000>oralce °èÁ¤À¸·Î X-window ·Î±ä</FONT></DIV>
<DIV><FONT color=#000000>- </FONT><SPAN style="COLOR: rgb(0,0,0)">ÅÍ¹Ì³Î ¿­°í export LANG=c ¼öÇà (¾È±×·¯¸é ¼³Ä¡ ÇÁ·Î±×·¥ ±ÛÀÚ°¡ ´Ù ±úÁü)</SPAN></DIV>
<DIV><FONT color=#000000>- </FONT><SPAN style="COLOR: rgb(0,0,0)">¿À¶óÅ¬ ¼³Ä¡ ÇÁ·Î±×·¥ °æ·Î¿¡¼­ ./runInstaller ½ÇÇà</SPAN></DIV>
<DIV><FONT color=#000000>- </FONT><SPAN style="COLOR: rgb(0,0,0)">"Installation Method"¿¡¼­ "Advanced Installation" ¼±ÅÃ</SPAN></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">- "Inventory directory and credentials"¿¡¼­ "Operating System group name"¿¡ oinstall ¼±ÅÃ</SPAN></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">- "Installation Type"¿¡¼­ "Product Language"¿¡¼­ Korean Ãß°¡ (¿µ¾î´Â ±âº»¼±ÅÃ</SPAN><SPAN style="COLOR: rgb(0,0,0)">)</SPAN></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">- "Installation Type"¿¡¼­ "Standard Edition" ¼±ÅÃ</SPAN></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">- "Home Details"¿¡¼­ °æ·Î È®ÀÎ<BR></SPAN></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">- "Prerequisite Checks"¿¡¼­ ¸ðµÎ SucceededÀÎÁö È®ÀÎ</SPAN></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">- "Configuration Option"¿¡¼­ "Create a database" ¼±ÅÃ</SPAN></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">- "Database Configuration"¿¡¼­ "General Purpose" ¼±ÅÃ</SPAN></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">- </SPAN><SPAN style="COLOR: rgb(0,0,0)">"Database Configuration Options"¿¡¼­ "Character set"¿¡¼­ UTF-8 AL32UTF8 ¼±ÅÃ</SPAN></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">- </SPAN><SPAN style="COLOR: rgb(0,0,0)">"Database Configuration Options"¿¡¼­ "Create database with sample schemas" ¼±ÅÃ</SPAN></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">- "Database Storage Option"¿¡¼­ "File System" ¼±ÅÃ ¹× DB ÀúÀå¼Ò °æ·Î È®ÀÎ</SPAN></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">- "Backup and Recovery Options"¿¡¼­ "Do not enable Automated backups" ¼±ÅÃ</SPAN></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">- "Database Schema Passwords"¿¡¼­ "Use the same password for all the accounts" ¼±ÅÃ</SPAN></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">- "Summary"¿¡¼­ Ãâ·Â ³»¿ë ÀüÃ¼ È®ÀÎ</SPAN></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">- ¼³Ä¡ ¸¶¹«¸® ´Ü°è¿¡¼­ ¾Æ·¡ µÎ°³ÀÇ ½© ½ºÅ©¸³Æ®¸¦ root±ÇÇÑÀ¸·Î ¼öµ¿ ½ÇÇà(È­¸é¿¡ ¾È³» ³ª¿È)</SPAN></DIV>
<DIV><FONT color=#000000>/opt/oracle/oraInventory/orainstRoot.sh</FONT></DIV>
<DIV><FONT color=#000000>/opt/oracle/product/10.2.0/db_1/root.sh</FONT></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">- X-window »ó¿¡¼­ÀÇ ¼³Ä¡°úÁ¤ ¿Ï·á </SPAN></DIV></DIV><FONT color=#000000><BR><B>6) ¿À¶óÅ¬ ÀÚµ¿ ½ÃÀÛ/Á¾·á ¼³Á¤</B><BR></FONT>
<DIV style="BORDER-BOTTOM: rgb(193,193,193) 1px solid; BORDER-LEFT: rgb(193,193,193) 1px solid; PADDING-BOTTOM: 10px; BACKGROUND-COLOR: rgb(238,238,238); PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BORDER-TOP: rgb(193,193,193) 1px solid; BORDER-RIGHT: rgb(193,193,193) 1px solid; PADDING-TOP: 10px" class=txc-textbox>
<P style="MARGIN: 0px"></P>
<DIV><FONT color=#000000>oracle °èÁ¤À¸·Î ¼öÁ¤</FONT></DIV>
<DIV><FONT color=#000000><B>&lt; /etc/oratab &gt;</B></FONT></DIV>
<DIV><FONT color=#000000>orcl:/opt/oracle/product/10.2.0/db_1:<B>Y</B></FONT></DIV>
<DIV><FONT color=#000000><BR></FONT></DIV>
<DIV><FONT color=#000000>
<DIV>root °èÁ¤À¸·Î ¼öÁ¤</DIV>
<DIV><B>&lt; /etc/rc.d/rc.local &gt;</B></DIV>
<DIV>#!/bin/sh</DIV>
<DIV>#</DIV>
<DIV># This &#115;&#99;ript will be executed *after* all the other init &#115;&#99;ripts.</DIV>
<DIV># You can put your own initialization stuff in here if you don't</DIV>
<DIV># want to do the full Sys V style init stuff.</DIV>
<DIV><BR></DIV>
<DIV>touch /var/lock/subsys/local</DIV>
<DIV>su - oracle -c /opt/oracle/product/10.2.0/db_1/bin/dbstart</DIV>
<DIV>su - oracle -c /opt/oracle/product/10.2.0/db_1/bin/"lsnrctl start"</DIV></FONT></DIV></DIV></DIV>
<DIV>
<P><FONT color=#000000><BR><B>7) ¿À¶óÅ¬ »ç¿ë ÀÏ¹Ý »ç¿ëÀÚ °èÁ¤ È¯°æ¼³Á¤</B><BR></FONT></P>
<DIV style="BORDER-BOTTOM: rgb(193,193,193) 1px solid; BORDER-LEFT: rgb(193,193,193) 1px solid; PADDING-BOTTOM: 10px; BACKGROUND-COLOR: rgb(238,238,238); PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BORDER-TOP: rgb(193,193,193) 1px solid; BORDER-RIGHT: rgb(193,193,193) 1px solid; PADDING-TOP: 10px" class=txc-textbox>
<P style="MARGIN: 0px"></P>
<DIV><FONT color=#000000>[userid@mycent ]$ vi .bash_profile</FONT></DIV>
<DIV><FONT color=#000000># ORACLE 10g Env</FONT></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">export</SPAN><SPAN style="COLOR: rgb(0,0,0)"> </SPAN><FONT color=#000000>TMP=/tmp;</FONT></DIV>
<DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">export</SPAN><SPAN style="COLOR: rgb(0,0,0)"> </SPAN><FONT color=#000000>TMPDIR=$TMP;</FONT></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">export</SPAN><SPAN style="COLOR: rgb(0,0,0)"> </SPAN><FONT color=#000000>ORACLE_HOSTNAME=<B>mycent</B>;</FONT></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">export</SPAN><SPAN style="COLOR: rgb(0,0,0)"> </SPAN><FONT color=#000000>ORACLE_BASE=/opt/oracle;</FONT></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">export</SPAN><SPAN style="COLOR: rgb(0,0,0)"> </SPAN><FONT color=#000000>ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1;</FONT></DIV>
<DIV><FONT color=#000000>export ORACLE_SID=orcl;</FONT></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">export ORACLE_OWNER=oracle</SPAN></DIV>
<DIV><FONT color=#000000>export TNS_ADMIN=$ORACLE_HOME/network/admin</FONT></DIV>
<DIV><FONT color=#000000>export ORA_NLS10=$ORACLE_HOME/nls/data</FONT></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">export ORACLE_TERM=xterm;</SPAN></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">export NLS_LANG=</SPAN><FONT color=#000000>KOREAN_KOREA.AL32UTF8</FONT></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)">export PATH=$HOME/bin:$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:.:$PATH;</SPAN></DIV>
<DIV><FONT color=#000000>export SHLIB_PATH=$ORACLE_HOME/lib:/usr/lib:/lib:/usr/local/lib;</FONT></DIV>
<DIV><FONT color=#000000>export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib:/lib:/usr/local/lib;</FONT></DIV></DIV>
<DIV><FONT color=#000000><BR></FONT></DIV></DIV><FONT color=#000000><BR><B>8) ¿À¶óÅ¬ ±âµ¿</B><BR></FONT>
<DIV style="BORDER-BOTTOM: rgb(193,193,193) 1px solid; BORDER-LEFT: rgb(193,193,193) 1px solid; PADDING-BOTTOM: 10px; BACKGROUND-COLOR: rgb(238,238,238); PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BORDER-TOP: rgb(193,193,193) 1px solid; BORDER-RIGHT: rgb(193,193,193) 1px solid; PADDING-TOP: 10px" class=txc-textbox>
<P style="MARGIN: 0px"></P>
<DIV><FONT color=#000000><B>oracle °èÁ¤À» ÀÌ¿ëÇÏ¿© ½ÇÇà</B><BR><B>&lt; ¿À¶óÅ¬ ¸®½º³Ê ±¸µ¿ &gt;</B><BR>[oracle@mycent ~]$ lsnrctl start</FONT></DIV>
<DIV><FONT color=#000000><BR></FONT></DIV>
<DIV><FONT color=#000000>LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 27-JAN-2012 12:27:46</FONT></DIV>
<DIV><FONT color=#000000><BR></FONT></DIV>
<DIV><FONT color=#000000>Copyright (c) 1991, 2005, Oracle. All rights reserved.</FONT></DIV>
<DIV><FONT color=#000000><BR></FONT></DIV>
<DIV><FONT color=#000000>Starting /opt/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...</FONT></DIV>
<DIV><FONT color=#000000><BR></FONT></DIV>
<DIV><FONT color=#000000>TNSLSNR for Linux: Version 10.2.0.1.0 - Production</FONT></DIV>
<DIV><FONT color=#000000>System parameter file is /opt/oracle/product/10.2.0/db_1/network/admin/listener.ora</FONT></DIV>
<DIV><FONT color=#000000>Log messages written to /opt/oracle/product/10.2.0/db_1/network/log/listener.log</FONT></DIV>
<DIV><FONT color=#000000>Listening on: (DE&#115;&#99;RIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))</FONT></DIV>
<DIV><FONT color=#000000>Listening on: (DE&#115;&#99;RIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=mycent)(PORT=1521)))</FONT></DIV>
<DIV><FONT color=#000000><BR></FONT></DIV>
<DIV><FONT color=#000000>Connecting to (DE&#115;&#99;RIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))</FONT></DIV>
<DIV><FONT color=#000000>STATUS of the LISTENER</FONT></DIV>
<DIV><FONT color=#000000>------------------------</FONT></DIV>
<DIV><FONT color=#000000>Alias LISTENER</FONT></DIV>
<DIV><FONT color=#000000>Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production</FONT></DIV>
<DIV><FONT color=#000000>Start Date 27-JAN-2012 12:27:48</FONT></DIV>
<DIV><FONT color=#000000>Uptime 0 days 0 hr. 0 min. 0 sec</FONT></DIV>
<DIV><FONT color=#000000>Trace Level off</FONT></DIV>
<DIV><FONT color=#000000>Security ON: Local OS Authentication</FONT></DIV>
<DIV><FONT color=#000000>SNMP OFF</FONT></DIV>
<DIV><FONT color=#000000>Listener Parameter File /opt/oracle/product/10.2.0/db_1/network/admin/listener.ora</FONT></DIV>
<DIV><FONT color=#000000>Listener Log File /opt/oracle/product/10.2.0/db_1/network/log/listener.log</FONT></DIV>
<DIV><FONT color=#000000>Listening Endpoints Summary...</FONT></DIV>
<DIV><FONT color=#000000>(DE&#115;&#99;RIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))</FONT></DIV>
<DIV><FONT color=#000000>(DE&#115;&#99;RIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=mycent)(PORT=1521)))</FONT></DIV>
<DIV><FONT color=#000000>Services Summary...</FONT></DIV>
<DIV><FONT color=#000000>Service "PLSExtProc" has 1 instance(s).</FONT></DIV>
<DIV><FONT color=#000000>Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...</FONT></DIV>
<DIV><FONT color=#000000>The command completed successfully<BR><BR><B>&lt; ¿À¶óÅ¬ DBMS ±¸µ¿ ¹× Á¾·á &gt;</B><BR>[root@mycent ]# sqlplus /nolog</FONT>
<DIV><FONT color=#000000>SQL&gt; connect orcl as sysdba</FONT></DIV>
<DIV><FONT color=#000000>SQL&gt; startup ( ¿À¶óÅ¬ ±¸µ¿ )<BR>SQL&gt; shutdown immediate ( ¿À¶óÅ¬ Á¾·á )</FONT></DIV></DIV></DIV></DIV>
<DIV><FONT color=#000000><BR><B>* ÀÏ¹Ý°èÁ¤¿¡¼­ sqlplus ½ÇÇà ¾ÈµÇ´Â Çö»ó ¹ß»ý½Ã ±ÇÇÑ ¼³Á¤</B><BR></FONT>
<DIV style="BORDER-BOTTOM: rgb(193,193,193) 1px solid; BORDER-LEFT: rgb(193,193,193) 1px solid; PADDING-BOTTOM: 10px; BACKGROUND-COLOR: rgb(238,238,238); PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BORDER-TOP: rgb(193,193,193) 1px solid; BORDER-RIGHT: rgb(193,193,193) 1px solid; PADDING-TOP: 10px" class=txc-textbox>
<P style="MARGIN: 0px"></P>
<DIV><FONT color=#000000><B>&lt; ¿¡·¯ ¸Þ½ÃÁö &gt;</B><BR>[userid@mycent ]$ sqlplus /nolog</FONT></DIV>
<DIV><FONT color=#000000>sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory</FONT></DIV><FONT color=#000000><BR><B>&lt; ÇØ°áÃ¥ &gt;</B><BR>root ±ÇÇÑÀ» ÀÌ¿ëÇÏ¿© ¼öÇà<BR>[root@mycent ]# chmod -R a+rX /opt/oracle/product/10.2.0/db_1</FONT></DIV></DIV>
<DIV><FONT color=#000000><BR><B>9) Å¬¶óÀÌ¾ðÆ®ÀÇ tnsnames.ora ³»¿ë Ãß°¡</B><BR></FONT>
<DIV style="BORDER-BOTTOM: rgb(193,193,193) 1px solid; BORDER-LEFT: rgb(193,193,193) 1px solid; PADDING-BOTTOM: 10px; BACKGROUND-COLOR: rgb(238,238,238); PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BORDER-TOP: rgb(193,193,193) 1px solid; BORDER-RIGHT: rgb(193,193,193) 1px solid; PADDING-TOP: 10px" class=txc-textbox>
<P style="MARGIN: 0px"></P>
<DIV><FONT color=#000000>ORCL =</FONT></DIV>
<DIV><FONT color=#000000>(DE&#115;&#99;RIPTION =</FONT></DIV>
<DIV><FONT color=#000000>(ADDRESS_LIST =</FONT></DIV>
<DIV><FONT color=#000000>(ADDRESS = (PROTOCOL = TCP)(HOST = ¿À¶óÅ¬ ¼­¹ö IPÁÖ¼Ò)(PORT = 1521))</FONT></DIV>
<DIV><FONT color=#000000>)</FONT></DIV>
<DIV><FONT color=#000000>(CONNECT_DATA =</FONT></DIV>
<DIV><FONT color=#000000>(SERVICE_NAME = orcl)</FONT></DIV>
<DIV><FONT color=#000000>)</FONT></DIV>
<DIV><FONT color=#000000>)</FONT></DIV></DIV>
<P><B style="COLOR: rgb(0,0,0)"><BR>10) ¿À¶óÅ¬ ¼­¹ö Á¢¼Ó ÈÄ ±âº»µ¿ÀÛ È®ÀÎ</B></P>
<P></P>
<DIV style="BORDER-BOTTOM: rgb(193,193,193) 1px solid; BORDER-LEFT: rgb(193,193,193) 1px solid; PADDING-BOTTOM: 10px; BACKGROUND-COLOR: rgb(238,238,238); PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BORDER-TOP: rgb(193,193,193) 1px solid; BORDER-RIGHT: rgb(193,193,193) 1px solid; PADDING-TOP: 10px" class=txc-textbox>
<P style="MARGIN: 0px"></P>
<DIV><B><FONT color=#000000>&lt; scott °èÁ¤À¸·Î Á¢¼Ó ÈÄ »ùÇÃ Å×ÀÌºí È®ÀÎ &gt;</FONT></B></DIV>
<DIV><FONT color=#000000>select * from all_tab_columns</FONT></DIV>
<DIV><FONT color=#000000>where owner not in ('XDB')</FONT></DIV>
<DIV><FONT color=#000000>and owner not like '%SYS%'</FONT></DIV>
<DIV><FONT color=#000000>;<BR>=&gt; BONUS, DEPT, EMP, SALGRADE Å×ÀÌºíÀÌ º¸ÀÌ´ÂÁö È®ÀÎ<BR><BR><B>&lt; ÇÑ±Û ÀÔÃâ·Â Å×½ºÆ® &gt;</B> </FONT></DIV>
<DIV><FONT color=#000000>create table test_table (</FONT></DIV>
<DIV><FONT color=#000000><SPAN style="WHITE-SPACE: pre" class=Apple-tab-span></SPAN>num number</FONT></DIV>
<DIV><FONT color=#000000><SPAN style="WHITE-SPACE: pre" class=Apple-tab-span></SPAN>, id varchar2(20)</FONT></DIV>
<DIV><FONT color=#000000><SPAN style="WHITE-SPACE: pre" class=Apple-tab-span></SPAN>, name varchar2(50)</FONT></DIV>
<DIV><FONT color=#000000><SPAN style="WHITE-SPACE: pre" class=Apple-tab-span></SPAN>, address varchar2(100)</FONT></DIV>
<DIV><FONT color=#000000>);</FONT></DIV>
<DIV><FONT color=#000000>insert into test_table values(1, 'userid1', 'È«±æµ¿', '¼­¿ï');<BR>insert into test_table values(2, 'userid2', '½ÉÇü·¡', 'ºÎ»ê'); <BR>insert into test_table values(3, 'userid3', 'ÄáÁã', '´ëÀü'); <BR>insert into test_table values(4, 'userid4', 'ÈïºÎ', '±¤ÁÖ'); <BR>commit;</FONT></DIV>
<DIV><FONT color=#000000>select * from test_table; </FONT></DIV></DIV>
<P></P>
<P></P>
<P><B style="COLOR: rgb(0,0,0)"><BR>* ÇÑ±Û ÀÔÃâ·ÂÀ» À§ÇÑ Á¶Ä¡</B></P>
<P></P>
<DIV style="BORDER-BOTTOM: rgb(193,193,193) 1px solid; BORDER-LEFT: rgb(193,193,193) 1px solid; PADDING-BOTTOM: 10px; BACKGROUND-COLOR: rgb(238,238,238); PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BORDER-TOP: rgb(193,193,193) 1px solid; BORDER-RIGHT: rgb(193,193,193) 1px solid; PADDING-TOP: 10px" class=txc-textbox>
<DIV><B><FONT color=#000000>[oracle@mycent ~]$ sqlplus /nolog</FONT></B></DIV>
<DIV><FONT color=#000000>SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jan 27 15:09:21 2012</FONT></DIV>
<DIV><FONT color=#000000>Copyright (c) 1982, 2005, Oracle. All rights reserved.</FONT></DIV>
<DIV><B><FONT color=#000000>SQL&gt; conn orcl as sysdba</FONT></B></DIV>
<DIV><FONT color=#000000>Enter password:</FONT></DIV>
<DIV><FONT color=#000000>Connected.</FONT></DIV>
<DIV><B><FONT color=#000000>SQL&gt; select userenv('LANGUAGE') from dual;</FONT></B></DIV>
<DIV><FONT color=#000000>USERENV('LANGUAGE')</FONT></DIV>
<DIV><FONT color=#000000>----------------------------------------------------</FONT></DIV>
<DIV><FONT color=#000000>AMERICAN_AMERICA.WE8ISO8859P1</FONT></DIV>
<DIV><FONT color=#000000><BR></FONT></DIV>
<DIV><B><FONT color=#000000>SQL&gt; update props$ set value$='KO16KSC5601' where name='NLS_CHARACTERSET';</FONT></B></DIV>
<DIV><FONT color=#000000>1 row updated.</FONT></DIV>
<DIV><FONT color=#000000><BR></FONT></DIV>
<DIV><B><FONT color=#000000>SQL&gt; commit;</FONT></B></DIV>
<DIV><FONT color=#000000>Commit complete.</FONT></DIV>
<DIV><FONT color=#000000><BR></FONT></DIV>
<DIV><B><FONT color=#000000>SQL&gt; shutdown immediate;</FONT></B></DIV>
<DIV><FONT color=#000000>Database closed.</FONT></DIV>
<DIV><FONT color=#000000>Database dismounted.</FONT></DIV>
<DIV><FONT color=#000000>ORACLE instance shut down.</FONT></DIV>
<DIV><FONT color=#000000><BR><B>SQL&gt; startup</B></FONT></DIV>
<DIV><FONT color=#000000>ORACLE instance started.</FONT></DIV>
<DIV><FONT color=#000000>Total System Global Area 360710144 bytes</FONT></DIV>
<DIV><FONT color=#000000>Fixed Size<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> </SPAN>1219424 bytes</FONT></DIV>
<DIV><FONT color=#000000>Variable Size<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> </SPAN>113247392 bytes</FONT></DIV>
<DIV><FONT color=#000000>Database Buffers<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> </SPAN>243269632 bytes</FONT></DIV>
<DIV><FONT color=#000000>Redo Buffers<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> </SPAN>2973696 bytes</FONT></DIV>
<DIV><FONT color=#000000>Database mounted.</FONT></DIV>
<DIV><FONT color=#000000>Database opened.</FONT></DIV>
<DIV><FONT color=#000000><BR><B>SQL&gt; select userenv('LANGUAGE') from dual;</B></FONT></DIV>
<DIV><FONT color=#000000>USERENV('LANGUAGE')</FONT></DIV>
<DIV><FONT color=#000000>----------------------------------------------------</FONT></DIV>
<DIV><FONT color=#000000>AMERICAN_AMERICA.KO16KSC5601</FONT></DIV></DIV>
<P></P>
<P><SPAN style="COLOR: rgb(0,0,0)"><BR><B>* ¿À¶óÅ¬ Å¬¶óÀÌ¾ðÆ® ÇÁ·Î±×·¥¿¡¼­ Ä³¸¯ÅÍ¼Â ºÒÀÏÄ¡ ¿¡·¯ ¹ß»ý½Ã Á¶Ä¡</B></SPAN></P>
<P></P>
<DIV style="BORDER-BOTTOM: rgb(193,193,193) 1px solid; BORDER-LEFT: rgb(193,193,193) 1px solid; PADDING-BOTTOM: 10px; BACKGROUND-COLOR: rgb(238,238,238); PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BORDER-TOP: rgb(193,193,193) 1px solid; BORDER-RIGHT: rgb(193,193,193) 1px solid; PADDING-TOP: 10px" class=txc-textbox>
<P style="MARGIN: 0px"></P>
<DIV><B><FONT color=#000000>&lt; ¿À¶óÅ¬ Å¬¶óÀÌ¾ðÆ® ÇÁ·Î±×·¥(Åäµå or GoldenView) ÀÇ ¿¡·¯ ¸Þ½ÃÁö &gt;</FONT></B></DIV>
<DIV><FONT color=#000000>
<DIV>ORA-06552: PL/SQL: Compilation unit analysis terminated</DIV>
<DIV>ORA-06553: PLS-553: character set name is not recognized</DIV></FONT></DIV>
<DIV><B><FONT color=#000000><BR></FONT></B></DIV>
<DIV><B><FONT color=#000000>&lt; ¹®Á¦ È®ÀÎ &gt;</FONT></B></DIV>
<DIV><FONT color=#000000>
<DIV>¾Æ·¡ Äõ¸® Á¶È¸½Ã µ¿ÀÏ Å¸ÀÔ¿¡ ´ëÇÏ¿© 2°³ ÀÌ»óÀÇ Ä³¸¯ÅÍ¼ÂÀÌ Á¶È¸µÇ´ÂÁö È®ÀÎ</DIV>
<DIV><BR></DIV>
<DIV>select distinct(nls_charset_name(charsetid)) CHARACTERSET,</DIV>
<DIV>decode(type#, 1, decode(charsetform, 1, 'VARCHAR2', 2, 'NVARCHAR2','UNKOWN'),</DIV>
<DIV>9, decode(charsetform, 1, 'VARCHAR', 2, 'NCHAR VARYING', 'UNKOWN'),</DIV>
<DIV>96, decode(charsetform, 1, 'CHAR', 2, 'NCHAR', 'UNKOWN'),</DIV>
<DIV>112, decode(charsetform, 1, 'CLOB', 2, 'NCLOB', 'UNKOWN')) TYPES_USED_IN</DIV>
<DIV>from sys.col$ where charsetform in (1,2) and type# in (1, 9, 96, 112);</DIV>
<DIV style="FONT-WEIGHT: bold"><BR></DIV>
<DIV>CHARACTERSET TYPES_USED_IN</DIV>
<DIV>----------------- -------------</DIV>
<DIV>WE8ISO8859P1 VARCHAR2</DIV>
<DIV>KO16KSC5601 VARCHAR2</DIV>
<DIV>KO16KSC5601 CHAR</DIV>
<DIV>WE8ISO8859P1 CHAR</DIV>
<DIV>AL16UTF16 NCLOB</DIV>
<DIV>KO16KSC5601 CLOB</DIV>
<DIV>AL16UTF16 NVARCHAR2</DIV>
<DIV>KO16KSC5601 NVARCHAR2</DIV>
<DIV>WE8ISO8859P1 CLOB</DIV>
<DIV>AL16UTF16 NCHAR</DIV>
<DIV style="FONT-WEIGHT: bold"><BR></DIV>
<DIV style="FONT-WEIGHT: bold">&lt; ¹®Á¦ Á¶Ä¡ &gt;</DIV>
<DIV>
<DIV>- Make sure the parallel_server parameter in INIT.ORA is set to false or it is not set at all.</DIV>
<DIV>parallel_server °ªÀÌ falseÀÌ°Å³ª ¶Ç´Â ÇØ´ç ÆÄ¶ó¸ÞÅÍ°¡ ¾Æ¿¹ ¼³Á¤µÇ¾î ÀÖÁö ¾Ê¾Æ¾ß ÇÔ.</DIV>
<DIV><BR></DIV>
<DIV>SQL&gt; show parameter parallel_server;</DIV>
<DIV><BR></DIV>
<DIV>
<DIV>NAME<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> </SPAN>TYPE<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> </SPAN>VALUE</DIV>
<DIV>------------------------------------ ----------- ------------------------------</DIV>
<DIV>parallel_server <SPAN style="WHITE-SPACE: pre" class=Apple-tab-span></SPAN>boolean<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> </SPAN>FALSE</DIV></DIV>
<DIV><BR></DIV>
<DIV>- Run the next &#115;&#99;ript in SQLPLUS connected "as sysdba"</DIV>
<DIV>sysdba·Î ¿À¶óÅ¬ Á¢¼ÓÇÏ¿© ¾Æ·¡ ±¸¹®µéÀ» ¼öÇàÇÑ´Ù.</DIV>
<DIV><BR></DIV>
<DIV>SQL&gt; SHUTDOWN IMMEDIATE;</DIV>
<DIV><BR></DIV>
<DIV>SQL&gt; STARTUP MOUNT;</DIV>
<DIV><BR></DIV>
<DIV>SQL&gt; ALTER SYSTEM ENABLE RESTRICTED SESSION;</DIV>
<DIV><BR></DIV>
<DIV>SQL&gt; ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0;</DIV>
<DIV><BR></DIV>
<DIV>SQL&gt; ALTER SYSTEM SET AQ_TM_PROCESSES=0;</DIV>
<DIV><BR></DIV>
<DIV>SQL&gt; ALTER DATABASE OPEN;</DIV>
<DIV><BR></DIV>
<DIV>SQL&gt; COL VALUE NEW_VALUE CHARSET</DIV>
<DIV>SELECT VALUE FROM NLS_DATABASE_PARAMETERS</DIV>
<DIV>WHERE PARAMETER='NLS_CHARACTERSET';</DIV>
<DIV><BR></DIV>
<DIV>SQL&gt; COL VALUE NEW_VALUE NCHARSET</DIV>
<DIV>SELECT VALUE FROM NLS_DATABASE_PARAMETERS</DIV>
<DIV>WHERE PARAMETER='NLS_NCHAR_CHARACTERSET';</DIV>
<DIV><BR></DIV>
<DIV>SQL&gt; ALTER DATABASE CHARACTER SET INTERNAL_USE &amp;CHARSET;</DIV>
<DIV><BR></DIV>
<DIV>SQL&gt; ALTER DATABASE NATIONAL CHARACTER SET INTERNAL_USE &amp;NCHARSET;</DIV>
<DIV>-----------------------------------------------------------------------------------------</DIV>
<DIV>( ¸¸¾à ¿©±â¼­ ORA-12714: invalid national character set specified ¿¡·¯°¡ ¹ß»ýÇÑ´Ù¸é ¾Æ·¡ ÀÛ¾÷ ¼öÇà, ÇØ´ç ¿¡·¯°¡ ¹ß»ýÇÏ´Â ÀÌÀ¯´Â ¿À¶óÅ¬ 9iÀÌÈÄ¿¡´Â NATIONAL CHARACTER SET Àº UTF8°ú AL16UTF16 ¸¸ Á¦°øÇÏ±â ¶§¹® )</DIV>
<DIV><BR></DIV>
<DIV>¾Æ·¡ Äõ¸® Á¶È¸½Ã ÀÌ·±½ÄÀ¸·Î Áö¿øµÇÁö ¾Ê´Â °ªÀÌ Á¶È¸µÇ¸é</DIV>
<DIV>
<DIV><BR></DIV>
<DIV>SELECT PARAMETER, VALUE FROM NLS_DATABASE_PARAMETERS</DIV>
<DIV>WHERE PARAMETER in ('NLS_NCHAR_CHARACTERSET','NLS_CHARACTERSET');</DIV>
<DIV><BR></DIV>
<DIV>PARAMETER VALUE</DIV>
<DIV>---------------------------------- ---------------</DIV>
<DIV>NLS_CHARACTERSET KO16KSC5601</DIV>
<DIV>NLS_NCHAR_CHARACTERSET KO16KSC5601</DIV>
<DIV><BR></DIV>
<DIV>UPDATE sys.props$ SET VALUE$='AL16UTF16' WHERE NAME='NLS_NCHAR_CHARACTERSET';</DIV>
<DIV>ÀÌÈÄ ´Ù½Ã ½ÇÇàÇÏ¸é Á¤»óÀûÀ¸·Î µÉ °ÍÀÌ´Ù.</DIV></DIV>
<DIV>-----------------------------------------------------------------------------------------</DIV>
<DIV><BR></DIV>
<DIV>SQL&gt; SHUTDOWN IMMEDIATE;</DIV>
<DIV>SQL&gt; STARTUP;</DIV>
<DIV>-- yes, 2 times startup/shutdown . This is not a typo</DIV>
<DIV>SQL&gt; SHUTDOWN IMMEDIATE;</DIV>
<DIV>SQL&gt; STARTUP;</DIV>
<DIV style="FONT-WEIGHT: bold"><BR></DIV></DIV>
<DIV>´Ù½Ã ¾Æ·¡ Äõ¸®¸¦ Á¶È¸ÇßÀ» ¶§ ÁßÃ¸µÇ´Â Ä³¸¯ÅÍ¼ÂÀÌ Á¶È¸µÇÁö ¾ÊÀ¸¸é Á¤»ó</DIV>
<DIV style="FONT-WEIGHT: bold">
<DIV style="FONT-WEIGHT: normal"><BR></DIV>
<DIV style="FONT-WEIGHT: normal">select distinct(nls_charset_name(charsetid)) CHARACTERSET,</DIV>
<DIV style="FONT-WEIGHT: normal">decode(type#, 1, decode(charsetform, 1, 'VARCHAR2', 2, 'NVARCHAR2','UNKOWN'),</DIV>
<DIV style="FONT-WEIGHT: normal">9, decode(charsetform, 1, 'VARCHAR', 2, 'NCHAR VARYING', 'UNKOWN'),</DIV>
<DIV style="FONT-WEIGHT: normal">96, decode(charsetform, 1, 'CHAR', 2, 'NCHAR', 'UNKOWN'),</DIV>
<DIV style="FONT-WEIGHT: normal">112, decode(charsetform, 1, 'CLOB', 2, 'NCLOB', 'UNKOWN')) TYPES_USED_IN</DIV>
<DIV style="FONT-WEIGHT: normal">from sys.col$ where charsetform in (1,2) and type# in (1, 9, 96, 112);</DIV></DIV></FONT></DIV>
<DIV><FONT color=#000000><BR></FONT></DIV>
<DIV><FONT color=#000000>
<DIV>CHARACTERSET TYPES_USED_IN</DIV>
<DIV>----------------- -------------</DIV>
<DIV>KO16KSC5601 VARCHAR2</DIV>
<DIV>KO16KSC5601 CHAR</DIV>
<DIV>KO16KSC5601 CLOB</DIV>
<DIV>AL16UTF16 NCLOB</DIV>
<DIV>AL16UTF16 NVARCHAR2</DIV>
<DIV>AL16UTF16 NCHAR</DIV></FONT></DIV>
<DIV><FONT color=#000000><BR></FONT></DIV>
<DIV><FONT color=#000000>
<DIV>¸¸¾à parallel_server ÆÄ¶ó¸ÞÅÍ¸¦ ¼öÁ¤Çß´Ù¸é ´Ù½Ã ¿øº¹½ÃÅ²´Ù.</DIV>
<DIV>À§¿¡¼­ ¼öÇàÇÑ ½ºÅ©¸³Æ®µéÀº ÀÌ¹Ì ÀúÀåµÇ¾î ÀÖ´Â µ¥ÀÌÅÍµéÀ» ¹Ù²Ù´Â °ÍÀº ¾Æ´Ï°í, ´ÜÁö DBÀÇ Ä³¸¯ÅÍ¼ÂÀ» ÀúÀåµÈ ¸ðµç Àå¼Ò¿¡¼­ °­Á¦ÀûÀ¸·Î ´Ù½Ã ¼¼ÆÃÇÏ´Â °ÍÀÌ´Ù.</DIV></FONT></DIV></DIV></DIV>
<DIV style="Z-INDEX: 999999999; BORDER-BOTTOM: rgb(51,51,119) 2px solid; POSITION: fixed; BORDER-LEFT: rgb(51,51,119) 2px solid; PADDING-BOTTOM: 0px; OVERFLOW-X: hidden; OVERFLOW-Y: hidden; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; DISPLAY: none; BORDER-TOP: rgb(51,51,119) 2px solid; BORDER-RIGHT: rgb(51,51,119) 2px solid; PADDING-TOP: 0px; border-image: initial" id=__KO_DIC_LAYER__>&lt;IFRAME style="BACKGROUND-COLOR: rgb(255,255,255); WIDTH: 100%; HEIGHT: 100%" frameBorder=0 scrolling=yes&gt;&lt;/IFRAME&gt;</DIV>
<P><B style="COLOR: rgb(0,0,0)"><BR>12) VMware ³×Æ®¿öÅ© ¼³Á¤</B></P>
<DIV style="BORDER-BOTTOM: rgb(193,193,193) 1px solid; BORDER-LEFT: rgb(193,193,193) 1px solid; PADDING-BOTTOM: 10px; BACKGROUND-COLOR: rgb(238,238,238); PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BORDER-TOP: rgb(193,193,193) 1px solid; BORDER-RIGHT: rgb(193,193,193) 1px solid; PADDING-TOP: 10px" class=txc-textbox>
<P style="MARGIN: 0px"></P>
<DIV><FONT color=#000000>
<DIV>VMwareÀÇ °Ô½ºÆ® OS¿¡ ¸®´ª½º&amp;¿À¶óÅ¬ ¼³Ä¡ ÈÄ NAT »ç¿ë½Ã</DIV>
<DIV>³×Æ®¿öÅ© NAT ¼³Á¤¿¡¼­ Æ÷Æ® Æ÷¿öµù ¼³Á¤</DIV>
<DIV>sshd : 22 ¹ø</DIV>
<DIV>tnslsnr : 1521 ¹ø</DIV></FONT></DIV></DIV>
<P></P>
<P><B style="COLOR: rgb(0,0,0)"><BR>* ¿À¶óÅ¬ ¼³Ä¡ ÈÄ ±âÅ¸Á¤º¸</B></P>
<DIV style="BORDER-BOTTOM: rgb(193,193,193) 1px solid; BORDER-LEFT: rgb(193,193,193) 1px solid; PADDING-BOTTOM: 10px; BACKGROUND-COLOR: rgb(238,238,238); PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BORDER-TOP: rgb(193,193,193) 1px solid; BORDER-RIGHT: rgb(193,193,193) 1px solid; PADDING-TOP: 10px" class=txc-textbox>
<P style="MARGIN: 0px"></P>
<DIV><FONT color=#000000>
<DIV>Server Parameter Filename :</DIV>
<DIV>/opt/oracle/product/10.2.0/db_1/dbs/spfileorcl.ora</DIV>
<DIV><BR></DIV>
<DIV>DB Control URL :</DIV>
<DIV>http://mycent:1158/em</DIV>
<DIV><BR></DIV>
<DIV>The following J2EE Applications have been deployed and are accessible at the URLs listed below.</DIV>
<DIV>iSQL*Plus URL:</DIV>
<DIV>http://mycent:5560/isqlplus</DIV>
<DIV><BR></DIV>
<DIV>iSQL*Plus DBA URL:</DIV>
<DIV>http://mycent:5560/isqlplus/dba</DIV>
<DIV><BR></DIV>
<DIV>Enterprise Manager 10g Database Control URL:</DIV>
<DIV>http://mycent:1158/em</DIV></FONT></DIV></DIV>]]></description>
<dc:creator>½ÑÀ¥È£½ºÆÃ</dc:creator>
<dc:date>Mon, 17 Dec 2012 17:40:26 +0900</dc:date>
</item>
<item>
<title>mysql Replicating</title>
<link>http://www.ssanweb.com/bbs/board.php?bo_table=menual&amp;wr_id=76</link>
<description><![CDATA[<H3>Replicating specific databases only</H3>
<P>As mentioned earlier, the master and slave database server do not need to be entirely in sync, with all databases and all tables from the master replicated onto the slave. By default, the slave will replicate everything, but you can change this behavior with the following options in the slave configuration file:</P><PRE>replicate-do-db=db_name (replicate this database)
replicate-ignore-db=db_name (don't replicate this database)
replicate-do-table=db_name.table_name (replicate this table)
replicate-ignore-table=db_name.table_name (don't replicate this table)
replicate--wild-do-table=db_name.table_name 
	<IMG border=0 alt="" src="http://www.databasejournal.com/img/return.gif" width=14 height=9>(allows wildcards, e.g db% would be all databases beginning with db)
replicate-wild-ignore-table=db_name.table_name (ignore all specified tables, with wildcards)
</PRE>
<P>These options can all be used multiple times in a single configuration. A couple of other useful options:</P>
<P></P><PRE>replicate-rewrite-db=master_db-&gt;slave_db (allows you to use map databases 
	<IMG border=0 alt="" src="http://www.databasejournal.com/img/return.gif" width=14 height=9>that use different database names on each server)
log-slave-update (writes replicated statements to the slaves binary logs)</PRE>]]></description>
<dc:creator>½ÑÀ¥È£½ºÆÃ</dc:creator>
<dc:date>Wed, 31 Oct 2012 10:22:23 +0900</dc:date>
</item>
<item>
<title>PHP ¿Í MongoDB »ç¿ë¹ý</title>
<link>http://www.ssanweb.com/bbs/board.php?bo_table=menual&amp;wr_id=74</link>
<description><![CDATA[<FONT face=""><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">Yet another <SPAN class=highlight>MongoDB</SPAN> and <SPAN class=highlight>PHP</SPAN> tutorial, say it ain¡¯t so! Well yes, but this tutorial aims to be more complete than the others out there. OK I¡¯m going to assume you know what <SPAN class=highlight>MongoDB</SPAN> is, so I¡¯m not going to go over ¡°what <SPAN class=highlight>mongoDB</SPAN> is¡± or ¡°what NoSQL is¡±. I¡¯m going to do this series in a little different styling than my other tutorial series have been, so let just jump right in.</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">Here¡¯s a couple links to get you up to speed:</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">Installing Mongo</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN class=highlight>MongoDB</SPAN> <SPAN class=highlight>PHP</SPAN> Extension</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">If you have issues with MongoD not starting &#8211; something about ¡°/data/db¡± missing, then you should create the directory. In *Nix: ¡°mkdir /data/db¡±, in Win ¡°mkdir c:data¡± then ¡°mkdir c:datadb¡±.</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">Connecting</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">MySQL</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">[<SPAN class=highlight>php</SPAN>]</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">&lt;?<SPAN class=highlight>php</SPAN></SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$host = ¡®localhost¡¯;</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$user = ¡®root¡¯;</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$pass = ¡°¡±;</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$link = mysql_connect($host, $user, $pass, 1) or die(¡°Could not connect to: {$host}. Check your settings and try again.¡±);</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">[/<SPAN class=highlight>php</SPAN>]</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN class=highlight>MongoDB</SPAN></SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">[<SPAN class=highlight>php</SPAN>]</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">&lt;?<SPAN class=highlight>php</SPAN></SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">try</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">{</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$link = new Mongo();</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">}</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">catch(MongoConnectionException $e)</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">{</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">die(¡®Could not connect. Check to make sure <SPAN class=highlight>MongoDB</SPAN> is running.¡¯);</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">}</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">[/<SPAN class=highlight>php</SPAN>]</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">As you can see, Mongo DB automatically will connect to the local host and default port. Yes, MySQL will do the same if you have the directives in your ¡°<SPAN class=highlight>php</SPAN>.ini¡± setup to do this. IE. ¡°mysql.default_host¡±, ¡°mysql.default_user¡± and ¡°mysql.default_password¡±. You might notice that by default <SPAN class=highlight>MongoDB</SPAN> doesn¡¯t have a user name or password setup. I will go over how to set that up in part 2.</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">Creating and using a DB</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">MySQL</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">[<SPAN class=highlight>php</SPAN>]$db = ¡®testdb¡¯;</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$sql = ¡°CREATE DATABASE `$db`¡±;</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">mysql_query($sql, $link);</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">mysql_select_db($db, $link);</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">[/<SPAN class=highlight>php</SPAN>]</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN class=highlight>MongoDB</SPAN></SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">[<SPAN class=highlight>php</SPAN>]$db = $link-&gt;testdb;</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">[/<SPAN class=highlight>php</SPAN>]</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">In one line of code, <SPAN class=highlight>MongoDB</SPAN> will create a DB automatically if it doesn¡¯t already exists and select (use) it.</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">Create a Table / Collection</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">MySQL</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">[<SPAN class=highlight>php</SPAN>]</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">// Create the Table</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$tbl = ¡®user¡¯;</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$sql = ¡°CREATE TABLE `$tbl` (`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY, `login` VARCHAR (24)NOT NULL, `password` CHAR(32) NOT NULL, `email` VARCHAR(255)) TYPE=innodb;¡±;</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">mysql_query($sql, $link);</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">[/<SPAN class=highlight>php</SPAN>]</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN class=highlight>MongoDB</SPAN></SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">[<SPAN class=highlight>php</SPAN>]</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">// Create the collection (AKA Table)</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$col = $db-&gt;user;</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">[/<SPAN class=highlight>php</SPAN>]</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">Once again, <SPAN class=highlight>MongoDB</SPAN> will automatically create something for us if it doesn¡¯t exist. In this example, it create our ¡°user¡± table. You might notice we didn¡¯t define how the table is formatted, this is because <SPAN class=highlight>MongoDB</SPAN> is schema-less and doesn¡¯t need column definitions. ¡°Tables¡± in <SPAN class=highlight>MongoDB</SPAN> are called ¡°collections¡±.</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">Insert Data</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">MySQL</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">[<SPAN class=highlight>php</SPAN>]</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">// Insert a row into the table</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$sql = ¡°INSERT INTO `$tbl` SET `login` = ¡®jsmith¡¯, `password` = ¡¯5f4dcc3b5aa765d61d8327deb882cf99¡Ç, `email` = ¡®</SPAN></FONT><A style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px; TEXT-DECORATION: none" href="mailto:jsmith@example.com" target=_blank><FONT face="">jsmith@example.com</FONT></A><FONT face=""><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">¡¯¡±;</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">mysql_query($sql);</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$sql = ¡°INSERT INTO `$tbl` SET `login` = ¡®psmith¡¯, `password` = ¡¯5f4dcc3b5aa765d61d8327deb882cf99¡Ç, `email` = ¡®</SPAN></FONT><A style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px; TEXT-DECORATION: none" href="mailto:psmith@example.com" target=_blank><FONT face="">psmith@example.com</FONT></A><FONT face=""><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">¡¯¡±;</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">mysql_query($sql);</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">// Get the ID of last insert</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$id = mysql_insert_id($link);</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">[/<SPAN class=highlight>php</SPAN>]</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN class=highlight>MongoDB</SPAN></SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">[<SPAN class=highlight>php</SPAN>]</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">// Insert a document (row) into the collection (table)</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$doc = array(¡®login¡¯ =&gt; ¡®jsmith¡¯, ¡®password¡¯ =&gt; ¡® 5f4dcc3b5aa765d61d8327deb882cf99¡Ç, ¡®email¡¯ =&gt; ¡®</SPAN></FONT><A style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px; TEXT-DECORATION: none" href="mailto:jsmith@example.com" target=_blank><FONT face="">jsmith@example.com</FONT></A><FONT face=""><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">¡¯);</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$col-&gt;insert($doc, true);</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$doc = array(¡®login¡¯ =&gt; ¡®psmith¡¯, ¡®password¡¯ =&gt; ¡® 5f4dcc3b5aa765d61d8327deb882cf99¡Ç, ¡®email¡¯ =&gt; ¡®</SPAN></FONT><A style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px; TEXT-DECORATION: none" href="mailto:psmith@example.com" target=_blank><FONT face="">psmith@example.com</FONT></A><FONT face=""><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">¡¯);</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$col-&gt;insert($doc, true);</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">// Get the id of last insert</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$id = $doc['_id'];</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">[/<SPAN class=highlight>php</SPAN>]</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">You might have noticed that we used an array to define our ¡°row¡± of data, which are called ¡°documents¡±. On the insert method, the second argument will set the query to do a ¡°safe insert¡±. This will allow us to find out if the query executed properly. If not set, it will not get that information. So I would set it to true if you want to be able to debug your queries. If you are wondering about the password, it¡¯s the MD5 hash for ¡°password¡±.</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">Querying Data</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">MySQL</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">[<SPAN class=highlight>php</SPAN>]</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">// Get all rows</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$sql = ¡°SELECT * FROM `$tbl`¡±;</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$qry = mysql_query($sql, $link);</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$cnt = mysql_num_rows($qry);</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">echo ¡®All rows:&lt;br/&gt;¡¯;</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">if($cnt &gt; 0)</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">{</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">do</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">{</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$row = mysql_fetch_assoc($qry);</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">echo ¡®&lt;pre&gt;¡¯;</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">print_r($row);</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">echo ¡®&lt;/pre&gt;¡¯</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">}</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">}</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">// Query for the row matching the last insert ID</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$sql = ¡°SELECT * FROM `$tbl` WHERE `id` = {$id}¡±;</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$qry = mysql_query($sql, $link);</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$row = mysql_fetch_assoc($qry);</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">echo ¡®Single row (id = $id):&lt;br/&gt;&lt;pre&gt;¡¯;</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">print_r($row);</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">echo ¡®&lt;/pre&gt;</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">[/<SPAN class=highlight>php</SPAN>]</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN class=highlight>MongoDB</SPAN></SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">[<SPAN class=highlight>php</SPAN>]</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">// Get all documents</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$res = $col-&gt;find();</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">echo ¡®All documents:&lt;br/&gt;¡¯;</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">foreach($res as $doc)</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">{</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">echo ¡®&lt;pre&gt;¡¯;</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">print_r($doc);</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">echo ¡®&lt;/pre&gt;¡¯;</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">}</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">// Query for the document matching the last insert ID</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$doc = $col-&gt;findone(array(¡®_id¡¯ =&gt; $id));</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">echo ¡®Single document (_id = $id):&lt;br/&gt;&lt;pre&gt;¡¯;</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">print_r($doc);</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">[/<SPAN class=highlight>php</SPAN>]</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">The <SPAN class=highlight>MongoDB</SPAN> support in <SPAN class=highlight>PHP</SPAN> has function to pull a single document, or all the documents. Once again, we use arrays to define something, in this example, we define our constraint.</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">Upading Data</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">MySQL</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">[<SPAN class=highlight>php</SPAN>]</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$sql = ¡°UPDATE `$tbl` SET `password` = ¡®b497dd1a701a33026f7211533620780d¡¯ WHERE `id` = {$id}¡±;</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$qry = mysql_query($sql, $link);</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$sql = ¡°SELECT * FROM `$tbl` WHERE `id` = {$id}¡±;</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$qry = mysql_query($sql, $link);</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$row = mysql_fetch_assoc($qry);</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">echo ¡®Updated row (id = $id):&lt;br/&gt;&lt;pre&gt;¡¯;</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">print_r($row);</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">echo ¡®&lt;/pre&gt;</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">[/<SPAN class=highlight>php</SPAN>]</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">MogoDB</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">[<SPAN class=highlight>php</SPAN>]</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">// Update a document</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$col-&gt;update(array(¡®_id¡¯ =&gt; $id), array(¡®$set¡¯ =&gt; array(¡®password¡¯ =&gt; ¡®b497dd1a701a33026f7211533620780d¡¯)));</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">// Query the updated docuemnt</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$doc = $col-&gt;findone(array(¡®_id¡¯ =&gt; $id));</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">echo ¡®Updated docuement:&lt;br/&gt;&lt;pre&gt;¡¯;</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">print_r($doc);</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">echo ¡®&lt;/pre&gt;¡¯;</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">[/<SPAN class=highlight>php</SPAN>]</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">The <SPAN class=highlight>MongoDB</SPAN> extension has a function to perform updates. The first argument is an array of constraints, IE ¡°WHERE {&#101&#120;pression}¡±. The second is the data we want to update and what we want to update it with. Pretty simple, right?</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">Indexing data</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">MySQL</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">[<SPAN class=highlight>php</SPAN>]</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">// Create a unique index</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$sql = ¡°ALTER TABLE `$db`.`$tbl` ADD UNIQUE `login` (`login`)¡±;</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$qry = mysql_query($sql, $link);</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">[/<SPAN class=highlight>php</SPAN>]</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN class=highlight>MongoDB</SPAN></SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">[<SPAN class=highlight>php</SPAN>]</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">// Create a unique index</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$col-&gt;ensureIndex(array(¡°login¡± =&gt; 1), array(¡°unique¡± =&gt; true, ¡°dropDups¡± =&gt; true));</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">[/<SPAN class=highlight>php</SPAN>]</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN class=highlight>MongoDB</SPAN> has method for creating index name ¡°ensureIndex¡±. The first parameter is an array of what we want to index and the value is ether 1 or -1. 1 means that the index will sort the data for this in an ascending manor, while -1 will sort it in a descending manor. The second parameter are extra options. In this example I tell it to make what ever I¡¯m indexing as a unique index, that way I don¡¯t end up with multiple ¡°jsmith¡± entries. Also, I¡¯ve told it to drop any documents that have duplicates of the data in the ¡°login¡± ¡°column¡±. Another note is that ¡°columns¡± in <SPAN class=highlight>MongoDB</SPAN> should be called ¡°elements¡±, since we are really dealing with arrays.</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">Lets make sure our index is working shall we?</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN class=highlight>MongoDb</SPAN></SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">[<SPAN class=highlight>php</SPAN>]</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">// Test our unique index</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">try</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">{</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$doc = array(¡®login¡¯ =&gt; ¡®jsmith¡¯, ¡®password¡¯ =&gt; ¡® 5f4dcc3b5aa765d61d8327deb882cf99¡Ç, ¡®email¡¯ =&gt; ¡®</SPAN></FONT><A style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px; TEXT-DECORATION: none" href="mailto:jsmith@example.com" target=_blank><FONT face="">jsmith@example.com</FONT></A><FONT face=""><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">¡¯);</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">$col-&gt;insert($doc, true);</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">}</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">catch(MongoCursorException $e)</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">{</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">echo ¡®Could not insert document. Double check values.&lt;br /&gt;¡¯;</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px">}</SPAN><BR style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(102,102,102); FONT-SIZE: 14px"><SPAN style="TEXT-ALIGN: left; LINE-HEIGHT: 19px; FONT-FAMILY: Tahoma, Gulim, Arial, sans-serif; COLOR: rgb(1]]></description>
<dc:creator>½ÑÀ¥È£½ºÆÃ</dc:creator>
<dc:date>Fri, 27 Jul 2012 16:14:22 +0900</dc:date>
</item>
<item>
<title>·¹ÀÌ¾î ÆË¾÷ - ´Ý±â&amp;¿À´Ã ÇÏ·ç ¿­Áö ¾Ê±â</title>
<link>http://www.ssanweb.com/bbs/board.php?bo_table=menual&amp;wr_id=73</link>
<description><![CDATA[<P><SPAN style="FONT-FAMILY: '957317_9'; FONT-SIZE: 9pt">&lt;head&gt; </SPAN></P>
<P><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">&lt;!-- ·¹ÀÌ¾îÆË¾÷½ÃÀÛ --&gt;</SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">&lt;&#115;&#99;ript language="Java&#115;&#99;ript"&gt;</SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">&lt;!--</SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">function setCookie( name, value, expirehours ) { </SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">var todayDate = new Date(); </SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">todayDate.setHours( todayDate.getHours() + expirehours ); </SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" </SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">} </SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">function closeWin() { </SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">document.getElementById('popup').style.display = "none";</SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">}</SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">function todaycloseWin() { </SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">setCookie( "ncookie", "done" , 24 ); </SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">document.getElementById('popup').style.display = "none";</SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">}</SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">--&gt;</SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">&lt;/&#115;&#99;ript&gt;</SPAN></P>
<P><SPAN style="FONT-FAMILY: '957317_9'; FONT-SIZE: 9pt">&lt;/head&gt;</SPAN></P>
<P><SPAN style="FONT-FAMILY: '957317_9'; FONT-SIZE: 9pt"></SPAN></P>
<P><SPAN style="FONT-FAMILY: '957317_9'; FONT-SIZE: 9pt"></SPAN></P>
<P><SPAN style="FONT-FAMILY: '957317_9'; FONT-SIZE: 9pt">&lt;body&gt;</SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">&lt;div id="popup" style="position:absolute; left:50%; top:120px; margin-left:-500px; z-index:1000;"&gt;</SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">&lt;img src="openpopup.jpg" usemap="#pop" /&gt;</SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">&lt;map name="pop"&gt;</SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">&lt;area shape="rect" coords="267,541,400,554" href="#" &#111;&#110;click="todaycloseWin();" alt="´Ý±â"&gt;</SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">&lt;area shape="rect" coords="407,542,437,554" href="#" &#111;&#110;click="closeWin();" alt="¿À´Ã ÇÏ·ç ¿­Áö ¾Ê±â"&gt;</SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">&lt;/map&gt;</SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">&lt;!--ÄíÅ° ¼³Á¤ --&gt;</SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">&lt;&#115;&#99;ript language="Java&#115;&#99;ript"&gt;</SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">&lt;!--</SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">cookiedata = document.cookie; </SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">if ( cookiedata.indexOf("ncookie=done") &lt; 0 ){ </SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">document.getElementById('popup').style.display = "block";</SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">} else {</SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">document.getElementById('popup').style.display = "none"; </SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">}</SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">--&gt;</SPAN><BR><SPAN style="FONT-FAMILY: '957317_9'; COLOR: rgb(0,117,200); FONT-SIZE: 9pt">&lt;/&#115;&#99;ript&gt;</SPAN></P>
<P><SPAN style="FONT-FAMILY: '957317_9'; FONT-SIZE: 9pt">&lt;/div&gt;</SPAN><BR><BR><SPAN style="FONT-FAMILY: '957317_9'; FONT-SIZE: 9pt">&lt;/body&gt; 
<DIV class=autosourcing-stub>
<P style="PADDING-BOTTOM: 0px; FONT-STYLE: normal; MARGIN: 11px 0px 7px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: Dotum; FONT-SIZE: 12px; FONT-WEIGHT: normal; PADDING-TOP: 0px"><STRONG style="PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 7px; PADDING-TOP: 0px">[ÃâÃ³]</STRONG> <A href="http://blog.naver.com/mirya_net/90132804206" target=_blank>·¹ÀÌ¾î ÆË¾÷ - ´Ý±â&amp;¿À´Ã ÇÏ·ç ¿­Áö ¾Ê±â</A><SPAN style="PADDING-BOTTOM: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 7px; PADDING-TOP: 0px">|</SPAN><STRONG style="PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 7px; PADDING-TOP: 0px">ÀÛ¼ºÀÚ</STRONG> <A href="http://blog.naver.com/mirya_net" target=_blank>¹Ì¸£¾ß</A></P></DIV></SPAN>]]></description>
<dc:creator>½ÑÀ¥È£½ºÆÃ</dc:creator>
<dc:date>Tue, 12 Jun 2012 09:07:07 +0900</dc:date>
</item>
<item>
<title>backuppc ¼Ò½º¼³Ä¡ ÇÏ±â</title>
<link>http://www.ssanweb.com/bbs/board.php?bo_table=menual&amp;wr_id=72</link>
<description><![CDATA[<P>cd /usr/local/src<BR>tar xvzf BackupPC-3.2.1.tar.gz<BR>cd BackupPC-3.2.1<BR>perl configure.pl<BR>¹°¾îº¸´Â Áú¹®¿¡ Àß ´äÇÑ´Ù.<BR><BR>&nbsp;&nbsp;&nbsp; &#115;&#99;riptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"<BR>&nbsp;&nbsp;&nbsp; Alias /BackupPC "/usr/local/apache/htdocs/BackupPC"<BR><BR>&lt;Directory "/usr/local/apache/cgi-bin"&gt;<BR>&nbsp;&nbsp;&nbsp; order deny,allow<BR>&nbsp;&nbsp;&nbsp; deny from all<BR>&nbsp;&nbsp;&nbsp; allow from all<BR>&nbsp;&nbsp;&nbsp; AuthType Basic<BR>&nbsp;&nbsp;&nbsp; AuthUserFile /data/BackupPC/htpasswd<BR>&nbsp;&nbsp;&nbsp; AuthName "BackupPC Community Edition Administrative Interface"<BR>&nbsp;&nbsp;&nbsp; require valid-user<BR>&lt;/Directory&gt;<BR><BR><BR>/etc/BackupPC/config.pl ÆÄÀÏ ¼öÁ¤<BR>$Conf{CgiAdminUsers} = 'backuppc';<BR><BR><BR>cp /usr/local/src/BackupPC-3.2.1/init.d/linux-backuppc /etc/init.d/backuppc<BR>chmod 755 /etc/init.d/backuppc<BR>/etc/init.d/backuppc start<BR><BR>dump failed: File::RsyncP module doesn't exist ¿¡·¯ ¹ß»ý½Ã<BR>File-RsyncP-0.68.tar.gz ¼³Ä¡<BR></P>]]></description>
<dc:creator>½ÑÀ¥È£½ºÆÃ</dc:creator>
<dc:date>Mon, 11 Jun 2012 15:20:03 +0900</dc:date>
</item>
<item>
<title>rsyslog + LogAnalyzer</title>
<link>http://www.ssanweb.com/bbs/board.php?bo_table=menual&amp;wr_id=71</link>
<description><![CDATA[</CUFONTEXT></CUFON>
<DIV class=entry>
<P>These are the steps I took to create a centralised location of system logs. In this scenario multiple servers (earth, venus, mars) send their system logs to a central server (sun 192.168.1.1). I¡¯m not going to cover the configuration of Apache, MySql except were it applies to Log Analyzer. Most of the servers are running Red Hat / CentOS 5. In this setup I am using 192.168.0.0 as the subnet and topsecret as the password. Change as appropriate. More info <A href="http://aaronwalrath.wordpress.com/2010/09/02/set-up-rsyslog-and-loganalyzer-on-centos-linux-5-5-for-centralized-logging/3/" target=_blank>here</A>.<BR><B><BR>Central Server (sun):</B><BR>On the central server (sun) which will be running Log Analyzer, these steps only need to be taken once. If you only want to add more servers sending their syslogs to sun skip this section:<BR>
<BLOCKQUOTE>yum install httpd php mysql php-mysql mysql-server wget rsyslog rsyslog-mysql 
<P></P></BLOCKQUOTE>
<P>Create the rsyslog database structure in MySQL:<BR>
<BLOCKQUOTE>mysql -u root -p &lt; /usr/share/doc/rsyslog-mysql-3.22.1/createDB.sql 
<P></P></BLOCKQUOTE>
<P>Create the MySQL user:<BR>
<BLOCKQUOTE>mysql -u root -p mysql<BR>mysql&gt; GRANT ALL ON Syslog.* TO <A href="mailto:rsyslog@localhost" target=_blank>rsyslog@localhost</A> IDENTIFIED BY ¡®topsecret¡¯;<BR>mysql&gt; flush privileges;<BR>mysql&gt; exit 
<P></P></BLOCKQUOTE>
<P>Edit the rsyslog config file:<BR>
<BLOCKQUOTE>vi /etc/rsyslog.conf 
<P></P></BLOCKQUOTE>
<P>Add the following at the top:<BR>
<BLOCKQUOTE>$AllowedSender UDP, 127.0.0.1, 192.168.0.0/16<BR>$AllowedSender TCP, 127.0.0.1, 192.168.0.0/16 
<P></P>
<P>#UDP log<BR>$ModLoad imudp<BR>$UDPServerRun 514<BR>#TCP log<BR>$ModLoad imtcp<BR>$InputTCPServerRun 514</P>
<P>$ModLoad ommysql<BR>*.info <IMG style="DISPLAY: inline" class=wp-smiley alt=:o src="http://blog.redbranch.net/wp-includes/images/smilies/icon_surprised.gif" original="http://blog.redbranch.net/wp-includes/images/smilies/icon_surprised.gif"> mmysql:127.0.0.1,Syslog,rsyslog,topsecret</P></BLOCKQUOTE>
<P>Amend the rsyslog startup options:<BR>
<BLOCKQUOTE>vi /etc/sysconfig/rsyslog 
<P></P><!-- Quick Adsense WordPress Plugin: http://techmilieu.com/quick-adsense -->
<DIV style="TEXT-ALIGN: center; MARGIN: 10px 0px; FLOAT: none"><INS style="POSITION: relative; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 468px; PADDING-RIGHT: 0px; DISPLAY: inline-table; HEIGHT: 60px; VISIBILITY: visible; PADDING-TOP: 0px"><INS style="POSITION: relative; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 468px; PADDING-RIGHT: 0px; DISPLAY: block; HEIGHT: 60px; VISIBILITY: visible; PADDING-TOP: 0px" id=aswift_0_anchor>&lt;IFRAME style="POSITION: absolute; TOP: 0px; LEFT: 0px" id=aswift_0 height=60 marginHeight=0 frameBorder=0 width=468 allowTransparency name=aswift_0 marginWidth=0 scrolling=no&gt;&lt;/IFRAME&gt;</INS></INS></DIV></BLOCKQUOTE>
<P>Set the options as follows:<BR>
<BLOCKQUOTE>SYSLOGD_OPTI&#111;&#110;S=¡±-r -t154 -m 0¡È 
<P></P></BLOCKQUOTE>
<P>Now disable the standard syslog and enable rsyslog:<BR>
<BLOCKQUOTE>chkconfig syslog off<BR>service syslog stop<BR>chkconfig rsyslog on<BR>service rsyslog start 
<P></P></BLOCKQUOTE>
<P>Install Log Analyzer:<BR>
<BLOCKQUOTE>cd /tmp<BR>wget http://download.adiscon.com/loganalyzer/loganalyzer-3.0.7.tar.gz<BR>tar xzf loganalyzer-3.0.7.tar.gz<BR>mv loganalyzer-3.0.7/src /var/www/html/loganalyzer<BR>mv loganalyzer-3.0.7/contrib/* /var/www/html/loganalyzer<BR>cd /var/www/html/loganalyzer<BR>chmod u+x configure.sh secure.sh<BR>./configure.sh 
<P></P></BLOCKQUOTE>
<P>Now browse the website e.g. http://sun/loganalyzer<BR>Follow the installer adding your MySQL credentials when requested.</P>
<P>Amend the firewall on the central (sun) server to allow other servers:<BR>
<BLOCKQUOTE>vi /etc/sysconfig/iptables 
<P></P></BLOCKQUOTE>
<P>Add:<BR>
<BLOCKQUOTE>-A RH-Firewall-1-INPUT -p udp -m udp &#8211;dport 514 -j ACCEPT<BR>-A RH-Firewall-1-INPUT -p tcp -m tcp &#8211;dport 514 -j ACCEPT 
<P></P></BLOCKQUOTE>
<P>Restart iptables:<BR>
<BLOCKQUOTE>service iptables restart 
<P></P></BLOCKQUOTE>
<P><B>Remote Servers</B><BR>Configure Other Servers (mars, venus, earth) to send their syslogs to the central server (sun):<BR>Install rsyslog:<BR>
<BLOCKQUOTE>yum install rsyslog 
<P></P></BLOCKQUOTE>
<P>Edit the config:<BR>
<BLOCKQUOTE>vi /etc/rsyslog.conf 
<P></P></BLOCKQUOTE>
<P>Add:<BR>
<BLOCKQUOTE>*.info @192.168.1.1:514 
<P></P></BLOCKQUOTE>
<P>I add this on line number 2 below $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat<BR>Set rsyslog as the default syslogger:<BR>
<BLOCKQUOTE>/sbin/chkconfig syslog off<BR>/sbin/chkconfig rsyslog on<BR>service syslog stop<BR>service rsyslog start 
<P></P></BLOCKQUOTE>
<P>Using *.info could collect a lot of messages so customise as necessary, for example changing to *.crit will collect less messages of higher importance.</P></DIV>]]></description>
<dc:creator>½ÑÀ¥È£½ºÆÃ</dc:creator>
<dc:date>Mon, 21 May 2012 18:19:17 +0900</dc:date>
</item>
</channel>
</rss>
