oracle sqlplus 命令实例

WBOY
發布: 2016-06-07 15:19:25
原創
1239 人瀏覽過

[zhang@zhangshibo /]$ sqlplus /nolog SQL*Plus: Release 11.2.0.1.0 Production on Wed Oct 17 11:27:49 2012 Copyright (c) 1982, 2009, Oracle. All rights reserved. SQL connect sys/orcl as sysdba; Connected. SQL select value$ from sys.props$ wh

[zhang@zhangshibo /]$ sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on Wed Oct 17 11:27:49 2012

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

SQL> connect sys/orcl as sysdba;
Connected.
SQL> select value$ from sys.props$ where name='GLOBAL_DB_NAME';

VALUE$
--------------------------------------------------------------------------------
ORCL.SDG.AC.CN

SQL> show parameter service_names;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
service_names                        string      orcl
SQL>

SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.

Total System Global Area 1720328192 bytes
Fixed Size                  2214056 bytes
Variable Size            1174407000 bytes
Database Buffers          536870912 bytes
Redo Buffers                6836224 bytes
Database mounted.
SQL>

SQL> select status from v$instance;

STATUS
------------
MOUNTED

SQL>

SQL> alter database open;

Database altered.

SQL>

 

相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板