Cohe
데이터 베이스 설치들 본문
728x90
반응형
SQLite DB
- RDBMS(Relative Database Management System) ex) MySQL, Oracle, MSSQL ...
- SQLite는 파일 형식의 데이터베이스 (**)
- 파일 형식이기 때문에 리모트(원격)로 접속이 불가능함
- SQLite 데이터 타입
- TEXT : 문자형 (사이즈)
- NUMERIC : 숫자형
- INTEGER : 정수형(양의정수, 음의정수, 0)
- REAL : 실수형(정수 + 유리, 무리수)
- BLOB : 대용량 자료
- 제약 조건(Constraint)
- Primary Key : 기본키 (not null, unique)
- UNIQUE : 중복X
- NOT NULL : 생략 불가
- CHECK : 제한 조건 부여
- DEFAULT : 기본값 설정
- jar 파일을 다운 받았다.
SQLitebrowser
https://github.com/sqlitebrowser/sqlitebrowser/releases
- assets를 다운 받으면 된다!!
Error occurred during initialization of boot layer java.lang.module.FindException: Module org.slf4j not found, required by org.xerial.sqlitejdbc
- 드라이버 중에 로그를 띄우는 것을 추가했다!
- slf4j 드라이버 다운을 받았다
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="src"/>
<classpathentry kind="lib" path="D:/AWSDEVELOP/mysql-connector-j-8.3.0.jar">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="D:\\AWSDEVELOP\\sqlite-jdbc-3.45.2.0.jar">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="D:\\AWSDEVELOP\\slf4j-api-2.0.12.jar">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="D:\\AWSDEVELOP\\slf4j-simple-2.0.12.jar">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="bin"/>
</classpath>
MARIADB
- 다운로드 : 마리아 db 를 그냥 가서 다운을 받으면 됨
- heidisql 으로 실행하면 된다.
Docker - Oracle 설치
- git clone https://github.com/oracle/docker-images.git
- 이동 : /d/tools/docker-images/OracleDatabase/SingleInstance/dockerfiles (main)
- 다운로드 : ./buildContainerImage.sh -v 18.4.0 -x -i oracleEx
- 확인 : docker image ls oracle/database
- run : docker run --name OracleXE -v /etc/localtime:/etc/localtime:ro -e TZ=Asia/Seoul --shm-size=1g -p 11521:1521 -p 5500:5500 -e ORACLE_PWD=root1234 oracle/database:18.4.0-xe
- 다운 받기
Oracle SQL Developer Downloads
- 집가서 로그인 비번 확인하기ㅠㅠ : 우선은 windows 32bits/64bits 를 다운 받는다!!
- sqldeveloper-23.1.1.345.2114-no-jre.zip
- docker ps : container 목록이 보임
- container ID 복사
- docker exec -it [container ID] bash
- #표시 뜨는 shell 이 나온다.
- su oracle
- $ 표시로 바뀜 → sqlplus
- id : system/root1234
728x90
반응형
'데이터 베이스 기초' 카테고리의 다른 글
oracle 기본 데이터 형 및 기타 내용 (2) | 2024.04.03 |
---|---|
Union, GROUP BY / HAVING, Join, GRANT (0) | 2024.04.01 |
데이터베이스와 데이터베이스 시스템의 개념 (3) | 2024.03.29 |
1 데이터 베이스 기초 (0) | 2024.01.26 |