Oraclesqlplus command instance

Source: Internet
Author: User
[Zhang @ zhangshibo] $ sqlplusnologSQL * Plus: Clerk: 27: 492012 Copyright (c) 1982,2009, Oracle. Allrightsreserved. SQLconnectsysorclassysdba; Connected. SQLselectvalue $ fromsys. 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,200 9, 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,200 9, 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>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.