首页 > 数据库 > Oracle > 正文

ORACLE问题,每天10问(六)

2020-03-09 22:55:17
字体:
来源:转载
供稿:网友


        51. 如何将小表放入keep池中?  alter table xxx storage(buffer_pool keep);  52. 如何检查是否安装了某个patch?  check that orainventory  53. 如何使select语句使查询结果自动生成序号?  select rownum,col from table;  54. 如何知道数据裤中某个表所在的tablespace?  select tablespace_name from user_tables where table_name='test';  select * from user_tables中有个字段tablespace_name,(oracle);  select * from dba_segments where …;  55. 怎幺可以快速做一个和原表一样的备份表?  create table new_table as (select * from old_table);       

        55. 怎幺在sqlplus下修改procedure?  select line,trim(text) t from user_source where name =’a’ order by line;  56. 怎样解除procedure被意外锁定?  alter system kill session ,把那个session给杀掉,不过你要先查出她的session id  or  把该过程重新改个名字就可以了。  57. sql reference是个什幺东西?  是一本sql的使用手册,包括语法、函数等等,oracle官方网站的文档中心有下载.  58. 如何查看数据库的状态?  unix下   ps -ef | grep ora   windows下看服务是否起来,是否可以连上数据库  59. 请问如何修改一张表的主键?  alter table aaa   drop constraint aaa_key ;  alter table aaa   add constraint aaa_key primary key(a1,b1) ;  60. 改变数据文件的大小?  用 alter database .... datafile .... ;  手工改变数据文件的大小,对于原来的 数据文件有没有损害。
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表