Reset global database username and password - oracle

I have a global database, name - ABN, Username - ABNTEST and password - abntest123.
This password expired and all system default passwords have also expired. Some usernames and passwords for the system have been forgotten.
How can I connect to the ABD database?
I'm getting the error below while connecting to my database:
ERROR:
ORA-00604: error occurred at recursive SQL level 1
ORA-01653: unable to extend table SYS.AUD$ by 1024 in tablespace SYSTEM
ORA-28001: the password has expired
How can resolve this error?

1) login to Oracle's operating system with Oracle's credentials.
If it is UNIX/Linux you can use Putty programme.
2) From the command line run the following command:
sqlplus / as sysdba
(If you do not have the credentials you have to ask your DBA or SYSADMIN to do that.)
3) after you are connected change the user's password, i.e.:
ALTER USER abntest IDENTIFIED BY abntest123;
Sometimes passwords cannot repeat itself than you have to change it to something else.
Tip for future: There is one good open source software to keep passwords: "Password Gorilla"

Related

Unable to log onto Oracle unless a add "AS SYSADMIN" after the user name

From the SQL Plus, When adding "AS SYSADMIN" after the user name:
UserName AS SYSADMIN
I am able to log on after entering my password
but if I just do the user name:
UserName
I get the following error message:
ORA-01017: invalid username/password; logon denied
I need to log on just with the username so that I can configure JetBrains DataGrip
The AS SYSxxx roles are system privileges that should not be overused, as you appear to have correctly surmised. Typically these roles have a separate authentication source than the normal user account - in other words they may have their own password, which is generally stored in a separate location.
Try this:
While logged in as SYSADMIN, reset the user's password with an ALTER USER [username] IDENTIFIED BY [password]; command.
Log out.
Log in as the user, without AS SYSADMIN, using the new password value.
You should still be able to log in AS SYSADMIN using the old password. To sync them, have someone with SYSDBA privilege regrant the SYSADMIN privilege to your user. If you are working in an Oracle RAC configuration, repeat the grant once on each cluster node, as the external password file is only updated on the local instance when the grant is issued.

how to connect to local oracle database 19c using sysdba

i have install oracle 19c in my PC, but when i want to connect using SQL Plus i cannot login. i got error like this
the error is like my password wrong or cannot open.
when i install the installer not require password. when i try to use default password as password i got error. so how to fix my problem here ?? i have try search in internet how to fix it but still got error
i use Windows 10 for this Oracle19c
There's no default password any more; was until (I think) 10g.
If you're logged on to Windows 10 as user who installed Oracle software, then - at the operating system command prompt - run
sqlplus / as sysdba
/ means that Oracle trusts your operating system account as it is recognized as the "owner" of installed Oracle software and should let you in. Once you're logged into the database, change any password you want for any user you want, e.g.
alter user sys identified by some_new_password;
The TNS: Protocol adapter error usually means you don't have your envirnoment set correctly
Try defining the ORACLE_SID variable with your database name and then connect again /as sysdba
Also, i'd advise you to set your ORACLE_HOME too, if it's not already
set ORACLE_HOME=<YourOracleHomePAth>
set ORACLE_SID=<YourDBName>
There's no default password, the installer should've asked you to set a password for your SYS and SYSTEM users - if you don't remember them, you can always change them, once connected to the Database, by issuing the command
alter user sys identified by <NewPassword>;
alter user system identified by <NewPassword>;

How to login to Oracle12c using sqldeveloper when I only know credentials that work with sqlplus?

So I have this old Oracle database that I want to some migrate to some other db system.
You'd think that username and password is straight forward, but not when using something by Oracle.
So for sqlplus I just run the command sqlplus and it asks for username and password.
As the user I type in "orcl as sysdba" and then I type in the password. This works.
But SQL Developer doesn't accept that. It has a input field for username. And a select box with options like "standard", "SYSDBA" etc. No matter what I type in it always rejects the credentials.
It also asks for a SID, for which I just use ORCL, because it's the only thing I found where it doesn't complain about that.
I know that "orcl as sysdba" is the correct username for sqlplus. So what is the username for SQL Developer? Why is it not the same? Why does sqlplus not ask for the SID?
It's Oracle 12c from an old project. There is supposed to be a Flash tool at https://localhost:5500/em but the login also doesn't work there.
I have imported a table space from a dump that was made on the production server. I used Oracle 12c because the dump file indicated that this was the version used to dump the data.
Log into Oracle using SQL/Plus as SYSDBA and reset the password for a user account and then log into that account on SQL Developer using the newly reset password.
In SQL/Plus, from the account with the SYSDBA privileges, if you want to change the password off the my_user user then:
ALTER USER my_user IDENTIFIED BY MyNewPassword123;
I know that "orcl as sysdba" is the correct username for sqlplus. So what is the username for SQL Developer? Why is it not the same? Why does sqlplus not ask for the SID?
It is not a correct username. orcl is the username (or maybe the SID) and SYSDBA is the elevated level of privileges you wish to use once connected. You do not need to specify a username if you are connecting via SQL/Plus from the file system local to the database with SYSDBA privileges and can just use:
sqlplus / AS SYSDBA
and your access is authenticated using operating system authentication.
If you want to connect to a user with SYSDBA privileges then you probably want the default sys or system users (and to be careful what you do when connected as those users as you will have full control of the database and can do anything, including changing settings so you break the database).
Something like this:
If you want to find out what user you are connected as (in SQL/Plus) then:
SELECT USER FROM DUAL;
You can then use the same username that that outputs (and the appropriate password, which you can reset using the commands above if required) in SQL Developer.

Problems on getting started with Oracle 11g Login issues and doubts

I just finished up installing 11g on my laptop and I got a link which showed up the login page. The installation did ask me for a password and that does work for system.
So, I tried logging in to sqlplus using command prompt like this :
sqlplus / as sysdba
which gives the error : insufficient privileges, but it did ask me for username and password after that to which I typed in system as username and the password I used at the time of installation.
Now it does log me in but I don't have privileges for more privileged commands.
I thought I should login as sys but I get error like : connection as sys should be as sysdba or sysoper.
Just give me a start on how I can login and how I can start interacting with my database right on.
Thanks in advance.
When you use
sqlplus / as sysdba
your current operating system user must be either a privileged user (e.g. root in Linux "Administrator" in Windows) or must be part of the DBA group, otherwise you are not allowed to login without credentials.
If you don't want to change the current OS user, you need to supply the username and password on the commandline:
sqlplus sys/password as sysdba
The user SYS is special because you can only log in as sysdba with that user. On the other hand the SYSTEM user is not allowed to login as sysdba.
Btw: I hope you didn't plan to use SYS or SYSTEM to play around with Oracle. You should never create any tables in those schemas. Create a new user and use that to create tables and basically "use" Oracle.
Use user SYS (as SYSDBA) with password you specified during installation.

Oracle database created but invalid username/password

I'm using Windows 7 64-bit os with oracle 11g. I created a database succesfully. i'm loging in using sqlplus with correct username/password, but it giving the invalid username/password. Logon denied. We are more than 10 people using the same kind of machine and softwares and everyone following the same documentation for installation. Except me every one can able to login properly. What's the problem ? I'm not changed any username and password. Is system side issue or installation problem or database setup problem?
Unlikely to be database or installation related. Pre 11g, with case-insensitve passwords, very
exotic passwords could give trouble if the uppercase value of the password was different depending on NLS settings.
Could be a 'sticky key' when you entered the password during installation. Or, if you touch type, you might have been offset by a key.
try a "sqlplus / as sysdba"
If that works, reset the password with ALTER USER username IDENTIFIED BY password
If you can't get in as sysdba you should try using a Windows admin account.
In 11G passwords are case sensitive. So make sure you type in your password correctly.
What was the password you used when creating the new user ?
Oracle 11 G and 12 C versions suggest to use more complex passwords, Although there is no issues during the user creation. The password must be alphanumeric and with special character.
Verify the password version and status of the user:
select * from dba_users where username = <user_name>;
Amend it to be like below in case of 11G 12C:
alter user <user_name> identified by Pass2019$;
Now test connection!

Resources