oracle期末考试试题.pdf
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_05.gif)
《oracle期末考试试题.pdf》由会员分享,可在线阅读,更多相关《oracle期末考试试题.pdf(15页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、1.如何启动实例、如何装载数据库,如何打开数据库。Startup nomount alter database mount alter database openStartup mountStartup2.如何禁止用户的操作系统认证 禁止之后,怎么登录?修改 SQLNET.ora nts3.如何控制用户不可以远程登陆。Alter system set remote_login_passwordfile=exclusive noneComment=20 0 9-12-14?Scope=spfile;4.sys/sias orcl as sysdba 中 orcl 的解析5.修改服务器端orcl的
2、监听端口。6.创建密码文件。$orapwd file=,e:orapwd.ora,Passwd=nzg entries=30;7.怎么样从spfile生成pfileCreate pfile=d:pfileorcl.ora from spfile;Create spfile二 e:spfileorcl.oraJ form pfile=,d:pfileorcl.ora8.通过参数文件查看控制文件的位置Sh o w p a r a m e t e r co n t r o l _ fi l e;s e l e ct n a m e fr o m v$co n t r o l fi l e;(在例程连
3、接数据库后Mo un t 可 执 行)。可通过以下几个动态数据字典视图中获得有关控制文件的信息V$co n t r o l fi l e v$d a t a ba s e V$co n t r o l fi l e _ r e co r d _ s e ct i o nSe l e ct n a m e fr o m v$d a t a ba s e;显示数据库名称。9.为控制文件产生一个跟踪文件A l t e r d a t a ba s e ba ck up co n t r o l fi l e t o t r a ce;该文件在D:o r a cl e p r o d uct 1 0.
4、2.Oa d m i n o r cl ud um p可通过 s h o w p a r a m e t e r us e r _ d un i p _ d e s t;查看 目录。1 0.创建表空间n e w,默认的对象存储参数为i n i t i a l 为 5 0 0 k,n e x t 为1 0 0 k,m i n e x t e n t s 为 1,m a x e x t e n t s 为 5 0,p ct i n cr e a s e 为 0C r e a t e t a bl e s p a ce n e wD a t a fi l e d:n e w.d bf s i z e
5、 1 0 mD e fa ul t s t o r a g e(i n i t i a l 5 0 0 kNe x t 1 0 0 kMi n e x t e n t s 1Ma x e x t e n t s 5 0Pct i n cr e a s e 0);11.创建表空间newtbs,将数据库的默认表空间改为newtbsCreate tablespace newtbsDatafile d:newths.dbf size 10 m;Alter database default tablespace newtbs;12.创建临时表空间temptbs,将数据库的默认临时表空间改为temptbs
6、Create temporary tablespace temptbstempfile e:temp.dbf size 10 m;Alter database default temporary tablespace temptbs;13.创建表空间tt,并且使它在创建后联机,之后再修改为脱机Create tablespace ttDatafile d:tt.dbf size 10 m online;Alter tablespace tt offline;14.创建本地管理的表空间aa,建表test并将表放入表空间aa中,然后删除该表空间以及对应的数据文件Create tablespace a
7、aDatafile d:aa.dbf size 10 mExtent management local autoallocate;Create table test(aa int,bb int)tablespace aa;Drop tablespace aa including contents(cascade constraints 约束);15.创建表空间bb,对应的数据文件为2 个Create tablespace bbDatafile d:bbl.dbf size 10 m,e:bb2.dbf size 5m;16.创建表空间cc,然后将其数据文件移动到另外一个文件夹中1.Create
8、 tablespace ccDatafile d:cc.dbf size 10 m;2.alter tablespace cc offline;3.$copy d:cc.dbf e:cc.dbf4.alter tablespace ccRename datafile M:cc.dbf?to e:ccdbf;5.alter tablespace cc online;#数据文件脱机1.Select log_modeFrom v$database;数据文件只能在noarchivelog模式下脱机2.Alter databaseDatafile e:cc.dbf offline drop;3.Reco
9、ver datafile%:cc.dbf;介质恢复之后才能联机4.alter database datafile e:cc.dbf online;17.创建大文件表空间,大小为10mCreate bigfile tablespace ddDatafile d:dd.dbf size 10 m;18.创建本地管理的表空间ee,统一分配大小为10mCreate tablespace eeDatafile d:ee.dbf size 10 0 mExtent management local uniform size 10 m;(有、无都对)19.创建表空间hh,采用自动段空间管理Create ta
10、blespace hhD a t a fi l e d:h h.d bf s i z e 1 0 m r e us eSe g m e n t s p a ce m a n a g e m e n t a ut o ;2 0 .查看日志操作模式,改变数据库的归档模式为a r ch i ve l o gSe l e ct l o g _ m o d eF r o m v$d a t a ba s e;s h ut d o wn i m m e d i a t es t a r t up m o un ta l t e r d a t a ba s e a r ch i ve l o g;a l
11、t e r d a t a ba s e o p e n;2 1 .查看日志文件以及日志文件组的信息Se l e ct g r o up#,m e m be rF r o m v$l o g fi l e;查看文件位置Se l e ct g r o up#,s t a t usF r o m v$l o g;查看状态2 2 .添加日志文件组,然后删除新添加的日志文件组A l t e r d a t a ba s eA d d l o g fi l e (d:l o g 4.l o g )s i z e 1 0 m;A l t e r d a t a ba s eD r o p l o g fi
12、 l e (d:l o g 4.l o g );#添加F l 志组成员:A l t e r d a t a ba s eA d d l o g fi l e m e m be r e:n e wl o g.l o g t o g r o up 1;#删除日志组成员A l t e r s y s t e m s wi t ch l o g fi l e;A l t e r d a t a ba s eD r o p l o g fi l e m e m be r e:n e wl o g.l o g ;23.手工切换日志A l t e r s y s t e m s wi t ch l o g
13、fi l e;24.任意创建一个表,采用区间分区C r e a t e t a bl e RR(r a n g e _ co l d a t a,A a i n t)Partition by range(range_col)(partition parti values less than(to_date(0 1/0 1/20 0 9,dd/mm/yyyy,),Partition part2 values less than(to_date(0 1/0 1/20 0 9,dd/mm/yyyy,),Partition part3 values less than(maxvalue);25.任意创
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- oracle 期末考试 试题
![提示](https://www.taowenge.com/images/bang_tan.gif)
限制150内