tailieunhanh - OCA /OCP Oracle Database 11g A ll-in-One Exam Guide- P74

OCA /OCP Oracle Database 11g A ll-in-One Exam Guide- P74:There is an ever increasing demand for staff with IT industry certification. The benefits to employers are significant—they can be certain that staff have a certain level of competence—and the benefits to the individuals, in terms of demand for their services, are equally great. Many employers are now requiring technical staff to have certifications, and many IT purchasers will not buy from firms that do not have certified staff. | OCA OCP Oracle Database 11g All-in-One Exam Guide 686 Figure 18-3 Clearing a log file group with SQL Plus Exercise 18-3 Recover a Lost Multiplexed Online Log File This exercise will simulate loss of a log file member and then while the database is open diagnose the problem and clear it. 1. Using SQL Plus connect to your database as user SYS with SYSDBA privilege SQL connect as sysdba 2. Observe the state of your online logs with the following query SQL select group status member from v logfile order by 1 3 GROUP STATUS MEMBER 1 1 2 2 3 3 6 rows selected. uOl app oracle oradata orcl uOl app oracle oradata orcl u01 app oracle oradata orcl u01 app oracle oradata orcl u01 app oracle oradata orcl u01 app oracle oradata orcl Confirm that you do have at least two members of each group and that all the members have the STATUS column on NULL as in the example here. If any groups do not have two members multiplex them immediately by following the steps provided in Chapter 14 Exercise 14-1. If any members do not have a STATUS of NULL execute the command SQL alter system switch logfile a few times to cycle through the groups and then rerun the query. 3. Shut down the database SQL shutdown immediate Chapter 18 User-Managed Backup Restore and Recovery 687 4. Using an operating system command simulate media failure by deleting one of the members. For example on Windows SQL host del C ORACLE PRODUCT ORADATA ORCL or on Unix SQL host rm u01 app oracle oradata orcl 5. Start up the database and simulate user activity by performing a few log switches SQL startup SQL alter system SQL alter system SQL alter system switch logfile switch logfile switch logfile 6. Check the state of your log file members SQL select group status member from v logfile order by 1 3 GROUP STATUS MEMBER 1 INVALID u01 app oracle oradata orcl 1 u01 app oracle oradata orcl 2 u01 app oracle

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.