本文目录一览

1,oracle怎么查找用户中得表

查看当前用户表信息:select * from user_tables;查看当前用户所能看到的表信息(不一定是当前用户的,包括当前用户可以查看的别的用户的表信息):select * from all_tables;拥有dba权限,查看任意用户下的表信息:需要拥有dba权限select * from dba_tables;

oracle怎么查找用户中得表

2,oracle数据库的用户在什么表中

select username,default_tablespace from dba_users;在dba_users表中
你是要查看数据库中的表信息的,还是要查看某个用户下某张表的内容?数据库中的表信息,可以在静态性能视图中查看:dba_tables/all_tables/user_tables 其中dba_需要有dba权限,all_除了自己当前用户的表信息,还可以查到别的用户的但是有权限查看的表信息,user_只包含当前用户的信息如果你是需要查看某用户下某张表内容,如果是当前用户,直接select 要看的字段 from 表名;如果是别的用户下的表,你首先要让相应用户赋权(grant select on table_1 to user_1;),然后你才可以查看 select * from user_2.table_1 ;

oracle数据库的用户在什么表中

3,请问在Oracle数据库中建立的数据库用户都存放在哪儿用户授权后

用户表:dba_usersOracle查询用户权限-- 确定角色的权限select * from role_tab_privs; 包含了授予角色的对象权限select * from role_role_privs; 包含了授予另一角色的角色select * from role_sys_privs; 包含了授予角色的系统权限-- 确定用户帐户所授予的权限select * from DBA_tab_privs ; 直接授予用户帐户的对象权限select* from DBA_role_privs ; 授予用户帐户的角色select* from DBA_sys_privs ; 授予用户帐户的系统权限用户建立的表: user_tables 表的定义信息在:user_tab_cols
学习了
你好!用户会被放在dba_users,好想授权信息也是这里边。导出单张表也会到导出对这张表有权限的除系统级用户之外的用户(仅限于此表的用户)。在导入的时候,需在先建一个相应的用户,导入表的时候会自动对这个(些)用户进行授权。大概是这样子的,我也是刚学。如果对你有帮助,望采纳。

请问在Oracle数据库中建立的数据库用户都存放在哪儿用户授权后

4,ORACLE怎么创建表及用户哇在哪里弄哇

如果你的oracle安装完毕后,进入Enterprise Manager Console(用户名密码默认是system),在WWW(我在装Oracle建立的服务器名称)安全性-用户右健可以创建个用户,密码在D:\oracle\ora92\network\admin\下有个tnsnames.ora文件,比如我的:WWW就是PL_SQL的Database,用户名密码就是你创建的。进入PL_SQL后有个左上有个白纸的图标,选择SQL window 就可以写SQL语句了不用右健,双击数据库下,然后双击你建立的数据库,他会让你输入用户名密码,输入后进取就可以看到安全性了补充:你下一个PL_SQL,我说错了,用PL_SQL对Oracle数据库操作可以直接用sql语句还有,用户名要把DBA权限加上进入PL_SQL后,左上方有个白纸的图标,选择SQL window 就可以写SQL语句了
create table scott.product( proid char(10), --产品编号 categoryid char(4), --产品类别编号 proname varchar2(20), --产品名 description varchar2(500), --产品详细说明 --创建主键constraint pk_product primary key(proid), ); alter table scott.product add constraint fk_product_category foreign key (categoryid) references category(categoryid)

5,oracle怎么查看用户属于哪个表空间

1、数据字典中用户表:dba_users;通过数据字典查看有多少个用户:select username from dba_users。2、数据字典中表空间表: dba_tablespaces;查看有几个表空间:select tablespace_name from dba_tablespaces。3、oracle 查看用户所在的表空间:select username,default_tablespace from dba_users order by username;如图所示;4、完成效果图。
select username,default_tablespace from dba_users order by username需要有dba的权限1、查看用户使用的缺省表空间名称你一定知道你登陆的用户名是吧,以sysdba登陆。sqlplus / as sysdbaselect username,default_tablespace from dba_users;2、查看表空间总大小,及其已使用大小select a.tablespace_name,a.bytes/1024/1024 "Sum MB",(a.bytes-b.bytes)/1024/1024 "used MB",b.bytes/1024/1024 "free MB",round(((a.bytes-b.bytes)/a.bytes)*100,2) "percent_used"from(select tablespace_name,sum(bytes) bytes from dba_data_files group by tablespace_name) a,(select tablespace_name,sum(bytes) bytes,max(bytes) largest from dba_free_space group by tablespace_name) bwhere a.tablespace_name=b.tablespace_nameorder by ((a.bytes-b.bytes)/a.bytes) desc;
需要有dba的权限1、查看用户使用的缺省表空间名称 你一定知道你登陆的用户名是吧, 以sysdba登陆。?捌湟咽褂么笮 select a.tablespace_name,a.bytes/1024/1024 "sum mb",(a.bytes-b.bytes)/1024/1024 "used mb",b.bytes/1024/1024 "free mb", round(((a.bytes-b.bytes)/a.bytes)*100,2) "percent_used" from (select tablespace_name,sum(bytes) bytes from dba_data_files group by tablespace_name) a, (select tablespace_name,sum(bytes) bytes,max(bytes) largest from dba_free_space group by tablespace_name) b where a.tablespace_name=b.tablespace_name order by ((a.bytes-b.bytes)/a.bytes) desc;

文章TAG:oracle  oracle数据库  数据  数据库  oracle数据库用户表在哪里  
下一篇