freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

數(shù)據(jù)庫應(yīng)用技術(shù)復(fù)習(xí)試題-資料下載頁

2025-08-05 07:45本頁面
  

【正文】 時間點最舊的文件,從該數(shù)據(jù)文件的時間點開始重做事務(wù)。 2)發(fā)現(xiàn)所有的控制文件損壞,試給出數(shù)據(jù)庫恢復(fù)的過程。答:1)使用備份的數(shù)據(jù)文件替代損壞的數(shù)據(jù)文件;從數(shù)據(jù)文件中挑選出時間點最舊的文件,從該數(shù)據(jù)文件的時間點開始重做事務(wù)。2)關(guān)閉數(shù)據(jù)庫后,根據(jù)參數(shù)文件所列控制文件清單,在操作系統(tǒng)下,用拷貝命令將備份的控制文件依次替代損壞的文件,如果因為介質(zhì)故障備份控制文件不能拷貝回原處,可以拷貝至新地點,但必須在參數(shù)文件中修改其路徑,且文件名不能改變,并不能出現(xiàn)新的控制文件名。進行下面操作:  SQLDBAstartup mount (打開數(shù)據(jù)庫至mount狀態(tài))  SQLDBArecover database using backup controlfile (進行數(shù)據(jù)庫恢復(fù)工作)  數(shù)據(jù)庫恢復(fù)過程中,DBA 根據(jù)需要輸入日志文件名,包括online redo log 和archive redo log,直到恢復(fù)工作完成,ORACLE 將給出下列信息:  Media recover plete.2某數(shù)據(jù)庫運行在非歸檔模式,現(xiàn)要求能對該數(shù)據(jù)庫執(zhí)行熱備份,請寫出將數(shù)據(jù)庫調(diào)整到歸檔模式的過程。答:(1)關(guān)閉數(shù)據(jù)庫 SQLshutdown immediate。(2) 啟動數(shù)據(jù)庫到mount狀態(tài) SQLstartup mount。(3) 啟動歸檔模式 SQLalter database archivelog。 (4) 打開數(shù)據(jù)庫alter database open。3 某銀行的賬戶表account非常重要,,現(xiàn)在()發(fā)現(xiàn)這個account表已經(jīng)丟失了,寫出該表恢復(fù)的過程。 PL/SQL編程某表如下: Create table student(sno char(10) primary key,sname char(30),birthday date,sage smallint)完成表的創(chuàng)建后有以下插入語句:Insert into student values(‘0201’, ‘xiaoli’, ‘19970604’, 11)Insert into student(sno, sname) values(‘0202’, ‘xiaowei’)請書寫存儲過程完成如下功能:如果有該學(xué)生的birthday字段有值則更新該學(xué)生的年齡,如無則打印“xxx學(xué)生birthday值無值”。并寫一個匿名塊調(diào)用該存儲過程。//創(chuàng)建存儲過程create or replace procedure my(mysno in %type,mysname out %type,mybir out %type,mysage out %type)isbeginselect sname,birthday,sage into mysname,mybir,mysage from student where sno=mysno。if mybir is null then (mysname||39。學(xué)生birthday值無值。39。)。else update student set sage=months_between(sysdate,mybir)/12 where sno=mysno 。 end if。end。 //調(diào)用declare mysname %type。mybir %type。mysage %type。begin my(39。020239。,mysname,mybir,mysage)。 end。 已知學(xué)院成績管理系統(tǒng)中有如下關(guān)系表:學(xué)生表 students ( student_number ,student_name , major_name, current_credits )。 課程表course( course_name , description, max_students , current_students , num_credits )。 成績表SC (student_number ,course_name ,grade )。其中student_number 學(xué)號,student_name學(xué)生姓名, major_name 專業(yè)名, current_credits當(dāng)前所選修學(xué)分,course_name課程名稱,description 課程描述,max_students最大選修的學(xué)生人數(shù),current_students當(dāng)前選修的學(xué)生人數(shù),num_credits學(xué)分?jǐn)?shù),grade 成績?;谝陨铣煽児芾硐到y(tǒng)中的關(guān)系表,寫一個過程,傳入某學(xué)生的學(xué)號,打印出該生選修的所有的課程名。答: create or replace procedure cur_courses(stuID in %type ) Is courName 。 CURSOR courses _cursor IS Select cour_name from SC where =stuID。 Begin OPEN courses _cursor。 LOOP FETCH courses _cursor INTO courName 。 EXIT WHEN v_emp_cursor%NOTFOUND。 (courName )。 END LOOP。 CLOSE v_emp_cursor。 End。第一題的黃淮學(xué)院成績管理系統(tǒng)中相關(guān)表,請編寫觸發(fā)器完成以下功能:當(dāng)對SC表執(zhí)行插入操作的時候,應(yīng)相應(yīng)的對students和classes表的相應(yīng)字段更新。比如,當(dāng)向SC表插入一行數(shù)據(jù)時,則該生的當(dāng)前所選修學(xué)分(current_credits)字段應(yīng)增加,同時,對應(yīng)的課程的當(dāng)前學(xué)生數(shù)(current_student)字段也應(yīng)增加。create or replace trigger t_student After insert on sc for each ROWDECLARE v_t NUMBER。BEGIN SELECT COUNT(*) INTO v_t FROM student。 IF v_t = 0 THEN INSERT INTO student (student_number) VALUES (:)。 INSERT INTO course (current_students) VALUES (:NEW. current_students)。 END IF。 END t_student。 word完美格式
點擊復(fù)制文檔內(nèi)容
法律信息相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1