Basic Oracle operations in Linux

Source: Internet
Author: User
1. su-Oracle-switch Oracle users (if suoracle is used, the. profile user environment configuration file is not run at startup) $ lsnrctlstart-start

1. su-Oracle-switch Oracle users (If su oracle is used, the. profile user environment configuration file is not run at startup) $ lsnrctl start-start

1. su-Oracle-switch Oracle users (If su oracle is used, the. profile user environment configuration file is not run at startup)

$ Lsnrctl start-start the listener

2. Start the database

$ Sqlplus "/as sysdba"-use the sys user to log on to sqlplus

SQL * Plus: Release 9.2.0.5.0-Production on Thu Oct 9 15:06:11 2003

Copyright (c) 1982,200 2, Oracle Corporation. All rights reserved.

Connected to an idle instance.

SQL> startup-start the database

ORACLE instance started.

Total System Global Area 538412728 bytes

Fixed Size 743096 bytes

Variable Size 268435456 bytes

Database Buffers 268435456 bytes

Redo Buffers 798720 bytes

Database mounted.

Database opened.

SQL> exit-exit sqlplus

Disconnected from Oracle9i Enterprise Edition Release 9.2.0.5.0-64bit Production

With the Partitioning option

JServer Release 9.2.0.5.0-Production

Or

$ Dbstart

3. view database Processes

$ Ps-ef | grep ora _-view the oracle Process

Oracle 688322 1 0 15:06:20-ora_smon_bxmis

Oracle 696534 704704 0 15:06:35 pts/4 grep ora _

Oracle 729224 1 0 15:06:20-ora_dbw0_bxmis

Oracle 745618 1 0 15:06:20-ora_reco_bxmis

Oracle 770216 1 0 15:06:20-ora_ckpt_bxmis

Oracle 778394 1 0 15:06:20-ora_pmon_bxmis

Oracle 843876 1 0 15:06:20-ora_qmn0_bxmis

Oracle 901342 1 0 15:06:20-ora_lgwr_bxmis

Oracle 925704 1 0 15:06:20-ora_cjq0_bxmis

$ Ps-ef | grep lsnr-view the oracle listening process

4. Shut down the database

$ Sqlplus "/as sysdba"

SQL * Plus: Release 9.2.0.5.0-Production on Thu Oct 9 15:07:04 2003

Copyright (c) 1982,200 2, Oracle Corporation. All rights reserved.

Connected:

Oracle9i Enterprise Edition Release 9.2.0.5.0-64bit Production

With the Partitioning option

JServer Release 9.2.0.5.0-Production

SQL> shutdown immediate-Shut down the database

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> exit

Disconnected from Oracle9i Enterprise Edition Release 9.2.0.5.0-64bit Production

With the Partitioning option

JServer Release 9.2.0.5.0-Production

Or

$ Dbshut

5. Stop database listening

$ Lsnrctl stop --- stop listening

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.