
1、因为oracle运行在Linux系统下,首先,要连接Linux系统。
2、连上后,进行oracle控制台。输入命令: sqlplus / as sysdba。
3、在oracle命令行中,输入: select t1.name,t2.name from v$tablespace t1,v$datafile t2 where t1.ts# = t2.ts#。
4、这样就可以查看oracle数据库的表空间数据文件位置了。
如果查询当前用户下得分区表:\x0d\x0aselect * from user_tables where partitioned='YES'\x0d\x0a如果要查询整个数据库中的分区表:\x0d\x0aselect * from dba_tables where partitioned='YES' \x0d\x0a如果要查询某个用户下得分区表:\x0d\x0aselect * from dba_tables where partitioned='YES' and owner='ABCDEFG'\x0d\x0a 其中ABCDEFG为用户名1、首先打开plsql,输入用户名密码,登陆访问表所在的数据库。
2、这就是登陆成功后的界面了。
3、点击左上的新建图标。
4、选择sql Window。
5、右下区域会出现如图的d窗。
6、在d窗中,输入查询表的sql语句:select * from 表名。
7、点击左上的执行图标。
8、稍作等待,下区域便会展示要查的表的全部信息。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)