Wrong ORDS_PUBLIC_USER password ORDS 22.1 - oracle

I'm trying to install ORDS 22.1.1 on Oracle 19c db.
I get error:
ORA-20202: ERROR: An error occurred during "ORDS_PUBLIC_USER" creation.
ORA-28003: password verification for the specified password failed
ORA-06512: at line 65
There is INFO that it occurs in [*** script: ords_create_rest_users.sql].
There is a c_xxx constant varchar2(100) := to_char(****)
This password doesn't pass the database password policy.
While I'm trying to install ORDS it didn't ask me for password for ORDS_PUBLIC_USER.
Furthemore I can't find the script ords_create_rest_users.sql (even after unziping ords.war) to check how he create the password.

Yeah, its strange that it doesnt ask for password for those users anymore and have no direct control over it. but the solution(or say workaround) is to disable the complex password verification temporarily while install and then enable it again.
Disable the password verification:
SQL> alter profile default limit password_verify_function null;
Install ORDS.
Re-Enable the the password verification:
SQL> alter profile default limit password_verify_function <verify_function_name>;
you can get <verify_function_name> from below query for DEFAULT profile:
SQL> select limit from dba_profiles where profile='DEFAULT' and resource_name='PASSWORD_VERIFY_FUNCTION';

Related

ORA-28040: No matching authentication protocol exception with orcale19c

I am facing this issue in oracle19c.
I have added the following to sqlnet.ora
SQLNET.ALLOWED_LOGON_VERSION_CLIENT = 8
SQLNET.ALLOWED_LOGON_VERSION_SERVER = 8
as well as
SQLNET.AUTHENTICATION_SERVICES = (NONE)
But I am getting:
ORA-01017: invalid username/password: logon denied
I read all over stackoverflow to re-create the password.
I have even tried creating password file as well as changing the password of the user by alter command.
Can any one help me out with the exact steps to re-create password.
You can create a password file using orapwd utility.
Users are added to the password file when they are granted the SYSDBA, SYSOPER, SYSASM, SYSKM, SYSDG or SYSBACKUP privilege.
By default, SYS is the only user that has SYSDBA and SYSOPER privileges. Creating a password file via orapwd enables the remote users to connect with admin privileges.
The basic command to create the password file is
orapwd file=<Password file name> entries=<nnumber of entries allowed> force=<y/n>
There should be no space around =.
Here, You should use force=y to permits overwriting an existing password file.
Cheers!!

How to /as sysdba to db running on Docker?

I have an Oracle database that is running on Docker and a password from my user is going to be expired.
I tried alter profile <profile_name> limit password_life_time UNLIMITED; but got ORA-01031: insufficient privileges
AFAIK, in order to succesfully execute alter profile <profile_name> limit password_life_time UNLIMITED; I have to log in /as sysdba
Could you please give me a hint how can I workaround it in my case? Is it possible to connect /as sysdba in my case?
Just update their password.
ALTER USER EXPIRING_SOON IDENTIFIED BY NEW_PASSWORD;
This will reset the expiration window for the user.
To login as SYS w/o a password, open a terminal for your docker container, and run SQL*Plus from there.

I can't login to oracle system account

I recently installed oracle 12c and can't access the system local generated connection. (Ora-01017 error) eventhough I know for a fact its correct because I changed the password. Anyway, someone else on stackoverflow redirected me to this https://iwikte.wordpress.com/2008/11/28/unlock-oracle-system-account/, and I don't know how to set up these environment variables. I need help. If it makes any difference i'm using windows 10.
If these environment variables are not set automatically, do it manually
(export ORACLE_HOME=/opt/oracle/VIS/db/tech_st/10.2.0
export ORACLE_SID=VIS
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin)
Please first try without setting variables.
Please run SQLPlus as administrator and connect as sysdba without giving password. If your variables are set properly you can just type sqlplus in cmd if not please find SqlPlus in your programs. Then type:
conn / as sysdba
If that won't. Please go to your ORACLE HOME directory and edit %ORACLE_HOME%\network\admin\sqlnet.ora file and check if there is SQLNET.AUTHENTICATION_SERVICES = (NTS) if not NTS change to NTS and restart database. Then retry with conn / as sysdba
When connected you can just call:
alter user sys identified by YOUR_NEW_PASS; or for SYSTEM user alter user SYSTEM identified by YOUR_NEW_PASS account unlock; and login with new password.
By the way why do you need to log as SYSTEM? Not just sys as sysdba? Some comparison about system accounts.
The instruction you got is for linux. In Windows one set environmental variables like shown here
from oracle version 12.2.x users cannot login using case insensitive passwords, even though SEC_CASE_SENSITIVE_LOGON = FALSE if PASSWORD_VERSIONS of user is not 10g.
following sql should show the PASSWORD_VERSIONS for a user.
select USERNAME,ACCOUNT_STATUS,PASSWORD_VERSIONS from dba_users;
USERNAME ACCOUNT_STATUS PASSWORD_VERSIONS
--------------- -------------- -----------------
dummyuser OPEN 11G 12C
to make PASSWORD_VERSIONS compatible with 10g
add/modify line in sqlnet.ora of database to have SQLNET.ALLOWED_LOGON_VERSION_SERVER=8
restart database
change/expire password for existing user
new users created will also have same settings
after above steps PASSWORD_VERSIONS should be something like this
select USERNAME,ACCOUNT_STATUS,PASSWORD_VERSIONS from dba_users;
USERNAME ACCOUNT_STATUS PASSWORD_VERSIONS
--------------- -------------- -----------------
dummyuser OPEN 10G 11G 12C

How to reset username and password for oracle

I am using
Run SQL Command Line
to connect with database, previously I am able to connect with username 'system' and password 'root' but when I tried to connect using SQL>connect system/root
it is showing error
ERROR:
ORA-01017: invalid username/password; logon denied
All services are running, after long time I am trying to connect may be I forgot my credentials can anyone help me how to change or reset both username and password I am on windows platform,
I too reset my password few days back.
You can reset your password by this
ALTER USER username IDENTIFIED BY password
Connect to db first
SQL> conn /as sysdba
More information Docs

Default username and password for SQL*Plus in Ubuntu 14.04?

I followed the instructions mentioned to install SQL*Plus from Oracle Instant Client and How to Install SQLPlus.
SQL*Plus is successfully installed on my system but I cannot login and use it. There is a similar question here and here, but it is does not solve my problem.
On googling, most sources said that we enter a password upon installation, but I was neither prompted nor displayed any password. (I can attach terminal screen shots if it is required)
Is there any way I can login and start using SQL*Plus? Is there any default username or password?
I am stuck here: sqlplus username/password#//dbhost:1521/SID
I need a valid username and password. scott/tiger was of no help.
sqlplus / as sysdba gives this -> ERROR: ORA-12162: TNS:net service name is incorrectly specified and prompts me to enter username and password which I don't have.
I originally asked this question on AskUbuntu feeling its more appropriate there. If this question does not belong here, please comment and I will remove it.
EDIT:
I executed these statements after reading from here:
ORACLE_HOME=/u01/oracle; export ORACLE_HOME
ORACLE_SID=asdb; export ORACLE_SID
Now, On executing sqlplus / as sysdba I get the error message
ERROR: ORA-12545: Connect failed because target host or object does not exist
On executing sqlplus64 scott/tiger#//dbhost:1521/SID I get the error message
ERROR: ORA-12154: TNS:could not resolve the connect identifier specified
It does not have anything to do with Ubuntu. When you enter sqlplus / as sysdba sqlplus tries to connect to the local database, which sid and oracle home should be specified by the environment variables ORACLE_SID and ORACLE_HOME. You, obviously, have not defined these variables.
All you need is to get the username, password, host name, where your database is located, port for the listener (the default port is 1521) and the Oracle SID. Then connect with sqlplus username/password#//dbhost:1521/SID. If you know the password for SYS user and have orapwSID file in the $ORACLE_HOME/dbs directory on the server side, you can connect with sys with the following command: sqlplus sys/password#//dbhost:1521/SID as sysdba.
moving everything into instant_client_11_* directory worked for me.

Resources