SQL*Plus: Difference between revisions

From Han Wiki
Jump to navigation Jump to search
m add testedon
add Connect to the database
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
Shutdown the database.
Shutdown the database.


<source lang="sql">
<source lang="console">
$ sqlplus / as sysdba
$ sqlplus / as sysdba
SQL> SHUTDOWN IMMEDIATE
SQL> SHUTDOWN IMMEDIATE
</source>
</source>


Start the database.
Start the database.
Line 13: Line 14:
SQL> STARTUP
SQL> STARTUP
SQL> ALTER PLUGGABLE DATABASE ALL OPEN;
SQL> ALTER PLUGGABLE DATABASE ALL OPEN;
</source>
Enable automatic shutdown and startup.
<source lang="console">
$ systemctl daemon-reload
$ systemctl enable oracle-xe-18c
</source>
Connect to the database
<source lang="console">
$ sqlplus system@"chara/XEPDB12"
SQL*Plus: Release 18.0.0.0.0 - Production on Wed Jun 26 15:02:51 2019
Version 18.4.0.0.0
Copyright (c) 1982, 2018, Oracle.  All rights reserved.
ERROR:
ORA-01017: invalid username/password; logon denied
Enter user-name: system
Enter password:
Last Successful login time: Fri Jun 21 2019 23:16:57 -06:00
Connected to:
Oracle Database 18c Express Edition Release 18.0.0.0.0 - Production
Version 18.4.0.0.0
SQL>
</source>
</source>

Latest revision as of 15:04, 26 June 2019

  • Last tested on Oracle 18.4.0.0.0, CentOS 7.6.1810 (2019-06-21)

Shutdown the database.

$ sqlplus / as sysdba
SQL> SHUTDOWN IMMEDIATE


Start the database.

SQL> STARTUP
SQL> ALTER PLUGGABLE DATABASE ALL OPEN;


Enable automatic shutdown and startup.

$ systemctl daemon-reload
$ systemctl enable oracle-xe-18c


Connect to the database

$ sqlplus system@"chara/XEPDB12"

SQL*Plus: Release 18.0.0.0.0 - Production on Wed Jun 26 15:02:51 2019
Version 18.4.0.0.0

Copyright (c) 1982, 2018, Oracle.  All rights reserved.

ERROR:
ORA-01017: invalid username/password; logon denied


Enter user-name: system
Enter password:
Last Successful login time: Fri Jun 21 2019 23:16:57 -06:00

Connected to:
Oracle Database 18c Express Edition Release 18.0.0.0.0 - Production
Version 18.4.0.0.0

SQL>