폴더명 추출 # 폴더명 추출 for item in os.listdir(file_path+App): sub_folder = os.path.join(file_path+App, item) # 폴더경로 + 폴더명 sub_folder2 = os.path.join(item) # 폴더명만 if os.path.isdir(sub_folder): # print("Application_version = " + sub_folder2) print("Application = " + sub_folder2) 파일 열기 # 파일 열기 with open(file_path+App+App_txt, "r", encoding="utf-8") as file: file_content = file.read() print("Application_ve..
주의사항 : 동일한 인터프리터 내에 pathlib 라이브러리가 있을 시 pyinstaller 실행 불가 가상 환경 생성 conda create -n 가상환경명 python==파이썬버전 가상 환경 활성화 conda activate 가상환경명 Pyinstaller 설치 pip install pyinstaller Pyinstaller를 활용한 exe 설치 파일 만들기 pyinstaller Z:\999_sjbang\운영\versionCheck.py
-- TABLE SPACE SELECT OWNER, INDEX_NAME, TABLE_NAME, TABLESPACE_NAME FROM ALL_INDEXES WHERE 1=1 AND OWNER = 'DB소유자' AND TABLESPACE_NAME = '테이블스페이스명' -- COMMENT SELECT * FROM ALL_COL_COMMENTS WHERE TABLE_NAME LIKE '%IAIF%' AND COMMENTS IS NULL AND OWNER = 'DB소유자' ORDER BY TABLE_NAME; -- COMMENT 추가 COMMENT ON COLUMN "DB소유자"."테이블명"."칼럼명" IS 'comment명';
1. 프로시저, 함수, 뷰 스크립트 추출 SELECT object_type , object_name , DBMS_METADATA.GET_DDL(object_type, object_name, user) as script FROM user_objects WHERE object_type IN ('PROCEDURE', 'FUNCTION', 'VIEW') ORDER BY object_type; 2. 테이블 백업(cmd로 dmp파일 생성) # export exp 계정id/\"계정pw\"@sid file=경로+파일명.dmp full=Y exp 계정id/\"계정pw\"@sid file=경로+파일명.dmp full=Y # import imp 계정id/\"계정pw\"@sid file=경로+파일명.dmp full=Y 주의 ..
1. python으로 txt 파일 읽기 import os file_path = r"파일 경로" # 파일 열기 with open(file_path, "r", encoding="utf-8") as file: file_content = file.read() print(file_content) 2. python으로 폴더명 읽기 import os main_folder = r"폴더 경로" for item in os.listdir(main_folder): sub_folder = os.path.join(main_folder, item) # 폴더경로 + 폴더명 sub_folder2 = os.path.join(item) # 폴더명만 if os.path.isdir(sub_folder): # print(sub_folder) ..
chromedriver 설치 chrome 버전 확인 [설정] - [Chrome 정보]에서 확인 가능합니다 chrome 버전이 업그레이드 될때마다 버전에 맞는 driver를 맞춰주어야 합니다 최근 chromedriver 버전 : https://googlechromelabs.github.io/chrome-for-testing/#stable python - getChromeDriver.py from selenium import webdriver import chromedriver_autoinstaller import os # Check if chrome driver is installed or not chrome_ver = chromedriver_autoinstaller.get_chrome_version()...