首页 > 数据库 > Oracle > aix下安装oracle10g遭遇em错误

SQL> show parameter job_queue_p NAME TYPE VALUE ---------------------------- ----------- -------------------- job_queue_processes integer 0 SQL> alter system set job_queue_processes=1 scope=both; System altered. SQL>

SQL> col profile for a10 trun SQL> col resource_name for a25 trun SQL> col limit for a10 trun SQL> SELECT PROFILE, resource_name, LIMIT 2 FROM dba_profiles 3 WHERE resource_type = 'PASSWORD' 4 ORDER BY 1, 2; PROFILE RESOURCE_NAME LIMIT ---------- ------------------------- ---------- DEFAULT FAILED_LOGIN_ATTEMPTS 10 DEFAULT PASSWORD_GRACE_TIME UNLIMITED DEFAULT PASSWORD_LIFE_TIME UNLIMITED DEFAULT PASSWORD_LOCK_TIME UNLIMITED DEFAULT PASSWORD_REUSE_MAX UNLIMITED DEFAULT PASSWORD_REUSE_TIME UNLIMITED DEFAULT PASSWORD_VERIFY_FUNCTION NULL 7 rows selected. SQL> -- Default profile is OK, we need a monitoring_profile. SQL> -- use ALTER PROFILE if the SQL> -- monitoring_profile already exists! SQL> CREATE PROFILE monitoring_profile 2 LIMIT FAILED_LOGIN_ATTEMPTS UNLIMITED 3 PASSWORD_GRACE_TIME UNLIMITED 4 PASSWORD_LIFE_TIME UNLIMITED 5 PASSWORD_LOCK_TIME UNLIMITED 6 PASSWORD_REUSE_MAX UNLIMITED 7 PASSWORD_REUSE_TIME UNLIMITED 8 PASSWORD_VERIFY_FUNCTION NULL; Profile created. SQL> -- make sure the user dbsnmp is assigned to SQL> -- the monitoring_profile: SQL> ALTER USER dbsnmp PROFILE monitoring_profile; User altered. SQL> col profile for a19 trun SQL> SELECT PROFILE, resource_name, LIMIT 2 FROM dba_profiles 3 WHERE resource_type = 'PASSWORD' 4 ORDER BY 1, 2; PROFILE RESOURCE_NAME LIMIT ------------------- ------------------------- ---------- DEFAULT FAILED_LOGIN_ATTEMPTS 10 DEFAULT PASSWORD_GRACE_TIME UNLIMITED DEFAULT PASSWORD_LIFE_TIME UNLIMITED DEFAULT PASSWORD_LOCK_TIME UNLIMITED DEFAULT PASSWORD_REUSE_MAX UNLIMITED DEFAULT PASSWORD_REUSE_TIME UNLIMITED DEFAULT PASSWORD_VERIFY_FUNCTION NULL MONITORING_PROFILE FAILED_LOGIN_ATTEMPTS UNLIMITED MONITORING_PROFILE PASSWORD_GRACE_TIME UNLIMITED MONITORING_PROFILE PASSWORD_LIFE_TIME UNLIMITED MONITORING_PROFILE PASSWORD_LOCK_TIME UNLIMITED MONITORING_PROFILE PASSWORD_REUSE_MAX UNLIMITED MONITORING_PROFILE PASSWORD_REUSE_TIME UNLIMITED MONITORING_PROFILE PASSWORD_VERIFY_FUNCTION NULL 14 rows selected. SQL> SQL> select PROFILE 2 FROM dba_users WHERE username = 'DBSNMP'; PROFILE ------------------- MONITORING_PROFILE SQL> -- that is the correct configuration.
[oracle@x7000 admin]$ sqlplus sys@qtest as sysdba SQL*Plus: Release 10.2.0.2.0 - Production on Thu Jun 22 2006 Copyright (c) 1982, 2005, Oracle. All Rights Reserved. Enter password: ******** Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 With the Partitioning, OLAP and Data Mining options SQL> -- a successful login for sys@qtest as sysdba verifies both SQL> -- the tnsnames.ora entry and the password file!
### Possible commands include: # Drop Enterprise Manager repository: emca -deconfig dbcontrol db -repos drop # Create Enterprise Manager repository: emca -config dbcontrol db -repos create # Recreate Enterprise Manager repository: emca -config dbcontrol db -repos recreate
[oracle@x7000 admin]$ emca -config dbcontrol db -repos create
STARTED EMCA at Jun 22, 2006 10:11:26 AM
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: qtest
Listener port number: 1521
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN user:
Email address for notifications (optional): mis-dba@dept.fuller.edu
Outgoing Mail (SMTP) server for notifications
(optional): dept.fuller.edu
-----------------------------------------------------------------
You have specified the following settings
Database ORACLE_HOME
................ /u01/app/oracle/product/10.2.0/db_1
Database hostname ................ x7000.fuller.edu
Listener port number ................ 1521
Database SID ................ qtest
Email address for notifications
............... mis-dba@dept.fuller.edu
Outgoing Mail (SMTP) server for notifications
............... dept.fuller.edu
-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: Y
Jun 22, 2006 10:12:13 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at
$ORACLE_HOME/cfgtoollogs/emca/qtest/emca_2006-06-22_10-11-26-AM.log
Jun 22, 2006 10:12:25 AM
oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Jun 22, 2006 10:18:45 AM
oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Jun 22, 2006 10:19:04 AM
oracle.sysman.emcp.ParamsManager getLocalListener
WARNING: Error retrieving listener for x7000.fuller.edu
Jun 22, 2006 10:19:29 AM
oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Jun 22, 2006 10:21:57 AM
oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Jun 22, 2006 10:21:57 AM
oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO:
>>>> The DB Control URL is http://x7000.fuller.edu:5500/em <<<<
Enterprise Manager configuration completed successfully
FINISHED EMCA at Jun 22, 2006 10:21:57 AM
[oracle@x7000 admin]$
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24487368/viewspace-1040543/ ,如需转载,请注明出处,否则将追究法律责任。