Oracle common commands that run on Linux

Source: Internet
Author: User
Tags switches

Switch to Oracle User

Su-oracle #目录转到oracle用户的HOME下, together with the user's shell to switch, only the environment variable that switches Shell,path is valid. Su only switches identities, and the shell environment is still the original user's shell environment.

/********************************************/

1.1 Do not log into the sqlplus environment.

Sqlplus/nolog

1.2 Connecting users

Sql>connect username/[email protected]_servicename# Local connection can omit network service name

1.3 Turn off DB instance

Sql>connect/as sysdba; #需要以sysdba身份登录才能进行此操作.

sql>startup;

Sql>shutdown immediate; #执行完当前正在执行的语句后断开连接.

/********************************************/

2.1 Entering the Monitor control interface

Lsnrctl #listener Control Abbreviations

Lsnrctl>status #查看监听状态

Lsnrctl>start #开启监听

Lsnrctl>stop #停止监听

Lsnrctl>exit #退出监听控制界面

Description: Listens for the connection phase only for remote connections.

The local connection uses IPC communication, does not need to listen, the connection establishment also no longer needs to listen.

Oracle common commands that run on Linux

Related Article

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.