OCP-1Z0-053-V12.02-430题
2013-11-09 00:49
417 查看
430.Which of the following is a prerequisite for running DBMS_TDB.CHECK_DB to a successful completion?
A. The database must be in read-write mode.
B. The database must have no external files.
C. The database must open in read-only mode.
D. The database must be mounted but not opened.
Answer: C
答案解析:
参考:http://docs.oracle.com/cd/E11882_01/appdev.112/e40758/d_tdb.htm#ARPLS68864
state for transport.
You can specify whether to skip checking parts of the database that are read-only or offline, if you do not plan to transport them.
The function is overloaded. The different functionality of each form of syntax is presented along with the definition.
Syntax
DBMS_TDB.CHECK_DB (
target_platform_name IN VARCHAR2,
skip_option IN NUMBER)
RETURN BOOLEAN;
DBMS_TDB.CHECK_DB (
target_platform_name IN VARCHAR2)
RETURN BOOLEAN;
DBMS_TDB.CHECK_DB
RETURN BOOLEAN;
Parameters
Table 151-3 CHECK_DB Function Parameters
[thead]
Return Values
If the database cannot be transported to the target platform or is not ready to be transported, returns
Usage Notes
If
151-4, "Reasons for CHECK_DB Function to Return FALSE".
Table 151-4 Reasons for CHECK_DB Function to Return FALSE
[thead]
Examples
This example illustrates the use of
SQL> SET SERVEROUTPUT ON
SQL> DECLARE
db_ready BOOLEAN;
BEGIN
db_ready := DBMS_TDB.CHECK_DB('Microsoft Windows IA (32-bit)');
END;
/
Database is not open READ ONLY. Please open database READ ONLY and retry.
PL/SQL procedure successfully completed.
A. The database must be in read-write mode.
B. The database must have no external files.
C. The database must open in read-only mode.
D. The database must be mounted but not opened.
Answer: C
答案解析:
参考:http://docs.oracle.com/cd/E11882_01/appdev.112/e40758/d_tdb.htm#ARPLS68864
CHECK_DB Function
This function checks whether a database can be transported to a target platform. It tests whether transport is supported at all for a given source and destination platform, and whether the database is currently in the correctstate for transport.
You can specify whether to skip checking parts of the database that are read-only or offline, if you do not plan to transport them.
The function is overloaded. The different functionality of each form of syntax is presented along with the definition.
Syntax
DBMS_TDB.CHECK_DB (
target_platform_name IN VARCHAR2,
skip_option IN NUMBER)
RETURN BOOLEAN;
DBMS_TDB.CHECK_DB (
target_platform_name IN VARCHAR2)
RETURN BOOLEAN;
DBMS_TDB.CHECK_DB
RETURN BOOLEAN;
Parameters
Table 151-3 CHECK_DB Function Parameters
Parameter | Description |
---|---|
target_platform_name | The name of the destination platform, as it appears in V$DB_TRANSPORTABLE_PLATFORM. |
skip_option | Specifies which, if any, parts of the database to skip when checking whether the database can be transported. Supported values are listed in Table 151-1, "DBMS_TDB Constants". |
If the database cannot be transported to the target platform or is not ready to be transported, returns
FALSE. If the database is ready for transport, returns
TRUE.
Usage Notes
If
SERVEROUTPUTis
ON, then the output will contain the reasons why the database cannot be transported and how to fix the problems. For details on possible reasons and fixes, see Table
151-4, "Reasons for CHECK_DB Function to Return FALSE".
Table 151-4 Reasons for CHECK_DB Function to Return FALSE
Cause | Action |
---|---|
Unrecognized target platform name. | Check V$DB_TRANSPORTABLE_PLATFORMfor recognized platform names. |
Target platform has a different endian format. | Conversion is not supported. |
Database is not open read-only. | Open database read-only and retry. |
There are active or in-doubt transactions in the database. | Open the database read-write. After the active transactions are rolled back, open the database read-only and retry the operation. This situation can occur if users flash back the database and open it read only. The active transactions will be rolled back when the database is opened read-write. |
Deferred transaction rollback needs to be done. | Open the database read-write and bring online the necessary tablespaces. Once the deferred transaction rollback is complete, open the database read-only and retry the operation. |
Database compatibility version is below 10.0.0. | Change the COMPATIBLEinitialization parameter to 10.0.0 or higher, open the database read-only, and retry the operation. |
Some tablespaces have not been open read-write with compatibility version is 10.0.0 or higher. | Change the COMPATIBLEinitialization parameter to 10.0.0 or higher, then open the affected tablespaces read-write. Shut down the database, open it read-only, and retry the operation. |
This example illustrates the use of
CHECK_DBwith a database that is open read-write:
SQL> SET SERVEROUTPUT ON
SQL> DECLARE
db_ready BOOLEAN;
BEGIN
db_ready := DBMS_TDB.CHECK_DB('Microsoft Windows IA (32-bit)');
END;
/
Database is not open READ ONLY. Please open database READ ONLY and retry.
PL/SQL procedure successfully completed.
相关文章推荐
- OCP-1Z0-053-V12.02-590题
- OCP-1Z0-053-V12.02-667题
- OCP-1Z0-053-V12.02-661题
- OCP-1Z0-053-V12.02-10题
- OCP-1Z0-053-V12.02-510题
- OCP-1Z0-053-V12.02-215题
- OCP-1Z0-053-V12.02-640题
- OCP-1Z0-053-V12.02-171题
- OCP-1Z0-053-V12.02-76题
- OCP-1Z0-053-V12.02-210题
- OCP-1Z0-053-V12.02-242题
- OCP-1Z0-053-V12.02-339题
- OCP-1Z0-053-V12.02-432题
- OCP-1Z0-053-V12.02-650题
- OCP-1Z0-053-V12.02-260题
- OCP-1Z0-053-V12.02-365题
- OCP-1Z0-053-V12.02-22题
- OCP-1Z0-053-V12.02-509题
- OCP-1Z0-053-V12.02-159题
- OCP-1Z0-053-V12.02-52题