In Linux, an error is reported when oracle command line is used to start the database.

Source: Internet
Author: User

We often use oracle command lines. The following describes how to use oracle command lines to start a database in Linux to report errors. It is helpful for you to learn about oracle command lines.

When debugging our test server, oracle on the machine is always unable to start. After debugging, the problem is finally solved.

When the oracle command line in linux starts the database, the TNS error: the net service name is not incorrectly ......, This is because the environment variable is not set with SID error, or has already been set, but the environment variable is not automatically loaded when you switch to the oracle user, the operation steps are as follows:

 
 
  1. # Su oracle
  2.  
  3. $ Echo $ ORACLE_SID // if the correct SID is not printed, it indicates that the environment variable is set incorrectly or not loaded.
  4. $ Cd/home/oracle // enter the oracle user's home directory
  5. $ Source. bash_profile // load the oracle personal attribute File
  6. $ Echo $ ORACLE_SID // if it is still not printed, the SID variable is definitely not set. Directly VI this file and then set
  7. $ Cd $ ORACLE_HOME/bin // enter the bin directory under the oracle Installation Directory
  8. $./Lsnrctl start // start the listener
  9. $./Sqlplus/nolog // log on to sqlplus
  10. SQL> startup // start the database instance. If an error is prompted, you do not have the permission to switch to the sysdba user.
  11. SQL> conn'/as sysdba '// switch to sysdba user
  12. SQL> startup // start the database instance

After starting, you can exit and solve the problem.
 

Implementation of oracle command line Logon

Oracle tablespace creation syntax

This section describes Oracle partition indexes in detail.

Implementation of oracle re-Indexing

Complete Oracle File System Parsing

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.