create user mr identified by mrsoft default tablespace users temporary tablespace temp; create user east identified by mrsoft default tablespace users temporary tablespace temp quota 10m on tbsp_1; create user df identified by mrsoft default tablespa
QUESTION 13 View the Exhibit.Examine the following command that is executed for the TRANSPORT table in the SH schema:SQL> SELECT DBMS_STATS.CREATE_EXTENDED_STATS('sh', 'customers_obe', '(country_id,cust_state_province)') FROM dual;Which statement des
oracle常用经典SQL查询 常用SQL查询: .查看表空间的名称及大小 )),) ts_size from dba_tablespaces t, dba_data_files d where t.tablespace_name = d.tablespace_name group by t.tablespace_name; .查看表空间物理文件的名称及大小 select tablespace_name, file_id, file_name, ),) total_space from dba_
Oracle恢复误删的数据或表,解除锁定SQL或table 转载于: http://renjie120.iteye.com/ 注释:本文转自网络,转载请注明注意:数据库版本是10g,不过大部分9i的也适用,闪回9i就没有.1.曾经不小心把开发库的数据库表全部删除,当时吓的要死.结果找到下面的语句恢复到了1个小时之前的数据!很简单.注意使用管理员登录系统:select * from 表名 as of timestamp sysdate-1/12 //查询两个小时前的某表数据!既然两小时以前
第一章:日志管理 1.forcing log switches sql> alter system switch logfile; 2.forcing checkpoints sql> alter system checkpoint; 3.adding online redo log groups sql> alter database add logfile [group 4]sql> ('/disk3/log4a.rdo','/disk4/log4b.rdo') size 1m
APPLIES TO: Oracle Database - Enterprise Edition - Version 8.1.7.4 to 11.2.0.1 [Release 8.1.7 to 11.2]Information in this document applies to any platform.***Checked for relevance on 03-Nov-2014*** PURPOSE This article describes what happens when a s
1.给用户解锁 alter user scott account unlock; 2.注销.断开.切换当前用户连接 quit conn scott/tiger 3.用户权限查询 A .查看所有用户: select * from dba_users; select * from all_users; select * from user_users; B.查看用户或角色系统权限(直接赋值给用户或角色的系统权限): select * from dba_sys_privs; select * from
查看当前用户的缺省表空间 SQL>select username,default_tablespace from user_users; 查看当前用户的角色 SQL>select * from user_role_privs; 查看当前用户的系统权限和表级权限 SQL>select * from user_sys_privs; SQL>select * from user_tab_privs; 查看用户下所有的表 SQL>select * from user_tables;