靠oracle的基础概念和应用,对应于OCA课程

解决方案 »

  1.   

    16.  
    create or replace procedure sp_result0517 is
       bhid number:=0.2;
       cursor custcur is select emp_no,salary from employee where salary <1000 ;
       tmpb aaaa.salary%type;
       tmpe aaaa.emp_no%type;
      begin
      open custcur;
          fetch custcur into tmpb,tmpe;  
      loop
          exit when not custcur%FOUND;
          update employee set salary =( salary + salary*bhid) where emp_no=  tmpe;
          fetch custcur into tmpb,tmpe;
        end loop;   
        close custcur;
      commit;
    end sp_result0517;
      

  2.   

    15. ROUND(N,M)  將N舍入到小數點后M位(m为零即为整数)
      

  3.   

    14.索引概述:
    B*Tree索引: (索引组织表)
    B*Tree聚族索引: (反向码索引)
    将序索引
    位图索引:一个索引条目使用一个位图同时指向许多行
    基于函数的索引
    应用程序域索引
    interMedia文本索引

      

  4.   

    SGA系统全局区,由shared pool,DataBase BUFFER CACHE,REDO LOG BUFFER,JAVA POOL,LARGE POOL组成;其中的SHARED POOL又包括了library cache,data dictionary;
    在 init.ora文件中通过SGA_MAX_SIZE来设置其大小
      

  5.   

    12:CONNECT,RESOURCE,DBA是分别提供给用户,开发者,数据库DBA的标准角色;