首页 > 数据库 > mysql教程 > oracle sqlplus 命令实例

oracle sqlplus 命令实例

WBOY
发布: 2016-06-07 15:19:25
原创
1271 人浏览过

[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
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板