giáo trình thực hành oracle 11g

30 242 1
giáo trình thực hành oracle 11g

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Lê Văn Lương 1 Câu 1: Tạo database có tên là dbdemo, character set là AL32UTF8 - Sử dụng dbca để tạo database. Chọn Next - Chọn tùy chọn: “Create a Database”. Lê Văn Lương 2 - Nhấn Next để tiếp tục. - Chọn tùy chọn: “General Purpose or Transaction Processing”. - Nhấn Next để tiếp tục. Lê Văn Lương 3 - Đặt tên database là: dbdemo - Đặt tên SID là: dbdemo - Nhấn Next để tiếp tục - Check chọn “Configure Enterprise Manager” . Lê Văn Lương 4 - Chọn Next để tiếp tục. - Chọn Next để tiếp tục - Gõ password của ASM Lê Văn Lương 5 - Chọn Storage Type: ASM (Automatic Storage Management) - Tên diskgroup: +DATA - Chọn Next để tiếp tục - Chọn Next để tiếp tục. Lê Văn Lương 6 - Chọn Next để tiếp tục Lê Văn Lương 7 Lê Văn Lương 8 - Chọn Next để tiếp tục Lê Văn Lương 9 - Chọn Next để tiếp tục - Click Finish - Chọn OK Lê Văn Lương 10 Câu 2: Multiplex control file thành 4 controlfile [...]...Lê Văn Lương /u01/app /oracle/ oradata/dbdemo/control01.ctl /u01/app /oracle/ oradata/dbdemo/control02.ctl /u01/app /oracle/ oradata/dbdemo/control03.ctl /u01/app /oracle/ oradata/dbdemo/control04.ctl - Login vào user Oracle tạo thư mục dbdemo theo đường dẫn: “/u01/app /oracle/ oradata/dbdemo” để chứa multiplex control file - Sử dụng oraenv sét biến môi trường ORACLE_ SID = dbdemo - Đăng nhập vào... “/u01/app /oracle/ oradata/dbdemo” 11 Lê Văn Lương - Set lại controlfile để tạo multiplex - Dùng RMAN restore controlfile từ controlfile đang dùng 12 Lê Văn Lương Câu 3: Multiplex redolog Group 1: /u01/app /oracle/ oradata/dbdemo/redo01.log /u01/app /oracle/ oradata/dbdemo/redo01b.log Group 2: /u01/app /oracle/ oradata/dbdemo/redo02.log 13 Lê Văn Lương /u01/app /oracle/ oradata/dbdemo/redo02b.log Group 3: /u01/app /oracle/ oradata/dbdemo/redo03.log... database vào /u01/app/rman - Tạo thư mục rman - Thực hiện backup (ở trạng thái Archivelog) - File backup trong thư mục /u01/app/rman 19 Lê Văn Lương Câu 9: Xóa file /u01/app /oracle/ oradata/dbdemo/user01.dbf /u01/app /oracle/ oradata/dbdemo/system01.dbf - Shutdown immediate trong RMAN - Di chuyển đến thư mục datafile cd u01/app /oracle/ oradata/DBDEMO/datafile - Thực hiện xóa file Rm o1_mf_user* Rm o1_mf_syst*... /u01/app /oracle/ oradata/dbdemo/redo03.log /u01/app /oracle/ oradata/dbdemo/redo03b.log - Kết nối tới sqlplus: - Tạo 14 Lê Văn Lương Cau 4: Chuyển DB sang ARCHIVELOG mode /u01/app/archive - Tạo thư mục archive - Vào sqlplus kiểm tra trạng thái ARCHIVELOG - Ta thấy trạng thái đang là No Archive Mode Thực hiện chuyển trạng thái về Archive Mode 15 Lê Văn Lương - Kiểm tra lại trạng thái Câu 5: Tạo tablespace DATA: /u01/app /oracle/ oradata/dbdemo/data01.dbf . thành 4 controlfile Lê Văn Lương 11 /u01/app /oracle/ oradata/dbdemo/control01.ctl /u01/app /oracle/ oradata/dbdemo/control02.ctl /u01/app /oracle/ oradata/dbdemo/control03.ctl /u01/app /oracle/ oradata/dbdemo/control04.ctl. 1: /u01/app /oracle/ oradata/dbdemo/redo01.log /u01/app /oracle/ oradata/dbdemo/redo01b.log Group 2: /u01/app /oracle/ oradata/dbdemo/redo02.log Lê Văn Lương 14 /u01/app /oracle/ oradata/dbdemo/redo02b.log. /u01/app /oracle/ oradata/dbdemo/control04.ctl - Login vào user Oracle tạo thư mục dbdemo theo đường dẫn: “/u01/app /oracle/ oradata/dbdemo” để chứa multiplex control file - Sử dụng . oraenv sét biến môi trường ORACLE_ SID = dbdemo

Ngày đăng: 23/10/2014, 07:50

Từ khóa liên quan

Tài liệu cùng người dùng

Tài liệu liên quan