keytool.exe -genkey -alias juheon -keyalg RSA -keypass 1234qwer -storepass 1234qwer -keystore juheon.jks keytool.exe -export -alias juheon -storepass 1234qwer -file juheon.cer -keystore juheon.jks keytool.exe -importkeystore -srckeystore juheon.jks -destkeystore juheon.key.p12 -deststoretype PKCS12 D:\Java\32bit\jdk1.5.0_22\jre\lib\security\cacert D:\Java\32bit\jdk1.5.0_22\bin\keytool.exe -import -alias tsasample -keystore D:\Java\32bit\jdk1.5.0_22\jre\lib\security\cacert -file D:\workspace\Servers\tsa-server-web-config\tomcat.cer keytool -import -alias somansa -keystore C:\Program Files\Java\jdk1.8.0_102\jre\lib\security\cacert -file c:\somansa.cer #인증서 생성 keytool -genkey -alias keyAlias -keyalg RSA -keypass changeit -storepass changeit –validity 9999 -keystore keystore.jks keytool -export -alias keyAlias -storepass changeit -file server.cer -keystore keystore.jks keytool -import -v -trustcacerts -alias keyAlias -file server.cer ...
PK 조회
SELECT A.TABLE_NAME, B.COLUMN_NAME, A.CONSTRAINT_NAME, A.CONSTRAINT_TYPE, A.SEARCH_CONDITION
FROM USER_CONSTRAINTS A, USER_CONS_COLUMNS B
WHERE A.CONSTRAINT_NAME = B.CONSTRAINT_NAME
AND A.TABLE_NAME = '[테이블명 대문자]'
AND A.CONSTRAINT_TYPE = 'P';
PK 삭제
ALTER TABLE [테이블명] DROP CONSTRAINT [인덱스 명];
INDEX 생성
CREATE UNIQUE INDEX [인덱스 명] ON [테이블명] ( [컬럼명], [컬럼명], [컬럼명] );
PK 추가
ALTER TABLE [테이블명] ADD CONSTRAINT [인덱스 명] PRIMARY KEY ( [컬럼명], [컬럼명], [컬럼명] );
SELECT A.TABLE_NAME, B.COLUMN_NAME, A.CONSTRAINT_NAME, A.CONSTRAINT_TYPE, A.SEARCH_CONDITION
FROM USER_CONSTRAINTS A, USER_CONS_COLUMNS B
WHERE A.CONSTRAINT_NAME = B.CONSTRAINT_NAME
AND A.TABLE_NAME = '[테이블명 대문자]'
AND A.CONSTRAINT_TYPE = 'P';
PK 삭제
ALTER TABLE [테이블명] DROP CONSTRAINT [인덱스 명];
INDEX 생성
CREATE UNIQUE INDEX [인덱스 명] ON [테이블명] ( [컬럼명], [컬럼명], [컬럼명] );
PK 추가
ALTER TABLE [테이블명] ADD CONSTRAINT [인덱스 명] PRIMARY KEY ( [컬럼명], [컬럼명], [컬럼명] );
댓글
댓글 쓰기