Calling Corba Java from PLSQL

Hi,
My question is about calling java functions from PLSQL. What we have is in-house developed java classes registered at the TAO CORBA service on Unix platform. We developed a PLSQL package that calls other PLSQL functions and procedures without problem. We also need to call Java functions registered at the CORBA service. I know that calling standard Java functions is not problem via loading with loadjava and publishing as PLSQL procedure and functions. However, I found that CORBA is no longer supported starting from Oracle 9g r2. Still, I wonder wether there is a way to call these java functions registered at CORBA without loading and publishing? Any help will be greatly appreciated.
Thanx in advance,
Sincerely,
Asaf
Software Architect

Hi,
I would just like to mention that we decided to utilize TCP sockets in PLSQL utilizing the UTL_TCP package. Socket interface is also implemented at the Java module and hence we can call the related the interface functions via UTL_TCP socket interface. I hope this might help those who face a similar problem.
Sincerely
Asaf

Similar Messages

  • Oracle BI 11.1.1.7.1: Calling BI webservices from Plsql Procedure: ORA-29532: Java call terminated by uncaught Java exception: java.lang.NoClassDefFoundError

    Hi,
         I have a requirement of calling BI webservices from Plsql stored procedure. I generated all my wsdl java classes and loaded them into the database. However, when I tried to call one of my java class using stored procedure, it is giving me"ORA-29532: Java call terminated by uncaught Java exception: java.lang.NoClassDefFoundError".
    *Cause:    A Java exception or error was signaled and could not be
               resolved by the Java code.
    *Action:   Modify Java code, if this behavior is not intended.
    But all my dependency classes are present in database as java class objects and are valid. Can some one help me out of this?

    Stiphane,
    You can look in USER_ERRORS to see if there's anything more specific reported by the compiler. But, it could also be the case that everything's OK (oddly enough). I loaded the JavaMail API in an 8.1.6 database and also got bytecode verifier errors, but it ran fine. Here are the errors I got when loading Sun's activation.jar, which ended up not being a problem:
    ORA-29552: verification warning: at offset 12 of <init> void (java.lang.String, java.lang.String) cannot access class$java$io$InputStream
    verifier is replacing bytecode at <init> void (java.lang.String, java.lang.String):12 by a throw at offset 18 of <init> void (java.lang.String, java.lang.String) cannot access class$java$io$InputStream
    verifier is replacing bytecode at <init> void (java.lang.String, java.lang.String):18 by a throw at offset 30 of <init> void (java.lang.String, java.lang.String) cannot access class$java$io$InputStream
    verifier is replacing bytecode at <init> void (java.lang.String, java.lang.String):30 by a throw
    Hope this helps,
    -Dan
    http://www.compuware.com/products/devpartner/db/oracle_debug.htm
    Debug PL/SQL and Java in the Oracle Database

  • Calling jsp page from plsql

    Please help me to the following
    How to Call jsp page from plsql??
    Please its urgent
    Edited by: 883730 on Mar 19, 2012 12:05 AM

    The best approach would be to change the behavior of your site so that it includes index.jsp as one of the default files. Typically that is done using the upper-level control files of the site. Here's a link from Sun that describes their approach.
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/WebApp4.html
    Actually, you don't say what type of webserver you're using, so it's really hard to guess. But if you were using an Apache webserver, you might want to review the "DirectoryIndex" directive here...
    http://httpd.apache.org/docs/2.2/mod/mod_dir.html
    In fact, if you were using Apache and didn't want to do that, you could do a redirect to another page using the "redirect" directive in the webserver control files as described here:
    http://httpd.apache.org/docs/2.1/en/mod/mod_alias.html#redirect

  • Calling WebAS Java from Excel Macro

    Hi,
    somebody told me there were a way to call WebAS Java from an Excel Macro and make a login into SAP using a real existing user (not a technical user). Does anybody know where to find documentation about this or how to get this accomplished?
    Thanks, Oliver Plohmann

    Hi,
    Have a look at
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnofftalk/html/office09062001.asp
    Eddy

  • How to call crystal report from plsql

    How to call crystal report from plsql?

    http://asktom.oracle.com/pls/ask/f?p=4950:8:14685899341865976974::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:952229840241,

  • Calling java from plsql

    is it possible to call an java class stored on OS(unix/linux) from plsql ..does this java class need to be in database (RDBMS) or can plsql make a call at the OS level??

    Hi Justin,
    I have a similar requirement where I need to call a java method from PL/SQL code.
    Basically we are developing an application using Oracle Apex where we pass the encrypted cookie content to this java method as a parameter and it returns the decrypted cookie content. Using the decrypted cookie info I would handle the authorization in my Apex application.
    My company has standardized the cookie encryption/decryption method and thats what the security team provided me with 2 jar files which I am supposed to setup in class path. In one of this .jar files there is a .class file called GateKeeper.class.The whole cookie decryption code is in a method called 'decrypt_cookie' in the class file. Security team has provided me a sample call to this method using java as below :
    <%@ page language="java" import="GateKeeper.*, java.util.*, java.io.*, java.net.*"%> …
    String retString = GateKeeper.decrypt_cookie(secCookie);
    All I need to do is call this piece of code from PL/SQL by passing the cookie value as a parameter, but not sure how to do it.
    Following is the code I am using to capture cookie values coming from the browser.
    DECLARE
       c     owa_cookie.cookie;
    BEGIN
       c := owa_cookie.get ('secCookie');
       :P101_TXT_BOX := c.vals (1);
    EXCEPTION
       WHEN OTHERS
       THEN
         NULL;
    END;Can you explain what you mean by your point (2) "Java code can be declared as an external procedure in Oracle".
    I am thinking for my situation your point (3) can be one of the solutions where I would load a java class into database which in turn would call GateKeeper.
    Please suggest.
    Thanks in advance.
    -Raj.

  • Calling perl script from PLSQL

    Hi All,
    I have created Java stored procedure and oracle function to execute the os commnad, this works fine for calling batch scripts but when i used same function to call perl script,
    like how we call in batch script
    perl <script name> the sql gets hanged.
    Is it possible to call perl like this?
    or is their any other way to call from plsql
    Thanks Chandra

    Are you able to run that perl script at DOS command line?
    Did you call the perl script directly from the java proc or you put the perl command line in a DOS .BAT scirpt and called that from the java proc?

  • Calling Web Service from PLSQL. Does anyone do this regularly?

    I grabbed the demo_soap package that is available on both metalink and on the regular oracle site, to try calling a web service from plsql to return the xml. I've had minor success, although I get an ORA600 error , for which I've opened up a TAR. However, the first reply was the I was hitting a bug (db ver. 9206) that had to do with getting 100m in xml in a response. I'm nowhere near that size, and the largest xml response I've been able to generate from the service was 400k (k not m). It doesn't seem that huge. Does anyone work with calling a web service from plsql? Have they had success?
    Thanks

    Well, you should first test if your webservice is reachable with a simple WS - Client or a Browser - Plugin, then verify the respones of the web service and after that you can take further investigations on your problem domain. The error - message refers to a line in your function, obviously, but I can't see which line and because there is more than one call to sys.utl_dbws I don't see at what point the script fails. NULL - Pointer - Execptions usually indicate that a method was invoked on a variable which should contain an object reference but is NULL.

  • Call WD Java from WD ABAP

    Hi ,
    My requirement is to call WD java in portal from WD ABAP .
    I Searched and found it is possible by using PCD Path but i am not able to do .
    I tried it and now called application is opening up but full portal opens up in a separate browser , i want only that Iview should open in same browser.
    CALL METHOD LR_PORT_MANAGER->NAVIGATE_ABSOLUTE
        EXPORTING
          NAVIGATION_TARGET   = TARGET
          NAVIGATION_MODE     = MODE.
    Regards
    Nikhil Arya.

    Hi ,
    You can call by below code :
    CALL METHOD lo_portal_manager->NAVIGATE_ABSOLUTE
      EXPORTING
        "NAVIGATION_TARGET   = 'ROLES://portal_content/****''
    Here in Naviagation_Target, you need to give the WDJ iview PCD path with prefix ROLES:// as shown above..
    - Vasu

  • How to call OAF page from plsql

    Hi OAF Guru's,
    I have a requirement to call a OAF page from a plsql procedure/function, I know how to call procedure/function from OAF pages, but I don't have any idea about how to call a OAF page from plsql.
    Any help is appreciated.
    Thanks in Advance.
    Raja.

    Hi,
    What is your exact requirement. Why do you want to call a OA page from PL/SQL. Please share your requirement clearly.
    HTH,
    Syed.

  • Execute immediate issue while calling a procedure from plsql block

    Hi all,
    I have the following simple code ,my execute immediate is not working(I am pasting the error below as well)
    CREATE OR REPLACE PROCEDURE CALL_RAHUL_PROCEDURES
    AS
    strng varchar2(1000);
    BEGIN
    for i in (select proc_name,flag,id from rahul_procedures order by id)
    loop
    if (i.flag = 'Y')
    then
    strng := 'exec '||i.proc_name||'(''rahul'')';
    dbms_output.put_line(strng);
    execute immediate strng;
    end if;
    end loop;
    END CALL_RAHUL_PROCEDURES;
    Error:
    Connecting to the database INQDWD.
    ORA-00900: invalid SQL statement
    ORA-06512: at "ETLADMIN.CALL_RAHUL_PROCEDURES", line 17
    ORA-06512: at line 2
    exec RAHUL_HELLO_WORLD2('rahul');
    Process exited.
    Disconnecting from the database INQDWD.
    data in rahul_procedures table :
    Proc_name flag Id
    RAHUL_HELLO_WORLD     N     1
    RAHUL_HELLO_WORLD2     Y     2
    RAHUL_HELLO_WORLD     N     3
    RAHUL_HELLO_WORLD3     N     4
    please help.
    Regards
    Rahul

    Mac_Freak_Rahul wrote:
    Well I have to call 26 procedures one by one and the names of the procedures would be in a table'rahul_procedures' Which is 100% wrong.
    Data is stored in tables, program code is stored in procedures or view defintions.
    http://en.wikipedia.org/wiki/Data_%28computing%29
    >
    Data vs programs
    Typically, different files are used to store programs vs data. Executable files contain programs; all other files are data files.
    >
    So you have just violated the primary distinction between data and program code.
    I dont find anything strange in my question,Only because you do not appear to know what you are doing or the difference between data and program code.
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:1943344500346351703
    >
    ugh, what an ugly "design". I can see your life will be full of performance issues, strange 'bugs', and other unpleasant side effects. I mean, it all looks "so cool", but it'll be a nightmare to maintain and enhance.
    but then you have the issue of binds, which will be intractable. You'd have to know the binds at compile time, but you have hidden all of your sql in a magic generic table - so you cannot possibly know your binds at compile time.
    I would suggest you discard all of this code (I am DEAD SERIOUS) and start over. This is a bad idea from the get go. Or at least do me a favor and do not use plsql (you make it look like a good database implementation, but it isn't)
    The objective here is to store SQL Statements in a Table(a sql repository) and just call the required SQL from the application using the sqlid using the sql_execute procedure. ...
    CHANGE YOUR OBJECTIVE.
    How about this for a good objective:
    the objective here is to store sql statement in a plsql routine (a sql repository, you call a procedure and we run sql) and just call the required sql form the applicatoin using the STORED PROCEDURE
    sorry, can I think of hacks to get you going? yes, application contexts come to mind - a fixed number of binds comes to mind. Am I going to work them out? No - it is the wrong way to approach a database application.

  • Calling external Java from ABAP using JCo?

    Does anyone know if one can use JCo to write a server application that can be called from ABAP.
    We are presently using JCo to communicate from Java to SAP.
    But we need to call an external Java program from within ABAP.
    Is this possible?
    Thanks for any input.
    Fred

    Hi Gregor,
    I was hoping you would reply to this -- these posted messages had been here for quite sometime now.
    Anyway, here's the case. Our Basis team is installing the JCo in our SAP development server. This is our first time to implement this technology, so no one has a clue at all.
    Got a couple of questions for you...
    1. What do we need the JDK for? Is it mainly for editing, running, and compiling java files (e.g. Example5.java)?
    2. Does the JDK need to be installed at the SAP server as well? Or it doesn't matter, as long as the java files will be accessible from where it was installed at?
    Thanks for any response!

  • Call Proxy Java from Stores Procedures

    Hi.
    I'm starting with XI and I need know how call a Proxy Java (EJB) from store procedure (oracle).
    Thank's

    Hi,
    Following weblogs will explain how to configure and call java proxy.
    /people/rashmi.ramalingam2/blog/2005/06/25/an-illustration-of-java-server-proxy - Java Server Proxy
    /people/prasad.ulagappan2/blog/2005/06/27/asynchronous-inbound-java-proxy - Inbound Java Proxy
    Java Proxy-
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d
    Rich set of Demos for proxy-
    https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/110ff05d-0501-0010-a19d-958247c9f798#xi [original link is broken]
    Thanks,
    Prateek

  • Calling web service from PLSQL

    Hi,
    Below is the code
    Not able to call the webservice
    soap_request:= '<?xml version = "1.0" encoding = "UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <SOAP-ENV:Body>
    <impl:soapCheckResponse1 xmlns:impl="http://isportal-qa.iss.net/exportcompliancemanager/services/ExportCheckService"> SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <FirstName xsi:type="xsd:string">saddam</FirstName>
    <LastName xsi:type="xsd:string">hussein</LastName>
    <companyName xsi:type="xsd:string">samueladams</companyName>
    <address1 xsi:type="xsd:string">123 APT</address1>
    <address3 xsi:type="xsd:string">Atlanta</address3>
    <city xsi:type="xsd:string">uk</city>
         <stateOrRegion xsi:type="xsd:string">GA</stateOrRegion>
         <postalCode xsi:type="xsd:string">30338</postalCode>
         <email xsi:type="xsd:string">sj@samueladams</email>
         <isoCountryCode xsi:type="xsd:string">US</isoCountryCode>
         <performGovCheck xsi:type="xsd:boolean">True</performGovCheck>
         <screeningLevelBasedOnCountry xsi:type="xsd:boolean">True</screeningLevelBasedOnCountry>          
    </impl:soapCheckResponse1>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Error i am getting
    <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultco
    lns:ns1="http://xml.apache.org/axis/">ns1:Client</faultcode><faultstring>No such operation 'soapCheckResponse1'</faultstring><detail><ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">atlcmsispq02.iss.net</ns2:hostname></detail></soapenv:Fault></s
    v:Body></soapenv:Envelope>
    http_resp.status_code is :500
    http_resp.reason_phrase is :Internal Server Error
    http_resp.http_version is :HTTP/1.1
    http_resp.private_hndl is :0
    <?xml version="1.0" encoding="UTF-8" ?>
    - <wsdl:definitions targetNamespace="http://isportal-qa.iss.net/exportcompliancemanager/services/ExportCheckService" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://isportal-qa.iss.net/exportcompliancemanager/services/ExportCheckService" xmlns:intf="http://isportal-qa.iss.net/exportcompliancemanager/services/ExportCheckService" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    - <!--
    WSDL created by Apache Axis version: 1.3
    Built on Oct 05, 2005 (05:23:37 EDT)
    -->
    - <wsdl:message name="soapCheckResponse1">
    <wsdl:part name="soapCheckReturn" type="soapenc:string" />
    </wsdl:message>
    - <wsdl:message name="soapCheckRequest1">
    <wsdl:part name="firstName" type="soapenc:string" />
    <wsdl:part name="lastName" type="soapenc:string" />
    <wsdl:part name="companyName" type="soapenc:string" />
    <wsdl:part name="address1" type="soapenc:string" />
    <wsdl:part name="address2" type="soapenc:string" />
    <wsdl:part name="address3" type="soapenc:string" />
    <wsdl:part name="city" type="soapenc:string" />
    <wsdl:part name="stateOrRegion" type="soapenc:string" />
    <wsdl:part name="postalCode" type="soapenc:string" />
    <wsdl:part name="email" type="soapenc:string" />
    <wsdl:part name="phone" type="soapenc:string" />
    <wsdl:part name="isoCountryCode" type="soapenc:string" />
    <wsdl:part name="endUserId" type="soapenc:string" />
    <wsdl:part name="endUserIP" type="soapenc:string" />
    <wsdl:part name="endUserSession" type="soapenc:string" />
    <wsdl:part name="performGovCheck" type="xsd:boolean" />
    <wsdl:part name="sendEmailNotification" type="xsd:boolean" />
    <wsdl:part name="screeningLevelBasedOnSuppliedCountryCode" type="xsd:boolean" />
    <wsdl:part name="screeningLevelBasedOnEndUserIP" type="xsd:boolean" />
    <wsdl:part name="soundexMatch" type="xsd:boolean" />
    </wsdl:message>
    - <wsdl:message name="soapCheckResponse">
    <wsdl:part name="soapCheckReturn" type="soapenc:string" />
    </wsdl:message>
    - <wsdl:message name="soapCheckRequest">
    <wsdl:part name="firstName" type="soapenc:string" />
    <wsdl:part name="lastName" type="soapenc:string" />
    <wsdl:part name="companyName" type="soapenc:string" />
    <wsdl:part name="address1" type="soapenc:string" />
    <wsdl:part name="address2" type="soapenc:string" />
    <wsdl:part name="address3" type="soapenc:string" />
    <wsdl:part name="city" type="soapenc:string" />
    <wsdl:part name="stateOrRegion" type="soapenc:string" />
    <wsdl:part name="postalCode" type="soapenc:string" />
    <wsdl:part name="email" type="soapenc:string" />
    <wsdl:part name="phone" type="soapenc:string" />
    <wsdl:part name="isoCountryCode" type="soapenc:string" />
    <wsdl:part name="endUserId" type="soapenc:string" />
    <wsdl:part name="endUserIP" type="soapenc:string" />
    <wsdl:part name="endUserSession" type="soapenc:string" />
    <wsdl:part name="performGovCheck" type="xsd:boolean" />
    <wsdl:part name="sendEmailNotification" type="xsd:boolean" />
    <wsdl:part name="screeningLevelBasedOnEndUserIP" type="xsd:boolean" />
    <wsdl:part name="soundexMatch" type="xsd:boolean" />
    </wsdl:message>
    - <wsdl:portType name="ExportCheckServiceImpl">
    - <wsdl:operation name="soapCheck" parameterOrder="firstName lastName companyName address1 address2 address3 city stateOrRegion postalCode email phone isoCountryCode endUserId endUserIP endUserSession performGovCheck sendEmailNotification screeningLevelBasedOnEndUserIP soundexMatch">
    <wsdl:input message="impl:soapCheckRequest" name="soapCheckRequest" />
    <wsdl:output message="impl:soapCheckResponse" name="soapCheckResponse" />
    </wsdl:operation>
    - <wsdl:operation name="soapCheck" parameterOrder="firstName lastName companyName address1 address2 address3 city stateOrRegion postalCode email phone isoCountryCode endUserId endUserIP endUserSession performGovCheck sendEmailNotification screeningLevelBasedOnSuppliedCountryCode screeningLevelBasedOnEndUserIP soundexMatch">
    <wsdl:input message="impl:soapCheckRequest1" name="soapCheckRequest1" />
    <wsdl:output message="impl:soapCheckResponse1" name="soapCheckResponse1" />
    </wsdl:operation>
    </wsdl:portType>
    - <wsdl:binding name="ExportCheckServiceSoapBinding" type="impl:ExportCheckServiceImpl">
    <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
    - <wsdl:operation name="soapCheck">
    <wsdlsoap:operation soapAction="" />
    - <wsdl:input name="soapCheckRequest">
    <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://ws.exportmgr.iss.net" use="encoded" />
    </wsdl:input>
    - <wsdl:output name="soapCheckResponse">
    <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://isportal-qa.iss.net/exportcompliancemanager/services/ExportCheckService" use="encoded" />
    </wsdl:output>
    </wsdl:operation>
    - <wsdl:operation name="soapCheck">
    <wsdlsoap:operation soapAction="" />
    - <wsdl:input name="soapCheckRequest1">
    <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://ws.exportmgr.iss.net" use="encoded" />
    </wsdl:input>
    - <wsdl:output name="soapCheckResponse1">
    <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://isportal-qa.iss.net/exportcompliancemanager/services/ExportCheckService" use="encoded" />
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    - <wsdl:service name="ExportCheckServiceImplService">
    - <wsdl:port binding="impl:ExportCheckServiceSoapBinding" name="ExportCheckService">
    <wsdlsoap:address location="https://isportal-qa.iss.net/exportcompliancemanager/services/ExportCheckService" />
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    Thanks,
    Srikanth

    Hi,
    can you tell in structured & small summary, what you problem is?
    I found something like
    </soapenv:Fault></soapenv:Envelope> http_resp.status_code is :500 http_resp.reason_phrase is :Internal Server Error http_resp.http_version is :HTTP/1.1 http_resp.private_hndl is :0 ----------------
    in your posting...
    What plsql package do you use to call the webservice?
    Is it a oracle iAS webservice or something from another platform...

  • Call sql file from plsql

    Hello,
    I am stuck for many days in this issue. Hope someone helps me out.
    I am using Oracle 11.
    I am writing an utility of Purging the data from the database base on certain criteria.
    We don't have physical(actual) partitions present on our system(since we are not using enterprise edition).
    We have 57 tables representing 57 partitions. Then we are creating a view of all these 57 tables -
    CREATE or REPLACE VIEW MY_VIEW AS
    select [column_names] from table1
    UNION ALL
    select [column_names] from table2
    UNION ALL
    select [column_names] from table3
    UNION ALL
    select [column_names] from table57
    This upper query is saved in the 'body' of user_views.
    Now when a user wants to delete a partition--
    -I am reading this query body in .sql file.
    -Editing the .sql file ie removing the unwanted 'select * from tablen'
    -Dropping the View.
    -Recreating the view from the edited .sql file.
    The issue is in creating the view on the fly from the procedure--
    - I cant do EXECUTE IMMEDIATE 'CREATE VIEW...' and 'DBMS_SQL.PARSE' as the query body is longer than 32767 characters.
    So i chose the option to do file write. In the file I write the VIEW query and then I want to create the View from this file.
    Now i am not able to call the .sql which contains
    CREATE OR REPLACE VIEW MYVIEW AS
    select...
    UNION ALL
    select...
    select...
    The character length of this file is around 90000.
    Please guide me in this issue.
    Any new idea to manage the very large View in runtime is also welcome...
    Thank You in advance
    Vaib
    arge View in runtime is also welcome...
    Thank You in advance
    Vaib

    As it's 11g, even better would be to use EXECUTE IMMEDIATE as Solomon suggested. It can handle CLOBs.
    If it were 10g, then fair enough use the DBMS_SQL package with something like...
    SQL> ed
    Wrote file afiedt.buf
      1  declare
      2    v_large_sql  CLOB;
      3    v_num        NUMBER := 0;
      4    v_upperbound NUMBER;
      5    v_sql        DBMS_SQL.VARCHAR2S;
      6    v_cur        INTEGER;
      7    v_ret        NUMBER;
      8  begin
      9    -- Build a very large SQL statement in the CLOB
    10    LOOP
    11      IF v_num = 0 THEN
    12        v_large_sql := 'CREATE VIEW vw_tmp AS SELECT ''The number of this row is : '||to_char(v_num,'fm0999999')||''' as col1 FROM DUAL';
    13      ELSE
    14        v_large_sql := v_large_sql || ' UNION ALL SELECT ''The number of this row is : '||to_char(v_num,'fm0999999')||''' as col1 FROM DUAL';
    15      END IF;
    16      v_num := v_num + 1;
    17      EXIT WHEN DBMS_LOB.GETLENGTH(v_large_sql) > 40000 OR v_num > 800;
    18    END LOOP;
    19    DBMS_OUTPUT.PUT_LINE('Length:'||DBMS_LOB.GETLENGTH(v_large_sql));
    20    DBMS_OUTPUT.PUT_LINE('Num:'||v_num);
    21    --
    22    -- Now split that large SQL statement into chunks of 256 characters and put in VARCHAR2S array
    23    v_upperbound := CEIL(DBMS_LOB.GETLENGTH(v_large_sql)/256);
    24    FOR i IN 1..v_upperbound
    25    LOOP
    26      v_sql(i) := DBMS_LOB.SUBSTR(v_large_sql
    27                                 ,256 -- amount
    28                                 ,((i-1)*256)+1 -- offset
    29                                 );
    30    END LOOP;
    31    --
    32    -- Now parse and execute the SQL statement
    33    v_cur := DBMS_SQL.OPEN_CURSOR;
    34    DBMS_SQL.PARSE(v_cur, v_sql, 1, v_upperbound, FALSE, DBMS_SQL.NATIVE);
    35    v_ret := DBMS_SQL.EXECUTE(v_cur);
    36    DBMS_OUTPUT.PUT_LINE('View Created');
    37* end;
    SQL> /
    Length:40015
    Num:548
    View Created
    PL/SQL procedure successfully completed.
    SQL> select count(*) from vw_tmp;
      COUNT(*)
           548
    SQL> select * from vw_tmp where rownum <= 10;
    COL1
    The number of this row is : 0000000
    The number of this row is : 0000001
    The number of this row is : 0000002
    The number of this row is : 0000003
    The number of this row is : 0000004
    The number of this row is : 0000005
    The number of this row is : 0000006
    The number of this row is : 0000007
    The number of this row is : 0000008
    The number of this row is : 0000009
    10 rows selected.
    SQL>

Maybe you are looking for

  • HELP....Error Message...Photoshop.exe-Entry Point not found

    Hello I bought the Adobe Photoshop cc and it has been working great untill this morning when i tried to open it, i got this error message: Photoshop.exe-Entry point not found The procedure entry point ?terminate@struturalimageeditingYAXXZ Could not b

  • Change color of compoundPathItems created by converting Text to Paths using createOutline()

    I used createOutline() to convert Text to Paths. However, the return is a GroupItem and I had difficulty in changing its stroke and fill colors. Here is my script: var docActive = app.documents.add(); var textFrame = docActive.pathItems.rectangle( 0,

  • The FREETALK Connect•Me Home Phone Adapter for Sky...

    Hi all, I am seriously considering dropping my landline since I mostly if not only uses my iPhone as my primary device for calls. The problem I have is an alarm system is connected to my land line and requires a way to call the alarm centre in case o

  • JDeveloper 11.1.1.3: Best Practice for Checkboxes in Table

    Hi there, I'm having problems with checkboxes inside the table component. Can someone please fill me in as to what the best practice is to use checkboxes inside a table ? In the database, we are storing values Y and N. Thanks, Mark

  • SXMB_MONI: Message status: Log Version ?

    Hi, We have a couple synchronous messages that have the "Log Version" status in the integration engine (ABAP stack – tcode: sxmb_moni).  It is a white circle icon. If we click on the legend (in sxmb_moni), we do not see this status … (we see all the