7. oracle如何区分 64-bit/32bit 版本? $ sqlplus '/ AS SYSDBA' SQL*Plus: Release 9.0.1.0.0 - Production on Mon Jul 14 17:01:09 2003 (c) Copyright 2001 Oracle Corporation. All rights reserved。 Connected to: Oracle9i Enterprise Edition Release 9.0.1.0.0 - Production With the Partitioning option JServer Release 9.0.1.0.0 - Production SQL> select * from v$version; BANNER ---------------------------------------------------------------- Oracle9i Enterprise Edition Release 9.0.1.0.0 - Production PL/SQL Release 9.0.1.0.0 - Production CORE 9.0.1.0.0 Production TNS for Solaris: Version 9.0.1.0.0 - Production NLSRTL Version 9.0.1.0.0 - Production SQL>
9. 请问如何分辨某个用户是从哪台机器登陆ORACLE的? SELECT machine ,terminal FROM V$SESSION;
10. 用什么语句查询字段呢? desc table_name 可以查询表的结构 select field_name,... from ... 可以查询字段的值 select * from all_tables where table_name like '%' select * from all_tab_columns where table_name='??'
12. 怎样计算一个表占用的空间的大小? select owner,table_name,NUM_ROWS,BLOCKS*AAA/1024/1024 "Size M",EMPTY_BLOCKS,LAST_ANALYZED from dba_tables where table_name='XXX'; Here: AAA is the value of db_block_size; XXX is the table name you want to check 13. 如何查看最大会话数? SELECT * FROM V$PARAMETER WHERE NAME LIKE 'proc%'; SQL> SQL> show parameter processes