Oracle - ORA-28009: connection as SYS should be as SYSDBA OR SYSOPER
一、原因
sys 使用者是超級管理員,所以在登入的時候需要額外指定其角色
二、方案
1、在 PL/SQL 中,在登入介面,將 連線為 的選項 SYSDBA 選中
2、在 SQLPlus 中,通過 as sysdba 子句指定
-- 方式一
[oracle@xl ~]$ sqlplus sys/登入密碼 as sysdba
-- 方式二
[oracle@xl ~]$ sqlplus sys as sysdba
Enter password: 登入密碼
-- 方式三
[oracle@xl ~]$ sqlplus
Enter user-name: sys
Enter password: 登入密碼 as sysdba
3、在JDBC中,將使用者名稱從 sys 改為 sys as sysdba
String userName = "sys as sysdba";
String userPass = "password";
String driverName = "oracle.jdbc.driver.OracleDriver";
String dataBaseUrl = "jdbc:oracle:thin:@127.0.01:1521:ORCL";
相關文章
- 總結sysdba和sysoper許可權
- linux環境下sqlplus sys/sys@ORCL as sysdba報錯 ORA-01031: insufficient privilegesLinuxSQL
- Oracle dba角色和sysdba的區別Oracle
- Oracle的SYS_CONNECT_BY_PATH函式Oracle函式
- oracle 合併多個sys_refcursorOracle
- Oracle中Nextval用法SEQUENCE與SYS_GUID()OracleGUI
- 筆記:Oracle - sys_guid()直接select亂碼筆記OracleGUI
- Sqoop從Oracle抽數錯:IO Error: Connection resetOOPOracleError
- 人大金倉資料庫kingbase備份時老是提示sys_dump: error: connection to database or services資料庫ErrorDatabase
- ORACLE ORA-01017&SP2-0157與sys密碼重置Oracle密碼
- Oracle 如何恢復sys使用者歷史密碼Oracle密碼
- nacos Connection refused (Connection refused)
- Disable the Evolve Job SYS_AUTO_SPM_EVOLVE_TASK in Oracle 12cOracle
- Oracle資料庫之cursor、refcursor及sys_refcursor深度解析Oracle資料庫
- Only variable references should be returned by reference
- What you should know about JavaJava
- Connection
- Oracle:SYS_REFCURSOR作為函式中的輸出引數Oracle函式
- oracle,使用SYS_GUID()生成32位唯一字串OracleGUI字串
- Oracle 12c DG管理-分離SYS特權使用者Oracle
- oracle OGG-01232 Receive TCP params error:TCP/IP error 232(connection reset)OracleTCPError
- Cobalt Strike 4.0 Updates You Should Know
- NPM: 6.5.0-next.0 should be >= 3.0.0NPM
- java.net.ConnectException: Connection refused (Connection refused)JavaException
- COPY & SYS
- 忘記oracle的sys密碼該如何重置;附如何修改oracle資料庫使用者密碼Oracle密碼資料庫
- sqlplus / as sysdba報錯ORA-01017: invalid username/password; logon deniedSQLGo
- Error:Can't connect to SOCKS proxy:Connection refused (Connection refused)Error
- 1.5.2.2. SYS
- Python--sysPython
- nmcli connection reload
- Setup had an error Error: At least one of these paths should existErrorAST
- mysqld: Table '.mac_vod' is marked as crashed and should be repairedMySqlMacAI
- npm run build打包報錯 npm: should be >= 3.0.0NPMUI
- Oracle 12.2 報錯:ORA-12012: error on auto execute of job “SYS”.”ORA$AT_OS_OPT_SY_7458″OracleError
- 總結導致oracle資料庫主機CPU sys%高的一些原因Oracle資料庫
- sqlplus / as sysdba 提示許可權不足(ORA-01031)問題處理SQL
- 684-Redundant Connection
- yarn socket connection timeoutYarn