DB tạo mới: DUONGDB
Pass: oracle
Đường dẫn data: /u01/app/oracle/oradata/DUONGDB
Ghi chú: Server đã được cài đặt Oracle database Software sẵn trước khi tiến hành.
Tạo mới thư mục chứa database:
mkdir -p /u01/app/oracle/oradata/DUONGDB
Khởi tạo biến môi trường:
export ORACLE_SID=DUONGDB
Chạy lệnh khởi tạo DB trong Silent Mode:
dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbName DUONGDB -sid DUONGDB -sysPassword oracle -systemPassword oracle -emConfiguration NONE -datafileDestination /u01/app/oracle/oradata -storageType FS -characterSet AL32UTF8
SQL> select name, open_mode from v$database;
NAME OPEN_MODE
——— ——————–
DUONGDB READ WRITE
Xem thêm:
- Q20. Which three are true about Automatic Workload Repository (AWR) and Automatic Database Diagnostic Monitor (ADDM) in an Oracle multitenant environment?
- Các bước thực hiện để xoá Oracle database khỏi linux
- Q106. Examine this configuration Which two are true?
- Toán tử SQL EXISTS
- Q41 An Oracle database session has an uncommitted transaction in progress which updated 5000 rows in a table