日期:2014-05-17 浏览次数:21656 次
select table_name from all_tables where owner=upper('scott');
------解决方案--------------------
查看特定用户对应的方案中的表:select table_name from user_tables;
查看所有用户方案中的表:select table_name from dba_tables; // 需要dba权限的用户来执行。
------解决方案--------------------
只有show user,show parameter ....
------解决方案--------------------
show parameter instance_name
------解决方案--------------------
My SQL: show tables == Oracle: select * from user_tables; My SQL: show databases == Oracle: select * from dba_users; -- My SQL中的数据库的概念可以简单理解为 对应 Oracle 的 SCHEDULER
------解决方案--------------------
select * from all_all_tables;看看你需要看那个用户或表空间的,后面加 where owner="xxx"就可以了
------解决方案--------------------
CREATE DATABASE db_name LOGFILE GROUP 1 ('/opt/oracle/u02/oradata/db_name/redo01.log','/opt/oracle/u02/oradata/db_name/redo01_1.log') size 500m reuse, GROUP 2 ('/opt/oracle/u02/oradata/db_name/redo02.log','/opt/oracle/u02/oradata/db_name/redo02_1.log') size 500m reuse, GROUP 3 ('/opt/oracle/u02/oradata/db_name/redo03.log','/opt/oracle/u02/oradata/db_name/redo03_1.log') size 500m reuse MAXLOGFILES 50 MAXLOGMEMBERS 5 MAXLOGHISTORY 200 MAXDATAFILES 500 MAXINSTANCES 5 ARCHIVELOG CHARACTER SET ZHS16GBK NATIONAL CHARACTER SET AL16UTF16 DATAFILE '/opt/oracle/u02/oradata/db_name/system01.dbf' SIZE 1000M EXTENT MANAGEMENT LOCAL SYSAUX DATAFILE '/opt/oracle/u02/oradata/db_name/sysaux01.dbf' SIZE 1000M autoextend on next 50M maxsize 2048M UNDO TABLESPACE UNDOTS DATAFILE '/opt/oracle/u02/oradata/db_name/undo.dbf' SIZE 1000M autoextend on next 50M maxsize 2048M DEFAULT TEMPORARY TABLESPACE TEMP TEMPFILE '/opt/oracle/u02/oradata/db_name/temp.dbf' SIZE 1000M autoextend on next 50M maxsize 3072M ;