Oracle基础(习题卷12)
说明:答案和解析在试卷最后
第1部分:单项选择题,共63题,每题只有一个正确答案,多选或少选均不得分。
1.[单选题]SELECT语句中FOR UPDATE子句的作用是:( )
A)确定要更新哪个表
B)对查询出来的结果集中的记录进行加锁,阻止其它事务或会话的修改
C)通过查询对数据进行更新
D)在查询的表整体进行加锁
2.[单选题]在Oracle数据库的逻辑结构中有以下组件:A 表空间 B 数据块 C 区 D 段这些组件从大到小依次是
A)D→A→C→B
B)A→C→B→D
C)A→D→C→B
D)A→B→C→D
3.[单选题]Oracle内置程序包由( )用户所有
A)sys
B)system
C)scott
D)Pub lic
4.[单选题]Which two statements about packages are true?
A)Packages can be nested.
B)You can pass parameters to packages.
C)A package is loaded into memory each time it is invoked.
D)The contents of packages can be shared by many applications
5.[单选题]DBA可以使用下列哪一个命令查看当前归档状态( )。
A)ARCHIVE LOG LIST
B)FROMARCHIVE LOGS
C)SELECT * FROM V$THREAD
oracle10g程序异常终止D)SELECT * FROM ARCHIVE_LOG_LIST
6.[单选题]下列哪个CREATE TABLE 语法是有效的?(  )
A)CREATE TABLE emp9$# (emp_no NUMBER (4));
B)CREATE TABLE 9emp$# (emp_no NUMBER(4));
C)CREATE TABLE emp*123 (emp_no NUMBER(4));
D)CREATE TABLE emp9$# (emp_no NUMBER(4), date DATE);
7.[单选题]在DOS命令行输入以下哪一行命令,不能正确连接SQL *Plus( ) 。
A)Sqlplus sys/oracle
B)Sqlplus system/oracle@orcl
C)Sqlplus sys/o123 as sysdba
D)Sqlplus system/o123
8.[单选题]以下选项对OASB 测试描述正确的是()
A)A-反映服务器在基于Oracle 应用中的性能
B)B-衡量文件服务器处理文件I/O 请求能力
C)C-衡量CPU 密集浮点运算性能
D)D-与TPCC 相比,TPCC 更具实际意义
9.[单选题]( )操作符之返回两个查询的所有行
A)INTERSECT
B)UNION
C)MINUS
D)没有
10.[单选题]查询出当前的数据库系统时间, 精确到秒( )
A)select to_date(sysdate,'YYYY-MM-DD HH24:MI:SS') from dual;
B)select to_char(sysdate,'YYYY-MM-DD HH24:MI:SS') from dual;
C)select date(sysdate,'YYYY-MM-DD HH24:MI:SS') from dual;
D)select chr(sysdate,'YYYY-MM-DD HH24:MI:SS') from dual;
11.[单选题]设定允许的IP和禁止的IP,在Oracle9i及以后版本中真正起作用的是()网络配置文件。
a
a
a
a
12.[单选题]Which cloud service is NOT supported to import data pump files from using Dedicated Exadata Infrastructure?
A)Oracle Cloud Infrastructure Object Storage
B)Google Cloud Storage
C)Amazon S3
D)Oracle Cloud Infrastructure Object Storage Classic
13.[单选题]()是方案对象的别名,可以屏蔽对象的名称和拥有者,以及通过为分布式数据库的远程对象提供位置透明来提供一个安全层。
A)同义词。
B)视图。
C)触发器。
D)过程。
14.[单选题]求emp表中销售人员的最高和最低工资( )
A)select maxsal.,minsal. from emp;
B)select deptno,maxsal.,minsal. from emp
group by deptno;
C)select maxsal.,minsal. from emp
where job='SALES';
D)select deptno,maxsal.,minsal. from emp
where job='SALES' group by job;
15.[单选题]在SQL Plus中显示当前用户的命令是( )。
A)Show account
B)Show accountname
C)Show user
D)Show username
16.[单选题]()是存储在计算机内有结构的数据的集合
A)数据库系统
B)数据库
C)数据库管理系统
D)数据结构
17.[单选题]下列哪一个选项通常用来对分组之后的数据进行主要条件筛选( )
A)where
B)order
C)having
D)group
18.[单选题]The HR user owns the BONUSERS talbe.HR grants privileges to the user TOM by using the Command:
SQL> GRANT SELECT ON bonuses to tom WITH GRANT OPTION;
TOM then executes this command to grant privileges to the user JIM:
SQL> GRANT SELECT ON hr.bonuses TO jim;
Which statement is true?
A)JIM can grant the SELECT ON HR. BONUSES privilege to other users, but cannot revoke the privilege from them.
B)HR can revoke the SELECT ON HR. BONUSES privilege from JIM.
C)HR can revoke the SELECT ON HR. BONUSEB privilege from TOM, which will automatically revoke the SELECT ON HR. BONUSES privilege from JIM.
D)TOM cannot revoke the SELECT ON HR. BONUSES privilege from JIM.
19.[单选题]Oracle中创建密码文件的命令是()
A)ORAPWD
B)MAKEPWD
C)CREATEPWD
D)MAKEPWDFILE
20.[单选题]Oracle中,执行语句:SELECT address1||‘,‘||address2||‘,‘||address3 “Address“ FROM employ;将会返回()列。
A)0
B)1
C)2
D)3
21.[单选题]下列不是WebLogic Driver for Oracle 数据源配置的是()
A)MyDatasource
B)myserver
C)MyDriver
D)myConnectionPool
22.[单选题]在不知名用户登录的情况下,下列关于表的书写格式正确的是( )。
A)<;数据库所有者.><;表名>
B)<;用户.><;表名>
C)<;方案.><;表名>
D)以上答案都不正确
23.[单选题]什么是用于保存数据库的所有变化信息的,从而保护数据库的安全
A)参数文件
B)数据文件
C)重做日志文件
D)控制文件
24.[单选题]As part of a manual upgrade process, after installing the software for Oracle Database
12c and preparing the new Oracle home, you shut down the existing single-instance database.
Which step should you perform next to start the upgrade of the database?
A)Start up the database instance by using the new location of the server parameter file and run the catuppst.sqi script to generate informational messages and log files during the upgrade.
B)Start up the database instance by using the new location of the server parameter file and run the
cact1.pl script from the new Oracle home to use parallel upgrade options that reduce down time.
C)Start up the database instance by using the STARTUP UPGRADE command and gather fixed object statistics to minimize the time needed for recompilation.
D)Start up the database instance by using the STARTUPUPGRADE command, which opens the existing database, and then performs additional upgrade operations.
25.[单选题]关于动态库和静态库,下列说法错误的是?
A)打包静态库用的是ar命令。
B)打包共享库用的是gcc -share
C)静态库和共享库都必须配置环境变量才能使用
D)a文件是静态库, 而.so文件是共享库
26.[单选题]存储过程保存在( )中。
A)系统表
B)数据库
C)内存
D)数据表
27.[单选题]()是一种软件,用于建立、使用和维护数据库。它对数据库进行统一的管理和控制,以保证数据库的安全性和完整性。
A)关系数据库。
B)数据库管理系统。
C)网络数据库。
D)文件系统。
28.[单选题]()不带WHERE 子句,它返回被连接的两个表所有数据行的笛卡尔积,返回到结果集合中的数据行数等于第一个表中符合查询条件的数据行数乘以第二个表中符合查询条件的数据行数。
A)交叉连接。
B)外连接。
C)内连接。
D)自然连接。
29.[单选题]将员工号为1007的员工薪水改为3500 , 职位改为Programmer,下列SQL语句正确的是:()
A)update emp set salary = 3500 and job = 'Programmer' where empno = 1007 ;
B)update emp set salary = 3500 ,set job = 'Programmer' where empno = 1007 ;
C)update emp salary = 3500 , job = 'Programmer' where empno = 1007 ;
D)update emp set salary = 3500 , job = 'Programmer' where empno = 1007 ;
30.[单选题]假设需要为表customer添加主键约束,主键列为customer_id,可以使用如下(  )方式。
A)Alter table CUSTOMER ADD PK_CUSTOMER PRIMARY KEY ("CUSTOMER_ID");
B)Alter table CUSTOMER ADD PRIMARY KEY ("CUSTOMER_ID");
C)Alter table CUSTOMER    ADD CONSTRAINT PK_CUSTOMER ("CUSTOMER_ID");
D)Alter table CUSTOMER ADD CONSTRAINT PK_CUSTOMER PRIMARY KEY ("CUSTOMER_ID");
31.[单选题]有关数据冗余说法错误的是()
A)数据库中,数据存在副本的现象,就是数据冗余。
B)通过分类存储,可以有效减少数据冗余,但是会增加数据查的复杂性。
C)"在数据库设计阶段,一定要尽最大可能避免数据冗余,最好做到无数据冗余。"
D)数据冗余通常是由于数据库设计引起的。
32.[单选题]在 PL/SQL中,如果SELECT 语句没有返回列,则会引发Oracle错误,并引发什么
A)自定义异常
B)软件异常
C)系统异常
D)突发异常
33.[单选题]Your customer has upgraded their on premise 11.2 database to 12.2. During this migration the database was migrated to a pluggable database and is now in production. How should the customer unplug their database to migrate to
Autonomous Database (ADB)?
A)Pluggable databases cannot be migrated to ADB using plug, unplug or clone
B)Create a database link from source database to the ADB environment and clone the PDB
C)Unplug to an xml file so database files and xml file can be uploaded to object storage
D)Unplug into a pdb archive which can be uploaded to object storage
34.[单选题]下列哪个命令可以用来确认恢复目录中记录的备份数据文件是否存在?( )
A)CROSS CHECK BACKUP OF DATABASE
B)CROSS CHECK COPY OF DATABASE
C)CROSSCHECK COPY
D)CROSSCHECK BACKUP OF ARCHIVELOG ALL
35.[单选题]下列组件不是Oracle实例的组成部分的是( )。
A)系统全局区
B)PMON进程
C)控制文件
D)调度程序
36.[单选题]如果一个数据库举例(instance)失败,但是没有停止运行,你必须使用哪个命令使实例恢复能被执行?( )
A)startup nomount
B)shutdown immediate; start force
C)startup mount
D)shutdown abort; startup
37.[单选题]Oracle11g中的g代表(    )。
A)网络
B)网格