视图database_properties

如何查找当前的default temporary tablespace 名字是什么?
 
答案:database_properties
 
(可以设置col列的显示字符宽度,如a30将显示30个字符的宽度)
SQL> col property_name format a30
SQL> col property_value format a20
SQL> col description format a40
SQL> set linesize 100
---
SQL> SET WRA[P] {ON|OFF}
---当输出的行的长度大于设置的行的长度时(用set linesize n命令设置),
---当set wrap on时,输出行的多于的字符会另起一行显示,
---否则,会将输出行的多于字符切除,不予显示。
SQL> set wrap on

SQL>  select property_name,property_value,description
  2  from database_properties;

PROPERTY_NAME                  PROPERTY_VALUE       DESCRIPTION
------------------------------ -------------------- ----------------------------------------
DICT.BASE                      2                    dictionary base tables version #
DEFAULT_TEMP_TABLESPACE        TEMP                 Name of default temporary tablespace
DBTIMEZONE                     -08:00               DB time zone
NLS_LANGUAGE                   AMERICAN             Language
NLS_TERRITORY                  AMERICA              Territory
NLS_CURRENCY                   $                    Local currency
NLS_ISO_CURRENCY               AMERICA              ISO currency
NLS_NUMERIC_CHARACTERS         .,                   Numeric characters
NLS_CHARACTERSET               AL32UTF8             Character set
NLS_CALENDAR                   GREGORIAN            Calendar system
NLS_DATE_FORMAT                DD-MON-RR            Date format

PROPERTY_NAME                  PROPERTY_VALUE       DESCRIPTION
------------------------------ -------------------- ----------------------------------------
NLS_DATE_LANGUAGE              AMERICAN             Date language
NLS_SORT                       BINARY               Linguistic definition
NLS_TIME_FORMAT                HH.MI.SSXFF AM       Time format
NLS_TIMESTAMP_FORMAT           DD-MON-RR HH.MI.SSXF Time stamp format
                               F AM

NLS_TIME_TZ_FORMAT             HH.MI.SSXFF AM TZR   Time with timezone format
NLS_TIMESTAMP_TZ_FORMAT        DD-MON-RR HH.MI.SSXF Timestamp with timezone format
                               F AM TZR

NLS_DUAL_CURRENCY              $                    Dual currency symbol

PROPERTY_NAME                  PROPERTY_VALUE       DESCRIPTION
------------------------------ -------------------- ----------------------------------------
NLS_COMP                       BINARY               NLS comparison
NLS_LENGTH_SEMANTICS           BYTE                 NLS length semantics
NLS_NCHAR_CONV_EXCP            FALSE                NLS conversion exception
NLS_NCHAR_CHARACTERSET         AL16UTF16            NCHAR Character set
NLS_RDBMS_VERSION              9.2.0.4.0            RDBMS version for NLS parameters
GLOBAL_DB_NAME                 TESTDB.US.ORACLE.COM Global database name
EXPORT_VIEWS_VERSION           8                    Export views revision #

 
1、顺带说一下,如何获得Oracle的所有保留字呢?
 
答案: v$reserved_words
2、如何获得,创建数据库时与maxlogfile,maxlogmember,maxdatafiles有关的参数值?
答案: v$controlfile_record_section

你可能感兴趣的:(oracle,sql,F#)