数据库用户不属于dba group会造成的问题

今天不小心将数据库用户oracle的组dba给去掉了,导致了两个问题

将oracle的组dba添加回去后,就没有问题了

[oracle@scaqan03dv0201 ~]$ id oracle
uid=1001(oracle) gid=1001(oinstall) groups=1001(oinstall),1004(asmdba),1002(dba),1003(racoper)
[oracle@scaqan03dv0201 ~]$ id grid
uid=1000(grid) gid=1001(oinstall) groups=1001(oinstall),1004(asmdba),1005(asmoper),1006(asmadmin)
[oracle@scaqan03dv0201 ~]$ exit
logout
Connection to scaqan03dv0201 closed.
[oracle@scaqan03dv0101 ~]$ id oracle
uid=1001(oracle) gid=1001(oinstall) groups=1004(asmdba),1005(asmoper),1006(asmadmin),1001(oinstall)
[oracle@scaqan03dv0101 ~]$ id grid
uid=1000(grid) gid=1001(oinstall) groups=1001(oinstall),1004(asmdba),1005(asmoper),1006(asmadmin)

第一个问题就是在登录现有的数据库时,会报用户名密码错误的问题

[oracle@scaqan03dv0101 ~]$ sqlplus "/as sysdba"

SQL*Plus: Release 19.0.0.0.0 - Production on Thu Apr 21 00:16:19 2022
Version 19.15.0.0.0

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

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


在新建数据库的时候会报OS Authentication might be disabled for this database这个错误

[FATAL] [DBT-05509] Failed to connect to the specified database (testdb)., CAUSE: OS Authentication might be disabled for this database (testdb)., ACTION: Specify a valid sysdba user name and password to connect to the database.,

[Execution of Perform_dbca_prechecks failed, [FATAL] [DBAAS-60071] Operation has failed with following error message.,  [FATAL] [DBT-05509] Failed to connect to the specified database (testdb).,    CAUSE: OS Authentication might be disabled for this database (testdb).,    ACTION: Specify a valid sysdba user name and password to connect to the database.,    SUMMARY:,        - [DBAAS-60022] Command '/var/opt/oracle/dbaastools/dbaasca/bin/dbca -silent -oui_internal -createDatabase -databaseConfigType RAC -templateName /u02/app/oracle/product/19.0.0.0/dbhome_1/assistants/dbca/templates/exa_seed.dbc -datafileJarLocation /u02/app/oracle/product/19.0.0.0/dbhome_1/assistants/dbca/templates/exa_seed.dfb -pdbSeedMetadataFile /u02/app/oracle/product/19.0.0.0/dbhome_1/assistants/dbca/templates/exa_seed_pdbseed.xml -pdbSeedBackUpfile /u02/app/oracle/product/19.0.0.0/dbhome_1/assistants/dbca/templates/exa_seed_pdbseed.dfb -gdbName testdb.us.oracle.com -sid testdb -createAsContainerDatabase true -numberOfPdbs 0 -honorNodeNumberForInstance -storageType ASM -datafileDestination +DATAC1 -recoveryAreaDestination +RECOC1 -recoveryAreaSize 307200 -redoLogFileDestination +DATAC1 -numberOfRedoLogsPerInstance 4 -redoLogFileSize 4000 -useOMF true -enableArchive true -tempFileProperties 1024MB:16GB:512GB -pdbTempFileProperties 1024MB:16GB:UNLIMITED -pdbTablespaceProperties USERS:1024MB:16GB:UNLIMITED -useBigFileForTablespace true -adminManaged -nodelist scaqan03dv0101,scaqan03dv0201 -characterSet AL32UTF8 -forceInternalAlterCharacterSet -nationalCharacterSet AL16UTF16 -configureTDE true -tdeWalletRoot /var/opt/oracle/dbaas_acfs/testdb/wallet_root -encryptTablespaces ALL -initParams 'db_create_online_log_dest_1=+DATAC1,os_authent_prefix="",db_name=testdb,pga_aggregate_target=5000m,sga_target=7600m,control_management_pack_access=DIAGNOSTIC+TUNING,db_domain=us.oracle.com,enable_ddl_logging=TRUE,inmemory_size=1520m,db_unique_name=testdb' -skipPasswordComplexityCheck false -checkOnly -J-Dapplication.exceptions.severity=DBT-06012:WARNING,DBT-06604:WARNING -J-Doracle.assistants.dbca.useStandardLogLocation=true -jreLoc /usr/java/jdk1.8.0_321-amd64/jre' execution has failed on nodes [localnode]., ******** PLUGIN EXECUTION FAILED ********, Executing jobs which need to be run always..., -----------------, Running DB_creation_release_lock job, Completed DB_creation_release_lock job, Completed execution.]
Exit code of the operation:255

你可能感兴趣的:(orale,oracle)