你好,游客 登录 注册 搜索
背景:
阅读新闻

Oracle常见DBA操作

[日期:2012-08-09] 来源:Linux社区  作者:javahuangfang [字体:大 中 小]

Oracle常见DBA操作

修改语言环境

将中文环境修改为英文环境

alter session set als_language = ‘AMERICAN’;

将英文环境修改为中文环境

alter session set nls_language = ‘SIMPLIFIED CHINESE’;

查询该用户拥有哪些表

select table_name from user_tables;

查询oracle下数据字典表名称及用途

select * from dictionary;

查询oracle下有多少张视图

select index_name from user_views;

查询该用户拥有哪些数据库对象,包括约束等

select object_name from user_objects;

dictionary的操作

desc user_tables;

select table_name from user_tables;

select index_name from user_indexes;

select view_name from user_views;

select * from dictionary;

备份和恢复

exp

imp

创建新用户

create user  haungfang identified by  huangfang  default tablespace users quota 10M on users

grant connect, resource, create view, create trigger to huangfang

drop user liuchao cascade;

linux
相关资讯       Oracle基础 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款