Oracle DBA Corner

Welcome. Please Login, Register, Or Activate! 
type your username and password to login
Date: November 08, 2009, 10:42 AM
423562 members and 291103 Topics
Latest Member: pukar
Nairaland [Nigerian Forum] Home Help Search Who is currently online? Login Register
Nairaland Forum  |  Technology  |  Programming  |  Oracle DBA Corner
Pages: (1) ... (7) (8) (9) (10) (11) (12) (13) (14) Go Down Send this topic Notify of replies
Author Topic: Oracle DBA Corner  (Read 15892 views)
ceso
Re: Oracle DBA Corner
« #384 on: April 13, 2009, 01:00 PM »

@ azum

my email

Yes the out put in sqlplus is for the DB i cant connect (username oe is for chin, username sysman is for orcl)

I have only 1 oracle home

Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

C:\Users\CCO>set oracle_sid=orcl

C:\Users\CCO>sqlplus /nolog

SQL*Plus: Release 10.2.0.3.0 - Production on Mon Apr 13 07:54:44 2009

Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.

SQL> connect sys /as sysdba
Enter password:
Connected.
SQL> select instance_name from v$instance;

INSTANCE_NAME
----------------
orcl

SQL> select username, account_status from dba_users;

USERNAME                       ACCOUNT_STATUS
------------------------------ --------------------------------
MGMT_VIEW                      OPEN
SYS                            OPEN
SYSTEM                         OPEN
DBSNMP                         OPEN
SYSMAN                         LOCKED(TIMED)
OUTLN                          EXPIRED & LOCKED
MDSYS                          EXPIRED & LOCKED
ORDSYS                         EXPIRED & LOCKED
EXFSYS                         EXPIRED & LOCKED
DMSYS                          EXPIRED & LOCKED
WMSYS                          EXPIRED & LOCKED

USERNAME                       ACCOUNT_STATUS
------------------------------ --------------------------------
CTXSYS                         EXPIRED & LOCKED
ANONYMOUS                      EXPIRED & LOCKED
XDB                            EXPIRED & LOCKED
ORDPLUGINS                     EXPIRED & LOCKED
SI_INFORMTN_SCHEMA             EXPIRED & LOCKED
OLAPSYS                        EXPIRED & LOCKED
SCOTT                          EXPIRED & LOCKED
TSMSYS                         EXPIRED & LOCKED
BI                             EXPIRED & LOCKED
PM                             EXPIRED & LOCKED
MDDATA                         EXPIRED & LOCKED

USERNAME                       ACCOUNT_STATUS
------------------------------ --------------------------------
IX                             EXPIRED & LOCKED
SH                             EXPIRED & LOCKED
DIP                            EXPIRED & LOCKED
OE                             EXPIRED & LOCKED
HR                             EXPIRED & LOCKED

27 rows selected.

SQL> emctl status dbconsole
SP2-0734: unknown command beginning "emctl stat, " - rest of line ignored.
SQL> $ emctl status dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2006 Oracle Corporation.  All rights reserved.
http://Obianwu:1158/em/console/aboutApplication
Access is denied.
Oracle Enterprise Manager 10g is running.
------------------------------------------------------------------
Logs are generated in directory C:\oracle\product\10.2.0\db_1/Obianwu_orcl/sysma
n/log

SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Pr
oduction
With the Partitioning, OLAP and Data Mining options

C:\Users\CCO>set oracle_sid=chin

C:\Users\CCO>sqlplus /nolog

SQL*Plus: Release 10.2.0.3.0 - Production on Mon Apr 13 07:58:06 2009

Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.

SQL> connect sys /as sysdba
Enter password:
Connected.
SQL> select instance_name from v$instance;

INSTANCE_NAME
----------------
chin

SQL> select username, account_status from dba_users;

USERNAME                       ACCOUNT_STATUS
------------------------------ --------------------------------
MGMT_VIEW                      OPEN
SYS                            OPEN
SYSTEM                         OPEN
DBSNMP                         OPEN
MYUSER                         OPEN
ATGCLASS                       OPEN
OE                             OPEN
SYSMAN                         LOCKED(TIMED)
OUTLN                          EXPIRED & LOCKED
MDSYS                          EXPIRED & LOCKED
ORDSYS                         EXPIRED & LOCKED

USERNAME                       ACCOUNT_STATUS
------------------------------ --------------------------------
EXFSYS                         EXPIRED & LOCKED
DMSYS                          EXPIRED & LOCKED
WMSYS                          EXPIRED & LOCKED
CTXSYS                         EXPIRED & LOCKED
ANONYMOUS                      EXPIRED & LOCKED
XDB                            EXPIRED & LOCKED
ORDPLUGINS                     EXPIRED & LOCKED
SI_INFORMTN_SCHEMA             EXPIRED & LOCKED
OLAPSYS                        EXPIRED & LOCKED
SCOTT                          EXPIRED & LOCKED
TSMSYS                         EXPIRED & LOCKED

USERNAME                       ACCOUNT_STATUS
------------------------------ --------------------------------
BI                             EXPIRED & LOCKED
PM                             EXPIRED & LOCKED
MDDATA                         EXPIRED & LOCKED
IX                             EXPIRED & LOCKED
SH                             EXPIRED & LOCKED
DIP                            EXPIRED & LOCKED
HR                             EXPIRED & LOCKED

29 rows selected.

SQL> $ emctl status dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2006 Oracle Corporation.  All rights reserved.
http://Obianwu:5500/em/console/aboutApplication
Access is denied.
Oracle Enterprise Manager 10g is running.
------------------------------------------------------------------
Logs are generated in directory C:\oracle\product\10.2.0\db_1/Obianwu_chin/sysma
n/log

SQL>
azum
Re: Oracle DBA Corner
« #385 on: April 13, 2009, 01:22 PM »

I have sent you and email. Reply to that email with the log files.
And do remove your email address.
azum
Re: Oracle DBA Corner
« #386 on: April 13, 2009, 09:44 PM »

After looking at the log files try the following steps to unlock your SYSMAN account:

1. Stop dbconsole:
$ORACLE_HOME/bin/emctl stop dbconsole

2. check the status of the dbconsole using the following:
C> emctl status dbconsole

3. Unlock the SYSMAN user. Connect in SQLPlus as SYSDBA and run following statement:
ALTER USER SYSMAN ACCOUNT UNLOCK;

4. Check the new password
   SQL> connect sysman/<new_password>[@database_alias]

5. Backup and edit the following file:
$ORACLE_HOME/<hostname_SID>/sysman/config/emoms.properties

6. Locate and change following lines:
oracle.sysman.eml.mntr.emdRepPwd=<encrypted_string>
oracle.sysman.eml.mntr.emdRepPwdEncrypted=TRUE

to

oracle.sysman.eml.mntr.emdRepPwd=<password_from_repository_unecrypted>
oracle.sysman.eml.mntr.emdRepPwdEncrypted=FALSE

7. Start db control:
$ORACLE_HOME/bin/emctl start dbconsole

8. check the status of the dbconsole.

9. While still at it check that the password has been encrypted
   Edit the file emoms.properties
   Search for the line beginning with:
   oracle.sysman.eml.mntr.emdRepPwd=
   Check that the password is encrypted
   Search for the line beginning with:
   oracle.sysman.eml.mntr.emdRepPwdEncrypted=
   Check that the value is TRUE

While doing this remember that you have 2 dbconsoles running from the same Oracle Home.
My advice is you shutdown both before doing the above steps for each one.

Basically what you're doing here is to unclock the SYSMAN account. Unfortunately just unlocking at the database level alone is not enough.

Let me know if this works for you.


jabbok (m)
Re: Oracle DBA Corner
« #387 on: April 16, 2009, 04:43 PM »

hi all,

What is virtualization in Unix enviroment(solaris to be precise) really about? And where does it meet with the works of a DBA?
Thanks
suntoson (m)
Re: Oracle DBA Corner
« #388 on: April 17, 2009, 07:10 AM »

Hello,

I want to given OCA for Oracle 10g can i get latest dump for the same.
Its very Urgent for me.

Thanks.  Smiley
jimblaze (m)
Re: Oracle DBA Corner
« #389 on: April 17, 2009, 05:43 PM »

hello all, azum, cabali, a-40,jabbok and all the dba's here @ceso, i encountered this same problem last year and i solved it by Gods grace so if you check my earlier posts, you will find the solution, so happy hunting Grin
ceso
Re: Oracle DBA Corner
« #390 on: April 19, 2009, 12:26 AM »

@azum, Apologies couldnt reply to your post soon enough. Just tried both emctl stop/status dbconsole, and i keep getting the error message "system 5 error has occured, access is denied". After poking around a bit, i figure this is an admin rights issue but i'm logged in as the administrator.
ceso
Re: Oracle DBA Corner
« #391 on: April 19, 2009, 02:07 AM »

@ jimblaze, i saw your earlier post and its not the same issue with my db.
azum
Re: Oracle DBA Corner
« #392 on: April 19, 2009, 05:29 AM »

Quote from: ceso on April 19, 2009, 12:26 AM
@azum, Apologies couldnt reply to your post soon enough. Just tried both emctl stop/status dbconsole, and i keep getting the error message "system 5 error has occured, access is denied". After poking around a bit, i figure this is an admin rights issue but i'm logged in as the administrator.

Now a few things:

1. Were you able to change the SYSMAN password?
2. Were you able to confirm this by loggin on to sqlplus using SYSMAN and its new password?
3. If the above are true, then send me the logfiles.
ceso
Re: Oracle DBA Corner
« #393 on: April 19, 2009, 10:29 PM »

@ azum,
           im still not able to login as sysman, keeps saying my account is locked. I just found out that oracle 10g is not compatible with windows vista Home premium and im not sure if that has anything to do with the system 5 error i encountered while stopping dbconsole and also the loss of connection to my database. I find it strange that i was able to download 10g on vista home premium inspite of the compatibility issue.



jabbok (m)
Re: Oracle DBA Corner
« #394 on: April 19, 2009, 11:11 PM »

@Ceso,

Yes u r right. There is a special version of Oracle 10g for Vista, 
azum
Re: Oracle DBA Corner
« #395 on: April 20, 2009, 06:25 AM »

Quote from: ceso on April 19, 2009, 10:29 PM
@ azum,
           im still not able to login as sysman, keeps saying my account is locked. I just found out that oracle 10g is not compatible with windows vista Home premium and im not sure if that has anything to do with the system 5 error i encountered while stopping dbconsole and also the loss of connection to my database. I find it strange that i was able to download 10g on vista home premium inspite of the compatibility issue.


Who told you Oracle 10g is not compatible to Windows Vista. It is and you can quote me on this.
Also, unlocking sysman account is not easy. That's why i took the pains to set out the steps above. Follow through those steps and you will be able to unlock the sysman account. Did you try the steps?
jabbok (m)
Re: Oracle DBA Corner
« #396 on: April 20, 2009, 03:56 PM »

@azum,
I have some difficulty login into my EM on Windows enviroment. I cant remember where I have seen d solution on d net b4.
the error message:

Error Message
 
 
 
RemoteOperationException: ERROR: Wrong password for user
.

I have used the correct OS n target DB username and password. But it wont login!Pls help
ceso
Re: Oracle DBA Corner
« #397 on: April 21, 2009, 01:33 AM »

@azum, yes i followed the steps you outlined but could not get past No.4. because i keep getting the message error 28000 account is locked. My guess is the password im entering is incorrect and i dont know how else to change it; tried using alter user identified by password and also forcing the password to change when logging in but no luck: see details below

Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

C:\Users\CCO>sqlplus /nolog

SQL*Plus: Release 10.2.0.3.0 - Production on Mon Apr 20 20:29:49 2009

Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.

SQL> connect sys /as sysdba
Enter password:
Connected.
SQL> alter user sysman identified by oracle;

User altered.

SQL> connect sysman/oracle
ERROR:
ORA-28000: the account is locked


Warning: You are no longer connected to ORACLE.
SQL> connect sys /as sysdba
Enter password:
Connected.
SQL> alter user sysman password expire;

User altered.

SQL> connect sysman
Enter password:
ERROR:
ORA-28000: the account is locked


Warning: You are no longer connected to ORACLE.
SQL>
ceso
Re: Oracle DBA Corner
« #398 on: April 21, 2009, 01:47 AM »

Le Moor (m)
Re: Oracle DBA Corner
« #399 on: April 21, 2009, 04:59 AM »

I just reread the thread and i see my steps have already been suggested
jabbok (m)
Re: Oracle DBA Corner
« #400 on: April 21, 2009, 09:35 AM »

Quote from: ceso on April 21, 2009, 01:33 AM
@azum, yes i followed the steps you outlined but could not get past No.4. because i keep getting the message error 28000 account is locked. My guess is the password im entering is incorrect and i dont know how else to change it; tried using alter user identified by password and also forcing the password to change when logging in but no luck: see details below

Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.

C:\Users\CCO>sqlplus /nolog

SQL*Plus: Release 10.2.0.3.0 - Production on Mon Apr 20 20:29:49 2009


Copyright (c) 1982, 2006, Oracle. All Rights Reserved.

SQL> connect sys /as sysdba
Enter password:
Connected.
SQL> alter user sysman identified by oracle;

User altered.

SQL> connect sysman/oracle
ERROR:
ORA-28000: the account is locked


Warning: You are no longer connected to ORACLE.
SQL> connect sys /as sysdba
Enter password:
Connected.
SQL> alter user sysman password expire;

User altered.

SQL> connect sysman
Enter password:
ERROR:
ORA-28000: the account is locked


Warning: You are no longer connected to ORACLE.
SQL>

@Ceso, thanks for the link. To overcome your error, u need to add an additional command to your earlier alter command. the command should be as thus:

SQL> alter user sysman identified by oracle
         account unlock;

I assume you are aware that u must connect as d SYSDBA b4 u can issue the command effectively. U can log on as sysman afterwards.It should work.
azum
Re: Oracle DBA Corner
« #401 on: April 21, 2009, 10:29 AM »

Ceso:

If you really need to solve this problem then follow the steps below in full. Dont stop halfway.

After looking at the log files try the following steps to unlock your SYSMAN account:

1. Stop dbconsole:
$ORACLE_HOME/bin/emctl stop dbconsole

2. check the status of the dbconsole using the following:
C> emctl status dbconsole

3. Unlock the SYSMAN user. Connect in SQLPlus as SYSDBA and run following statement:
ALTER USER SYSMAN ACCOUNT UNLOCK;

4. Backup and edit the following file:
$ORACLE_HOME/<hostname_SID>/sysman/config/emoms.properties

6. Locate and change following lines:
oracle.sysman.eml.mntr.emdRepPwd=<encrypted_string>
oracle.sysman.eml.mntr.emdRepPwdEncrypted=TRUE

to

oracle.sysman.eml.mntr.emdRepPwd=<password_from_repository_unecrypted>
oracle.sysman.eml.mntr.emdRepPwdEncrypted=FALSE

7. Check the new password
   SQL> connect sysman/<new_password>[@database_alias]

8. Start db control:
$ORACLE_HOME/bin/emctl start dbconsole

9. check the status of the dbconsole.

10. While still at it check that the password has been encrypted
   Edit the file emoms.properties
   Search for the line beginning with:
   oracle.sysman.eml.mntr.emdRepPwd=
   Check that the password is encrypted
   Search for the line beginning with:
   oracle.sysman.eml.mntr.emdRepPwdEncrypted=
   Check that the value is TRUE

I have slightly changed the sequence. Check it out and let me know
If this does not work i might try to recreate the problem and see what is happening so as to get a solution.
ceso
Re: Oracle DBA Corner
« #402 on: April 22, 2009, 08:24 PM »

@ jabbok, thanks for the info.
ceso
Re: Oracle DBA Corner
« #403 on: April 22, 2009, 08:36 PM »

@ azum, I followed the steps but no luck, my guess is that it has something to do with admin rights as all attributes in the oracle folder are set to readonly. As soon as i uncheck readonly and close properties, the attributes automatically goes back to readonly. Anyway thanks for all your effort; i will delete and re-install enterprise manager.
azum
Re: Oracle DBA Corner
« #404 on: April 22, 2009, 08:39 PM »

Quote from: ceso on April 22, 2009, 08:36 PM
@ azum, I followed the steps but no luck, my guess is that it has something to do with admin rights as all attributes in the oracle folder are set to readonly. As soon as i uncheck readonly and close properties, the attributes automatically goes back to readonly. Anyway thanks for all your effort; i will delete and re-install enterprise manager.

If that's what you want to do, i believe somewhere in these threads i stated the steps to take to do a clean uninstall on windows.
Good luck.
mssiah (m)
Re: Oracle DBA Corner
« #405 on: April 24, 2009, 11:57 AM »

to change your sysman password and to also unlock it also issue this command

alter user sysman identified by orac account unlock;

This will rectify your problem.

Cheers
mssiah (m)
Re: Oracle DBA Corner
« #406 on: April 24, 2009, 12:00 PM »

oracle works on vista.there is an installation for xp ,vista and unix.you installed the wrong oracle software
jimblaze (m)
Re: Oracle DBA Corner
« #407 on: May 15, 2009, 01:42 PM »

hello guys, does anyone know how if oracle 11g client has a GUI?and how do you use it Grin
vikkieb
Re: Oracle DBA Corner
« #408 on: May 18, 2009, 11:40 PM »

hello!@ all dbas, pls i need to learn how to install on linux. been using windows and i see its easy with theDBCA. pls can anyone help me out, installing oracle on linux plssssssssssssss Cry Cry
jimblaze (m)
Re: Oracle DBA Corner
« #409 on: May 20, 2009, 07:36 AM »

go to this website
Oracle-on-Linux Installation Guides
This installation content is a collection of guides and tips that worked best in the Linux Discussion Forums and Installfests. (Warning: Not everything here may be fit for consumption on your
http://www.oracle.com/technology/tech/linux/install/index.html  - 73k 
jimblaze (m)
Re: Oracle DBA Corner
« #410 on: May 21, 2009, 05:47 PM »

hello guys were are all of you?lemoor, a40, cabali, wats happening? i installed oracle 11g db on a coworkers pc and i installed oracle 11g client on my pc and i have been trying to use the client to connect but not possible, i keep getting ORA-12154: TNS:could not resolve the connect identifier specified and ORA-12154: TNS:could not resolve the connect identifier specified so, solutions Grin
vikkieb
Re: Oracle DBA Corner
« #411 on: May 21, 2009, 06:13 PM »

 @jimblaze, thanks for the help man. i appreciate it
azum
Re: Oracle DBA Corner
« #412 on: May 21, 2009, 07:58 PM »

Quote from: jimblaze on May 21, 2009, 05:47 PM
hello guys were are all of you?lemoor, a40, cabali, wats happening? i installed oracle 11g db on a coworkers pc and i installed oracle 11g client on my pc and i have been trying to use the client to connect but not possible, i keep getting ORA-12154: TNS:could not resolve the connect identifier specified and ORA-12154: TNS:could not resolve the connect identifier specified so, solutions Grin

You must have TNSNAMES.ora file configured on the client.
Make sure it is properly configured.
Kobojunkie
Re: Oracle DBA Corner
« #413 on: May 22, 2009, 02:01 AM »

Visit this link for good explanation

http://media.datadirect.com/download/docs/jdbc/alljdbc/reference/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Reference&file=jdbcoracle8.html


Tnsnames file is usually located at the path
 
C:\Oracle\product\ NETWORK \ADMIN folder
Note: Location depends on your installation path

If you already have a tns file and you can ping the connection
Let’s assume this is y tnsnames file

FITZGERALD.SALES =
  (DESCRIPTION = 
    (ADDRESS = (PROTOCOL = TCP)(HOST = server1)(PORT = 1521))
       (CONNECT_DATA =
          (SID = ORCL)
       )
  )
ARMSTRONG.ACCT =
  (DESCRIPTION = 
  (ADDRESS_LIST= 
     (FAILOVER = on)
     (LOAD_BALANCE = on) 
     (ADDRESS= (PROTOCOL = TCP)(HOST = server1)(PORT = 1521))
     (ADDRESS= (PROTOCOL = TCP)(HOST = server2)(PORT = 1521))
     (ADDRESS= (PROTOCOL = TCP)(HOST = server3)(PORT = 1521))
)   
  (CONNECT_DATA=
     (SERVICE_NAME = acct.us.yourcompany.com)
     (FAILOVER_MODE = 
         (BACKUP=server2)
         (TYPE=select)
         (METHOD=preconnect)
         (RETRIES=20)
         (DELAY=3)
     )
)


to ping the server, I ould
1)   Open a command window on your machine and try to do a “tnsping” on the server from that file.

tnsping ARMSTRONG.ACCT
jimblaze (m)
Re: Oracle DBA Corner
« #414 on: May 22, 2009, 02:17 PM »

well i tnsping and it says  TNS-12535: TNS:operation timed out and my sqlnet.ora file on both the server and client is this-# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.

SQLNET.AUTHENTICATION_SERVICES = (NTS)


this is not good right : Cheesy
Kobojunkie
Re: Oracle DBA Corner
« #415 on: May 22, 2009, 02:57 PM »

I don't understand the question or what you posted. This is a sample sqlnet.ora file


# SQLNET.ORA Network Configuration File: C:\oracle\ora92\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.

#NAMES.DEFAULT_DOMAIN = world

SQLNET.AUTHENTICATION_SERVICES= (NONE)

NAMES.DIRECTORY_PATH= TNSNAMES

#TRACE_LEVEL_CLIENT=16



check out this link for more info

http://www.orafaq.com/wiki/Sqlnet.ora


This link points to possible solution for the problem you are having there


tns-12535 tns operation timed out   http://www.orafaq.com/forum/t/49404/0/
 Tutorials On Game Programming  Java Programming For Dummies  Page 2
Pages: (1) ... (7) (8) (9) (10) (11) (12) (13) (14) Go Up Send Topic to Friend by E-mail Reply 


Sections: Autos/Cars (2) Jobs/Vacancies (2) (3) Career Talk Education General(2) Politics Romance Computers Phones Travel
Sports Fashion Health Religion Celebrities TV/Movies (2) Music/Radio (2) Books Webmasters Programming

Links: Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10

Nairaland is owned by Oluwaseun Osewa. See also: Nairalist Classified Ads
Nairaland Forum | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.