Dblink for database 10G from database 8i

I have created dblink with this syntax in database( 8i) to connect to database (10G)
CREATE PUBLIC DATABASE LINK ORCL CONNECT TO SOUTH
IDENTIFIED BY SOUTH USING 'ORCL';
Database link created no issue but when I am trying to connect to South schema
in ORCL database I am getting this error.
ORA-02085: database link ORCL.US.ORACLE.COM connects to ORCL.REGRESS.RDBMS.DEV.US.ORACLE.COM
It was working fine when I am connecting to target database 8i.
Is there any issue of database version or something else?

Set global_names to false and try again.

Similar Messages

  • Problem when connecting locally to Oracle Database 10g from Java code

    Good afternoon,
    I try to connect to my local Oracle 10g from JAVA code. Could somebody tells me what are the 'values' to enter in place of 'value1, value2, value3' in the following:
    final String connectionURLThin = "jdbc:oracle:thin:@value1:value2:value3";
    I tried to put my 'user' and 'pw' credentials I used when connecting with SQL*PLUS:
    value1=my_user_name
    value2=my_pw
    value3=my_schema
    but it doest work. Besides where could have I to put the 'WORKSPACE" name?
    Thanks for any help.
    Claude
    Details:
    ERR MESSAGE----------------------
    Exception in thread "main" java.lang.NoClassDefFoundError: oracle/dms/instrument/ExecutionContextForJDBC
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:365)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:854)
    at java.sql.DriverManager.getConnection(DriverManager.java:620)
    at java.sql.DriverManager.getConnection(DriverManager.java:200)
    at javaapplication6.ConnectionExample.driverManager(ConnectionExample.java:138)
    at javaapplication6.Main.main(Main.java:36)
    Caused by: java.lang.ClassNotFoundException: oracle.dms.instrument.ExecutionContextForJDBC
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
    ... 8 more
    Java Result: 1
    BUILD SUCCESSFUL (total time: 0 seconds)
    ---------------------ERR MESSAGE
    JAVA code------------------it compiles but throw an error when running there -> (*)...
    final String driverClass = "oracle.jdbc.driver.OracleDriver";
    final String connectionURLThin = "jdbc:oracle:thin:@jeffreyh3:1521:CUSTDB";
    final String userID = "scott";
    final String userPassword = "tiger";
    final String queryString = "SELECT" +
    " user " +
    " , TO_CHAR(sysdate, 'DD-MON-YYYY HH24:MI:SS') " +
    "FROM dual";
    public void driverManager() {
    Connection con = null;
    Statement stmt = null;
    ResultSet rset = null;
    try {
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    con = DriverManager.getConnection(connectionURLThin, userID, userPassword); // (*) prob here
    stmt = con.createStatement ();
    rset = stmt.executeQuery(queryString);
    rset.close();
    stmt.close();
    } catch (SQLException e) {e.printStackTrace();
    --------------------JAVA JDK 1.6
    My system ------------------------
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production

    Yes, the network connection could not be established. Like the error said.
    What you're asking about is the exact reason, but that could be any number of things and not at all related to code. You could have the wrong host, the wrong port. A firewall could be blocking the outgoing connection, a firewall could be blocking the incoming connection. Etc. etc.

  • Invoke oracle report 10g from database pl/sql package

    Hi
    Is there a way that i can invoke an oracle report 10g from the database pl/sql package? I am working on a requirement that needs to generate a report when one of the criteria is not met.
    Please suggest me on this.

    Thanks for the info.
    I have a scenario where i need to fetch members details like name , email address and so on from the mainframes on the oracle database. Then on the oracle database i need to check if they have a email address or not. If yes then i need to generate a notice and mail it to them. If they don't have an email address, i'll have to print that out in a some centralized location.
    By the way, the notice was developed using oracle reports 10g.
    Now i am developing a pl/sql package which will do the address validation but i didn't know how to call a oracle report to generate the notice in pl/sql procedure.
    As suggested i will try with dbms scheduler and see if that works for me.

  • Urgent help with simple BPEL process for reading data from database

    Hello there,
    I need help with BPEL project.
    i have created a table Employee in Database.
    I did create application, BPEL project and connection to the database properly using Database Adapter.
    I need to read the records from the database and convert into xml fomat and it should to go approval for BPM worklist.
    Can someone please describe me step by step what i need to do.
    Thx,
    Dps

    I have created a table in Database with data like Empno,name,salary,comments.
    I created Database Connection in jsp page and connecting to BPEL process.
    It initiates the process and it goes automatically for approval.
    Please refer the code once which i created.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@page import="java.util.Map" %>
    <%@page import="com.oracle.bpel.client.Locator" %>
    <%@page import="com.oracle.bpel.client.NormalizedMessage" %>
    <%@page import="com.oracle.bpel.client.delivery.IDeliveryService" %>
    <%@page import="javax.naming.Context" %>
    <%@page import="java.util.Hashtable" %>
    <%@page import="java.util.HashMap" %>
    <%@ page import="java.sql.*"%>
    <%@ page import= "jspprj.DBCon"%>
    <html>
    <head>
    <title>Invoke CreditRatingService</title>
    </head>
    <body>
    <%
    DBCon dbcon=new DBCon();
    Connection conn=dbcon.createConnection();
    Statement st=null;
    PreparedStatement pstmt=null;
    Hashtable env= new Hashtable();
    ResultSet rs = null;
    Map payload =null;
    try
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.PROVIDER_URL, "opmn:ormi://localhost:port:home/orabpel");//bpel server
    env.put("java.naming.security.principal", "username");
    env.put("java.naming.security.credentials", "password");//bpel console
    Locator locator = new Locator("default","password",env);
    IDeliveryService deliveryService =
    (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
    // construct the normalized message and send to Oracle BPEL Process Manager
    NormalizedMessage nm = new NormalizedMessage();
    java.util.HashMap map = new HashMap();
    st=conn.createStatement();
    out.println("connected");
    String query1="Select * from EMPLOYEE";
    rs=st.executeQuery(query1);
    /*reading Data From Database and converting into XML format
    so that no need of going to BPEL console and entering the details.
    while (rs.next()){
    String xml1 = "<AsynchBPELProcess1ProcessRequest xmlns='http://xmlns.oracle.com/AsynchBPELProcess1'>"+
    "<Empno>"+rs.getString(1)+"</Empno>"+
    "<EmpName>"+rs.getString(2)+"</EmpName>"+
    "<Salary>"+rs.getString(3)+"</Salary>"+
    "<Comments>"+rs.getString(4)+"</Comments>"+
    "</AsynchBPELProcess1ProcessRequest>";
    out.println(xml1);
    nm.addPart("payload", xml1 );
    // EmployeeApprovalProcess is the BPEL process in which human task is implemented
    deliveryService.post("EmployeeApprovalProcess", "initiate", nm);
    // payload = res.getPayload();
    out.println( "BPELProcess CreditRatingService executed!<br>" );
    // out.println( "Credit Rating is " + payload.get("payload") );
    //Incase there is an exception while invoking the first server invoke the second server i.e lsgpas13.
    catch(Exception ee) {
    //("BPEL Server lsgpas14 invoking error.\n"+ee.toString());
    %>
    </body>
    </html>
    Its working fine.And i want it for Bulk approvals.please help me step by step procedure if any other way to implement this.

  • Native/StandAlone OEM  for 9i, 10g, 11g Databases for EBS

    hi hussein/helios,
    How do I install the standalone OEM web, for EBS with 9i, 10g, 11g database? I just can not stall GRID coz
    its so complicated.
    I have seen it here in a forum before , which is done thru a patch, but I can not find that link anymore :(
    Hussein give me that patch link before :), Can you help me find the link again please....
    It is so hard to search key words in the forum.
    Thanks a lot
    MsK

    Hi,
    By the way, If I use OEM GRID... Let's say we have 10 branches having each own distributed database on Linux, with
    different database version (like 8i, 9i, 10g, 11g). And we are located at the Main Office. Is the ff. steps the way
    to manage them?ff steps means?
    1. Install OEM Grid at the Main Office (10.2.0.5). My Main Office version in on Windows XP PC. Is it ok? to manage
    Linux servers using central Grid on Windows?Refer to the certification matrix in My Oracle Support website to find out if OEM is certified on XP or not (most probably not).
    2. Install OEM linux control agent at the 10 branchces which are on Linux.
    3. Each branches connect to Main Office via VPN like once a week, just to get/send updates.The above should be OK.
    Regards,
    Hussein

  • Best Practice for Removing Zeroes from Database

    Does anyone have some clever bits of code or best practices for evaluating a database and instances of zeroes? I'm working on cleaning up our rules file and am thinking the best way to start would be to write some code to look for zeroes and write them to a log file. This would at least indicate if there was even a problem with zeroes (which there may or may not be).
    Any suggestions out there / utilities / code samples?
    Thanks.

    We accomplished this using data extracts from a subset of scenarios/years/entities/accounts to ensure that all of our potential rules could be checked to ensure they were not writting zero's. This worked pretty well for our purposes, a text editor called EmEditor allows for VB macros in it pretty easily and we could write a quick macro to check for strings ending in "; 0." You may also want to review your check box of calculated in your extract and see if the zeros are a result of calculations. A rule output could work pretty well, although it would take some defining as you would have to write it out in a sub and make sure that you capture the data of all subroutines if your zero's are rule driven or actual inputs. May want to review some if you have very small insignificant values getting written, seen items that have one value 13 places to the right of the decimal that were not really signficant.
    JTF

  • Call for email address from database?

    Hi
    I'm pretty new to asp pages.
    I've got hundreds of customer contact forms that I would like
    to create as
    .asp pages, so that when the form is sent it calls for the
    email addresses
    to send it to from a database.
    This is an attempt to hide the customers email address from
    showing on the
    website.
    Can anyone please point me in the direction of a newbie
    tutorial?
    Many thanks
    Craig.

    fbcojman wrote:
    > I am storing a field for email address in my MySQL
    database. I'd like, when
    > using PHP to pull from my database, when the email field
    is returned, for it to
    > be a link to that email address.
    <a href="mailto:<?php echo $row_recordsetName['email'];
    ?>"><?php echo
    $row_recordsetName['email']; ?></a>
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Is a DB license required for EM 10G repository database?

    We purchasedOEM10G Grid Control. We're planning to deploy OMS and Repository on a standalone Linux box (which has no other RDBMS running on it), while agents will be spread accross other target Unix boxes. OEM10G comes with a repository database. Do we need a separate license for this repository database on Linux? Can not locate the answer on Oracle Home site.

    My impression from what I have read in the manuals is you can run the OMS and repository on a seperate machine and not pay license (RDBMS or Grid Control) for it. You will be paying Grid Control license for all the monitored machines where you have your business applications running. Talk to you sales rep before you proceed because my interpretations will not protect you when Oracle comes after you for more money.

  • Is there is any setting for export data from database- datasource

    Hi ALL
    i am using crm 2007 system in there , i had activated opportunities OLTP reports , here but i can not able to get the data in reports , then i check the respective data source in RSA3 it showing zero records,
    is there is any procedure to getting data from data base tables to data source.

    you can follow the same 3.x dataflow eventhough u upgrade.
    the only diff
    3.x - would be emulated DS
    7.0 - RSDS
    3.x - file path declared in infopack
    7.0 - is declared in DS (that would be inherted by infopack)
    Infosource - optional - works fine on both the versions
    creating a new DS, it has to be RSDS .. no way out

  • Database Schema from database

    I need a little help. I am trying to import a mySQL database to a schema in JDeveloper 10.1.3. I keep getting an error about varchar cannot have parameters. Can somebody shed some light on this issue?
    Thanks,
    Alley Davis
    Dragon Creative Works

    Sorry Lisa,
    I posted the SQL Scripts Generated by JDeveloper 10.1.2.
    Here are the ones from mySQL
    Thanks,
    Alley
    CREATE TABLE CIP (
    CIP VARCHAR(50) NOT NULL,
    Description VARCHAR(50) NOT NULL,
    ECN VARCHAR(50) NOT NULL,
    REV VARCHAR(50) NOT NULL,
    GOV BIT NOT NULL,
    GOVAuth VARCHAR(50) NOT NULL,
    LSAComplete DATETIME NOT NULL,
    PUBSComplete DATETIME NOT NULL,
    Validated BIT NOT NULL,
    Canceled BIT NOT NULL,
    Overview TEXT NOT NULL,
    LSAWriter VARCHAR(50) NOT NULL,
    PUBSWriter VARCHAR(50) NOT NULL,
    Priority SMALLINT(5) NOT NULL,
    KitAvail DATETIME NOT NULL,
    KitOrdered DATETIME NOT NULL,
    FileName VARCHAR(50) NOT NULL,
    AuthFileName VARCHAR(50) NOT NULL,
    Hold BIT NOT NULL,
    [Delete] BIT NULL,
    Released BIT NULL,
    PRIMARY KEY(CIP)
    CREATE TABLE CIP2Serial (
    CIP VARCHAR(50) NOT NULL,
    End_SN VARCHAR(50) NOT NULL,
    End_PN VARCHAR(50) NOT NULL,
    SN VARCHAR(50) NOT NULL,
    PN VARCHAR(50) NOT NULL,
    End_UID VARCHAR(5) NOT NULL,
    NHA_SN VARCHAR(50) NOT NULL,
    NHA_PN VARCHAR(50) NOT NULL,
    NHA_UID VARCHAR(5) NOT NULL,
    UID VARCHAR(5) NOT NULL,
    Complete BIT NOT NULL,
    DRF VARCHAR(50) NOT NULL,
    Status VARCHAR(15) NOT NULL,
    Date_In DATETIME NOT NULL,
    Date_Completed DATETIME NOT NULL,
    [Delete] BIT NULL,
    Released BIT NULL,
    PRIMARY KEY(CIP, End_SN, End_PN, SN, PN)
    CREATE TABLE CIPDetails (
    CIP VARCHAR(50) NOT NULL,
    PN VARCHAR(50) NOT NULL,
    UID VARCHAR(5) NOT NULL,
    UIDEndItem VARCHAR(5) NOT NULL,
    [Delete] BIT NULL,
    Released BIT NULL,
    PRIMARY KEY(CIP, PN)
    CREATE TABLE CIPReason (
    ID INTEGER NOT NULL,
    ClosingReason VARCHAR(50) NOT NULL,
    [Delete] BIT NULL,
    Released BIT NULL,
    PRIMARY KEY(ID)
    CREATE TABLE Priority (
    Priority SMALLINT(5) NOT NULL,
    PriorityText CHAR(15) NOT NULL,
    [Delete] BIT NULL,
    Released BIT NULL,
    PRIMARY KEY(Priority)

  • SQL Tuning Pack for 10G R2 database

    Hi,
    I am looking for a SQL tuning pack plug in with SQL Developer 2.1 release for Oracle 10g R2 database.
    Any information this would be appreciated.
    Thanks,
    Patchava

    There is no 'tuning pack' plugin for SQL Developer, We can process trace files, monitor sessions etc.
    If you are looking for specifics on things like SQL Advisor, SQL Profiles and things, we do not have specific features for them yet, but we have planned them in the future.
    Barry

  • CAN ANYONE TELL ME FROM WHERE I CAN DOWNLOAD 10g ORACLE DATABASE...

    hi all,
    CAN ANYONE TELL ME FROM WHERE I CAN DOWNLOAD 10g ORACLE DATABASE ??
    is it possible from oracle website..
    thnxssss

    Hi
    You can get database 10g from
    http://www.oracle.com/technology/software/products/database/index.html
    Read terms and conditions before use

  • From database to pdf

    Hi again,
    Is it possible to create XML and XSL document, or .fo file, from ResultSet object.
    I've got access database and I access it through jdbc-odbc bridge. Now, I want to create .pdf file
    using FOP, as output for my data from database. Do I need to create .fo file, or I can transform data directly?
    Any suggestions ?
    Thanks.

    I think the answer is somwhere in the DOM model. Somhow I nedd to create DOM object from ResultSet and then use it like InputSource for FOP. If anyone knows how to do it pls help.

  • Error While creating new database connection from HFM workspace

    Hi,
    We have recently installed HFM and was trying to create database connection from database connection manager in HFM workspace.
    I am getting below error:
    "Error connecting to database connection : no HssJNIDriver950 in java.library.path" initially and later
    "Error connecting to database connection : com/hyperion/ap/adm/HssConn".
    Any information in this direction would helpful.
    Thanks,
    Bhargav
    Edited by: bhargavr on Jan 24, 2011 6:55 PM

    Hi bhargavr,
    We came accross the same issue. Try the following solution below for this 'KNOWN ISSUE' and let me know how you get on. Drop me a note if you have any questions regarding this post.
    Error: *"Error connecting to database connection: com/hyperion/ap/adm/HssConn" While Creating a Financial Management Database Connection* [ID 1102697.1]
    Modified 04-JAN-2011 Type PROBLEM Status PUBLISHED
    Applies to:
    Hyperion BI+ - Version: 11.1.2.0.00 and later [Release: 11.1 and later ]
    Microsoft Windows x64 (64-bit)
    Symptoms:
    You are running the Financial Reporting Web Server on a 64-bit server.
    When you try to create a new Financial Management (HFM) database connection using the Database Connection Manager in Workspace you receive the following message:
    “Error connecting to database connection <connection_name>: com/hyperion/ap/adm/HssConn”
    You can create a database connection in Financial Reporting Studio. When you refresh a report with a Financial Management database connection, you receive one of the following messages:
    “1001: Error connecting to database connection <DATABASE_CONNECTION_NAME>: com/hyperion/ap/adm/HssConn”
    or
    “1001: Error connecting to database connection <DATABASE_CONNECTION_NAME>: no HssJNIDriver950 in java.library.path”
    Cause:
    The issue is documented in unpublished bug 9537050, and in Known Issues in the 11.1.2 Reporting and Analysis Readme. Cross-reference unpublished bug 9707353.
    Solution:
    In the Windows registry, take the following steps:
    Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\HyperionSolutions\FinancialReporting0\HyS9FRReports.
    For each of the following entries, prefix the contents with text in the blue box: Env2, JVMOption13, and JVMOption17 (note that the JVMOption numbers might be slightly different in your environment).
    C:\Oracle\Middleware\EPMSystem11R1\common\ADM\11.1.2.0\bin-64
    If your EPM_ORACLE_HOME is not located at C:\Oracle\Middleware\EPMSystem11R1, replace that location with your location.
    Restart the server.
    G'Luck,
    -David

  • Write blob data from database to unix server

    Hi all,
    I need to send the attachment file into the mail. I have a header form in which I have implemented Download/Upload functionality using Apex user guide. When ever a user fill all the entries and submit the form then some field information along with attachment I need to send to the user.
    I mean when ever user hit the submit button it should take blob data from my custom table tmp_downlod_files and send to the user as an attachment.
    I have searched the post and got lot information but not able to get succeed.
    I have implemented java stored procedure for sending automatic mail when user is submitting the form but what I need is to take blob content from database and send as an attachment.
    1: So I need to write blob content from custom table to unix server in some location and from there I need to attach that file.
    2: the java store which I have implemented for sending automatic mail is working and one argument is attachment which I am passing null for now. So mail is working how to write the file from database to unix server and send as an attachment.
    What I did for writing file from database to unix server:
    1:
    CREATE OR REPLACE PROCEDURE trx_blob_to_file (l_header_id IN NUMBER)
    IS
    BEGIN
    FOR rec_picture IN (SELECT ID
    FROM TMP.tpx_download_files
    WHERE header_id = l_header_id
    AND mime_type LIKE ('image' || '%'))
    LOOP
    DECLARE
    l_out_file UTL_FILE.file_type;
    l_buffer RAW (32767);
    l_amount BINARY_INTEGER := 32767;
    l_pos INTEGER := 1;
    l_blob_len INTEGER;
    p_data BLOB;
    file_name VARCHAR2 (256);
    BEGIN
    SELECT blob_content, filename
    INTO p_data, file_name
    FROM tpx_download_files
    WHERE ID = rec_picture.ID;
    l_blob_len := DBMS_LOB.getlength (p_data);
    l_out_file :=
    UTL_FILE.fopen ('/home/oracle/interfaces/out/upld',
    file_name,
    'wb',
    32767
    WHILE l_pos < l_blob_len
    LOOP
    DBMS_LOB.READ (p_data, l_amount, l_pos, l_buffer);
    IF l_buffer IS NOT NULL
    THEN
    UTL_FILE.put_raw (l_out_file, l_buffer, TRUE);
    END IF;
    l_pos := l_pos + l_amount;
    END LOOP;
    UTL_FILE.fclose (l_out_file);
    EXCEPTION
    WHEN OTHERS
    THEN
    IF UTL_FILE.is_open (l_out_file)
    THEN
    UTL_FILE.fclose (l_out_file);
    END IF;
    END;
    END LOOP;
    END;
    2: I have written a PL/SQL process and calling the above procedure on SUBMIT:
    DECLARE
    l_header_id NUMBER;
    l_filename VARCHAR2 (200);
    BEGIN
    SELECT header_id, filename
    INTO l_header_id, l_filename
    FROM tpx_download_files
    WHERE header_id = :p35_sr_header_id;
    trx_blob_to_file (l_header_id);
    END;
    But it is not writing the file from database to unix server.
    If I can get how to make working to write file from database to unix server then I will hopefully can send an attachment.
    3; I have given
    GRANT EXECUTE ON TPX_BLOB_TO_FILE TO PUBLIC.
    And
    GRANT EXECUTE ON UTL_FILE TO PUBLIC.
    Where I am doing wroung can anyone guide me or any other approach is appreciated.
    I am already late so I need soon. Please help.

    Hi all,
    I need to send the attachment file into the mail. I have a header form in which I have implemented Download/Upload functionality using Apex user guide. When ever a user fill all the entries and submit the form then some field information along with attachment I need to send to the user.
    I mean when ever user hit the submit button it should take blob data from my custom table tmp_downlod_files and send to the user as an attachment.
    I have searched the post and got lot information but not able to get succeed.
    I have implemented java stored procedure for sending automatic mail when user is submitting the form but what I need is to take blob content from database and send as an attachment.
    1: So I need to write blob content from custom table to unix server in some location and from there I need to attach that file.
    2: the java store which I have implemented for sending automatic mail is working and one argument is attachment which I am passing null for now. So mail is working how to write the file from database to unix server and send as an attachment.
    What I did for writing file from database to unix server:
    1:
    CREATE OR REPLACE PROCEDURE trx_blob_to_file (l_header_id IN NUMBER)
    IS
    BEGIN
    FOR rec_picture IN (SELECT ID
    FROM TMP.tpx_download_files
    WHERE header_id = l_header_id
    AND mime_type LIKE ('image' || '%'))
    LOOP
    DECLARE
    l_out_file UTL_FILE.file_type;
    l_buffer RAW (32767);
    l_amount BINARY_INTEGER := 32767;
    l_pos INTEGER := 1;
    l_blob_len INTEGER;
    p_data BLOB;
    file_name VARCHAR2 (256);
    BEGIN
    SELECT blob_content, filename
    INTO p_data, file_name
    FROM tpx_download_files
    WHERE ID = rec_picture.ID;
    l_blob_len := DBMS_LOB.getlength (p_data);
    l_out_file :=
    UTL_FILE.fopen ('/home/oracle/interfaces/out/upld',
    file_name,
    'wb',
    32767
    WHILE l_pos < l_blob_len
    LOOP
    DBMS_LOB.READ (p_data, l_amount, l_pos, l_buffer);
    IF l_buffer IS NOT NULL
    THEN
    UTL_FILE.put_raw (l_out_file, l_buffer, TRUE);
    END IF;
    l_pos := l_pos + l_amount;
    END LOOP;
    UTL_FILE.fclose (l_out_file);
    EXCEPTION
    WHEN OTHERS
    THEN
    IF UTL_FILE.is_open (l_out_file)
    THEN
    UTL_FILE.fclose (l_out_file);
    END IF;
    END;
    END LOOP;
    END;
    2: I have written a PL/SQL process and calling the above procedure on SUBMIT:
    DECLARE
    l_header_id NUMBER;
    l_filename VARCHAR2 (200);
    BEGIN
    SELECT header_id, filename
    INTO l_header_id, l_filename
    FROM tpx_download_files
    WHERE header_id = :p35_sr_header_id;
    trx_blob_to_file (l_header_id);
    END;
    But it is not writing the file from database to unix server.
    If I can get how to make working to write file from database to unix server then I will hopefully can send an attachment.
    3; I have given
    GRANT EXECUTE ON TPX_BLOB_TO_FILE TO PUBLIC.
    And
    GRANT EXECUTE ON UTL_FILE TO PUBLIC.
    Where I am doing wroung can anyone guide me or any other approach is appreciated.
    I am already late so I need soon. Please help.

Maybe you are looking for

  • Quote Report - Performance

    I have created a quote report with narratives around the opportunity, opportunity-product, and account information. The report contains a pivot table. I'm getting very hit or miss performance results on the report. Sometimes the report runs faster fo

  • Error 'Update Was Terminated' - While clearing an open item

    Hi, We are facing a problem where we receive an error - "Update Was Terminated" when we try to clear some entries for 3-4 vendors (posted in period 12 of year 2006. it happens only for those 3-4 vendors). We have identified the problem as follows: 1)

  • Push Notifications keep disabling?

    I've noticed the last few days since I have updated to iOS7 and updated the facebook and twitter apps my push notifications for facebook and twitter seem to keep vanishing overnight. When I wake up in the morning I see I've had no notifications from

  • Epson printers keep giving "media not loaded correctly" error message

    When sending print jobs that consist of multiple copies to Epson printers from my dual 3 GHz Quad-Core Intel Xeon Mac with OS 10.5.8, the printer will frequently (more than half the time) grab a sheet of paper and spit it out with nothing on it, and

  • A way to make multiple pages in LR?

    I'm switching to LR2 from Apple Aperture. I use Aperture to make my photo website on Mobile Me. Once I get to LR, I know you can make a webpage within but, can these webpages be updated or new pages added to the created website template? I understand