Pupblq.sql warning
hi all,
i created the database manually in 9ir2 redhat linux...
even after executing the pupbld.sql as system...when users login sql they get warnings...
what should i do ?
TA
SNY
Assuming pupbld.sql has been run successfully, there are several other known problems:
1) SYSTEM tablespace has no more space. Solution: increase its size and rerun the script.
2) User default tablespace is offline. Solution: make it online
3) Pupbld.sql was run, while system user was connected as SYSDBA ("CONNECT SYSTEM/<password> AS SYSDBA"). That does not work, because doing this Oracle connects as SYS. Solution: don't connect as SYSDBA
Werner
Similar Messages
-
How do I get rid of this sql warning?
Hi folks,
I am running oracle 10.2.0 on Linux. I would like to get rid of this sql code warning
(Warning(151,3): PLW-07202: bind type would result in conversion away from column type)I get when I compile the code below. Basically Oracle does not like the idea of using a number in an expression with sysdate. eg (sampling_date < sysdate - p_n_value) where p_n_value is a number;
What is the best way to do this?
CREATE TABLE "USERDATA"."TBL_SESSION_SQL_WAIT_HISTORY"
( "SESSION_SQL_WAIT_HIST_SEQ_ID" NUMBER,
"DBID" NUMBER,
"SID" NUMBER,
"SEQ#" NUMBER,
"EVENT" VARCHAR2(64 BYTE),
"P1TEXT" VARCHAR2(64 BYTE),
"P1" NUMBER,
"P1RAW" RAW(8),
"P2TEXT" VARCHAR2(64 BYTE),
"P2" NUMBER,
"P2RAW" RAW(8),
"P3TEXT" VARCHAR2(64 BYTE),
"P3" NUMBER,
"P3RAW" RAW(8),
"WAIT_TIME" NUMBER,
"SECONDS_IN_WAIT" NUMBER,
"STATE" VARCHAR2(19 BYTE),
"SAMPLING_DATE" DATE,
"SAMPLING_TIME" VARCHAR2(8 BYTE),
"SERIAL#" NUMBER,
"USERNAME" VARCHAR2(30 BYTE),
"OSUSER" VARCHAR2(30 BYTE),
"PADDR" RAW(4),
"LOGON_TIME" DATE,
"PROCESS" VARCHAR2(24 BYTE),
"SQL_HASH_VALUE" NUMBER,
"SADDR" RAW(4),
"MODULE" VARCHAR2(48 BYTE),
"ROW_WAIT_OBJ#" NUMBER,
"ROW_WAIT_FILE#" NUMBER,
"ROW_WAIT_BLOCK#" NUMBER,
"ROW_WAIT_ROW#" NUMBER
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 16384 NEXT 65536 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "USERDATA" ;
CREATE TABLE "USERDATA"."TBL_SQLTEXT_WAIT_HISTORY"
( "SQLTEXT_SEQ_ID" NUMBER,
"DBID" NUMBER,
"ADDRESS" RAW(4),
"HASH_VALUE" NUMBER,
"SQL_ID" VARCHAR2(13 BYTE),
"COMMAND_TYPE" NUMBER,
"PIECE" NUMBER,
"SQL_TEXT_PIECE" VARCHAR2(64 BYTE),
"SQL_TEXT" VARCHAR2(1000 BYTE),
"DISK_READS" NUMBER,
"BUFFER_GETS" NUMBER,
"DIRECT_WRITES" NUMBER,
"PARSE_CALLS" NUMBER
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 16384 NEXT 65536 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "USERDATA" ;
create or replace
PROCEDURE data_coll AS
p_n_value userdata.tbl_options.n_value%type; -- number
BEGIN
-- irrelevant code here
select n_value into p_n_value from tbl_options where name ='PURGE_DAY_COUNT';
DELETE FROM tbl_sqltext_wait_history t where t.hash_value in
(select s.sql_hash_value from cc_session_sql_wait_history s
where s.sampling_date < sysdate - p_n_value
and s.sql_hash_value = t.hash_value);
DELETE FROM tbl_session_sql_wait_history
WHERE sampling_date < sysdate - p_n_value;
END;Thanks in advance for your feedback.
rgds, Efachim
Edited by: efachim on Jan 19, 2009 10:44 AMOne general suggestion.
"TBL_SESSION_SQL_WAIT_HISTORY"Did you create your table and column names within double quotes?
It will make your table as case sensitive.
Regards.
Satyaki De. -
Mapping validates and generates ok but get pl/sql warn in deploy
Hi there
Can validate and generate mapping ok but when deploy get various pl/sql error messages such as error ... coulmn ignored
Anybody seen this sort of thing?
I'm new to OWB but would have hoped the validate stuff would pick up any bugs
otherwise not very useful since now have to go back to mapping and rip bits out and use deployemnt as a validation check.
Any Ideas?
Many ThanksThe validation are only relevant with the design repository. It only validates with whatever is there in the design repository matches with the mapping that you have created. It does not tell you if any column in a table is missing in the database.
Secondly some expression are not validated at times and gives warnings/errors only at deploy time. Probably this is what has heppened with you. Check your expressions, if they are syntactically correct or not and then try deployign again.
HTH
-AP -
Error while executing Multiple Stored Procedure through .sql file
Hi Guru's.
I am new to ORACLE. I am facing problem while creating Stored Procedure through .sql file.
I have one test.sql file with Stored Procedure is like,
CREATE OR REPLACE PROCEDURE skeleton1
AS
BEGIN
DBMS_Output.Put_Line('skeleton1');
END skeleton1;
CREATE OR REPLACE PROCEDURE skeleton2
AS
BEGIN
DBMS_Output.Put_Line('skeleton2');
END skeleton2;
Now when i try to execute this test.sql file through SQL PLUS it gives me Error like this
I am opening test.sql file from SQL PLUS,
SQL>
1 CREATE OR REPLACE PROCEDURE skeleton1
2 AS
3 BEGIN
4 DBMS_Output.Put_Line('skeleton1');
5 END skeleton1;
6 /
7 CREATE OR REPLACE PROCEDURE skeleton2
8 AS
9 BEGIN
10 DBMS_Output.Put_Line('skeleton2');
11* END skeleton2;
SQL> /
Warning: Procedure created with compilation errors.
SQL> show errors;
Errors for PROCEDURE SKELETON1:
LINE/COL ERROR
6/1 PLS-00103: Encountered the symbol "/"
SQL>
Please suggest how to create multiple CREATE PROCEDURE using single .sql script file....
Regards,
ShatrughanHi,
Try this
CREATE OR REPLACE PROCEDURE skeleton1
AS
BEGIN
DBMS_Output.Put_Line('skeleton1');
END ;
CREATE OR REPLACE PROCEDURE skeleton2
AS
BEGIN
DBMS_Output.Put_Line('skeleton2');
END;
/Save the file and call it.
Regards,
Bhushan -
Create table statement in a pl/sql procedure
Hi all.
I have a problem in Oracle 10g.
First of all I must say that I'm new in oracle 10.
I have a stored procedure in which I have the instruction "create table name_table as
select col1,col2,col3,..ecc
from table1, table2
where table1.col1 = table2.col2"
When I compile this procedure it gives me an error.
Is it changed the sintax????
Is there anyone that can help me???
Thanks all for the collaboration,
FabrizioA little mistake -- see it --
SQL> ed
Wrote file afiedt.buf
1 Create or replace procedure My_procedure as
2 begin
3 EXECUTE IMMEDIATE 'create table my_table(fld number(5));'
4* end;
SQL> /
Warning: Procedure created with compilation errors.
SQL>
SQL>
SQL> ed
Wrote file afiedt.buf
1 Create or replace procedure My_procedure as
2 str varchar2(200);
3 begin
4 str := 'create table my_table(fld number(5))';
5 EXECUTE IMMEDIATE(str);
6* end;
SQL> /
Procedure created.
SQL>
SQL>
SQL> Create or replace procedure My_procedure as
2 begin
3 EXECUTE IMMEDIATE 'create table my_table(fld number(5));'
4 end;
5 /
Warning: Procedure created with compilation errors.
SQL> ed
Wrote file afiedt.buf
1 Create or replace procedure My_procedure as
2 begin
3 EXECUTE IMMEDIATE 'create table my_table(fld number(5))';
4* end;
SQL> /
Procedure created.Regards.
Satyaki De.
N.B.: Please check the bolded line. You didn't write the ; outside the quotation. Otherwise, it will compile successfully. -
Warning messages in adpatch logs??
hi Friends ,
we are on R12.1.2 on OEL 5.4, while applying R12.1.3 patch we are getting the below Warning messages, could any one clarify why these warnings are coming and can we safly ignore these messages.
Warning messages in ADPATCH log file.
WARNING: Unable to load metadata entry from zip file /d01/DEV/apps/tech_st/10.1.2/jlib/ewt3.jar
WARNING: Unable to load metadata entry from zip file /d01/DEV/apps/tech_st/10.1.2/jlib/ewt3-nls.jar
WARNING: Will not load stale resource unit META-INF/services/java.sql
WARNING: Unable to load metadata entry from zip file /d01/DEV/apps/tech_st/10.1.3/lib/xmlparserv2.jar
WARNING: Unable to load metadata entry from zip file /d01/DEV/apps/tech_st/10.1.3/j2ee/oafm/applications/mapviewer/web/WEB-INF/lib/mvclient.jar
WARNING: Unable to load metadata entry from zip file /d01/DEV/apps/tech_st/10.1.3/j2ee/home/lib/mail.jar
WARNING: Unable to load metadata entry from zip file /d01/DEV/apps/tech_st/10.1.3/j2ee/home/lib/activation.jar
WARNING: The following path(s), defined in /d01/DEV/apps/apps_st/appl/fnd/12.0.0/java/make/fndjar.dep as elements of the output file fndbipres.jar, could not be found
in any area:
WARNING: The following path(s), defined in /d01/DEV/apps/apps_st/appl/fnd/12.0.0/java/make/fndjar.dep as elements of the output file fndbicmn.jar, could not be found
in any area:
WARNING: The following path(s), defined in /d01/DEV/apps/apps_st/appl/fnd/12.0.0/java/make/fndjar.dep as elements of the output file fndforms.jar, could not be found
in any area:
WARNING: The following path(s), defined in /d01/DEV/apps/apps_st/appl/fnd/12.0.0/java/make/fndjar.dep as elements of the output file fndaol.jar, could not be found in
any area:
WARNING: The following path(s), defined in /d01/DEV/apps/apps_st/appl/fnd/12.0.0/java/make/fndjar.dep as elements of the output file fndctx.jar, could not be found in
any area:
WARNING: The following path(s), defined in /d01/DEV/apps/apps_st/appl/fnd/12.0.0/java/make/fndjar.dep as elements of the output file wfmon.jar, could not be found in
any area:
WARNING: The following path(s), defined in /d01/DEV/apps/apps_st/appl/fnd/12.0.0/java/make/fndjar.dep as elements of the output file wfapi.jar, could not be found in
any area:
WARNING: The following path(s), defined in /d01/DEV/apps/apps_st/appl/fnd/12.0.0/java/make/fndjar.dep as elements of the output file fndprospect.jar, could not be
found in any area:
WARNING: The following path(s), defined in /d01/DEV/apps/apps_st/appl/fnd/12.0.0/java/make/fndjar.dep as elements of the output file fndaroraclnt.jar, could not be
found in any area:
WARNING: The following path(s), defined in /d01/DEV/apps/apps_st/appl/fnd/12.0.0/java/make/fndjar.dep as elements of the output file jboremote.jar, could not be found
in any area:
WARNING: The following path(s), defined in /d01/DEV/apps/apps_st/appl/fnd/12.0.0/java/make/fndjar.dep as elements of the output file jbovbclient.jar, could not be
found in any area:
WARNING: The following path(s), defined in /d01/DEV/apps/apps_st/appl/fnd/12.0.0/java/make/fndjar.dep as elements of the output file jdev-rt.jar, could not be found in
any area:
WARNING: The following path(s), defined in /d01/DEV/apps/apps_st/appl/fnd/12.0.0/java/make/fndjar.dep as elements of the output file fndaolj.jar, could not be found in
any area:
Thanks
RaghuHi,
You can ignore similar warning messages -- See (Oracle Applications DBA Minipack R12.AD.A [ID 401424.1]) for details. However, I would suggest you log a SR to confirm this with Oracle support.
Thanks,
Hussein -
Rectify the error in PL/SQL code
CMW_BC_CALC_OF_FIN_YR_SDATE is a function which returns financial start date and CMW_BC_CALC_OF_FIN_YR_EDATE returns financial end date.
I/P: 2004, 01-jan-2003
O/P: A
1 CREATE OR REPLACE FUNCTION CMW_BC_A_C_R
2 (
3 D IN VARCHAR2, RD IN DATE
4 ) RETURN VARCHAR2 is
5 SDATE DATE;
6 EDATE DATE;
7 TYPE VARCHAR2;
8 BEGIN
9 SDATE:=CMW_BC_CALC_OF_FIN_YR_SDATE(D);
10 EDATE:=CMW_BC_CALC_OF_FIN_YR_EDATE(D);
11 If RD<EDATE and RD>SDATE
12 then TYPE:='C';
13 end if;
14 If RD>EDATE
15 then TYPE:='A';
16 end if;
17 If RD<SDATE
18 then TYPE:='R';
19 end if;
20 return(TYPE);
21* END;
SQL> /
Warning: Function created with compilation errors.
SQL> show error;
Errors for FUNCTION CMW_BC_A_C_R:
LINE/COL ERROR
0/0 PL/SQL: Compilation unit analysis terminated
4/11 PLS-00498: illegal use of a type before its declaration
SQL>Hi,
Use
SELECT * FROM V$RESERVED_WORDS
to know all the reserve words.
Regards -
Accessing DBA_TABLES from PL/SQL
Hi all,
Can I access DBA_TABLES from a PL/SQL block?
Following is the code I tried:
SQL> SHOW USER
USER is "SYSTEM"
SQL> ED
Wrote file afiedt.buf
1 CREATE OR REPLACE PACKAGE BODY BARAKAU
2 AS
3 PROCEDURE UPPER_COLS ( P_USER VARCHAR2, P_TABLE VARCHAR2 ) IS
4 BEGIN
5 -- loop through tables
6 FOR T IN ( SELECT TABLE_NAME FROM DBA_TABLES WHERE TABLE_NAME = NVL(P_TABLE, TABLE_NAME)
7 AND OWNER=UPPER(P_USER) ORDER BY TABLE_NAME) LOOP
8 DBMS_OUTPUT.PUT_LINE(T.TABLE_NAME || ' processed');
9 END LOOP;
10 END UPPER_COLS;
11* END BARAKAU;
SQL> /
Warning: Package Body created with compilation errors.
SQL> SHOW ERROR
Errors for PACKAGE BODY BARAKAU:
LINE/COL ERROR
6/13 PL/SQL: SQL Statement ignored
6/36 PL/SQL: ORA-00942: table or view does not exist
8/4 PL/SQL: Statement ignored
8/25 PLS-00364: loop index variable 'T' use is invalid
SQL> L 6
6* FOR T IN ( SELECT TABLE_NAME FROM DBA_TABLES WHERE TABLE_NAME = NVL(P_TABLE, TABLE_NAME)Oracle 11g on WindowsHi,
SQL> SHOW USER
User is "SYS"
SQL>
Package created
Package body created
No errors for PACKAGE BODY SYS.BARAKAUPackage creation:
CREATE OR REPLACE PACKAGE BARAKAU AS
PROCEDURE UPPER_COLS(P_USER VARCHAR2,
P_TABLE VARCHAR2);
END BARAKAU;
CREATE OR REPLACE PACKAGE BODY BARAKAU AS
PROCEDURE UPPER_COLS(P_USER VARCHAR2,
P_TABLE VARCHAR2) IS
BEGIN
-- loop through tables
FOR T IN (SELECT TABLE_NAME
FROM DBA_ALL_TABLES
WHERE TABLE_NAME = NVL(P_TABLE, TABLE_NAME)
AND OWNER = UPPER(P_USER)
ORDER BY TABLE_NAME)
LOOP
DBMS_OUTPUT.PUT_LINE(T.TABLE_NAME || ' processed');
END LOOP;
END UPPER_COLS;
END BARAKAU;
SHOW ERRORSNote: It's not a good idea create specific packages or other objects with users like sys or system...
Regards, -
PL/SQL: ORA-01031: insufficient privileges
Hi Guys,
I am trying to create a package, inside that package create a function.
I am getting error - PL/SQL: ORA-01031: insufficient privileges.
I have done -
1. Conn system/system@mydb
2. Grant select on system.v_db_name to <user>
3. Conn <user>/<pwd>@mydb
4. Create or Replace Function get_db_name Return VARCHAR2 IS
v_db_name1 VARCHAR2(100):= NULL;
BEGIN
Select instance_name into v_db_name1
from system.v_db_name
where rownum<2;
IF Lower(v_db_name1) = 'vdev9i' THEN
v_db_name1 := 'vd';
ELSIF Lower(v_db_name1) = 'vcal9i' THEN
v_db_name1 := 'vc';
ELSIF Lower(v_db_name1) = 'vlive9i' THEN
v_db_name1 := 'vl';
END IF; RETURN v_db_name1;
END;
I understand that privileges have to be given directly and not through role.
That is what i have done in first step, but still this error persists.
Can anyone please help in this?
Thanks!
Av.Hi Mtichel,
Thanks for your feedback,
I have given explicit grants to User1 on sys.v_$instance as follows -
SQL> Conn sys/<pwd>@dbname as sysdba
SQL> grant select on sys.v_$instance to User1
SQL> Conn system/<pwd>@dbname
SQL> Grant select on system.v_db_name to User1
SQL> Conn User1/<pwd>@dbname
SQL> Select * from v_db_name - successfull
SQL>
1 create or replace Function get_db_name Return VARCHAR2 IS
2 v_db_name VARCHAR2(100):= NULL;
3 BEGIN
4 Select instance_name into v_db_name
5 from system.v_db_name
6 where rownum<2;
7 IF Lower(v_db_name) = 'vdev9i' THEN
8 v_db_name := 'vd';
9 ELSIF Lower(v_db_name) = 'vcal9i' THEN
10 v_db_name := 'vc';
11 ELSIF Lower(v_db_name) = 'vlive9i' THEN
12 v_db_name := 'vl';
13 END IF; RETURN v_db_name;
14* END;
SQL> /
Warning: Function created with compilation errors.
SQL> sho err
Errors for FUNCTION GET_DB_NAME:
LINE/COL ERROR
4/2 PL/SQL: SQL Statement ignored
5/14 PL/SQL: ORA-01031: insufficient privileges -
Enterprise Manager is not able to connect to the database instance....
Hi all,
Currently i'm facing a big issue here.
I have install the Oracle 10g on Window 2003 SE.
And currently the Enterprise manager is not be able to conenct to the database and my database is still running.With my listener is up.
But from the Enterprise manager's it show that everythg is down.
and when i try to restart it,i ask for os id and password and dbuser and dbpassword.
frm the SQL plus,i can easily startup and shutdown the database.
So i would like to know i can rectify this problem.
please kindly help me.I have post the setting of the databse as below
tnsnames.ora
==========
# Filename......: tnsnames.ora
# Created.......: created by SAP AG, R/3 Rel. >= 6.10
# Name..........:
# Date..........:
# @(#) $Id: //bc/700-1_REL/src/ins/SAPINST/impl/tpls/ora/ind/TNSNAMES.ORA#4 $
SDB.WORLD=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = SAP_SOLMAN)
(PORT = 1527)
(CONNECT_DATA =
(SID = SDB)
(GLOBAL_NAME = SDB.WORLD)
sqlnet.ora
========
# sqlnet.ora Network Configuration File: E:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\sqlnet.ora
# Generated by Oracle configuration tools.
# 05.01.06 set to default
#TCP.NODELAY=YES
# 05.01.06 set to 32768
# 05.01.06 unsorported parameter now
#NAME.DEFAULT_ZONE = WORLD
# 05.01.06 set the default to 10
# Filename......: sqlnet.ora
# Created.......: created by SAP AG, R/3 Rel. >= 6.10
# Name..........:
# Date..........:
# @(#) $Id: //bc/700-1_REL/src/ins/SAPINST/impl/tpls/ora/ind/SQLNET.ORA#4 $
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT, HOSTNAME, LDAP)
NAMES.DEFAULT_DOMAIN = WORLD
DEFAULT_SDU_SIZE = 32768
SQLNET.EXPIRE_TIME = 10
Listener.ora
=========
# Filename......: listener.ora
# Created.......: created by SAP AG, R/3 Rel. >= 6.10
# Name..........:
# Date..........:
# @(#) $Id: //bc/700-1_REL/src/ins/SAPINST/impl/tpls/ora/ind/LISTENER.ORA#4 $
ADMIN_RESTRICTIONS_LISTENER = on
LISTENER =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = IPC)
(KEY = SDB.WORLD)
(ADDRESS=
(PROTOCOL = IPC)
(KEY = SDB)
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = SAP_SOLMAN)
(PORT = 1527)
STARTUP_WAIT_TIME_LISTENER = 0
CONNECT_TIMEOUT_LISTENER = 10
TRACE_LEVEL_LISTENER = OFF
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = SDB)
(ORACLE_HOME = E:\oracle\product\10.2.0\db_1)
Listener status
===========
LSNRCTL> status
Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=SDB.WORLD))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
ction
Start Date 15-AUG-2006 15:14:48
Uptime 0 days 2 hr. 43 min. 31 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File E:\oracle\product\10.2.0\db_1\network\admin\listener.o
ra
Listener Log File E:\oracle\product\10.2.0\db_1\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\SDB.WORLDipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\SDBipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=SAP_solman)(PORT=1527)))
Services Summary...
Service "SDB" has 1 instance(s).
Instance "SDB", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
emoms.log
========
2006-08-15 18:03:20,562 [HttpRequestHandler-2254042] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = Io exception: The Network Adapter could not establish the connection
2006-08-15 18:03:21,547 [HttpRequestHandler-2254042] WARN jdbc.ConnectionCache _getConnection.303 - Got a fatal exeption when getting a connection; Error code = 17002; Cleaning up cache and retrying
2006-08-15 18:03:21,547 [HttpRequestHandler-2254042] WARN jdbc.ConnectionCache _getConnection.306 - Io exception: The Network Adapter could not establish the connection
java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:111)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:145)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:254)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:386)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:493)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:164)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:34)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:767)
at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:324)
at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:114)
at oracle.jdbc.pool.OracleConnectionCacheImpl.getNewPoolOrXAConnection(OracleConnectionCacheImpl.java:694)
at oracle.jdbc.pool.OracleConnectionCacheImpl.getPooledConnection(OracleConnectionCacheImpl.java:540)
at oracle.jdbc.pool.OracleConnectionCacheImpl.getConnection(OracleConnectionCacheImpl.java:346)
at oracle.jdbc.pool.OracleConnectionCacheImpl.getConnection(OracleConnectionCacheImpl.java:324)
at oracle.sysman.util.jdbc.ConnectionCache._getConnection(ConnectionCache.java:296)
at oracle.sysman.util.jdbc.ConnectionCache.getUnwrappedConnection(ConnectionCache.java:423)
at oracle.sysman.emSDK.svc.conn.FGAConnectionCache.getFGAConnection(FGAConnectionCache.java:156)
at oracle.sysman.emSDK.svc.conn.ConnectionService.getPrivateConnection(ConnectionService.java:605)
at oracle.sysman.emdrep.receiver.OMSHandshake.getParameterFromDB(OMSHandshake.java:387)
at oracle.sysman.emdrep.receiver.OMSHandshake.getMaxAgentCompatVer(OMSHandshake.java:369)
at oracle.sysman.emdrep.receiver.OMSHandshake.handshake(OMSHandshake.java:794)
at oracle.sysman.emdrep.receiver.OMSHandshake.handshake(OMSHandshake.java:648)
at oracle.sysman.emdrep.receiver.FxferRecv.doGet(FxferRecv.java:658)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:239)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:604)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:793)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
2006-08-15 18:03:22,531 [HttpRequestHandler-2254042] ERROR eml.OMSHandshake getParameterFromDB.402 - Io exception: The Network Adapter could not establish the connection
2006-08-15 18:03:22,531 [HttpRequestHandler-2254042] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://SAP_solman:3938/emd/main)(ERROR = INTERNAL_ERROR)
2006-08-15 18:03:35,547 [HttpRequestHandler-9249408] WARN jdbc.ConnectionCache _getConnection.303 - Got a fatal exeption when getting a connection; Error code = 17002; Cleaning up cache and retrying
2006-08-15 18:03:35,547 [HttpRequestHandler-9249408] WARN jdbc.ConnectionCache _getConnection.306 - Io exception: The Network Adapter could not establish the connection
java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:111)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:145)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:254)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:386)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:493)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:164)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:34)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:767)
at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:324)
at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:114)
at oracle.jdbc.pool.OracleConnectionCacheImpl.getNewPoolOrXAConnection(OracleConnectionCacheImpl.java:694)
at oracle.jdbc.pool.OracleConnectionCacheImpl.getPooledConnection(OracleConnectionCacheImpl.java:540)
at oracle.jdbc.pool.OracleConnectionCacheImpl.getConnection(OracleConnectionCacheImpl.java:346)
at oracle.jdbc.pool.OracleConnectionCacheImpl.getConnection(OracleConnectionCacheImpl.java:324)
at oracle.sysman.util.jdbc.ConnectionCache._getConnection(ConnectionCache.java:296)
at oracle.sysman.util.jdbc.ConnectionCache.getUnwrappedConnection(ConnectionCache.java:423)
at oracle.sysman.emSDK.svc.conn.FGAConnectionCache.getFGAConnection(FGAConnectionCache.java:156)
at oracle.sysman.emSDK.svc.conn.ConnectionService.getPrivateConnection(ConnectionService.java:605)
at oracle.sysman.emSDK.svc.conn.ConnectionService.getRepositoryVersionAndMode(ConnectionService.java:368)
at oracle.sysman.emSDK.svc.conn.ConnectionService.verifyRepositoryEx(ConnectionService.java:395)
at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:144)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:793)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
2006-08-15 18:03:36,531 [HttpRequestHandler-9249408] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = Io exception: The Network Adapter could not establish the connection
2006-08-15 18:03:36,531 [EMUI_18_03_36_/console/aboutApplication] ERROR em.console doGet.311 - java.lang.IllegalStateException: Response has already been committed
java.lang.IllegalStateException: Response has already been committed
at com.evermind.server.http.EvermindHttpServletResponse.resetBuffer(EvermindHttpServletResponse.java:1901)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:211)
at oracle.sysman.emSDK.svlt.PageHandler.render(PageHandler.java:773)
at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:396)
at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:688)
at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:291)
at oracle.sysman.eml.app.Console.doGet(Console.java:135)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.sysman.emSDK.svlt.EMRedirectFilter.doFilter(EMRedirectFilter.java:101)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
at oracle.sysman.db.adm.inst.HandleRepDownFilter.doFilter(HandleRepDownFilter.java:123)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:239)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:793)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
OracleDBConsoleSDBsrvc.log
======================
-------------- [OracleDBConsoleSDB] ------------
EMDROOT=E:\oracle\product\10.2.0\db_1
ORACLE_HOME=E:\oracle\product\10.2.0\db_1
EMDSTATE=E:\oracle\product\10.2.0\db_1\SAP_solman_SDB
CONSOLE_CFG=dbconsole
TRACE_LEVEL=16
TIMEOUT=15
08/09/06 15:11:59 Start pending...
08/09/06 15:11:59 Verifying dbconsole is not started already. Command line "E:\oracle\product\10.2.0\db_1\bin\emctl.bat" istatus dbconsole
08/09/06 15:12:04 dbconsole launch commandline is "E:\oracle\product\10.2.0\db_1\bin\emctl.bat" istart dbconsole
08/09/06 15:12:04 Tracking process launch...
08/09/06 15:12:41 Received exitCode 3 from emctl istatus
08/09/06 15:12:41 dbconsole started
08/11/06 08:46:03 Recieved ServCtrlHdlr command, 5
08/11/06 08:46:03 Stopping dbconsole
08/11/06 08:46:03 Launching stop EMD process...
08/11/06 08:46:03 Waiting for stop EMD process to exit. numRetries=74
08/11/06 08:46:06 Stop process has exited with exitCode: 0
08/11/06 08:46:06 Waiting for emwd process to exit. numRetries=74
08/11/06 08:46:06 Watchdog process exited with exit code 15
08/11/06 08:46:06 Signal Shutdown event.
08/11/06 08:46:06 Shutdown thread exited.
08/11/06 08:46:06 ServiceMain wake up by ShutdownProc, emwd has exited. ServiceMain exits
-------------- [OracleDBConsoleSDB] ------------
EMDROOT=E:\oracle\product\10.2.0\db_1
ORACLE_HOME=E:\oracle\product\10.2.0\db_1
EMDSTATE=E:\oracle\product\10.2.0\db_1\SAP_solman_SDB
CONSOLE_CFG=dbconsole
TRACE_LEVEL=16
TIMEOUT=15
08/11/06 08:45:17 Start pending...
08/11/06 08:45:17 Verifying dbconsole is not started already. Command line "E:\oracle\product\10.2.0\db_1\bin\emctl.bat" istatus dbconsole
08/11/06 08:45:26 dbconsole launch commandline is "E:\oracle\product\10.2.0\db_1\bin\emctl.bat" istart dbconsole
08/11/06 08:45:26 Tracking process launch...
08/11/06 08:46:11 Received exitCode 3 from emctl istatus
08/11/06 08:46:11 dbconsole started
08/11/06 08:48:58 Recieved ServCtrlHdlr command, 5
08/11/06 08:48:58 Stopping dbconsole
08/11/06 08:48:58 Launching stop EMD process...
08/11/06 08:48:58 Waiting for stop EMD process to exit. numRetries=74
08/11/06 08:49:02 Stop process has exited with exitCode: 0
08/11/06 08:49:02 Waiting for emwd process to exit. numRetries=74
08/11/06 08:49:02 Watchdog process exited with exit code 15
08/11/06 08:49:02 Signal Shutdown event.
08/11/06 08:49:02 Shutdown thread exited.
08/11/06 08:49:02 ServiceMain wake up by ShutdownProc, emwd has exited. ServiceMain exits
-------------- [OracleDBConsoleSDB] ------------
EMDROOT=E:\oracle\product\10.2.0\db_1
ORACLE_HOME=E:\oracle\product\10.2.0\db_1
EMDSTATE=E:\oracle\product\10.2.0\db_1\SAP_solman_SDB
CONSOLE_CFG=dbconsole
TRACE_LEVEL=16
TIMEOUT=15
08/11/06 08:53:20 Start pending...
08/11/06 08:53:20 Verifying dbconsole is not started already. Command line "E:\oracle\product\10.2.0\db_1\bin\emctl.bat" istatus dbconsole
08/11/06 08:53:29 dbconsole launch commandline is "E:\oracle\product\10.2.0\db_1\bin\emctl.bat" istart dbconsole
08/11/06 08:53:29 Tracking process launch...
08/11/06 08:54:14 Received exitCode 3 from emctl istatus
08/11/06 08:54:14 dbconsole started
08/11/06 11:37:30 Recieved ServCtrlHdlr command, 5
08/11/06 11:37:30 Stopping dbconsole
08/11/06 11:37:30 Launching stop EMD process...
08/11/06 11:37:30 Waiting for stop EMD process to exit. numRetries=74
08/11/06 11:37:34 Stop process has exited with exitCode: 0
08/11/06 11:37:34 Waiting for emwd process to exit. numRetries=74
08/11/06 11:37:34 Watchdog process exited with exit code 15
08/11/06 11:37:34 Signal Shutdown event.
08/11/06 11:37:34 Shutdown thread exited.
08/11/06 11:37:34 ServiceMain wake up by ShutdownProc, emwd has exited. ServiceMain exits
-------------- [OracleDBConsoleSDB] ------------
EMDROOT=E:\oracle\product\10.2.0\db_1
ORACLE_HOME=E:\oracle\product\10.2.0\db_1
EMDSTATE=E:\oracle\product\10.2.0\db_1\SAP_solman_SDB
CONSOLE_CFG=dbconsole
TRACE_LEVEL=16
TIMEOUT=15
08/11/06 11:36:48 Start pending...
08/11/06 11:36:48 Verifying dbconsole is not started already. Command line "E:\oracle\product\10.2.0\db_1\bin\emctl.bat" istatus dbconsole
08/11/06 11:36:56 dbconsole launch commandline is "E:\oracle\product\10.2.0\db_1\bin\emctl.bat" istart dbconsole
08/11/06 11:36:56 Tracking process launch...
08/11/06 11:37:41 Received exitCode 3 from emctl istatus
08/11/06 11:37:41 dbconsole started
08/15/06 09:31:52 Recieved ServCtrlHdlr command, 5
08/15/06 09:31:52 Stopping dbconsole
08/15/06 09:31:52 Launching stop EMD process...
08/15/06 09:31:52 Waiting for stop EMD process to exit. numRetries=74
08/15/06 09:31:56 Stop process has exited with exitCode: 0
08/15/06 09:31:56 Waiting for emwd process to exit. numRetries=74
08/15/06 09:31:56 Watchdog process exited with exit code 15
08/15/06 09:31:56 Signal Shutdown event.
08/15/06 09:31:56 Shutdown thread exited.
08/15/06 09:31:56 ServiceMain wake up by ShutdownProc, emwd has exited. ServiceMain exits
-------------- [OracleDBConsoleSDB] ------------
EMDROOT=E:\oracle\product\10.2.0\db_1
ORACLE_HOME=E:\oracle\product\10.2.0\db_1
EMDSTATE=E:\oracle\product\10.2.0\db_1\SAP_solman_SDB
CONSOLE_CFG=dbconsole
TRACE_LEVEL=16
TIMEOUT=15
08/15/06 09:31:06 Start pending...
08/15/06 09:31:06 Verifying dbconsole is not started already. Command line "E:\oracle\product\10.2.0\db_1\bin\emctl.bat" istatus dbconsole
08/15/06 09:31:14 dbconsole launch commandline is "E:\oracle\product\10.2.0\db_1\bin\emctl.bat" istart dbconsole
08/15/06 09:31:14 Tracking process launch...
08/15/06 09:31:49 Did not hear back from emctl istatus.
08/15/06 09:31:49 Waiting a further 5 secs...
08/15/06 09:31:51 Received exitCode 3 from emctl istatus
08/15/06 09:31:51 dbconsole started
08/15/06 15:15:31 Recieved ServCtrlHdlr command, 5
08/15/06 15:15:31 Stopping dbconsole
08/15/06 15:15:31 Launching stop EMD process...
08/15/06 15:15:31 Waiting for stop EMD process to exit. numRetries=74
08/15/06 15:15:34 Stop process has exited with exitCode: 0
08/15/06 15:15:34 Waiting for emwd process to exit. numRetries=74
08/15/06 15:15:34 Watchdog process exited with exit code 15
08/15/06 15:15:34 Signal Shutdown event.
08/15/06 15:15:34 Shutdown thread exited.
08/15/06 15:15:34 ServiceMain wake up by ShutdownProc, emwd has exited. ServiceMain exits
-------------- [OracleDBConsoleSDB] ------------
EMDROOT=E:\oracle\product\10.2.0\db_1
ORACLE_HOME=E:\oracle\product\10.2.0\db_1
EMDSTATE=E:\oracle\product\10.2.0\db_1\SAP_solman_SDB
CONSOLE_CFG=dbconsole
TRACE_LEVEL=16
TIMEOUT=15
08/15/06 15:14:46 Start pending...
08/15/06 15:14:46 Verifying dbconsole is not started already. Command line "E:\oracle\product\10.2.0\db_1\bin\emctl.bat" istatus dbconsole
08/15/06 15:14:54 dbconsole launch commandline is "E:\oracle\product\10.2.0\db_1\bin\emctl.bat" istart dbconsole
08/15/06 15:14:54 Tracking process launch...
08/15/06 15:15:29 Did not hear back from emctl istatus.
08/15/06 15:15:29 Waiting a further 5 secs...
08/15/06 15:15:32 Received exitCode 3 from emctl istatus
08/15/06 15:15:32 dbconsole started
Command prompt for emctls status
=========================
E:\oracle\product\10.2.0\db_1\BIN>emctl status
Environment variable ORACLE_SID not defined. Please define it.
emd.properties
===========
# perl executable directory
perlBin=E:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread
# script directory
scriptsDir=E:\oracle\product\10.2.0\db_1/sysman/admin/scripts
# emd Root directory(read-only location). Metrics should not create files
# under this directory
emdRoot=E:\oracle\product\10.2.0\db_1
# agent Root directory(writeable).
# Use this property to base any temporary file creation.
agentStateDir=E:/oracle/product/10.2.0/db_1/SAP_solman_SDB
# Chronos root directory
chronosRoot=E:/oracle/product/10.2.0/db_1/SAP_solman_SDB/sysman/emd/chronos
# OMS Upload URL
# if there is no receiving OMS or if you wish to disable the UploadManager
# please set this value to empty or comment out below line
REPOSITORY_URL=http://SAP_solman:5500/em/upload/
# Proxy settings used for fetchlets. not applicable for uploader.
#proxyHost=www-proxy.us.oracle.com
#proxyPort=80
#dontProxyFor=.us.oracle.com
# If it is necessary to go through an http proxy server to get to the
# repository, uncomment the following two lines
#REPOSITORY_PROXYHOST=
#REPOSITORY_PROXYPORT=
#REPOSITORY_PROXYREALM=%EM_REPOS_PROXYREALM%
#REPOSITORY_PROXYUSER=%EM_REPOS_PROXYUSER%
#REPOSITORY_PROXYPWD=%EM_REPOS_PROXYPWD%
# This string is used by the agent to connect to remote targets
# ***IMPORTANT*** Do not change the contents of this setting. Only the
# install should modify this value.
agentSeed=1329576760
# This string is used by the agent to determine which algorithm to use for encrypted data
# The string value will be same as the release version
agentVersion=10.1.0.4.0
# How long, in minutes, collector will wait until next load.
UploadInterval=5
# If an upload fails, we want to backoff by UploadFailBackoff
# percentage more each time for each successive upload failure
# e.g. if we start the retry at 1 minute. If we fail in our next
# upload attempt, we try again 1minute 12 seconds later etc.
UploadFailBackoffPct= 20
# Maximum amount of time, in seconds, upload will wait for response from
# repository before timing out.
# 0 means infinite.
UploadTimeout=1800
# Timeout for upload a file, HealthMonitor will abort the EMD process if
# UploadManager does not finish uploading one file within this time
# Unit is minite, the default value is 1 hour ( 15 Min)
#UploadMaxTime=15
# How big the file the collector will upload (in KB)
# the actual file size could be slightly bigger.
# This is only a guidance.
UploadFileSize=2048
# The maximum number of megabytes(MB) the upload manager will support in the
# upload directory before temporarily being disabled
UploadMaxBytesXML=50
# The maximum number of files the upload manager will support in the
# upload directory before temporarily being disabled
UploadMaxNumberXML=5000
# The maximum amount (%) of disk space that can be used on the EMD filesystem
# before the following is disabled:
# - Collection of data (upload manager)
# - Logging and tracing
UploadMaxDiskUsedPct=98
# The amount (%) of disk space that can be used on the EMD filesystem
# before the following is re-enabled after being disabled previously:
# - Collection of data (upload manager)
# - Logging and tracing
UploadMaxDiskUsedPctFloor=95
# Time out for the Agent to think that the access to the database could be
# hung. The Agent would not allow more threads to go and hang with a database
# if any one access to the database does not return within DbHangTimeout
# seconds.
# The more the timeout more the possibility of allowing more threads
# to be hung in the EMD with a bad database.it is specified in seconds.
#DbHangTimeout=200
# The script to run if disk space usage exceeds parameters or if certain other
# error conditions occur.
#emdFailureScript=emdfail.command
# The location of the file that contains the root certificate.
emdRootCertLoc=E:/oracle/product/10.2.0/db_1/SAP_solman_SDB/sysman/config/b64LocalCertificate.txt
internetCertLoc=E:/oracle/product/10.2.0/db_1/SAP_solman_SDB/sysman/config/b64InternetCertificate.txt
# The download URL for the EMD Oracle Wallet and its local file location.
# Note: Ensure that this URL references a valid port number at which the
# console is available on http
emdWalletSrcUrl=http://SAP_solman:5500/em/wallets/emd
emdWalletDest=E:/oracle/product/10.2.0/db_1/SAP_solman_SDB/sysman/config/server
# The email address for out-of-band notifications
emd_email_address=
emd_email_gateway=
# The return email address for out-of-band notifications
emd_from_email_address=
# EMD main servlet URL
EMD_URL=http://SAP_solman:3938/emd/main
# Whether the EMD should listen on all NICs on the current host (the default)
# or just the NIC associated with the hostname in EMD_URL
AgentListenOnAllNICs=TRUE
# This parameter indicates the thread model to use. uncomment one of the
# following ThreadPoolModel line to indicate the model, agent need to use.
# SMALL if number of targets is less than 11.
# MEDIUM if number of targets is from 11 to 50.
# LARGE if number of targets is greater than 50.
# This parameter can be overriden by 'MaxThreads' which indicates the maximum
# number of threads that CEMD can have running at any point of time. User can
# mostly use the other parameter ThreadPoolModel to indicate what model for the
# agent to use.
# ThreadPoolModel = SMALL
# ThreadPoolModel = MEDIUM
# ThreadPoolModel = LARGE
# This parameter indicates the stack size, threads have to be created with.
# we can set it to 0 to use the OS default value.
# In some version of solaris(such as 2.9 ) specify a stack size may cause Java Hotspot warning
# when JVM is used.
NormalThreadStackSize=0
#Signals that users want to ignore.
#It can be one or combination of SIGTERM, SIGINT
# The signals can listed with ',' as delimiter.
#IgnoreSignals=
# This property is NO LONGER USED for host config collection (instead, hostConfigClasspath is used).
# If noone else uses it, it can be removed.
ouiLoc=E:\oracle\product\10.2.0\db_1/oui
# Classpath for host config collection
# VERY IMPORTANT NOTE: If you change the host config classpath entries in this section, you HAVE
# to change the HOST_CONFIG_TEST_CLASSPATH entry in the utl/emdwqaenv file too.
# NOTE: if the location of emd_java.jar and/or log4j-core.jar is changed
# make sure that appropriate changes are also made
# to the CLASSPATH variable in this file if necessary
# PORTING NOTE: Check OUI-required jar files for OUI APIs to work. They could be different on your platform.
# Also, our version of xmlparserv2.jar must be compatible with the one OUI expects (both OUI and ECM use XML parser).
hostConfigClasspath=E:\oracle\product\10.2.0\db_1/oui/jlib/xmlparserv2.jar;E:\oracle\product\10.2.0\db_1/oui/jlib/OraInstaller.jar;E:\oracle\product\10.2.0\db_1/oui/jlib/srvm.jar;E:\oracle\product\10.2.0\db_1/oui/jlib/share.jar;E:\oracle\product\10.2.0\db_1/sysman/jlib/emd_java.jar;E:\oracle\product\10.2.0\db_1/sysman/jlib/log4j-core.jar
# JAVA HOME required for JavaExt metric calls
JAVA_HOME=E:\oracle\product\10.2.0\db_1/jdk/jre
# CLASSPATH required for JavaExt metric calls
CLASSPATH=E:\oracle\product\10.2.0\db_1/sysman/jlib/emd_java.jar;E:\oracle\product\10.2.0\db_1/opmn/lib/ons.jar;E:\oracle\product\10.2.0\db_1/lib/xmlparserv2.jar;E:\oracle\product\10.2.0\db_1/sysman/jlib/log4j-core.jar;E:\oracle\product\10.2.0\db_1/oc4j/j2ee/home/lib/http_client.jar;E:\oracle\product\10.2.0\db_1/lib/dms.jar;E:\oracle\product\10.2.0\db_1/lib/dmsEmd.jar;E:\oracle\product\10.2.0\db_1/jlib/share.jar;E:\oracle\product\10.2.0\db_1/jdbc/lib/ojdbc14dms.jar;E:\oracle\product\10.2.0\db_1/jlib/jssl-1_1.jar;E:\oracle\product\10.2.0\db_1/jlib/javax-ssl-1_1.jar;E:\oracle\product\10.2.0\db_1/jlib/ojmisc.jar;E:\oracle\product\10.2.0\db_1/lib/em_test.jar;E:\oracle\product\10.2.0\db_1/jlib/ojmisc.jar;E:\oracle\product\10.2.0\db_1/jlib/repository.jar;E:\oracle\product\10.2.0\db_1/opmn/lib/optic.jar
# this is the java option
#JAVA_OPTIONS=-Xmx128m
# These are the optional Java flags for the in-process Java
# Native Interface (JNI)
agentJavaDefines=-Doracle.dms.refresh.wait.time=1000 -DUrlTiming.UseJSSE=true
# When set to true, the emd.log and emd.trc file will be appended by a pid
# For example:
# emd_15789.log
# emd_15789.trc
# By default, it is not set for regression test purpose.
# After installed, please uncomment this line because when EMD is restarted,
# previous log information will be lost if not set to true.
#LogFileWithPID=true
# Default log file maximum size before rolling in Kilobytes
LogFileMaxSize=4096
# Maximum number of log file roll files to maintain before deletion
LogFileMaxRolls=4
# Default trace file maximum size before rolling in Kilobytes
TrcFileMaxSize=4096
# Maximum number of trace file roll files to maintain before deletion
TrcFileMaxRolls=4
# To enable the metric browser, uncomment the following line
# This is a reloadable parameter
#enableMetricBrowser=true
# To disable Remote operations (non-reachable agent) uncomment the following
# line:
#disableRemoteOperations=true
# add an additional admin path from which the agent will read additional
# target metadata. The specified path should have the mandatory 4 directories
# under it. 1. metadata 2. scripts 3. default_collection 4. discover
#altAdminPath=<additional admin path>
# The health monitor executes callbacks in a separate thread. if for some
# reason the threads spawned from health monitor to execute callbacks are
# hung, the agent could run out of resource and freeze.
# so when the current thread count spawned from the Health monitor reaches
# this limit, the agent is bounced. the default is set to 5.
#MaxHealthMonitorThreads=5
# dynamicPropsComputeTimeout default to 30s
dynamicPropsComputeTimeout=60
# emagent perl tracing levels
# supported levels: DEBUG, INFO, WARN, ERROR
# default level is ERROR
EMAGENT_PERL_TRACE_LEVEL=ERROR
# other optional parameters for perl tracing
# EMAGENT_PERL_TRACE_DIR default to $ORACLE_HOME/sysman/log
#EMAGENT_PERL_TRACE_DIR=
# EMAGENT_PERL_TRACE_FILESIZE default to 5M
#EMAGENT_PERL_TRACE_FILESIZE=5
# this section define the logging level for each component,
# it is "reloadable", you can change the level at runtime to reset
# the logging level, but if you remove the line, it will not be
# changed.
tracelevel.main=WARN
tracelevel.emSDK.xml=WARN
tracelevel.emSDK.utl=WARN
tracelevel.ResMonitor=WARN
tracelevel.Dispatcher=WARN
tracelevel.ThreadPool=WARN
tracelevel.pingManager=WARN
tracelevel.collector=WARN
tracelevel.http=WARN
tracelevel.ssl=WARN
tracelevel.ssl.io=WARN
tracelevel.blackouts=WARN
tracelevel.upload=WARN
tracelevel.command=WARN
tracelevel.reload=WARN
tracelevel.scheduler=WARN
tracelevel.Authentication=WARN
tracelevel.metadata=WARN
tracelevel.targets=WARN
tracelevel.TargetManager=WARN
tracelevel.engine=WARN
tracelevel.javaproc=WARN
tracelevel.vpxoci=WARN
tracelevel.javavm=WARN
tracelevel.fetchlets=WARN
tracelevel.fetchlets.os=WARN
tracelevel.fetchlets.osline=WARN
tracelevel.fetchlets.oslinetok=WARN
tracelevel.fetchlets.UDM=WARN
tracelevel.fetchlets.sql=WARN
tracelevel.fetchlets.url=WARN
tracelevel.fetchlets.urllines=WARN
tracelevel.fetchlets.urllinetoken=WARN
tracelevel.fetchlets.URLTiming=WARN
tracelevel.fetchlets.propEcho=WARN
tracelevel.fetchlets.readFromFile=WARN
tracelevel.fetchlets.readMultFromFile=WARN
tracelevel.fetchlets.throwable=WARN
tracelevel.fetchlets.resourceGrab=WARN
tracelevel.fetchlets.emSDK=WARN
# The following three properties are for HTTP timeout
# Timeout value for reading Http primary header, default is 30 seconds.
httpTimeoutPrimaryHeader=30
# Timeout value for reading http secondary headers, default is 30 seconds
httpTimeoutSecondaryHeaders=30
# Timeout value for reading http body, default is 60 seconds.
httpTimeoutBody=60
omsRecvDir=E:\oracle\product\10.2.0\db_1\SAP_solman_SDB\sysman\recv
agentTZRegion=+08:00
And i would like to know how to set up the environment variable for Oracle_HOME and ORACLE_SID.
Please kindly assist me on this.Looking at the error message "The Network Adapter could not establish the connection" , It appears hostname and port may be incorrect. Review the targets.xml under E:\oracle\product\10.2.0\db_1\SAP_solman_SDB\emd and
emoms.properties under E:\oracle\product\10.2.0\db_1\SAP_solman_SDB\config folder to make sure host ( sap_solman) and port (1527) are correct.
As far as setting the environment variables goes, you can go to control panel -> system -> advanced -> environment variables and set the ORACLE_HOME and ORACLE_SID
-Ramesh -
Hi
got error in emagent.trc
2010-03-05 15:27:38,062 Thread-1900551 ERROR pingManager: nmepm_pingReposURL: Cannot connect to https://192.168.21.243:1159/em/upload: retStatus=-1
2010-03-05 15:27:38,104 Thread-1900551 ERROR ssl: 9: Common Name = "localhost" Does not Match Hostname = "192.168.21.243"
2010-03-05 15:27:38,104 Thread-1900551 ERROR http: 9: Unable to initialize ssl connection with server, aborting connection attempt
2010-03-05 15:27:38,104 Thread-1900551 ERROR pingManager: nmepm_pingReposURL: Cannot connect to https://192.168.21.243:1159/em/upload: retStatus=-1
2010-03-05 15:28:08,324 Thread-1966087 ERROR ssl: 9: Common Name = "localhost" Does not Match Hostname = "192.168.21.243"
2010-03-05 15:28:08,341 Thread-1966087 ERROR http: 9: Unable to initialize ssl connection with server, aborting connection attempt
2010-03-05 15:28:08,342 Thread-1966087 ERROR pingManager: nmepm_pingReposURL: Cannot connect to https://192.168.21.243:1159/em/upload: retStatus=-1
2010-03-05 15:28:08,391 Thread-1966087 ERROR ssl: 9: Common Name = "localhost" Does not Match Hostname = "192.168.21.243"
2010-03-05 15:28:08,391 Thread-1966087 ERROR http: 9: Unable to initialize ssl connection with server, aborting connection attempt
2010-03-05 15:28:08,391 Thread-1966087 ERROR pingManager: nmepm_pingReposURL: Cannot connect to https://192.168.21.243:1159/em/upload: retStatus=-1
I have installed OMS Grid on one server (192.168.21.243) and agent is installed on other server(192.168.21.244)
entry in /etc/hosts of 21.244 server
192.168.21.244 isgmmlds244.insolutionsglobal.local localhost
192.168.21.243 isgmmlds243.insolutionsglobal.local isgmmlds243
entry in emd.properties
# perl executable directory
perlBin=/u01/app/oracle/product/agent10g/perl/bin
# script directory
scriptsDir=/u01/app/oracle/product/agent10g/sysman/admin/scripts
# emd Root directory(read-only location). Metrics should not create files
# under this directory
emdRoot=/u01/app/oracle/product/agent10g
# agent Root directory(writeable).
# Use this property to base any temporary file creation.
agentStateDir=/u01/app/oracle/product/agent10g
# Chronos root directory
chronosRoot=/u01/app/oracle/product/agent10g/sysman/emd/chronos
# OMS Upload URL
# if there is no receiving OMS or if you wish to disable the UploadManager
# please set this value to empty or comment out below line
REPOSITORY_URL=https://192.168.21.243:1159/em/upload
# Proxy settings used for fetchlets. not applicable for uploader.
#proxyHost=www-proxy.us.oracle.com
#proxyPort=80
#dontProxyFor=.us.oracle.com
# If it is necessary to go through an http proxy server to get to the
# repository, uncomment the following two lines
#REPOSITORY_PROXYHOST=
#REPOSITORY_PROXYPORT=
#REPOSITORY_PROXYREALM=%EM_REPOS_PROXYREALM%
#REPOSITORY_PROXYUSER=%EM_REPOS_PROXYUSER%
#REPOSITORY_PROXYPWD=%EM_REPOS_PROXYPWD%
# This string is used by the agent to connect to remote targets
# ***IMPORTANT*** Do not change the contents of this setting. Only the
# install should modify this value.
agentSeed=267923712
# This string is used by the agent to determine which algorithm to use for encrypted data
# The string value will be same as the release version
agentVersion=10.2.0.0.0
# How long, in minutes, collector will wait until next load.
UploadInterval=15
# If an upload fails, we want to backoff by UploadFailBackoff
# percentage more each time for each successive upload failure
# e.g. if we start the retry at 1 minute. If we fail in our next
# upload attempt, we try again 1minute 12 seconds later etc.
UploadFailBackoffPct= 20
# Maximum amount of time, in seconds, upload will wait for response from
# repository before timing out.
# 0 means infinite.
UploadTimeout=1800
# Timeout for upload a file, HealthMonitor will abort the EMD process if
# UploadManager does not finish uploading one file within this time
# Unit is minite, the default value is 1 hour ( 15 Min)
#UploadMaxTime=30
# How big the file the collector will upload (in KB)
# the actual file size could be slightly bigger.
# This is only a guidance.
UploadFileSize=2048
# The maximum number of megabytes(MB) the upload manager will support in the
# upload directory before temporarily disabling collections, logging and tracing
UploadMaxBytesXML=50
# The maximum number of files the upload manager will support in the
# upload directory before temporarily disabling collections, logging and tracing
UploadMaxNumberXML=5000
# The maximum amount (%) of disk space that can be used on the EMD filesystem
# before the following is disabled:
# - Collection of data (upload manager)
# - Logging and tracing
UploadMaxDiskUsedPct=98
# The amount (%) of disk space that can be used on the EMD filesystem
# before the following is re-enabled after being disabled previously:
# - Collection of data (upload manager)
# - Logging and tracing
UploadMaxDiskUsedPctFloor=95
# How long, in minutes, upload manager waits until it schedules recount
# of the XML files in upload directory (defaults to 60 mins)
UploadFileRecountInterval=60
# Time out for the Agent to think that the access to the database could be
# hung. The Agent would not allow more threads to go and hang with a database
# if any one access to the database does not return within DbHangTimeout
# seconds.
# The more the timeout more the possibility of allowing more threads
# to be hung in the EMD with a bad database.it is specified in seconds.
#DbHangTimeout=200
# The script to run if disk space usage exceeds parameters or if certain other
# error conditions occur.
#emdFailureScript=emdfail.command
# The location of the file that contains the root certificate.
emdRootCertLoc=/u01/app/oracle/product/agent10g/sysman/config/b64LocalCertificate.txt
internetCertLoc=/u01/app/oracle/product/agent10g/sysman/config/b64InternetCertificate.txt
# The download URL for the EMD Oracle Wallet and its local file location.
# Note: Ensure that this URL references a valid port number at which the
# console is available on http
emdWalletSrcUrl=http://isgmmlds243.insolutionsglobal.local:4889/em/wallets/emd
emdWalletDest=/u01/app/oracle/product/agent10g/sysman/config/server
# The email address for out-of-band notifications
emd_email_address=_NOT_AVAILABLE_
emd_email_gateway=_NOT_AVAILABLE_
# The return email address for out-of-band notifications
emd_from_email_address=_NOT_AVAILABLE_
# EMD main servlet URL
EMD_URL=https://isgmmlds244.insolutionsglobal.local:1831/emd/main/
# Whether the EMD should listen on all NICs on the current host (the default)
# or just the NIC associated with the hostname in EMD_URL
AgentListenOnAllNICs=FALSE
# This parameter indicates the thread model to use. uncomment one of the
# following ThreadPoolModel line to indicate the model, agent need to use.
# SMALL if number of targets is less than 11.
# MEDIUM if number of targets is from 11 to 50.
# LARGE if number of targets is greater than 50.
# This parameter can be overriden by 'MaxThreads' which indicates the maximum
# number of threads that CEMD can have running at any point of time. User can
# mostly use the other parameter ThreadPoolModel to indicate what model for the
# agent to use.
# ThreadPoolModel = SMALL
# ThreadPoolModel = MEDIUM
# ThreadPoolModel = LARGE
# This parameter indicates the stack size, threads have to be created with.
# we can set it to 0 to use the OS default value.
# In some version of solaris(such as 2.9 ) specify a stack size may cause Java Hotspot warning
# when JVM is used.
NormalThreadStackSize=0
#Signals that users want to ignore.
#It can be one or combination of SIGTERM, SIGINT
# The signals can listed with ',' as delimiter.
#IgnoreSignals=
# This property is NO LONGER USED for host config collection (instead, hostConfigClasspath is used).
# If noone else uses it, it can be removed.
ouiLoc=/u01/app/oracle/product/agent10g/oui
# Classpath for host config collection
# VERY IMPORTANT NOTE: If you change the host config classpath entries in this section, you HAVE
# to change the HOST_CONFIG_TEST_CLASSPATH entry in the utl/emdwqaenv file too.
# NOTE: if the location of log4j-core.jar is changed
# make sure that appropriate changes are also made
# to the CLASSPATH variable in this file if necessary
# PORTING NOTE: Check OUI-required jar files for OUI APIs to work. They could be different on your platform.
# Also, our version of xmlparserv2.jar must be compatible with the one OUI expects (both OUI and ECM use XML parser).
hostConfigClasspath=/u01/app/oracle/product/agent10g/oui/jlib/xmlparserv2.jar:/u01/app/oracle/product/agent10g/oui/jlib/OraInstaller.jar:/u01/app/oracle/product/agent10g/oui/jlib/srvm.jar:/u01/app/oracle/product/agent10g/oui/jlib/share.jar:/u01/app/oracle/product/agent10g/sysman/jlib/emcoreAgent.jar:/u01/app/oracle/product/agent10g/sysman/jlib/emagentRT.jar:/u01/app/oracle/product/agent10g/sysman/jlib/emagentSDK.jar:/u01/app/oracle/product/agent10g/sysman/jlib/log4j-core.jar
# JAVA HOME required for JavaExt metric calls
JAVA_HOME=/u01/app/oracle/product/agent10g/jdk/jre
# CLASSPATH required for JavaExt metric calls
CLASSPATH=/u01/app/oracle/product/agent10g/jdbc/lib/ojdbc14.jar:/u01/app/oracle/product/agent10g/lib/xmlparserv2.jar:/u01/app/oracle/product/agent10g/sysman/jlib/log4j-core.jar:/u01/app/oracle/product/agent10g/jlib/http_client.jar:/u01/app/oracle/product/agent10g/oc4j/j2ee/home/lib/http_client.jar:/u01/app/oracle/product/agent10g/lib/http_client.jar:/u01/app/oracle/product/agent10g/jlib/share.jar:/u01/app/oracle/product/agent10g/jlib/jssl-1_1.jar:/u01/app/oracle/product/agent10g/jlib/javax-ssl-1_1.jar:/u01/app/oracle/product/agent10g/jlib/ojmisc.jar:/u01/app/oracle/product/agent10g/jlib/repository.jar:/u01/app/oracle/product/agent10g/opmn/lib/optic.jar:/u01/app/oracle/product/agent10g/sysman/jlib/emagentRT.jar:/u01/app/oracle/product/agent10g/sysman/jlib/emagentSDK.jar:/u01/app/oracle/product/agent10g/lib/dmsEmd.jar:/u01/app/oracle/product/agent10g/sysman/jlib/emcoreAgent.jar
# this is the java option
#JAVA_OPTIONS=-Xmx128m
#JAVA_OPTIONS=-Djava.awt.headless=true
# These are the optional Java flags for the in-process Java
# Native Interface (JNI)
agentJavaDefines=-Doracle.dms.refresh.wait.time=1000 -DUrlTiming.UseJSSE=true -Dnetworkaddress.cache.ttl=1800 -Djava.awt.headless=true
# When set to true, the emd.log and emd.trc file will be appended by a pid
# For example:
# emd_15789.log
# emd_15789.trc
# By default, it is not set for regression test purpose.
# After installed, please uncomment this line because when EMD is restarted,
# previous log information will be lost if not set to true.
#LogFileWithPID=true
# Default log file maximum size before rolling in Kilobytes
LogFileMaxSize=4096
# Maximum number of log file roll files to maintain before deletion
LogFileMaxRolls=4
# Default trace file maximum size before rolling in Kilobytes
TrcFileMaxSize=4096
# Maximum number of trace file roll files to maintain before deletion
TrcFileMaxRolls=4
# To enable the metric browser, uncomment the following line
# This is a reloadable parameter
#enableMetricBrowser=true
# To disable Remote operations (non-reachable agent) uncomment the following
# line:
#disableRemoteOperations=true
# How long (in secs) until a remote operation sumbitted via the dispatcher can
# take before the agent in bounced by the watchdog. This timeout applied to only
# those operation which ought to finish within a certain interval of time
RemoteAPITimeout=300
# add an additional admin path from which the agent will read additional
# target metadata. The specified path should have the mandatory 4 directories
# under it. 1. metadata 2. scripts 3. default_collection 4. discover
#altAdminPath=<additional admin path>
# The health monitor executes callbacks in a separate thread. if for some
# reason the threads spawned from health monitor to execute callbacks are
# hung, the agent could run out of resource and freeze.
# so when the current thread count spawned from the Health monitor reaches
# this limit, the agent is bounced. the default is set to 5.
#MaxHealthMonitorThreads=5
# SSL session cache flag
SSLSessionCache=FALSE
# emagent perl tracing levels
# supported levels: DEBUG, INFO, WARN, ERROR
# default level is WARN
EMAGENT_PERL_TRACE_LEVEL=WARN
# other optional parameters for perl tracing
# EMAGENT_PERL_TRACE_DIR default to $ORACLE_HOME/sysman/log
#EMAGENT_PERL_TRACE_DIR=
# EMAGENT_PERL_TRACE_FILESIZE default to 5M
#EMAGENT_PERL_TRACE_FILESIZE=5
# this section define the logging level for each component,
# it is "reloadable", you can change the level at runtime to reset
# the logging level, but if you remove the line, it will not be
# changed.
tracelevel.main=WARN
tracelevel.emSDK.xml=WARN
tracelevel.emSDK.utl=WARN
tracelevel.Dispatcher=WARN
tracelevel.ThreadPool=WARN
tracelevel.pingManager=WARN
tracelevel.collector=WARN
tracelevel.http=WARN
tracelevel.http.client=WARN
tracelevel.browser=WARN
tracelevel.ssl=WARN
tracelevel.ssl.io=WARN
tracelevel.blackouts=WARN
tracelevel.upload=WARN
tracelevel.command=WARN
tracelevel.reload=WARN
tracelevel.scheduler=WARN
tracelevel.Authentication=WARN
tracelevel.metadata=WARN
tracelevel.targets=WARN
tracelevel.TargetManager=DEBUG
tracelevel.engine=WARN
tracelevel.javaproc=WARN
tracelevel.vpxoci=WARN
tracelevel.javavm=WARN
tracelevel.fetchlets=WARN
tracelevel.fetchlets.os=WARN
tracelevel.fetchlets.osline=WARN
tracelevel.fetchlets.oslinetok=WARN
tracelevel.fetchlets.snmp=WARN
tracelevel.fetchlets.UDM=WARN
tracelevel.fetchlets.PropsFromAssocTgt=WARN
tracelevel.fetchlets.sql=WARN
tracelevel.fetchlets.url=WARN
tracelevel.fetchlets.urllines=WARN
tracelevel.fetchlets.urllinetoken=WARN
tracelevel.fetchlets.URLTiming=WARN
tracelevel.fetchlets.OJMX=WARN
tracelevel.emd.fetchlets.JMX.generic=WARN
tracelevel.fetchlets.propEcho=WARN
tracelevel.fetchlets.readFromFile=WARN
tracelevel.fetchlets.readMultFromFile=WARN
tracelevel.fetchlets.throwable=WARN
tracelevel.fetchlets.resourceGrab=WARN
tracelevel.fetchlets.statusHang=WARN
tracelevel.fetchlets.emSDK=WARN
tracelevel.recvlets=WARN
tracelevel.recvlets.snmp=WARN
tracelevel.credproviders=WARN
tracelevel.utl=WARN
tracelevel.NLS=WARN
tracelevel.util.dates=WARN
tracelevel.util.emdprops=WARN
tracelevel.util.files=WARN
tracelevel.util.fileops=WARN
tracelevel.resman.socket=WARN
tracelevel.resman.process=WARN
tracelevel.ResMonitor=WARN
tracelevel.emtgtctl=WARN
# The following three properties are for HTTP timeout
# Timeout value for reading Http primary header, default is 30 seconds.
httpTimeoutPrimaryHeader=30
# Timeout value for reading http secondary headers, default is 30 seconds
httpTimeoutSecondaryHeaders=30
# Timeout value for reading http body, default is 60 seconds.
httpTimeoutBody=60
# Timeout used by ping manager
#PingTimeout=30
#Timeout for Dynamic property evaluation. This is provided in seconds.
#The dynamicPropsComputeTimeout value applies to all target types unless if a
#target type specific value is provided using the
#dynamicPropsComputeTimeout_<targetType>= syntax
#dynamicPropsComputeTimeout=30
#Requested by RAC team in bug 4423072
dynamicPropsComputeTimeout_rac_database=120
#bug 4595094
dynamicPropsComputeTimeout_oracle_database=120
#bug 5016243
dynamicPropsComputeTimeout_oc4jjvm=120
#bug 5647863
#@description=DynamicProperty evaluation timeout value of Microsoft SQL Server
#@default=120
dynamicPropsComputeTimeout_microsoft_sqlserver_database=120
# changes in context of bug id 4591002
# Need to recompute the values of dynamic properties in case of failure to do so
# at startup and reload. Currently this applies only to "Critical" marked dynamic
# properties. The following two values are applicable per target and not per
# dynamic property
# dynamicPropReComputeInterval --> time difference between a failed dynamic property
# computation and the next try to compute the property in seconds. The default value is 120 seconds.
# dynamicPropReComputeMaxTries --> maximum number of reties for calculating failed
# dynamic properties. The default value is 4 retires.
agentTZRegion=Asia/Calcutta
output of status of agent
[oracle@isgmmlds244 patchset10.2.0.4]$ /u01/app/oracle/product/agent10g/bin/emctl status agent
Oracle Enterprise Manager 10g Release 4 Grid Control 10.2.0.4.0.
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
Agent Version : 10.2.0.4.0
OMS Version : 10.2.0.4.0
Protocol Version : 10.2.0.4.0
Agent Home : /u01/app/oracle/product/agent10g
Agent binaries : /u01/app/oracle/product/agent10g
Agent Process ID : 12468
Parent Process ID : 12377
Agent URL : https://isgmmlds244.insolutionsglobal.local:1831/emd/main/
Repository URL : https://192.168.21.243:1159/em/upload
Started at : 2010-03-05 15:34:24
Started by user : oracle
Last Reload : 2010-03-05 15:34:24
Last successful upload : (none)
Last attempted upload : (none)
Total Megabytes of XML files uploaded so far : 0.00
Number of XML files pending upload : 129
Size of XML files pending upload(MB) : 38.17
Available disk space on upload filesystem : 29.76%
Last attempted heartbeat to OMS : 2010-03-05 15:35:17
Last successful heartbeat to OMS : unknown
Agent is Running and Ready
error for upload agent[oracle@isgmmlds244 patchset10.2.0.4]$ /u01/app/oracle/product/agent10g/bin/emctl upload agent
Oracle Enterprise Manager 10g Release 4 Grid Control 10.2.0.4.0.
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
EMD upload error: uploadXMLFiles skipped :: OMS version not checked yet..
Please provide solution
Regards
shdshd wrote:
entry in /etc/hosts of 21.244 server
192.168.21.244 isgmmlds244.insolutionsglobal.local localhost
192.168.21.243 isgmmlds243.insolutionsglobal.local isgmmlds243
Remove the localhost alias from this above enty.
localhost should be - and probably also is - pointing to 127.0.0.1
HTH -
AWR Report - suggestions to improve performance.
Hi Folks,
Web application server version - 10.1.2.0.2
Database version - 10.1.0.4.0
OS version - AIX 5.3
WORKLOAD REPOSITORY report for
DB Name DB Id Instance Inst Num Release Cluster Host
xxxx 3419432639 xxxx 1 10.1.0.4.0 NO hostname
Snap Id Snap Time Sessions Curs/Sess
Begin Snap: 16598 07-Jul-09 16:30:54 23 60.7
End Snap: 16599 07-Jul-09 17:30:46 36 94.1
Elapsed: 59.88 (mins)
DB Time: 44.99 (mins)
Cache Sizes (end)
~~~~~~~~~~~~~~~~~
Buffer Cache: 1,536M Std Block Size: 8K
Shared Pool Size: 1,248M Log Buffer: 1,024K
Load Profile
~~~~~~~~~~~~ Per Second Per Transaction
Redo size: 30,495.86 138,156.74
Logical reads: 1,735.49 7,862.39
Block changes: 197.66 895.45
Physical reads: 564.70 2,558.28
Physical writes: 54.64 247.52
User calls: 2.00 9.04
Parses: 14.32 64.87
Hard parses: 1.37 6.22
Sorts: 5.83 26.42
Logons: 0.12 0.54
Executes: 72.71 329.38
Transactions: 0.22
% Blocks changed per Read: 11.39 Recursive Call %: 99.64
Rollback per transaction %: 17.53 Rows per Sort: 5933.99
Instance Efficiency Percentages (Target 100%)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Buffer Nowait %: 100.00 Redo NoWait %: 100.00
Buffer Hit %: 71.24 In-memory Sort %: 99.79
Library Hit %: 96.22 Soft Parse %: 90.41
Execute to Parse %: 80.31 Latch Hit %: 99.99
Parse CPU to Parse Elapsd %: 21.82 % Non-Parse CPU: 96.80
Shared Pool Statistics Begin End
Memory Usage %: 13.13 27.55
% SQL with executions>1: 61.04 15.52
% Memory for SQL w/exec>1: 60.96 12.31
Top 5 Timed Events
~~~~~~~~~~~~~~~~~~ % Total
Event Waits Time (s) DB Time Wait Class
db file scattered read 135,977 1,204 44.62 User I/O
CPU time 547 20.26
db file sequential read 99,521 187 6.92 User I/O
log file parallel write 10,995 16 .59 System I/O
direct path write temp 7,225 13 .47 User I/O
Wait Events DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> s - second
-> cs - centisecond - 100th of a second
-> ms - millisecond - 1000th of a second
-> us - microsecond - 1000000th of a second
-> ordered by wait time desc, waits desc (idle events last)
Avg
Total Wait wait Waits
Event Waits Timeouts Time (s) (ms) /txn
db file scattered read 135,977 0 1,204 9 171.5
db file sequential read 99,521 0 187 2 125.5
log file parallel write 10,995 0 16 1 13.9
direct path write temp 7,225 0 13 2 9.1
process startup 117 1 7 58 0.1
latch: library cache 306 0 5 15 0.4
direct path read temp 152,490 0 4 0 192.3
db file parallel write 342 0 4 11 0.4
log file sync 309 3 4 13 0.4
db file parallel read 359 0 3 8 0.5
latch: cache buffers lru ch 80 0 2 19 0.1
control file parallel write 1,325 0 1 1 1.7
latch: row cache objects 26 0 1 51 0.0
latch: cache buffers chains 138 138 1 9 0.2
log file switch completion 3 0 1 399 0.0
buffer busy waits 94 0 1 10 0.1
latch: shared pool 44 0 0 6 0.1
control file sequential rea 1,258 0 0 0 1.6
latch: object queue header 3 0 0 41 0.0
SQL*Net message to client 5,866 0 0 0 7.4
LGWR wait for redo copy 495 1 0 0 0.6
direct path read 58 0 0 1 0.1
latch: session allocation 6 0 0 6 0.0
latch: In memory undo latch 3 0 0 10 0.0
SQL*Net break/reset to clie 62 0 0 0 0.1
control file single write 40 0 0 1 0.1
latch: redo allocation 12 0 0 2 0.0
latch free 2 0 0 11 0.0
enq: TX - index contention 1 0 0 21 0.0
latch: messages 8 0 0 2 0.0
log file single write 2 0 0 4 0.0
direct path write 99 0 0 0 0.1
SQL*Net more data to client 237 0 0 0 0.3
log file sequential read 2 0 0 2 0.0
latch: library cache lock 1 0 0 3 0.0
latch: enqueue hash chains 3 0 0 0 0.0
SQL*Net more data from clie 2 0 0 0 0.0
SQL*Net message from client 5,855 0 23,607 4032 7.4
jobq slave wait 3,441 3,334 9,925 2884 4.3
Queue Monitor Wait 1,537 623 3,532 2298 1.9
Queue Monitor Slave Wait 503 0 3,532 7022 0.6
wakeup time manager 12 0 3,527 293898 0.0
virtual circuit status 120 120 3,512 29266 0.2
class slave wait 2 2 10 4883 0.0
Background Wait Events DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> ordered by wait time desc, waits desc (idle events last)
Avg
Total Wait wait Waits
Event Waits Timeouts Time (s) (ms) /txn
log file parallel write 10,995 0 16 1 13.9
process startup 117 1 7 58 0.1
db file sequential read 1,255 0 4 3 1.6
db file parallel write 342 0 4 11 0.4
control file parallel write 1,329 0 1 1 1.7
db file scattered read 151 0 1 7 0.2
latch: cache buffers lru ch 32 0 0 15 0.0
latch: library cache 5 0 0 69 0.0
control file sequential rea 213 0 0 1 0.3
latch: cache buffers chains 2 2 0 34 0.0
LGWR wait for redo copy 495 1 0 0 0.6
control file single write 40 0 0 1 0.1
latch: redo allocation 12 0 0 2 0.0
latch: messages 8 0 0 2 0.0
latch: object queue header 2 0 0 8 0.0
log file single write 2 0 0 4 0.0
direct path write 25 0 0 0 0.0
buffer busy waits 1 0 0 7 0.0
latch: shared pool 2 0 0 2 0.0
log file sequential read 2 0 0 2 0.0
direct path read 22 0 0 0 0.0
rdbms ipc message 15,461 10,346 26,675 1725 19.5
Queue Monitor Wait 1,537 623 3,532 2298 1.9
Queue Monitor Slave Wait 503 0 3,532 7022 0.6
wakeup time manager 12 0 3,527 293898 0.0
smon timer 175 8 3,418 19530 0.2
Time Model Statistics DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> ordered by Time (seconds) desc
Time % Total
Statistic Name (seconds) DB Time
sql execute elapsed time 2,708.75 100.35
DB time 2,699.22 100.00
DB CPU 546.94 20.26
background elapsed time 113.64 4.21
parse time elapsed 90.88 3.37
hard parse elapsed time 59.03 2.19
PL/SQL execution elapsed time 56.46 2.09
Java execution elapsed time 8.99 .33
background cpu time 8.18 .30
PL/SQL compilation elapsed time 4.55 .17
connection management call elapsed time 1.08 .04
failed parse elapsed time .73 .03
hard parse (sharing criteria) elapsed time .70 .03
hard parse (bind mismatch) elapsed time .61 .02
sequence load elapsed time .41 .02
inbound PL/SQL rpc elapsed time .00 .00
failed parse (out of shared memory) elapsed t .00 .00
Operating System Statistics DB/Inst: xxxx/xxxx Snaps: 16598-16599
Statistic Name Value
AVG_BUSY_TICKS 771,364
AVG_IDLE_TICKS 346,024
AVG_IN_BYTES 3,812,632,576
AVG_IOWAIT_TICKS 38,470
AVG_OUT_BYTES 1,141,137,408
AVG_SYS_TICKS 2,786
AVG_USER_TICKS 13,588
BUSY_TICKS 3,085,837
IDLE_TICKS 1,384,395
IN_BYTES 15,250,530,304
IOWAIT_TICKS 154,103
OS_CPU_WAIT_TIME 70,200
OUT_BYTES 4,564,549,632
RSRC_MGR_CPU_WAIT_TIME 0
SYS_TICKS 11,439
USER_TICKS 54,613
Service Statistics DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> ordered by DB Time
Physical Logical
Service Name DB Time (s) DB CPU (s) Reads Reads
xxxx 2,032.9 519.7 1,804,948 5,709,611
SYS$USERS 666.3 27.2 219,320 501,732
SYS$BACKGROUND 0.0 0.0 4,565 28,708
xxxxXDB 0.0 0.0 0 0
Service Wait Class Stats DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> Wait Class info for services in the Service Statistics section.
-> Total Waits and Time Waited displayed for the following wait
classes: User I/O, Concurrency, Administrative, Network
-> Time Waited (Wt Time) in centisecond (100th of a second)
Service Name
User I/O User I/O Concurcy Concurcy Admin Admin Network Network
Total Wts Wt Time Total Wts Wt Time Total Wts Wt Time Total Wts Wt Time
xxxx
374696 127922 0 0 0 0 3701 7
SYS$USERS
18820 12406 172 222 0 0 2129 0
SYS$BACKGROUND
2218 783 0 0 0 0 0 0
SQL ordered by Elapsed Time DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> Resources reported for PL/SQL code includes the resources used by all SQL
statements called by the code.
-> % Total DB Time is the Elapsed Time of the SQL statement divided
into the Total Database Time multiplied by 100
<<<<<<<<<<<<<<<<<<<<<<<<<<<SQLs Deleted >>>>>>>>>>>>
SQL ordered by Sharable Memory DB/Inst: xxxx/xxxx Snaps: 16598-16599
No data exists for this section of the report.
SQL ordered by Version Count DB/Inst: xxxx/xxxx Snaps: 16598-16599
No data exists for this section of the report.
Instance Activity Stats DB/Inst: xxxx/xxxx Snaps: 16598-16599
Statistic Total per Second per Trans
CPU used by this session 53,470 14.9 67.4
CPU used when call started 51,928 14.5 65.5
CR blocks created 5,298 1.5 6.7
Cached Commit SCN referenced 192,226 53.5 242.4
Commit SCN cached 3,613 1.0 4.6
DB time 1,253,838 349.0 1,581.1
DBWR checkpoint buffers written 4,304 1.2 5.4
DBWR checkpoints 1 0.0 0.0
DBWR transaction table writes 59 0.0 0.1
DBWR undo block writes 5,557 1.6 7.0
IMU CR rollbacks 1 0.0 0.0
IMU Flushes 191 0.1 0.2
IMU Redo allocation size 860,820 239.6 1,085.5
IMU commits 381 0.1 0.5
IMU contention 5 0.0 0.0
IMU ktichg flush 1 0.0 0.0
IMU undo allocation size 1,839,872 512.1 2,320.1
SQL*Net roundtrips to/from clien 5,591 1.6 7.1
active txn count during cleanout 948 0.3 1.2
application wait time 4 0.0 0.0
background checkpoints completed 1 0.0 0.0
background checkpoints started 1 0.0 0.0
background timeouts 10,366 2.9 13.1
buffer is not pinned count 2,387,595 664.6 3,010.8
buffer is pinned count 792,051 220.5 998.8
bytes received via SQL*Net from 333,467 92.8 420.5
bytes sent via SQL*Net to client 2,449,972 682.0 3,089.5
calls to get snapshot scn: kcmgs 319,869 89.0 403.4
calls to kcmgas 17,576 4.9 22.2
calls to kcmgcs 1,912 0.5 2.4
change write time 2,175 0.6 2.7
cleanout - number of ktugct call 4,589 1.3 5.8
cluster key scan block gets 579,340 161.3 730.6
cluster key scans 283,013 78.8 356.9
commit cleanout failures: block 1 0.0 0.0
commit cleanout failures: buffer 1 0.0 0.0
commit cleanout failures: callba 1 0.0 0.0
commit cleanout failures: cannot 5 0.0 0.0
commit cleanouts 25,713 7.2 32.4
commit cleanouts successfully co 25,705 7.2 32.4
commit txn count during cleanout 4,110 1.1 5.2
concurrency wait time 650 0.2 0.8
consistent changes 7,352 2.1 9.3
consistent gets 5,509,829 1,533.7 6,948.1
consistent gets - examination 1,061,141 295.4 1,338.1
consistent gets direct 39 0.0 0.1
consistent gets from cache 5,509,790 1,533.7 6,948.0
cursor authentications 310 0.1 0.4
data blocks consistent reads - u 6,747 1.9 8.5
db block changes 710,092 197.7 895.5
db block gets 725,044 201.8 914.3
db block gets direct 14,789 4.1 18.7
db block gets from cache 710,255 197.7 895.7
deferred (CURRENT) block cleanou 14,036 3.9 17.7
dirty buffers inspected 9,309 2.6 11.7
enqueue conversions 926 0.3 1.2
enqueue releases 92,643 25.8 116.8
enqueue requests 92,643 25.8 116.8
enqueue waits 1 0.0 0.0
execute count 261,199 72.7 329.4
Instance Activity Stats DB/Inst: xxxx/xxxx Snaps: 16598-16599
Statistic Total per Second per Trans
free buffer inspected 1,719,681 478.7 2,168.6
free buffer requested 1,804,893 502.4 2,276.0
heap block compress 1,617 0.5 2.0
hot buffers moved to head of LRU 295,841 82.4 373.1
immediate (CR) block cleanout ap 3,664 1.0 4.6
immediate (CURRENT) block cleano 6,108 1.7 7.7
index fast full scans (full) 533 0.2 0.7
index fetch by key 582,804 162.2 734.9
index scans kdiixs1 328,534 91.5 414.3
leaf node 90-10 splits 190 0.1 0.2
leaf node splits 353 0.1 0.5
logons cumulative 426 0.1 0.5
messages received 5,699 1.6 7.2
messages sent 5,699 1.6 7.2
no buffer to keep pinned count 0 0.0 0.0
no work - consistent read gets 4,088,134 1,137.9 5,155.3
opened cursors cumulative 46,867 13.1 59.1
parse count (failures) 27 0.0 0.0
parse count (hard) 4,933 1.4 6.2
parse count (total) 51,443 14.3 64.9
parse time cpu 1,748 0.5 2.2
parse time elapsed 8,012 2.2 10.1
physical read IO requests 390,490 108.7 492.4
physical reads 2,028,713 564.7 2,558.3
physical reads cache 1,793,229 499.2 2,261.3
physical reads cache prefetch 1,557,452 433.5 1,964.0
physical reads direct 235,484 65.6 297.0
physical reads direct (lob) 36 0.0 0.1
physical reads direct temporary 235,426 65.5 296.9
physical reads prefetch warmup 6,031 1.7 7.6
physical write IO requests 15,092 4.2 19.0
physical writes 196,287 54.6 247.5
physical writes direct 179,731 50.0 226.7
physical writes direct (lob) 39 0.0 0.1
physical writes direct temporary 179,664 50.0 226.6
physical writes from cache 16,556 4.6 20.9
physical writes non checkpoint 194,791 54.2 245.6
pinned buffers inspected 2 0.0 0.0
prefetch warmup blocks aged out 1,292 0.4 1.6
prefetched blocks aged out befor 293,795 81.8 370.5
process last non-idle time 1,954 0.5 2.5
recursive calls 1,997,982 556.1 2,519.5
recursive cpu usage 50,834 14.2 64.1
redo blocks written 224,755 62.6 283.4
redo buffer allocation retries 3 0.0 0.0
redo entries 357,063 99.4 450.3
redo log space requests 3 0.0 0.0
redo log space wait time 123 0.0 0.2
redo ordering marks 5,391 1.5 6.8
redo size 109,558,292 30,495.9 138,156.7
redo synch time 398 0.1 0.5
redo synch writes 300 0.1 0.4
redo wastage 1,486,252 413.7 1,874.2
redo write time 1,657 0.5 2.1
redo writer latching time 7 0.0 0.0
redo writes 5,499 1.5 6.9
rollback changes - undo records 5,688 1.6 7.2
rows fetched via callback 96,659 26.9 121.9
session connect time 0 0.0 0.0
session logical reads 6,234,873 1,735.5 7,862.4
Instance Activity Stats DB/Inst: xxxx/xxxx Snaps: 16598-16599
Statistic Total per Second per Trans
session pga memory 162,220,520 45,154.5 204,565.6
session pga memory max 341,641,032 95,096.7 430,821.0
session uga memory 790,286,168,264 219,978,374.3 #############
session uga memory max 267,584,080 74,482.8 337,432.6
shared hash latch upgrades - no 327,865 91.3 413.5
shared hash latch upgrades - wai 47 0.0 0.1
sorts (disk) 44 0.0 0.1
sorts (memory) 20,909 5.8 26.4
sorts (rows) 124,334,820 34,609.0 156,790.4
summed dirty queue length 10,849 3.0 13.7
switch current to new buffer 125 0.0 0.2
table fetch by rowid 362,785 101.0 457.5
table fetch continued row 1,811 0.5 2.3
table scan blocks gotten 2,989,662 832.2 3,770.1
table scan rows gotten 102,945,486 28,655.2 129,817.8
table scans (long tables) 65 0.0 0.1
table scans (short tables) 8,082 2.3 10.2
transaction rollbacks 72 0.0 0.1
undo change vector size 40,524,316 11,280.1 51,102.5
user I/O wait time 140,959 39.2 177.8
user calls 7,168 2.0 9.0
user commits 654 0.2 0.8
user rollbacks 139 0.0 0.2
workarea executions - onepass 30 0.0 0.0
workarea executions - optimal 13,486 3.8 17.0
write clones created in foregrou 6 0.0 0.0
-------------------------------------------------------------contd on next ...
Edited by: LazyDBA10g on Jul 8, 2009 4:50 AMInstance Activity Stats - Absolute Values DB/Inst: xxxx/xxxx Snaps: 1
-> Statistics with absolute values (should not be diffed)
-> Statistics identified by '(derived)' come from sources other than SYSSTAT
Statistic Begin Value End Value
opened cursors current 1,397 3,387
logons current 23 36
Instance Activity Stats - Thread Activity DB/Inst: xxxx/xxxx Snaps: 16
Statistic Total per Hour
log switches (derived) 1 1.00
Tablespace IO Stats DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> ordered by IOs (Reads + Writes) desc
Tablespace
Av Av Av Av Buffer Av Buf
Reads Reads/s Rd(ms) Blks/Rd Writes Writes/s Waits Wt(ms)
TEMP2
153,326 43 0.2 1.6 6,040 2 0 0.0
AA_DATA
115,909 32 5.8 7.6 217 0 0 0.0
AA_WEB
57,358 16 9.1 12.8 2,200 1 0 0.0
AA_INDEX
43,576 12 3.3 3.3 738 0 0 0.0
AA_WEB_IDX
11,475 3 2.9 1.1 6 0 0 0.0
SYSTEM
5,575 2 3.8 1.4 2,528 1 61 16.1
SYSAUX
3,017 1 5.3 1.4 2,401 1 5 0.0
UNDOTBS1
262 0 5.0 1.0 955 0 28 0.0
AA_LOB
36 0 13.6 5.5 3 0 0 0.0
USERS
3 0 33.3 1.0 3 0 0 0.0
EXAMPLE
1 0 40.0 1.0 1 0 0 0.0
File IO Stats DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> ordered by Tablespace, File
Tablespace Filename
Av Av Av Av Buffer Av Buf
Reads Reads/s Rd(ms) Blks/Rd Writes Writes/s Waits Wt(ms)
EXAMPLE /AAA/oradata/xxxx/example01.dbf
1 0 40.0 1.0 1 0 0 0.0
SYSAUX /AAA/oradata/xxxx/sysaux01.dbf
3,017 1 5.3 1.4 2,401 1 5 0.0
SYSTEM /AAA/oradata/xxxx/system01.dbf
5,575 2 3.8 1.4 2,528 1 61 16.1
TEMP2 /AAA/oradata/xxxx/TEMP02.DBFf
153,324 43 0.2 1.6 6,040 2 0
TEMP2 /AAA/oradata/xxxx/TEMP03.DBF
2 0 5.0 1.0 0 0 0
UNDOTBS1 /AAA/oradata/xxxx/undotbs01.dbf
181 0 4.9 1.0 307 0 3 0.0
UNDOTBS1 /AAA/oradata/xxxx/undotbs02.dbf
70 0 5.6 1.0 157 0 20 0.0
UNDOTBS1 /AAA/oradata/xxxx/undotbs021.dbf
11 0 2.7 1.0 491 0 5 0.0
USERS /AAA/oradata/xxxx/users01.dbf
1 0 50.0 1.0 1 0 0 0.0
USERS /AAA/oradata/xxxx/users02.dbf
1 0 30.0 1.0 1 0 0 0.0
USERS /AAA/oradata/xxxx/users03.dbf
1 0 20.0 1.0 1 0 0 0.0
AA_DATA /AAA/oradata/xxxx/AA_DATA01.DBF
28,830 8 5.8 7.6 80 0 0 0.0
AA_DATA /AAA/oradata/xxxx/AA_DATA02.DBF
30,068 8 5.8 7.5 34 0 0 0.0
AA_DATA /AAA/oradata/xxxx/AA_DATA03.DBF
28,669 8 5.8 7.5 56 0 0 0.0
AA_DATA /AAA/oradata/xxxx/AA_DATA04.DBF
28,342 8 5.9 7.7 47 0 0 0.0
AA_INDEX /AAA/oradata/xxxx/AA_INDEX01.DBF
22,286 6 3.1 3.2 439 0 0 0.0
AA_INDEX /AAA/oradata/xxxx/AA_INDEX02.DBF
21,290 6 3.4 3.3 299 0 0 0.0
AA_LOB /AAA/oradata/xxxx/AA_LOB01.DBF
20 0 11.0 5.4 1 0 0 0.0
AA_LOB /AAA/oradata/xxxx/AA_LOB02.DBF
11 0 17.3 5.5 1 0 0 0.0
AA_LOB /AAA/oradata/xxxx/AA_LOB03.DBF
5 0 16.0 6.2 1 0 0 0.0
AA_WEB /AAA/oradata/xxxx/AA_WEB01.DBF
28,640 8 9.2 12.8 1,079 0 0 0.0
AA_WEB /AAA/oradata/xxxx/AA_WEB02.DBF
28,718 8 9.0 12.8 1,121 0 0 0.0
AA_WEB_IDX /AAA/oradata/xxxx/AA_WEB_IDX01.DBF
5,068 1 2.8 1.2 2 0 0 0.0
AA_WEB_IDX /AAA/oradata/xxxx/AA_WEB_IDX02.DBF
6,407 2 2.9 1.1 4 0 0 0.0
Buffer Pool Statistics DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> Standard block size Pools D: default, K: keep, R: recycle
-> Default Pools for other block sizes: 2k, 4k, 8k, 16k, 32k
Free Writ Buffer
Number of Pool Buffer Physical Physical Buff Comp Busy
P Buffers Hit% Gets Reads Writes Wait Wait Waits
D 190,848 71 6,220,953 1,793,255 16,556 0 0 94
Instance Recovery Stats DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> B: Begin snapshot, E: End snapshot
Targt Estd Log File Log Ckpt Log Ckpt
MTTR MTTR Recovery Actual Target Size Timeout Interval
(s) (s) Estd IOs Redo Blks Redo Blks Redo Blks Redo Blks Redo Blks
B 0 8 155 955 5359 360000 5359
E 0 9 311 1177 4572 360000 4572
Buffer Pool Advisory DB/Inst: xxxx/xxxx Snap: 16599
-> Only rows with estimated physical reads >0 are displayed
-> ordered by Block Size, Buffers For Estimate
Size for Size Buffers for Est Physical Estimated
P Estimate (M) Factr Estimate Read Factor Physical Reads
D 144 .1 17,892 1.97 3,571,363
D 288 .2 35,784 1.62 2,936,281
D 432 .3 53,676 1.57 2,850,391
D 576 .4 71,568 1.44 2,616,052
D 720 .5 89,460 1.33 2,414,217
D 864 .6 107,352 1.15 2,091,986
D 1,008 .7 125,244 1.04 1,882,876
D 1,152 .8 143,136 1.02 1,857,287
D 1,296 .8 161,028 1.02 1,844,981
D 1,440 .9 178,920 1.01 1,830,107
D 1,536 1.0 190,848 1.00 1,816,003
D 1,584 1.0 196,812 0.98 1,785,023
D 1,728 1.1 214,704 0.93 1,688,213
D 1,872 1.2 232,596 0.89 1,613,261
D 2,016 1.3 250,488 0.88 1,594,176
D 2,160 1.4 268,380 0.87 1,584,933
D 2,304 1.5 286,272 0.87 1,582,965
D 2,448 1.6 304,164 0.86 1,569,802
D 2,592 1.7 322,056 0.86 1,569,169
D 2,736 1.8 339,948 0.86 1,568,758
D 2,880 1.9 357,840 0.86 1,568,194
PGA Aggr Summary DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> PGA cache hit % - percentage of W/A (WorkArea) data processed only in-memory
PGA Cache Hit % W/A MB Processed Extra W/A MB Read/Written
88.0 4,058 552
PGA Aggr Target Stats DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> B: Begin snap E: End snap (rows dentified with B or E contain data
which is absolute i.e. not diffed over the interval)
-> Auto PGA Target - actual workarea memory target
-> W/A PGA Used - amount of memory used for all Workareas (manual + auto)
-> %PGA W/A Mem - percentage of PGA memory allocated to workareas
-> %Auto W/A Mem - percentage of workarea memory controlled by Auto Mem Mgmt
-> %Man W/A Mem - percentage of workarea memory under manual control
%PGA %Auto %Man
PGA Aggr Auto PGA PGA Mem W/A PGA W/A W/A W/A Global Mem
Target(M) Target(M) Alloc(M) Used(M) Mem Mem Mem Bound(K)
B 500 432 57.5 0.0 .0 .0 .0 25,600
E 500 428 70.2 0.0 .0 .0 .0 25,600
PGA Aggr Target Histogram DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> Optimal Executions are purely in-memory operations
Low High
Optimal Optimal Total Execs Optimal Execs 1-Pass Execs M-Pass Execs
2K 4K 11,726 11,726 0 0
64K 128K 256 256 0 0
128K 256K 206 206 0 0
256K 512K 583 583 0 0
512K 1024K 363 363 0 0
1M 2M 124 124 0 0
2M 4M 107 107 0 0
4M 8M 66 64 2 0
8M 16M 49 35 14 0
16M 32M 52 39 13 0
32M 64M 3 2 1 0
64M 128M 4 4 0 0
128M 256M 2 2 0 0
PGA Memory Advisory DB/Inst: xxxx/xxxx Snap: 16599
-> When using Auto Memory Mgmt, minimally choose a pga_aggregate_target value
where Estd PGA Overalloc Count is 0
Estd Extra Estd PGA Estd PGA
PGA Target Size W/A MB W/A MB Read/ Cache Overalloc
Est (MB) Factr Processed Written to Disk Hit % Count
63 0.1 4,098.7 2,609.3 61.0 0
125 0.3 4,098.7 1,521.6 73.0 0
250 0.5 4,098.7 1,354.7 75.0 0
375 0.8 4,098.7 1,109.3 79.0 0
500 1.0 4,098.7 373.4 92.0 0
600 1.2 4,098.7 71.6 98.0 0
700 1.4 4,098.7 41.6 99.0 0
800 1.6 4,098.7 41.6 99.0 0
900 1.8 4,098.7 0.0 100.0 0
1,000 2.0 4,098.7 0.0 100.0 0
1,500 3.0 4,098.7 0.0 100.0 0
2,000 4.0 4,098.7 0.0 100.0 0
3,000 6.0 4,098.7 0.0 100.0 0
4,000 8.0 4,098.7 0.0 100.0 0
Shared Pool Advisory DB/Inst: xxxx/xxxx Snap: 16599
-> SP: Shared Pool Est LC: Estimated Library Cache Factr: Factor
-> Note there is often a 1:Many correlation between a single logical object
in the Library Cache, and the physical number of memory objects associated
with it. Therefore comparing the number of Lib Cache objects (e.g. in
v$librarycache), with the number of Lib Cache Memory Objects is invalid.
Est LC Est LC Est LC Est LC
Shared SP Est LC Time Time Load Load Est LC
Pool Size Size Est LC Saved Saved Time Time Mem
Size(M) Factr (M) Mem Obj (s) Factr (s) Factr Obj Hits
224 .2 130 9,174 380 1.0 91 1.0 408,867
352 .3 171 12,647 381 1.0 90 1.0 409,226
480 .4 171 12,647 381 1.0 90 1.0 409,226
608 .5 171 12,647 381 1.0 90 1.0 409,226
736 .6 171 12,647 381 1.0 90 1.0 409,226
864 .7 171 12,647 381 1.0 90 1.0 409,226
992 .8 171 12,647 381 1.0 90 1.0 409,226
1,120 .9 171 12,647 381 1.0 90 1.0 409,226
1,248 1.0 171 12,647 381 1.0 90 1.0 409,226
1,376 1.1 171 12,647 381 1.0 90 1.0 409,226
1,504 1.2 171 12,647 381 1.0 90 1.0 409,226
1,632 1.3 171 12,647 381 1.0 90 1.0 409,226
1,760 1.4 171 12,647 381 1.0 90 1.0 409,226
1,888 1.5 171 12,647 381 1.0 90 1.0 409,226
2,016 1.6 171 12,647 381 1.0 90 1.0 409,226
2,144 1.7 171 12,647 381 1.0 90 1.0 409,226
2,272 1.8 171 12,647 381 1.0 90 1.0 409,226
2,400 1.9 171 12,647 381 1.0 90 1.0 409,226
2,528 2.0 171 12,647 381 1.0 90 1.0 409,226
Java Pool Advisory DB/Inst: xxxx/xxxx Snap: 16599
Est LC Est LC Est LC Est LC
Java JP Est LC Time Time Load Load Est LC
Pool Size Size Est LC Saved Saved Time Time Mem
Size(M) Factr (M) Mem Obj (s) Factr (s) Factr Obj Hits
32 .1 6 142 2 1.0 23 1.0 142
64 .3 6 142 2 1.0 23 1.0 142
96 .4 6 142 2 1.0 23 1.0 142
128 .5 6 142 2 1.0 23 1.0 142
160 .6 6 142 2 1.0 23 1.0 142
192 .8 6 142 2 1.0 23 1.0 142
224 .9 6 142 2 1.0 23 1.0 142
256 1.0 6 142 2 1.0 23 1.0 142
288 1.1 6 142 2 1.0 23 1.0 142
320 1.3 6 142 2 1.0 23 1.0 142
352 1.4 6 142 2 1.0 23 1.0 142
384 1.5 6 142 2 1.0 23 1.0 142
416 1.6 6 142 2 1.0 23 1.0 142
448 1.8 6 142 2 1.0 23 1.0 142
480 1.9 6 142 2 1.0 23 1.0 142
512 2.0 6 142 2 1.0 23 1.0 142
Buffer Wait Statistics DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> ordered by wait time desc, waits desc
Class Waits Total Wait Time (s) Avg Time (ms)
data block 66 1 15
undo block 25 0 0
undo header 3 0 0
Enqueue Activity DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> Enqueue stats gathered prior to 10i should not be compared with 10i data
-> ordered by Wait Time desc, Waits desc
Enqueue Type (Request Reason)
Requests Succ Gets Failed Gets Waits Wt Time (s) Av Wt Time(ms)
TX-Transaction (index contention)
1 1 0 1 0 22.00
Undo Segment Summary DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> Undo segment block stats:
-> uS - unexpired Stolen, uR - unexpired Released, uU - unexpired reUsed
-> eS - expired Stolen, eR - expired Released, eU - expired reUsed
Undo Undo Num Max Qry Max Tx Snap OutOf uS/uR/uU/
TS# Blocks Trans Len (s) Concurcy TooOld Space eS/eR/eU
1 5,497 6,716 2,708 4 0 0 0/0/0/0/0/0
Undo Segment Stats DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> ordered by Time desc
Undo Num Max Qry Max Tx Snap OutOf uS/uR/uU/
End Time Blocks Trans Len (s) Concy TooOld Space eS/eR/eU
07-Jul 17:24 26 161 2,708 1 0 0 0/0/0/0/0/0
07-Jul 17:14 27 143 2,108 2 0 0 0/0/0/0/0/0
07-Jul 17:04 27 226 1,508 1 0 0 0/0/0/0/0/0
07-Jul 16:54 1,565 1,734 204 4 0 0 0/0/0/0/0/0
07-Jul 16:44 2,985 3,078 145 4 0 0 0/0/0/0/0/0
07-Jul 16:34 867 1,374 0 4 0 0 0/0/0/0/0/0
Latch Activity DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> "Get Requests", "Pct Get Miss" and "Avg Slps/Miss" are statistics for
willing-to-wait latch get requests
-> "NoWait Requests", "Pct NoWait Miss" are for no-wait latch get requests
-> "Pct Misses" for both should be very close to 0.0
Pct Avg Wait Pct
Get Get Slps Time NoWait NoWait
Latch Name Requests Miss /Miss (s) Requests Miss
Consistent RBA 5,501 0.0 0 0
FOB s.o list latch 523 0.0 0 0
In memory undo latch 4,267 0.1 1.0 0 728 1.2
JOX SGA heap latch 22 0.0 0 0
JS queue state obj latch 25,992 0.0 0 0
JS slv state obj latch 338 0.0 0 0
KTF sga enqueue 8 0.0 0 1,092 0.0
KWQMN job cache list lat 12 0.0 0 0
KWQP Prop Status 415 0.0 0 0
MQL Tracking Latch 0 0 72 0.0
Memory Management Latch 18,075 0.0 0 1,207 0.0
PL/SQL warning settings 1,607 0.0 0 0
SQL memory manager latch 1 0.0 0 1,206 0.0
SQL memory manager worka 127,457 0.0 0.0 0 0
SWRF Alerted Metric Elem 13,029 0.0 0 0
Shared B-Tree 2,523 0.0 0 0
active checkpoint queue 1,560 0.0 0 0
active service list 6,791 0.0 0 0
archive control 8 0.0 0 0
begin backup scn array 40 0.0 0 0
cache buffer handles 4,560 0.0 0 0
cache buffers chains 14,704,024 0.0 0.2 1 3,447,993 0.0
cache buffers lru chain 62,381 0.3 0.4 2 3,121,799 0.4
channel handle pool latc 759 0.0 0 0
channel operations paren 14,505 0.0 0 0
checkpoint queue latch 67,923 0.0 0 16,481 0.0
child cursor hash table 36,508 0.0 0 0
client/application info 16 0.0 0 0
compile environment latc 1,063 0.0 0 0
cursor bind value captur 125 0.0 0 384 1.0
dictionary lookup 107 0.0 0 0
dml lock allocation 52,017 0.1 0.0 0 0
dummy allocation 839 0.4 0.0 0 0
enqueue hash chains 186,347 0.0 0.1 0 0
enqueues 122,225 0.0 0.0 0 0
event group latch 230 0.0 0 0
file cache latch 153 0.0 0 0
global KZLD latch for me 110 0.0 0 0
hash table column usage 512 0.0 0 138,833 0.0
hash table modification 125 0.0 0 0
internal temp table obje 3 0.0 0 0
job workq parent latch 0 0 388 0.0
job_queue_processes para 172 0.0 0 0
ksuosstats global area 243 0.0 0 0
ktm global data 175 0.0 0 0
kwqbsn:qsga 2,523 0.0 0 0
lgwr LWN SCN 6,225 0.0 0 0
library cache 1,069,757 0.1 0.3 5 2,857 227.5
library cache load lock 10,002 0.0 0 0
library cache lock 277,733 0.0 0.0 0 0
library cache lock alloc 4,092 0.0 0 0
library cache pin 776,264 0.0 0.0 0 0
library cache pin alloca 4,018 0.0 0 0
list of block allocation 1,044 0.0 0 0
loader state object free 460 0.0 0 0
longop free list parent 1,357 0.0 0 19,547 0.0
message pool operations 334 0.0 0 0
messages 37,979 0.0 0.9 0 0
mostly latch-free SCN 6,237 0.0 0.0 0 0
multiblock read objects 351,202 0.0 0.0 0 0
Latch Activity DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> "Get Requests", "Pct Get Miss" and "Avg Slps/Miss" are statistics for
willing-to-wait latch get requests
-> "NoWait Requests", "Pct NoWait Miss" are for no-wait latch get requestscontd..............
Edited by: LazyDBA10g on Jul 8, 2009 4:51 AM -
Hi all,when i am trying to declare a cursor in a procedure i am getting errors.Kindly correct me where i am going wrong
1 CREATE OR REPLACE PROCEDURE xxc_lc_rcv_interface_prc IS
2 v_a NUMBER;
3 v_b NUMBER;
4 v_c NUMBER;
5 v_d NUMBER;
6 v_e NUMBER;
7 v_f NUMBER;
8 v_g NUMBER;
9 CURSOR rcv_interface_cur
10 IS
11 SELECT shipment_header_id INTO v_c
12 FROM RCV_SHIPMENT_HEADERS
13 WHERE SHIPMENT_NUM = 'NOV1124';
14 SELECT shipment_line_id INTO v_d
15 FROM RCV_SHIPMENT_LINES
16 WHERE SHIPMENT_HEADER_ID = v_c;
17 BEGIN
18 SELECT rcv_headers_interface_s.nextval INTO v_a FROM dual ;
19 SELECT rcv_interface_group_s.nextval INTO v_b FROM dual;
20 SELECT rcv_headers_interface_s.currval INTO v_e FROM dual ;
21 SELECT rcv_interface_groups_s.currval INTO v_f FROM dual;
22 SELECT rcv_transactions_interface_s.nextval INTO v_g FROM dual;
23 BEGIN
24 INSERT INTO rcv_headers_interface
25 (
26 HEADER_INTERFACE_ID,
27 GROUP_ID,
28 PROCESSING_STATUS_CODE,
29 RECEIPT_SOURCE_CODE,
30 TRANSACTION_TYPE,
31 AUTO_TRANSACT_CODE,
32 LAST_UPDATE_DATE,
33 LAST_UPDATE_LOGIN,
34 LAST_UPDATED_BY,
35 CREATION_DATE,
36 CREATED_BY,
37 VALIDATION_FLAG,
38 COMMENTS,
39 SHIPMENT_NUM,
40 FROM_ORGANIZATION_ID,
41 SHIP_TO_ORGANIZATION_ID,
42 EXPECTED_RECEIPT_DATE
43 --RECEIPT_HEADER_ID
44 )
45 VALUES
46 (v_a, --Header Interface ID
47 v_b, --Group ID
48 'PENDING', --Processing Status Code
49 'INVENTORY', --Receipt source Code
50 'RECEIVE', --Transaction Type
51 'DELIVER' , --AUT Transact Code
52 sysdate, --last update date
53 1053, --last updated by
54 1053, --Last Update Login
55 sysdate, --creation date
56 1053, --created by
57 'Y', --Validation Flag
58 'Receiving Through Interface', --Comments
59 'NOV1124' , --Shipment Number
60 81, --From Org
61 82, --To org
62 sysdate --Expected Receipt Date
63 );
64 END;
65 BEGIN
66 FOR crec IN rcv_interface_cur loop
67 INSERT INTO rcv_transactions_interface
68 (
69 HEADER_INTERFACE_ID,
70 GROUP_ID,
71 INTERFACE_TRANSACTION_ID,
72 TRANSACTION_TYPE,
73 TRANSACTION_DATE,
74 PROCESSING_STATUS_CODE,
75 PROCESSING_MODE_CODE,
76 TRANSACTION_STATUS_CODE,
77 CATEGORY_ID,
78 QUANTITY,
79 LAST_UPDATE_DATE,
80 LAST_UPDATED_BY,
81 CREATION_DATE,
82 CREATED_BY,
83 RECEIPT_SOURCE_CODE,
84 DESTINATION_TYPE_CODE,
85 AUTO_TRANSACT_CODE,
86 SOURCE_DOCUMENT_CODE,
87 UNIT_OF_MEASURE,
88 INTERFACE_SOURCE_CODE,
89 ITEM_ID,
90 --ITEM_DESCRIPTION,
91 UOM_CODE,
92 EMPLOYEE_ID,
93 SHIPMENT_HEADER_ID,
94 TO_ORGANIZATION_ID,
95 SUBINVENTORY,
96 FROM_ORGANIZATION_ID,
97 FROM_SUBINVENTORY,
98 EXPECTED_RECEIPT_DATE,
99 SHIPPED_DATE,
100 VALIDATION_FLAG
101 )
102 VALUES
103 (v_e, --Header Interface ID
104 v_f, --Group ID
105 v_g, --Interface_transaction_id
106 'RECEIVE', --Transaction Type
107 sysdate, --Transaction Date
108 'PENDING', --Processing Status Code
109 'BATCH', --Processing Mode Code
110 'PENDING', --Transaction Status Code
111 120, --Category ID
112 2, --Quantity
113 sysdate, --last update date
114 1053, --last updated by
115 sysdate, --creation date
116 1053, --created by
117 'INVENTORY', --Receipt source Code
118 'INVENTORY', --Destination Type Code
119 'DELIVER' , --AUTO Transact Code
120 'INVENTORY', --Source Document Code
121 'Each', --Unit Of Measure
122 'RCV', --Interface Source Code
123 2492, --Item ID
124 --'ABBY KITCHEN CURTAIN SET BEIGE/BURGUNDY', --Item Description
125 'EA', --UOM COde
126 1053, --User
127 v_c, --Shipment Header ID
128 v_d, --SHipment Line ID
129 82, --To Organization ID
130 'Brooklyn', --Sub Inventory ID
131 81, --From Organization
132 'Vessel', --From Subinventory
133 sysdate, --Expected Receipt Date
134 sysdate, --Shipped Date
135 'Y' --Validation Flag
136 );
137 --END IF;
138 END LOOP;
139 END;
140* END xxc_lc_rcv_interface_prc;
SQL> /
Warning: Procedure created with compilation errors.
SQL> sho err
Errors for PROCEDURE XXC_LC_RCV_INTERFACE_PRC:
LINE/COL ERROR
14/2 PLS-00103: Encountered the symbol "SELECT" when expecting one of
the following:
begin function pragma procedure subtype type <an identifier>
<a double-quoted delimited-identifier> current cursor delete
exists prior
The symbol "begin" was substituted for "SELECT" to continue.
141/0 PLS-00103: Encountered the symbol "end-of-file" when expecting
one of the following:
( begin case declare end exception exit for goto if loop mod
null pragma raise return select update while with
<an identifier> <a double-quoted delimited-identifier>
<a bind variable> << continue close current delete fetch lock
insert open rollback savepoint set sql execute commit forall
merge pipe purgehi,
I have corrected your code
CREATE OR REPLACE PROCEDURE xxc_lc_rcv_interface_prc
IS
v_a NUMBER;
v_b NUMBER;
v_c NUMBER;
v_d NUMBER;
v_e NUMBER;
v_f NUMBER;
v_g NUMBER;
CURSOR rcv_interface_cur
IS
SELECT shipment_header_id
INTO v_c
FROM rcv_shipment_headers
WHERE shipment_num = 'NOV';
BEGIN
SELECT shipment_line_id
INTO v_d
FROM rcv_shipment_lines
WHERE shipment_header_id = v_c;
SELECT rcv_headers_interface_s.NEXTVAL
INTO v_a
FROM DUAL;
SELECT rcv_interface_group_s.NEXTVAL
INTO v_b
FROM DUAL;
SELECT rcv_headers_interface_s.CURRVAL
INTO v_e
FROM DUAL;
SELECT rcv_interface_groups_s.CURRVAL
INTO v_f
FROM DUAL;
SELECT rcv_transactions_interface_s.NEXTVAL
INTO v_g
FROM DUAL;
BEGIN
INSERT INTO rcv_headers_interface
(header_interface_id, GROUP_ID, processing_status_code,
receipt_source_code, transaction_type,
auto_transact_code, last_update_date, last_update_login,
last_updated_by, creation_date, created_by,
validation_flag, comments, shipment_num, from_organization_id, ship_to_organization_id, expected_receipt_date
--RECEIPT_HEADER_ID
VALUES (v_a, --Header Interface ID
v_b, --Group ID
'PENDING', --Processing Status Code
'INVENTORY', --Receipt source Code
'RECEIVE', --Transaction Type
'DELIVER', --AUT Transact Code
SYSDATE, --last update date
--, --last updated by
--, --Last Update Login
SYSDATE, --creation date
-- , --created by
'Y', --Validation Flag
'Receiving Through Interface', --Comments
'NOV', --Shipment Number
-- , --From Org
-- , --To org
SYSDATE --Expected Receipt Date
END;
BEGIN
FOR crec IN rcv_interface_cur
LOOP
INSERT INTO rcv_transactions_interface
(header_interface_id, GROUP_ID,
interface_transaction_id, transaction_type,
transaction_date, processing_status_code,
processing_mode_code, transaction_status_code,
category_id, quantity, last_update_date,
last_updated_by, creation_date, created_by,
receipt_source_code, destination_type_code,
auto_transact_code, source_document_code,
unit_of_measure, interface_source_code, item_id,
--ITEM_DESCRIPTION,
uom_code, employee_id, shipment_header_id, to_organization_id, subinventory, from_organization_id, from_subinventory, expected_receipt_date, shipped_date, validation_flag
VALUES (v_e, --Header Interface ID
v_f, --Group ID
v_g, --Interface_transaction_id
'RECEIVE', --Transaction Type
SYSDATE, --Transaction Date
'PENDING', --Processing Status Code
'BATCH', --Processing Mode Code
'PENDING', --Transaction Status Code
-- , --Category ID
-- , --Quantity
SYSDATE, --last update date
-- , --last updated by
SYSDATE, --creation date
-- , --created by
'INVENTORY', --Receipt source Code
'INVENTORY', --Destination Type Code
'DELIVER', --AUTO Transact Code
'INVENTORY',
--Source Document Code
'Each', --Unit Of Measure
'RCV', --Interface Source Code
-- , --Item ID
--'ABBY KITCHEN CURTAIN SET BEIGE/BURGUNDY', --Item Description
'EA', --UOM COde
-- , --User
v_c, --Shipment Header ID
v_d, --SHipment Line ID
-- , --To Organization ID
'Brooklyn', --Sub Inventory ID
-- , --From Organization
'Vessel', --From Subinventory
SYSDATE, --Expected Receipt Date
SYSDATE, --Shipped Date
'Y' --Validation Flag
--END IF;
END LOOP;
END;
END xxc_lc_rcv_interface_prc;
there are many syntax errors i have corrected .
Note : code is not compiled or tested .Thanks,
P Prakash
Edited by: prakash on Nov 21, 2011 4:00 AM -
Unable to read one-to-many relations using Hibernate
Hi,
I am trying with a very simple one-to-many relationship. When I am storing the objects, there are no problems. But when I am trying to read out the collection, it says invalid descriptor index. Please help.
Regards,
Hibernate version:
hibernate-3.1rc2
Mapping documents:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="Parent">
<id name="id">
<generator class="identity"/>
</id>
<set name="children">
<key column="parent_id"/>
<one-to-many class="Child"/>
</set>
</class>
<class name="Child">
<id name="id">
<generator class="identity"/>
</id>
<property name="name"/>
</class>
</hibernate-mapping>
Code between sessionFactory.openSession() and session.close():
The Parent class:
public class Parent
private Long id ;
private Set children;
Parent(){}
public Long getId()
return id;
public void setId(Long id)
this.id=id;
public Set getChildren()
return children;
public void setChildren(Set children)
this.children=children;
The Child class:
public class Child
private Long id;
private String name;
Child(){}
public Long getId()
return id;
private void setId(Long id)
this.id=id;
public String getName()
return name;
public void setName(String name)
this.name=name;
The Main class:
public class PCManager
public static void main(String[] args)
PCManager mgr = new PCManager();
List lt = null;
if (args[0].equals("store"))
mgr.createAndStoreParent(new HashSet(3));
else if (args[0].equals("list"))
mgr.listEvents();
HibernateUtil.getSessionFactory().close();
private void createAndStoreParent(HashSet s)
HibernateUtil.getSessionFactory().getCurrentSession().beginTransaction();
Parent p1 = new Parent();
int size = 3;
for (int i=size; i>0; i--)
Child c = new Child();
c.setName("Child"+i);
s.add(c);
p1.setChildren (s);
Iterator elems = s.iterator();
do {
Child ch = (Child) elems.next();
HibernateUtil.getSessionFactory().getCurrentSession().save(ch);
}while(elems.hasNext());
HibernateUtil.getSessionFactory().getCurrentSession().save(p1);
HibernateUtil.getSessionFactory().getCurrentSession().getTransaction().commit();
private void listEvents()
HibernateUtil.getSessionFactory().getCurrentSession().beginTransaction();
Parent result = (Parent) HibernateUtil.getSessionFactory().getCurrentSession().load(Parent.class, new Long(1));
System.out.println("Id is :"+ result.getId());
Set children = result.getChildren();
Iterator elems = children.iterator();
do {
Child ch = (Child) elems.next();
System.out.println("Child Name"+ ch.getName());
}while(elems.hasNext());
HibernateUtil.getSessionFactory().getCurrentSession().getTransaction().commit();
Full stack trace of any exception that occurs:
When I run with "hbm2ddl.auto" property as validate and trying to list the contents, I get the following out put.
C:\Documents and Settings\mirza\Desktop\hibernate-3.1rc2\MyHibernate>ant run -Da
ction=list
Buildfile: build.xml
clean:
[delete] Deleting directory C:\Documents and Settings\mirza\Desktop\hibernate
-3.1rc2\MyHibernate\bin
[mkdir] Created dir: C:\Documents and Settings\mirza\Desktop\hibernate-3.1rc
2\MyHibernate\bin
copy-resources:
[copy] Copying 4 files to C:\Documents and Settings\mirza\Desktop\hibernate
-3.1rc2\MyHibernate\bin
compile:
[javac] Compiling 5 source files to C:\Documents and Settings\mirza\Desktop\
hibernate-3.1rc2\MyHibernate\bin
run:
[java] 09:09:23,433 INFO Environment:474 - Hibernate 3.1 rc2
[java] 09:09:23,449 INFO Environment:489 - loaded properties from resource
hibernate.properties: {hibernate.cglib.use_reflection_optimizer=true, hibernate
.cache.provider_class=org.hibernate.cache.HashtableCacheProvider, hibernate.dial
ect=org.hibernate.dialect.SQLServerDialect, hibernate.max_fetch_depth=1, hiberna
te.jdbc.use_streams_for_binary=true, hibernate.format_sql=true, hibernate.query.
substitutions=yes 'Y', no 'N', hibernate.proxool.pool_alias=pool1, hibernate.cac
he.region_prefix=hibernate.test, hibernate.jdbc.batch_versioned_data=true, hiber
nate.connection.pool_size=1}
[java] 09:09:23,465 INFO Environment:519 - using java.io streams to persis
t binary types
[java] 09:09:23,465 INFO Environment:520 - using CGLIB reflection optimize
r
[java] 09:09:23,481 INFO Environment:550 - using JDK 1.4 java.sql.Timestam
p handling
[java] 09:09:23,559 INFO Configuration:1257 - configuring from resource: /
hibernate.cfg.xml
[java] 09:09:23,559 INFO Configuration:1234 - Configuration resource: /hib
ernate.cfg.xml
[java] 09:09:23,872 INFO Configuration:460 - Reading mappings from resourc
e: PCMapping.hbm.xml
[java] 09:09:24,013 INFO HbmBinder:266 - Mapping class: Parent -> Parent
[java] 09:09:24,045 INFO HbmBinder:266 - Mapping class: Child -> Child
[java] 09:09:24,045 INFO Configuration:1368 - Configured SessionFactory: n
ull
[java] 09:09:24,061 INFO Configuration:1014 - processing extends queue
[java] 09:09:24,061 INFO Configuration:1018 - processing collection mappin
gs
[java] 09:09:24,061 INFO HbmBinder:2233 - Mapping collection: Parent.child
ren -> Child
[java] 09:09:24,076 INFO Configuration:1027 - processing association prope
rty references
[java] 09:09:24,076 INFO Configuration:1049 - processing foreign key const
raints
[java] 09:09:24,155 INFO DriverManagerConnectionProvider:41 - Using Hibern
ate built-in connection pool (not for production use!)
[java] 09:09:24,170 INFO DriverManagerConnectionProvider:42 - Hibernate co
nnection pool size: 1
[java] 09:09:24,170 INFO DriverManagerConnectionProvider:45 - autocommit m
ode: false
[java] 09:09:24,170 INFO DriverManagerConnectionProvider:80 - using driver
: sun.jdbc.odbc.JdbcOdbcDriver at URL: jdbc:odbc:MySQL
[java] 09:09:24,170 INFO DriverManagerConnectionProvider:86 - connection p
roperties: {}
[java] 09:09:24,264 INFO SettingsFactory:77 - RDBMS: Microsoft SQL Server,
version: 08.00.0194
[java] 09:09:24,264 INFO SettingsFactory:78 - JDBC driver: JDBC-ODBC Bridg
e (SQLSRV32.DLL), version: 2.0001 (03.85.1117)
[java] 09:09:24,296 INFO Dialect:100 - Using dialect: org.hibernate.dialec
t.SQLServerDialect
[java] 09:09:24,311 INFO TransactionFactoryFactory:31 - Using default tran
saction strategy (direct JDBC transactions)
[java] 09:09:24,327 INFO TransactionManagerLookupFactory:33 - No Transacti
onManagerLookup configured (in JTA environment, use of read-write or transaction
al second-level cache is not recommended)
[java] 09:09:24,327 INFO SettingsFactory:125 - Automatic flush during befo
reCompletion(): disabled
[java] 09:09:24,327 INFO SettingsFactory:129 - Automatic session close at
end of transaction: disabled
[java] 09:09:24,343 INFO SettingsFactory:144 - Scrollable result sets: ena
bled
[java] 09:09:24,343 INFO SettingsFactory:152 - JDBC3 getGeneratedKeys(): d
isabled
[java] 09:09:24,343 INFO SettingsFactory:160 - Connection release mode: au
to
[java] 09:09:24,358 INFO SettingsFactory:184 - Maximum outer join fetch de
pth: 1
[java] 09:09:24,358 INFO SettingsFactory:187 - Default batch fetch size: 1
[java] 09:09:24,358 INFO SettingsFactory:191 - Generate SQL with comments:
disabled
[java] 09:09:24,358 INFO SettingsFactory:195 - Order SQL updates by primar
y key: disabled
[java] 09:09:24,358 INFO SettingsFactory:338 - Query translator: org.hiber
nate.hql.ast.ASTQueryTranslatorFactory
[java] 09:09:24,374 INFO ASTQueryTranslatorFactory:21 - Using ASTQueryTran
slatorFactory
[java] 09:09:24,374 INFO SettingsFactory:203 - Query language substitution
s: {no='N', yes='Y'}
[java] 09:09:24,374 INFO SettingsFactory:209 - Second-level cache: enabled
[java] 09:09:24,374 INFO SettingsFactory:213 - Query cache: disabled
[java] 09:09:24,374 INFO SettingsFactory:325 - Cache provider: org.hiberna
te.cache.HashtableCacheProvider
[java] 09:09:24,374 INFO SettingsFactory:228 - Optimize cache for minimal
puts: disabled
[java] 09:09:24,374 INFO SettingsFactory:233 - Cache region prefix: hibern
ate.test
[java] 09:09:24,405 INFO SettingsFactory:237 - Structured second-level cac
he entries: disabled
[java] 09:09:24,437 INFO SettingsFactory:257 - Echoing all SQL to stdout
[java] 09:09:24,452 INFO SettingsFactory:264 - Statistics: disabled
[java] 09:09:24,452 INFO SettingsFactory:268 - Deleted entity synthetic id
entifier rollback: disabled
[java] 09:09:24,452 INFO SettingsFactory:283 - Default entity-mode: POJO
[java] 09:09:24,593 INFO SessionFactoryImpl:155 - building session factory
[java] 09:09:24,938 INFO SessionFactoryObjectFactory:82 - Not binding fact
ory to JNDI, no JNDI name configured
[java] 09:09:24,954 INFO SchemaValidator:99 - Running schema validator
[java] 09:09:24,954 INFO SchemaValidator:107 - fetching database metadata
[java] 09:09:24,954 INFO Configuration:1014 - processing extends queue
[java] 09:09:24,954 INFO Configuration:1018 - processing collection mappin
gs
[java] 09:09:24,954 INFO Configuration:1027 - processing association prope
rty references
[java] 09:09:24,954 INFO Configuration:1049 - processing foreign key const
raints
[java] 09:09:24,985 WARN JDBCExceptionReporter:71 - SQL Error: 0, SQLState
: S1002
[java] 09:09:24,985 ERROR JDBCExceptionReporter:72 - [Microsoft][ODBC SQL S
erver Driver]Invalid Descriptor Index
[java] 09:09:25,001 ERROR SchemaValidator:129 - Error closing connection
[java] java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Invalid transaction state
[java] Initial SessionFactory creation failed.org.hibernate.exception.Gener
icJDBCException: could not get table metadata: Child
[java] java.lang.ExceptionInInitializerError
[java] at HibernateUtil.<clinit>(Unknown Source)
[java] at PCManager.listEvents(Unknown Source)
[java] at PCManager.main(Unknown Source)
[java] Caused by: org.hibernate.exception.GenericJDBCException: could not g
et table metadata: Child
[java] at org.hibernate.exception.SQLStateConverter.handledNonSpecificE
xception(SQLStateConverter.java:91)
[java] at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6879)
[java] at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7036)
[java] at sun.jdbc.odbc.JdbcOdbc.SQLDisconnect(JdbcOdbc.java:2988)
[java] at sun.jdbc.odbc.JdbcOdbcDriver.disconnect(JdbcOdbcDriver.java:9
80)
[java] at sun.jdbc.odbc.JdbcOdbcConnection.close(JdbcOdbcConnection.jav
a:739)
[java] at org.hibernate.tool.hbm2ddl.SchemaValidator.validate(SchemaVal
idator.java:125)
[java] at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryIm
pl.java:299)
[java] at org.hibernate.cfg.Configuration.buildSessionFactory(Configura
tion.java:1145)
[java] at HibernateUtil.<clinit>(Unknown Source)
[java] at org.hibernate.exception.SQLStateConverter.convert(SQLStateCon
verter.java:79)
[java] at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExcep
tionHelper.java:43)
[java] at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExcep
tionHelper.java:29)
[java] at org.hibernate.tool.hbm2ddl.DatabaseMetadata.getTableMetadata(
DatabaseMetadata.java:100)
[java] at org.hibernate.cfg.Configuration.validateSchema(Configuration.
java:946)
[java] at org.hibernate.tool.hbm2ddl.SchemaValidator.validate(SchemaVal
idator.java:116)
[java] at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryIm
pl.java:299)
[java] at org.hibernate.cfg.Configuration.buildSessionFactory(Configura
tion.java:1145)
[java] ... 3 more
[java] Caused by: java.sql.SQLException: [Microsoft][ODBC SQL Server Driver
]Invalid Descriptor Index
[java] at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6879)
[java] at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7036)
[java] at sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(JdbcOdbc.java:3862)
[java] at sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(JdbcOdbcResultS
et.java:5561)
[java] at sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.j
ava:338)
[java] at sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.j
ava:395)
[java] at PCManager.listEvents(Unknown Source)
[java] at PCManager.main(Unknown Source)
[java] at org.hibernate.tool.hbm2ddl.TableMetadata.<init>(TableMetadata
.java:30)
[java] at org.hibernate.tool.hbm2ddl.DatabaseMetadata.getTableMetadata(
DatabaseMetadata.java:85)
[java] ... 7 more
[java] Exception in thread "main"
[java] Java Result: 1
BUILD SUCCESSFUL
Total time: 4 seconds
Name and version of the database you are using:
Microsoft SQLServer2000
The generated SQL (show_sql=true):
When the program is run with "hbm2ddl.auto" property as create, I get the following output.
C:\Documents and Settings\mirza\Desktop\hibernate-3.1rc2\MyHibernate>ant run -Daction=store
Buildfile: build.xml
clean:
[delete] Deleting directory C:\Documents and Settings\mirza\Desktop\hibernate
-3.1rc2\MyHibernate\bin
[mkdir] Created dir: C:\Documents and Settings\mirza\Desktop\hibernate-3.1rc
2\MyHibernate\bin
copy-resources:
[copy] Copying 4 files to C:\Documents and Settings\mirza\Desktop\hibernate
-3.1rc2\MyHibernate\bin
compile:
[javac] Compiling 5 source files to C:\Documents and Settings\mirza\Desktop\
hibernate-3.1rc2\MyHibernate\bin
run:
[java] 09:12:54,820 INFO Environment:474 - Hibernate 3.1 rc2
[java] 09:12:54,836 INFO Environment:489 - loaded properties from resource
hibernate.properties: {hibernate.cglib.use_reflection_optimizer=true, hibernate
.cache.provider_class=org.hibernate.cache.HashtableCacheProvider, hibernate.dial
ect=org.hibernate.dialect.SQLServerDialect, hibernate.max_fetch_depth=1, hiberna
te.jdbc.use_streams_for_binary=true, hibernate.format_sql=true, hibernate.query.
substitutions=yes 'Y', no 'N', hibernate.proxool.pool_alias=pool1, hibernate.cac
he.region_prefix=hibernate.test, hibernate.jdbc.batch_versioned_data=true, hiber
nate.connection.pool_size=1}
[java] 09:12:54,852 INFO Environment:519 - using java.io streams to persis
t binary types
[java] 09:12:54,852 INFO Environment:520 - using CGLIB reflection optimize
r
[java] 09:12:54,867 INFO Environment:550 - using JDK 1.4 java.sql.Timestam
p handling
[java] 09:12:54,946 INFO Configuration:1257 - configuring from resource: /
hibernate.cfg.xml
[java] 09:12:54,946 INFO Configuration:1234 - Configuration resource: /hib
ernate.cfg.xml
[java] 09:12:55,259 INFO Configuration:460 - Reading mappings from resourc
e: PCMapping.hbm.xml
[java] 09:12:55,400 INFO HbmBinder:266 - Mapping class: Parent -> Parent
[java] 09:12:55,447 INFO HbmBinder:266 - Mapping class: Child -> Child
[java] 09:12:55,447 INFO Configuration:1368 - Configured SessionFactory: n
ull
[java] 09:12:55,447 INFO Configuration:1014 - processing extends queue
[java] 09:12:55,447 INFO Configuration:1018 - processing collection mappin
gs
[java] 09:12:55,447 INFO HbmBinder:2233 - Mapping collection: Parent.child
ren -> Child
[java] 09:12:55,463 INFO Configuration:1027 - processing association prope
rty references
[java] 09:12:55,479 INFO Configuration:1049 - processing foreign key const
raints
[java] 09:12:55,557 INFO DriverManagerConnectionProvider:41 - Using Hibern
ate built-in connection pool (not for production use!)
[java] 09:12:55,557 INFO DriverManagerConnectionProvider:42 - Hibernate co
nnection pool size: 1
[java] 09:12:55,557 INFO DriverManagerConnectionProvider:45 - autocommit m
ode: false
[java] 09:12:55,573 INFO DriverManagerConnectionProvider:80 - using driver
: sun.jdbc.odbc.JdbcOdbcDriver at URL: jdbc:odbc:MySQL
[java] 09:12:55,573 INFO DriverManagerConnectionProvider:86 - connection p
roperties: {}
[java] 09:12:55,651 INFO SettingsFactory:77 - RDBMS: Microsoft SQL Server,
version: 08.00.0194
[java] 09:12:55,667 INFO SettingsFactory:78 - JDBC driver: JDBC-ODBC Bridg
e (SQLSRV32.DLL), version: 2.0001 (03.85.1117)
[java] 09:12:55,682 INFO Dialect:100 - Using dialect: org.hibernate.dialec
t.SQLServerDialect
[java] 09:12:55,698 INFO TransactionFactoryFactory:31 - Using default tran
saction strategy (direct JDBC transactions)
[java] 09:12:55,714 INFO TransactionManagerLookupFactory:33 - No Transacti
onManagerLookup configured (in JTA environment, use of read-write or transaction
al second-level cache is not recommended)
[java] 09:12:55,714 INFO SettingsFactory:125 - Automatic flush during befo
reCompletion(): disabled
[java] 09:12:55,714 INFO SettingsFactory:129 - Automatic session close at
end of transaction: disabled
[java] 09:12:55,729 INFO SettingsFactory:144 - Scrollable result sets: ena
bled
[java] 09:12:55,729 INFO SettingsFactory:152 - JDBC3 getGeneratedKeys(): d
isabled
[java] 09:12:55,745 INFO SettingsFactory:160 - Connection release mode: au
to
[java] 09:12:55,745 INFO SettingsFactory:184 - Maximum outer join fetch de
pth: 1
[java] 09:12:55,745 INFO SettingsFactory:187 - Default batch fetch size: 1
[java] 09:12:55,745 INFO SettingsFactory:191 - Generate SQL with comments:
disabled
[java] 09:12:55,745 INFO SettingsFactory:195 - Order SQL updates by primar
y key: disabled
[java] 09:12:55,745 INFO SettingsFactory:338 - Query translator: org.hiber
nate.hql.ast.ASTQueryTranslatorFactory
[java] 09:12:55,777 INFO ASTQueryTranslatorFactory:21 - Using ASTQueryTran
slatorFactory
[java] 09:12:55,792 INFO SettingsFactory:203 - Query language substitution
s: {no='N', yes='Y'}
[java] 09:12:55,792 INFO SettingsFactory:209 - Second-level cache: enabled
[java] 09:12:55,792 INFO SettingsFactory:213 - Query cache: disabled
[java] 09:12:55,792 INFO SettingsFactory:325 - Cache provider: org.hiberna
te.cache.HashtableCacheProvider
[java] 09:12:55,808 INFO SettingsFactory:228 - Optimize cache for minimal
puts: disabled
[java] 09:12:55,808 INFO SettingsFactory:233 - Cache region prefix: hibern
ate.test
[java] 09:12:55,808 INFO SettingsFactory:237 - Structured second-level cac
he entries: disabled
[java] 09:12:55,839 INFO SettingsFactory:257 - Echoing all SQL to stdout
[java] 09:12:55,839 INFO SettingsFactory:264 - Statistics: disabled
[java] 09:12:55,839 INFO SettingsFactory:268 - Deleted entity synthetic id
entifier rollback: disabled
[java] 09:12:55,839 INFO SettingsFactory:283 - Default entity-mode: POJO
[java] 09:12:55,980 INFO SessionFactoryImpl:155 - building session factory
[java] 09:12:56,325 INFO SessionFactoryObjectFactory:82 - Not binding fact
ory to JNDI, no JNDI name configured
[java] 09:12:56,341 INFO Configuration:1014 - processing extends queue
[java] 09:12:56,341 INFO Configuration:1018 - processing collection mappin
gs
[java] 09:12:56,341 INFO Configuration:1027 - processing association prope
rty references
[java] 09:12:56,341 INFO Configuration:1049 - processing foreign key const
raints
[java] 09:12:56,356 INFO Configuration:1014 - processing extends queue
[java] 09:12:56,356 INFO Configuration:1018 - processing collection mappin
gs
[java] 09:12:56,356 INFO Configuration:1027 - processing association prope
rty references
[java] 09:12:56,372 INFO Configuration:1049 - processing foreign key const
raints
[java] 09:12:56,372 INFO SchemaExport:153 - Running hbm2ddl schema export
[java] 09:12:56,388 DEBUG SchemaExport:171 - import file not found: /import
.sql
[java] 09:12:56,388 INFO SchemaExport:180 - exporting generated schema to
database
[java] 09:12:56,403 DEBUG SchemaExport:283 -
[java] alter table Child
[java] drop constraint FK3E104FC976A59A
[java] 09:12:56,466 DEBUG SchemaExport:283 -
[java] drop table Child
[java] 09:12:56,544 DEBUG SchemaExport:283 -
[java] drop table Parent
[java] 09:12:56,654 DEBUG SchemaExport:283 -
[java] create table Child (
[java] id numeric(19,0) identity not null,
[java] name varchar(255) null,
[java] parent_id numeric(19,0) null,
[java] primary key (id)
[java] )
[java] 09:12:56,779 DEBUG SchemaExport:283 -
[java] create table Parent (
[java] id numeric(19,0) identity not null,
[java] primary key (id)
[java] )
[java] 09:12:56,873 DEBUG SchemaExport:283 -
[java] alter table Child
[java] add constraint FK3E104FC976A59A
[java] foreign key (parent_id)
[java] references Parent
[java] 09:12:56,952 INFO SchemaExport:200 - schema export complete
[java] 09:12:56,952 WARN JDBCExceptionReporter:48 - SQL Warning: 5701, SQL
State: 01000
[java] 09:12:56,952 WARN JDBCExceptionReporter:49 - [Microsoft][ODBC SQL S
erver Driver][SQL Server]Changed database context to 'master'.
[java] 09:12:56,952 WARN JDBCExceptionReporter:48 - SQL Warning: 5703, SQL
State: 01000
[java] 09:12:56,952 WARN JDBCExceptionReporter:49 - [Microsoft][ODBC SQL S
erver Driver][SQL Server]Changed language setting to us_english.
[java] 09:12:56,983 INFO SessionFactoryImpl:432 - Checking 0 named queries
[java] Hibernate:
[java] insert
[java] into
[java] Child
[java] (name)
[java] values
[java] (?) select
[java] scope_identity()
[java] Hibernate:
[java] insert
[java] into
[java] Child
[java] (name)
[java] values
[java] (?) select
[java] scope_identity()
[java] Hibernate:
[java] insert
[java] into
[java] Child
[java] (name)
[java] values
[java] (?) select
[java] scope_identity()
[java] Hibernate:
[java] insert
[java] into
[java] Parent
[java] default
[java] values
[java] select
[java] scope_identity()
[java] Hibernate:
[java] update
[java] Child
[java] set
[java] parent_id=?
[java] where
[java] id=?
[java] Hibernate:
[java] update
[java] Child
[java] set
[java] parent_id=?
[java] where
[java] id=?
[java] Hibernate:
[java] update
[java] Child
[java] set
[java] parent_id=?
[java] where
[java] id=?
[java] 09:12:57,390 INFO SessionFactoryImpl:831 - closing
[java] 09:12:57,390 INFO DriverManagerConnectionProvider:147 - cleaning up
connection pool: jdbc:odbc:MySQL
BUILD SUCCESSFUL
Total time: 5 seconds
Debug level Hibernate log excerpt:
Included in the above description.That's not the right mapping for the 1:m relationship in Hibernate.
First of all, I believe the recommendation is to have a separate .hbm.xml file for each class, so you should have one for Parent and Child.
Second, you'll find the proper syntax for a one-to-many relationship here:
http://www.hibernate.org/hib_docs/v3/reference/en/html/tutorial.html#tutorial-associations
See if those help.
The tutorial docs for Hibernate are quite good. I'd recommend going through them carefully.
% -
Hello All,
please tell me whats wrong in the following trigger,
what effectively i am trying here is I wanted to insert the old records
before update to a temporary table, if this is not the way, then what is the correct way.
SQL> desc ttt1;
Name Null? Type
C1 NUMBER
C2 NUMBER
C3 NUMBER
BMU_ID NUMBER
SQL> desc temp_changes;
Name Null? Type
BMU_ID NUMBER
C2 NUMBER
C3 NUMBER
SQL> ed
Wrote file afiedt.buf
1 create or replace trigger tri_ttt1
2 before update of c3, c2 on ttt1 REFERENCING OLD AS old_ttt1 NEW AS new_ttt1
3 begin
4 insert into temp_changes
5 SELECT BMU_ID,C2,C3
6 FROM ttt1
7 WHERE old_ttt1.c2<>new_ttt1.c2
8 AND old_ttt1.C3<>new_ttt1.C3;
9* end;
SQL> /
Warning: Trigger created with compilation errors.
SQL> sho err
Errors for TRIGGER TRI_TTT1:
LINE/COL ERROR
2/1 PL/SQL: SQL Statement ignored
6/18 PL/SQL: ORA-00904: "NEW_TTT1"."C3": invalid identifieryou forgot the colon (:) before new and old...
Maybe you are looking for
-
When I sign in to the eprint enter I get the following error message Ajax submit failed: error =403, Forbidden This question was solved. View Solution.
-
I searched for an answer but couldn't find one, so here goes. I'm editing 640x480 avi files I took with my digital camera for a 4:3 tv. When I export video footage (Export>Quicktime Movie) the final movie is in 720x480. When I burn it to a DVD it loo
-
No icon for nokia mail in 7.8 on lumia710 in live ...
Hi ... I have a Lumia 710 running on wp7.8 Firmware version - 1600.3036.8858.12460 I have pinned the Nokia mail to start but when I make the tile smallest there was no icon of Nokia mail .... I thought it is a temporary problem and I reset my phone b
-
HT2452 I can't remember my administrator password. How can I reset it to make upgrades?
I cannot remember my administrator password and now I can no longer upgrade any of my software. How do I reset it?
-
I access the internet through the Mozilla Firefox browser with a "toolbar"that was originally as described above. My default "home page " is the AOL web site through which I access e-mail . AOL offered a" toolbar" -- I installed it and '''several day