Q

Logging in to a test database

I have a test database that I am trying to refresh from another database. When attempting to import the data, I forgot to truncate the tables. I am now trying to log in to the database as both SYS and SYSTEM and I am getting a 1031 error, "invalid username or password." Is there another way for me to log in to the database?

I have a test database that I am trying to refresh from another database. When attempting to import the data, I forgot to truncate the tables. I ran the import command from a batch job and killed it before it finished because I realized that I had forgotten to truncate the tables.

I am now trying to log in to the database as both SYS and SYSTEM and I am getting a 1031 error, "invalid username or password." Is there another way for me to log in to the database? What happened to my SYS and SYSTEM usernames?

I am not sure why your SYS and SYSTEM accounts had their password changed. The import utility should not have done this. But to fix it, simply sign on to the database server as an Administrator (Windows) or a member of the DBA group (UNIX/Linux). Then type the following:

sqlplus /nolog
connect / as sysdba

You will now be able to change your SYS and SYSTEM passwords using the ALTER USER command:

ALTER USER sys IDENTIFIED BY foobar;
This was first published in July 2005

Dig deeper on Oracle database design and architecture

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close