Oracle 9i feature not available in Oracle 10g

The following query does work in Oracle 9.2.0.4 (and 9.2.0.5), but does not work in Oracle 10.1.0.3 (Linux)
SELECT *
FROM MEDIA_CONTENT
WHERE EXISTSNODE
(MCON_XML,
'/rdf:RDF/rdf:Description[ora:contains(dc:title,"Whale")>0]',
'xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:ora="http://xmlns.oracle.com/xdb"')
The error message
ORA-29913: error in executing contains callout
ORA-15198: operation [contains with non-leaf node] is not yet available
indicates, that this feature is not yet available in Oracle 10.1.0.3
Does anybody know, when this feature is available in Oracle 10, too ? Already in 10.1.0.4 ? Or in Oracle 10g Release 2 ?
Thanks,
Ulf

I assume you have Windows on the client. The "Drivers" page of the ODBC_DSA should list all installed drivers. You require:
name= Oracle ODBC Driver
version= 8.01.07.00 (or something similar)
company= Oracle Corporation DO NOT USE the Microsoft one.
If this does not show, then either it was not included in the Oracle Client installation or you have not rebooted after the Oracle Client installation; the ODBC driver is not visible until rebooted.

Similar Messages

  • Oracle 9 feature not available in Oracle 10

    The following query does work in Oracle 9.2.0.4 (and 9.2.0.5), but does not work in Oracle 10.1.0.2 (Linux)
    SELECT *
    FROM MEDIA_CONTENT
    WHERE EXISTSNODE
    (MCON_XML,
    '/rdf:RDF/rdf:Description[ora:contains(dc:title,"Whale")>0]',
    'xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:ora="http://xmlns.oracle.com/xdb"')
    The error message
    ORA-29913: error in executing contains callout
    ORA-15198: operation [contains with non-leaf node] is not yet available
    indicates, that this feature is not yet available in Oracle 10.1.0.2
    Does anybody know, when this feature is available in Oracle 10, too ? Already in 10.1.0.3 ?
    Thanks,
    Ulf

    I assume you have Windows on the client. The "Drivers" page of the ODBC_DSA should list all installed drivers. You require:
    name= Oracle ODBC Driver
    version= 8.01.07.00 (or something similar)
    company= Oracle Corporation DO NOT USE the Microsoft one.
    If this does not show, then either it was not included in the Oracle Client installation or you have not rebooted after the Oracle Client installation; the ODBC driver is not visible until rebooted.

  • Oracle Exam result not available on Oracle CertView account

    Hello,
    I have given my Oracle PL/SQL Developer Certified Associate exam (1z0-147) today i.e. 9th March, 2013. But I have not received my exam result till now and no mail also from Oracle and in my oracle certview account also result for that exam is not present. I have given exam from a authorized PearsonVUE centre. And in my PearsonVUE account my exam status is showing as "Taken".
    Is this because of some server problem or something else. Please help with the same.

    .... I always thing there has to be a higher risk of a delay at the weekends. The information has to get from the Test Center to Pearson VUE Central Systems through to Oracle Certifcation systems. With inevitable reduced staffing at weekends, timezone differences, weekend maintenances there surely has to be a higher risk of a delay at weekends. My opinion only. Hopefully it all sorts itself out by end of play monday PDT.

  • Dbms_aq.namespace_aq is not available in Oracle 8i.

    Hi,
    I have created persistent queue in Oracle 8i, I have also created the subscriber.
    But I have read that in order to notify when the message arrives in queue, in sys.aq$_reg_info namespace must be dbms_aq.namespace_aq for persistent queue, and I suppose dbms_aq.namespace_aq is not available in Oracle 8i.
    Is it True ?
    If yes, then is there any other way to notify when the message arrives in a persistent queue ?
    Your thoughts are appreciated.
    Thanks,
    Shailesh

    Hi,
    True, notification is a 9i and up feature. It works like this: A job owned by SYS is polling every few seconds and checks on any queue's/subscribers that are defined/signaled for notification. If a message arrives in these queue's another AQ-message is inserted into queue SYS.SRVQUEUE. The payload of this message among others consists of the call-back procedure which is executed.
    So, what you could do is build the nofication system yourself. Create a job that polls your notification queue and check if a new message has arrived and then execute your call-back procedure.
    Regards,
    H

  • DBMS_PROPAGATION_ADM.CREATE_PROPAGATION not available in Oracle 8i

    Hi,
    I need to propagate message from queue in Oracle 8i to queue in Oracle 9i.
    From Oracle 9i, I am able to propagate message by creating subscriber and creating propagation by
    DBMS_PROPAGATION_ADM.create_propagation.
    I am using same steps to propagate message from queue in Oracle 8i to queue in Oracle 9i.
    However, DBMS_PROPAGATION_ADM.create_propagation is not available in Oracle 8i.
    Is there any alternate way of propagating message from Oracle 8i ?
    Thanks,
    Shailesh

    create a PL/SQL function in your Oracle8 database that can dequeue the message from your Oracle8 queue; this function will call DBMS_AQ.DEQUEUE to read the message object. Lets call it DEQUEUE8;
    In the function, break out the object into its members (the individual scalar elements of the object type) and return those as OUT parameters. Use the function return value to tell you success or failure (eg timeout).
    Now, from Oracle 9, call that procedure remotely across a database link:
    declare
      ... variables
    begin
      -- loop for ever (or at least until you get a stop signal of some type)
       while 1=1 loop
         result := dequeue8@orcl8(p1, p2, p3, ...);
         if result < 0 then
          ... report error
         else
            ... pack the values p1,....p3, ... into your Oracle9 payload object, then
            DBMS_AQ.ENQUEUE(...);
         end if;
      end loop;
    end;I'll leave it to you to do the hard work!
    HTH
    Regards Nigel

  • Oracle (OCI8) driver not available!

    I have installed DAC successfully. So I start my client and am trying to create a new connection.
    I did the following:
    1) Clicked Configure
    2) by default, Create connection is selected, I clicked Next
    3) Entered Name, selected Connection Type as Oracle(OCI8), entered TNS names as ORCL and created new authentication file.
    4) Clicked Test Connection and it shows the error 'Can't connect to the database'. When I click Show details, I get the following:
    MESSAGE:::Oracle (OCI8) driver not available!
    EXCEPTION CLASS::: java.lang.IllegalArgumentException
    com.siebel.etl.gui.login.LoginDataHandler$LoginStructure.testConnection(LoginDataHandler.java:512)
    com.siebel.etl.gui.login.LoginDataHandler.testConnection(LoginDataHandler.java:386)
    com.siebel.etl.gui.login.ConnectionTestDialog$Executor.run(ConnectionTestDialog.java:290)
    ::: CAUSE :::
    MESSAGE:::oracle.jdbc.driver.OracleDriver
    EXCEPTION CLASS::: java.lang.ClassNotFoundException
    java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    java.security.AccessController.doPrivileged(Native Method)
    java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    java.lang.Class.forName0(Native Method)
    java.lang.Class.forName(Class.java:169)
    com.siebel.etl.gui.login.LoginDataHandler$LoginStructure.testConnection(LoginDataHandler.java:510)
    com.siebel.etl.gui.login.LoginDataHandler.testConnection(LoginDataHandler.java:386)
    com.siebel.etl.gui.login.ConnectionTestDialog$Executor.run(ConnectionTestDialog.java:290)
    Can somebody help me resolve this issue?
    Thanks in advance!!!

    Resolved. ojdbc14.jar was missing in \bifoundation\dac\lib.
    Downloaded and copied the file to the location and rebooted my system.

  • SP2-0575: Use of Oracle SQL feature not in SQL92 Entry Level.

    Hi,
    When I tried to login I am able to login but getting the following message:SP2-0575: Use of Oracle SQL feature not in SQL92 Entry Level.
    After loging, when I tried to "SELECT SYSDATE FROM DUAL;" I am getting the following error.
    ORA-00942: table or view does not exist
    Can somebody please help me ?

    this error may be related to glogin.sql files content, what are the outputs for these -
    SQL> describe dual ;
    Name                                      Null?    Type
    DUMMY                                              VARCHAR2(1)
    SQL> select * from dual ;
    D
    Xbest regards.

  • Sp2-0575: Use of oracle SQL feature  not in sql 92 entry level.

    Hi,
    While logging to sqlplus I'm getting the following message
    "sp2-0575: Use of oracle SQL feature not in sql 92 entry level."
    and login is successful, but I'm not able to generate next value from the sequence .
    t says no rows selected when i request
    for nextval a
    EX: select mySeq.nextval from dual; (mySeq is sequence)
    Thanx,
    Ravi.

    What has happened is that someone has enabled the Oracle feature called as FIPS flagger.
    This is a feature that Oracle provides to you if you plan to write SQL code that should be portable
    to other RDBMS systems. IF you enable this flagger and use a feature which is not in the SQL standard,
    Oracle will complain that use of this feature will make your application Oracle dependent, and you may not
    be able to run this application against any other RDBMS.
    To disable this for your SQL*Plus session do this:
    SQL> set flagger off
    SQL>
    Once you do this it will allow you to use all SQL commands including Oracle specific extensions.

  • [J2EE Deployment SPI:260003]Feature not available when in disconnected mode

    hi am am having this error when trying to deploy my application in portal
    [04:40:27 PM] ####  Deployment incomplete.  ####
    [04:40:27 PM] [J2EE Deployment SPI:260003]Feature not available when in disconnected mode.
    #### Cannot run application HR-Portal due to error deploying to IntegratedWebLogicServer.
    [Application HR-Portal stopped and undeployed from Server Instance IntegratedWebLogicServer]
    my log error
    [04:29:53 PM] Wrote Archive Module to C:\JDeveloper\mywork\HR-Portal\PortalWebAssets\deploy\PortalWebAssets.jar
    [04:40:08 PM] oracle.rc.asadapter.connection.ConnectionException: Cannot establish connection.
    [04:40:08 PM]      at oracle.rc.asadapter.weblogic.connection.spi.Weblogic10Jsr160Provider.getPresentation(Weblogic10Jsr160Provider.java:73)
    [04:40:08 PM]      at oracle.rc.asadapter.connection.AppServerConnectionImpl$PM.getPresentation(AppServerConnectionImpl.java:171)
    [04:40:08 PM]      at oracle.rc.asadapter.connection.AppServerConnectionImpl.getPresentation(AppServerConnectionImpl.java:66)
    [04:40:08 PM]      at oracle.jdevimpl.deploy.jazn.JaznDataDeployerListener.uploadIdentities(JaznDataDeployerListener.java:234)
    [04:40:08 PM]      at oracle.jdevimpl.deploy.jazn.JaznDataDeployerListener.uploadIdentities(JaznDataDeployerListener.java:217)
    [04:40:08 PM]      at oracle.jdevimpl.deploy.jazn.JaznDataDeployerListener.willDeploy(JaznDataDeployerListener.java:97)
    [04:40:08 PM]      at oracle.jdevimpl.deploy.fwk.ListenerSupport.fireWillDeploy(ListenerSupport.java:198)
    [04:40:08 PM]      at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:88)
    [04:40:08 PM]      at oracle.jdevimpl.deploy.fwk.WrappedDeployer.deployImpl(WrappedDeployer.java:39)
    [04:40:08 PM]      at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
    [04:40:08 PM]      at oracle.jdevimpl.deploy.fwk.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:457)
    [04:40:08 PM]      at oracle.jdeveloper.deploy.DeploymentManager.deploy(DeploymentManager.java:217)
    [04:40:08 PM]      at oracle.jdevimpl.deploy.common.ModulePackagerImpl.deployProfiles(ModulePackagerImpl.java:86)
    [04:40:08 PM]      at oracle.jdeveloper.deploy.common.ModulePackager.deployProfiles(ModulePackager.java:63)
    [04:40:08 PM]      at oracle.jdeveloper.deploy.common.ModulePackager.deployImpl(ModulePackager.java:52)
    [04:40:08 PM]      at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
    [04:40:08 PM]      at oracle.jdevimpl.deploy.fwk.WrappedDeployer.deployImpl(WrappedDeployer.java:39)
    [04:40:08 PM]      at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
    [04:40:08 PM]      at oracle.jdeveloper.deploy.common.BatchDeployer.deployImpl(BatchDeployer.java:82)
    [04:40:08 PM]      at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
    [04:40:08 PM]      at oracle.jdevimpl.deploy.fwk.WrappedDeployer.deployImpl(WrappedDeployer.java:39)
    [04:40:08 PM]      at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
    [04:40:08 PM]      at oracle.jdeveloper.deploy.common.BatchDeployer.deployImpl(BatchDeployer.java:82)
    [04:40:08 PM]      at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
    [04:40:08 PM]      at oracle.jdevimpl.deploy.fwk.WrappedDeployer.deployImpl(WrappedDeployer.java:39)
    [04:40:08 PM]      at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
    [04:40:08 PM]      at oracle.jdevimpl.deploy.fwk.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:457)
    [04:40:08 PM]      at oracle.jdeveloper.deploy.DeploymentManager.deploy(DeploymentManager.java:217)
    [04:40:08 PM]      at oracle.jdevimpl.runner.adrs.AdrsStarter$7$1.run(AdrsStarter.java:1774)
    [04:40:08 PM] Caused by: java.io.IOException
    [04:40:08 PM]      at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProviderBase.java:196)
    [04:40:08 PM]      at weblogic.management.remote.common.ClientProviderBase.newJMXConnector(ClientProviderBase.java:84)
    [04:40:08 PM]      at javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:338)
    [04:40:08 PM]      at oracle.rc.asadapter.weblogic.connection.spi.Weblogic10Jsr160Provider.getPresentation(Weblogic10Jsr160Provider.java:67)
    [04:40:08 PM]      ... 28 more
    [04:40:08 PM] Caused by: javax.naming.NamingException [Root exception is java.rmi.UnexpectedException: Marshalling: ; nested exception is:
    [04:40:08 PM]      java.rmi.ConnectException: Could not establish a connection with -3508319463259142590S:127.0.0.1:[7101,7101,-1,-1,-1,-1,-1]:DefaultDomain:DefaultServer, java.io.IOException: Destination unreachable; nested exception is:
    [04:40:08 PM]      java.net.ConnectException: Connection refused: connect; No available router to destination; nested exception is:
    [04:40:08 PM]      java.io.IOException: Destination unreachable; nested exception is:
    [04:40:08 PM]      java.net.ConnectException: Connection refused: connect; No available router to destination]
    [04:40:08 PM]      at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:86)
    [04:40:08 PM]      at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:32)
    [04:40:08 PM]      at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:788)
    [04:40:08 PM]      at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate.java:685)
    [04:40:08 PM]      at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:469)
    [04:40:08 PM]      at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:376)
    [04:40:08 PM]      at weblogic.jndi.Environment.getContext(Environment.java:315)
    [04:40:08 PM]      at weblogic.jndi.Environment.getContext(Environment.java:285)
    [04:40:08 PM]      at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
    [04:40:08 PM]      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
    [04:40:08 PM]      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
    [04:40:08 PM]      at javax.naming.InitialContext.init(InitialContext.java:223)
    [04:40:08 PM]      at javax.naming.InitialContext.<init>(InitialContext.java:197)
    [04:40:08 PM]      at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProviderBase.java:178)
    [04:40:08 PM]      ... 31 more
    [04:40:08 PM] Caused by: java.rmi.UnexpectedException: Marshalling: ; nested exception is:
    [04:40:08 PM]      java.rmi.ConnectException: Could not establish a connection with -3508319463259142590S:127.0.0.1:[7101,7101,-1,-1,-1,-1,-1]:DefaultDomain:DefaultServer, java.io.IOException: Destination unreachable; nested exception is:
    [04:40:08 PM]      java.net.ConnectException: Connection refused: connect; No available router to destination; nested exception is:
    [04:40:08 PM]      java.io.IOException: Destination unreachable; nested exception is:
    [04:40:08 PM]      java.net.ConnectException: Connection refused: connect; No available router to destination
    [04:40:08 PM]      at weblogic.common.internal.BootServicesStub.authenticate(BootServicesStub.java:57)
    [04:40:08 PM]      at weblogic.security.acl.internal.RemoteAuthenticate.authenticate(RemoteAuthenticate.java:90)
    [04:40:08 PM]      at weblogic.jndi.WLInitialContextFactoryDelegate.authenticateRemotely(WLInitialContextFactoryDelegate.java:747)
    [04:40:08 PM]      at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate.java:679)
    [04:40:08 PM]      ... 41 more
    [04:40:08 PM] Caused by: java.rmi.ConnectException: Could not establish a connection with -3508319463259142590S:127.0.0.1:[7101,7101,-1,-1,-1,-1,-1]:DefaultDomain:DefaultServer, java.io.IOException: Destination unreachable; nested exception is:
    [04:40:08 PM]      java.net.ConnectException: Connection refused: connect; No available router to destination; nested exception is:
    [04:40:08 PM]      java.io.IOException: Destination unreachable; nested exception is:
    [04:40:08 PM]      java.net.ConnectException: Connection refused: connect; No available router to destination
    [04:40:08 PM]      at weblogic.rjvm.RJVMImpl.getOutputStream(RJVMImpl.java:352)
    [04:40:08 PM]      at weblogic.rjvm.RJVMImpl.getRequestStreamForDefaultUser(RJVMImpl.java:689)
    [04:40:08 PM]      at weblogic.common.internal.BootServicesStub.authenticate(BootServicesStub.java:50)
    [04:40:08 PM]      ... 44 more
    [04:40:08 PM] Caused by: java.io.IOException: Destination unreachable; nested exception is:
    [04:40:08 PM]      java.net.ConnectException: Connection refused: connect; No available router to destination
    [04:40:08 PM]      at weblogic.rjvm.RJVMImpl.ensureConnectionEstablished(RJVMImpl.java:334)
    [04:40:08 PM]      at weblogic.rjvm.RJVMImpl.getOutputStream(RJVMImpl.java:350)
    [04:40:08 PM]      ... 46 more

    Caused by: java.io.IOException: Destination unreachable; nested exception is:
    +[04:40:08 PM]      java.net.ConnectException: Connection refused: connect; No available router to destination+
    Is the WebLogic server running?

  • Is the "Display list of web app items submitted by a user" feature not available in the free trial?

    Is the "Display list of web app items submitted by a user" feature not available in the free trial? I can see it in the tutorials but its not available when I am logged in.

    Its just named a little differently now. You should be able to add the module {module_webappscustomer} through the Modules toolbox in the web page editor window, as indicated below. Please note that webapps feature is available only for webCommerce sites. Read more about the available modules and its usage in detail here - http://kb.worldsecuresystems.com/134/bc_1345.html?bc-partner#main_Web_App_Modules
    Thanks,
    Vinayak

  • When I try to access iTunes Store I get an error message stating feature not available in the uk store

    when I try to access iTunes Store I get an error message stating feature not available in the uk store

    Exact same thing is happening to me. Couldn't find where to view the Itunes version number after a quick look. I hate the "simplified" interface by the way. On windows 8.1. Really starting to hate itunes, very buggy, and apple device locked down content (I'm looking at you TV shows and Movies) make it a pain to use.

  • Why is Enable Additional Features not available in Pro X?

    I have created a form with Acrobat Professional X and now want to save it so it can be filled in by users with
    Acrobat Reader, but when I choose File>Save As>Reader Extended PDF> Enable Additional Features - it's not available. Enable Additional Features is greyed out. I've checked that the document's security is set to No Security and I paid good money for the Professional version - why is this feature not available?

    Strangest thing. I closed out of Acrobat entirely and then reopened the document and suddenly the option was there! I've been struggling with this for an hour and scouring the forums thinking it had to be available somehow, but no where did I find the suggestion to close out and open again. So now the big test - will it work on a Mac?
    Answer - No! I still get the message that the document enabled extended features in Adobe Reader has been changed since it was created and use of extended features is no longer available - lord, I'm tired of trying to get this to work.

  • HI, I JUST GOT IPHONE 5S AND WOULD LIKE TO DEFINE NO OF MAIL IN MAIL BOX, BUT THIS FEATURE NOT AVAILABLE WITH 5S, HOW TO DEFINE IT. AS NOW ITS SYNC ALL MAIL IN MY INBOX, I WOULD LIKE TO DEFINE NO FOR SAME. PL HELP ME.

    HI, I JUST GOT IPHONE 5S AND WOULD LIKE TO DEFINE NO OF MAIL IN MAIL BOX, BUT THIS FEATURE NOT AVAILABLE WITH 5S, HOW TO DEFINE IT. AS NOW ITS SYNC ALL MAIL IN MY INBOX, I WOULD LIKE TO DEFINE NO FOR SAME. PL HELP ME.
    MANU

    Your question doesn't make much sense in English. To have no mail in your in box, you need to delete what you have.

  • Feature not support in oracle 10g

    Hi to all,
    We've planned to migrate oracle 9i to oracle 10g. Sys DBA will do the migraion.I'm App DBA and i want to know what are all the feature the not support in oracle 10g comparing to oracle 9i. Please give information in details.
    Thanks in advance

    You can check
    Oracle® Database New Features Guide
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14214/toc.htm
    for new feature in the release.
    Oracle database are backward compatible, you can use COMPATIBLE parameter to limit the new feature in 10g to maintain compatibility.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams028.htm#REFRN10019
    also check
    Oracle® Database Upgrade Guide
    10g Release 2 (10.2)
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14238/toc.htm

  • ORA-29278: SMTP transient error:421 Service not available on oracle 10g

    HIi,
    I am trying to send e-mails by using PL/Sql procedure . I am using UTL_MAIL/UTL_SMTP on oracle 10g R1 database.
    There is no problem in creating procedure,but when i am doing execution i am getting the mention error.
    I am trying to send mail with attachment as excel file.
    ORA-20001: The following error has occured: ORA-29278: SMTP transient error:
    421 Service not available
    ORA-06512: at "SCOTT.MAIL_ATT_RAW", line 64
    ORA-06512: at line 1
    -----my procedure code------
    CREATE OR REPLACE PROCEDURE mail_att_raw(filename varchar2) AS
    fil BFILE;
    file_len PLS_INTEGER;
    MAX_LINE_WIDTH PLS_INTEGER := 54;
    buf RAW(2100);
    amt BINARY_INTEGER := 2000;
    pos PLS_INTEGER := 1; /* pointer for each piece */
    filepos PLS_INTEGER := 1; /* pointer for the file */
    filenm VARCHAR2(50) := filename; /* binary file attachment */
    data RAW(2100);
    chunks PLS_INTEGER;
    len PLS_INTEGER;
    modulo PLS_INTEGER;
    pieces PLS_INTEGER;
    err_num NUMBER;
    err_msg VARCHAR2(100);
    resultraw RAW(32000);
    BEGIN
    /* Assign the file a handle */
    fil := BFILENAME('BFILE_DIR', filenm);
    /* Get the length of the file in bytes */
    file_len := dbms_lob.getlength(fil);
    /* Get the remainer when we divide by amt */
    modulo := mod(file_len, amt);
    /* How many pieces? */
    pieces := trunc(file_len / amt);if (modulo <> 0) then
    pieces := pieces + 1;end if;/* Open the file */
    dbms_lob.fileopen(fil, dbms_lob.file_readonly);/* Read the first amt into the buffer */
    dbms_lob.read(fil, amt, filepos, buf);/* For each piece of the file . . . */
    FOR i IN 1..pieces LOOP/* Position file pointer for next read */
    filepos := i * amt + 1;/* Calculate remaining file length */
    file_len := file_len - amt;/* Stick the buffer contents into data */
    data := utl_raw.concat(data, buf);/* Calculate the number of chunks in this piece */
    chunks := trunc(utl_raw.length(data) / MAX_LINE_WIDTH);/* Don't want too many chunks */
    IF (i <> pieces) THEN
    chunks := chunks - 1;
    END IF;/* For each chunk in this piece . . . */
    FOR j IN 0..chunks LOOP/* Position ourselves in this piece */
    pos := j * MAX_LINE_WIDTH + 1;/* Is this the last chunk in this piece? */
    IF (j <> chunks) THEN len := MAX_LINE_WIDTH;
    ELSE
    len := utl_raw.length(data) - pos + 1;
    IF (len > MAX_LINE_width) THEN
    len := MAX_LINE_WIDTH;
    END IF;
    END IF;/* If we got something, let's write it */
    IF (len > 0 ) THEN
    resultraw := resultraw || utl_raw.substr(data, pos, len);
    END IF;
    END LOOP;/* Point at the rest of the data buffer */
    IF (pos + len <= utl_raw.length(data)) THEN
    data := utl_raw.substr(data, pos + len);
    ELSE
    data := NULL;
    END IF;/* We're running out of file, only get the rest of it */
    if (file_len < amt and file_len > 0) then
    amt := file_len;
    end if;/* Read the next amount into the buffer */dbms_lob.read(fil, amt, filepos, buf);
    END LOOP;/* Don't forget to close the file */
    dbms_lob.fileclose(fil);
    SYS.UTL_MAIL.SEND_ATTACH_RAW(sender => '[email protected]', recipients => '[email protected]',subject => 'Testmail', message => 'Hallo', attachment => resultraw, att_filename => filename);
    EXCEPTION
    WHEN OTHERS THEN--dbms_output.put_line('Fehler');
    raise_application_error(-20001,'The following error has occured: ' || sqlerrm);
    END;
    Please suggest me what settings i need to change. This same procedure is running on another maching,but not on my machine.
    If somebody is having any other simple procedure ,please help me.
    My SMTP port -25
    Thanks in advance.

    Hi Justin,
    Please get the answers of your queries
    The error you're getting is coming from the SMTP server you are trying to connect to.
    - What SMTP server is your database configured to use?
    Reply - I am using IIS(5.0)
    - What SMTP server is the database where this code is working configured to use?
    Reply - Same IIS. Database is installed locally on my machine only. I am trying to send mail locally to me only,Not to the outside person.
    - Has the SMTP server been configured to allow connections from both machines?
    Reply - Yes
    One more query, do we really require to set the SMTP_OUT_SERVER parameter for SCOPE=BOTH
    ALTER SYSTEM SET smtp_out_server = '172.16.1.10' SCOPE=BOTH
    I am not able to set like this for BOTH,only for SPFILE i can set ?.
    My SMTP Server IP=172.16.1.10
    PORT- 25
    Thanks
    Manoj

Maybe you are looking for