전체 글 438

Oracle Database IO오류 업체 코드 17002 Oracle Listener 오류해결

SQLD 학습용 버전으로 설치한 Oracle Database XE 및 Oracle SQL Developer 실행 중 발생한 오류를 해결하는 방법입니다 요청한 작업을 수행하는 중 오류 발생: IO 오류: The Network Adapter could not establish the connection (CONNECTION_ID=PUZnFWpWQ7mCQXgyP4K4gQ==) 업체 코드 17002 실행프로그램인 Oracle SQL Developer를 실행하는데 데이터베이스에 접속하려고 하니 다음과 같은 오류가 발생합니다 요청한 작업을 수행하는 중 오류 발생: IO 오류: The Network Adapter could not establish the connection (CONNECTION_ID=PUZnFWpW..

자격증/SQLD 2023.03.04

SQLD Oracle Database XE & Oracle SQL Developer 설치 (학습용)

SQLD 시험 공부(학습용)를 위해 SQLD를 수행할 수 있는 Oracle Database XE와 Oracle SQL Developer를 설치하겠습니다 먼저 Oracle Database XE 설치입니다 https://www.oracle.com/database/technologies/xe-downloads.html Oracle Database Express Edition (XE) Downloads Support Oracle Database Express Edition (XE) is a community supported edition of the Oracle Database family. Please go to the Oracle Database XE Community Support Forum for he..

자격증/SQLD 2023.03.04

JAVA 소켓프로그래밍 Network UDP

소켓프로그래밍 Network UDP 소켓프로그래밍 : 채팅 통신방식 UDP : 비연결형 ; 무전기, 개인 쪽지, 문자메세지 TCP : 연결형 ; 핸드폰, 1:1채팅 * TCP : Socket, ServerSocket 상대방과 1:1로 연결이 유지되는 객체 // Sender class import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetSocketAddress; import java.net.SocketAddress; import java.net.SocketException; public class UDPSender { public static void main..

Backend/JAVA 2023.03.03

JAVA 코딩 API (Application Programming Interface) - String, Object

api.io.object import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectOutputStream; public class Test01 { public static void main(String[] args) { int[] data = new int[] {4,1,9,15,11,6,2}; boolean[] flag = new boolean[] {true,true,false}; String day = "WED"; //객체 입출력 ObjectOutputStream oos = null; try { oos = new ObjectOutputStream(new FileOutputStream("arrays.txt")); /..

Backend/JAVA 2023.03.03

JAVA 코딩 API (Application Programming Interface) - charstream, singlebyte

api. io.charstream import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; public class Test01 { public static void main (String[] args) { BufferedWriter bw = null; try { bw = new BufferedWriter(new FileWriter("output.log")); bw.write("이게 마지막이다"); bw.newLine(); // 다음줄로 이동 bw.write("배고프다"); bw.newLine(); bw.write("뭐가 문제야 대체"); } catch (IOException e) { e.printStackTr..

Backend/JAVA 2023.03.03

JAVA 코딩 API (Application Programming Interface) - Math, System, Date, Scanner

api.lang.Math : 수학 계산 클래스 public class Test01 { public static void main (String[] args) { double a = 1.5; System.out.println(Math.floor(a)); // 버림 System.out.println(Math.round(a)); // 반올림 System.out.println(Math.ceil(a)); // 올림 int b = 3; int c = 4; System.out.println(Math.pow(b, 3)); // 제곱근 구하기 System.out.println(Math.pow(c, 2)); // 제곱근 구하기 double d = Math.pow(b, 2) + Math.pow(c, 2); double e ..

Backend/JAVA 2023.03.03

JAVA 코딩 API (Application Programming Interface) - File

API - File java.io.File : 파일과 폴더를 구별하지 않고 함게 관리하는 클래스 import java.io.File; public class Test01 { public static void main (String[] args) { File f = new File("sample.txt"); System.out.println(f.exists()); // 대상 파일이 존재하는가? System.out.println(f.isFile()); // 대상이 파일인가? System.out.println(f.isDirectory()); // 대상이 폴더인가 // 파일 정보 System.out.println(f); System.out.println(f.getName()); // 파일명 System.out...

Backend/JAVA 2023.03.02

JAVA 코딩 API (Application Programming Interface) - String : FileOutputStream, OutputStream, FileWriter, append

API - String import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; public class Test01 { public static void main (String[] args) { // 문자열 저장 File target = new File("files", "string1.txt"); OutputStream out = null; String text = "어둠만이 나의 전부였던 동안\r\n" + "숨이 벅차도록 달려왔잖아\r\n" + "Never say “time's up”\r\n" +..

Backend/JAVA 2023.03.02