How to use Emacs to establish a connection with sqlplus

Source: Internet
Author: User

I started to study Emacs and recently used Oracle to create several tables, so I wanted to use Emacs. I didn't expect the process to be so painful.

It starts from here.

Enable Emacs

C-x C-F

Test. SQL // create a test. SQL File

M-x SQL-Oracle // create an SQL Buffer to connect to the database through sqlplus

Enter the User name: (the landlord first uses the DBA identity to log on)

Password: (DBA password)

Database: Press enter.


Sqlplus starts and immediately exits, saying "process SQL exited abnormally with code 1"

I don't know why.


Then I went to duniang and found a solution for one night. It is estimated that it is a database user problem before going to bed.


The next day, I created a new database user and tried again

Log on with the new user

Connection successful


Then I wrote an SQL

C-C // run

No response, saying "No SQL process started"

Check again, you need to specify the buffer for running the SQL statement

M-x SQL-set-sqli-buffer-generally

Run again, succeeded



I don't know why DBA connection is going to be a problem for the time being. If any great God knows, I 'd like to tell you, thank you!


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.