Ryon`s Life

DataBase +5
    

■ 오라클(Oracle) DB 버전 확인 쿼리

*Query : SELECT PRODUCT, VERSION FROM SYS.PRODUCT_COMPONENT_VERSION;

* 출력 결과 캡처이미지



※ 추가로 버전 확인 쿼리 수행시 DB 서버 환경(운영체제) 정보도 확인이 가능 합니다. 만약 접근하려는 DB서버의 운영체제 정보를 모르는 경우 쿼리문 수행으로 대략적인 정보 확인이 가능 합니다. 유지보수 하거나 할 때 고객쪽 DB 연결 정보만 알고있고, 서버가 원격이나 텔넷이 막혀있는 경우 유용할 듯 합니다.

<12 class="hx cmt">
    

■ 오라클(Oracle) nls_parameter 확인 쿼리


* Query : select * from v$nls_parameters;


* 출력 결과 캡처 이미지



<12 class="hx cmt">
    

■ 오라클(Oracle) DATABASE_PROPERTIES 확인 쿼리


* Query : SELECT * FROM DATABASE_PROPERTIES;


* 출력 결과 캡쳐이미지



<12 class="hx cmt">
    

2.3.4.14. The Location of the my.ini File

In MySQL installations prior to version 4.1.5 it was customary to name the server configuration file my.cnf ormy.ini and locate the file either at c:\my.cnf or c:\Windows\my.ini.

The new MySQL Configuration Wizard places the my.ini file in the installation directory of the MySQL server. This helps associate configuration files with particular server instances.

To ensure that the MySQL server knows where to look for the my.ini file, an argument similar to this is passed to the MySQL server as part of the service installation:

--defaults-file="C:\Program Files\MySQL\MySQL Server 4.1\my.ini"

Here, C:\Program Files\MySQL\MySQL Server 4.1 is replaced with the installation path to the MySQL Server. The --defaults-file option instructs the MySQL server to read the specified file for configuration options when it starts.


<12 class="hx cmt">
    

* Mysql 서비스 등록 명령어

1. cmd 창에서 mysql 설치 디렉토리의 bin 디렉토리로 이동

2. mysqld --install [서비스명]

3. 2.번의 명령어 입력



* Mysql 서비스 삭제 명령어

1. cmd 창에서 

2. sc delete 서비스명

3. 2.번의 명령어 입력


<12 class="hx cmt">