Oracle 实用技巧
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>select status from v$instance;
alias rman=‘rlwrap rman‘
alias adrci=‘rlwrap adrci‘
oracle数据库安装好之后,默认在$ORACLE_HOME下面的sqlplus/admin/目录里面会有glogin.sql配置文件
这是一个全局的并且会自动运行的配置文件,在客户端使用sqlplus的时候会自动调用这个文件。
SQL*Plus: Release 11.2.0.1.0 Production on Fri Dec 5 11:37:23 2014
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
sys@ORA11>
sys@ORA11> select * from v$version;
BANNER
----------------------------------------
Oracle Database 11g Enterprise Edition R
elease 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for Linux: Version 11.2.0.1.0 - Prod
uction
NLSRTL Version 11.2.0.1.0 - Production
sys@ORA11> set linesize 200
sys@ORA11> /
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
[oracle@OEL ~]$ ls
database_check.sql database_info.txt oradiag_oracle
database_info.sql Desktop plsql_code
[oracle@OEL ~]$ exit --返回sqlplus提示符下
[oracle@OEL ~]$ ls
database_check.sql database_info.txt oradiag_oracle
database_info.sql Desktop plsql_code
[oracle@OEL ~]$ exit --返回sqlplus提示符下
[oracle@OEL ~]$ ls
database_check.sql database_info.txt oradiag_oracle
database_info.sql Desktop plsql_code
[oracle@OEL ~]$ exit --返回sqlplus提示符下
/u01/app/oracle/product/11.2.0/dbhome_1/bin/oerr --oerr默认在$ORACLE_HOME/bin目录下
select * from v$instance
*
ERROR at line 1:
ORA-01034: ORACLE not available
01034, 00000, "ORACLE not available"
// *Cause: Oracle was not started up. Possible causes include the following:
// - The SGA requires more space than was allocated for it.
// - The operating-system variable pointing to the instance is
// improperly defined.
// *Action: Refer to accompanying messages for possible causes and correct
// the problem mentioned in the other messages.
// If Oracle has been initialized, then on some operating systems,
// verify that Oracle was linked correctly. See the platform
// specific Oracle documentation.
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。