7Zip LZMA in PLSQL Help

Dear all,
I need help to use the JAVA component of the LZMA SDK from PL/SQL (Oracle 10gR2 database). Can someone be kind enough to point me the correct direction with some basic step by step instructions.
Thanks.
Regards,
Kueh

Hello Kueh,
have you tried the JVM forum?
Java in the Oracle Database
Regards
Marcus

Similar Messages

  • Simple query help in plsql - help

    oracle version : 10gR2
    indexes are created on each column, is there anyway to make them used while searching for the records rewriting the following query to test given data in any case (lower ,upper)...
    SELECT * FROM TX_USERS
    WHERE userid like decode( UPPER('Md'),null,userid, UPPER( 'MD')||'%' ) and
    first_name like decode(UPPER('Na'),null, first_name, UPPER( 'NA')||'%' ) AND
    LAST_name like decode(('Ra'),null, LAST_name, UPPER('RA')||'%' )
    -- list goes on..
    UPPER('Md') -- is the input values comes from form.. for example i_userid.. this query works fine .. is there anyway of getting indices used without using functional based indexing when we rewrite query like shown below??? input parameter valeus can be anything and table column values can be anything i.e. anycase (upper or lower or mix of both)..
    actual code would be
    upper(userid) like decode( UPPER(i_userid),null,userid, UPPER( i_userid)||'%' ) and
    upper(first_name) like decode(UPPER(i_first_name),null, first_name, UPPER( i_firstname)||'%' )
    if we put upper(userid) then index not used ..........anyway of rewriting using it or any other technique... or any other new way

    No, its not working... see the below..
    create table test5 as select owner, object_name, subobject_name, object_type from all_objects;
    create unique index test5_i5 on test5 (owner, object_name, subobject_name, object_type);
    select * from test5 where owner like 'SCOTT' AND OBJECT_NAME LIKE 'EMP';
    INDEX RANGE SCAN| TEST5_I5 | 4 | 248 | 1 (0)| 00:00:01 |
    but when i use
    select * from test5 where UPPER(OWNER) LIKE 'SCOTT%' AND UPPER(OBJECT_NAME) LIKE 'EMP%';
    TABLE ACCESS FULL| TEST5 | 3 | 186 | 65 (5)| 00:00:01 |
    i know it goes to full scan, i want to know is there any other way to make index used .. without using functional based indx...
    the reason is user can search any one of the column data and data is mixed case in table columns and/or conditions specified in query..
    .. any help...
    not sure how to use 'NLS_SORT=BINARY_CI' on multicolumn index and enable index used in search operation.. ANY OTHER WAY OF DOING THIS...
    requirements is
    mixed (lower,upper) data stored in db columns and mixed case data searched, 5 columns specified in where condition, data may be provided in search conditon to one or two or to all 5 columns in mixed case... matching records need to be returned.. suggest a good way of doing this... thnx

  • Need SQL/PLSQL Help

    Hi, I have a table with 4 cols
    emplid(varchar), effdt(date), action(varchar)
    i will call a function where I will pass these cols(from this table) as the parameters and the function will return a value of true if maximum date asscociated with that empid is of only 1 row.
    for example
    tbl1
    empid effdt action
    1 10-Apr
    1 10-Apr
    1 11-Apr
    2 10-Apr
    2 11-Apr
    3 10-Apr
    3 11-Apr A
    3 11-Apr B
    if the function is called for empid 1, the maximum date is 11Apr. so for selection(1,10-Apr) the function return value will be false, but for (1,11-April) the value will be true.
    Similarly for selection (2,10-Apr) the return value will be false and (2,11-Apr) value will be true.
    the problem comes when we have more than 1 row for max dat
    for emplid 3 we have two rows with max date 11-april.. when there is a tie like this then check for action column..
    for selection
    (3,10-April) - Return value false
    (3,11-April,'A') - Return value false
    (3,11-April,'B') - Return value true
    I am unable to get the logic to place this one.. any logical help or pseudo code.
    Ash

    Hi,
    What do you want is called overload function, you must used package for define two functions ( same function with differentes arguments).
    I just modified Justin function and put it in package.
    Regards salim.
    --package specification
    create or replace package pkg_function as
    FUNCTION some_function( p_empid IN NUMBER, p_effdt IN DATE)
      RETURN BOOLEAN;
    FUNCTION some_function( p_empid IN NUMBER, p_effdt IN DATE, p_action in varchar2 )
      RETURN BOOLEAN;
    end;
    --package body
    create or replace body  package pkg_function as
    CREATE FUNCTION some_function( p_empid IN NUMBER, p_effdt IN DATE)
      RETURN BOOLEAN
    IS
      l_max_effdt DATE;
    BEGIN
      SELECT MAX( effdt )
        INTO l_max_effdt
        FROM your_table
       WHERE empid = p_empid
       group by empid ;
      IF( l_max_effdt = p_effdt )
      THEN
        RETURN TRUE;
      ELSE
        RETURN FALSE;
      END IF;
    EXCEPTION
      WHEN no_data_found
      THEN
        RETURN FALSE;
    END;
    CREATE FUNCTION some_function( p_empid IN NUMBER, p_effdt IN DATE, p_action in varchar2 )
      RETURN BOOLEAN
    IS
      l_max_effdt DATE;
    l_action varchar2(20);
    BEGIN
      SELECT MAX( effdt ),
                  max(action)keep(dense_rank last order by effdt)
        INTO l_max_effdt,l_action
        FROM your_table
       WHERE empid = p_empid
       group by empid ;
      IF( l_max_effdt = p_effdt and l_action=p_action )
      THEN
        RETURN TRUE;
      ELSE
        RETURN FALSE;
      END IF;
    EXCEPTION
      WHEN no_data_found
      THEN
        RETURN FALSE;
    END;
    end ;

  • PLSQL help needed

    I have a table orders which looks like below
    Order_date order_by order_amount
    01-01-11 A 100
    01-02-11 B 50
    01-03-11 A 100
    01-04-11 A 100
    02-01-11 A 100
    02-02-11 B 50
    02-25-11 B 200
    My requirement is I have to have a table total_orders which has to provide me the month name, order made by the person name and total order made by the individual for every month under total_amount.It has to calculate from the table Orders and provide the output in total_orders table.
    So the table_orders should like like below
    Order_month order_by total_amount
    Jan A 300
    Jan B 50
    Feb A 100
    Feb B 250
    PS: I am just a beginner to pl/sql. If you can help me how to write a simple code with this scenario I will be more than happy.

    declare
    cursor order_cursor is select order_month, order_by, sum(orders) total_amount from (
            with the_orders as (
                select to_date('01-01-11', 'MM-DD-YY') ord_date, 'A' order_by, 100 orders from dual union all
                select to_date('01-02-11', 'MM-DD-YY')ord_date, 'B' order_by, 50  orders from dual union all
                select to_date('01-03-11', 'MM-DD-YY')ord_date, 'A' order_by, 100  orders from dual union all
                select to_date('01-04-11', 'MM-DD-YY')ord_date, 'A' order_by, 100  orders from dual union all
                select to_date('02-01-11', 'MM-DD-YY')ord_date, 'A' order_by, 100  orders from dual union all
                select to_date('02-02-11', 'MM-DD-YY')ord_date, 'B' order_by, 50  orders from dual union all
                select to_date('02-25-11', 'MM-DD-YY')ord_date, 'B' order_by, 200   orders from dual
            select to_char(ord_date, 'Mon') order_month, order_by, orders from the_orders
            ) t
        group by order_month, order_by;
    begin
       dbms_output.put_line('Order Month            Order By               Total Amount ');
       for rec in order_cursor
       loop
           dbms_output.put_line(rec.order_month||'                       '||rec.order_by||'                          '||rec.total_amount);
       end loop;   
    end;
    Order Month            Order By               Total Amount
    Jan                    A                      300
    Jan                    B                      50
    Feb                    A                      100
    Feb                    B                      250Edited by: user130038 on Aug 30, 2011 12:17 PM

  • SQL/PLSQL Help - Table Name and Count on same line

    Hello,
    I need the following information returned:
    Table_Name, Current Table Count, Num_Rows.
    The table_name and num_rows are pulled from dba_tables where owner = 'XXXX'
    I can't figure out how to return this info.
    Sample of desired output and format
    Table_name Num_Rows Current Count
    AAAA 15 400
    ABBB 8000 8120
    Any help would be appreciated.
    Thanks - Chris

    May be this one helps you:
    declare
    cursor cur_cnt is
    select 'select ''' || table_name || ''', (select count(*) from ' || table_name || ') from dual' l_sql from user_tables;
    l_table_name varchar2(30);
    l_cnt number;
    begin
    dbms_output.put_line(rpad('Table Name',40)||rpad('RowCount',40));
    dbms_output.put_line('------------------------------------------------');
    for l_cur_cnt in cur_cnt
    loop
    execute immediate l_cur_cnt.l_sql into l_table_name, l_cnt;
    dbms_output.put_line(rpad(l_table_name,40)
    ||rpad(l_cnt,40));
    end loop;
    end;
    -Hari
    Hello,
    I need the following information returned:
    Table_Name, Current Table Count, Num_Rows.
    The table_name and num_rows are pulled from dba_tables where owner = 'XXXX'
    I can't figure out how to return this info.
    Sample of desired output and format
    Table_name Num_Rows Current Count
    AAAA 15 400
    ABBB 8000 8120
    Any help would be appreciated.
    Thanks - Chris

  • Issue with using xmltable() with xmltype() in plsql--help needed urgent

    HI All,
    I am trying to use XMLTABLE() to get the data from the xmltype(), I used the below query, when I run this, I get the syntax error "ORA-00906: missing left parenthesis--I am struggling to find out which paranthesis I am missing
    00906. 00000 - "missing left parenthesis"
    *Cause:
    *Action:
    Error at Line: 9 Column: 22"
    SELECT
    hours.OpeningTime, hours.ClosingTime, hours.DayOfWeek
    from table1 tab,
    XMLTABLE(XMLNAMESPACES(DEFAULT 'https://xxx.xxx.xx.gov/'),'/ProviderApplicationDTO/ProvOperationHours/WeekHours/KeyValuePairOfFirstDayOfWeekHoursOfOperation'
    PASSING tab.column --this column is of xmltype()
    COLUMNS
    OpeningTime varchar2 PATH '/ProviderApplicationDTO/ProvOperationHours/WeekHours/KeyValuePairOfFirstDayOfWeekHoursOfOperation/Value/OpeningTime',
    ClosingTime varchar2 PATH '/ProviderApplicationDTO/ProvOperationHours/WeekHours/KeyValuePairOfFirstDayOfWeekHoursOfOperation/Value/ClosingTime',
    DayOfWeek varchar2 PATH '/ProviderApplicationDTO/ProvOperationHours/WeekHours/KeyValuePairOfFirstDayOfWeekHoursOfOperation/Key') hours
    Where column = 70;
    <ProviderApplicationDTO>
    <ProvOperationHours>
    <WeekHours>
    <KeyValuePairOfFirstDayOfWeekHoursOfOperation>
    <Value>
    <OpeningTime />
    <ClosingTime />
    </Value>
    <Key>Sunday</Key>
    </KeyValuePairOfFirstDayOfWeekHoursOfOperation>
    <KeyValuePairOfFirstDayOfWeekHoursOfOperation>
    <Value>
    <OpeningTime />
    <ClosingTime />
    <IsOpenAM>AM</IsOpenAM>
    <IsCloseAM>PM</IsCloseAM>
    </Value>
    <Key>Monday</Key>
    </KeyValuePairOfFirstDayOfWeekHoursOfOperation>
    <KeyValuePairOfFirstDayOfWeekHoursOfOperation>
    <Value>
    <OpeningTime />
    <ClosingTime />
    </Value>
    </ProvOperationHours>
    </ProviderApplicationDTO>
    Edited by: 804681 on Jan 7, 2011 8:22 AM

    Interesting... it seems they either changed the comma in between 10g and 11g or there is a bug in the 11g documentation. I think I will report it to the documentation forum. Since the 11g gif description includes the coma. http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/img_text/xmltable.htm
    I guess Michaels found the real bug. You can always count on him when it gets to XML-action.

  • PLSQL help

    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0
    I have a table like this
    CREATE TABLE "RULES_TABLE"
    (     "RULESET_ID" NUMBER,
         "QUEUE_ID" NUMBER,
         "ATTR_NAME" VARCHAR2(12 BYTE),
         "ATTR_VALUE" VARCHAR2(200 BYTE)
    Insert into RULES_TABLE (RULESET_ID,QUEUE_ID,ATTR_NAME,ATTR_VALUE) values (7,3,'PRODUCT','P1');
    Insert into RULES_TABLE (RULESET_ID,QUEUE_ID,ATTR_NAME,ATTR_VALUE) values (7,3,'CUSTOMER','TEST CUSTOMER');
    Insert into RULES_TABLE (RULESET_ID,QUEUE_ID,ATTR_NAME,ATTR_VALUE) values (7,3,'STATE','VA');
    Insert into RULES_TABLE (RULESET_ID,QUEUE_ID,ATTR_NAME,ATTR_VALUE) values (7,3,'CUSTOMER','UNKNOWN');
    Insert into RULES_TABLE (RULESET_ID,QUEUE_ID,ATTR_NAME,ATTR_VALUE) values (5,2,'CUSTOMER','UNKNOWN');
    Insert into RULES_TABLE (RULESET_ID,QUEUE_ID,ATTR_NAME,ATTR_VALUE) values (5,2,'CUSTOMER','C1');
    Insert into RULES_TABLE (RULESET_ID,QUEUE_ID,ATTR_NAME,ATTR_VALUE) values (5,2,'PRODUCT','P1');
    Insert into RULES_TABLE (RULESET_ID,QUEUE_ID,ATTR_NAME,ATTR_VALUE) values (5,2,'STATE','VA');
    commit;
    I want to insert below ruleset into above table. but before I insert, I need to check if there is already ruleset with same attribute names and values.
    if so, then reject else insert into rules_table
    rules_table_temp
    create table rules_table_temp as select * from rules_table where 1=2;
    Insert into RULES_TABLE_TEMP (RULESET_ID,QUEUE_ID,ATTR_NAME,ATTR_VALUE) values (10,4,'PRODUCT','UNKNOWN');
    Insert into RULES_TABLE_TEMP (RULESET_ID,QUEUE_ID,ATTR_NAME,ATTR_VALUE) values (10,4,'PRODUCT','P1');
    Insert into RULES_TABLE_TEMP (RULESET_ID,QUEUE_ID,ATTR_NAME,ATTR_VALUE) values (10,4,'CUSTOMER','C1');
    Insert into RULES_TABLE_TEMP (RULESET_ID,QUEUE_ID,ATTR_NAME,ATTR_VALUE) values (10,4,'CUSTOMER','TEST CUSTOMER');
    Insert into RULES_TABLE_TEMP (RULESET_ID,QUEUE_ID,ATTR_NAME,ATTR_VALUE) values (10,4,'STATE','VA');
    Insert into RULES_TABLE_TEMP (RULESET_ID,QUEUE_ID,ATTR_NAME,ATTR_VALUE) values (10,4,'STATE','NJ');
    commit;
    for ex: for the above ruleset 10 , I have formed all possible combinations and checking as below
    ruleset_id queue_id product     customer state     Action
    10     4     P1     C1          VA ----> ruleset 5 is already available in ruleset_table with same attributes and values hence reject
    10     4     P1     UNKNOWN     VA ---->     ruleset 5 is already available with same attributes and values hence reject
    10     4     P1     C1          NJ ---->     this rule is not available hence insert it rules_table
    10     4     P1     UNKNOWN     NJ ---->     this rule is not available hence insert it rules_table
    10     4     UNKNOWN C1          VA ---->     ruleset 5 is already available with same attributes and values hence reject
    10     4     UNKNOWN UNKNOWN     VA ---->     this rule is not available hence insert it rules_table
    10     4     UNKNOWN C1          NJ ---->     this rule is not available hence insert it rules_table
    10     4     UNKNOWN UNKNOWN     NJ ---->     this rule is not available hence insert it rules_table
    since below record is not available in the ruleset_table.
    10     4     P1     C1          NJ
    I need to insert this record into rulese_table in the below format
    10 4 product P1
    10 4 customer C1
    10 4 state NJ
    The no of attributes are not fixed. I need to do it dynamically
    could you please suggest if it is doable
    Edited by: user13047999 on Apr 12, 2012 8:41 AM

    Okay, here's a whole new approach that will work with any number of name / value pairs, and that does not require dynamic SQL:with NEW_RULESET AS (
      SELECT ATTR_NAME, ATTR_VALUE,
      count(distinct attr_name) over() tot_name_new,
      POWER(2, -1+DENSE_RANK() OVER(ORDER BY ATTR_NAME)) NAME_RANK,
      power(2, count(distinct attr_name) over()) - 1 sum_rank_new
      FROM RULES_TABLE_TEMP
    SELECT RULESET_ID, QUEUE_ID, ATTR_NAME, ATTR_VALUE
    from (
      SELECT O.*,
      TOT_NAME_NEW,
      count(distinct o.attr_name) over(partition by o.ruleset_id, o.queue_id) tot_name_old,
      NAME_RANK,
      SUM(distinct N.NAME_RANK) OVER(PARTITION BY O.RULESET_ID, O.QUEUE_ID) SUM_RANK_OLD,
      sum_rank_new FROM RULES_TABLE O
      LEFT JOIN NEW_RULESET N ON(O.ATTR_NAME, O.ATTR_VALUE) = ((N.ATTR_NAME, N.ATTR_VALUE))
    WHERE TOT_NAME_NEW = TOT_NAME_OLD AND SUM_RANK_NEW = SUM_RANK_OLD
    ORDER BY 3,4,1,2;
    RULESET_ID QUEUE_ID ATTR_NAME    ATTR_VALUE        
             5        2 CUSTOMER     C1                  
             7        3 CUSTOMER     TEST CUSTOMER       
             5        2 PRODUCT      P1                  
             7        3 PRODUCT      P1                  
             5        2 STATE        VA                  
             7        3 STATE        VATOT_NAME is the number of distinct attribute names in the set. The old and new sets must have the same number of distinct attributes.
    NAME_RANK assigns a unique number from 1,2,4,8,16, etc. to each attribute name in the new ruleset.
    SUM_RANK is the sum of NAME_RANK for the entire set, but only for those name / value pairs found in the new ruleset.
    SUM_RANK_OLD is the sum of the distinct NAME_RANK values, in case there is more than one match for some attribute name.
    The old and new sets must have the same SUM_RANK: this means we found at least one name / value match for each name in the new ruleset.
    This solution determines equality of groups of records, without having to pivot rows to columns. Might come in handy some other time...
    Best regards, Stew
    Edited by: Stew Ashton on Apr 14, 2012 5:05 PM
    (changed sum(name_rank... to sum(DISTINCT name-rank... This covers the case when there is more than one match for the same attribute name.)

  • Simple PLSQL Help

    Hi Need to create a function that loops through a cursor and
    that brings back the value which is the highest based on conditions
    3 columns
    level -------------- Name ----------------------- Pay
    1 roger 20
    2 mike 30
    3 roy 25
    4 john 10
    5 joy 20
    I need the lowest level where the pay is greater than 20 in this case it would be 2 mike....
    Edited by: Sharky on Mar 24, 2009 9:07 AM

    Sharky wrote:
    As you can see i need to return the lowest hierarchy level..... that meets the conditions...The data you provided us with is not hierarchical.
    Be clear in what your starting data is and what you expect as output and the logic behind getting from one to the other.
    When you post code or data put the text.. {noformat}{noformat} ..before _and_ after your code/data so that it retains it's formatting on the forum.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Uploading text file (TAB delimited) to Oracle database table

    Hi, im creating a form that will upload a text file(TAB delimited) that will insert a data in a database table. How would i do this? And what trigger will i use in the upload button? Please help..
    Thanks,
    Majic

    hi majic,
    Check any of this site related to oracle sql and plsql
    and do reply me if not found.
    1) http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96624/03_types.htm#LNPLS003
    Oracle composite data type help
    2) http://www.cs.umb.edu/cs634/ora9idocs/appdev.920/a96624/07_errs.htm#784
    Oracle plsql help good one check out
    3) http://www.orafaq.com/faqsql.htm#WHAT
    Oracle frequently asked questions
    4) http://www.bijoos.com/ora9/index.htm
    Oracle diff version comparasion help in above no 4 web site
    5) http://www.unix.org.ua/orelly/oracle/prog2/index.htm
    Oracle oreilly hand book good book for oracle pl/sql
    6) http://www.orafaq.com/glossary/faqgloss.htm#SQL_Loader
    check out for oracle faq good one
    7) http://www.rittman.net/archives/cat_oracle_9ias.html
    check out for Froms10g Installation and much more
    8) http://www.devarticles.com/c/a/Oracle/Creating-a-Database-in-Oracle-9i/2/
    check this for creating a oracle database in 9i***
    9) http://tahiti.oracle.com/
    suggested my many user for oracle help..check out this also
    10) http://www.jlcomp.demon.co.uk/faq/ind_faq.html
    For Full oracle related questions and answer****
    Regards,
    Asif A K.

  • Dba_tab_cols

    Hi folks,
    Looking for some plsql help. Seems easy enough but having a hard time getting my head around it. I am looking for some code to search a schema for all tables that does not have a particular column name. Any help appreciated.
    Bruce.

    This should do it (not tested, but give you the idea in case it doesn't run :P)
    select *
    from dba_tab_cols d
    where d.owner = 'SOMEONE'
    and not exists
    select
    null
    from dba_tab_cols d1
    where d.table_name = d1.table_name
    and d.owner = d1.owner
    and d1.column_name = 'SOME_COLUMN'
    );

  • Urgent - How to call a Web Services from PLSQL - Please help

    Hello,
    I am very much new to WebServices, need to call web services through PLSQL. I have a urgent requirement, where i need to call the web services by passing from some paramters to it and the web services will return a varchar values as 'PASSED' or 'FAILED'.
    Can you please approch me the best way to start with.
    Thanks,
    Srikanth.

    Hi,
    I need to do it from PLSQL API's not from JAVA.
    I have started developing the code through UTIL_HTTP. Getting lots of error.
    Can you please guide me through these error.
    Below is the wsdl and a blcok where i am trying to retrive the value from webservice.
    Hope this will help you.
    Code:
    declare
    soap_request varchar2(30000);
    soap_respond varchar2(30000);
    http_req utl_http.req;
    http_resp utl_http.resp;
    resp XMLType;
    i integer;
    begin
    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>
    <ns1:soapCheckRequest1 wsdl:ns1="https://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>
              <endUserIP xsi:type="xsd:string">209.134.168.203</endUserIP>
    </ns1:soapCheckRequest1>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    http_req:= utl_http.begin_request
    ( 'http://isportal-qa.iss.net/exportcompliancemanager/services/ExportCheckService'
    , 'POST'
    , 'HTTP/1.1'
    utl_http.set_header(http_req, 'Content-Type', 'text/xml'); -- since we are dealing with plain text in XML documents
    utl_http.set_header(http_req, 'Content-Length', length(soap_request));
    utl_http.set_header(http_req, 'SOAPAction', ''); -- required to specify this is a SOAP communication
    utl_http.write_text(http_req, soap_request);
    http_resp:= utl_http.get_response(http_req);
    DBMS_OUTPUT.PUT_LINE('-------utl_http.get_response---------------------');
    DBMS_OUTPUT.PUT_LINE('http_resp.status_code is :'||http_resp.status_code );
    DBMS_OUTPUT.PUT_LINE('http_resp.reason_phrase is :'||http_resp.reason_phrase);
    DBMS_OUTPUT.PUT_LINE('http_resp.http_version is :'||http_resp.http_version);
    DBMS_OUTPUT.PUT_LINE('http_resp.private_hndl is :'||http_resp.private_hndl);
    DBMS_OUTPUT.PUT_LINE('-------utl_http.get_response----------------------');
    utl_http.read_text(http_resp, soap_respond);
    utl_http.end_response(http_resp);
    resp:= XMLType.createXML(soap_respond);
    resp:= resp.extract('/soap:Envelop/soap:Body/child::node()'
    , 'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"'
    i:=0;
    loop
    dbms_output.put_line(substr(soap_respond,1+ i*255,250));
    i:= i+1;
    if i*250> length(soap_respond)
    then
    exit;
    end if;
    end loop;
    end;
    Error Message
    http_resp.reason_phrase is :Internal Server Error
    http_resp.http_version is :HTTP/1.1
    http_resp.private_hndl is :0
    -------utl_http.get_response----------------------
    <?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
    apenv:Server.userException</faultcode><faultstring>org.xml.sax.SAXParseException: The prefix &quot;ns1&quot; for element &quot;ns1:soapCheckRequest1&quot; is not bound.</faultstring><detail><ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">atlcms
    2.iss.net</ns1:hostname></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
    <?xml version="1.0" encoding="UTF-8" ?>
    - <wsdl:definitions targetNamespace="https://isportal-qa.iss.net/exportcompliancemanager/services/ExportCheckService" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="https://isportal-qa.iss.net/exportcompliancemanager/services/ExportCheckService" xmlns:intf="https://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="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:message name="soapCheckResponse">
    Thanks and Regard,
    Srikanth

  • Plsql webservices deploy error in weblogic.... Can anybody help me.. Urgent

    Could any body look into this exception....
    I am stuggling with this for the last one week........
    I have generated the webservices from PLSql procedure, deployed and tested in oc4j which is successfull running and I can access the webservice too.....
    The same ear file, when i deploy in to weblogic I am getting the follwing error, can anybody look in to this and help me....
    <May 20, 2006 2:09:14 PM GMT+05:30> <Error> <Deployer> <BEA-149231> <Unable to s
    et the activation state to true for the application 'gtry-gtry-WS'.
    weblogic.application.ModuleException: [HTTP:101216]Servlet: "gwsSoapHttpPort" fa
    iled to preload on startup in Web application: "gtry-gtry-context-root".
    java.lang.IllegalStateException: could not find schema type named {{http}//orass
    pcon/Gws.wsdl/types/}EmpRecUser
    at weblogic.wsee.bind.runtime.internal.AnonymousTypeFinder$GlobalTypeNod
    e.getSchemaType(AnonymousTypeFinder.java:181)
    at weblogic.wsee.bind.runtime.internal.AnonymousTypeFinder.getTypeNamed(
    AnonymousTypeFinder.java:86)
    at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.create
    BindingTypeFrom(Deploytime109MappingHelper.java:888)
    at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.proces
    sTypeMappings(Deploytime109MappingHelper.java:466)
    at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.initBi
    ndingFileFrom109dd(Deploytime109MappingHelper.java:246)
    at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.<init>
    (Deploytime109MappingHelper.java:162)
    at weblogic.wsee.bind.runtime.internal.RuntimeBindingsBuilderImpl.create
    RuntimeBindings(RuntimeBindingsBuilderImpl.java:80)
    at weblogic.wsee.ws.WsBuilder.createRuntimeBindingProvider(WsBuilder.jav
    a:272)
    at weblogic.wsee.ws.WsBuilder.buildService(WsBuilder.java:94)
    at weblogic.wsee.ws.WsFactory.createServerService(WsFactory.java:58)
    at weblogic.wsee.server.servlet.WebappWSServlet.initRuntime(WebappWSServ
    let.java:70)
    at weblogic.wsee.server.servlet.WebappWSServlet.initImpl(WebappWSServlet
    .java:32)
    at weblogic.wsee.server.servlet.BaseWSServlet.init(BaseWSServlet.java:40
    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
    at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(St
    ubSecurityHelper.java:276)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    121)
    at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecuri
    tyHelper.java:68)
    at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubL
    ifecycleHelper.java:58)
    at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHel
    per.java:48)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
    mpl.java:493)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
    ervletContext.java:1688)
    Thanks in Advance
    Jayanthy.

    Hi Supriya,
    Check the following:
    * Whether the Report is locked in the server.
    * Are the parameters you pass from the form to report have the similar data types.
    Hope your problem is fixed.
    Regards.

  • Help Required :Excel Upload Into Oracle Table Using PLSQL Procedure/Package

    Please Help , Urgent Help Needed.
    Requirement is to Upload Excel file Into Oracle Table Using PLSQL Procedure/Package.
    Case's are :
    1. Excel File is On Users/ Client PC.
    2. Application is on Remote Server(Oracle Forms D2k).
    3. User Is Using Application Using Terminal Server LogIn.
    4. So If User Will Use to GET_FILE_NAME() function of D2K to Get Excel File , D2k Will Try to pick File from That Remote Server(Bcs User Logind from Terminal Server Option).
    5. Cannot Use Util_File Package Or Oracle Directory to Place That File on Server.
    6. we are Using Oracle 8.7
    So Need Some PL/SQL Package or Fuction/ Procedure to Upload Excel file on User's Pc to Oracle Table.
    Please Guide me wd some Code. or with Some Pl/SQL Package, or With SOme Hint. Or any Link ....
    Jus help to Sort This Issue ........
    you can also write me on :
    [email protected], [email protected]

    I also Tried to Use This
    But How can i Use SQLLDR Command In Stored Procedure.
    Well IN SQL*PlUS it is successfull but in Stored Procedure /Package ,PL/SQL does not recognise the OS commands.
    So now my Question How can I recognise the SQLLDR Commnad in Stored Procedure.

  • Help Required:How Upload Excel file Into Oracle Table Using PLSQL Procedure

    Please Help , Urgent Help Needed.
    Requirement is to Upload Excel file Into Oracle Table Using PLSQL Procedure/Package.
    Case's are :
    1. Excel File is On Users/ Client PC.
    2. Application is on Remote Server(Oracle Forms D2k).
    3. User Is Using Application Using Terminal Server LogIn.
    4. So If User Will Use to GET_FILE_NAME() function of D2K to Get Excel File , D2k Will Try to pick File from That Remote Server(Bcs User Logind from Terminal Server Option).
    5. Cannot Use Util_File Package Or Oracle Directory to Place That File on Server.
    6. we are Using Oracle 8.7
    So Need Some PL/SQL Package or Fuction/ Procedure to Upload Excel file on User's Pc to Oracle Table.
    Please Guide me wd some Code. or with Some Pl/SQL Package, or With SOme Hint. Or any Link ....
    Jus help to Sort This Issue ........
    you can also write me on :
    [email protected], [email protected]

    TEXT_IO is a PL/SQL package available only in Forms (you'll want to post in the Forms forum for more information). It is not available in a stored procedure in the database (where the equivalent package is UTL_FILE).
    If the Terminal Server machine and the database machine do not have access to the file system on the client machine, no application running on either machine will have access to the file. Barring exceptional setups (like the FTP server on the client machine), your applications are not going to have more access to the client machine than the operating system does.
    If you map the client drives from the Terminal Server box, there is the potential for your Forms application to access those files. If you want the files to be accessible to a stored procedure in the database, you'll need to move the files somewhere the database can access them.
    Justin

  • Help with truncating a table using plsql procedure in different schema

    I have a plsql procedure in schema A that truncates a table that is given in as parameter.
    create or replace procedure truncate_table(schema, table_name)
    EXECUTE IMMEDIATE 'TRUNCATE TABLE '||schema||'.'||table_name;
    end;
    The above procedure has public execute grant.
    I need to truncate a table in schema B. I have a plsql procedure in schema B that calls the truncate_table procedure and passes in the schema B table name.
    Since the table is in schema B, should the delete grant on the table be given to user A or user B to truncate the table in schema B?
    Thanks in advance.

    Procedure created in schema A
    create or replace
    procedure truncate_table(l_schema varchar2, table_name varchar2) authid current_user
    as
    begin
    EXECUTE IMMEDIATE 'TRUNCATE TABLE '||l_schema||'.'||table_name;
    end;from schema B
    grant delete on table1 to Schema_A
    from schema A
    exec truncate_table('Schema_B','Table1');
    Hope this helps.
    Alvinder

Maybe you are looking for

  • Tomcat mod_jk install

    Hi, Ive installed tomcat to develop with jsp pages, but I want to use my apache webserver with it. Basically i want to use my http://localhost/~myuser/some_site with jsp files. Ive seen references to mod_jk, but not found a good up to date step by st

  • How to create Oracle XADatasource in SAP

    How to create XA Datasource for Oracle 10g in NetWeaver Application Server?

  • Can we add button in query region  along with go and clear

    Hi Friends, i have a requirement as below steps- 1)i have developed search pgae by using query regiion 2) in pgae,first we have search items,go and clear(submit buttons), table region. 3)here go and clear buttons came automatically. 4) i can able to

  • Insert taking long time.

    Hi, I am inserting 10 milion records into a table using procedure it's taking nearlly one hour to insert all 10 million records. So that I have used FORALL bulk collect along with APPEND hint and the time is reduced to 20 minutes. Is there any other

  • Can I get Cisco Jabber 10.6.0 to work on Windows XP Pro SP3?

    We are implementing the new Cisco Jabber 10.6.0, per a requirement, but we still have some Windows XP Pro SP3 users. The issue is that with this new client the app will not load due to error:  CiscoJabber.exe Entry Point Not Found: the procedure entr