Ask the Expert

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 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?

    Requires Free Membership to View

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:


This was first published in July 2005

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

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: