วันพุธที่ 13 กันยายน พ.ศ. 2560

Oracle Manage DB

เครื่องหมาย ไม่เท่ากับ
<>
!=
^=

character set
memory

user admin
sys
system
dbsnmp
sysman

ตั้ง Memory และ Character set

Choose from the list of character sets :
TH8TISASCII - Thai Industrial Standard 620-2533-ASCII

Username : sys
password : xxx

Connection Type Basic Role SYSDBA
Hostname : localhost
Port : 1521
SID : xxxdb

ex.
login by sys in sqlDeveloper
grant read, write on directory data_pump_dir to [hr];

// set for use with DB
set ORACLE_SID=xxxx

// and use
expdp hr/hr directory=data_pump_dir

// In New DB by sys do this
grant connect, resource to [newuser] identified by [newuserpwd];
grant read,write on directory data_pump_dir2 to [newuser];

set ORACLE_SID=[newDB]

ใช้ DBA Tools สร้าง Tablespaces
Name:

FILE_SPECIFICATION1 NAME:"EXAMPLE01.DBF"
File Size: 100
checkAuto Extend On

impdp [newuser]/[newuserpwd] directory_pump_dir2 remap_schema=[olduser]:[newuser]

// give dba to user

grant dba to hr;

select * from v$session

--auto backup--
create bat file for windows

set oracle_sid=orcl
expdp hr/hr directory=data_pump_dir dumpfile=exp_file_%date:~10,4%_%date:~7,2%_%date:~4,2%.dmp logfile=exp_file_%date:~10,4%_%date:~7,2%_%date:~4,2%.log reuse_dumpfiles=y

-- for test import or check whatever in dmp file --
impdp hr/hr directory=data_pump_dir dumpfile=EXPDATE.DMP SQLFILE=sql.txt

วันอังคารที่ 5 กันยายน พ.ศ. 2560

การตั้ง SSL โดยใน Let's Encrypt ใน Windows 2012

Download ไฟล์ได้จาก

https://github.com/Lone-Coder/letsencrypt-win-simple/releases

วิธีการใช้งาน ดูได้ที่

https://weblog.west-wind.com/posts/2016/feb/22/using-lets-encrypt-with-iis-on-windows

ยังไม่อัพเดทเพิ่มเติม เพราะ domain จะต้องต่อออก Internet ได้ โดยสามารถเข้าจากภายนอกได้ ยังไม่สามารถทำการ Test ได้ครับ