91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

cx_Oracle 連接 Oracle

發布時間:2020-08-11 08:12:31 來源:ITPUB博客 閱讀:209 作者:wpgy 欄目:開發技術
cx_Oracle has the capability of starting up the database using a privileged connection. This example shows a script that could be run as the ‘oracle’ operating system user who administers a local database installation on Linux. It assumes that the environment variable ORACLE_SID has been set to the SID of the database that should be started:
# the connection must be in PRELIM_AUTH mode to perform startup connection = cx_Oracle.connect("/", mode = cx_Oracle.SYSDBA | cx_Oracle.PRELIM_AUTH) connection.startup()# the following statements must be issued in normal SYSDBA mode connection = cx_Oracle.connect("/", mode = cx_Oracle.SYSDBA, encoding="UTF-8") cursor = connection.cursor() cursor.execute("alter database mount") cursor.execute("alter database open")

Similarly, cx_Oracle has the ability to shutdown the database using a privileged connection. This example also assumes that the environment variable ORACLE_SID has been set:
# need to connect as SYSDBA or SYSOPER 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 connection.shutdown(mode = cx_Oracle.DBSHUTDOWN_IMMEDIATE) # now close and dismount the database cursor = connection.cursor() cursor.execute("alter database close normal") cursor.execute("alter database dismount") # perform the final shutdown call connection.shutdown(mode = cx_Oracle.DBSHUTDOWN_FINAL)
向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

望城县| 凤冈县| 旬阳县| 旌德县| 洞口县| 阿鲁科尔沁旗| 晋中市| 奇台县| 宣武区| 沅陵县| 漳浦县| 九龙县| 阿鲁科尔沁旗| 右玉县| 龙南县| 江北区| 塔城市| 静乐县| 兰西县| 卢氏县| 民权县| 富顺县| 纳雍县| 雅江县| 阳春市| 安义县| 伊春市| 康平县| 玉屏| 同心县| 凭祥市| 泰和县| 丁青县| 万州区| 曲周县| 鹤峰县| 连南| 长兴县| 黄陵县| 陈巴尔虎旗| 浮山县|