데이터베이스 객체의 구조를 생성/변경/삭제
CREATE ALTER DROP RENAME
Auto Commit 실행
DB는 리스너를 통해 요청이 있는지 확인하기 때문에 꼭 리스너가 잘 연결되어 있어야 함
lsnrctl status : 리스너 잘 있는지 확인
[oracle@localhost ~]$ **lsnrctl status**
LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 27-DEC-2023 10:45:54
Copyright (c) 1991, 2019, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 19.0.0.0.0 - Production
Start Date 26-DEC-2023 16:45:23
Uptime 0 days 18 hr. 0 min. 30 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracle/product/19.3/db_1/network/admin/listener.ora
Listener Log File /oracle/diag/tnslsnr/localhost/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Services Summary...
Service "dev1" has 1 instance(s).
Instance "dev1", status READY, has 1 handler(s) for this service...
Service "dev1XDB" has 1 instance(s).
Instance "dev1", status READY, has 1 handler(s) for this service...
The command completed successfully
서버에 다이렉트로 접속 / 뭔가를 통해서 간게 아님
sqlplus / as sysdba 로 하면 나오는 user SYS는 슈퍼유저임 → 유저, 비밀번호 안치고 OS 인증으로 바로 들어간거임 → 관리자만 이렇게 접속!
[oracle@localhost db_1]$ sqlplus / as sysdba
SQL*Plus: Release 19.0.0.0.0 - Production on Wed Dec 27 11:02:49 2023
Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle. All rights reserved.
Connected to:
Oracle Database 19c Standard Edition 2 Release 19.0.0.0.0 - Production
Version 19.3.0.0.0
SQL> show user
USER is "SYS"
SQL> select instance_name, status from v$instance;
INSTANCE_NAME
------------------------------------------------
STATUS
------------------------------------
dev1
OPEN
SQL>