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!