File encoding of database package

Hi,
I copied a dabase package and package body from an online database to an offline database. The package contains a procedure with a name, which contains a german umlaut. This umlaut character is not displayed correctly in the editor, because the file is encoded in UTF-8. The JDeveloper editor seems to assume the encoding is Cp1252. Is it possible to set the encoding property of the file somewhere? I only found the global encoding property under Tools->Preferences->Environment.
Thanks for hints
Thomas

Hello Timo,
thanks for your answer, but setting the language to GERMAN on the Database->NLS settings page doesn't help. The only way I found, is to set the encoding globally on the "Environment" page. But this affects all my Java source files, which are all in Cp1252 encoding. So if nothing else helps, I have to change the encoding of all my Java source files.
Thomas

Similar Messages

  • Can a Oracle 10g Report be run from a plsql database package?

    Hi,
    We have a requirement to generate a pdf report file from plsql database package. I want to know if it is possible to run a Oracle 10g Report from PL/SQL package/procedure in database? If so, can you provide an example?
    Thanks in advance.
    Regards
    Vishnu Nekkanti

    Hi Alex,
    When I try to create the procedure event_driven_report mentioned in Doc ID 199743.1. I am getting below errors. Thoughts? Am I missing some thing?
    2/14 PL/SQL: Item ignored
    2/14 PLS-00201: identifier 'SRW_PARAMLIST' must be declared
    3/14 PL/SQL: Item ignored
    3/14 PLS-00201: identifier 'SRW.JOB_IDENT' must be declared
    5/5 PL/SQL: Statement ignored
    5/5 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    6/5 PL/SQL: Statement ignored
    6/23 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    7/5 PL/SQL: Statement ignored
    7/23 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    8/5 PL/SQL: Statement ignored
    8/23 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    9/5 PL/SQL: Statement ignored
    9/23 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    10/5 PL/SQL: Statement ignored
    10/23 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    11/5 PL/SQL: Statement ignored
    11/23 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    12/5 PL/SQL: Statement ignored
    12/23 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    Thanks
    Vishnu Nekkanti

  • UNIX: Spool out database package and package body to a file [SOLVED]

    Hello,
    Does anyone know what I need to type into the unix console in order to spool out a database package spec and body of my choosing to a file? I've been told that I've got to do something like:
    set trim spool on
    With the idea that the trim will wrap the lines in the file so that words aren't half cut off. But the unix console tells me those commands don't exist?
    Thanks,
    - A Developer Scorned
    Message was edited by:
    A Developer Scorned

    Thank you very much gintsp. I did not realise they were sqlplus commands.
    In order to spool out a datababase package spec and its accompanying body through sqlplus in unix, I found the following post helpful too: how to generate text file using spool command
    Simply load up sqlplus and enter in the commands (set verify off, set feedback off etc), and specify a file to spool out to. In order to spool out the text of a database package, simply use:
    select text from dba_source where name = <your package name here>
    That way the spec will be spooled out followed by the body.
    Thanks,
    - A Developer Scorned.

  • Specify File Encoding(Japanese Characters) for UTL_FILE in Oracle 10g

    Hi All,
    I am creating a text file using the UTL_FILE package. The database is Oracle 10G and the charset of DB is UTF-8.
    The file is created on the DB Server machine itself which is a Windows 2003 machine with Japanese OS. Further, some tables contain Japanese characters which I need to write to the file.
    When these Japanese characters are written to the text file they occupy 3 bytes instead of 1 and distort the format of the file, I need to stick to.
    Can somebody suggest, is there a way to write the Japanese character in 1 byte or change the encoding of the file type to something else viz. ShiftJIS etc.
    Thanking in advance,
    Regards,
    Tushar

    Are you using the UTL_FILE.FOPEN_NCHAR function to open the files?
    Cheers, APC

  • Running report from database package

    Hi,
    I have a database package and it gets soem details and submits the report using SRW. It has submitted successfully. But the report is not outputed but there is file with extension eps. Can the package pass the user variables??
    The package code follows:-
    PROCEDURE p_submit_copy_invoices(
    par_organization_id1           IN     system_users.organization_id%TYPE,
    par_batch_no1               IN     ds_invoice_headers.batch_no%TYPE,
    par_invoice_date IN ds_invoice_headers.creation_date%type,
    par_user_code          IN     system_users.user_code%TYPE,
    par_err_msg               OUT     VARCHAR2) IS
    replist SRW_PARAMLIST;
    repindent SRW.job_ident;
    repstatus SRW.STATUS_RECORD;
    par_customer_code_from ds_invoice_headers.customer_code%type;
    par_organization_id number;
    par_batch_no number;
    CURSOR GET_CUST_CODE IS
    SELECT DISTINCT dih.CUSTOMER_CODE,dih.batch_no,NO_OF_INVOICE_COPIES
    FROM DS_INVOICE_HEADERS DIH, DS_CUSTOMER_SITES DCS
    WHERE dih.ORGANIZATION_ID = par_organization_id1
    AND TRANSACTION_TYPE = 'IN'
    AND TRUNC(dih.CREATION_DATE) = par_invoice_date --'16-SEP-04' --TO_DATE(:DUAL.INVOICE_DATE)
    and DIH.ORGANIZATION_ID = dcs.ORGANIZATION_ID
    AND DIH.CUSTOMER_CODE= DCS.CUSTOMER_CODE
    AND dih.CUSTOMER_SITE_CODE = DCS.CUSTOMER_SITE_CODE
    AND NO_OF_INVOICE_COPIES > 0;
    BEGIN
    dbms_output.put_line('before');
         FOR CURR_REC IN GET_CUST_CODE
         LOOP
         --v_user_params :=  ' par_organization_id1 ='||:GLOBAL.organization_id
         --                    || ' par_customer_code_from ='||CURR_REC.customer_code
         --                    || ' par_batch_no = '||CURR_REC.batch_no;
         dbms_output.put_line('inside loop -'||curr_rec.customer_code);
    replist := SRW_PARAMLIST(SRW_PARAMETER('',''));
         srw.start_debugging;
         SRW.ADD_PARAMETER(replist,'GATEWAY','http://seikoapps.seiko.com.au:7777/reports/rwservlet');
         SRW.ADD_PARAMETER(replist,'REPORT','/u02/app/dis/dev/reports/rdf/dsinvprt.rdf');
         SRW.ADD_PARAMETER(replist,'SERVER','repseikoapps2');
         SRW.ADD_PARAMETER(replist,'USERID','dis/[email protected]');
         SRW.ADD_PARAMETER(replist,'DESTYPE','FILE');
         --SRW.ADD_PARAMETER(replist,'DESNAME','itgenicom');
         dbms_output.put_line(' before desformat ');
         --SRW.ADD_PARAMETER(replist,'DESFORMAT'.'lst');
         SRW.ADD_PARAMETER(replist,'DESTINATION','/u02/app/dis/dev/reports/rep/dsinvprt.pdf');
         SRW.ADD_PARAMETER(replist,'BLANKPAGES','no');
         SRW.ADD_PARAMETER(replist,'COPIES',CURR_REC.NO_OF_INVOICE_COPIES);
         --SRW.ADD_PARAMTER(mplist,DESTINATION,
         dbms_output.put_line(' before MODE');
         SRW.ADD_PARAMETER(replist,'MODE','Bitmap');
         SRW.ADD_PARAMETER(replist,'ORIENTATION','Landscape');
         SRW.ADD_PARAMETER(replist,'PARAMFORM','no');
         dbms_output.put_line(' user defined variable ');
         SRW.ADD_PARAMETER(replist,par_organization_id,par_organization_id1);
         SRW.ADD_PARAMETER(replist,par_customer_code_from,CURR_REC.customer_code);
         SRW.ADD_PARAMETER(replist,par_batch_no,CURR_REC.batch_no);
         dbms_output.put_line(' before runrepoert ');
         repindent := srw.run_report(replist);
         repstatus := SRW.REPORT_STATUS(repindent);     
         dbms_output.put_line(' status of the report - '||repstatus.statuscode);
         --srw.stop_debugging;
         END LOOP;
    END p_submit_copy_invoices;
    I have turned the dubugging on :-
    * WELCOME TO EVENT-BASED-REPORTING API *
    * API-Version : 9i *
    * (C) Oracle Corporation, 2000 - 2002 *
    * Debugging turned ON **************************
    *** Length of Paramlist : 1
    OK : Parameter added : GATEWAY=http://seikoapps.seiko.com.au:7777/reports/rwservlet
    *** Length of Paramlist : 2
    OK : Parameter added : REPORT=/u02/app/dis/dev/reports/rdf/dsinvprt.rdf
    *** Length of Paramlist : 3
    OK : Parameter added : SERVER=repseikoapps2
    *** Length of Paramlist : 4
    OK : Parameter added : USERID=dis/[email protected]
    *** Length of Paramlist : 5
    OK : Parameter added : DESTYPE=FILE
    before desformat
    *** Length of Paramlist : 6
    OK : Parameter added : DESTINATION=/u02/app/dis/dev/reports/rep/dsinvprt.pdf
    *** Length of Paramlist : 7
    OK : Parameter added : BLANKPAGES=no
    *** Length of Paramlist : 8
    OK : Parameter added : COPIES=1
    before MODE
    *** Length of Paramlist : 9
    OK : Parameter added : MODE=Bitmap
    *** Length of Paramlist : 10
    OK : Parameter added : ORIENTATION=Landscape
    *** Length of Paramlist : 11
    OK : Parameter added : PARAMFORM=no
    user defined variable
    *** Length of Paramlist : 12
    OK : Parameter added : =129
    *** Length of Paramlist : 13
    OK : Parameter added : =250000D
    *** Length of Paramlist : 14
    OK : Parameter added : =100104
    before runrepoert
    Starting run_report: building url
    *** Building URL (RUN_REPORT)
    OK : URL built : http://seikoapps.seiko.com.au:7777/reports/rwservlet?REPORT=%2Fu02%2Fapp%2Fdis%2Fdev%2Freports%2Frdf%2Fdsinvprt%2Erdf&SERVER=repseikoapps2&USERID=dis%2Fseikodis%40dis%2Eseiko%2Ecom%2Eau&DESTYPE=FILE&DESTINATION=%2Fu02%2Fapp%2Fdis%2Fdev%2
    *** Submitting HTTP Request
    *** using URL :http://seikoapps.seiko.com.au:7777/reports/rwservlet?REPORT=%2Fu02%2Fapp%2Fdis%2Fdev%2Freports%2Frdf%2Fdsinvprt%2Erdf&SERVER=repseikoapps2&USERID=dis%2Fseikodis%40dis%2Eseiko%2Ecom%2Eau&DESTYPE=FILE&DESTINATION=%2Fu02%2Fapp%2Fdis%2Fdev%2Fr
    OK : Request submitted - Return stream : <?xml version = '1.0' encoding = 'ISO-8859-1' standalone = 'yes'?>
    <serverQueues>
    <job id="842" queueType="past">
    <name>/u02/app/dis/dev/reports/rdf/dsinvprt.rdf</name>
    <type>report</type>
    <st
    OK : Request submitted - Length of stream : 678
    *** XML-Parsed - Following Structure discovered :
    *** Checking elements!
    serverQueues ()
    *** Checking attributes!
    job ()
    *** Checking attributes!
    __id = 842
    __queueType = past
    name (/u02/app/dis/dev/reports/rdf/dsinvprt.rdf)
    *** Checking attributes!
    type (report)
    *** Checking attributes!
    status (Finished successfully)
    *** Checking attributes!
    __code = 4
    owner (RWUser)
    *** Checking attributes!
    server (repseikoapps2)
    *** Checking attributes!
    destination ()
    *** Checking attributes!
    desType (FILE)
    *** Checking attributes!
    desFormat (unknown)
    *** Checking attributes!
    file (71106787.eps)
    *** Checking attributes!
    timingInfo ()
    *** Checking attributes!
    queued (1/10/2004 15:02:18)
    *** Checking attributes!
    started (1/10/2004 15:02:18)
    *** Checking attributes!
    finished (1/10/2004 15:02:18)
    *** Checking attributes!
    *** Finished Parsing XML
    Getting value for element: job
    *** Requesting value for Attribute job.id [842]
    Getting value for element: server
    *** Requesting value for TAG server [repseikoapps2]
    Getting value for element: job
    *** Requesting value for Attribute job.type []
    Getting value for element: job
    *** Requesting value for Attribute job.queueType [past]
    Getting value for element: name
    *** Requesting value for TAG name [u02/app/dis/dev/reports/rdf/dsinvprt.rdf]
    Getting value for element: status
    *** Requesting value for Attribute status.code [4]
    Getting value for element: status
    *** Requesting value for TAG status [Finished successfully]
    Getting value for element: owner
    *** Requesting value for TAG owner [RWUser]
    Getting value for element: desType
    *** Requesting value for TAG desType [FILE]
    Getting value for element: desName
    *** Requesting value for TAG file [71106787.eps]
    Getting value for element: queued
    *** Requesting value for TAG queued [1/10/2004 15:02:18]
    Getting value for element: started
    *** Requesting value for TAG started [1/10/2004 15:02:18]
    Getting value for element: finished
    *** Requesting value for TAG finished [1/10/2004 15:02:18]
    Getting value for element: parentJob
    *** RUN REPORT BY URL - Processing finished
    JobID : 842
    StatusCode : 4
    StatusText : Finished successfully
    ================================================
    TimeStamp : 10/01/04 02:22 PM
    ================================================
    *** Length of Paramlist : 1
    OK : Parameter added : GATEWAY=http://seikoapps.seiko.com.au:7777/reports/rwservlet
    *** Length of Paramlist : 2
    OK : Parameter added : SERVER=repseikoapps2
    *** Length of Paramlist : 3
    OK : Parameter added : JOBID=842
    *** Length of Paramlist : 4
    OK : Parameter added : AUTHID=
    *** Building URL (showjobid)
    Added jobid to URL
    Added Server to URL
    Added statusformat to URL
    OK : URL built : http://seikoapps.seiko.com.au:7777/reports/rwservlet/showjobid842?Server=repseikoapps2&statusformat=xml
    *** Submitting HTTP Request
    *** using URL :http://seikoapps.seiko.com.au:7777/reports/rwservlet/showjobid842?Server=repseikoapps2&statusformat=xml
    OK : Request submitted - Return stream : <?xml version = '1.0' encoding = 'ISO-8859-1' standalone = 'yes'?>
    <serverQueues>
    <job id="842" queueType="past">
    <name>/u02/app/dis/dev/reports/rdf/dsinvprt.rdf</name>
    <type>report</type>
    <st
    OK : Request submitted - Length of stream : 678
    *** XML-Parsed - Following Structure discovered :
    *** Checking elements!
    serverQueues ()
    *** Checking attributes!
    job ()
    *** Checking attributes!
    __id = 842
    __queueType = past
    name (/u02/app/dis/dev/reports/rdf/dsinvprt.rdf)
    *** Checking attributes!
    type (report)
    *** Checking attributes!
    status (Finished successfully)
    *** Checking attributes!
    __code = 4
    owner (RWUser)
    *** Checking attributes!
    server (repseikoapps2)
    *** Checking attributes!
    destination ()
    *** Checking attributes!
    desType (FILE)
    *** Checking attributes!
    desFormat (unknown)
    *** Checking attributes!
    file (71106787.eps)
    *** Checking attributes!
    timingInfo ()
    *** Checking attributes!
    queued (1/10/2004 15:02:18)
    *** Checking attributes!
    started (1/10/2004 15:02:18)
    *** Checking attributes!
    finished (1/10/2004 15:02:18)
    *** Checking attributes!
    Getting value for element: job
    *** Requesting value for Attribute job.id [842]
    Getting value for element: server
    *** Requesting value for TAG server [repseikoapps2]
    Getting value for element: job
    *** Requesting value for Attribute job.type []
    Getting value for element: job
    *** Requesting value for Attribute job.queueType [past]
    Getting value for element: name
    *** Requesting value for TAG name [u02/app/dis/dev/reports/rdf/dsinvprt.rdf]
    Getting value for element: status
    *** Requesting value for Attribute status.code [4]
    Getting value for element: status
    *** Requesting value for TAG status [Finished successfully]
    Getting value for element: owner
    *** Requesting value for TAG owner [RWUser]
    Getting value for element: desType
    *** Requesting value for TAG desType [FILE]
    Getting value for element: desName
    *** Requesting value for TAG file [71106787.eps]
    Getting value for element: queued
    *** Requesting value for TAG queued [1/10/2004 15:02:18]
    Getting value for element: started
    *** Requesting value for TAG started [1/10/2004 15:02:18]
    Getting value for element: finished
    *** Requesting value for TAG finished [1/10/2004 15:02:18]
    Getting value for element: parentJob
    *** JOB STATUS - Processing finished
    JobID : 842
    StatusCode : 4
    StatusText : Finished successfully
    =============================================
    TimeStamp : 10/01/04 02:22 PM
    =============================================
    Can any one help me why the file is not created.
    Thanks
    Bain

    The file is created, but as an eps file (post script printer file). That is because you have not specified a desformat (e.g. PDF).

  • How to get Hierarchical XML File from a Database Join Query !

    Hi,
    How can i get a Hierarchical XML File from a Database Join Query ?
    Any join query returns repeated values as below:
    BD17:SQL>select d.dname, e.ename, e.sal
    2 from dept d
    3 natural join
    4 emp e
    5 /
    DNAME ENAME SAL
    ACCOUNTING CLARK 2450
    ACCOUNTING KING 5000
    ACCOUNTING MILLER 1300
    RESEARCH SMITH 800
    RESEARCH ADAMS 1100
    RESEARCH FORD 3000
    RESEARCH SCOTT 3000
    RESEARCH JONES 2975
    SALES ALLEN 1600
    SALES BLAKE 2850
    SALES MARTIN 1250
    SALES JAMES 950
    SALES TURNER 1500
    SALES WARD 1250
    14 rows selected.
    We tried use DBMS_XMLQUERY to generate a xml file, but it was unable to get xml in Hierarchical format.
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    - <ROWSET>
    - <ROW num="1">
    <DNAME>ACCOUNTING</DNAME>
    <ENAME>CLARK</ENAME>
    <SAL>2450</SAL>
    </ROW>
    - <ROW num="2">
    <DNAME>ACCOUNTING</DNAME>
    <ENAME>KING</ENAME>
    <SAL>5000</SAL>
    </ROW>
    - <ROW num="3">
    <DNAME>ACCOUNTING</DNAME>
    <ENAME>MILLER</ENAME>
    <SAL>1300</SAL>
    </ROW>
    - <ROW num="4">
    <DNAME>RESEARCH</DNAME>
    <ENAME>SMITH</ENAME>
    <SAL>800</SAL>
    </ROW>
    - <ROW num="5">
    <DNAME>RESEARCH</DNAME>
    <ENAME>ADAMS</ENAME>
    <SAL>1100</SAL>
    </ROW>
    - <ROW num="6">
    <DNAME>RESEARCH</DNAME>
    <ENAME>FORD</ENAME>
    <SAL>3000</SAL>
    </ROW>
    - <ROW num="7">
    <DNAME>RESEARCH</DNAME>
    <ENAME>SCOTT</ENAME>
    <SAL>3000</SAL>
    </ROW>
    - <ROW num="8">
    <DNAME>RESEARCH</DNAME>
    <ENAME>JONES</ENAME>
    <SAL>2975</SAL>
    </ROW>
    - <ROW num="9">
    <DNAME>SALES</DNAME>
    <ENAME>ALLEN</ENAME>
    <SAL>1600</SAL>
    </ROW>
    - <ROW num="10">
    <DNAME>SALES</DNAME>
    <ENAME>BLAKE</ENAME>
    <SAL>2850</SAL>
    </ROW>
    - <ROW num="11">
    <DNAME>SALES</DNAME>
    <ENAME>MARTIN</ENAME>
    <SAL>1250</SAL>
    </ROW>
    - <ROW num="12">
    <DNAME>SALES</DNAME>
    <ENAME>JAMES</ENAME>
    <SAL>950</SAL>
    </ROW>
    - <ROW num="13">
    <DNAME>SALES</DNAME>
    <ENAME>TURNER</ENAME>
    <SAL>1500</SAL>
    </ROW>
    - <ROW num="14">
    <DNAME>SALES</DNAME>
    <ENAME>WARD</ENAME>
    <SAL>1250</SAL>
    </ROW>
    </ROWSET>
    Thank you for some help.
    Nelson Alberti

    Hi,
    I wrote a general ABAP program which can be configured to grab contrent from an URL and post that content as a new PI message into the integration adapter .... from that point on normal PI configuration can be used to route it to anywhere ...
    It can be easily scheduled as a background job to grab content on a daily basis etc ...
    Regards,
    Steven

  • Downloading file from a database..

    Iam writing an application which downloads a file from the database.The file lists will be displayed for the user. When he clicks a particular file, he gets a window with open, save cancel options
    (i am using response.setHeader("Content-disposition","attachment; filename="+selectedfile);
         response.setContentType("application/octet-stream");)
    I am reading the file from the database and storing it in the client system and then reading it from the saved location to view the downloaded file. But when it is viewed, the file is being copied to the temporary internet files folder and from there it is shown. So the file is in the two locations at the client side...
    When user downloads it i am storing it in "c:/downloade/" directory and again reading from the c:/downloaded/" to display the file. But when I see the path of the file opened through its properties its showing the temporary internet file folder location..
    "C:\Documents and Settings\.....\Temporary Internet Files\Content.IE5\2RED0V4P\v[1].jpg".
    Please tell me is my procedure is correct, can we view it without downloading it to the client system. I am giving the code in my program..
    FileOutputStream fs=null;
                   FileInputStream fis=null;
                   Connection con=DBUtil.getConnection();
                   Statement st=con.createStatement();
                   response.setHeader("Content-disposition","attachment; filename="+selectedfile);
                   response.setContentType("application/octet-stream");
                   try
                        ResultSet rs=st.executeQuery("select DOCUMENT from md_documents where DOCNAME='"+selectedfile+"'");
                        fs=new FileOutputStream("C:/Documents and Settings/admin/Desktop/download/"+selectedfile);
                                            int n=0;
                        InputStream is=null;
                        while(rs.next())
                             is=rs.getBinaryStream(1);
                             int i=is.read();
                             while(i!=-1)
                                  fs.write(i);
                                  i=is.read();
                   }catch(Exception e){System.out.println("Cause-->"+e);b=false;}
                   BufferedInputStream bis = null;
                   BufferedOutputStream bos = null;
                   String fname="C:/Documents and Settings/admin/Desktop/download"+selectedfile;
                   try{
                        fis=new FileInputStream(new File("C:/Documents and Settings/admin/Desktop/download/"+selectedfile));
                   int length = fis.available();
                   bis = new BufferedInputStream(fis);
                   bos = new BufferedOutputStream(out);
                   byte[] buff = new byte[length];
                   int bytesRead;
                   while(-1 != (bytesRead = bis.read(buff, 0, buff.length))) {
                   bos.write(buff, 0, bytesRead);
                   }catch(Exception e){System.out.println("in reading "+ e);}
                   out.flush();
                   out.close();
                   con.close();
    Please suggest me the solution..even if we have to download it to the local system..how to give the path..plz help me.

    You can do this task using the packages provided to work in PSP pages. If you want I can guide step by step to this if you choose to do it with PSP pages.
    Joel PĂ©rez

  • Store and Display doc/pdf files in the database using Forms

    Hi all,
    How can i store and display doc/pdf files in the database using Forms 10g?.
    Arif

    How to get up and running with WebUtil 1.06 included with Oracle Developer Suite 10.1.2.0.2 on a win32 platform
    Solution
    Assuming a fresh "Complete" install of Oracle Developer Suite 10.1.2.0.2,
    here are steps to get a small test form running, using WebUtil 1.06.
    Note: [OraHome] is used as an alias for your real oDS ORACLE_HOME.
    Feel free to copy this note to a text editor, and do a global find/replace on
    [OraHome] with your actual value (no trailing slash). Then it is easy to
    copy/paste actual commands to be executed from the note copy.
    1) Download http://prdownloads.sourceforge.net/jacob-project/jacob_18.zip
      and extract to a temporary staging area. Do not attempt to use 1.7 or 1.9.
    2) Copy or move jacob.jar and jacob.dll
      [JacobStage] is the folder where you extracted Jacob, and will end in ...\jacob_18
         cd [JacobStage]
         copy jacob.jar [OraHome]\forms\java\.
         copy jacob.dll [OraHome]\forms\webutil\.
      The Jacob staging area is no longer needed, and may be deleted.
    3) Sign frmwebutil.jar and jacob.jar
      Open a DOS command prompt.
      Add [OraHome]\jdk\bin to the PATH:
         set PATH=[OraHome]\jdk\bin;%PATH%
      Sign the files, and check the output for success:
         [OraHome]\forms\webutil\sign_webutil [OraHome]\forms\java\frmwebutil.jar
         [OraHome]\forms\webutil\sign_webutil [OraHome]\forms\java\jacob.jar
    4) If you already have a schema in your RDBMS which contains the WebUtil stored code,
      you may skip this step. Otherwise,
      Create a schema to hold the WebUtil stored code, and privileges needed to
      connect and create a stored package. Schema name "WEBUTIL" is recommended
      for no reason other than consistency over the user base.
      Open [OraHome]\forms\create_webutil_db.sql in a text editor, and delete or comment
      out the EXIT statement, to be able to see whether the objects were created witout
      errors.
      Start SQL*Plus as SYSTEM, and issue:
         CREATE USER webutil IDENTIFIED BY [password]
         DEFAULT TABLESPACE users
         TEMPORARY TABLESPACE temp;
         GRANT CONNECT, CREATE PROCEDURE, CREATE PUBLIC SYNONYM TO webutil;
         CONNECT webutil/[password]@[connectstring]
         @[OraHome]\forms\create_webutil_db.sql
         -- Inspect SQL*Plus output for errors, and then
         CREATE PUBLIC SYNONYM webutil_db FOR webutil.webutil_db;
      Reconnect as SYSTEM, and issue:
         grant execute on webutil_db to public;
    5) Modify [OraHome]\forms\server\default.env, and append [OraHome]\jdk\jre\lib\rt.jar
      to the CLASSPATH entry.
    6) Start the OC4J instance
    7) Start Forms Builder and connect to a schema in the RDBMS used in step (4).
      Open webutil.pll, do a "Compile ALL" (shift-Control-K), and generate to PLX (Control-T).
      It is important to generate the PLX, to avoid the FRM-40039 discussed in
      Note 303682.1
      If the PLX is not generated, the Webutil.pll library would have to be attached with
      full path information to all forms wishing to use WebUtil. This is NOT recommended.
    8) Create a new FMB.
      Open webutil.olb, and Subclass (not Copy) the Webutil object to the form.
      There is no need to Subclass the WebutilConfig object.
      Attach the Webutil.pll Library, and remove the path.
      Add an ON-LOGON trigger with the code
             NULL;
      to avoid having to connect to an RDBMS (optional).
      Create a new button on a new canvas, with the code
             show_webutil_information (TRUE);
      in a WHEN-BUTTON-PRESSED trigger.
      Compile the FMB to FMX, after doing a Compile-All (Shift-Control-K).
    9) Under Edit->Preferences->Runtime in Forms Builder, click on "Reset to Default" if
      the "Application Server URL" is empty.
      Then append "?config=webutil" at the end, so you end up with a URL of the form
          http://server:port/forms/frmservlet?config=webutil
    10) Run your form.sarah

  • File.encoding in windows influence  by the locale

    How can I set the file.encoding in windows platform that will not be influence by the locale.
    For example, in the Control Panel->Regional Options the locale is set to Russian
    and what I get is that I use file.encoding Cp1251 even though I pass the parameter in the command line
    -Dfile.encoding=Cp1252 (I want to keep Cp1251,
    Cp1251 is US westen default and Cp1252 is Windows Cyrillic)
    I run java program to see what encoding I use
    D:\ProgramFiles\jdk1.3.1\bin\java -Dfile.encoding= Cp1252 TestEncodingThe locale in my pc is Russian and the result is:
    System.getProperty("file.encoding") == Cp1252
    Default ByteToChar Class == sun.io.ByteToCharCp1251
    Default CharToByte Class == sun.io.CharToByteCp1251
    Default CharacterEncoding == Cp1251
    OutputStreamWriter encoding == Cp1251
    InputStreamReader encoding == Cp1251
    TestEncoding.java
    import java.io.PrintStream;
    import java.io.ByteArrayOutputStream;
    import java.io.OutputStreamWriter;
    import java.io.InputStream;
    import java.io.ByteArrayInputStream;
    import java.io.InputStreamReader;
    class TestEncoding{
    public static void main(String[] args) {
    String encProperty = System.getProperty("file.encoding");
    System.out.println("System.getProperty(\"file.encoding\") == " + encProperty);
    String byteToCharClass = sun.io.ByteToCharConverter.getDefault().getClass().getName();
    System.out.println("Default ByteToChar Class == " + byteToCharClass);
    String charToByteClass = sun.io.CharToByteConverter.getDefault().getClass().getName();
    System.out.println("Default CharToByte Class == " + charToByteClass);
    String defaultCharset = sun.io.ByteToCharConverter.getDefault().getCharacterEncoding();
    System.out.println("Default CharacterEncoding == " + defaultCharset);
    ByteArrayOutputStream buf = new ByteArrayOutputStream(10);
    OutputStreamWriter writer = new OutputStreamWriter(buf);
    System.out.println("OutputStreamWriter encoding == " + writer.getEncoding());
    byte[] byteArray = new byte[10];
    InputStream inputStream = new ByteArrayInputStream(byteArray);
    InputStreamReader reader = new InputStreamReader(inputStream);
    System.out.println("InputStreamReader encoding == " + reader.getEncoding());

    What are you really trying to accomplish? Applications should avoid relying on undocumented or implementation dependent features, such as the file.encoding property and sun.* classes (see http://java.sun.com/products/jdk/faq/faq-sun-packages.html).
    On the other hand, there's plenty of documented public API that lets you work with specific character encodings. For example, you can specify the character encoding for conversion between byte arrays and String objects (see the String class specification) or when reading or writing files (see the InputStreamReader and OutputStreamWriter classes in java.io).
    The default encoding is needed by the Java runtime when accessing the Windows file system, for example file names, so changing it would likely result in erroneous behavior.
    Norbert Lindenberg

  • Upload pdf file in oracle database

    Hi Everyone,
    Can anybody describe me that how to upload/download pdf or doc file into oracle database using oracle form10g?
    Thanks in Advance.
    Baloch.

    Hello,
    The Webutil library has a FILE_TRANSFER package that includes functions to transfer file between the client machine, the Application Server and the Database.
    Francois

  • How to upload a Flat file into sap database if the file is in Appl'n Server

    Hello Sap Experts , Can you tel me
    " How to upload a Flat file into sap database if the file is in Application Server.
    what is Path for that ?
    Plz Tel Me its Urgent
    Thanks for all

    Hi,
    ABAP code for uploading a TAB delimited file into an internal table. See code below for structures.
    *& Report  ZUPLOADTAB                                                  *
    *& Example of Uploading tab delimited file                             *
    REPORT  zuploadtab                    .
    PARAMETERS: p_infile  LIKE rlgrap-filename
                            OBLIGATORY DEFAULT  '/usr/sap/'..
    DATA: ld_file LIKE rlgrap-filename.
    *Internal tabe to store upload data
    TYPES: BEGIN OF t_record,
        name1 like pa0002-VORNA,
        name2 like pa0002-name2,
        age   type i,
        END OF t_record.
    DATA: it_record TYPE STANDARD TABLE OF t_record INITIAL SIZE 0,
          wa_record TYPE t_record.
    *Text version of data table
    TYPES: begin of t_uploadtxt,
      name1(10) type c,
      name2(15) type c,
      age(5)  type c,
    end of t_uploadtxt.
    DATA: wa_uploadtxt TYPE t_uploadtxt.
    *String value to data in initially.
    DATA: wa_string(255) type c.
    constants: con_tab TYPE x VALUE '09'.
    *If you have Unicode check active in program attributes then you will
    *need to declare constants as follows:
    *class cl_abap_char_utilities definition load.
    *constants:
    *    con_tab  type c value cl_abap_char_utilities=>HORIZONTAL_TAB.
    *START-OF-SELECTION
    START-OF-SELECTION.
    ld_file = p_infile.
    OPEN DATASET ld_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc NE 0.
    ELSE.
      DO.
        CLEAR: wa_string, wa_uploadtxt.
        READ DATASET ld_file INTO wa_string.
        IF sy-subrc NE 0.
          EXIT.
        ELSE.
          SPLIT wa_string AT con_tab INTO wa_uploadtxt-name1
                                          wa_uploadtxt-name2
                                          wa_uploadtxt-age.
          MOVE-CORRESPONDING wa_uploadtxt TO wa_upload.
          APPEND wa_upload TO it_record.
        ENDIF.
      ENDDO.
      CLOSE DATASET ld_file.
    ENDIF.
    *END-OF-SELECTION
    END-OF-SELECTION.
    *!! Text data is now contained within the internal table IT_RECORD
    * Display report data for illustration purposes
      loop at it_record into wa_record.
        write:/     sy-vline,
               (10) wa_record-name1, sy-vline,
               (10) wa_record-name2, sy-vline,
               (10) wa_record-age, sy-vline.
      endloop.

  • How I can store Image file in a database

    Can any one how i can stored image file in a database and then by using same database how i can show in HTML page...(in a browser)

    This is not something that can be answered easily. There is quite alot of code involved....
    To get started I suggest you read up on the built-in package 'DBMS_LOB' from Oracle . Most of what you need you should find there.
    regards Dave.

  • Database package (stored procedure) seems to be hanging

    Hi,
    Our application seems to be hanging after executing a database package repeatedly. It happens after 5-10 invocations of the same package in a loop. Any ideas why this happens?
    Thanks in advance,

    Narayana,
    Your really going to have to give more detail than "it hangs and we don't know why". I always use a program called TOP SESSIONS in OEM to monitor a running process. It's a good place to start. If you don't have that query v$session and find the session that is running that package. Normally good coders have trace tables they write debug into (with a debug flag on every proc), so that when you run a procedure/function/package it begins recording that it's doing so you can monitor it's process. It sound like you don't have any kind of tracing going on so you have no idea what's happening. Even use DBMS_OUTPUT.PUT_LINE to show where it is at in the code.
    Also in regards to that top sessions program (OEM 1.6), there is one called lock manager. The newer OEM might have this I don't know, I don't use it. But the initial process your running might be opening locks and keeping them open, thus other packages fire and are still waiting for the first one to let go. Are you killing the first session BEFORE firing off the next?
    Try and get some monitoring tools, many are free to download like Oracle's OEM, so you can monitor what's going on. However but you really need to record some kind of trace in your code so when it runs you can see what step it is at when it does hang. Also check for TRACE files that progress might be making and the alert log as well (both on the server's operating system).
    Hope this helps a little.
    Tyler D.

  • Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the rows? Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the records?
    Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    The Oracle documentation has a good overview of the options available
    Generating XML Data from the Database
    Without knowing your version, I just picked 11.2, so you made need to look for that chapter in the documentation for your version to find applicable information.
    You can also find some information in XML DB FAQ

  • Store PDF File in Oracle database 10g

    Hi all,
    I want to store PDF File in Oracle database 10g,
    and then I want to access the pdf file using Oracle Developer 6i
    can anyone tell me how to do this,
    thanks in advance.

    This question has already been posted a lot of times.....
    See the following:
    http://forums.oracle.com/forums/search.jspa?threadID=&q=pdf+file&objID=f82&dateRange=lastyear&userID=&numResults=15
    Greetings,
    Sim

Maybe you are looking for

  • Installing Adobe Photoshop CC / Updade or reinstall Photoshop CS6

    I installed now Photoshop CC on my MacBook too and registered succesfully with my Adobe ID. But now, when I want to start Photoshop CC, it asks me for a serial number or gives me the only other possibilty to use Photoshop CC for 30 days to test it. I

  • Searching in HTML-formatted CLOBs

    Me and my colleagues are designing a database where some HTML documents have to be saved. The two obvious options for that are : 1. Storing the HTML in CLOB fields 2. Saving HTML files on the server and storing only the filenames in the database I wo

  • Study material for 1Z0-007 or 1Z0-001

    Hi Does anyone provide me with study material( PDF or PPT) for 1Z0-007 introduction to oracle 9i Or 1Z0-001 introduction to oracle : SQL and PL/SQL Thanks

  • Error in downloading os x maverick

    unable to upgrade to OS X MAVERICKS. msg : An error has occured. download button is greyed out with no label

  • Text exported From After Effects Troubles

    I made titles in After Effects CS3 exported them and then imported them in Final Cut Express. When I put them in the sequence they are pixelated and fuzzy looking. Does anyone know what I have done wrong? I tried changing all the different settings i