Simplify samples.

This commit is contained in:
Anthony Tuininga 2021-04-23 13:48:28 -06:00
parent 9e8bc6676c
commit 0edb436abf
2 changed files with 2 additions and 3 deletions

View File

@ -19,7 +19,7 @@
import cx_Oracle
# need to connect as SYSDBA or SYSOPER
connection = cx_Oracle.connect("/", mode=cx_Oracle.SYSDBA)
connection = cx_Oracle.connect(mode=cx_Oracle.SYSDBA)
# first shutdown() call must specify the mode, if DBSHUTDOWN_ABORT is used,
# there is no need for any of the other steps

View File

@ -19,8 +19,7 @@
import cx_Oracle
# the connection must be in PRELIM_AUTH mode
connection = cx_Oracle.connect("/",
mode=cx_Oracle.SYSDBA | cx_Oracle.PRELIM_AUTH)
connection = cx_Oracle.connect(mode=cx_Oracle.SYSDBA | cx_Oracle.PRELIM_AUTH)
connection.startup()
# the following statements must be issued in normal SYSDBA mode