# 리눅스#. yum을 통해 Postgre를 설치했다면, Extention을 사용하기 위해서는 yum install postgre16.1-contribsource로 설치했으면 contrib이 디렉토리에 존재함 1. Passwordcheck 모듈사용wget https://raw.githubusercontent.com/michaelpq/pg_plugins/main/passwordcheck_extra/passwordcheck_extra.cmv passwordcheck.c passwordcheck.c_orgwget https://raw.githubusercontent.com/michaelpq/pg_plugins/main/passwordcheck_extra/passwordcheck_extra.cmv passwor..
$PGDATA/pg_hba.conf# TYPE DATABASE USER ADDRESS METHOD # "local" is for Unix domain socket connections only #local all all trust local all all md5 # IPv4 local connections: #host all all 0.0.0.0/0 trust host all ..
1. 수동 설치 파일 가져오기 wget https://ftp.postgresql.org/pub/source/v16.1/postgresql-16.1.tar.gz --no-check-certificate http://ftp.postgresql.org/pub/source/ Index of /pub/source/ ftp.postgresql.org https://www.enterprisedb.com/download-postgresql-binaries Community DL Page Download PostgreSQL Binaries The links below allow you to download archives of the files installed by our PostgreSQL installers. Th..
1. 수동 설치 파일 가져오기 (옛날버전 10.23* 까지만 지원) https://www.enterprisedb.com/download-postgresql-binaries wget https://sbp.enterprisedb.com/getfile.jsp?fileid=1258254 --no-check-certificate 2. 유저, 그룹 추가 groupadd dba useradd pgre passwd pgre usermod -g dba pgre chown pgre:dba postgresql-16.1.tar.gz 3. 압축해제 tar -zxvf postgresql-10.23-1-linux-x64-binaries.tar.gz 4. bash_profile export POSTGRES_HOME=/home/pgr..
1. Controlfile 재생성을 이용한 방법 ■ orcl -> orcl1으로 변경작업 ※ 사전작업 1) controlfile , pfile 백업 ALTER DATABASE BACKUP CONTROLFILE TO TRACE AS '/app/oracle/work/con_bak.trc'; create pfile from spfile; 2) controlfile script 수정 -. REUSE -> SET으로 변경 -. DBNAME -> orcl 에서 orcl1으로 변경 CREATE CONTROLFILE set DATABASE "orcl1" RESETLOGS ARCHIVELOG . . 3) pfile 이름 변경 및 내용 수정 -. db_name orcl1로 변경 -. local_listener='LISTE..
1. UNIQUE INDEX, UNIQUE Constraint DB별 동작차이 ※ ORACLE -. UNIQUE 제약조건 -> insert, update 문장 실행이 끝나고 중복확인 -. UNIQUE 인덱스 -> insert, update 문장 실행이 끝나고 중복확인 -. Oracle에서 Unique Constraint와 Unique Index가 모두 존재할 때, 데이터베이스는 Unique Constraint를 먼저 확인합니다. CREATE TABLE TEST_USER01.TEST001 ( c1 number ); insert into TEST_USER01.TEST001 select level from dual connect by level < 100000; commit; CREATE UNIQUE INDE..