简体   繁体   中英

Oracle 19c sqlplus / as sysdba asking user-name and password?

I am installing Oracle 19c on Oracle Linux (7.6) on Microsoft Azure. I am at point where i ran as a root user

$ /etc/init.d/oracledb_ORCLCDB-19c configure

which ended up at在此处输入图片说明

$ ./sqlplus / as sysdba

where it is asking me to provide credentials, I tried SYS, SYSDBA with password " change_on_install " ( followed this article ), did not work, tired user oracle user-name and password, no luck. I cannt get pass through this with out this credentials. I dont remember of setting credentials in entire setup. What am i missing here? 在此处输入图片说明

Make sure you set the appropriate environment variables:

https://docs.oracle.com/en/database/oracle/oracle-database/19/admin/getting-started-with-database-administration.html#GUID-ED528602-A8AC-4FCC-AA55-A36277A66A23

You can use this script:

$ . /usr/local/bin/oraenv

It all depends on how you plan log in to your system on a regular basis. One approach is to put the required environment variables in your .bash_profile, assuming you are using bash. It's not best practice to do that for the oracle user, in case you end up running more than one database (and thus have more than one SID).

I recommend reading read the documentation on how to set your environment permanently:

https://docs.oracle.com/en/database/oracle/oracle-database/19/unxar/administering-oracle-database.html#GUID-A5FC7903-AA9D-4FAC-A151-A1C8DEB299DD

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM