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 last published in July 2005

Dig Deeper on Oracle database design and architecture

PRO+

Content

Find more PRO+ content and other member only offers, here.

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.

Start the conversation

Send me notifications when other members comment.

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

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close