URGENT: Java stored procedure on oracle 92 database is not working
Hi,
I am having an issue regarding java stored procedures. I have created a java class that uses the bouncycastleprovider ( bcprov-jdk13-141.jar ) to encrypt strings. I tested against the version of the java virtual machine that comes bundled with oracle and it works perfectly. I then used JDeveloper to load the class on the database with the resolve, noverify and order flags checked and it shows no errors but when I try to execute the stored procedure it throws the following exception:
java.lang.ExceptionInInitializerError:
java.lang.SecurityException: Cannot set up certs for trusted CAs: java.net.MalformedURLException: no protocol: US_export_policy.jar
at javax.crypto.SunJCE_b.<clinit>(DashoA6275)
at javax.crypto.Cipher.a(DashoA6275)
at javax.crypto.Cipher.getInstance(DashoA6275)
at RijndaelEnhanced.encrypt(RijndaelEnhanced.java:57)
at RijndaelEnhanced.encrypt(RijndaelEnhanced.java:73)
I loaded jce1_2_2.jar, sunjce_provider.jar, bcprov-jdk13-141.jar. Also replaced the US_export_policy.jar, local_policy.jar with the unrestrictive version. I add the security provider dinamically with a call to Security.insertProviderAt(new org.bouncycastle.jce.provider.BouncyCastleProvider(), 2);
I also did a select on the user_objects table and all the classes are in VALID status.
When I run my application using the java virtual machine that is located under C:\Oracle\oracli9i\jdk\jre\bin directory it works fine but when I try to execute on the database it won't work. I found a bug that was if the jce1_2_1.jar file existed in the C:\Oracle\oracli9i\jdk\jre\lib\ext directory ( even if it's extension is renamed ) it won't work because the certification file had expired but I don't know if this has anything to do with this error.
Am I missing something?
Please I need an urgent solution to this problem.
Thanks in advance.
Bruno Oliveira
SomeoneElse wrote:
Waaaaahhhhhhh!I was just thinking the same thing.... ya beat me to it...
To the OP:
As an up and coming DB Developer who now works for a small tech firm straight outta college, I can tell you for sure that you will definitely not get anywhere in your impatient life... look behind your back you miserable dude, your job might be in danger since ya got a bad attitude AND you can't figure out an error you are getting from a Java SP. So instead of helping you, I am going to simply tell you how you SHOULD act in a community of practice.
1. Be nice when looking for help
2. BE NICE WHEN LOOKING FOR HELP!!!
Pretty simple right?
Know what else is really simple? Looking at the topics of each board to make sure ya post in the right board! You people disgust me; somehow getting by in your professional career acting the way you do. I sure hope your "online" persona isn't a reflection of your real attitude towards people, almost pathetic and extremely immature.
Sorry bout the rant, it is Friday, I know :) Didn't get my coffee this morning. Have a good one all!
-Tim
Similar Messages
-
Java Stored Procedure in one database connecting to muntiple databases.
Hello,
I created a Java Stored Procedure in one database(Oracle10g) and successfully open a connection to another database(Oracle10g) using Thin JDBC Driver. I want to actually transfer CLOB data from one DB to another DB. I am concern that by opening a connection another database in Java Stored Procedure, might interfere with oracle and destabilize the instance at some point. Oracle JDBC FAQ (Link: http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm#34_13) stated that Yes it could be done but then mentioned the workaround.(if it could be done why do we need a workaround!!!)
I would like to confirm whether connecting to multiple DB using JDBC Thin Driver in a Java Stored Procedure is supported by Oracle10g or not and whether it has any known issue with it.
Thanks in Advance!
Edited by: user649261 on Sep 16, 2008 8:05 PMhrishy wrote:
Thanks i have modified the title so its easy to comprehendWrite the two parts mentioned above and post if you get problems with your code.
First write code that calls the stored procedure and test that to make sure that it works.
Then write a simple webservice and test it out to make sure it works. The integration should be trivial after that. -
How to create java stored procedure from oracle(Dastageer)
how to create java stored procedure from oracle-please help me to create the procedure.
Hi,
This forum is exclusively for discussions related to Sun Java Studio Creator. Please post your question in the appropriate forum.
Thanks,
RK. -
Java Stored Procedures and Oracle XE
Hi folks,
Does anyone know if Oracle XE supports Java Stored Procedures.
Thanks in advance,
KrisUnfortunately you misunderstood me. I didn't call Oracle XE crippled, Yes, I did misunderstand. Apologies.
Bottom line - JMS is not extant. JMS and AQ are not quite the same thing.
AQ was developed back in early Oracle8 (8.0) (and possibly the late Oracle 7) days and seems to have been a pure PL/SQL implementation (probably with hooks at the C/C++ DB kernel level). The extensions that link to JMS came later.
Since JMS depends on Java, and since 'Java in the database' is not part of XE by design and well documented, I considered you comment
that JMS is not supported at all in Oracle XE or is at least
severly crippled.to be more than you apparently meant it to be,
AQ is 'supported' but lack of Java Stored Procs causes some limitations here as you have noted, as well as in Oracle Text and interMedia support.
I'd love to see Java in the database for future upgrades to XE. -
Issue with sending mail through java stored procedure in Oracle
Hello
I am using Oracle 9i DB. I created a java stored procedure to send mail using the code given below. The java class works fine standalone. When its run from Java, mail is sent as desired. But when the java stored procedure is called from pl/sql "Must issue a STARTTLS command first" error is thrown. Please let me know if am missing something. Tried the same code in 11.2.0.2 DB and got the same error
Error:
javax.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS command first. va6sm31201010igc.6
Code for creating java stored procedure: (T1 is the table created for debugging)
==================================================
create or replace and compile java source named "MailUtil1" AS
import java.util.Enumeration;
import java.util.Properties;
import javax.mail.Message;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
public class MailUtil1 {
public static void sendMailwithSTARTTLS(String host, //smtp.projectp.com
String from, //sender mail id
String fromPwd,//sender mail pwd
String port,//587
String to,//recepient email ids
String cc,
String subject,
String messageBody) {
try{
Properties props = System.getProperties();
props.put("mail.smtp.starttls.enable", "True"); // added this line
props.put("mail.smtp.host", host);
props.put("mail.smtp.user", from);
props.put("mail.smtp.password", fromPwd);
props.put("mail.smtp.port", port);
props.put("mail.smtp.auth", "true");
#sql { insert into t1 (c1) values ('1'||:host)};
Session session = Session.getDefaultInstance(props, null);
MimeMessage message = new MimeMessage(session);
message.setFrom(new InternetAddress(from));
#sql { insert into t1 (c1) values ('2')};
InternetAddress[] toAddress = new InternetAddress[1];
// To get the array of addresses
for( int i=0; i < toAddress.length; i++ ) { // changed from a while loop
toAddress[i] = new InternetAddress(to);
//System.out.println(Message.RecipientType.TO);
for( int i=0; i < toAddress.length; i++) { // changed from a while loop
message.addRecipient(Message.RecipientType.TO, toAddress);
if (cc!=null) {
InternetAddress [] ccAddress = new InternetAddress[1];
for(int j=0;j<ccAddress.length;j++){
ccAddress[j] = new InternetAddress(cc);
for (int j=0;j<ccAddress.length;j++){
message.addRecipient(Message.RecipientType.CC, ccAddress[j]);
message.setSubject(subject);
message.setText(messageBody);
message.saveChanges();
#sql { insert into t1 (c1) values ('3')};
Enumeration en = message.getAllHeaderLines();
String token;
while(en.hasMoreElements()){
token ="E:"+en.nextElement().toString();
#sql { insert into t1 (c1) values (:token)};
token ="ConTyp:"+message.getContentType();
#sql { insert into t1 (c1) values (:token)};
token = "Encod:"+message.getEncoding();
#sql { insert into t1 (c1) values (:token)};
token = "Con:"+message.getContent();
#sql { insert into t1 (c1) values (:token)};
Transport transport = session.getTransport("smtp");
#sql { insert into t1 (c1) values ('3.1')};
transport.connect(host, from, fromPwd);
#sql { insert into t1 (c1) values ('3.2')};
transport.sendMessage(message, message.getAllRecipients());
#sql { insert into t1 (c1) values ('3.3')};
transport.close();
#sql { insert into t1 (c1) values ('4')};
catch(Exception e){
e.printStackTrace();
String ex= e.toString();
try{
#sql { insert into t1 (c1) values (:ex)};
catch(Exception e1)
Edited by: user12050615 on Jan 16, 2012 12:18 AMHello,
Thanks for the reply. Actually I have seen that post before creating this thread. I thought that I could make use of java mail to work around this problem. I created a java class that succesfully sends mail to SSL host. I tried to call this java class from pl-sql through java stored procedure. That did not work
So, is this not supported in Oracle ? Please note that I have tested this in both 9i and 11g , in both the versions I got the error. You can refer to the code in the above post.
Thanks
Srikanth
Edited by: user12050615 on Jan 16, 2012 12:17 AM -
Calling Stored Procedure from Oracle DataBase using Sender JDBC (JDBC-JMS)
Hi All,
We have requirement to move the data from Database to Queue (Interface Flow: JDBC -> JMS).
Database is Oracle.
*Based on Event, data will be triggered into two tables: XX & YY. This event occurs twice daily.
Take one field: 'aa' in XX and compare it with the field: 'pp' in YY.
If both are equal, then
if the field: 'qq' in YY table equals to "Add" then take the data from the view table: 'Add_View'.
else if the field: 'qq' in YY table equals to "Modify" then take the data from the view table: 'Modify_View'.
Finally, We need to archive the selected data from the respective view table.*
From each table, data will come differently, means with different field names.
I thought of call Stored Procedure from Sender JDBC Adapter for the above requirement.
But I heard that, we cannot call stored procedure in Oracle through Sender JDBC as it returns Cursor instead of ResultSet.
Is there any way other than Stored Procedure?
How to handle Data Types as data is coming from two different tables?
Can we create one data type for two tables?
Is BPM required for this to collect data from two different tables?
Can somebody guide me on how to handle this?
Waiting eagerly for help which will be rewarded.
Thanks and Regards,
Jyothirmayi.Hi Gopal,
Thank you for your reply.
>Is there any way other than Stored Procedure?
Can you try configuring sender adapter to poll the data in intervals. You can configure Automatic TIme planning (ATP) in the sender jdbc channel.
I need to select the data from different tables based on some conditions. Let me simplify that.
Suppose Table1 contains 'n' no of rows. For each row, I need to test two conditions where only one condition will be satisfied. If 1st condition is satisfied, then data needs to be taken from Table2 else data needs to be taken from Table3.
How can we meet this by configuring sender adapter with ATP?
================================================================================================
>How to handle Data Types as data is coming from two different tables?
If you use join query in the select statement field of the channel then whatever you need select fields will be returned. This might be fields of two tables. your datatype fields are combination of two diff table.
we need to take data only from one table at a time. It is not join of two tables.
================================================================================================
Thanks,
Jyothirmayi. -
Java stored procedure problem(oracle db)
HI,
we have a java stored procedure with the following definition, and that works as we want it to:
CREATE OR REPLACE FUNCTION processBulletin(in_varchar VARCHAR2) RETURN VARCHAR2
AS LANGUAGE JAVA
NAME 'JavaParser.Bufr_Ingest.processBulletin(java.lang.String) return java.lang.String';
And the Java portion:
public static String processBulletin(String in_bull)
... do something with in_bull
The problem is that we've recently discovered that the 32767 size restiriction on the input parameter varchar2 is too small. I don't want to rewrite the entire Java procedure. I figured the simplest (or at least temporary)solution would be to have the Java procedure accept a CLOB, convert that clob to a string and continue as it would. I was hoping someone might be able to tell me if the following would be possible:
CREATE OR REPLACE FUNCTION processBulletin(in_clob CLOB) RETURN VARCHAR2
AS LANGUAGE JAVA
NAME 'JavaParser.Bufr_Ingest.processBulletin(oracle.sql.CLOB) return java.lang.String';
And the Java portion:
public static String processBulletin(oracle.sql.CLOB in_clob)
String in_bull = clob_in.getSubString(1, (int)clob_in.length());
... do something with in_bull
ThanksI don't know about Java stored procedures, but in JDBC you usually use streams to work with CLOBS. Here's Oracle JDBC Developers Guide, Working with LOBs
-
Java stored procedure in Oracle 8i
Hi,
I read in the whitepaper of Oracle "Stored Procedure Tutorial", I have a little problem understanding the following syntax in the example enclosed, please help.
In Java environment the method:
public static void assignEMailAddress(Connection conn, int eno, String fname, String lname) throws Exception;
this method take 4 parameters, but when it is public to SQL, the parameter is ignored!
Is this understood by the DBMS?
Is this Connection-typed parameter must ALWAYS be the first one in the proceudre list or the procedure list can be in any order?
The tutorial is given in Oracle 8i, Lite, we will be using the real Entreprise Oracle 8i, does it make any difference in how we should load java stored procedure?
I really appreciate any help. thanks
nullMapping between Java types and pl/sql types
can only be done for standard Java datatypes.
You cannot publish a java procedure accepting a Connection variable to PLSQL.
Hope this helps. -
How to call MSSQL stored procedure from oracle database
MSSQL and Oracle databases are linked thru ODBC link using Oracle HSODBC.
I can query MSSQL table or view from Oracle Database using standard notation for acessing remote objects schema.object@dblink_name...
Can anybody give me syntax for calling MSSQL stored procedure thru ODBC database link?
I tried syntax exec schema.stored_procedure@dblink_name but it doesn't work...i'm getting schema.stored_procedure must be declared error...
Tnx,in advance!
Dejan BoticaOracle database 10gR2.
MSSQL2000 database.
For example query:
select * from dbo.Tbl_Test@kron@dw_jamnica; works fine...
...while for example exec dbo.Test@kron@dw_jamnica;
reports error:
ORA-06550: line 1, column 7:
PLS-00201: identifier 'DBO.TEST@KRON@DW_JAMNICA' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
Table Tbl_Test and procedure Test exists in MSSQL instance.
Regards,
Dejan -
Use of Java packages in Java stored procedures? (Oracle 10.2)
Hi all-
Does Oracle's Java stored procedures support Java packages? In all the examples I've seen, packages are never used, and when I added one to a test file, it compiled it just fine, but referencing the class from the package itself resulted in a compiling error.
In other words, it seems to make absolutely no difference if I preface my Java class with
package com.mycompany.whatever;
and while I can "import com.mycompany.whatever.MyClass" in another Java file, it seems to not care at all whether I do so or not.
Thanks for any clarification,
IlfordHi Ilford:
Sure you can use fully package notation in your Java classes.
Look at this Java source code:
http://dbprism.cvs.sourceforge.net/dbprism/cms-2.1/src/com/prism/cms/core/
All of them are Java Stored procedures.
Best regards, Marcelo. -
JCE Based Java Stored Procedure in Oracle 8i
I have a Java class which is created based on JCE 1.2.1. I need to call this Java class from PL/SQL. Therefore, I want to create a Java stored procedure based on this Java class. I just read some topics in this forum and it seems that many people are unable to have JCE correctly setup on Oracle8 JVM.
My question is how to configure the JVM of Oracle8i to use the JCE?
I am using Oracle 8.1.6 on unix.
Thanks,unfortunately, for JCE to work, you need a fix to OracleJVM that we will be providing in the next major release
Thanks for your reply.
The JCE optional package could be installed on SUN's JDK 1.2.x or higher. Since Oracle 8.1.6's JServer support SUN's JDK 1.2.1. Therefore, in theory, JCE could be installed for Oracle 8.1.6 or higher.
However, the cofiguration of JCE on the JVM requires the modification of Java security policy file. I followed the JCE's installation guide but it did not work on Oracle's JServer.
My question is: How to install JCE 1.2.1 on Oracle 8.1.6? Is it possible to configure the JVM of Oracle 8.1.x to use JCE? If yes, how?
Thanks,
JCE is an optional package even in J2SE 1.3 - it is required in J2SE 1.4
OracleJVM will be J2SE 1.4 compliant in the nest major release and we plan to support JCE
I have a Java class which is created based on JCE 1.2.1. I need to call this Java class from PL/SQL. Therefore, I want to create a Java stored procedure based on this Java class. I just read some topics in this forum and it seems that many people are unable to have JCE correctly setup on Oracle8 JVM.
My question is how to configure the JVM of Oracle8i to use the JCE?
I am using Oracle 8.1.6 on unix.
Thanks, -
Java stored procedure in oracle spatial
hi,
i am getting confuse on this issue. i am using oracle 10g R2 as a dbms. what version of jdk should i use to compile my java program? right now i am using jdk 1.5 but each time i want to create class file, it cannot be loaded succesfully in my database. i try to use -source and -target to 1.4 but there is a conflict version. could anybody explain to me and give me a suggestion. thanks.Hi,
Have you checked this link http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_10201.html which mentions all the necessary Oracle Database 10g Release 2 (10.2.0.4) JDBC Drivers. The jar files has classes for use with both jdk 1.4 and 1.5.
-Priyanka -
Oracle Database Is Not Working !
Hy,
I am getting this error . . .
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
E:\Documents and Settings\iLLuMiNaTi>sqlplus system@XE
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jul 30 01:30:56 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter password:
ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
Enter user-name: / as sysdba
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> connect system/xxx
ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
Warning: You are no longer connected to ORACLE.
SQL>
Any idea ?
Regards
Usman Ur RehmanI am getting this . . . After you told me to execute the following commands . . .
sql>shutdown immediate
sql> startup
sql> exit
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
E:\Documents and Settings\iLLuMiNaTi> sqlplus system@XE
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jul 30 01:41:10 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter password:
ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
Enter user-name: / as sysdba
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> shutdown immediate
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 599785472 bytes
Fixed Size 1288820 bytes
Variable Size 205522316 bytes
Database Buffers 390070272 bytes
Redo Buffers 2904064 bytes
Database mounted.
ORA-00313: open failed for members of log group 2 of thread 1
ORA-00312: online log 2 thread 1:
'E:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_2_62VD0YB8_.LOG'
SQL>
What's now ?
Regards,
Usman Ur Rehman -
OTN Oracle Database Downloads Not Working
After agrgeeing to the T&C's none of the download links work.
See this page for example:
http://otn.oracle.com/software/products/oracle9i/htdocs/linuxsoft.html
Specific Download not working:
http://download.oracle.com/otn/linux/oracle9i/9202/ship_9202_ia64_lnx_Disk1.cpio.gz
Regards,
AndrewSeems to be fine. Try this link instead: http://otn.oracle.com/software/htdocs/devlic.html?http://download-west.oracle.com/otn/linux/oracle9i/9202/ship_9202_ia64_lnx_Disk1.cpio.gz
OTN Team -
Oracle database control not working
hi,
I have configure database control using below command on oracle 11g database , but unable to start database control.
emca -config dbcontrol db -repos create
-bash-3.2$ emctl status dbconsole
OC4J Configuration issue. /db0/app/oracle/product/11.2.0.3/db_1/oc4j/j2ee/OC4J_DBConsole_zainbi.zainiq.com_DB11G not found.
tail -100 /db0/app/oracle/cfgtoollogs/emca/db11g/emca_2012_09_27_14_23_37.log
Sep 27, 2012 2:41:32 PM oracle.sysman.emcp.util.PlatformInterface addEnvVarToList
CONFIG: Value for env var 'LANG' is 'null', discarding the same
Sep 27, 2012 2:41:32 PM oracle.sysman.emcp.util.PlatformInterface getEnvProps
CONFIG: Returning env array from cache
Sep 27, 2012 2:41:32 PM oracle.sysman.emcp.util.PlatformInterface getSortedEnvArray
CONFIG: New Env List: [CLASSPATH=/db0/app/oracle/product/11.2.0.3/db_1/jlib/emca.jar:/db0/app/oracle/product/11.2.0.3/db_1/jlib/srvm.jar:/db0/app/oracle/product/11.2.0.3/db_1/jlib/srvmasm.jar:/db0/app/oracle/product/11.2.0.3/db_1/jlib/cvu.jar:/db0/app/oracle/product/11.2.0.3/db_1/jlib/emConfigInstall.jar:/db0/app/oracle/product/11.2.0.3/db_1/jlib/ldapjclnt11.jar:/db0/app/oracle/product/11.2.0.3/db_1/jlib/ldap.jar:/db0/app/oracle/product/11.2.0.3/db_1/jlib/share.jar:/db0/app/oracle/product/11.2.0.3/db_1/jlib/srvmhas.jar:/db0/app/oracle/product/11.2.0.3/db_1/jlib/netcfg.jar:/db0/app/oracle/product/11.2.0.3/db_1/jlib/http_client.jar:/db0/app/oracle/product/11.2.0.3/db_1/lib/http_client.jar:/db0/app/oracle/product/11.2.0.3/db_1/lib/xmlparserv2.jar:/db0/app/oracle/product/11.2.0.3/db_1/assistants/jlib/assistantsCommon.jar:/db0/app/oracle/product/11.2.0.3/db_1/sysman/jlib/emCORE.jar:/db0/app/oracle/product/11.2.0.3/db_1/sysman/jlib/emagentSDK.jar:/db0/app/oracle/product/11.2.0.3/db_1/oui/jlib/OraInstaller.jar:/db0/app/oracle/product/11.2.0.3/db_1/oui/jlib/OraPrereq.jar:/db0/app/oracle/product/11.2.0.3/db_1/inventory/prereqs/oui/OraPrereqChecks.jar:/db0/app/oracle/product/11.2.0.3/db_1/oui/jlib/OraPrereqChecks.jar:, DYLD_LIBRARY_PATH=/db0/app/oracle/product/11.2.0.3/db_1/lib:, HOME=/export/home/oracle, LC_COLLATE=en_US.ISO8859-1, LC_CTYPE=en_US.ISO8859-1, LC_MESSAGES=C, LC_MONETARY=en_US.ISO8859-1, LC_NUMERIC=en_US.ISO8859-1, LC_TIME=en_US.ISO8859-1, LD_LIBRARY_PATH=/db0/app/oracle/product/11.2.0.3/db_1/jdk/jre/lib/sparcv9/server:/db0/app/oracle/product/11.2.0.3/db_1/jdk/jre/lib/sparcv9:/db0/app/oracle/product/11.2.0.3/db_1/jdk/jre/../lib/sparcv9:/db0/app/oracle/product/11.2.0.3/db_1/lib:/db0/app/oracle/product/11.2.0.3/db_1/perl/lib:/db0/app/oracle/product/11.2.0.3/db_1/network/lib:, LIBPATH=/db0/app/oracle/product/11.2.0.3/db_1/lib:, LOGNAME=oracle, MAIL=/usr/mail/oracle, NEED_EXIT_CODE=1, NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat, OLDPWD=/db0/app/oracle/product/11.2.0.3/db_1, ORACLE_BASE=/db0/app/oracle, ORACLE_HOME=/db0/app/oracle/product/11.2.0.3/db_1, ORACLE_HOSTNAME=zainbi.zainiq.com, ORACLE_SID=db11g, ORACLE_UNQNAME=db11g, PATH=/db0/app/oracle/product/11.2.0.3/db_1/bin:/usr/bin:/bin, PWD=/db0/app/oracle/product/11.2.0.3/db_1/oc4j/j2ee, SHELL=/bin/bash, SHLIB_PATH=/db0/app/oracle/product/11.2.0.3/db_1/lib:, SHLVL=1, SSH_CLIENT=10.50.32.99 53969 22, SSH_CONNECTION=10.50.32.99 53969 10.50.7.70 22, SSH_TTY=/dev/pts/22, TERM=xterm, TMP=/tmp, TMPDIR=/tmp, TZ=Asia/Baghdad, USER=oracle, XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt, _=/db0/app/oracle/product/11.2.0.3/db_1/bin/emca]
Sep 27, 2012 2:41:32 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Starting execution: /db0/app/oracle/product/11.2.0.3/db_1/bin/emctl start dbconsole
Sep 27, 2012 2:42:10 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Exit value of 0
Sep 27, 2012 2:42:10 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Execution of /db0/app/oracle/product/11.2.0.3/db_1/bin/emctl start dbconsole completed successfully
Sep 27, 2012 2:42:10 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Oracle Enterprise Manager 11g Database Control Release 11.2.0.3.0
Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.
https://zainbi.zainiq.com:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control ....... started.
Logs are generated in directory /db0/app/oracle/product/11.2.0.3/db_1/zainbi.zainiq.com_db11g/sysman/log
Sep 27, 2012 2:42:10 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Sep 27, 2012 2:42:10 PM oracle.sysman.emcp.util.PlatformInterface isPre112Home
CONFIG: oracleHome: /db0/app/oracle/product/11.2.0.3/db_1 isPre112Home: false
Sep 27, 2012 2:42:10 PM oracle.sysman.emcp.util.ClusterUtil getLocalNode
CONFIG: isLocalNodeDone: true localNode: null
Sep 27, 2012 2:42:10 PM oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
Sep 27, 2012 2:42:10 PM oracle.sysman.emcp.util.ClusterUtil getLocalNode
CONFIG: isLocalNodeDone: true localNode: null
Sep 27, 2012 2:42:10 PM oracle.sysman.emcp.EMDBPostConfig addUrl
CONFIG: Updating file /db0/app/oracle/product/11.2.0.3/db_1/install/readme.txt ...
Sep 27, 2012 2:42:10 PM oracle.sysman.emcp.util.FileUtil _copyFile
CONFIG: Copying file /db0/app/oracle/product/11.2.0.3/db_1/install/readme.txt to /db0/app/oracle/product/11.2.0.3/db_1/install/readme.txt.emca.util.tmp
Sep 27, 2012 2:42:10 PM oracle.sysman.emcp.util.FileUtil backupFile
CONFIG: The original file /db0/app/oracle/product/11.2.0.3/db_1/install/readme.txt has been copied to /db0/app/oracle/product/11.2.0.3/db_1/install/readme.txt.emca.util.tmp
Sep 27, 2012 2:42:10 PM oracle.sysman.emcp.EMDBPostConfig addUrl
CONFIG: Writing the selected url to readme.txt
Sep 27, 2012 2:42:10 PM oracle.sysman.emcp.EMDBPostConfig addUrl
CONFIG: Removing existing entries from readme.txt Enterprise Manager Database Control URL - (db11g) :
Sep 27, 2012 2:42:10 PM oracle.sysman.emcp.util.FileUtil _copyFile
CONFIG: Copying file /db0/app/oracle/product/11.2.0.3/db_1/install/readme.txt.emca.util.tmp to /db0/app/oracle/product/11.2.0.3/db_1/install/readme.txt
Sep 27, 2012 2:42:10 PM oracle.sysman.emcp.EMDBPostConfig addUrl
CONFIG: File /db0/app/oracle/product/11.2.0.3/db_1/install/readme.txt is successfully updated
Sep 27, 2012 2:42:10 PM oracle.sysman.emcp.util.ClusterUtil getLocalNode
CONFIG: isLocalNodeDone: true localNode: null
Sep 27, 2012 2:42:10 PM oracle.sysman.emcp.util.PlatformInterface isPre112Home
CONFIG: oracleHome: /db0/app/oracle/product/11.2.0.3/db_1 isPre112Home: false
Sep 27, 2012 2:42:10 PM oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
Sep 27, 2012 2:42:10 PM oracle.sysman.emcp.util.ClusterUtil getLocalNode
CONFIG: isLocalNodeDone: true localNode: null
Sep 27, 2012 2:42:10 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is https://zainbi.zainiq.com:1158/em <<<<<<<<<<<
Sep 27, 2012 2:42:10 PM oracle.sysman.emcp.util.DBControlUtil prepareEmkeyCmdList
CONFIG: Value of EMKEY_LOCATION : null/emkey.ora
Sep 27, 2012 2:42:10 PM oracle.sysman.emcp.util.PlatformInterface addEnvVarToList
CONFIG: Value for env var 'DISPLAY' is 'null', discarding the same
Sep 27, 2012 2:42:10 PM oracle.sysman.emcp.util.PlatformInterface addEnvVarToList
CONFIG: Value for env var 'NLS_LANG' is 'null', discarding the same
Sep 27, 2012 2:42:10 PM oracle.sysman.emcp.util.PlatformInterface addEnvVarToList
CONFIG: Value for env var 'LANG' is 'null', discarding the same
Sep 27, 2012 2:42:10 PM oracle.sysman.emcp.util.PlatformInterface getEnvProps
CONFIG: Returning env array from cache
Sep 27, 2012 2:42:10 PM oracle.sysman.emcp.util.PlatformInterface getSortedEnvArray
CONFIG: New Env List: [CLASSPATH=/db0/app/oracle/product/11.2.0.3/db_1/jlib/emca.jar:/db0/app/oracle/product/11.2.0.3/db_1/jlib/srvm.jar:/db0/app/oracle/product/11.2.0.3/db_1/jlib/srvmasm.jar:/db0/app/oracle/product/11.2.0.3/db_1/jlib/cvu.jar:/db0/app/oracle/product/11.2.0.3/db_1/jlib/emConfigInstall.jar:/db0/app/oracle/product/11.2.0.3/db_1/jlib/ldapjclnt11.jar:/db0/app/oracle/product/11.2.0.3/db_1/jlib/ldap.jar:/db0/app/oracle/product/11.2.0.3/db_1/jlib/share.jar:/db0/app/oracle/product/11.2.0.3/db_1/jlib/srvmhas.jar:/db0/app/oracle/product/11.2.0.3/db_1/jlib/netcfg.jar:/db0/app/oracle/product/11.2.0.3/db_1/jlib/http_client.jar:/db0/app/oracle/product/11.2.0.3/db_1/lib/http_client.jar:/db0/app/oracle/product/11.2.0.3/db_1/lib/xmlparserv2.jar:/db0/app/oracle/product/11.2.0.3/db_1/assistants/jlib/assistantsCommon.jar:/db0/app/oracle/product/11.2.0.3/db_1/sysman/jlib/emCORE.jar:/db0/app/oracle/product/11.2.0.3/db_1/sysman/jlib/emagentSDK.jar:/db0/app/oracle/product/11.2.0.3/db_1/oui/jlib/OraInstaller.jar:/db0/app/oracle/product/11.2.0.3/db_1/oui/jlib/OraPrereq.jar:/db0/app/oracle/product/11.2.0.3/db_1/inventory/prereqs/oui/OraPrereqChecks.jar:/db0/app/oracle/product/11.2.0.3/db_1/oui/jlib/OraPrereqChecks.jar:, DYLD_LIBRARY_PATH=/db0/app/oracle/product/11.2.0.3/db_1/lib:, HOME=/export/home/oracle, LC_COLLATE=en_US.ISO8859-1, LC_CTYPE=en_US.ISO8859-1, LC_MESSAGES=C, LC_MONETARY=en_US.ISO8859-1, LC_NUMERIC=en_US.ISO8859-1, LC_TIME=en_US.ISO8859-1, LD_LIBRARY_PATH=/db0/app/oracle/product/11.2.0.3/db_1/jdk/jre/lib/sparcv9/server:/db0/app/oracle/product/11.2.0.3/db_1/jdk/jre/lib/sparcv9:/db0/app/oracle/product/11.2.0.3/db_1/jdk/jre/../lib/sparcv9:/db0/app/oracle/product/11.2.0.3/db_1/lib:/db0/app/oracle/product/11.2.0.3/db_1/perl/lib:/db0/app/oracle/product/11.2.0.3/db_1/network/lib:, LIBPATH=/db0/app/oracle/product/11.2.0.3/db_1/lib:, LOGNAME=oracle, MAIL=/usr/mail/oracle, NEED_EXIT_CODE=1, NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat, OLDPWD=/db0/app/oracle/product/11.2.0.3/db_1, ORACLE_BASE=/db0/app/oracle, ORACLE_HOME=/db0/app/oracle/product/11.2.0.3/db_1, ORACLE_HOSTNAME=zainbi.zainiq.com, ORACLE_SID=db11g, ORACLE_UNQNAME=db11g, PATH=/db0/app/oracle/product/11.2.0.3/db_1/bin:/usr/bin:/bin, PWD=/db0/app/oracle/product/11.2.0.3/db_1/oc4j/j2ee, SHELL=/bin/bash, SHLIB_PATH=/db0/app/oracle/product/11.2.0.3/db_1/lib:, SHLVL=1, SSH_CLIENT=10.50.32.99 53969 22, SSH_CONNECTION=10.50.32.99 53969 10.50.7.70 22, SSH_TTY=/dev/pts/22, TERM=xterm, TMP=/tmp, TMPDIR=/tmp, TZ=Asia/Baghdad, USER=oracle, XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt, _=/db0/app/oracle/product/11.2.0.3/db_1/bin/emca]
Sep 27, 2012 2:42:10 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Starting execution: /db0/app/oracle/product/11.2.0.3/db_1/bin/emctl config emkey -remove_from_repos
Sep 27, 2012 2:42:13 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Exit value of 0
Sep 27, 2012 2:42:13 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Execution of /db0/app/oracle/product/11.2.0.3/db_1/bin/emctl config emkey -remove_from_repos completed successfully
Sep 27, 2012 2:42:13 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Oracle Enterprise Manager 11g Database Control Release 11.2.0.3.0
Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.
Please enter repository password:
The Em Key has been removed from the Management Repository.
Make a backup copy of OH/sysman/config/emkey.ora file and store it on another machine.
WARNING: Encrypted data in Enterprise Manager will become unusable if the emkey.ora file is lost or corrupted.
Sep 27, 2012 2:42:13 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: stty: : No such device or address
stty: : No such device or address
Sep 27, 2012 2:42:13 PM oracle.sysman.emcp.util.DBControlUtil secureEmkey
CONFIG: Succesfully removed Em Key from Management Repository.
Sep 27, 2012 2:42:13 PM oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
Sep 27, 2012 2:42:13 PM oracle.sysman.emcp.util.ClusterUtil getLocalNode
CONFIG: isLocalNodeDone: true localNode: null
Sep 27, 2012 2:42:13 PM oracle.sysman.emcp.EMDBPostConfig invoke
WARNING:
************************ WARNING ************************
Management Repository has been placed in secure mode wherein Enterprise Manager data will be encrypted. The encryption key has been placed in the file: /db0/app/oracle/product/11.2.0.3/db_1/zainbi.zainiq.com_db11g/sysman/config/emkey.ora. Ensure this file is backed up as the encrypted data will become unusable if this file is lost.
Sep 27, 2012 2:42:13 PM oracle.sysman.emcp.EMConfig restoreOuiLoc
CONFIG: Restoring oracle.installer.oui_loc to /db0/app/oracle/product/11.2.0.3/db_1/oui
Edited by: user12137804 on Sep 27, 2012 5:17 AMhi,
Thanks for your reply, when i try to connect db control from my browser using link https://zainbi.zainiq.com:1158/em it will show me below message
can't establish a connection to the server at zainbi.zainiq.com:1158.
When i check the status: emctl status dbconsole
EM Configuration issue. /db0/app/oracle/product/11.2.0.3/db_1/zainbi.zainiq.com_DB11G not found.
when i check the path i found the last folder with sid name in lower case /db0/app/oracle/product/11.2.0.3/db_1/zainbi.zainiq.com_db11g.
I have rename the directory with /db0/app/oracle/product/11.2.0.3/db_1/zainbi.zainiq.com_DB11G.
Then i execute emctl status dbconsole command it show running state and i have successfully connected to my enterpirse manager.
So moral of the story is : use the same case for database sid in tnsname and database installation other wise face problem in configuring oracle enterprise manager repository.
Thanks
Zeeshan
Businness Analytics Islamabad
Edited by: user12137804 on Sep 28, 2012 3:57 AM
Maybe you are looking for
-
I had to restore my computer and now it won't sync with my iPhone
I had to restore my computer to default and now I can't transfer items in my iTunes library to my phone. Is there anything besides 3rd party software that I can do to authorize this computer. I restored my phone and I could transfer songs, but then
-
UOM Conversions and Standard Cost Variances
If we have the right Unit of Measure conversion defined, with standard cost in FEET and the PO ordered in METERS, will the standard cost variance calculate properly? That is, will it take into consideration a different standard cost when calculating
-
Customer giving requirement for one year
Customer is giving order for the materials to be supplied for one year (the quantity can change to some extent) at a particular rate. With reference to that order he is also giving monthly schedule (in which he mentions how much quantity to be delive
-
Calling Report Parameter in Row Formula - Report Painter
hello i have a unique situation in which 11 months out of the year i need to call a certain "cell" and then in December I need to call another "cell" i figured if that is possible I would be able to do this one of two ways: IF "Eval Period" <> 12 THE
-
After I purchase a song how do I get it into my ipod - the ipod is plugged into the computer
after I purchase a song how do I get it into my ipod - the ipod is plugged into the computer