oracle测试
ORACLE 执行计划介绍与测试

ORACLE 执行计划介绍与测试(沈克勤)2005-3-31.目的:本文档的目的是通过介绍常用的HINT来了解ORACLE的优化器的工作原理及执行计划,以期望起到抛砖引玉的作用。
在实际开发中有意识地控制SQL的执行计划,以达到SQL 执行性能的最优以及执行计划稳定。
为了减少枯燥的文档描述,使用了较多的图示。
2.如何查看执行计划首先创建EXPLAIN_PLAN表不同版本的ORACLE,该表结构可能会不同。
请使用的ORACLE中$ORACLE_HOME/rdbms/admin/utlxplan.sql去创建该表。
方法1:使用SQL*PLUS 的SET AUTOTRACE :SQL>SET AUTOTRACE ON EXPLAIN 执行SQL,且仅显示执行计划SQL>SET AUTOTRACE ON STATISTICS 执行SQL,且仅显示执行统计信息SQL>SET AUTOTRACE ON 执行SQL,且显示执行计划与执行统计信息SQL>SET AUTOTRACE TRACEONLY 仅显示执行计划与统计信息,无执行结果SQL>SET AUTOTRACE OFF 关闭跟踪显示计划与统计方法2:使用PL/SQL Developer工具方法3:使用DBMS_XPLAN.DISPLAY()方法4:直接查看表:EXPLAIN_TABLESELECT lpad(' ',level-1)||operation||' '||options||' '||object_name "Plan"FROM plan_tableCONNECT BY prior id = parent_idAND prior statement_id = statement_idSTART WITH id = 0AND statement_id = '&1'ORDER BY id;3.如何控制与改变执行计划我并没有见过单独介绍ORACLE SQL优化器原理方面的资料。
Oracle数据库测试方案

Oracle数据库测试方案目录1.测试背景 (3)2.小机环境安装及配置 (3)2.1.硬件需求 (3)2.2.安装配置 (3)2.3.补丁 (3)3.安装Oracle及RAC (3)3.1.Oracle版本 (3)3.2.数据库参数 (3)4.划分存储 (4)5.迁移数据 (4)6.Oracle数据库压力测试 (4)6.1.查看执行最频繁的sql (4)6.1.1.查看当前数据库执行次数最多的sql (4)6.1.2.查看历史快照中执行次数最多的sql (5)6.2.Jmeter配置 (5)6.3.执行jmeter测试 (6)7.变更字符集后数据库测试 (6)7.1.数据库测试 (6)7.1.1.查看当前数据库的字符集 (6)7.1.2.数据测试 (6)7.2.应用测试 (7)7.2.1.综合统计系统 (7)7.2.2.内主页 (8)7.2.3.CMS (9)1.测试背景信息中心提供AIX环境,安装oracle 11g RAC,作为测试机进行测试,为数据库迁移提供评估信息;同时要将数据库字符集从ZHS16GBK变更为AL32UTF8,为字符集变更进行测试。
2.小机环境安装及配置2.1.硬件需求2.2.安装配置2.3.补丁3.安装Oracle及RAC3.1.Oracle版本3.2.数据库参数4.划分存储存储需求5.迁移数据6.Oracle数据库压力测试基于生产库的数据基础,在测试机上对数据库性能进行压力测试,针对生产库的查询需求,以生产库中执行频繁的SQL为基础进行测试。
Oracle数据库压力测试采用jmeter对数据进行压力测试,测试sql采用生产数据库执行最频繁的TOP156.1.查看执行最频繁的sql6.1.1.查看当前数据库执行次数最多的sql通过查询V$SQLAREA或V$SQL的EXECUTIONS来查看SQL的执行次数,但是这个值的有效性需要结合FIRST_LOAD_TIME来判断。
Oracle 应用测试套件 - Oracle E-Business Suite 功能测试加速器说明书

ORACLE APPLICATION TESTING SUITE - TESTING ACCELERATORS FOR ORACLE E-BUSINESS SUITEFEATURES• Automates complex Oracle E-Business Suite transactionsfor both functional testing andload testing• Supports automation of bothWeb and Oracle Formsapplication interfaces andprotocols• Provides custom test cases tovalidate application content• Enables parameterization oftest scripts for data-driventesting• Simulates loads of hundredsto tens of thousands ofconcurrent users whileminimizing hardwarerequirements• Gathers critical infrastructureperformance metrics toidentify bottlenecks underload• Provides an intuitive Web-based console to configureand run load tests and sharereal-time results withdistributed users• EBS Test Starter Kit withsample test scripts providedfor EBS R12 and 11iOracle Application Testing Suite’s Testing Accelerators for Oracle E-Business Suite provide a comprehensive solution for ensuring the quality and performance of Oracle E-Business Suite applications. The Functional Testing Accelerator for Oracle E-Business Suite extends Oracle Functional Testing to enable automated functional and regression testing of Oracle E-Business Suite applications. The Load Testing Accelerator for Oracle E-Business Suite extends Oracle Load Testing to enable load and performance testing of Oracle E-Business Suite applications. The Testing Accelerators for Oracle E-Business Suite are components of Oracle Application Testing Suite, the centerpiece of the Oracle Enterprise Manager solution for comprehensive testing of packaged, Web and service-oriented architecture–based applications. Ensuring Oracle E-Business Suite Application Quality Ensuring the quality of your Oracle E-Business Suite (EBS) applications is critical to your business. But testing EBS applications prior to deployment and keeping up with the pace application updates while maintaining application quality can be a challenge. Oracle Application Testing Suite (ATS) provides a comprehensive quality management solution for Oracle E-Business Suite. Oracle Functional Testing and the Functional Testing Accelerator for Oracle E-Business Suite provides an automated functional and regression testing solution to validate application functionality prior to deployment and reduce the need for manual testing. Oracle Load Testing and the Load Testing Accelerator for Oracle E-Business Suite provide a powerful load testing solution to test and tune application performance under real production workloads and identify bottlenecks. Oracle Test Manager provides an integrated solution for managing the test process including documenting test cases, test requirements and issues identified during testing in a central repository and managing test execution. Together, these products provide a comprehensive solution for ensuring EBS application quality. Functional Testing Accelerator for Oracle E-Business Suite The Functional Testing Accelerator for Oracle E-Business Suite extends Oracle Functional Testing to provide a powerful and easy-to-use solution to automate functional and regression testing of Oracle’s E-Business Suite applications. OracleFunctional Testing allows users to create test scripts that automate complex business transactions within their EBS applications, including both Web and Oracle Forms based application interfaces. Oracle Functional Testing’s OpenScript integrated scripting platform combines an intuitive graphical scripting interface to quickly create complex test scripts and a powerful Java IDE that provides users with the flexibility to extend scripts programmatically. Users can automate business transactions by simply creating a new script and recording as they step through an EBS transaction in a browser. OpenScript captures all actions performed within Web or Forms based applications interfaces which can then be played back to automatically reproduce the recorded transaction. Users can then add test cases to validate specific Web or Forms application content and parameterize their script inputs to perform data-driven testing. Additional transactions can then be recorded to create a comprehensive automated regression test suite.Figure1. Oracle Functional Testing automates Oracle E-Business Suite functional and regression testingLoad Testing Accelerator for Oracle E-Business SuiteThe Load Testing Accelerator for Oracle E-Business Suite extends Oracle Load Testing to enable automated load and performance testing of Oracle E-Business Suite applications. With Oracle Load Testing you can simulate thousands of virtual users accessing the Oracle E-Business Suite application simultaneously to measure the effect of user load on application performance.Users create their EBS load test scripts in Oracle Functional Testing’s OpenScript integrated scripting platform. OpenScript automates both Web and Forms application protocols to generate highly scalable load test scripts for Oracle EBS. The scripts are automatically correlated to handle dynamic session parameters. These scripts can then be configured to run in Oracle Load Testing against any number of virtual users.Oracle Load Testing provides a Web-based console that allows you to configure and run one or multiple scripts across thousands of virtual users to assess performance. Users can specify a number of run time parameters such as the amount of think time each user spends per page and the browser or connection speed to emulate. During the load test, Oracle Load Testing measures end-user response times as well as the performance of the underlying application infrastructure to help identify and resolve application performance bottlenecks.Comprehensive Testing for Oracle E-Business SuiteOracle Application Testing Suite provides a comprehensive testing solution for Oracle E-Business Suite. With Oracle Functional Testing and the Functional Testing Accelerator for Oracle E-Business Suite, users can effectively introduce automation into their functional test process to ensure the quality of their Oracle E-Business Suite applications and reduce testing time. With Oracle Load Testing and the Load Testing Accelerator for Oracle E-Business Suite, users can leverage a powerful solution for ensuring Oracle E-Business Suite application performance. The Oracle E-Business Suite testing accelerator includes a Test Starter Kit with pre-build test automation scripts for Oracle E-Business Suite applications. The Test Starter Kit covers a broad range of applications and user flows for both functional and performance testing based on the VISION demo database.And with Oracle Test Manager users can effectively document and manage their test process from a central location and report on application readiness.Oracle Application Testing Suite provides a powerful integrated scripting platform for automated functional & regression testing and load testing. Oracle Functional Testing’s OpenScript integrated scripting interface provides a unique combination of ease-of-use and flexibility through its intuitive graphical scripting interface and powerful Java IDE for extending scripts at the code-level. Oracle Functional Testing also provides custom capabilities for testing SOA and Oracle packaged applications through its integrated testing accelerators. Oracle Load Testing provides a fully Web-based user interface for configuring and running load tests and an integrated ServerStats module for monitoring application infrastructure during a load test to identify bottlenecks. Oracle Load Testing also enables multi-user collaboration by allowing testers to view and share real-time results during load test execution through their browser. With Oracle Application Testing Suite users can leverage a comprehensive, integrated solution for automated functional and regression testing, load testing and test process management.Contact UsFor more information about Oracle Application Testing Suite Oracle E-Business Suite Accelerators and Oracle Enterprise Manager please visit or call+1.800.ORACLE1 to speak to an Oracle representative.Copyright © 2011, Oracle and/or its affiliates. All rights reserved.This document is provided for information purposes only and the contents hereof are subject to change without notice. This document is not warranted to be error-free, nor subject to any other warranties or conditions, whether expressed orally or implied in law, including implied warranties and conditions of merchantability or fitness for a particular purpose. We specifically disclaim any liability with respect to this document and no contractual obligations are formed either directly or indirectly by this document. This document may not be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without our prior written permission.Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro Devices. Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. UNIX is a registered trademark licensed through X/Open Company, Ltd. 0110。
2020年智慧树知道网课《ORACLE快速入门》课后章节测试满分答案

第一章测试1【多选题】(10分)ORACLE的DBA日常工作有哪些任务A.ORACLE数据库应用架构设计B.ORACLE升级C.性能调优D.ORACLE安装2【多选题】(10分)数据库市场上主要分为哪几种类型的数据库A.关系型数据库B.NOSQL数据库C.ORACLE数据库D.NEWSQL数据库3【判断题】(10分)啤酒和尿片放在一起是数据挖掘的应用。
A.对B.错4【判断题】(10分)分布式数据库经常和并行数据库结合一起使用。
A.错B.对5【判断题】(10分)云数据库是云技术和数据库技术的结合。
A.对B.错第二章测试1【多选题】(10分)哪些操作系统可以安装ORACLE软件A.windows操作系统B.UNIX操作系统C.LINUX操作系统D.mac操作系统2【单选题】(10分)ORACLE11g中的g是什么意思A.互联网B.网格C.网络D.网址3【多选题】(10分)以下哪些是ORACLE的服务A.ORACLEDBCONSOLEORCLB.ORACLEORADB11G_HOME1TNSLISTENERC.ORACLEJOBSHEDULEORCLD.ORACLESERVICEORCL4【判断题】(10分)ORACLE的安装软件有32位安装包和64位安装包的区别。
A.对B.错5【判断题】(10分)我们可以通过数据库配置助手DBCA创建、删除、修改数据库。
A.错B.对第三章测试1【单选题】(10分)以下哪个选项是的A.sqlplus是客户端管理工具B.sqlplus就是sqlC.OEM是客户端管理工具D.sqlplus中除了可以输入sql语句外,还可以输入sqlplus的格式化语言2【单选题】(10分)在sqlplus中,用以下哪个命令可以查询表的结构A.describeB.showC.viewD.select3【单选题】(10分)以下哪个命令可以在sqlplus中执行某个文件中的sql命令A.editB.saveC.startD.sool4【判断题】(10分)使用edit命令修改缓冲区中最近一条命令。
Oracle测试题+答案

1) PL/SQL块中可以使用下列()命令。
(选择两项)a) TRUNCATEb) DELETEc) SA VEPOINTd) ALTER TABLE2) 授予sa用户在SCOTT.EMP表中SAL列的更新权限的语句是(B)〔选择一项〕a) GRANT CHANGE ON SCOTT.EMP TO SAb) GRANT UPDA TE ON SCOTT.EMP(SAL) TO SAc) GRANT UPDA TE (SAL) ON SCOTT.EMP TO SAd) GRANT MODIFY ON SCOTT.EMP(SAL) TO SA3) EMP表有14条记录,则语句SELECT ‘Aptech’FROM EMP 的执行结果是(C)〔选择一项〕a) Aptechb) 无输出c) 14行Aptechd) 编译出错4) PL/SQL块中哪几部分是可选的()〔选择二项〕a) Declareb) Beginc) Exceptiond) Constant5) 在创建序列的过程中,下列()选项指定序列在达到最大值或最小值后,将继续从头开始生成值。
(选择一项)a) Cycleb) Nocyclec) Cached) Nocache6) 同义词有以下()用途。
(选择三项)a) 简化SQL 语句b) 隐藏对象的名称和所有者c) 提供对对象的公共访问d) 显示对象的名称和所有者7) Oracle中用来释放锁的语句有()〔选择二项〕a) commitb) Drop lockc) rollbackd) unlock8) 关于类型定义Number(9,2)说法正确的有()〔选择一项〕a) 整数部分9位,小数部分2位,共11位b) 整数部分7位,小数部分2位,共9位c) 整数部分6位,小数点一位,小数部分2位,共9位d) 以上说法均不正确9) 下列哪种Lob类型用来存储数据库以外的操作系统文件()〔选择一项〕a) CLOBb) BLOBc) CFILEd) BFILE10) Oracle中的三种系统文件分别是()〔选择三项〕a) 数据文件b) 归档文件c) 日志文件d) 控制文件11) 下列哪项不是Oracle中常用的分区方法?()〔选择一项〕a) 范围分区b) 散列分区c) 列表分区d) 条件分区12) 查看Test中名称为P1的分区中的记录的查询语句为()〔选择一项〕a) Select * from Test Where PartitionName=’p1’b) Select * from Test(p1)c) Select * from Test Partition(p1);d) 以上均正确13) 创建序列时,若未指定Cycle选项,则当当前值大于MaxValue时将()〔选择一项〕a) 从MinValue重新开始循环b) 重复使用MaxValue 值c) 执行出错d) 使用随机值14) 下列哪项是创建索引组织表所必需的()〔选一项〕a) Primary Keyb) Order Byc) Group Byd) 以上均不是15) 若表的某字段值存在大量的重复,则基于该字段适合创建哪种索引?()〔选一项〕a) 标准索引b) 唯一索引c) 位图索引d) 分区索引16) 在PL/SQL块中定义一个名为PI值为3.14的Real型常量的语法是()〔选一项〕a) A.Pi Const Real=3.14;b) B.Pi Real Const =3.14;c) C.Constant Pi Real:=3.14d) D.Pi Constant Real:=3.1417) 22.当Select语句没有返回行时,将引发下列哪个异常?()[选择一项]a) A.No_rows_foundb) B.No_data_foundc) C.No_Data_rows_foundd) D.Invalid_Number18) Oracle中提供的两种游标是()〔选择二项〕a) A.隐式游标b) B.静态游标c) C.REF游标d) D.显式游标19) 若Emp表中有14条记录,则用户执行了以下操作,结果是:()〔选择一项〕Cursor mycur is Select * From emp;。
OracleRACfailover测试(连接时故障转移)

OracleRACfailover测试(连接时故障转移)Oracle RAC 集群最突出的表现就是高可用性,这些内容主要包括load balance以及failover,通过这些技术使得单点故障不影响客户端端应用程序对数据库的正常访问,以及通过创建service实现节点间负载均衡。
本文主要描述Oracle 10g rac环境下的Oracle failover测试。
下面是一些关于这方面的基础参考或相关链接:有关负监听配置,载均衡(load balance)以及Oracle service请参考ORACLE RAC 监听配置 (listener.ora tnsnames.ora)ORACLE RAC 下非缺省端口监听配置(listener.ora tnsnames.ora)Oracle RAC 客户端连接负载均衡(Load Balance)Oracle RAC 服务器端连接负载均衡(Load Balance)Oracle RAC 负载均衡测试(结合服务器端与客户端)Oracle RAC failover 测试(TAF方式)Oracle RAC failover 测试(Server TAF方式)1、Oracle failover的几种方式Oracle failover也叫故障转移,从Oracle 10g开始,分为3种方式:a. Client-Side Connect time Failover客户端连接failover模式,此方式较为简单,只要安装了rac集群,缺省情况下即被启用。
b. TAF透明故障转移,此方式同样基于客户端完成,需要配置客户端tnsnames.ora,连接故障发生时,无须重新连接c. Service-Side TAF服务器端透明故障转移,通过配置service来实现,客户端无须任何配置。
本文主要演示第一种情形,即客户端在发起连接请求时如何实现故障转移注意事项:不能在listener.ora 文件中设置GLOBAL_NAME该参数会禁用Connect-time Failover 和 Transparent Application Failover2、Client-Side Connect time Failover下面关于Client-Side Connect time Failover来自Oracle 的官方描述 ID 453293.1The connect-time failover enables clients to connect to another listener if the initial connection to the first listener fails. The number of listener protocol addresses determines how many listeners are tried. Withoutconnect-time failover, Oracle Net attempts a connection with only one listener. The default is on.Tnsnames Parameter: FAILOVER(failover=on) is default for ADDRESS_LISTs, DESCRIPTION_LISTs, and a set ofDESCRIPTIONs., therefore, you do not have to specify it explicitly.基于客户端的failover比较好理解。
Oracle测试题(卷)+答案解析

Oracle测试题(卷)+答案解析1) PL/SQL块中可以使用下列()命令。
(选择两项)a) TRUNCATEb) DELETEc) SA VEPOINTd) ALTER TABLE2) 授予sa用户在SCOTT.EMP表中SAL列的更新权限的语句是(B)〔选择一项〕a) GRANT CHANGE ON SCOTT.EMP TO SAb) GRANT UPDA TE ON SCOTT.EMP(SAL) TO SAc) GRANT UPDA TE (SAL) ON SCOTT.EMP TO SAd) GRANT MODIFY ON SCOTT.EMP(SAL) TO SA3) EMP表有14条记录,则语句SELECT ‘Aptech’FROM EMP 的执行结果是(C)〔选择一项〕a) Aptechb) 无输出c) 14行Aptechd) 编译出错4) PL/SQL块中哪几部分是可选的()〔选择二项〕a) Declareb) Beginc) Exceptiond) Constant5) 在创建序列的过程中,下列()选项指定序列在达到最大值或最小值后,将继续从头开始生成值。
(选择一项)a) Cycleb) Nocyclec) Cached) Nocache6) 同义词有以下()用途。
(选择三项)a) 简化SQL 语句b) 隐藏对象的名称和所有者c) 提供对对象的公共访问d) 显示对象的名称和所有者7) Oracle中用来释放锁的语句有()〔选择二项〕a) commitb) Drop lockc) rollbackd) unlock8) 关于类型定义Number(9,2)说确的有()〔选择一项〕a) 整数部分9位,小数部分2位,共11位b) 整数部分7位,小数部分2位,共9位c) 整数部分6位,小数点一位,小数部分2位,共9位d) 以上说法均不正确9) 下列哪种Lob类型用来存储数据库以外的操作系统文件()〔选择一项〕a) CLOBb) BLOBc) CFILEd) BFILE10) Oracle中的三种系统文件分别是()〔选择三项〕a) 数据文件b) 归档文件c) 日志文件d) 控制文件11) 下列哪项不是Oracle中常用的分区方法?()〔选择一项〕a) 围分区b) 散列分区c) 列表分区d) 条件分区12) 查看Test中名称为P1的分区中的记录的查询语句为()〔选择一项〕a) Select * from Test Where PartitionName=’p1’b) Select * from Test(p1)c) Select * from Test Partition(p1);d) 以上均正确13) 创建序列时,若未指定Cycle选项,则当当前值大于MaxValue时将()〔选择一项〕a) 从MinValue重新开始循环b) 重复使用MaxValue 值c) 执行出错d) 使用随机值14) 下列哪项是创建索引组织表所必需的()〔选一项〕a) Primary Keyb) Order Byc) Group Byd) 以上均不是15) 若表的某字段值存在大量的重复,则基于该字段适合创建哪种索引?()〔选一项〕a) 标准索引b) 唯一索引c) 位图索引d) 分区索引16) 在PL/SQL块中定义一个名为PI值为3.14的Real型常量的语法是()〔选一项〕a) A.Pi Const Real=3.14;b) B.Pi Real Const =3.14;c) C.Constant Pi Real:=3.14d) D.Pi Constant Real:=3.1417) 22.当Select语句没有返回行时,将引发下列哪个异常?()[选择一项]a) A.No_rows_foundb) B.No_data_foundc) C.No_Data_rows_foundd) D.Invalid_Number18) Oracle中提供的两种游标是()〔选择二项〕a) A.隐式游标b) B.静态游标c) C.REF游标d) D.显式游标19) 若Emp表中有14条记录,则用户执行了以下操作,结果是:()〔选择一项〕Cursor mycur is Select * From emp;。
oracle面试测试题

典型oracle面试题一:sql题1、假设学校环境如下:一个系有若干个专业,每个专业一年只招一个班,每个班有若干个学生。
现要建立关于系、学生、班级的数据库,关系模式如下:班级表class(班号classid,专业名subject,系名deptname,入学年份entertime,人数num)学生表student(学号studentid,姓名name,年龄age,班号classid)系department(系号departmentid,系名deptname)要求用sql语句完成如下功能:(1)建表,并实现如下要求A:每个表根据实际定义好主外键关系B:系表中编号字段利用数据库自动化增长值实现C:每个班级的人数不超过30人D:学生年龄介于15到30之间E:学生姓名不能为空,系名不能重复(2)输入部分测试数据department表:1数学2计算机3化学4中文5经济学class表:101软件计算机1995 20102微电子计算机1996 30111 无机化学化学1995 29112高分子化学化学1996 25121 统计数学1995 20131现代语言中文1996 20141国际贸易经济学1997 30142国际金融经济学1998 14 student表:8101张三18 1018102钱四16 1218103王玲17 1318104李飞19 1028105王五20 141(3)完成下列查询:A:列出所有人数大于等于28的系的编号和名称B:列出所有开设超过两个专业的系的名字C:显示每个学生的学号、姓名、专业、系名信息2、oracle函数的使用针对scott.emp表,实现如下查询操作:(1)把员工姓名和工作连接在一起,中间用“--”分隔显示。
(2)分别显示工姓名的前三个字符和第四个字符后的内容(3)显示字母T在员工姓名中第一次和第二次出现的位置(4)显示12年前参加工作的员工信息(5)查询在当月倒数第三天参加工作的员工信息(6)显示每个员工的工作天数(7)按照每月30天,计算每个员工的日薪金(8)按照年和月的格式显示员工参加工作的时间(如SMITH 1980 12)(9)查询在1987年2月到5月参加工作的员工信息(包括2月和5月)(10)显示每个员工的津贴信息,没有津贴就显示0(11)分别显示员工的总人数和津贴不为空的员工人数(12)显示部门最低工资大于900的部门和最低工资(13)显示每个部门工资在1400以上的所有员工的工资总额(14)显示部门名称以及该部门的员工总数,没有员工的以0显示(15)显示每个部门中最高工资的员工信息3、员工培训系统的案例Employee员工表:EID Name Department Job Email password10001 李明SBB EG10003 李四LUCK ITM11045 胡斐SBB EG10044 张三MTD ETN10023 王刚MMM ETN Training 培训记录表:CourseId EID Course Grade orders1 10001 T-SQL 603 11045 java 712 10003 oracle 591 10003 T-SQL 903 10044 java 782 10001 oracle 692 10023 oracle 703 20001 Java 693 10078 Java 58完成如下sql语句:(1)建立两个表的表结构,自行分析,根据需要设置主键(2)用sql语句进行册书数据的添加(3)列出所有员工参加培训的情况,要求显示:EID,Name,department,course,grade用一条sql语句完成(4)列出未参加培训的员工信息,显示格式如上(5)列出所有各课成绩最高的员工信息,显示格式如上(6)把所有表2有但表1没有的员工编号插入表1中,一条语句完成(7)统计各部门的人数(8)统计各部门中姓李的人数4、pl/sql练习(1)输入一个员工号,输出该员工的姓名、薪金和工作天数(2)接手一个员工号,如果该员工职位是”MANAGER”,并且在DALLAS工作,那么加薪15%,如果职位是CLERK,并在NEW YORK工作,降薪5%,其他情况不做处理。