Running JAXB2 in a 10g Database

Hi All,
We have some java business logic which uses JAXB2. We now would like to be able to call / store this java code inside the database. It's a 10g database, which I understand has the 1.4 JVM, so I've retrotranslated the code (and the JAXB2 dependencies) and created a compatible jar. The loadjava command^1^ completes successfully, however when I try and execute the code which unmarshals the XML, I get the following error: Caused by: java.lang.RuntimeException: Provider com.sun.xml.bind.v2.ContextFactory could not be instantiated: javax.xml.bind.JAXBException: Provider com.sun.xml.bind.v2.ContextFactory not found
The ContextFactory is definitely in the jar file. Looking through the generated DB trace file I see the following:
creating : class com/sun/xml/bind/v2/ContextFactory with resolver ((* london) (* PUBLIC) (org/apache/* -) (jp/gr/xml/relax/* -) (com/bea/* -) (javax/management/* -) (com/thoughtworks/xstream/* -) (org/jvnet/* -) (com/sun/xml/fastinfoset/* -) (sun/misc/* -))
but then, instead of resolving the class:
skipping : class com/sun/xml/bind/v2/ContextFactory
Why would the ContextFactory be skipped? Is there any way I can force the loadjava command to resolve it?
1. The server-side loadJava command I use is: call sys.dbms_java.loadjava( '-force -verbose -resolve /scripts/p3/db_sql/cta23001.jar','((* london) (* PUBLIC) (org/apache/* -) (jp/gr/xml/relax/* -) (com/bea/* -) (javax/management/* -) (com/thoughtworks/xstream/* -) (org/jvnet/* -) (com/sun/xml/fastinfoset/* -) (sun/misc/* -))' );

Hi:
You can find Jaxb related classes implemented by Oracle into ${ORACLE_HOME}/lib/xml.jar but not all classes should be installed, please look at Ant task named unpack-jaxb-classes at:
[http://dbprism.cvs.sourceforge.net/viewvc/dbprism/cms-2.1/tasks/cms.xml?revision=1.19&view=markup]
this Ant task extract all Jaxb required classes which can be installed into an Oracle 10g/11g database, see the Task pre-install which install this jar into SYS's schema.
To see how to use Jaxb marshall/unmarshall operation please take a look at the method processRequestAction, inside the code you can see how to instantiate the marshaller and unmarshaller:
[http://dbprism.cvs.sourceforge.net/viewvc/dbprism/cms-2.1/src/com/prism/cms/action/Controller.java?revision=1.8&view=markup]
Best regards, Marcelo.

Similar Messages

  • Trying to run a query on 10g database using vbscript

    Hi,
    We have recently upgraded from oracle 8 to 10g and have been very impressed with the superb performance. However, we use vbscript applications on occasions to connect to our DB using ADO which now no longer work:
    Set dbUser = CreateObject("ADODB.Connection")
    set rec = createObject("ADODB.Recordset")
    dbUser.ConnectionString = "Provider=OraOLEDB.Oracle;User Id=???;Password=???;"
    dbUser.Open
    rec.ActiveConnection = dbUser
    rec.Open "select CUSTOMER_SURNAME FROM OURTABLE.TBL_ORDERS"
    do until rec.EOF
         msgbox rec("CUSTOMER_SURNAME")     
         rec.movenext
    loop
    This table has thousands of records but when we run the query we only get 1 result. Does anybody have any thoughts as to why this might be?

    I'm trying to run a query in a JTextField and then have that query display the output in a JTable.1. Write classes that only do JDBC. If there is any GUI code at all in them then it is wrong.
    2. Test those classes and modify until they work.
    3. Use those classes in your GUI code (other classes) to do what you want.
    Questions about 1 and 2 go in this forum. Questions about 3 go into a GUI forum.
    Use code tags when you post code.

  • How many sessions can run simultaneously in oracle 10g database

    Dear Experts,
    Please tell me .
    Thanks

    Going into further details, if you are asking about number of concurrent sessions >that can access a block then it is defined by the INITRANS and MAXTRANS >parameters for the segment (which defaults to 2 for table segment, 1 for index >segment). There is more to say about that ITL slots: for Oracle 9i at least there can only be a maximum of 255 ITL slots whatever the data block size: for small block size, the maximum of ITL slots is about 50% of the data block size and and can be lower than 255.
    See Metalink note:
    Subject: INITRANS relationship with DB_BLOCK_SIZE.
    Doc ID: Note:151473.1 Type: BULLETIN
    Last Revision Date: 27-SEP-2006 Status: PUBLISHED
    I don't know if this is still valid for Oracle 10g.

  • Problem in running a 6i-form against 10g-Database

    Hi gentlemen, I'm developing my application with Database 10g and Developer-6i at front end. when I compile a file (which was formarly created with Dev-6i but Database 8.3(personal edition)at the back end) it gives the following error:
    Compiling PRE-INSERT trigger on PURINV_MAS data block...
    Compilation error on PRE-INSERT trigger on PURINV_MAS data block:
    PL/SQL ERROR 0 at line 0, column 0
    ORA-00600: internal error code, arguments: [17069], [77299844], [], [], [], [], [], []
    Compiling WHEN-LIST-CHANGED trigger on UNIT_NAME item in PURINV_MAS data block...
    Compilation error on WHEN-LIST-CHANGED trigger on UNIT_NAME item in PURINV_MAS data block:
    PL/SQL ERROR 0 at line 0, column 0
    ORA-00600: internal error code, arguments: [17069], [77299844], [], [], [], [], [], []
    Compilation errors have occurred.
    however if I run this file again with Db8x at back-end,it compiles n runs correctly without any error. Plzzz can u tell me a solution for this? thanx.

    With 10g database, minimum required patch is patch 16 (patch 17 is last Forms 6i patch).
    Regards,
    Zlatko Sirotic

  • Running forms 6i on a 10g database

    We are encountering problems running forms 6i on a 10g database. the forms keep dropping and we get ifrun files with access_voilation c0000005 error. Has anyone encountered this problem

    Some breaking news - we are planning to certify 6i against 10g - but as Frank points out - you will be required to patch up - we are targetting Patch 17.
    Regards
    Grant Ronald
    Forms Product Management

  • An instance of Oracle EM 10g Database Control is already running.

    Hello all, I've this problem when I reboot my system and try to start EM console (because it's not working after each reboot until I restarted it):
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.2.0
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    http://IC-Server:1158/em/console/aboutApplication
    - An instance of Oracle Enterprise Manager 10g Database Control is already running.
    but if I check the EM status, these are the results:
    IC605 on IC-Server: emctl status dbconsole
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.2.0
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    http://IC-Server:1158/em/console/aboutApplication
    Oracle Enterprise Manager 10g is not running.
    Logs are generated in directory /u01/app/oracle/product/10.2.0/IC-Server_IC605/sysman/log
    IC605 on IC-Server:The only way to solve this that I found -at least for now- it's to stop the EM console, and then start it again.
    And contents of file emdctl.trc are these:
    IC605 on IC-Server: cat emdctl.trc
    2008-09-02 00:11:00 Thread-1 WARN http: snmehl_connect: connect failed to (IC-Server:3938): Connection refused (error = 146)
    .... a lot of similar lines ....
    2008-09-12 00:47:17 Thread-1 WARN http: snmehl_connect: connect failed to (IC-Server:1158): Connection refused (error = 146)
    2008-09-12 01:11:35 Thread-1 WARN http: snmehl_connect: connect failed to (IC-Server:1158): Connection refused (error = 146)
    IC605 on IC-Server:
    Could you give any clue about where I must search for the problem?
    Thanks a lot.
    Martin
    P.S.: Some additional info...
    OS Version:
    # uname -a
    SunOS IC-Server 5.10 Generic_137112-06 i86pc i386 i86pc
    DB Version:
    SQL> conn /as sysdba
    Connected to an idle instance.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 289406976 bytes
    Fixed Size 1279820 bytes Variable Size 159385780 bytes
    Database Buffers 125829120 bytes
    Redo Buffers 2912256 bytes
    Database mounted.
    Database opened.
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Prod
    PL/SQL Release 10.2.0.2.0 - Production
    CORE 10.2.0.2.0 Production
    TNS for Solaris: Version 10.2.0.2.0 - Production
    NLSRTL Version 10.2.0.2.0 - ProductionEdited by: martinmorono on Sep 14, 2008 3:41 PM

    I've done it. Thanks.
    >SQL> alter session set current_schema = SYSMAN;
    >
    >Session altered.
    >
    >SQL> exec mgmt_target.set_agent_tzrgn('IC-Server:3938','America/Buenos_Aires');
    >
    >PL/SQL procedure successfully completed.
    >
    >SQL>
    But I still have the same trouble with EM Console startup... After rebooting my server, I got this error:
    IC605 on IC-Server: emctl status dbconsole
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.2.0
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    http://IC-Server:1158/em/console/aboutApplication
    Oracle Enterprise Manager 10g is not running.
    Logs are generated in directory /u01/app/oracle/product/10.2.0/IC-Server_IC605/sysman/log
    IC605 on IC-Server: emctl start dbconsole
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.2.0
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    http://IC-Server:1158/em/console/aboutApplication
    - An instance of Oracle Enterprise Manager 10g Database Control is already running.
    IC605 on IC-Server:I must to stop and then to start it "again" to be able to use the EM.
    Have you any idea?

  • Running database control of a remote 10g database under linux

    Hi,
    I have a question. I installed oracle 10g on my windows PC as well as on a remote server which is on linux. For both the databases, I can run DatabaseControl by entering a similar kind of URL in my browser (just server name is different, all other parts of URL are same).
    Now, when I tried to run the DatabaseControl for some other oracle 10g servers (also under linux), I am getting the error "The page cannot be displayed". This means that the services to run database control are not available on the remote server. Can someone please tell me what setups and services are required on those servers so that I can run their DatabaseControl from my PC's browser. (Please give me the step-by-step instructions of what needs to be done on remote
    servers) - Thanks.

    But that does not explain why emctl does not exist. Existence of emctl file is not dependent on whether DB Control is created on or not.
    Whether you ticked using DB Control or not, the Server is installed with Enterprise Manager by default. You do not need to run OUI to create the Database Control (Db Console). You only need to run emca to create the dbconsole.
    But the problem here is that they cannot see emctl. Which brings me to the question of whether they are actually on the right ORACLE_HOME or box
    If the Database was installed in the Linux box and the client on the PC, the emctl should be on the Linux box and not on the PC. If you have more than one ORACLE_HOME, then you need to ensure you are on the correct ORACLE_HOME

  • Reports 6i against 10g database

    Hi,
    We are upgrading our database from 9i to 10g. We are running our reports (6i) against 10g database in the batch mode. For some of our reports we are getting the following error:
    REP-0736: There exist uncompiled program unit(s).
    REP-1247: Report contains uncompiled PL/SQL.
    When report is opened in ReportBuilder it needs to be recompiled against 10g and then it runs fine.
    Please advise how to solve this problem.

    This is not because of the database is changed. Some of the packages/program units compilation dates might have changed and hence reports wants it to be recompiled.
    Rajesh Alex

  • 10g database installation in windows2003

    Following error found in the insallation of 10g database installation in Windows 2003.
    Kindly give me the solutions in [email protected]
    Thaning you
    Mohan, Milma, Tvm.Kerala India.
    Error list from Oracle configuration assistant
    Output generated from configuration assistant "Oracle Net Configuration Assistant":
    Parsing command line arguments:
    Parameter "orahome" = E:\oracle\ora10g
    Parameter "orahnam" = OraDb10g_home1
    Parameter "instype" = typical
    Parameter "inscomp" = client,oraclenet,javavm,server,ano
    Parameter "insprtcl" = tcp,nmp
    Parameter "cfg" = local
    Parameter "authadp" = NO_VALUE
    Parameter "nodeinfo" = NO_VALUE
    Parameter "responsefile" = E:\oracle\ora10g\network\install\netca_typ.rsp
    Done parsing command line arguments.
    Oracle Net Services Configuration:
    Profile configuration complete.
    Oracle Net Listener Startup:
    Running Listener Control:
    E:\oracle\ora10g\bin\lsnrctl start LISTENER
    Listener Control complete.
    Listener started successfully.
    Setting Listener service to start automatically.
    Listener configuration complete.
    Default local naming configuration complete.
    Oracle Net Services configuration successful. The exit code is 0
    Configuration assistant "Oracle Net Configuration Assistant" succeeded
    ================================================================================================================
    Output generated from configuration assistant "iSQL*Plus Configuration Assistant":
    iSQL*Plus 10.1.0.2.0
    Copyright (c) 2004 Oracle. All rights reserved.
    Starting iSQL*Plus ...
    iSQL*Plus started.
    Configuration assistant "iSQL*Plus Configuration Assistant" succeeded
    ================================================================================================================
    Output generated from configuration assistant "Oracle Database Configuration Assistant":
    java.io.IOException:
    Instance created.
    DIM-00019: create service error
    O/S-Error: (OS 1388) A new member could not be added to a local group because the member has the wrong account type.
         at oracle.sysman.assistants.util.OsUtilsBase.execProg(OsUtilsBase.java:1090)
         at oracle.sysman.assistants.util.OsUtilsBase.execProg(OsUtilsBase.java:1026)
         at oracle.sysman.assistants.util.OsUtilsBase.execProg(OsUtilsBase.java:1007)
         at oracle.sysman.assistants.util.Oradim.addEntry(Oradim.java:530)
         at oracle.sysman.assistants.dbca.backend.InstanceStep.executeImpl(InstanceStep.java:243)
         at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:209)
         at oracle.sysman.assistants.util.step.BasicStep.callStep(BasicStep.java:250)
         at oracle.sysman.assistants.dbca.backend.CloneRmanRestoreStep.executeImpl(CloneRmanRestoreStep.java:201)
         at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:209)
         at oracle.sysman.assistants.util.step.Step.execute(Step.java:140)
         at oracle.sysman.assistants.util.step.StepContext$ModeRunner.run(StepContext.java:2394)
         at java.lang.Thread.run(Thread.java:534)
    Configuration assistant "Oracle Database Configuration Assistant" failed

    I had the same problem and solved it by doing the following:
    Do not stop the DBCA to do this.
    Go to Start->Control Panel-> Services -> oracleserviceyoursid and start the service. That will get you through that error.
    Just in case you see this one as well....I did encounter a TNS error after that. I resolved this by commenting out (#) the line SQLNET.AUTHENTICATION_SERVICES=(NTS) in SQLNET.ORA file.

  • Problem in installation of Oracle 10g database on RHEL 6

    I am facing the problem when I am trying to install Oracle 10g database on Red Hat 6. When ./runinstaller is run, the message seems to be if I remember correctly is like ‘……………bad ELF interpreter’. But, the same source seems to be installing correctly in Red Hat 5.
    Please, help in solving the doubt.
    Regards

    Hi;
    1. Please make search before posting your issue here. Similar issue mention here million time
    2. Please use certified platform such as *nix 5.x .
    3. For can check certification from metalink or from below note:
    Oracle Database on Unix AIX,HP-UX,Linux,Mac OS X,Solaris,Tru64 Unix Operating Systems Installation and Configuration Requirements Quick Reference (8.0.5 to 11.2) [ID 169706.1]
    PS:Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding
    Regard
    Helios

  • Errors in manual creation of oracle 10g database

    I created oracle 10g database manually and i am getting post installation errors.. could you please help out?
    I executed @?/sqlplus/admin/pupbld.sql but it still shows
    Error accessing PRODUCT_USER_PROFILE
    Warning: Product user profile information not loaded!
    You may need to run PUPBLD.SQL as SYSTEM
    i tried to see
    SQL> desc product_user_profile;
    ERROR:
    ORA-04043: object "SYSTEM"."SQLPLUS_PRODUCT_PROFILE" does not exist
    not there?? any other scripts to be run ? please guide me.
    2. I can not able login sys@sid as sysdba
    SQL> select * from v$pwfile_users;
    no rows selected
    i changed
    remote_login_passwordfile string EXCLUSIVE
    re-started db but no help...
    SQL> grant sysdba to sys;
    grant sysdba to sys
    ERROR at line 1:
    ORA-01990: error opening password file
    I re-created
    $ORACLE_HOME/bin/orapwd file=$ORACLE_HOME/dbs/orapwmydb.ora password=xxxx entries=5 force=y
    but no help..
    Could one please help out... ! great thanks in advance..

    thanks for prompt reply .. but still one issue remain..
    oracle DEVS $ sqlplus sys@sid sysdba
    SQL*Plus: Release 10.1.0.4.0 - Production on Thu Jan 7 10:51:44 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Enter password:
    ERROR:
    ORA-01031: insufficient privileges
    but i can able to login as sqlplus sys as sysdba
    SQL> select * From v$pwfile_users;
    no rows selected
    i tired to do
    SQL> grant sysdba to sys;
    grant sysdba to sys
    ERROR at line 1:
    ORA-01990: error opening password file
    '/u02/app/oracle/product/10.1.0/dbs/orapw'
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Additional information: 3
    there is already one password file with orapwsid.ora.. how this should be solved ? please help. thanks

  • Oracle 10g Database conflicts with HTMLDB

    Hai all,
    I have encountered a strange conflict when I am trying to work out with Oracle 10g database and the famous HTML DB.
    It is like this:
    I have a 10g DB installed and an ASP application that works on this 10g instance via "Microsoft ODBC driver for oracle" perfectly.
    Now I have downloaded and installed the 10g Companion CD and installed the HTML DB 1.5 along with the mandatory Apache web server. Good!! I could scrawl through the database using the HTML DB, creating applications, forms, items and etc fancy things without any issues.
    The problem that I found was:
    The ASP based application that used to work initially now is erroring out saying that "TNS could not resolve service name".
    I thought that the Listener might be damaged or the ASP site was damaged or the Microsoft ODBC driver files were damaged and several other vauge guessings.
    I have tested the issue in several ways (reinstalled oracle, the DB, the ASP Applicaton, re-configurin listener in a variety of ways) but every time installing BLINDLY the companion CD too. Nothing seem to work.
    Then I recollected that the same issue I have encountered in the past with the installation of Oracle 8i and Developer 2000, where the TNS listener configured by the former damages the one configured by the later and vice-versa.
    Basing on this past reminiscence, I finally stopped installing Companion CD over the Oracle installation and carried out the DB installation and the ASP based app. And everything worked fine.
    CAN anybody tell me what is going wrong with these two oracle products(Oralce 10g DB and the HTML DB+Apache)?
    WHY always the installation of a CLIENT SW (Developer, HTML DB etc) damages the connection with the database via ODBC drivers?
    Many Thanks in advance.
    Ravi

    Dera Mr. Tyler,
    Thanks for your reply...I have implemented the solution that you have given for the TNS Listener conflict and everything works fine...
    Here I have one more thing thats not working as I thought. do kindly help me out.
    My requirement is to show the list of available storage drives (say C:, d:, e: etc on windows) available on the database server. Let me eloborate my problem well....
    i have a Java App that executes a specific SQL script to create a tablespace, a user and the required db objects that my applicaiton needs.
    if the Java App runs on the same machine where the oracle instance is running, the Java app pops up a list of available drives on the machine, creates a directory for the tablespace datafiles on the drive selected from the above list box, then runs the script which creates the tablespace and the rest of the things.
    But if i run the Java app from another machine on the network, then my BLIND java app is popping up the drives of the local machine but NOT those from the oracle server machine and creates the folder on the local machine but not on the Oracle server and obviously the rest of the phases (tablespace creation itself) are failing as the required folder is not found on the oracle server machine.
    the work arounds that i am thinking are:
    a) use java ->
    get the IP of the oracle server machine ->
    use some java api such as java.net, java.io etc ->
    create the required folder on the server machine instead of the local machihe
    ISSUE: Java network programming is too tough for me(excuse me for this..i am not too good!!)
    b) use some oracle sql or pl/sql api s to do the same
    ISSUE: not found one!!!!
    c) create a java stored procedure/function to get the list of drives of the oracle server and return as a string variable. then call this proc from the Java app once connected to the database....
    ISSUE: i have created the SO-CALLEd java func. no compilation or loading errors. but there is no o/p either. but the same code when i run as a java class is showing the desired o/p. here is the code piece...can you please help me out!!!
    -------Java Stored Function------
    import java.io.*;
    public class HDDLister
         public static String listDrives()
              String rootsList = "Available Roots: ";
              try
                   File[]roots = File.listRoots();
                   for (int i=0;i<roots.length;i++)
                        rootsList += roots.toString();
                        rootsList += "#";
              catch(Exception ex)
                   rootsList = ex.toString();
              return rootsList;
    -------Command to publish the Funciton-------
    CREATE OR REPLACE FUNCTION HDDLISTER
    RETURN VARCHAR2
    IS
    LANGUAGE JAVA
    NAME 'HDDLister.listDrives() return java.lang.String';
    and finally the point of the problem is, once we show the drives available on the server machine to the user and the user selects a drive, how to create a folder on the server machine???
    Thousands of thanks in advance
    Ravi

  • Oracle 10g  Database control installation error

    Hi,
    Installing oracle 10g database control had give me an error.But Repository created successfully . please find the log file below
    Is there i need to install ...? before i start to run emca to install Database Control.
    my points of interest are here
    FileNotFoundException: /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/http-web-site.xml (No such file or directory)
    i didn't find jms.xml,rmi.xml,http-web-site.xml etc in this location /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/
    File/directory /opt/db/oracle/product/10.2.0/sysman/emdrep/config/repository.variables does not exist
    Let me know how to slove this error.
    Thanks,
    anil
    Error
    =========
    emca -config dbcontrol db -repos create
    STARTED EMCA at Apr 8, 2008 4:33:25 PM
    EM Configuration Assistant, Version 10.2.0.1.0 Production
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Enter the following information:
    Database SID: XXX
    Listener port number: 1521
    Password for SYS user:
    Password for DBSNMP user:
    Password for SYSMAN user:
    Email address for notifications (optional):
    Outgoing Mail (SMTP) server for notifications (optional):
    You have specified the following settings
    Database ORACLE_HOME ................ /opt/db/oracle/product/10.2.0
    Database hostname ................ xxx.xxxx.local
    Listener port number ................ 1521
    Database SID ................ XXX
    Email address for notifications ...............
    Outgoing Mail (SMTP) server for notifications ...............
    Do you wish to continue? [yes(Y)/no(N)]: yes
    Apr 8, 2008 4:34:55 PM oracle.sysman.emcp.EMConfig perform
    INFO: This operation is being logged at /opt/db/oracle/product/10.2.0/cfgtoollogs/emca/SDM/emca_2008-04-08_04-33-25-PM.log.
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig createRepository
    INFO: Creating the EM repository (this may take a while) ...
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Repository successfully created
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig updateReposVars
    SEVERE: File/directory /opt/db/oracle/product/10.2.0/sysman/emdrep/config/repository.variables does not existApr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig invoke
    SEVERE: Failed to unlock all EM-related accounts
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMConfig perform
    SEVERE: Failed to unlock all EM-related accounts
    Refer to the log file at /opt/db/oracle/product/10.2.0/cfgtoollogs/emca/SDM/emca_2008-04-08_04-33-25-PM.log for more details.
    Could not complete the configuration. Refer to the log file at /opt/db/oracle/product/10.2.0/cfgtoollogs/emca/SDM/emca_2008-04-08_04-33-25-PM.log for more details.
    the following is log generated (emca_2008-04-08_04-33-25-PM.log)
    Apr 8, 2008 4:34:56 PM oracle.sysman.emcp.util.OUIInventoryUtil setOUILoc
    CONFIG: Setting oracle.installer.oui_loc to /opt/db/oracle/product/10.2.0/oui
    Apr 8, 2008 4:34:56 PM oracle.sysman.emcp.util.OUIInventoryUtil setOUILoc
    CONFIG: Setting oracle.installer.oui_loc to /opt/db/oracle/product/10.2.0/oui
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Homes to scan for used ports: [opt/db/oracle/product/10.2.0]
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Searching all DBConsole instances for used ports under ORACLE_HOME /opt/db/oracle/product/10.2.0
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager findUsedPortsFromXML
    CONFIG: Could not find or correctly parse file /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/jms.xml in searching for tag jms-server with att
    ribute port
    java.io.FileNotFoundException: /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/jms.xml (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at java.io.FileInputStream.<init>(FileInputStream.java:66)
    at java.io.FileReader.<init>(FileReader.java:41)
    at oracle.sysman.emcp.util.PortManager.findUsedPortsFromXML(PortManager.java:282)
    at oracle.sysman.emcp.util.PortManager.markAllUsedPorts(PortManager.java:1172)
    at oracle.sysman.emcp.util.PortManager.getFreePorts(PortManager.java:543)
    at oracle.sysman.emcp.EMDBPreConfig.getFreePorts(EMDBPreConfig.java:2324)
    at oracle.sysman.emcp.EMDBPreConfig.checkPorts(EMDBPreConfig.java:2261)
    at oracle.sysman.emcp.EMDBPreConfig.performConfiguration(EMDBPreConfig.java:670)
    at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:233)
    at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:160)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:141)
    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Marking JMS port: null from /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager findUsedPortsFromXML
    CONFIG: Could not find or correctly parse file /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/rmi.xml in searching for tag rmi-server with att
    ribute port
    java.io.FileNotFoundException: /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/rmi.xml (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at java.io.FileInputStream.<init>(FileInputStream.java:66)
    at java.io.FileReader.<init>(FileReader.java:41)
    at oracle.sysman.emcp.util.PortManager.findUsedPortsFromXML(PortManager.java:282)
    at oracle.sysman.emcp.util.PortManager.markAllUsedPorts(PortManager.java:1176)
    at oracle.sysman.emcp.util.PortManager.getFreePorts(PortManager.java:543)
    at oracle.sysman.emcp.EMDBPreConfig.getFreePorts(EMDBPreConfig.java:2324)
    at oracle.sysman.emcp.EMDBPreConfig.checkPorts(EMDBPreConfig.java:2261)
    at oracle.sysman.emcp.EMDBPreConfig.performConfiguration(EMDBPreConfig.java:670)
    at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:233)
    at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:160)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:141)
    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Marking RMI port: null from /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager findUsedPortsFromXML
    CONFIG: Could not find or correctly parse file /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/http-web-site.xml in searching for tag web-site
    with attribute port
    java.io.FileNotFoundException: /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole/config/http-web-site.xml (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at java.io.FileInputStream.<init>(FileInputStream.java:66)
    at java.io.FileReader.<init>(FileReader.java:41)
    at oracle.sysman.emcp.util.PortManager.findUsedPortsFromXML(PortManager.java:282)
    at oracle.sysman.emcp.util.PortManager.markAllUsedPorts(PortManager.java:1180)
    at oracle.sysman.emcp.util.PortManager.getFreePorts(PortManager.java:543)
    at oracle.sysman.emcp.EMDBPreConfig.getFreePorts(EMDBPreConfig.java:2324)
    at oracle.sysman.emcp.EMDBPreConfig.checkPorts(EMDBPreConfig.java:2261)
    at oracle.sysman.emcp.EMDBPreConfig.performConfiguration(EMDBPreConfig.java:670)
    at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:233)
    at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:160)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:141)
    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Marking HTTP port: null from /opt/db/oracle/product/10.2.0/oc4j/j2ee/OC4J_DBConsole
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.FileUtil getProperties
    CONFIG: Error reading file /opt/db/oracle/product/10.2.0/sysman/config/emd.properties
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager getAgentPort
    CONFIG: Cannot parse EMD_URL correctly. No port identified
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Marking Agent port: null from /opt/db/oracle/product/10.2.0/sysman/config/emd.properties
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Cannnot parse EMD_URL correctly. No port identified
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.FileUtil getProperties
    CONFIG: Error reading file /opt/db/oracle/product/10.2.0/install/staticports.ini
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.PortManager getFreePorts
    CONFIG: /opt/db/oracle/product/10.2.0:mcidm11.pacs11.local:null:SDM:{}:null:{DBCONTROL_HTTP_PORT=1158, RMI_PORT=5520, JMS_PORT=5540, AGENT_PORT=3938}
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter AGENT_PORT_SDM.
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: AGENT_PORT_SDM value: 3938
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter DBCONTROL_HTTP_PORT_SDM.
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: DBCONTROL_HTTP_PORT_SDM value: 1158
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter JMS_PORT_SDM.
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: JMS_PORT_SDM value: 5540
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter RMI_PORT_SDM.
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: RMI_PORT_SDM value: 5520
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMDBPreConfig getFreePorts
    CONFIG: Ports assigned for SID: SDM : {DBCONTROL_HTTP_PORT=1158, RMI_PORT=5520, JMS_PORT=5540, AGENT_PORT=3938}
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: SDM, oracleHome: /opt/db/oracle/product/10.2.0, and user: SYS
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig createRepository
    CONFIG: Spooling to /opt/db/oracle/product/10.2.0/cfgtoollogs/emca/SDM/emca_repos_create_2008-04-08_04-34-58-PM.log
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig createRepository
    INFO: Creating the EM repository (this may take a while) ...
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Repository successfully created
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: SDM, oracleHome: /opt/db/oracle/product/10.2.0, and user: SYS
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig grantPrivsToDbsnmp
    CONFIG: Exception while granting priviliges.
    oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-00942: table or view does not exist
    at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeImpl(SQLEngine.java:1467)
    at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeSql(SQLEngine.java:1708)
    at oracle.sysman.emcp.EMReposConfig.grantPrivsToDbsnmp(EMReposConfig.java:503)
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:208)
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:124)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:142)
    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig invoke
    CONFIG: Failed to grant priviliges to dbsnmp.
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig updateReposVars
    SEVERE: File/directory /opt/db/oracle/product/10.2.0/sysman/emdrep/config/repository.variables does not existApr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: SDM, oracleHome: /opt/db/oracle/product/10.2.0, and user: SYS
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig unlockAccounts
    CONFIG: Unlocking dbsnmp and sysman
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig unlockAccounts
    CONFIG: ORA-06550: line 1, column 62:
    PLS-00201: identifier 'SYSMAN.MGMT_VIEW_PRIV' must be declared
    ORA-06550: line 1, column 62:
    PL/SQL: Statement ignored
    oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-06550: line 1, column 62:
    PLS-00201: identifier 'SYSMAN.MGMT_VIEW_PRIV' must be declared
    ORA-06550: line 1, column 62:
    PL/SQL: Statement ignored
    at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeImpl(SQLEngine.java:1467)
    at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeSql(SQLEngine.java:1708)
    at oracle.sysman.emcp.EMReposConfig.unlockAccounts(EMReposConfig.java:566)
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:235)
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:124)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:142)
    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMReposConfig invoke
    SEVERE: Failed to unlock all EM-related accounts
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMConfig perform
    SEVERE: Failed to unlock all EM-related accounts
    Refer to the log file at /opt/db/oracle/product/10.2.0/cfgtoollogs/emca/SDM/emca_2008-04-08_04-33-25-PM.log for more details.
    Apr 8, 2008 4:34:58 PM oracle.sysman.emcp.EMConfig perform
    CONFIG: Stack Trace:
    oracle.sysman.emcp.exception.EMConfigException: Failed to unlock all EM-related accounts
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:239)
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:124)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:142)
    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)

    Hi all,
    i started creating database control repository, when i saw emca running i had seen repository created successfully , but sysman user is not created at this point of time. Then i looked into emca_repos_create_2008-04-10_11-57-03-AM.log file but the file is unable to open because it's looking for file emreposcre.sql which creates sysman user in this location /opt/db/oracle/product/10.2.0/sysman/admin/emdrep/sql/
    i feel while installing the database these files are not created....? or i need to run any scripts before running emca ....?
    give me some inputs to this thread.
    Thanks,
    nil
    STARTED EMCA at Apr 10, 2008 11:55:41 AM
    EM Configuration Assistant, Version 10.2.0.1.0 Production
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Enter the following information:
    Database SID: XXXXX
    Listener port number: 1521
    Password for SYS user:
    Password for SYSMAN user:
    Do you wish to continue? [yes(Y)/no(N)]: yes
    Apr 10, 2008 11:57:02 AM oracle.sysman.emcp.EMConfig perform
    INFO: This operation is being logged at /opt/db/oracle/product/10.2.0/cfgtoollog
    Apr 10, 2008 11:57:03 AM oracle.sysman.emcp.EMReposConfig createRepository
    INFO: Creating the EM repository (this may take a while) ...
    Apr 10, 2008 11:57:03 AM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Repository successfully created
    Enterprise Manager configuration completed successfully
    FINISHED EMCA at Apr 10, 2008 11:57:03 AM
    mcidm11 10.2.0/bin>
    CONFIG: Spooling to /opt/db/oracle/product/10.2.0/cfgtoollogs/emca/SDM/emca_repos_create_2008-04-10_11-57-03-AM.log
    Apr 10, 2008 11:57:03 AM oracle.sysman.emcp.EMReposConfig createRepository
    INFO: Creating the EM repository (this may take a while) ...
    Apr 10, 2008 11:57:03 AM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Repository successfully created
    mcidm11 emca/SDM> pwd
    /opt/db/oracle/product/10.2.0/cfgtoollogs/emca/SDM
    mcidm11 emca/SDM> more emca_repos_create_2008-04-10_11-57-03-AM.log
    SP2-0310: unable to open file "/opt/db/oracle/product/10.2.0/sysman/admin/emdrep/sql/emreposcre.sql"mcidm11 emca/SDM> cd
    Directory: /opt/db
    mcidm11 /opt/db> cd /opt/db/oracle/product/10.2.0/sysman/admin/emdrep/sql/
    Directory: /opt/db/oracle/product/10.2.0/sysman/admin/emdrep/sql
    mcidm11 emdrep/sql> ls
    core db ias ocs

  • Virtual Catalogs in 10g database

    I have heard that you need an 11g catalog to use virtual catalogs. I have also heard that it's possible to run an 11g catalog from a 10g database. Is there a way to create the 11g catalog on a 10g database directly, or do I need to make it in an 11g database then datapump it to the 10g database?

    Hej Henrik,
    You can mimick it by creating a function based index (FBI), and optionally creating a view on top the table, ensuring that the FBI is used.
    Example:
    SQL> create table t (x number primary key check (x > 0), y number not null check (y > 0))
    Table created.
    SQL> create index fbi on t(x/y)
    Index created.The index will now have a "virtual column" of x/y.
    And if you like, put a view on top:
    SQL> create view v
    as
       select x, y, x/y as virtual_column
         from t
    View created.
    SQL> select * from v
    where virtual_column = 3
    no rows selected.Hilsen
    Peter
    Edited by: Peter on Mar 11, 2009 5:05 AM
    - Added example

  • Not able to start the TNS Listener in OracleXE 10g Database

    Hi All,
    I have Installed OracleXE 10g database sucessfully, but when i'm trying to open the homepage it is not displaying anything.
    Because i have checked in the services the TNSListener has not been started. When i am trying to start the TNSListener it is giving the below description.
    Note: The OracleTNSListener service on LocalComputer started and then stopped.
    Some services stop automatically if they are not in use by other services or programs.
    Please can anybody can help me to resolve the issue.
    Regards,
    Chakri

    I had a similar problem after an IT technician installed an instance of Oracle Client on my laptop that was originally configured to run an Oracle instance (server). The issue was resolved after I edited the ORACLE_HOME environment variable so it was pointed to its original location rather than the one of the new client installation . Verify that the ORACLE_HOME environment variable is pointing to your XE server home.

Maybe you are looking for