Error creating job in oracle

I'm having a problem creating a job in oracle . I want at the end of each day to put some values from table1 in table2, empty table1, and then delete and re-create some sequences..because I have auto-increment id and each day I want to sequence to start from 0 again. So long story short I tried creating this job using toad for oracle.
if I just put the first 2 tasks(put data from table1 in table 2, then delete) in the job it works like a charm. if I also add the drop sequence, create sequence I get an error saying
Encountered the symbol "DROP" when expecting one of the following:
begin case declare exit for goto if loop mod null pragma
so this is what I want the job to do:
insert into A(a,b,c) select a2,b2,c2 from B;
delete from A;(so far it would work)
drop sequence ida_seq;
create sequence ida_seq
start with 1
increment by 1
nomaxvalue;
drop sequence idb_seq;
create sequence idb_seq
start with 1
increment by 1
nomaxvalue;
so anybody can give me a clue on why I get the error? maybe if someone can give me a link on how to do oracle jobs..cause if I google "oracle+job" I get only jobs(for work) in oracle...but I don't get stuff related to syntax and how to create jobs in oracle. 10x in advance

If this is a PL/SQL question, then PL/SQL has no 'DROP' or 'CREATE' keywords and you would need to use dynamic SQL with EXECUTE IMMEDIATE.
btw there are various techniques around for resetting a sequence to start again at 1 using ALTER SEQUENCE, rather than dropping and recreating it.

Similar Messages

  • Error creating job into trigger using DBMS_SCHEDULER.

    Hi,
    I am trying to create job using dbms_scheduler package. I have one trigger on insert event on one table. I am creating job using following syntax.
    CREATE OR REPLACE TRIGGER TRG_BI_JOB_CONFIG BEFORE INSERT ON JOB_CONFIG FOR EACH ROW
    DECLARE
    BEGIN
         DBMS_SCHEDULER.Create_Job(job_name => 'my_job1'
                             ,job_type => 'PLSQL_BLOCK'
                             ,job_action => 'delete_temp'
                             ,start_date => TO_DATE('15-JUL-2003 1:00:00 AM', 'dd-mon-yyyy hh:mi:ss PM')
                                  ,repeat_interval => 'FREQ=DAILY'
                             ,enabled => TRUE
                             ,comments => 'DELETE FOR job schedule.');
    EXCEPTION
    WHEN OTHERS THEN RAISE;
    END;
    but I am getting following error while inserting into JOB_CONFIG table.
    ORA-04092: cannot in a trigger
    ORA-06512: at "PRAKASH1.TRG_BI_JOB_CONFIG", line 41
    ORA-04088: error during execution of trigger
    same above statement If I am running from sqlplus then It is creating job without error. If I am creating job using DBMS_JOB into trigger then It is also working fine but this package is depricated from oracle10g so I cannt use it any more.
    My Oracle version is 'Oracle DATABASE 10g RELEASE 10.2.0.1.0 - Production'.
    can anyone help me in this context.

    I have a few comments on this thread as an Oracle dbms_scheduler developer.
    - Oracle takes backward compatibility very seriously. Although dbms_job is deprecated, the interface will continue to work indefinitely. The deprecation of dbms_job is so that customers will be encouraged to take advantage of the more powerful dbms_scheduler. It is extremely unlikely that entire blocks of functionality will ever be removed. There is currently no plan to remove dbms_job functionality (and even if there were, doing so would be strenuously opposed by many users).
    - lots of internal Oracle database components are standardizing on using dbms_scheduler (resource manager, materialized views, auto sql tuning etc). This is good evidence that it will continue to be the recommended scheduling method for the foreseeable future - not even the concept of a replacement exists. It is also under active development.
    - The reason for the automatic commit is that a dbms_scheduler job is a full database object like a stored procedure or a table. So a call to dbms_scheduler.create_job is like executing a DDL which takes effect immediately. A dbms_job job is mostly just a row in a table so a call to dbms_job.submit behaves like regular DML. There are many advantages to a job being a full database object but DDL behaviour is an unfortunate requirement of this.
    Hope this clears a few things up, reply with any questions.
    -Ravi

  • Metalink Doc on FRM-41810 "Error Creating Menu" in oracle form

    Hi,
          Can any one please send me the " RM-41810 "Error Creating Menu" , From the Metalink Document
    Thank you

    Hi Srini,
               Sorry for late update ,
    Srini_Chavali wrote:
    Pl post EBS related questions in the EBS forums.
    Pl provide details of your EBS, OS and database versions, along with details of what the issue is. The mmb files are part of the the EBS install and should be available in $AU_TOP
    It is an Oracle Apps Forms Question and where i can post? Can u plz suggest ? I mean when i post in the EBS forums is this correct position?
    My Window Xp OS version is 5.1 and DB Version is TOAD 9.5 ..
    Thank you

  • Error creating connection to Oracle Application Server 10g(10.1.3)

    Hey
    Im using Oracle JDeveloper 10g and when i tried to create a new connection to Oracle App Server 10.1.3 and test it, I received the following error message
    Error while parsing OPMN dump in XML format: XML Parse Exception: tag=[null] Ran out of data, content []
    I have no idea what this means and any help on this will be highly appreciated. Thank you
    Arjhun

    OK, in short:
    Cause: Wrong OPMN request port used to configure the connection (third step of "Create Application Server Connection" wizard). You might have kept the default (6003) but your OPMN is configured with different request port.
    Solution: Check $ORACLE_HOME/opmn/conf/opmn.xml file and look for entry like this:
    <port local="6140" remote="6240" request="6040" />
    Create the connection using OPMN request port that is set in opmn.xml file.
    Thanks
    Shail

  • Error creating repository in oracle 9i (9.2.0.1) database

    Hi I am trying to migrate a SQL Server 2000 database to oracle 9i using SQL Developer 1.5.5 and i am getting an error during the repository creation phase. I keep on having the same error:
    SQL Error on Script Execution
    Try deleting the repository before creating repository.
    And the following when i click on ok:
    The repository installation has failed. Please check the user you are registering and make sure that objects of the same name do not already exist.
    I have checked the database and both my users and temp tablespaces have more than enough space - so it is definitely not a space issue. Here are the roles and privileges that i give to the migrations user upon its creation (same from the docs):
    CREATE USER migrations_user IDENTIFIED BY migrations_user DEFAULT TABLESPACE users TEMPORARY TABLESPACE temp;
    GRANT CONNECT, RESOURCE, CREATE VIEW, CREATE PUBLIC SYNONYM TO migrations_user WITH ADMIN OPTION;
    GRANT ALTER ANY ROLE, ALTER ANY SEQUENCE, ALTER ANY TABLE, ALTER TABLESPACE,
    ALTER ANY TRIGGER, COMMENT ANY TABLE, CREATE ANY SEQUENCE, CREATE ANY TABLE,
    CREATE ANY TRIGGER, CREATE ROLE, CREATE TABLESPACE, CREATE USER, DROP ANY SEQUENCE,
    DROP ANY TABLE, DROP ANY TRIGGER, DROP TABLESPACE, DROP USER, DROP ANY ROLE,
    GRANT ANY ROLE, INSERT ANY TABLE, SELECT ANY TABLE, UPDATE ANY TABLE TO migrations_user;
    Has anybody encountered this problem before and resolved it?
    Any ideas / suggestions would be greatly appreciated.
    I also tried creating the repository in a 10g database and did the migration successfully to the 9i database. However, I found out later that the created sqlserver_utilities package was invalid because it made reference to DBMS_DB_VERSION package which was non existent in the 9i database.
    Thanks
    Edited by: nyanga on Oct 2, 2009 2:20 PM
    Edited by: nyanga on Oct 2, 2009 2:22 PM

    Hi Nyanga,
    The migration tools can be used to migrate to Oracle 9i.
    But we try and keep the conversion compatible with Oracle XE / Oracle 10g and up.
    So you may have issues migrating to Oracle 9i like you said, with he sqlserver_utilities package and using 10g syntax.
    Creating the repository on Oracle 9i is not supported.
    But even if you did succeed , it would not change how the conversion was done. You would still end up with an identical sqlserver_utilities package which was generated using the migration repository on an Oracle 10g database. sqlserver_utilities package definition itself is fixed within a file so regardless of the repository used the same one will be generated.
    Oracle XE can be used of course as the repository and its free to download and use.
    Regards,
    Dermot.

  • Error Creating Database on Oracle 10g Release 2

    I'm having a problem creating a second database on 10g release 2 on Windows server 2003.
    I have created an initialization parameter file on %Oracle_Home%\database\initDB2.ora
    However, whenever I try to run sql command to create a database with the same name as the db_name parameter in the initialization parameter, it gives an error database name 'DB2' does nto matchthe parameter db_name = dbase
    dbase is the first database that was created automatically when I installed Oracle.
    Any solutions? Why is the server not using the parameter file I have created? Why does it seem to use the initialization parameter file that belongs to the first database?
    Cheers

    'startup nomount' with 'pfile=...initDB2.ora' clause? In this case Oracle chooses a server parameter file (spfile) by default and I still assume ORACLE_SID is set to your first database. So automatically spfile from the first database is used. You should try:
    set ORACLE_SID=DB2
    (now in sqlplus) startup nomount pfile=%ORACLE_HOME$\database\initDB2.ora
    Werner

  • How create Jobs in Oracle XE.

    I created a procedure GENERATE_ORDER with 3 arguments. How create a job for execute
    the procedure every days.
    Roberth.

    Using DBMS_JOB. Details in [url http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_job.htm#sthref3477]Oracle® Database PL/SQL Packages and Types Reference.
    PS. Or [url http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_sched.htm#sthref6596]DBMS_SCHEDULER can be use too.

  • Error Creating Triggers in Oracle 10g R2 via Eclipse 3.5

    I have the latest OEPE 11g R1 Patch Set installed in Eclipse Galileo. Running the following SQL statement works fine from the iSQLPlus web interface, but it creates an INVALID trigger in the database when running from the Eclipse itself (see error below):
    SQL
    CREATE OR REPLACE TRIGGER AMG_OPTOUT_MARK_UNSUBSCRIBED AFTER
    UPDATE ON AMG_OPTOUT_PERSON2PROGRAM REFERENCING NEW AS newRow FOR EACH ROW
    BEGIN IF (:newRow.program_id = 31
         AND :newRow.active = 0
         AND :newRow.unsubscribe_date IS NOT NULL) THEN
         UPDATE AMG_OPTOUT_PROCESS_STATUS A
         SET A.SUBSCRIPTION_STATUS_ID = 3
         WHERE :newRow.person2program_key = A.person2program_key;
    END IF;
    END AMG_OPTOUT_MARK_UNSUBSCRIBED;
    ERROR:
    Line # = 1 Column # = 34 Error Text = PLS-00103: Encountered the symbol "" when expecting one of the following:
    ) , * & - + / at mod remainder rem <an exponent (**)> and or
    || multiset
    The symbol ") was inserted before "" to continue.
    Line # = 2 Column # = 26 Error Text = PLS-00103: Encountered the symbol "" when expecting one of the following:
    * & - + / at mod remainder rem then <an exponent (**)> and or
    || multiset
    The symbol "" was ignored.
    Line # = 3 Column # = 44 Error Text = PLS-00103: Encountered the symbol ")" when expecting one of the following:
    then and or
    Is this an error with the OEPE pack itself? Do I need to file a bug or does anyone know a way to solve this.
    Edited by: user3460537 on Jan 3, 2010 3:02 PM

    Sure. Here it is:
    AMG_OPTOUT_PERSON2PROGRAM DDL:
    CREATE TABLE AMG_OPTOUT_PERSON2PROGRAM (
              SUBMISSION_DATE DATE DEFAULT SYSDATE NOT NULL,
              ACTIVE NUMBER(22 , 0) NOT NULL,
              PERSON2PROGRAM_KEY NUMBER(22 , 0) NOT NULL,
              PROGRAM_ID NUMBER(22 , 0) NOT NULL,
              PERSON_ID NUMBER(22 , 0) NOT NULL,
              UNSUBSCRIBE_DATE DATE
    ALTER TABLE AMG_OPTOUT_PERSON2PROGRAM ADD CONSTRAINT SYS_C005230 CHECK ("PERSON2PROGRAM_KEY" IS NOT NULL);
    ALTER TABLE AMG_OPTOUT_PERSON2PROGRAM ADD CONSTRAINT SYS_C005231 CHECK ("PROGRAM_ID" IS NOT NULL);
    ALTER TABLE AMG_OPTOUT_PERSON2PROGRAM ADD CONSTRAINT SYS_C005228 CHECK ("SUBMISSION_DATE" IS NOT NULL);
    ALTER TABLE AMG_OPTOUT_PERSON2PROGRAM ADD CONSTRAINT SYS_C005229 CHECK ("ACTIVE" IS NOT NULL);
    ALTER TABLE AMG_OPTOUT_PERSON2PROGRAM ADD CONSTRAINT SYS_C005232 CHECK ("PERSON_ID" IS NOT NULL);
    ALTER TABLE AMG_OPTOUT_PERSON2PROGRAM ADD CONSTRAINT SYS_C005233 FOREIGN KEY (PERSON_ID)
         REFERENCES AMG_OPTOUT_PERSON (PERSON_ID);
    ALTER TABLE AMG_OPTOUT_PERSON2PROGRAM ADD CONSTRAINT SYS_C005234 FOREIGN KEY (PROGRAM_ID)
         REFERENCES AMG_OPTOUT_PROGRAM (PROGRAM_ID);
    CREATE OR REPLACE TRIGGER AMG_OPTOUT_MARK_SUBSCRIBED AFTER
    INSERT ON AMG_OPTOUT_PERSON2PROGRAM REFERENCING NEW AS newRow FOR EACH ROW BEGIN IF
    :newRow.program_id = 31
    THEN
    INSERT
    INTO AMG_OPTOUT_PROCESS_STATUS
    person2program_key,
    company_id
    VALUES
    :newRow.person2program_key,
    1
    END IF;
    IF
    :newRow.program_id = 34
    THEN
    INSERT
    INTO AMG_OPTOUT_PROCESS_STATUS
    person2program_key,
    company_id,
    subscription_status_id
    VALUES
    :newRow.person2program_key,
    2,6
    END IF;
    END AMG_OPTOUT_MARK_SUBSCRIBED;
    CREATE OR REPLACE TRIGGER "NPLATE-COM".AMG_OPTOUT_MARK_UNSUBSCRIBED AFTER
    UPDATE ON "NPLATE-COM"."AMG_OPTOUT_PERSON2PROGRAM" REFERENCING OLD AS OLD NEW AS NEWROW FOR EACH ROW BEGIN IF (:newRow.program_id = 31 AND :newRow.active = 0 AND :newRow.unsubscribe_date IS NOT NULL) THEN
         UPDATE AMG_OPTOUT_PROCESS_STATUS A
         SET A.SUBSCRIPTION_STATUS_ID = 3
         WHERE :newRow.person2program_key = A.person2program_key;
    END IF;
    END AMG_OPTOUT_MARK_UNSUBSCRIBED;
    AMG_OPTOUT_PROCESS_STATUS DDL:
    CREATE TABLE AMG_OPTOUT_PROCESS_STATUS (
              PERSON2PROGRAM_KEY NUMBER(22 , 0) NOT NULL,
              COMPANY_ID NUMBER(22 , 0) NOT NULL,
              SUBSCRIPTION_STATUS_ID NUMBER(22 , 0) DEFAULT 0 NOT NULL
    ALTER TABLE AMG_OPTOUT_PROCESS_STATUS ADD CONSTRAINT SYS_C005216 CHECK ("PERSON2PROGRAM_KEY" IS NOT NULL);
    ALTER TABLE AMG_OPTOUT_PROCESS_STATUS ADD CONSTRAINT SYS_C005217 CHECK ("COMPANY_ID" IS NOT NULL);
    ALTER TABLE AMG_OPTOUT_PROCESS_STATUS ADD CONSTRAINT SYS_C005218 CHECK ("SUBSCRIPTION_STATUS_ID" IS NOT NULL);
    ALTER TABLE AMG_OPTOUT_PROCESS_STATUS ADD CONSTRAINT SYS_C005219 FOREIGN KEY (COMPANY_ID)
         REFERENCES AMG_OPTOUT_COMPANY (COMPANY_ID);
    ALTER TABLE AMG_OPTOUT_PROCESS_STATUS ADD CONSTRAINT SYS_C005220 FOREIGN KEY (SUBSCRIPTION_STATUS_ID)
         REFERENCES AMG_OPTOUT_SUBSCRIPTION_STATUS (SUBSCRIPTION_STATUS_ID);

  • Error creating MDS session

    Hi,
    I am working with embedded oc4j and I am using form based authentication.The application also has a connection to Oracle database.The Jdev version I am using is Build JDEVADF_MAIN.M1_GENERIC_080131.1115.4839.The application gets deployed on embedded oc4j but when i try to login, I get the following exception.
    WARNING: Error creating MDS session
    oracle.adf.share.ADFShareException: Error creating MDS session
    at oracle.adf.share.config.ADFContextMDSConfigHelperImpl.createMDSSession(ADFContextMDSConfigHelperImpl.java:43)
    at oracle.adf.share.ADFContext.getMDSSessionAsObject(ADFContext.java:750)
    at oracle.jbo.mom.MOMParserMDS.getMDSSession(MOMParserMDS.java:59)
    at oracle.jbo.mom.MOMParserMDS.parse(MOMParserMDS.java:188)
    at oracle.jbo.mom.MOMParserNonMDS.readAndParse(MOMParserNonMDS.java:70)
    at oracle.jbo.mom.DefinitionContextStandard.readAndParse(DefinitionContextStandard.java:226)
    at oracle.jbo.mom.DefinitionManager.loadProjectDefinition(DefinitionManager.java:1391)
    at oracle.jbo.uicli.mom.JUMetaObjectManager.findCpx(JUMetaObjectManager.java:743)
    at oracle.jbo.uicli.mom.JUMetaObjectManager.loadCpx(JUMetaObjectManager.java:810)
    at oracle.adf.model.BindingRequestHandler.initializeBindingContext(BindingRequestHandler.java:347)
    at oracle.adf.model.BindingRequestHandler.beginRequest(BindingRequestHandler.java:136)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:176)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.adfinternal.view.faces.webapp.rich.SharedLibraryFilter.doFilter(SharedLibraryFilter.java:135)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:281)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:69)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:281)
    at oracle.adfinternal.view.faces.activedata.ADSFilter.doFilter(ADSFilter.java:74)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:281)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:241)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:198)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:141)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
    at oracle.security.jazn.oc4j.JAZNFilter$3.run(JAZNFilter.java:434)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:308)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:452)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:583)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:334)
    at com.evermind.server.http.HttpRequestHandler.doDispatchRequest(HttpRequestHandler.java:942)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:843)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:658)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:626)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:417)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:189)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:163)
    at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:237)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:29)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:877)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: oracle.adf.share.ADFShareException: getMDSInstance error
    at oracle.adf.share.config.FallbackConfigImpl.getMDSInstance(FallbackConfigImpl.java:89)
    at oracle.adf.share.config.FallbackConfigImpl.getDefaultMDSInstance(FallbackConfigImpl.java:99)
    at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:513)
    at oracle.adf.share.config.ADFContextMDSConfigHelperImpl.createMDSSession(ADFContextMDSConfigHelperImpl.java:36)
    ... 43 more
    Caused by: oracle.mds.exception.MDSRuntimeException: schema_reference.4: Failed to read schema document 'code-source:/C:/jdev latest sanity/JDEVADF_MAIN.M1_GENERIC_080131.1115.4839/mds/lib/mdsrt.jar!/oracle/mds/xsd/mdsConfig.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
    at oracle.mds.internal.config.ConfigurationUtils.setSchemaOnUnmarshaller(ConfigurationUtils.java:495)
    at oracle.mds.internal.config.ConfigurationUtils.getBeanFromElement(ConfigurationUtils.java:159)
    at oracle.mds.config.MDSConfig.loadFromElement(MDSConfig.java:795)
    at oracle.mds.config.MDSConfig.<init>(MDSConfig.java:359)
    at oracle.adf.share.config.ADFMDSConfig.getDefaultMDSInstance(ADFMDSConfig.java:354)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at oracle.adf.share.config.FallbackConfigImpl.getMDSInstance(FallbackConfigImpl.java:66)
    ... 46 more
    Caused by: org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'code-source:/C:/jdev latest sanity/JDEVADF_MAIN.M1_GENERIC_080131.1115.4839/mds/lib/mdsrt.jar!/oracle/mds/xsd/mdsConfig.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
    at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaError(XSDHandler.java:2245)
    at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchema(XSDHandler.java:1590)
    at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:438)
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:556)
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:523)
    at com.sun.org.apache.xerces.internal.jaxp.validation.xs.SchemaFactoryImpl.newSchema(SchemaFactoryImpl.java:206)
    at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:489)
    at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:521)
    at oracle.mds.internal.config.ConfigurationUtils.setSchemaOnUnmarshaller(ConfigurationUtils.java:491)
    ... 55 more
    Mar 12, 2008 4:39:29 PM com.evermind.server.ServerBase log
    WARNING: OracleIRM-IRMWebV1.1-webapp: Servlet error
    oracle.security.jazn.JAZNRuntimeException: Error creating MDS session
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:480)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:583)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:334)
    at com.evermind.server.http.HttpRequestHandler.doDispatchRequest(HttpRequestHandler.java:942)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:843)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:658)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:626)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:417)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:189)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:163)
    at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:237)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:29)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:877)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: oracle.adf.share.ADFShareException: Error creating MDS session
    at oracle.adf.share.config.ADFContextMDSConfigHelperImpl.createMDSSession(ADFContextMDSConfigHelperImpl.java:43)
    at oracle.adf.share.ADFContext.getMDSSessionAsObject(ADFContext.java:750)
    at oracle.jbo.mom.MOMParserMDS.getMDSSession(MOMParserMDS.java:59)
    at oracle.jbo.mom.MOMParserMDS.parse(MOMParserMDS.java:188)
    at oracle.jbo.mom.MOMParserNonMDS.readAndParse(MOMParserNonMDS.java:70)
    at oracle.jbo.mom.DefinitionContextStandard.readAndParse(DefinitionContextStandard.java:226)
    at oracle.jbo.mom.DefinitionManager.loadProjectDefinition(DefinitionManager.java:1391)
    at oracle.jbo.uicli.mom.JUMetaObjectManager.findCpx(JUMetaObjectManager.java:743)
    at oracle.jbo.uicli.mom.JUMetaObjectManager.loadCpx(JUMetaObjectManager.java:810)
    at oracle.adf.model.BindingRequestHandler.initializeBindingContext(BindingRequestHandler.java:347)
    at oracle.adf.model.BindingRequestHandler.beginRequest(BindingRequestHandler.java:136)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:176)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.adfinternal.view.faces.webapp.rich.SharedLibraryFilter.doFilter(SharedLibraryFilter.java:135)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:281)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:69)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:281)
    at oracle.adfinternal.view.faces.activedata.ADSFilter.doFilter(ADSFilter.java:74)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:281)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:241)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:198)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:141)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
    at oracle.security.jazn.oc4j.JAZNFilter$3.run(JAZNFilter.java:434)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:308)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:452)
    ... 16 more
    Caused by: oracle.adf.share.ADFShareException: getMDSInstance error
    at oracle.adf.share.config.FallbackConfigImpl.getMDSInstance(FallbackConfigImpl.java:89)
    at oracle.adf.share.config.FallbackConfigImpl.getDefaultMDSInstance(FallbackConfigImpl.java:99)
    at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:513)
    at oracle.adf.share.config.ADFContextMDSConfigHelperImpl.createMDSSession(ADFContextMDSConfigHelperImpl.java:36)
    ... 43 more
    Caused by: oracle.mds.exception.MDSRuntimeException: schema_reference.4: Failed to read schema document 'code-source:/C:/jdev latest sanity/JDEVADF_MAIN.M1_GENERIC_080131.1115.4839/mds/lib/mdsrt.jar!/oracle/mds/xsd/mdsConfig.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
    at oracle.mds.internal.config.ConfigurationUtils.setSchemaOnUnmarshaller(ConfigurationUtils.java:495)
    at oracle.mds.internal.config.ConfigurationUtils.getBeanFromElement(ConfigurationUtils.java:159)
    at oracle.mds.config.MDSConfig.loadFromElement(MDSConfig.java:795)
    at oracle.mds.config.MDSConfig.<init>(MDSConfig.java:359)
    at oracle.adf.share.config.ADFMDSConfig.getDefaultMDSInstance(ADFMDSConfig.java:354)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at oracle.adf.share.config.FallbackConfigImpl.getMDSInstance(FallbackConfigImpl.java:66)
    ... 46 more
    Caused by: org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'code-source:/C:/jdev latest sanity/JDEVADF_MAIN.M1_GENERIC_080131.1115.4839/mds/lib/mdsrt.jar!/oracle/mds/xsd/mdsConfig.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
    at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaError(XSDHandler.java:2245)
    at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchema(XSDHandler.java:1590)
    at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:438)
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:556)
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:523)
    at com.sun.org.apache.xerces.internal.jaxp.validation.xs.SchemaFactoryImpl.newSchema(SchemaFactoryImpl.java:206)
    at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:489)
    at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:521)
    at oracle.mds.internal.config.ConfigurationUtils.setSchemaOnUnmarshaller(ConfigurationUtils.java:491)
    ... 55 more
    Let me know if somebody has an idea of this .

    This is because of space character is jdev location i.e C:/jdev latest sanity/. Change the location of jdev to another directory which doesn't contain spaces and try again.

  • Issue with the report oracle.apps.xdo.XDOException:Error creating lock file

    I am getting an error while submitting the XML publisher report in Betsy N0 instance.
    Issue
    Log :- Beginning post-processing of request 145458120 on node BETSYN0DB1 at 22-DEC-2011 05:28:26.
    Post-processing of request 145458120 failed at 22-DEC-2011 05:28:28 with the error message: One or more post-processing actions failed. Consult the OPP service log for details
    Output :- Blank Report
    XML file :- XML file generated without any error
    Output process:-
    [12/23/11 4:28:10 AM] [1213640:RT145480622] Completed post-processing actions for request 145480622.
    [12/23/11 5:16:01 AM] [OPPServiceThread1] Post-processing request 145481427.
    [12/23/11 5:49:30 AM] [OPPServiceThread1] Post-processing request 145481923.
    [12/23/11 5:49:30 AM] [1213640:RT145481923] Executing post-processing actions for request 145481923.
    [12/23/11 5:49:30 AM] [1213640:RT145481923] Starting XML Publisher post-processing action.
    [12/23/11 5:49:30 AM] [1213640:RT145481923]
    Template code: XXWIP_WO_VLVS
    Template app: XXWIP
    Language: en
    Territory: US
    Output type: PDF
    oracle.apps.xdo.XDOException: Error creating lock file
         at oracle.apps.xdo.oa.util.FontCacheManager.getFontFromDB(FontCacheManager.java:320)
         at oracle.apps.xdo.oa.util.FontCacheManager.getFontFilePath(FontCacheManager.java:198)
         at oracle.apps.xdo.oa.util.FontHelper.createFontProperties(FontHelper.java:432)
         at oracle.apps.xdo.oa.util.ConfigHelper.getFontProperties(ConfigHelper.java:166)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5824)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:247)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:157)
    [12/23/11 5:49:31 AM] [UNEXPECTED] [1213640:RT145481923] oracle.apps.xdo.XDOException: Error creating lock file
         at oracle.apps.xdo.oa.util.FontCacheManager.getFontFromDB(FontCacheManager.java:320)
         at oracle.apps.xdo.oa.util.FontCacheManager.getFontFilePath(FontCacheManager.java:198)
         at oracle.apps.xdo.oa.util.FontHelper.createFontProperties(FontHelper.java:432)
         at oracle.apps.xdo.oa.util.ConfigHelper.getFontProperties(ConfigHelper.java:166)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5824)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:247)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:157)
    [12/23/11 5:49:31 AM] [1213640:RT145481923] Completed post-processing actions for request 145481923.

    The issue is fixed.
    Our XML Publisher TMP is not defined, so it uses the APPLTMP used by concurrent manager. There is a folder xdofonts/<SID> in $APPLTMP. It contains the fonts used by XML publisher and on the of font file (.ttf) was 0 byte. We copied the ttf file from QA. And it started working.
    Best practice is to define diffent TMP for concurrent managers and XML Publisher.
    Cherrish Vaidiyan

  • E-recruitement Error " When creating Job Posting "

    Hello Friends
    We are usinng standard  BSP HRRCF_POST_LST for posting the Job.
    But when after releasing the job i go on th job posting page and when i click on  "CREATE JOB POSTING " button i'm getting the following error.
    Business Server Page (BSP) error
    What happened?
    Calling the BSP page was terminated due to an error.
    SAP Note
    The following error text was processed in the system:
    BSP Exception: Internal Error in Business Server Page Runtime.
    Program CL_BSP_PAGE_BASE==============CP
    Include CL_BSP_PAGE_BASE==============CM01B
    Line 91 
    Error type:
    Your SAP Business Server Pages Team
    Can you please suggest what would be the cause of error even it is complete standard BSP.
    Please guide me by your valuable comment.
    Regards,
    Nilesh

    Hello Friends
    We are usinng standard  BSP HRRCF_POST_LST for posting the Job.
    But when after releasing the job i go on th job posting page and when i click on  "CREATE JOB POSTING " button i'm getting the following error.
    I tried to check the error log in ST22 & SLG1 but i found nothing in it.
    Business Server Page (BSP) error
    What happened?
    Calling the BSP page was terminated due to an error.
    SAP Note
    The following error text was processed in the system:
    BSP Exception: Internal Error in Business Server Page Runtime.
    Program CL_BSP_PAGE_BASE==============CP
    Include CL_BSP_PAGE_BASE==============CM01B
    Line 91 
    Error type:
    Your SAP Business Server Pages Team
    Can you please suggest what would be the cause of error even it is complete standard BSP.
    Please guide me by your valuable comment.
    Regards,
    Nilesh

  • Error in job execution in oracle reports

    Hi,
    The end user is getting the following error when executing a job in Oracle reports.
    " RWCGI GET JOB OUTPUT
    Cannot get output of Job ID 4 you requested on December ,08 2008 , 11:35:18
    Job is not done yet .Try again later"
    Can you please help .PLEASE !!!

    Hi
    Metalink is reporting some similar errors, please see that:
    Cause
    SSO turned on for one component only, either Forms or Reports.
    This problem has been reported and is documented in an unpublished bug.
    Solution
    To take advantage of SSO, out-of-the-box, the SINGLESIGNON parameter in the
    rwservlet configuration file (rwservlet.properties) is set to YES to indicate
    that you will use single sign-on to authenticate users. You may change this to
    NO if you choose to not use single sign-on. If you choose NO, the Reports
    Server will use its own authentication mechanism to authenticate users (i.e.,
    the mechanism used in Reports6i). The rwservlet configuration file is usually
    found in the ORACLE_HOME\reports\conf directory. This value is usually
    commented out after installation however the default value is YES.
    This is the expected behavior. For the Forms/Reports integration, Forms will send
    to Reports thecurrent SSO user. However, with this particular configuration, you
    still log into SSO to run Reports. Thus, nexttime you run the form, you are logged
    into SSO and thus things work because Forms passes thatSSO user info to Reports.
    The way to not have the report run the 2nd time would be to log off of SSO when the first
    form was exited, but that defeats the purpose of SSO in the first place!
    So enable for Forms and Reports SSO or disable SSO for both.
    Read more on Doc ID:      Note:289666.1
    Subject:      REP-52251: Cannot Get Output Of Job Id
    Doc ID:      Note:289666.1
    Subject:      Understanding Reports Execution from Forms Under High Availability
    and
    Note 367887.1 - Rep-52251: Cannot Get Output Of Job Id You Requested, When Calling Reports From Forms

  • Oracle.jms.AQjmsException: Error creating the db_connection( OSB PS2.)

    hi All,
    I am beginner in OSB 11g. Please excuse me if I am asking any dumb question.
    I am trying to post messages to Oracle AQ by configuring JMS Destination in OSB Alert destination
    I have configured AQ JMS in weblogic 10.3.3 ( OSB PS2) following the blog (http://jianmingli.com/wp/?p=2950)
    When i invoked my proxy OSB proxy service i am getting following exception. Can you please help if i am missing any kind of setup while configuring the JMS Module.
    Caused By: oracle.jms.AQjmsException: Error creating the db_connection
         at oracle.jms.AQjmsDBConnMgr.getConnection(AQjmsDBConnMgr.java:625)
         at oracle.jms.AQjmsDBConnMgr.<init>(AQjmsDBConnMgr.java:399)
         at oracle.jms.AQjmsXAConnection.<init>(AQjmsXAConnection.java:112)
         at oracle.jms.AQjmsXAQueueConnectionFactory.createAllXAConnection(AQjmsXAQueueConnectionFactory.java:320)
         at oracle.jms.AQjmsXAQueueConnectionFactory.createXAQueueConnection(AQjmsXAQueueConnectionFactory.java:198)
         at weblogic.deployment.jms.JMSConnectionHelper.openConnection(JMSConnectionHelper.java:282)
         at weblogic.deployment.jms.JMSConnectionHelper.<init>(JMSConnectionHelper.java:144)
         at weblogic.deployment.jms.JMSSessionPool.getConnectionHelper(JMSSessionPool.java:517)
         at weblogic.deployment.jms.PooledConnectionFactory.createConnectionInternal(PooledConnectionFactory.java:355)
         at weblogic.deployment.jms.PooledConnectionFactory.createQueueConnection(PooledConnectionFactory.java:188)
         at com.bea.wli.sb.transports.jms.JmsOutboundMessageContext.getSession(JmsOutboundMessageContext.java:399)
         at com.bea.wli.sb.transports.jms.JmsOutboundMessageContext.newMessage(JmsOutboundMessageContext.java:621)
         at com.bea.wli.sb.transports.jms.JmsOutboundMessageContext.setRequestMetaData(JmsOutboundMessageContext.java:229)
         at com.bea.wli.sb.transports.jms.JmsOutboundMessageContext.access$100(JmsOutboundMessageContext.java:72)
         at com.bea.wli.sb.transports.jms.JmsOutboundMessageContext$SendAction.run(JmsOutboundMessageContext.java:788)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.security.Security.runAs(Security.java:61)
         at com.bea.wli.sb.transports.jms.JmsOutboundMessageContext.send(JmsOutboundMessageContext.java:551)
         at com.bea.wli.sb.transports.jms.JmsTransportProvider.sendMessageAsync(JmsTransportProvider.java:680)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.wli.sb.transports.Util$1.invoke(Util.java:83)
         at $Proxy111.sendMessageAsync(Unknown Source)
         at com.bea.wli.sb.transports.TransportManagerImpl.sendMessageWithoutService(TransportManagerImpl.java:489)
         at com.bea.wli.sb.transports.TransportManagerImpl.sendMessageAsync(TransportManagerImpl.java:417)
         at com.bea.wli.sb.init.FrameworkStarter$TransportServiceImpl.sendMessageAsync(FrameworkStarter.java:391)
         at com.bea.alsb.alert.action.jms.JmsActionProvider.executeAction(JmsActionProvider.java:345)
         at com.bea.alsb.alert.AlertDestinationHandlerImpl.sendAlertToDestination(AlertDestinationHandlerImpl.java:105)
         at com.bea.alsb.alert.pipeline.PipelineAlertManager.processAlert(PipelineAlertManager.java:59)
         at stages.logging.runtime.AlertRuntimeStep.processMessage(AlertRuntimeStep.java:125)
         at com.bea.wli.sb.pipeline.debug.DebuggerRuntimeStep.processMessage(DebuggerRuntimeStep.java:74)
         at com.bea.wli.sb.stages.StageMetadataImpl$WrapperRuntimeStep.processMessage(StageMetadataImpl.java:346)
         at com.bea.wli.sb.stages.impl.SequenceRuntimeStep.processMessage(SequenceRuntimeStep.java:33)
         at stages.routing.runtime.RouteRuntimeStep.processMessage(RouteRuntimeStep.java:102)
         at com.bea.wli.sb.pipeline.debug.DebuggerRuntimeStep.processMessage(DebuggerRuntimeStep.java:74)
         at com.bea.wli.sb.stages.StageMetadataImpl$WrapperRuntimeStep.processMessage(StageMetadataImpl.java:346)
         at com.bea.wli.sb.pipeline.RouteNode.doRequest(RouteNode.java:106)
         at com.bea.wli.sb.pipeline.Node.processMessage(Node.java:67)
         at com.bea.wli.sb.pipeline.PipelineContextImpl.execute(PipelineContextImpl.java:922)
         at com.bea.wli.sb.pipeline.Router.processMessage(Router.java:214)
         at com.bea.wli.sb.pipeline.MessageProcessor.processRequest(MessageProcessor.java:99)
         at com.bea.wli.sb.pipeline.RouterManager$1.run(RouterManager.java:593)
         at com.bea.wli.sb.pipeline.RouterManager$1.run(RouterManager.java:591)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at com.bea.wli.sb.security.WLSSecurityContextService.runAs(WLSSecurityContextService.java:55)
         at com.bea.wli.sb.pipeline.RouterManager.processMessage(RouterManager.java:590)
         at com.bea.wli.sb.test.service.ServiceMessageSender.send0(ServiceMessageSender.java:329)
         at com.bea.wli.sb.test.service.ServiceMessageSender.access$000(ServiceMessageSender.java:76)
         at com.bea.wli.sb.test.service.ServiceMessageSender$1.run(ServiceMessageSender.java:134)
         at com.bea.wli.sb.test.service.ServiceMessageSender$1.run(ServiceMessageSender.java:132)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at com.bea.wli.sb.security.WLSSecurityContextService.runAs(WLSSecurityContextService.java:55)
         at com.bea.wli.sb.test.service.ServiceMessageSender.send(ServiceMessageSender.java:137)
         at com.bea.wli.sb.test.service.ServiceProcessor.invoke(ServiceProcessor.java:454)
         at com.bea.wli.sb.test.TestServiceImpl.invoke(TestServiceImpl.java:172)
         at com.bea.wli.sb.test.client.ejb.TestServiceEJBBean.invoke(TestServiceEJBBean.java:167)
         at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl.invoke(TestService_sqr59p_EOImpl.java:353)
         at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
         at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
         at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused By: java.lang.ClassCastException: weblogic.jdbc.rmi.SerialConnection_weblogic_jdbc_rmi_internal_ConnectionImpl_weblogic_jdbc_wrapper_JTAConnection_weblogic_jdbc_wrapper_XAConnection_oracle_jdbc_driver_LogicalConnection_1033_WLStub cannot be cast to oracle.jdbc.internal.OracleConnection
         at oracle.jms.AQjmsGeneralDBConnection.getProviderKey(AQjmsGeneralDBConnection.java:96)
         at oracle.jms.AQjmsGeneralDBConnection.<init>(AQjmsGeneralDBConnection.java:65)
         at oracle.jms.AQjmsDBConnMgr.getConnection(AQjmsDBConnMgr.java:566)
         at oracle.jms.AQjmsDBConnMgr.<init>(AQjmsDBConnMgr.java:399)
         at oracle.jms.AQjmsXAConnection.<init>(AQjmsXAConnection.java:112)
         at oracle.jms.AQjmsXAQueueConnectionFactory.createAllXAConnection(AQjmsXAQueueConnectionFactory.java:320)
         at oracle.jms.AQjmsXAQueueConnectionFactory.createXAQueueConnection(AQjmsXAQueueConnectionFactory.java:198)
         at weblogic.deployment.jms.JMSConnectionHelper.openConnection(JMSConnectionHelper.java:282)
         at weblogic.deployment.jms.JMSConnectionHelper.<init>(JMSConnectionHelper.java:144)
         at weblogic.deployment.jms.JMSSessionPool.getConnectionHelper(JMSSessionPool.java:517)
         at weblogic.deployment.jms.PooledConnectionFactory.createConnectionInternal(PooledConnectionFactory.java:355)
         at weblogic.deployment.jms.PooledConnectionFactory.createQueueConnection(PooledConnectionFactory.java:188)

    hi All,
    Here is the actual exception while posting message into AQ ( AQ JMS) from OSB.
    Caused By: java.lang.ClassCastException: weblogic.jdbc.rmi.SerialConnection_weblogic_jdbc_rmi_internal_ConnectionImpl_weblogic_jdbc_wrapper_JTAConnection_weblogic_jdbc_wrapper_XAConnection_oracle_jdbc_driver_LogicalConnection_1033_WLStub cannot be cast to oracle.jdbc.internal.OracleConnection
    at oracle.jms.AQjmsGeneralDBConnection.getProviderKey(AQjmsGeneralDBConnection.java:96)
    at oracle.jms.AQjmsGeneralDBConnection.<init>(AQjmsGeneralDBConnection.java:65)
    Not sure what is missing in my AQ JMS configuration. Please help.
    Regards,
    Nagi

  • How to create a load job in Oracle 9i

    How do you create a basic load job in Oracle 9i? I'm really struggling with the syntax.
    This is what I have so far and its not working. I am a Microsoft SQL Jr. DBA, Oracle is not a strong point :/.
    Oracle9i Enterprise Edition Release 9.2.0.5.0 - Production
    VARIABLE jobno NUMBER
    BEGIN
       DBMS_JOB.SUBMIT(:jobno,
    'load data',
    'infile oracle.csv',
    'into TABLE HUB.PROVLKUP_LOAD_MATT',
    'fields terminated by "|"',
    'TRAILING NULLCOLS',
    '(PROV_NO,PROV_NAME,FIRST_NAME,MI,TITLE,ADDRESS,CITY,COUNTY,STATE,ZIP,PHONE1,PHONE2,SPECIALTY,TAX_ID,PROV_NETWORK,EFF_DATE,TERM_DATE,PROV_TYPE,DO_NOT_REFER,DNR_DATE,DO_NOT_USE,NOTES)',SYSDATE, 'SYSDATE + 1');
       COMMIT;
    END;I actually want this job to be only run by the DBMS_JOB.Run command and not on auto schedule. Is there a way not to include a run date?
    Edited by: 1007692 on May 23, 2013 11:38 AM
    Edited by: 1007692 on May 23, 2013 11:39 AM

    Welcome to the forum.
    Oracle 9i is a database version from the previous century.
    But:
    You can read about DBMS_JOB in the 9i documentation here:
    http://www.oracle.com/pls/db92/homepage
    Or do some searches on http://asktom.oracle.com
    Anyway: if you want the job to run once, then omit the interval...
    Oh, and don't forget to read {message:id=9360002} from the SQL and Pl/SQL FAQ here:
    SQL and PL/SQL FAQ
    Edited by: Hoek on May 23, 2013 8:09 PM

  • Error in creating connection to Oracle in Visual Studio 2005

    Hi all,
    After installing Oracle 11 http://www.oracle.com/technology/software/htdocs/odtlic.html?url=/technology/software/tech/dotnet/utilsoft.html
    successfully, when I made a connection between Visual Studio 2005 to Oracle following this instruction http://www.oracle.com/technology/obe/net11gobe/building.net/vs_otn2.htm#t1
    At step 3, I got this problem message error:
    "An unexpected error occurred in the Oracle Data Provider for .NET. Please contact the provider vendor to resolve this problem".
    If anybody has a solution, could you please help me ?
    Thanks in advance,
    Greetings,
    Joesy

    OK, in short:
    Cause: Wrong OPMN request port used to configure the connection (third step of "Create Application Server Connection" wizard). You might have kept the default (6003) but your OPMN is configured with different request port.
    Solution: Check $ORACLE_HOME/opmn/conf/opmn.xml file and look for entry like this:
    <port local="6140" remote="6240" request="6040" />
    Create the connection using OPMN request port that is set in opmn.xml file.
    Thanks
    Shail

Maybe you are looking for