如题,我是新手,请大家指教下~~~~~~~~
------解决方案--------------------
查询数据库中的表:select table_name from user_tables;
------解决方案--------------------
这个当然有,你去查数据字典
如
- SQL code
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
------解决方案--------------------
------解决方案--------------------
- SQL code
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"就可以了
------解决方案--------------------
------解决方案--------------------
从oracle定义数据库的语句就可以看出 oracle 的数据库是什么了、
- SQL code
CREATE DATABASE db_nameLOGFILEGROUP 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 reuseMAXLOGFILES 50MAXLOGMEMBERS 5MAXLOGHISTORY 200MAXDATAFILES 500MAXINSTANCES 5ARCHIVELOGCHARACTER SET ZHS16GBKNATIONAL CHARACTER SET AL16UTF16DATAFILE '/opt/oracle/u02/oradata/db_name/system01.dbf' SIZE 1000M EXTENT MANAGEMENT LOCALSYSAUX 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 ;