Simplify samples.
This commit is contained in:
parent
9e8bc6676c
commit
0edb436abf
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user