Dba_usersのcreatedについて
マニュアルを見ますと、dba_usersのcreatedはユーザーの作成日付が挿入されると記載されています。
これは、つまりユーザーのパスワードやデフォルト表領域等を変更してもcreatedの日付は更新されないと
考えてよいでしょうか。
また、他にもcreatedの値を変更する要因があれば、御教示下さい。
上記を検証できる環境が無い為、本スレッドで問い合わせています。
宜しくお願い致します。
Edited by: user1816871 on 2011/06/06 22:39
とりあえず実際に変更してみたら、
パスワード変更、デフォルト表領域の変更は
DBA_USERSのCREATEDに影響ありませんでした。
たまたま環境があったのでご参考まで・・・
ちなみに11gR1です。
Similar Messages
-
Newbie: dropping and creating an identical user
Oracle 10g
Hi: I need to drop and recreate the user. This is what I had from my previous notes.
1. how do I figure out what is the current default tablespace
2. how do I figure out the current temporary tablespace?
3. the table space and temporary table space get deleted when I drop the user. if Yes, Is it possible some other user's default tablespace and temporary tablespace is the same as well.
Drop user systems cascade;
CREATE USER SYSTEMS
IDENTIFIED BY VALUES 'Test123'
DEFAULT TABLESPACE USERS
TEMPORARY TABLESPACE TEMPts1
PROFILE DEFAULT
ACCOUNT UNLOCK;
/When I do a "SELECT DBMS_METADATA.GET_DDL('USER', 'Test123') || '/' DDL FROM DBA_USERS;", I get 34 rows. What does that mean. They all look identical.
SELECT DBMS_METADATA.GET_DDL('USER', 'Test123') || '/' DDL FROM DBA_USERS;
CREATE USER "Test123" IDENTIFIED BY VALUES 'F42EB0B11017F065'
DEFAULT TABLESPACE "ARSYSTEM"
TEMPORARY TABLESPACE "TEMP"
CREATE USER "Test123" IDENTIFIED BY VALUES 'F42EB0B11017F065'
DEFAULT TABLESPACE "ARSYSTEM"
TEMPORARY TABLESPACE "TEMP"
CREATE USER "Test123" IDENTIFIED BY VALUES 'F42EB0B11017F065'
DEFAULT TABLESPACE "ARSYSTEM"
TEMPORARY TABLESPACE "TEMP"
CREATE USER "Test123" IDENTIFIED BY VALUES 'F42EB0B11017F065'
DEFAULT TABLESPACE "ARSYSTEM"
TEMPORARY TABLESPACE "TEMP"
CREATE USER "Test123" IDENTIFIED BY VALUES 'F42EB0B11017F065'
DEFAULT TABLESPACE "ARSYSTEM"
TEMPORARY TABLESPACE "TEMP"
CREATE USER "Test123" IDENTIFIED BY VALUES 'F42EB0B11017F065'
DEFAULT TABLESPACE "ARSYSTEM"
TEMPORARY TABLESPACE "TEMP"
CREATE USER "Test123" IDENTIFIED BY VALUES 'F42EB0B11017F065'
DEFAULT TABLESPACE "ARSYSTEM"
TEMPORARY TABLESPACE "TEMP"
CREATE USER "Test123" IDENTIFIED BY VALUES 'F42EB0B11017F065'
DEFAULT TABLESPACE "ARSYSTEM"
TEMPORARY TABLESPACE "TEMP"
CREATE USER "Test123" IDENTIFIED BY VALUES 'F42EB0B11017F065'
DEFAULT TABLESPACE "ARSYSTEM"
TEMPORARY TABLESPACE "TEMP"
CREATE USER "Test123" IDENTIFIED BY VALUES 'F42EB0B11017F065'
DEFAULT TABLESPACE "ARSYSTEM"
TEMPORARY TABLESPACE "TEMP"
CREATE USER "Test123" IDENTIFIED BY VALUES 'F42EB0B11017F065'
DEFAULT TABLESPACE "ARSYSTEM"
TEMPORARY TABLESPACE "TEMP"
CREATE USER "Test123" IDENTIFIED BY VALUES 'F42EB0B11017F065'
DEFAULT TABLESPACE "ARSYSTEM"
TEMPORARY TABLESPACE "TEMP"
CREATE USER "Test123" IDENTIFIED BY VALUES 'F42EB0B11017F065'
DEFAULT TABLESPACE "ARSYSTEM"
TEMPORARY TABLESPACE "TEMP"
CREATE USER "Test123" IDENTIFIED BY VALUES 'F42EB0B11017F065'
DEFAULT TABLESPACE "ARSYSTEM"
TEMPORARY TABLESPACE "TEMP"
CREATE USER "Test123" IDENTIFIED BY VALUES 'F42EB0B11017F065'
DEFAULT TABLESPACE "ARSYSTEM"
TEMPORARY TABLESPACE "TEMP"
CREATE USER "Test123" IDENTIFIED BY VALUES 'F42EB0B11017F065'
DEFAULT TABLESPACE "ARSYSTEM"
TEMPORARY TABLESPACE "TEMP"
CREATE USER "Test123" IDENTIFIED BY VALUES 'F42EB0B11017F065'
DEFAULT TABLESPACE "ARSYSTEM"
TEMPORARY TABLESPACE "TEMP"
CREATE USER "Test123" IDENTIFIED BY VALUES 'F42EB0B11017F065'
DEFAULT TABLESPACE "ARSYSTEM"
TEMPORARY TABLESPACE "TEMP"
CREATE USER "Test123" IDENTIFIED BY VALUES 'F42EB0B11017F065'
DEFAULT TABLESPACE "ARSYSTEM"
TEMPORARY TABLESPACE "TEMP"
CREATE USER "Test123" IDENTIFIED BY VALUES 'F42EB0B11017F065'
DEFAULT TABLESPACE "ARSYSTEM"
TEMPORARY TABLESPACE "TEMP"
CREATE USER "Test123" IDENTIFIED BY VALUES 'F42EB0B11017F065'
DEFAULT TABLESPACE "ARSYSTEM"
TEMPORARY TABLESPACE "TEMP"
CREATE USER "Test123" IDENTIFIED BY VALUES 'F42EB0B11017F065'
DEFAULT TABLESPACE "ARSYSTEM"
TEMPORARY TABLESPACE "TEMP"
CREATE USER "Test123" IDENTIFIED BY VALUES 'F42EB0B11017F065'
DEFAULT TABLESPACE "ARSYSTEM"
TEMPORARY TABLESPACE "TEMP"
34 rows selected. -
How to avoid use of to_date and to_char ?
Hi All,
I have table 'sample ' with columns id (number ) and dte (timestamp ) .
CREATE TABLE SAMPLE ( ID NUMBER,DTE TIMESTAMP);
Sample Records like
INSERT INTO SAMPLE VALUES( 1,SYSDATE);
INSERT INTO SAMPLE VALUES( 2,SYSDATE);
INSERT INTO SAMPLE VALUES( 3,SYSDATE+1);
INSERT INTO SAMPLE VALUES( 4,SYSDATE+1);
INSERT INTO SAMPLE VALUES( 5,SYSDATE+3);
After inserting the records the dte will have both date and time.....
My Question is, How to fetch the records for the given date ( not time ) without using to_date,to_char or trunc functions from the table .
For Example,
select * from sample where dte = '22-OCT-2008' ;
Note : '22-OCT-2008' is not exactly a string ,use it as date datatype.
Regards,
Hariharan STPavan Kumar wrote:
Hi,
strange Requirements, try to use substr
SELECT Id , SUBSTR(dte,1,10) FROM SAMPLE
No ! That doesn't give any garuantee about the result !
SQL> select created,substr(created,1,10) from dba_users;
CREATED SUBSTR(CREATED,1,10)
20030527 14:12:47 20030527 1
20030527 14:12:47 20030527 1
20030527 14:12:52 20030527 1
20030527 14:20:54 20030527 1
20030527 14:32:36 20030527 1
20070124 16:59:58 20070124 1
20080811 15:08:13 20080811 1
20080929 10:52:04 20080929 1
20070827 15:16:18 20070827 1
20030818 15:41:05 20030818 1
20030527 14:32:40 20030527 1
CREATED SUBSTR(CREATED,1,10)
20040301 07:04:46 20040301 0
20060830 14:14:25 20060830 1
13 rows selected.Don't use string function against date. Use the proper session parameter setting NLS_DATE_FORMAT as well. And work properly with the date format mask.
Nicolas. -
Error creating database 11g R2, Windows 7
Hello!
Sorry, Im newbie in Oracle theme. After installing Oracle 11g R2 and creating Listener, I run Database Configuration Assisistant. On the stage of compliting database creation I got such an error:
Enterprice manager configuration failed due to the following error:
Error uploading configuration data to the repository.
Here is a part of logfile:
06.11.2012 13:31:26 oracle.sysman.emcp.EMReposConfig createOutOfBoxJobs
CONFIG: Finished executing emreposoutofbox.sql
06.11.2012 13:31:26 oracle.sysman.emcp.ParamsManager getHost
CONFIG: Host having instnces running for database orcl : Trifonov
06.11.2012 13:31:26 oracle.sysman.emcp.ParamsManager setParam
CONFIG: Setting param: REP_DB_RUNNING_HOST value: Trifonov
06.11.2012 13:31:26 oracle.sysman.emcp.ParamsManager getRepDbPort
CONFIG: Listener Port: 1521
06.11.2012 13:31:26 oracle.sysman.emcp.util.GeneralUtil isLocalConnectionRequired
CONFIG: isLocalConnectionRequired: true
06.11.2012 13:31:26 oracle.sysman.emcp.util.GeneralUtil initSQLEngine
CONFIG: isLocalConnectionRequired: true. Connecting to database instance locally.
06.11.2012 13:31:26 oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
CONFIG: SQLEngine connecting with SID: orcl, oracleHome: F:\app\Trifonov\product\11.2.0\dbhome_1, and user: SYSMAN
06.11.2012 13:31:26 oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
CONFIG: SQLEngine created successfully and connected
06.11.2012 13:31:26 oracle.sysman.emcp.EMReposConfig createOutOfBoxJobs
CONFIG: Submitting dbms job: F:\app\Trifonov\product\11.2.0\dbhome_1\sysman\admin\emdrep\sql\core\latest\admin\admin_submit_dbms_jobs.sql
06.11.2012 13:31:26 oracle.sysman.emcp.EMReposConfig createOutOfBoxJobs
CONFIG: Successfully submitted dbms job
06.11.2012 13:31:26 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
06.11.2012 13:31:26 oracle.sysman.emcp.ParamsManager checkListenerStatusForDBControl
CONFIG: connectDesc : (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=Trifonov)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=orcl.trifonov.local)))
06.11.2012 13:31:26 oracle.sysman.emcp.ParamsManager getHost
CONFIG: Host having instnces running for database orcl : Trifonov
06.11.2012 13:31:26 oracle.sysman.emcp.ParamsManager setParam
CONFIG: Setting param: REP_DB_RUNNING_HOST value: Trifonov
06.11.2012 13:31:26 oracle.sysman.emcp.ParamsManager getRepDbPort
CONFIG: Listener Port: 1521
06.11.2012 13:31:26 oracle.sysman.emcp.util.GeneralUtil isLocalConnectionRequired
CONFIG: isLocalConnectionRequired: true
06.11.2012 13:31:26 oracle.sysman.emcp.util.GeneralUtil initSQLEngine
CONFIG: isLocalConnectionRequired: true. Connecting to database instance locally.
06.11.2012 13:31:26 oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
CONFIG: SQLEngine connecting with SID: orcl, oracleHome: F:\app\Trifonov\product\11.2.0\dbhome_1, and user: SYSMAN
06.11.2012 13:31:26 oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
CONFIG: SQLEngine created successfully and connected
06.11.2012 13:31:26 oracle.sysman.emcp.ParamsManager checkListenerStatusForDBControl
CONFIG: Passed listener validation check.Listener is up and running.
06.11.2012 13:31:26 oracle.sysman.emcp.EMReposConfig unlockMGMTAccount
CONFIG: Unlocking mgmt view user account
06.11.2012 13:31:26 oracle.sysman.emcp.EMReposConfig unlockMGMTAccount
CONFIG: view user sql: declare repos_pwd varchar2(30); view_user varchar2(30); view_user_pwd varchar2(30); view_user_acc_status varchar2(30); begin repos_pwd := ?; sysman.mgmt_view_priv.get_view_user(view_user); select account_status into view_user_acc_status from sys.dba_users where upper(username) = upper ( view_user ); IF view_user_acc_status like '%LOCKED%' THEN execute immediate 'alter user ' || view_user || ' account unlock'; END IF; IF view_user_acc_status like '%EXPIRED%' THEN sysman.mgmt_view_priv.set_view_user_creds ( repos_pwd ); sysman.mgmt_view_priv.GET_VIEW_USER_CREDS ( view_user, view_user_pwd ); execute immediate 'alter user ' || view_user || ' identified by ' || view_user_pwd || ''; END IF; end;
06.11.2012 13:31:26 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
06.11.2012 13:31:26 oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Starting execution: CMD /C F:\app\Trifonov\product\11.2.0\dbhome_1\sysman\admin\scripts\emca\emcaDbUtil.bat "F:\app\Trifonov\product\11.2.0\dbhome_1\sysman\admin\scripts;F:\app\Trifonov\product\11.2.0\dbhome_1\bin;" F:/app/Trifonov/product/11.2.0/dbhome_1/perl/bin\perl.exe F:\app\Trifonov\product\11.2.0\dbhome_1\sysman\admin\scripts\emca\emcaDbUtil.pl F:\app\Trifonov\product\11.2.0\dbhome_1 "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=Trifonov)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=orcl.trifonov.local)))" SYS SYSDBA declare repos_pwd varchar2(30); view_user varchar2(30); view_user_pwd varchar2(30); view_user_acc_status varchar2(30); begin repos_pwd := ?; sysman.mgmt_view_priv.get_view_user(view_user); select account_status into view_user_acc_status from sys.dba_users where upper(username) = upper ( view_user ); IF view_user_acc_status like '%LOCKED%' THEN execute immediate 'alter user ' || view_user || ' account unlock'; END IF; IF view_user_acc_status like '%EXPIRED%' THEN sysman.mgmt_view_priv.set_view_user_creds ( repos_pwd ); sysman.mgmt_view_priv.GET_VIEW_USER_CREDS ( view_user, view_user_pwd ); execute immediate 'alter user ' || view_user || ' identified by ' || view_user_pwd || ''; END IF; end; orcl 1 SYSMAN_PWD
06.11.2012 13:31:28 oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Exit value of 0
06.11.2012 13:31:28 oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Execution of CMD /C F:\app\Trifonov\product\11.2.0\dbhome_1\sysman\admin\scripts\emca\emcaDbUtil.bat "F:\app\Trifonov\product\11.2.0\dbhome_1\sysman\admin\scripts;F:\app\Trifonov\product\11.2.0\dbhome_1\bin;" F:/app/Trifonov/product/11.2.0/dbhome_1/perl/bin\perl.exe F:\app\Trifonov\product\11.2.0\dbhome_1\sysman\admin\scripts\emca\emcaDbUtil.pl F:\app\Trifonov\product\11.2.0\dbhome_1 "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=Trifonov)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=orcl.trifonov.local)))" SYS SYSDBA declare repos_pwd varchar2(30); view_user varchar2(30); view_user_pwd varchar2(30); view_user_acc_status varchar2(30); begin repos_pwd := ?; sysman.mgmt_view_priv.get_view_user(view_user); select account_status into view_user_acc_status from sys.dba_users where upper(username) = upper ( view_user ); IF view_user_acc_status like '%LOCKED%' THEN execute immediate 'alter user ' || view_user || ' account unlock'; END IF; IF view_user_acc_status like '%EXPIRED%' THEN sysman.mgmt_view_priv.set_view_user_creds ( repos_pwd ); sysman.mgmt_view_priv.GET_VIEW_USER_CREDS ( view_user, view_user_pwd ); execute immediate 'alter user ' || view_user || ' identified by ' || view_user_pwd || ''; END IF; end; orcl 1 SYSMAN_PWD completed successfully
06.11.2012 13:31:28 oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Arguments passed F:\app\Trifonov\product\11.2.0\dbhome_1 (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=Trifonov)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=orcl.trifonov.local))) SYS SYSDBA declare repos_pwd varchar2(30); view_user varchar2(30); view_user_pwd varchar2(30); view_user_acc_status varchar2(30); begin repos_pwd := ?; sysman.mgmt_view_priv.get_view_user(view_user); select account_status into view_user_acc_status from sys.dba_users where upper(username) = upper ( view_user ); IF view_user_acc_status like '%LOCKED%' THEN execute immediate 'alter user ' || view_user || ' account unlock'; END IF; IF view_user_acc_status like '%EXPIRED%' THEN sysman.mgmt_view_priv.set_view_user_creds ( repos_pwd ); sysman.mgmt_view_priv.GET_VIEW_USER_CREDS ( view_user, view_user_pwd ); execute immediate 'alter user ' || view_user || ' identified by ' || view_user_pwd || ''; END IF; end; orcl 1 SYSMAN_PWD
Connecting to database using connect string (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=Trifonov)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=orcl.trifonov.local))) in home F:\app\Trifonov\product\11.2.0\dbhome_1 with user "SYS" role "SYSDBA".
connected to database.
sql to execute declare repos_pwd varchar2(30); view_user varchar2(30); view_user_pwd varchar2(30); view_user_acc_status varchar2(30); begin repos_pwd := ?; sysman.mgmt_view_priv.get_view_user(view_user); select account_status into view_user_acc_status from sys.dba_users where upper(username) = upper ( view_user ); IF view_user_acc_status like '%LOCKED%' THEN execute immediate 'alter user ' || view_user || ' account unlock'; END IF; IF view_user_acc_status like '%EXPIRED%' THEN sysman.mgmt_view_priv.set_view_user_creds ( repos_pwd ); sysman.mgmt_view_priv.GET_VIEW_USER_CREDS ( view_user, view_user_pwd ); execute immediate 'alter user ' || view_user || ' identified by ' || view_user_pwd || ''; END IF; end;
noOfParams to bind: 1.
sql execute successfully.
06.11.2012 13:31:28 oracle.sysman.emcp.EMReposConfig unlockMGMTAccount
CONFIG: Unlocked mgmt_view account
06.11.2012 13:31:28 oracle.sysman.emcp.EMReposConfig invoke
CONFIG: Successfully unlocked mgmt_view account
06.11.2012 13:31:28 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
06.11.2012 13:31:28 oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
INFO: Uploading configuration data to EM repository (this may take a while) ...
06.11.2012 13:31:30 oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
CONFIG: Error uploading configuration data to the repository
oracle.sysman.emdrep.config.ConfigurationException: FATAL Configuration Exceptions
at oracle.sysman.emdrep.config.EMSchemaConfiguration.perform(EMSchemaConfiguration.java:232)
at oracle.sysman.emcp.EMReposConfig.uploadConfigDataToRepository(EMReposConfig.java:699)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:385)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:158)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:253)
at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:583)
at oracle.sysman.assistants.dbca.backend.PostDBCreationStep.executeImpl(PostDBCreationStep.java:968)
at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:210)
at oracle.sysman.assistants.util.step.Step.execute(Step.java:140)
at oracle.sysman.assistants.util.step.StepContext$ModeRunner.run(StepContext.java:2667)
at java.lang.Thread.run(Thread.java:595)
06.11.2012 13:31:30 oracle.sysman.emcp.EMReposConfig invoke
INFO: Refer to the log file at F:\app\Trifonov\cfgtoollogs\emca\orcl\emca_repos_config_<date>.log for more details.
06.11.2012 13:31:30 oracle.sysman.emcp.EMReposConfig invoke
SEVERE: Error uploading configuration data to the repository
06.11.2012 13:31:30 oracle.sysman.emcp.EMConfig perform
SEVERE: Error uploading configuration data to the repository
Refer to the log file at F:\app\Trifonov\cfgtoollogs\dbca\orcl\emConfig.log for more details.
06.11.2012 13:31:30 oracle.sysman.emcp.EMConfig perform
CONFIG: Stack Trace:
oracle.sysman.emcp.exception.EMConfigException: Error uploading configuration data to the repository
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:397)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:158)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:253)
at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:583)
at oracle.sysman.assistants.dbca.backend.PostDBCreationStep.executeImpl(PostDBCreationStep.java:968)
at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:210)
at oracle.sysman.assistants.util.step.Step.execute(Step.java:140)
at oracle.sysman.assistants.util.step.StepContext$ModeRunner.run(StepContext.java:2667)
at java.lang.Thread.run(Thread.java:595)
06.11.2012 13:31:30 oracle.sysman.emcp.EMConfig restoreOuiLoc
CONFIG: Restoring oracle.installer.oui_loc to F:\app\Trifonov\product\11.2.0\dbhome_1\oui
Thanks in advance for any help you can provide!Hi
at oracle.sysman.emdrep.config.EMSchemaConfiguration.perform(EMSchemaConfiguration.java:232)
at oracle.sysman.emcp.EMReposConfig.uploadConfigDataToRepository(EMReposConfig.java:699)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:385)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:158)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:253)
at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:583)pelase review:
"Error Uploading Configuration Data To The Repository" when configuring dbconsole [ID 1233913.1]
PS:Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding
Regard
Helios -
How can i get a list of the user created on a database?
dear all
i need to issue a query that return a list for all users that are created on the database
please helpYou can have more refine search ,
sql > select username from dba_users ;
hare krishna
Alok -
Error in creating oracle 10g EE db manually in Win XP SP2 OS
First of all. Sorry if I don't have a good English...
My operating system is Windows XP SP2
I'd created script files below for creating Oracle database manually:
dbcamin.bat
mkdir C:\oracle\product\10.2.0\admin\dbcamin\adump
mkdir C:\oracle\product\10.2.0\admin\dbcamin\bdump
mkdir C:\oracle\product\10.2.0\admin\dbcamin\cdump
mkdir C:\oracle\product\10.2.0\admin\dbcamin\udump
mkdir C:\oracle\product\10.2.0\admin\dbcamin\dpdump
mkdir C:\oracle\product\10.2.0\flash_recovery_area\dbcam in
mkdir C:\oracle\product\10.2.0\admin\dbcamin\pfile
mkdir C:\oracle\product\10.2.0\cfgtoollogs\emca\dbcamin
mkdir C:\oracle\product\10.2.0\flash_recovery_area
mkdir C:\oracle\product\10.2.0\oradata\dbcamin
set ORACLE_SID=dbcamin
C:\oracle\product\10.2.0\db_1\bin\oradim.exe -new -sid DBCAMIN -startmode manual -spfile
C:\oracle\product\10.2.0\db_1\bin\oradim.exe -edit -sid DBCAMIN -startmode auto -srvcstart system
C:\oracle\product\10.2.0\db_1\bin\sqlplus /nolog @C:\oracle\product\10.2.0\admin\dbcamin\scripts\db camin.sql
CreateDB.sql
connect SYS/dbcamin as SYSDBA
set echo on
spool C:\oracle\product\10.2.0\admin\dbcamin\scripts\Cre ateDB.log
startup nomount pfile="C:\oracle\product\10.2.0\db_1\database\init dbcamin.ora";
CREATE DATABASE dbcamin
MAXINSTANCES 8
MAXLOGHISTORY 1
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
DATAFILE 'C:\oracle\product\10.2.0\oradata\dbcamin\system01 .dbf' SIZE 300M REUSE AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
EXTENT MANAGEMENT LOCAL
SYSAUX DATAFILE 'C:\oracle\product\10.2.0\oradata\dbcamin\sysaux01 .dbf' SIZE 120M REUSE AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
SMALLFILE DEFAULT TEMPORARY TABLESPACE TEMP TEMPFILE 'C:\oracle\product\10.2.0\oradata\dbcamin\temp01.d bf' SIZE 20M REUSE AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED
SMALLFILE UNDO TABLESPACE "UNDOTBS1" DATAFILE 'C:\oracle\product\10.2.0\oradata\dbcamin\undotbs0 1.dbf' SIZE 200M REUSE AUTOEXTEND ON NEXT 5120K MAXSIZE UNLIMITED
CHARACTER SET AL32UTF8
NATIONAL CHARACTER SET AL16UTF16
LOGFILE GROUP 1 ('C:\oracle\product\10.2.0\oradata\dbcamin\redo01. log') SIZE 51200K,
GROUP 2 ('C:\oracle\product\10.2.0\oradata\dbcamin\redo02. log') SIZE 51200K,
GROUP 3 ('C:\oracle\product\10.2.0\oradata\dbcamin\redo03. log') SIZE 51200K
USER SYS IDENTIFIED BY dbcamin USER SYSTEM IDENTIFIED BY dbcamin;
spool off
CreateDBCatalog.sql
connect SYS/dbcamin as SYSDBA
set echo on
spool C:\oracle\product\10.2.0\admin\dbcamin\scripts\Cre ateDBCatalog.log
@C:\oracle\product\10.2.0\db_1\rdbms\admin\catalog .sql;
@C:\oracle\product\10.2.0\db_1\rdbms\admin\catbloc k.sql;
@C:\oracle\product\10.2.0\db_1\rdbms\admin\catproc .sql;
@C:\oracle\product\10.2.0\db_1\rdbms\admin\catoctk .sql;
@C:\oracle\product\10.2.0\db_1\rdbms\admin\owminst .plb;
connect SYSTEM/dbcamin
@C:\oracle\product\10.2.0\db_1\sqlplus\admin\pupbl d.sql;
connect SYSTEM/dbcamin
set echo on
spool C:\oracle\product\10.2.0\admin\dbcamin\scripts\sql PlusHelp.log
@C:\oracle\product\10.2.0\db_1\sqlplus\admin\help\ hlpbld.sql helpus.sql;
spool off
spool off
CreateDBFiles.sql
connect SYS/dbcamin as SYSDBA
set echo on
spool C:\oracle\product\10.2.0\admin\dbcamin\scripts\Cre ateDBFiles.log
CREATE SMALLFILE TABLESPACE "USERS" LOGGING DATAFILE 'C:\oracle\product\10.2.0\oradata\dbcamin\users01. dbf' SIZE 5M REUSE AUTOEXTEND ON NEXT 1280K MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;
ALTER DATABASE DEFAULT TABLESPACE "USERS";
spool off
dbcamin.sql
set verify off
PROMPT specify a password for sys as parameter 1;
DEFINE sysPassword = dbcamin
PROMPT specify a password for system as parameter 2;
DEFINE systemPassword = dbcamin
host C:\oracle\product\10.2.0\db_1\bin\orapwd.exe file=C:\oracle\product\10.2.0\db_1\database\PWDdbc amin.ora password=dbcamin force=y
@C:\oracle\product\10.2.0\admin\dbcamin\scripts\Cr eateDB.sql
@C:\oracle\product\10.2.0\admin\dbcamin\scripts\Cr eateDBFiles.sql
@C:\oracle\product\10.2.0\admin\dbcamin\scripts\Cr eateDBCatalog.sql
@C:\oracle\product\10.2.0\admin\dbcamin\scripts\lo ckAccount.sql
@C:\oracle\product\10.2.0\admin\dbcamin\scripts\po stDBCreation.sql
lockAccount.sql
set echo on
spool C:\oracle\product\10.2.0\admin\dbcamin\scripts\loc kAccount.log
BEGIN
FOR item IN ( SELECT USERNAME FROM DBA_USERS WHERE USERNAME NOT IN ('SYS','SYSTEM') )
LOOP
dbms_output.put_line('Locking and Expiring: ' || item.USERNAME);
execute immediate 'alter user ' || item.USERNAME || ' password expire account lock' ;
END LOOP;
END;
spool off
postDBCreation.sql
connect SYS/dbcamin as SYSDBA
set echo on
spool C:\oracle\product\10.2.0\admin\dbcamin\scripts\pos tDBCreation.log
connect SYS/dbcamin as SYSDBA
set echo on
create spfile='C:\oracle\product\10.2.0\db_1\dbs\spfiledb camin.ora' FROM pfile='C:\oracle\product\10.2.0\db_1\database\init dbcamin.ora';
shutdown immediate;
connect SYS/dbcamin as SYSDBA
startup ;
select 'utl_recomp_begin: ' || to_char(sysdate, 'HH:MIS') from dual;
execute utl_recomp.recomp_serial();
select 'utl_recomp_end: ' || to_char(sysdate, 'HH:MIS') from dual;
connect SYS/dbcamin as SYSDBA
spool C:\oracle\product\10.2.0\admin\dbcamin\scripts\pos tDBCreation.log
initdbcamin.ora
# Copyright (c) 1991, 2001, 2002 by Oracle Corporation
# NLS
nls_language="ENGLISH"
nls_territory="AMERICA"
# Miscellaneous
compatible=10.2.0.1.0
# Cursors and Library Cache
cursor_sharing=similar
open_cursors=300
# Archive
LOG_ARCHIVE_DEST_1='LOCATION=C:\oracle\product\10. 2.0\flash_recovery_area\dbcamin\ARCHIVELOG'
LOG_ARCHIVE_DEST_STATE_1=ENABLE
LOG_ARCHIVE_FORMAT=%t_%s_%r.arc
LOG_ARCHIVE_START=TRUE
# Diagnostics and Statistics
BACKGROUND_DUMP_DEST=C:\oracle\product\10.2.0\admi n\dbcamin\bdump
CORE_DUMP_DEST=C:\oracle\product\10.2.0\admin\dbca min\cdump
TIMED_STATISTICS=TRUE
USER_DUMP_DEST=C:\oracle\product\10.2.0\admin\dbca min\udump
# Cache and I/O
db_block_size=4096
db_cache_size=25165824
db_file_multiblock_read_count=16
# System Managed Undo and Rollback Segments
undo_management=auto
undo_retention=120
undo_tablespace=UNDOTBS1
# Security and Auditing
audit_file_dest=C:\oracle\product\10.2.0\admin\dbc amin\adump
audit_trail=db
remote_login_passwordfile=EXCLUSIVE
# Database Identification
db_domain=""
db_name=dbcamin
instance_name=dbcamin
# File Configuration
control_files=("C:\oracle\product\10.2.0\oradata\d bcamin\control01.ctl", "C:\oracle\product\10.2.0\oradata\dbcamin\control0 2.ctl")
db_recovery_file_dest=C:\oracle\product\10.2.0\fla sh_recovery_area
db_recovery_file_dest_size=2147483648
# Processes and Sessions
processes=60
sessions=71
# Distributed, Replication and Snapshot
DB_DOMAIN=us.oracle.com
REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE
# Redo Log and Recovery
FAST_START_MTTR_TARGET=300
but I'd got some errors when I tried to start up or alter database open the database...
This is the message..
Oracle instance terminated. Disconnection forced.
when I tried to check the process inside the command prompt I list some of the errors like written below...
SQL> create or replace view v_$_lock as select * from v$_lock;
create or replace view v_$_lock as select * from v$_lock;
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 2
ORA-04031: unable to allocate 84 bytes of shared memory ("shared pool","select inst_id,addr,ksqlkadr...","Typecheck","opndef:qkex rAddMatching1")
SQL> grant select on v_$_lock to select_catalog_role;
grant select on v_$_lock to select_catalog_role;
ERROR at line 1:
ORA-00942: table or view does not exist
SQL> grant select on v_$flashback_database_logfile to select_catalog_role;
grant select on v_$flashback_database_logfile to select_catalog_role
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-04031: unable to allocate 212 bytes of shared memory ("shared pool","select i.obj#,i.ts#,i.file#,...","sql area","KGHSC_ALLOC_BUF:buf")
SQL> create or replace public synonim gv$dlm_all_locks;
create or replace public synonim gv$dlm_all_locks
ERROR at line 1:
ORA-04031: unable to allocate 3904 bytes of shared memory ("shared pool","unknown object","sga heap(1,0)","kglsim object batch")
SQL> grant select on gv$dlm_all_locks to select_catalog_role;
grant select on gv$dlm_all_locks to select_catalog_role;
ERROR at line 1:
ORA-04031: unable to allocate 3904 bytes of shared memory ("shared pool","unknown object","sga heap(1,0)","kglsim object batch")
CREATE OR REPLACE PACKAGE dbms_registry_server IS
ERROR at line 1:
ORA-06554: package DBMS_STANDARD must be created before using PL/SQL
CREATE OR REPLACE PACKAGE BODY dbms_registry
ERROR at line 1:
ORA-06554: package DBMS_STANDARD must be created before using PL/SQL
SQL> BEGIN
2 dbms_registry.loading('CATALOG', 'Oracle Database Catalog Views',
3 'dbms_registry_sys.validate_catalog');
4 END;
5 /
BEGIN
*ERROR at line 1:
ORA-06553: PLS-213: package STANDARD not accessible
at last... what's wrong???what should I do???
TQ before and after.
GBUTry to add
SGA_TARGET=300mto your initdbcamin.ora file.
Bartek -
Error while creating DBConsole -- Error configuring central management
Dear All,
MY DB Oracle 11gR1 on Linux is running fine, however there is a problem in Oracle Enterprise Manager Console.
I dropped and re-create dbconsole using:
emca -config all db -repos create
These are the messages I got after creating it.
Feb 10, 2010 10:31:26 AM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Feb 10, 2010 10:41:28 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Feb 10, 2010 10:41:41 AM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
INFO: Uploading configuration data to EM repository (this may take a while) ...
Feb 10, 2010 10:43:48 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Uploaded configuration data successfully
Feb 10, 2010 10:43:53 AM oracle.sysman.emcp.util.CentralAgentUtil registerWithCentralAgents
INFO: Registering target(s) with central agent(s) (this may take a while)...
Feb 10, 2010 10:43:57 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
WARNING: Error executing /Oracle/app/oracle/product/11.1.0/db_1/bin/emctl config agent addcentralagent /Oracle/app/oracle/product/11.1.0/db_1 /Oracle/app/oracle/product/11.1.0/db_1
Feb 10, 2010 10:43:57 AM oracle.sysman.emcp.EMAgentConfig performConfiguration
WARNING: Error registering database targets with the central agent(s).
Feb 10, 2010 10:43:57 AM oracle.sysman.emcp.EMConfig perform
SEVERE: Error configuring central management. This target will not be centrally managed
Refer to the log file at /Oracle/app/oracle/cfgtoollogs/emca/bssdevpl/emca_2010_02_10_10_25_26.log for more details.
Could not complete the configuration. Refer to the log file at /Oracle/app/oracle/cfgtoollogs/emca/bssdevpl/emca_2010_02_10_10_25_26.log for more details.
If anyone can help me getting through this error and creating dbconsole.
Thanks,
ImranCONFIG: isLocalNodeDone: T localNode: null
10:31:26 oracle.sysman.emcp.EMDBPreConfig copyAgentTimeStampFile
CONFIG: File: /path/bss.com_bssdevpl/sysman/emd/agntstmp.txt:bss.com does not exists.
10:31:26 oracle.sysman.emcp.util.GeneralUtil initSQLEngine
CONFIG: SQLEngine connecting with SID: bssdevpl, oracleHome: /path, and user: SYS
10:31:26 oracle.sysman.emcp.util.GeneralUtil initSQLEngine
CONFIG: SQLEngine created successfully and connected
10:31:26 oracle.sysman.emcp.EMReposConfig createRepository
CONFIG: Spooling to /Oracle/app/oracle/cfgtoollogs/emca/bssdevpl/emca_repos_create_2010_02_10_10_31_26.log
10:31:26 oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
10:41:28 oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
10:41:28 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter EMAIL_ADDRESS.
10:41:28 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter MAIL_SERVER_NAME.
10:41:28 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter MAIL_SERVER_SENDER_NAME.
10:41:28 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter MAIL_SERVER_SENDER_ADDR.
10:41:28 oracle.sysman.emcp.util.GeneralUtil initSQLEngine
CONFIG: SQLEngine connecting with SID: bssdevpl, oracleHome: /path, and user: SYS
10:41:29 oracle.sysman.emcp.util.GeneralUtil initSQLEngine
CONFIG: SQLEngine created successfully and connected
10:41:29 oracle.sysman.emcp.EMReposConfig unlockAccounts
CONFIG: Unlocking dbsnmp and sysman
10:41:29 oracle.sysman.emcp.EMReposConfig invoke
CONFIG: Successfully unlocked relevant accounts
10:41:29 oracle.sysman.emcp.util.GeneralUtil initSQLEngine
CONFIG: SQLEngine connecting with SID: bssdevpl, oracleHome: /path, and user: SYSMAN
10:41:29 oracle.sysman.emcp.util.GeneralUtil initSQLEngine
CONFIG: SQLEngine created successfully and connected
10:41:36 oracle.sysman.emcp.EMReposConfig createOutOfBoxJobs
CONFIG: Finished executing emreposoutofbox.sql
10:41:36 oracle.sysman.emcp.util.GeneralUtil initSQLEngine
CONFIG: SQLEngine connecting with SID: bssdevpl, oracleHome: /path, and user: SYSMAN
10:41:38 oracle.sysman.emcp.util.GeneralUtil initSQLEngine
CONFIG: SQLEngine created successfully and connected
10:41:38 oracle.sysman.emcp.EMReposConfig createOutOfBoxJobs
CONFIG: Submitting dbms job: /path/sysman/admin/emdrep/sql/core/latest/admin/admin_submit_dbms_jobs.sql
10:41:38 oracle.sysman.emcp.EMReposConfig createOutOfBoxJobs
CONFIG: Successfully submitted dbms job
10:41:38 oracle.sysman.emcp.EMReposConfig unlockMGMTAccount
CONFIG: Unlocking mgmt view user account
10:41:38 oracle.sysman.emcp.EMReposConfig unlockMGMTAccount
CONFIG: view user sql: declare repos_pwd varchar2(30); view_user varchar2(30); view_user_pwd varchar2(30); view_user_acc_status varchar2(30); begin repos_pwd := ?; sysman.mgmt_view_priv.get_view_user(view_user); select account_status into view_user_acc_status from sys.dba_users where upper(username) = upper ( view_user ); IF view_user_acc_status like '%LOCKED%' THEN execute immediate 'alter user ' || view_user || ' account unlock'; END IF; IF view_user_acc_status like '%EXPIRED%' THEN sysman.mgmt_view_priv.set_view_user_creds ( repos_pwd ); sysman.mgmt_view_priv.GET_VIEW_USER_CREDS ( view_user, view_user_pwd ); execute immediate 'alter user ' || view_user || ' identified by ' || view_user_pwd || ''; END IF; end;
10:41:38 oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Starting execution: /path/sysman/admin/scripts/emca/emcaDbUtil /path/perl/lib:/path/perl/lib/site_perl:/path/sysman/admin/scripts:/path/bin: /path/perl/bin/perl /path/sysman/admin/scripts/emca/emcaDbUtil.pl /path bssdevpl SYS SYSDBA declare repos_pwd varchar2(30); view_user varchar2(30); view_user_pwd varchar2(30); view_user_acc_status varchar2(30); begin repos_pwd := ?; sysman.mgmt_view_priv.get_view_user(view_user); select account_status into view_user_acc_status from sys.dba_users where upper(username) = upper ( view_user ); IF view_user_acc_status like '%LOCKED%' THEN execute immediate 'alter user ' || view_user || ' account unlock'; END IF; IF view_user_acc_status like '%EXPIRED%' THEN sysman.mgmt_view_priv.set_view_user_creds ( repos_pwd ); sysman.mgmt_view_priv.GET_VIEW_USER_CREDS ( view_user, view_user_pwd ); execute immediate 'alter user ' || view_user || ' identified by ' || view_user_pwd || ''; END IF; end; 1 SYSMAN_PWD
10:41:41 oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Exit value of 0
10:41:41 oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Execution of /path/sysman/admin/scripts/emca/emcaDbUtil /path/perl/lib:/path/perl/lib/site_perl:/path/sysman/admin/scripts:/path/bin: /path/perl/bin/perl /path/sysman/admin/scripts/emca/emcaDbUtil.pl /path bssdevpl SYS SYSDBA declare repos_pwd varchar2(30); view_user varchar2(30); view_user_pwd varchar2(30); view_user_acc_status varchar2(30); begin repos_pwd := ?; sysman.mgmt_view_priv.get_view_user(view_user); select account_status into view_user_acc_status from sys.dba_users where upper(username) = upper ( view_user ); IF view_user_acc_status like '%LOCKED%' THEN execute immediate 'alter user ' || view_user || ' account unlock'; END IF; IF view_user_acc_status like '%EXPIRED%' THEN sysman.mgmt_view_priv.set_view_user_creds ( repos_pwd ); sysman.mgmt_view_priv.GET_VIEW_USER_CREDS ( view_user, view_user_pwd ); execute immediate 'alter user ' || view_user || ' identified by ' || view_user_pwd || ''; END IF; end; 1 SYSMAN_PWD completed successfully
10:41:41 oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Arguments passed /path bssdevpl SYS SYSDBA declare repos_pwd varchar2(30); view_user varchar2(30); view_user_pwd varchar2(30); view_user_acc_status varchar2(30); begin repos_pwd := ?; sysman.mgmt_view_priv.get_view_user(view_user); select account_status into view_user_acc_status from sys.dba_users where upper(username) = upper ( view_user ); IF view_user_acc_status like '%LOCKED%' THEN execute immediate 'alter user ' || view_user || ' account unlock'; END IF; IF view_user_acc_status like '%EXPIRED%' THEN sysman.mgmt_view_priv.set_view_user_creds ( repos_pwd ); sysman.mgmt_view_priv.GET_VIEW_USER_CREDS ( view_user, view_user_pwd ); execute immediate 'alter user ' || view_user || ' identified by ' || view_user_pwd || ''; END IF; end; 1 SYSMAN_PWD
Connecting to database bssdevpl in home /path with user "SYS" role "SYSDBA".
connected to database.
sql to execute declare repos_pwd varchar2(30); view_user varchar2(30); view_user_pwd varchar2(30); view_user_acc_status varchar2(30); begin repos_pwd := ?; sysman.mgmt_view_priv.get_view_user(view_user); select account_status into view_user_acc_status from sys.dba_users where upper(username) = upper ( view_user ); IF view_user_acc_status like '%LOCKED%' THEN execute immediate 'alter user ' || view_user || ' account unlock'; END IF; IF view_user_acc_status like '%EXPIRED%' THEN sysman.mgmt_view_priv.set_view_user_creds ( repos_pwd ); sysman.mgmt_view_priv.GET_VIEW_USER_CREDS ( view_user, view_user_pwd ); execute immediate 'alter user ' || view_user || ' identified by ' || view_user_pwd || ''; END IF; end;
noOfParams to bind: 1.
sql execute successfully.
10:41:41 oracle.sysman.emcp.EMReposConfig unlockMGMTAccount
CONFIG: Unlocked mgmt_view account
10:41:41 oracle.sysman.emcp.EMReposConfig invoke
CONFIG: Successfully unlocked mgmt_view account
10:41:41 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
10:41:41 oracle.sysman.emcp.util.GeneralUtil initSQLEngine
CONFIG: SQLEngine connecting with SID: bssdevpl, oracleHome: /path, and user: SYS
10:41:41 oracle.sysman.emcp.util.GeneralUtil initSQLEngine
CONFIG: SQLEngine created successfully and connected
10:41:41 oracle.sysman.emcp.ParamsManager checkListenerStatusForDBControl
CONFIG: Passed listener validation check.Listener is up and running.
10:41:41 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
10:41:41 oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
INFO: Uploading configuration data to EM repository (this may take a while) ...
10:43:48 oracle.sysman.emcp.EMReposConfig invoke
INFO: Uploaded configuration data successfully
10:43:48 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
10:43:48 oracle.sysman.emcp.EMDBCConfig updateEmomsProps
CONFIG: Updating file /path/sysman/config/emoms.properties ...
10:43:48 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
10:43:48 oracle.sysman.emcp.util.FileUtil _copyFile
10:43:49 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
10:43:49 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter MAIL_SERVER_SENDER_NAME.
10:43:49 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter EMAIL_ADDRESS.
10:43:49 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter MAIL_SERVER_NAME.
10:43:49 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
10:43:49 oracle.sysman.emcp.EMAgentConfig updateEmdProps
CONFIG: Updating file /path/sysman/config/emd.properties ...
10:43:49 oracle.sysman.emcp.util.FileUtil _copyFile
CONFIG: Copying file /path/sysman/config/emd.properties.emca to /path/sysman/config/emd.properties
10:43:49 oracle.sysman.emcp.util.FileUtil _copyFile
CONFIG: Copying file /path/sysman/config/emd.properties.emca.util.tmp to /path/sysman/config/emd.properties
10:43:49 oracle.sysman.emcp.EMAgentConfig updateAgentConfigFiles
CONFIG: Updating file /path/sysman/config/emd.properties ...
10:43:49 oracle.sysman.emcp.EMAgentConfig updateTargets
CONFIG: value for use102tgt: F
10:43:49 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter LISTENER_OH.
10:43:49 oracle.sysman.emcp.ParamsManager getListenerHome
CONFIG: LISTENER_OH not set. Using ORACLE_HOME as listener's home.
10:43:49 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
10:43:49 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
10:43:49 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter LISTENER.
10:43:49 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter LISTENER_OH.
10:43:49 oracle.sysman.emcp.ParamsManager getListenerHome
CONFIG: LISTENER_OH not set. Using ORACLE_HOME as listener's home.
10:43:49 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter LISTENER_OH.
10:43:49 oracle.sysman.emcp.ParamsManager getListenerHome
CONFIG: LISTENER_OH not set. Using ORACLE_HOME as listener's home.
10:43:49 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
10:43:50 oracle.sysman.emcp.ParamsManager getLocalListener
CONFIG: Found listener named: LISTENER
10:43:50 oracle.sysman.emcp.EMAgentConfig updateAgentConfigFiles
CONFIG: Updating file /path/sysman/emd/targets.xml ...
10:43:50 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
10:43:50 oracle.sysman.emcp.EMAgentConfig instantiateEMConfigFiles
CONFIG: Local host name: bss.com
10:43:50 oracle.sysman.emcp.util.ClusterUtil getLocalNode
CONFIG: isLocalNodeDone: T localNode: null
10:43:50 oracle.sysman.emcp.util.PlatformInterface addEnvVarToList
CONFIG: Value for env var 'DISPLAY' is '', discarding the same
10:43:50 oracle.sysman.emcp.util.PlatformInterface addEnvVarToList
CONFIG: Value for env var 'TZ' is '', discarding the same
10:43:50 oracle.sysman.emcp.util.PlatformInterface addEnvVarToList
CONFIG: Value for env var 'ORACLE_HOSTNAME' is '', discarding the same
10:43:50 oracle.sysman.emcp.util.PlatformInterface getSortedEnvArray
CONFIG: New Env List: [CLASSPATH=/path/jlib/emca.jar:/path/jlib/srvm.jar:/path/jlib/srvmasm.jar:/path/jlib/emConfigInstall.jar:/path/jlib/ldapjclnt11.jar:/path/jlib/ldap.jar:/path/jlib/share.jar:/path/jlib/srvmhas.jar:/path/jlib/netcfg.jar:/path/jlib/http_client.jar:/path/lib/http_client.jar:/path/lib/xmlparserv2.jar:/path/assistants/jlib/assistantsCommon.jar:/path/sysman/jlib/emCORE.jar:/path/sysman/jlib/emagentSDK.jar:/path/oui/jlib/OraInstaller.jar:/path/oui/jlib/OraPrereq.jar:/path/inventory/prereqs/oui/OraPrereqChecks.jar:/path/oui/jlib/OraPrereqChecks.jar:, DYLD_LIBRARY_PATH=/path/lib32:/path/lib:/path/perl/lib, G_BROKEN_FILENAMES=1, HISTSIZE=1000, HOME=/home/oracle, HOSTNAME=bss-ora-dev, INPUTRC=/etc/inputrc, KDEDIR=/usr, LANG=en_US.UTF-8, LD_LIBRARY_PATH=/path/jdk/jre/lib/i386/client:/path/jdk/jre/lib/i386:/path/jdk/jre/../lib/i386:/path/lib32:/path/lib:/path/perl/lib, LESSOPEN=|/usr/bin/lesspipe.sh %s, LIBPATH=/path/lib32:/path/lib:/path/perl/lib, LOGNAME=oracle, LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:, MAIL=/var/spool/mail/oracle, NEED_EXIT_CODE=1, NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat, ORACLE_HOME=/path, ORACLE_SID=bssdevpl, PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/oracle/bin:/path/bin, PWD=/home/oracle, SHELL=/bin/bash, SHLIB_PATH=/path/lib32:/path/lib:/path/perl/lib, SHLVL=2, SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass, TERM=xterm, USER=oracle, XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt, _=/path/jdk/jre/bin/java]
10:43:50 oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Starting execution: /path/bin/emctl deploy dbconsole /path/bss.com_bssdevpl bss.com:3938 bss.com bssdevpl
10:43:53 oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Exit value of 0
10:43:53 oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Execution of /path/bin/emctl deploy dbconsole /path/bss.com_bssdevpl bss.com:3938 bss.com bssdevpl completed successfully
10:43:53 oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Creating shared install...
Source location: /path
Destination (shared install) : /path/bss.com_bssdevpl
DeployMode : dbconsole
Creating directories...
Setting console properties ...
Setting log and trace files locations for Console ...
Setting log and trace files locations for Agent ...
10:43:53 oracle.sysman.emcp.EMAgentConfig updateDBControlPort
CONFIG: Setting https port as: -1
10:43:53 oracle.sysman.emcp.util.FileUtil _copyFile
CONFIG: Copying file /path/bss.com_bssdevpl/sysman/config/emoms.properties.emca.util.tmp to /path/bss.com_bssdevpl/sysman/config/emoms.properties
10:43:53 oracle.sysman.emcp.util.FileUtil _copyFile
CONFIG: Copying file /path/bss.com_bssdevpl/sysman/config/emd.properties.emca.util.tmp to /path/bss.com_bssdevpl/sysman/config/emd.properties
10:43:53 oracle.sysman.emcp.util.FileUtil _copyFile
CONFIG: Copying file /path/bss.com_bssdevpl/sysman/config/emd.properties.emca.util.tmp to /path/bss.com_bssdevpl/sysman/config/emd.properties
10:43:53 oracle.sysman.emcp.EMAgentConfig getCustomTargetName
CONFIG: targetsXML exists: /path/sysman/emd/targets.xml
10:43:53 oracle.sysman.emcp.EMAgentConfig getCustomTargetName
CONFIG: customTarget for oracle_database on node bss.com sid bssdevpl : bssdevpl
10:43:53 oracle.sysman.emcp.ParamsManager setParam
CONFIG: Setting param: CUSTOM_ORACLE_DB_TARGET value: bssdevpl
10:43:53 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter LISTENER.
10:43:53 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter LISTENER_OH.
10:43:53 oracle.sysman.emcp.ParamsManager getListenerHome
CONFIG: LISTENER_OH not set. Using ORACLE_HOME as listener's home.
10:43:53 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter LISTENER_OH.
10:43:53 oracle.sysman.emcp.ParamsManager getListenerHome
CONFIG: LISTENER_OH not set. Using ORACLE_HOME as listener's home.
10:43:53 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
10:43:53 oracle.sysman.emcp.ParamsManager getLocalListener
CONFIG: Found listener named: LISTENER
10:43:53 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter LISTENER_OH.
10:43:53 oracle.sysman.emcp.ParamsManager getListenerHome
CONFIG: LISTENER_OH not set. Using ORACLE_HOME as listener's home.
10:43:53 oracle.sysman.emcp.EMAgentConfig getCustomTargetName
CONFIG: targetsXML exists: /path/sysman/emd/targets.xml
10:43:53 oracle.sysman.emcp.EMAgentConfig getCustomTargetName
CONFIG: customTarget for oracle_listener on node bss.com sid null : LISTENER_bss.com
10:43:53 oracle.sysman.emcp.ParamsManager setParam
CONFIG: Setting param: CUSTOM_LSNR_TARGET value: LISTENER_bss.com
10:43:53 oracle.sysman.emcp.util.PlatformInterface getEnvProps
CONFIG: Returning env array from cache
10:43:53 oracle.sysman.emcp.util.PlatformInterface getSortedEnvArray
CONFIG: New Env List: [CLASSPATH=/path/jlib/emca.jar:/path/jlib/srvm.jar:/path/jlib/srvmasm.jar:/path/jlib/emConfigInstall.jar:/path/jlib/ldapjclnt11.jar:/path/jlib/ldap.jar:/path/jlib/share.jar:/path/jlib/srvmhas.jar:/path/jlib/netcfg.jar:/path/jlib/http_client.jar:/path/lib/http_client.jar:/path/lib/xmlparserv2.jar:/path/assistants/jlib/assistantsCommon.jar:/path/sysman/jlib/emCORE.jar:/path/sysman/jlib/emagentSDK.jar:/path/oui/jlib/OraInstaller.jar:/path/oui/jlib/OraPrereq.jar:/path/inventory/prereqs/oui/OraPrereqChecks.jar:/path/oui/jlib/OraPrereqChecks.jar:, DYLD_LIBRARY_PATH=/path/lib32:/path/lib:/path/perl/lib, G_BROKEN_FILENAMES=1, HISTSIZE=1000, HOME=/home/oracle, HOSTNAME=bss-ora-dev, INPUTRC=/etc/inputrc, KDEDIR=/usr, LANG=en_US.UTF-8, LD_LIBRARY_PATH=/path/lib32:/path/lib:/path/perl/lib:null, LESSOPEN=|/usr/bin/lesspipe.sh %s, LIBPATH=/path/lib32:/path/lib:/path/perl/lib, LOGNAME=oracle, LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:, MAIL=/var/spool/mail/oracle, NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat, ORACLE_HOME=/path, ORACLE_SID=bssdevpl, PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/oracle/bin:/path/bin, PERL5LIB=/path/perl/lib:/path/perl/lib/site_perl:/path/sysman/admin/scripts:/path/bin:, PWD=/home/oracle, SHELL=/bin/bash, SHLIB_PATH=/path/lib32:/path/lib:/path/perl/lib, SHLVL=2, SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass, TERM=xterm, USER=oracle, XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt, _=/path/jdk/jre/bin/java]
10:43:53 oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Starting execution: /path/perl/bin/perl /path/bin/targetdeploy.pl -d bssdevpl -n LISTENER_bss.com /path/bss.com_bssdevpl bss.com bssdevpl
10:43:53 oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Exit value of 0
10:43:53 oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Execution of /path/perl/bin/perl /path/bin/targetdeploy.pl -d bssdevpl -n LISTENER_bss.com /path/bss.com_bssdevpl bss.com bssdevpl completed successfully
10:43:53 oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Creating targets.xml in state directories...
Source location: /path
Destination : /path/bss.com_bssdevpl
Creating directories...
Creating targets.xml...
Done.
10:43:53 oracle.sysman.emcp.util.FileUtil _copyFile
CONFIG: Copying file /path/oraInst.loc to /path/bss.com_bssdevpl/oraInst.loc
10:43:53 oracle.sysman.emcp.EMAgentConfig createAgentTimeStampFile
CONFIG: Creating agntstmp.txt file. oh: /path stateDir: /path/bss.com_bssdevpl host: bss.com
10:43:53 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter MODIFY_SID.
10:43:53 oracle.sysman.emcp.EMAgentConfig createAgentTimeStampFile
CONFIG: File: /path/sysman/emd/agntstmp.txt.bssdevpl does not exists
10:43:53 oracle.sysman.emcp.EMAgentConfig instantiateEMConfigFiles
CONFIG: Successfully deployed state dirs for bss.com
10:43:53 oracle.sysman.emcp.EMAgentConfig performConfiguration
CONFIG: Successfully updated agent config files
10:43:53 oracle.sysman.emcp.util.CentralAgentUtil registerWithCentralAgents
INFO: Registering target(s) with central agent(s) (this may take a while)...
10:43:53 oracle.sysman.emcp.util.PlatformInterface addEnvVarToList
CONFIG: Value for env var 'DISPLAY' is '', discarding the same
10:43:53 oracle.sysman.emcp.util.PlatformInterface addEnvVarToList
CONFIG: Value for env var 'TZ' is '', discarding the same
10:43:53 oracle.sysman.emcp.util.PlatformInterface addEnvVarToList
CONFIG: Value for env var 'ORACLE_HOSTNAME' is '', discarding the same
10:43:53 oracle.sysman.emcp.util.PlatformInterface getEnvProps
CONFIG: Returning env array from cache
10:43:53 oracle.sysman.emcp.util.PlatformInterface getSortedEnvArray
CONFIG: New Env List: [CLASSPATH=/path/jlib/emca.jar:/path/jlib/srvm.jar:/path/jlib/srvmasm.jar:/path/jlib/emConfigInstall.jar:/path/jlib/ldapjclnt11.jar:/path/jlib/ldap.jar:/path/jlib/share.jar:/path/jlib/srvmhas.jar:/path/jlib/netcfg.jar:/path/jlib/http_client.jar:/path/lib/http_client.jar:/path/lib/xmlparserv2.jar:/path/assistants/jlib/assistantsCommon.jar:/path/sysman/jlib/emCORE.jar:/path/sysman/jlib/emagentSDK.jar:/path/oui/jlib/OraInstaller.jar:/path/oui/jlib/OraPrereq.jar:/path/inventory/prereqs/oui/OraPrereqChecks.jar:/path/oui/jlib/OraPrereqChecks.jar:, DYLD_LIBRARY_PATH=/path/lib32:/path/lib:/path/perl/lib, G_BROKEN_FILENAMES=1, HISTSIZE=1000, HOME=/home/oracle, HOSTNAME=bss-ora-dev, INPUTRC=/etc/inputrc, KDEDIR=/usr, LANG=en_US.UTF-8, LD_LIBRARY_PATH=/path/jdk/jre/lib/i386/client:/path/jdk/jre/lib/i386:/path/jdk/jre/../lib/i386:/path/lib32:/path/lib:/path/perl/lib, LESSOPEN=|/usr/bin/lesspipe.sh %s, LIBPATH=/path/lib32:/path/lib:/path/perl/lib, LOGNAME=oracle, LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:, MAIL=/var/spool/mail/oracle, NEED_EXIT_CODE=1, NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat, ORACLE_HOME=/path, ORACLE_SID=bssdevpl, PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/oracle/bin:/path/bin, PWD=/home/oracle, SHELL=/bin/bash, SHLIB_PATH=/path/lib32:/path/lib:/path/perl/lib, SHLVL=2, SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass, TERM=xterm, USER=oracle, XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt, _=/path/jdk/jre/bin/java]
10:43:53 oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Starting execution: /path/bin/emctl config agent addcentralagent /path /path
10:43:57 oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Exit value of 1
10:43:57 oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Oracle Enterprise Manager 11g Database Control Release 11.1.0.6.0
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
0 [main] ERROR emSDK.config - Warning: one of following could not be found:/path/bin/emtgtctl or /path/bss.com_bssdevpl/bin/emtgtctl
7 [main] ERROR emSDK.config - oracle.sysman.emSDK.conf.CentralHomeAdditionException: emtgtctl could not be found in the bin directory of either the local home at /path or the central home at /path/bss.com_bssdevpl
oracle.sysman.emSDK.conf.CentralHomeAdditionException: emtgtctl could not be found in the bin directory of either the local home at /path or the central home at /path/bss.com_bssdevpl
at oracle.sysman.emSDK.conf.TargetInstaller.addCentralAgentHome(TargetInstaller.java:1931)
at oracle.sysman.emSDK.conf.TargetInstaller.main(TargetInstaller.java:3167)
10:43:57 oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: emtgtctl could not be found in the bin directory of either the local home at /path or the central home at /path/bss.com_bssdevpl
10:43:57 oracle.sysman.emcp.util.PlatformInterface executeCommand
WARNING: Error executing /path/bin/emctl config agent addcentralagent /path /path
10:43:57 oracle.sysman.emcp.util.CentralAgentUtil registerWithCentralAgents
CONFIG: Error registering with /path
10:43:57 oracle.sysman.emcp.EMAgentConfig performConfiguration
WARNING: Error registering database targets with the central agent(s).
10:43:57 oracle.sysman.emcp.EMConfig perform
SEVERE: Error configuring central management. This target will not be centrally managed
Refer to the log file at /Oracle/app/oracle/cfgtoollogs/emca/bssdevpl/emca_2010_02_10_10_25_26.log for more details.
10:43:57 oracle.sysman.emcp.EMConfig perform
CONFIG: Stack Trace:
oracle.sysman.emcp.exception.EMConfigException: Error configuring central management. This target will not be centrally managed
at oracle.sysman.emcp.EMAgentConfig.performConfiguration(EMAgentConfig.java:1303)
at oracle.sysman.emcp.EMAgentConfig.invoke(EMAgentConfig.java:239)
at oracle.sysman.emcp.EMAgentConfig.invoke(EMAgentConfig.java:217)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:225)
at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:534)
at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1214)
at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:518)
at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:467) -
Error creating a user defined report in the grid control
I am trying to create a simple User Defined report in the Grid OEM
Under the 'Elements' tab I have a 'Type' - 'Database Table from SQL'
And I have this 'Statement' - SELECT * FROM SYS.DBA_USERS
When I Click the 'Preview' button I get this error.
Error rendering element. Exception: ORA-00942: table or view does not exist
I'm logged on as SYSTEM.
Isn't the SYS.DBA_USERS table accessible by SYSTEM?
Any advice on what I'm doing wrong/
Edited by: bfee_sdc on Oct 19, 2010 9:12 AMWhat are the tricks?
It has to be some what supported since I found this somewhere in an Oracle note...
How to create custom reports on tables other than mgmt* views.
To create reports on other tables, grant permissions to MGMT_VIEW user as MGMT_VIEW is responsible for creating reports in grid control
SQL> GRANT SELECT on SYSMAN.<table_name> to MGMT_VIEW;
And then create the reports in the reporting framework referencing SYSMAN.<table_name> in the query.
I tried GRANT SELECT on SYS.DBA_USERS to MGNT_VIEW but this did not work. -
New user created in oracle 11g (release 2) is not connecting (ORA-01017)
Hi All,
Kindly help me out regarding this.
I have created a new user using "ORACLE Enterprise Manager 11g" and used the same credentials in SQL developer for a new connection and it throw "ORA-01017: invalid username/password; logon denied" message.
Kindly note that have followed the following steps in creating user:
On the Users page, click Create.
In the Name field, enter NICK.
In the Profile list, accept the value DEFAULT.
This setting assigns the default password policy to user Nick.
In the Enter Password and Confirm Password fields, enter a password that is secure.
Create a password that is secure. See Oracle Database Security Guide for more information.
Do not select Expire password now. If the account status is set to expired, then the user or the database administrator must change the password before the user can log in to the database.
(Optional) Next to the Default Tablespace field, click the flashlight icon, select the USERS tablespace, and then click Select.
All schema objects that Nick creates will then be created in the USERS tablespace unless he specifies otherwise. If you leave the Default Tablespace field blank, Nick is assigned the default tablespace for the database, which is USERS in a newly installed database. For more information about the USERS tablespace, see "About Tablespaces".
(Optional) Next to the Temporary Tablespace field, click the flashlight icon, select the TEMP tablespace, and then click Select.
For the Status option, accept the default selection of Unlocked.
You can later lock the user account to prevent users from logging in with it. To temporarily deny access to a user account, locking the user account is preferable to deleting it, because deleting it also deletes all schema objects owned by the user.
Grant roles, system privileges, and object privileges to the user, as described in "Example: Granting Privileges and Roles to a User Account".
Note: Do not click OK in Step 13 of "Example: Granting Privileges and Roles to a User Account". Instead, skip that step and continue with Step 12 in this procedure.
Assign a 10 MB quota on the USERS tablespace, as described in "Example: Assigning a Tablespace Quota to a User Account".
If you did not click OK while assigning the tablespace quota (previous step), click OK now to create the user.Kindly note that I have log in as SYSTEM user and created this new user.
Could any one help me regarding this ?After connecting with sqlplus, as user SYSTEM and when tried the below, I could see that the new user created by me does not exist..
select '--' || username || '--'
from dba_users
order by username;
But when tried with GUI "ORACLE Enterprise Manager 11g" I can very well see the new user created by me..
How is this possible mate??
Is the user not properly created through GUI (than from where it is showing the new user)
Some more information i want to share;
i have used schema "HR"
And have used table space "USERS"
And tep tablespace "TEMP"
Edited by: 828569 on Jan 16, 2011 9:01 PM
Edited by: 828569 on Jan 16, 2011 9:03 PM -
Create session privillege has problem in 10g
Hi ,
I would need to create a user who only has access to select/update and delete records from the tables of a schema. For that , when I grant Connect/Create session privillege, the user is able to drop the table, alter the table by default.
Is it a bug that only providing create session privillege, user is able to drop the table and alter the table etc.
I am using Oracle 10g database.
Thank u,
RajiThe answer for the above query is
select *
from session_privs; I get all privilleges.
And when I execute the below statement,
select
lpad(' ', 2*level) || granted_role "User, his roles and privileges"
from
/* THE USERS */
select
null grantee,
username granted_role
from
dba_users
WHERE
username like upper('%KFC_LOAN')
/* THE ROLES TO ROLES RELATIONS */
union
select
grantee,
granted_role
from
dba_role_privs
/* THE ROLES TO PRIVILEGE RELATIONS */
union
select
grantee,
privilege
from
dba_sys_privs
START WITH grantee IS NULL
connect by grantee = prior granted_role;
I see that there are two roles for this user KFC_LOAN. One is ROLE_USER and other is DBA.
When I try to revoke DBA role,
REVOKE DBA FROM KFC_LOAN
Error starting at line 45 in command:
REVOKE DBA FROM KFC_LOAN
Error report:
SQL Error: ORA-01951: ROLE 'DBA' not granted to 'KFC_LOAN'
01951. 00000 - "ROLE '%s' not granted to '%s'"
*Cause: The role you tried to revoke was not granted to the user.
*Action: Don't try to revoke a privilege which is not granted.
I get the above message.
I granted ROLE user as below statement.
grant role_user to kfc_loan (kfc_loan is user) I dont know which the role of this user. I am assuming its the same. -
Oracle 11gR2 Partition tables not creating in default user tablespace
Hi all:
Not sure if i'm missing something or overlooked but when i create a partition table in a user schema, it is not creating in the schema's default tablespace instead creating with no assigned to any and using SYSTEM tablesspace.
create user dgp identified by dgp default tablespace dgp temporary tablespace temp;
grant connect, resource to dgp;select USERNAME,DEFAULT_TABLESPACE from dba_users where username ='DGP';
USERNAME DEFAULT_TABLESPACE
DGP DG
select table_name, tablespace_name, partitioned from all_tables where owner='DGP';
TABLE_NAME TABLESPACE_NAME PAR
AUDITLOG_P2 DG NO
AUDITLOG_P YES
This is the partition script i used --i also gave the tablespace name:
CREATE TABLE dgp.AUDITLOG_P(
entry_time DATE,
username VARCHAR2(14),
groupname VARCHAR2(100),
ip VARCHAR2(15),
command VARCHAR2(15),
directory VARCHAR2(300)
PARTITION BY RANGE (entry_time)
partition P_PAST VALUES LESS THAN (TO_DATE('2010-01-01','YYYY-MM-DD')),
tablespace DG;
============
What is it i'm missing? Anything different with Oracle 11gR2 on the partition creations?
Thanks for your help..
Regards,
AshYes, i tried using the schema login adn creating the table as well as system with schemaname prefix....
this is what i get from the below
SQL> select def_tablespace_name from dba_part_tables where table_name ='AUDITLOG_P';
DEF_TABLESPACE_NAME
DG
SQL> select partition_name, tablespace_name from dba_tab_partitions where table_name='AUDITLOG_P';
PARTITION_NAME TABLESPACE_NAME
P_PAST DG
P_20100101 DG
P_20100102 DG
P_20100103 DG
P_20100104 DG
P_20100105 DG
P_20100106 DG
P_20100107 DG
P_20100108 DG
P_20100109 DG
P_20100110 DG
P_20100111 DG
P_20100112 DG
P_20100113 DG
P_20100114 DG
P_20100115 DG
P_20100116 DG
P_20100117 DG
P_20100118 DG
P_20100119 DG
P_20100120 DG
P_20100121 DG
P_20100122 DG
P_20100123 DG
P_20100124 DG
P_20100125 DG
P_20100126 DG
P_20100127 DG
P_20100128 DG
P_20100129 DG
P_FUTURE DG
31 rows selected. -
Hi All,
As we know System/Manager is the super user for the database, who has privileges to create a new user where the users get stored in DBA_USERS and USER$ tables.
My Doubt is::::
How to give same privileges to the other users to create a new users, which gets stored in the DBA_USERS and USER$ Synonyms (created from DBA_USERS and USER$ tables from System/Manager)
Please Help...
Thanks,
BhujendraWhat do you mean exactly ? DBA_USERS is already a public synonym :
SYS@db102 SQL> select * from all_catalog where table_name='DBA_USERS';
OWNER TABLE_NAME TABLE_TYPE
SYS DBA_USERS VIEW
PUBLIC DBA_USERS SYNONYM
SYS@db102 SQL> -
How to create a database link in someone else's schema?
I have access to Sys, but I don't have the passwords to all personal accounts. generally if you have a create any privilege you just do
create <object> <schema>.object_name ....
if i try this with a database link, the link gets created in my schema with the first part as part of its name.
so
create database link <user>.<db link> does not put the link in the other schema.
what do I do?I assume Sybrand's suggestion works, but it is common not to know the schema passwords (who wants to remember them anyway?).
We use the time tested "db_su.sql" script:
-- db_su.sql: connect as another user
set term off
store set sqlplus_env rep
set pages 0 feed off ver off echo off term off
DEF user=&1
spo temp.sql
conn / as sysdba
select 'alter user &user identified by values '''||password||''';'
from dba_users where username = UPPER('&user')
spo off
alter user &user identified by temp;
connect &user/temp
START temp.sql
@sqlplus_env
set term on:p -
How to create a schema and assign roles with store procedure or function?
Hi All,
I am creating a webpage that will call oracle store procedure or function to create a schema and add roles. Please let me know if there a method to do that.
Thank youHi CristiBoboc,
Thank you very much for your help. Here is my code to create a user:
create or replace
FUNCTION user_create (user_name IN nvarchar2, user_pw IN nvarchar2)
RETURN number
IS
sql_stmt varchar2(200);
sql_stmt2 varchar2(200);
var_temp_count NUMBER(2);
un varchar2(30) := user_name;
up varchar2(30) := user_pw;
BEGIN
sql_stmt := 'create user :1 identified by :2
default tablespace users
temporary tablespace temp
quota 5m on users';
sql_stmt2 := 'grant developers to :1';
EXECUTE IMMEDIATE sql_stmt USING un,up;
EXECUTE IMMEDIATE sql_stmt2 USING un;
select count(*) into var_temp_count from dba_users where username = UPPER(user_name);
return var_temp_count;
END;
When I run, I get following error:
exec :myvar :=user_create('aaa','12345');
BEGIN :myvar :=user_create('aaa','12345'); END;
ERROR at line 1:
ORA-01935: missing user or role name
ORA-06512: at "CSDBA.USER_CREATE", line 15
ORA-06512: at line 1 -
How to Find the Explicitly Created Schemas in the Database?
Hi,
I am Using Oracle 11g Database R1 on Windows 2003 Server R2 , My Doubt is How Can i find the list of Schemas are explicitly created in the Database , We can Query this Tables DBA_USER Or SYS.USER$ to find the List of Available Schemas ( But it shows all implicity + Explicitly Created Schemas), I need the exact list of Schema Which created explicitly in the Database is there any Data Dictionary Views is Available , Please Advice .....
Thank You
ShanBut yes, you can get from below SQL :
select a.username,a.created from dba_users a,v$database b
where a.created > b.created;
Means, users which created after creation of database date.
Maybe you are looking for
-
How can delete his backup safety and totally?
My friends and I share a same time capsule ( 4th gen, 2TB), so if one day he leaves, how can delete his backup safety and totally?
-
Server admin beachballing like crazy
I just installed a clean 10.5 Server onto a secondary drive in our 2x867ghz MDD. This server doesn't do much, mostly Software Updates and Netboot. I set up with an advanced config and got everything running. The problem this time around is that Serve
-
HT4864 Are my SMTP settings correct?
On Windows Live Mail, I have successfully sent messages using my MobileMe (*******@me.com) account before, but for some reason, it is not working now. I can receive incoming messages, but not send a message. I get server response 334. The port is
-
Why do I get weird glitching pink lines in my export?
When I Export from Premiere Pro CC, I almost always get these weird pink lines glitching in the video file accompanied by skipping video... Usually it happens just at the very beginning of the exported clip, but sometimes it's happened the whole way
-
Turn off case sensitivity in filesystem
Hi everyone, I've been a long time UNIX user so upon installing Tiger from fresh (new harddrive) I was pleased to see case sensitivity is now fully supported in HFS+ However, lots of random programs now cease to work... although I'd like to have the