๐Ÿ„โ€โ™‚๏ธ UiPath On-Premise Orchestrator ์„œ๋ฒ„ ์„ค์น˜-2

Database ์„ค์ •

Posted by labft3231 on April 8, 2020


Mssql ์„ค์น˜

์‚ฌ์ง„ ํ•˜๋‹จ ์ฒจ๋ถ€๋œ link์—์„œ Expresss ์„ค์น˜ mssql Express https://www.microsoft.com/ko-kr/sql-server/sql-server-downloads



SSMS ์„ค์น˜

์„ค์น˜๊ฐ€ ์™„๋ฃŒ๋˜์—ˆ๋‹ค๋ฉด ์ด์ œ Mysql์˜ workbench์™€ ๊ฐ™์€ Mssql์˜ SSMS ๋ฅผ ์„ค์น˜๋ฅผ ์‹œ์ž‘ํ•ฉ๋‹ˆ๋‹ค.

์„œ๋ฒ„๋ฅผ ์„ค์น˜ํ•œ ํ›„ ๋‚˜์˜ค๋Š” SSMS ์„ค์น˜ํ•˜๊ธฐ ๋ฒ„ํŠผ์„ ๋ˆ„๋ฅด๊ฑฐ๋‚˜

https://docs.microsoft.com/ko-kr/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-ver15&viewFallbackFrom=sql-server-ver15 ์—์„œ ์„ค์น˜ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.



DB ์„ค์ •

Mssql๊ณผ SSMS๋ฅผ ์„ค์น˜ํ•œ ํ›„์—๋Š” Orchestrator์—์„œ ์‚ฌ์šฉํ•  ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์™€ ์ด๋ฅผ ์‚ฌ์šฉํ•  user๋ฅผ ์ƒ์„ฑํ•ด์ค˜์•ผํ•ฉ๋‹ˆ๋‹ค.

๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์™€ User๋ฅผ ์ƒ์„ฑํ•˜๊ธฐ ์œ„ํ•ด SSMS์„ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

mssql login

ํ˜„์žฌ Authentication์ด windows Auth๋กœ ์„ค์ •์ด ๋˜์–ด์žˆ์Šต๋‹ˆ๋‹ค. ์•„์ง loginํ•  user๊ฐ€ ์—†๊ธฐ ๋•Œ๋ฌธ์— ์ด๋ ‡๊ฒŒ ๋กœ๊ทธ์ธํ•ฉ๋‹ˆ๋‹ค. server name์€ ๊ทธ๋ƒฅ ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ ๋กœ๊ทธ์ธ ํ•˜๋ฉด ๋˜๊ฒ ์Šต๋‹ˆ๋‹ค. ์ถ”ํ›„์— ๋„๋ฉ”์ธ๋ช…์ด๋‚˜ ip๋กœ ์™ธ๋ถ€ ํฌํŠธ์—์„œ ์ ‘์† ๊ฐ€๋Šฅํ•˜๊ฒŒ ๋งŒ๋“ค์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค. ํ˜„์žฌ SSMS ์ ‘์†์€ windows auth์œผ๋กœ ํ–ˆ์ง€๋งŒ windows auth ์ •๋ณด๋Š” ๊ฐ€๋ณ€์ ์ด๊ธฐ ๋•Œ๋ฌธ์— Orchestrator์—์„œ์˜ DB ์ ‘๊ทผ์„ ์œ„ํ•ด User๋ฅผ ๋”ฐ๋กœ ๋งŒ๋“ค์–ด์•ผํ•ฉ๋‹ˆ๋‹ค.



User ๋งŒ๋“ค๊ธฐ

์ขŒ์ธก Object Exploer์—์„œ Security ํ•ญ๋ชฉ์˜ logins์—์„œ ์šฐํด๋ฆญ ํ•˜์—ฌ New Login์„ ์ƒ์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

create user

์ฒดํฌ๋œ ๊ฒƒ๋“ค์„ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค. SQL Server authentucation์„ ์„ ํƒํ•˜๊ณ  Login name๊ณผ ๋น„๋ฐ€๋ฒˆํ˜ธ๋ฅผ ์ง€์ •ํ•ฉ๋‹ˆ๋‹ค. ์ฒดํฌ๋ฐ•์Šค์—์„œ ๋‹ค์Œ ๋กœ๊ทธ์ธ๋•Œ ๋น„๋ฐ€๋ฒˆํ˜ธ ๋ณ€๊ฒฝ์€ ํ•ด์ œํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋ฆฌ๊ณ  OK ๋ฒ„ํŠผ ํด๋ฆญ

๊ทธ๋Ÿผ ์œ ์ €๋งŒ๋“ค๊ธฐ๋Š” ์„ฑ๊ณตํ–ˆ๋„ค์š”



๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์ƒ์„ฑ

ํ…Œ์ด๋ธ” ์„ค์ •์€ ์œ„์—์„œ ๋ณด์•˜๋˜ Security ์œ„์— Database์—์„œ ํ• ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. Database์—์„œ ์šฐํด๋ฆญ ํ›„ New Databases๋ฅผ ์ƒ์„ฑํ•ด๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. create database

Database ์ด๋ฆ„์„ ์ž…๋ ฅํ•˜๋ฉด ๋ฐ‘์— ์žˆ๋Š” ๋ฐ์ดํ„ฐ ๋ฒ ์ด์Šค file์ด๋ฆ„์ด ์ž๋™์œผ๋กœ ๋ณ€๊ฒฝ๋ฉ๋‹ˆ๋‹ค. Database ์ด๋ฆ„์€ UiPath๋กœ ์ง€์ •ํ•ฉ๋‹ˆ๋‹ค. ์ด๋ฆ„ ๋ณ€๊ฒฝ ํ›„ ํ•ด๋‹น ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์˜ Owner๋ฅผ ์„ค์ •ํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค. ์‚ฌ์ง„์—์„œ ๋ณด์—ฌ์ง€๋Š” ์ฒดํฌ๋ฒ„ํŠผ์ชฝ์˜ โ€ฆ์„ ํด๋ฆญํ•˜์—ฌ ์œ„์—์„œ ์ƒ์„ฑํ–ˆ๋˜ Login name์„ ์ฐพ์•„ ์„ค์ •ํ•ด์ค๋‹ˆ๋‹ค.

Collection ๋ถ€๋ถ„์€ ์ƒ๋žต ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.

์ด๋Œ€๋กœ DB๋ฅผ ์ƒ์„ฑ์„ ํ•ด๋„ ๋˜์ง€๋งŒ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์˜ Collection ์„ค์ •์„ ๋ฐ”๊พธ๋Š”๊ฒŒ ์ข‹์Šต๋‹ˆ๋‹ค. Select a page์˜ Options์— ๋“ค์–ด๊ฐ€ Collection์„ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค. ํ•œ๊ธ€ ์‚ฌ์šฉ์˜ ๊ฒฝ์šฐ ๋ณดํ†ต Korean_Wansung_CI_AS ์„ ๋งŽ์ด ์‚ฌ์šฉํ•˜๋ฉฐ SQL_Latin1_General_CP1_CI_AS ๋„ ๋งŽ์ด ์“ฐ์ด๋Š”๊ฑฐ ๊ฐ™์Šต๋‹ˆ๋‹ค.

๊ทธ๋Ÿผ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์™€ ์œ ์ €๋ฅผ ๋งŒ๋“ค๊ณ  ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค๋ฅผ ๋งŒ๋“ค์–ด ์œ ์ € ๊ถŒํ•œ์„ ์ฃผ๋Š” ์ž‘์—…๊นŒ์ง€ ์™„๋ฃŒํ–ˆ๋„ค์š” ๋‹ค์Œ ๋‚ด์šฉ์€ ์ƒ์„ฑํ•œ ์œ ์ € ์ด๋ฆ„์œผ๋กœ DB ์ ‘์†์„ ํ•˜๊ธฐ ์œ„ํ•œ ๋‚ด์šฉ์ž…๋‹ˆ๋‹ค.



์ด์ œ Windows Authentication ๋ฐฉ์‹์˜ ๋กœ๊ทธ์ธ์„ ๋ณ€๊ฒฝํ•ด์ค˜์•ผํ•ฉ๋‹ˆ๋‹ค.

change login


์œ„์™€ ๊ฐ™์ด ์ด๋™ํ•˜์—ฌ SQL Server and Window Authentication mode๋ฅผ ์„ ํƒํ•˜๊ณ  OK

change login2



Mssql ์„œ๋ฒ„๋ฅผ ์žฌ์‹คํ–‰

์„ค์ •์ด ๋๋‚ฌ์Šต๋‹ˆ๋‹ค. ์ ์šฉํ•˜๋ ค๋ฉด Mssql ์„œ๋ฒ„๋ฅผ ์žฌ์‹คํ–‰ ํ•ด์ค˜์•ผ ํ•ฉ๋‹ˆ๋‹ค. ์žฌ์‹คํ–‰ ๋ฐฉ๋ฒ•์€ ์ž‘์—…๊ด€๋ฆฌ์ž ์„œ๋น„์Šค์—์„œ MSSQLSERVER๋ฅผ ์ฐพ์•„์„œ ์šฐํด๋ฆญํ•˜์—ฌ ๋‹ค์‹œ ์‹œ์ž‘ํ•ด์ฃผ์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค.

reset mssql

์„œ๋ฒ„๊ฐ€ ๋‹ค์‹œ ์‹œ์ž‘๋˜๋ฉด์„œ Auth ํ™˜๊ฒฝ์ด ์ €์žฅ๋˜๊ณ  Install ๋‹ค์Œ์œผ๋กœ ๋„˜์–ด๊ฐˆ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.


๋‹ค์ŒํŽธ์— ๊ณ„์† ์ด์–ด์„œ ์“ฐ๊ฒ ์Šต๋‹ˆ๋‹ค.