-
Administrator account
Hi, I'm new to Oracle. I lost DBA password (SYS, SYSTEM, etc.) of an existing Oracle 9i database. Any idea how to find it out or, at least how to run sql commands at DB level without knowing any password? Thanks.
-
I assume OS authentication was set, try this...
log into the box using "oracle" account...
set ORACLE_HOME and ORACLE_SID
sqlplus /nolog
conn sys as sysdba
hit enter when asked for a password
at this point you will be able to set new passwords for sys and system.
Pablo (Paul) Berzukov
Author of Understanding Database Administration available at amazon and other bookstores.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
-
Thanks PAVB.
What do you mean by 'set ORACLE_HOME and ORACLE_SID'? Where? Set to what? By the way, I skipped that step.
I hit enter when asked for a password; I get the error:
ERROR:
ORA-01031: insufficient privileges
Also, once the above is resolved, how would I set new passwords?
Thanks again.
-
If you don't know how to set environment variables, change passwords then please contact your DBA. He will do it for you.
Thanks,
Vijay Tummala
Try hard to get what you like OR you will be forced to like what you get.
-
Thanks vnktummala. Just to let you know, if I had that option I wouldn't be bothering you with such questions in the first place, which I admit are basic.
-
well, i understood. But we at this forum expect minimum effort from the posters before they post for help.
by the way, what is the operating system in the DB server?
Thanks,
Vijay Tummala
Try hard to get what you like OR you will be forced to like what you get.
-
Originally Posted by lakram
What do you mean by 'set ORACLE_HOME and ORACLE_SID'? Where? Set to what?
Chances are you are sitting in the wrong chair.
Is this a home lab or is it a corporate environment?
If corporate... What are your position/responsibilities in the company?
If corporate... Does this affects production?
Pablo (Paul) Berzukov
Author of Understanding Database Administration available at amazon and other bookstores.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
-
@Vijay: Win server 2000 SP4
@Pablo: yes, wrong chair, in the sense that I'm not a DBA and I have no Oracle background.
It's a corporate environment, that needs to be restructured, and I'm here to do just that.
I'm head of IT, new at the company, need to do some restructuring but, at the same time, deal with such problems meanwhile.
Thanks.
-
Originally Posted by lakram
I'm head of IT
Please don't take it the wrong way, I strongly suggest to hire a DBA - even a temp consultant will do in the short term.
You are new in the company, blame the previous administration and ask for resources to clean up the mess.
Pablo (Paul) Berzukov
Author of Understanding Database Administration available at amazon and other bookstores.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
-
Originally Posted by lakram
@Vijay: Win server 2000 SP4
@Pablo: yes, wrong chair, in the sense that I'm not a DBA and I have no Oracle background.
It's a corporate environment, that needs to be restructured, and I'm here to do just that.
I'm head of IT, new at the company, need to do some restructuring but, at the same time, deal with such problems meanwhile.
Thanks.
Sometimes, there are such situations.
Make sure your OS user account is member of ORA_DBA group (My Computer->Right Click->Manage->Local Users and Groups->Groups).
If no, add it.
Then, sqlplus/nolog
SQL> conn sys@service_name as sysdba
When asked for password, press Enter (type nothing).
lucky
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|