Still no way to access a PL/SQL package record type ?

Sorry if this is a recurrent question...
Is there still no way to set/retrieve input/output parameters of a PL/SQL package procedure/function through JDBC that is of type RECORD ??????
I'm not considering wrapping up through objects or strings. Rather new versions of JDBC driver.
How about SQLJ (don't know anything about that one. Does it call stored procedures ?
Would it support package stored procedure ?
And RECORD types ?
Just out of curiosity as i'm setting off to breaking up all my types into individual arguments. What a pain !!!!!!!!!
Thx.

Thanks for the suggestion.
We were arriving to a similar conclusion...
There is however one BIG reason of being disapointed :
- I did not know that (since I'm only Oracling since January) but objects do not accept attributes the type of which would be defined by refering the type of an existing column :
Such as :
CREATE TYPE type_customer AS OBJECT (
cust_id CUSTOMERS.CUSTOMER_ID%TYPE,
I have no idea why RECORDs can do it but object can't.
To summarize it all we can use RECORDs but they are not seen through JDBC drivers and we can use OBJECTS but they don't map to column types... Unfortunate !
Now to answer your question, at the moment I'm thinking of rewriting the routines rather than wrapping them up. Only around ten of them... So that the tool you mention is not needed.
Just have to proofOfConcept it but that's the latest options we are considering...
Thanks for the pointer I look it up right away...
Alain
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by SQLJ Development ([email protected]):
You could define a Customer Object type and create PL/SQL wrapper procedures/functions that take these as arguments and call your original PL/SQL SP. Unfortunately, right now you would have to do that by hand (JPublisher only gives you a Java representation of the Customer object type) - if there were a tool to generate the Object type and the PL/SQL wrappers, would you expect to use that?
For an example of doing this (albeit in a pedestrian way) see: http://technet.oracle.com/docs/products/oracle8i/doc_library/817_doc/ java.817/a81357/sampcod8.htm#1042848 <HR></BLOCKQUOTE>
null

Similar Messages

  • In the new iOS 7.0.2 update, I can no longer find the iTunes Radio in the music application. Has it been removed, or is there still a way to access it?

    In the new iOS 7.0.2 update, I can no longer find the iTunes Radio in the music application. Has it been removed, or is there still a way to access it?

    Hi jdog44,
    Thanks for using Apple Support Communities.  iTunes Radio should be accessible from the bottom of the Music app screen as shown in this article:
    About iTunes Radio
    http://support.apple.com/kb/HT5848
    You could try completely closing the Music app:
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    A restart may also help:
    iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/HT1430
    Cheers,
    - Ari

  • PL/SQL Packages and Types Reference

    I need information about the owa_ packages. It should be in PL/SQL Packages and Types Reference, but in the 9i Documentation there is nothing about these packages and i cant find this Documentation for 10g on OTN.
    Who can help me???

    Here is the 9.2 doc:
    http://download-east.oracle.com/docs/cd/B10501_01/appdev.920/a96590/adgweb.htm#1005885
    Tom Best

  • PL/SQL Passing record type between two procedures

    I have a package and package body as following
    My problem is I forgot the syntax to pass the record type between the two procedure.?????
    CREATE OR REPLACE PACKAGE Standby_Schedules_Disp
    AS
    PROCEDURE Get_schedule (test1 OUT VARCHAR2);
    PROCEDURE get_test (my_test REF my_sched); DOESN'T WORK?????
    END Standby_Schedules_Disp;
    CREATE OR REPLACE PACKAGE BODY Standby_Schedules_Disp
    AS
    PROCEDURE Get_schedule (test1 OUT VARCHAR2)
    AS
    temp NUMBER;
    TYPE my_sched IS RECORD ( my_name VARCHAR2(30) := NULL,
    my_age NUMBER := 0);
              who_I_am my_sched;
              Get_test(my_sched);
    BEGIN
         test1 := 'aaaaa';
              who_i_am.my_name := 'Matthew';
         END get_schedule;
    PROCEDURE get_test (my_test REF my_sched) DOESN'T WORK?????
    AS
    BEGIN
    END;
    END Standby_Schedules_Disp;
    /

    Youv'e declared the my_sched type within the scope of the Get_schedule procedure - it's not visible to the get_test procedure. You have declare the type in the package body if it's only used internally within the package or in the package spec if it can be referenced outside the package:
    CREATE OR REPLACE PACKAGE [BODY] Standby_Schedules_Disp
    AS
       TYPE my_sched IS RECORD (
          my_name VARCHAR2(30) := NULL,
          my_age NUMBER := 0);I don't understand what you are trying to do with the REF keyword in this context. Having declared the type, you can use it as normal in a parameter spec:
    PROCEDURE get_test (my_test IN [OUT] my_sched);You're also trying to call get_test within the declaration section of a program, which you can't do, and get_test also contains no executable code, which is not allowed in PL/SQL.

  • Oracle9i Supplied PL/SQL Packages and Types Reference  can't be found

    I've tried lots of things to try to find information on DBMS_STATS without success. There was a supposed link to it but I got the message that the linked page could not be found. I have spent a lot of time getting not very far and would appreciate it very much if you could advise me of the URL which will give me good documentation!
    I came across DBMS_STATS in the "SearchOracle" newsletter.
    Regards, WB

    The documentation you are looking for is here:
    http://download-west.oracle.com/docs/cd/B13789_01/appdev.101/b10802/d_stats.htm#ARPLS059
    (among other places). Can you please give us the specifics on the dead link so that we can fix that?
    Regards, OTN Content Team

  • Is there one tell  me the correct way to access remote SQL server

    Hi
    I have tried to access a remote SQL server by many ways but all failed
    here is my trying :
    String driver = "com.microsoft.jdbc.sqlserver.SQLServerDriver";
    String url= "jdbc:microsoft:sqlserver://217.52.98.102:1433";
    Class.forName(driver);
    Connection conn = DriverManager.getConnection(url,"sa"," " );
    String selectStr = "select * from FleetWatch..table_name";
    Statement st = conn.createStatement();
    ResultSet rs = st.executeQuery(selectStr);
    DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver.SQLServerDriver());
    // connect to the DB by using the driver.
    String connString = "217.52.98.102:1433;databasename=FleetWatch";
    String strDBConnect = "jdbc:microsoft:sqlserver://" + connString;
    conn = DriverManager.getConnection(strDBConnect, "sa", "");
    String driver = "com.microsoft.jdbc.sqlserver.SQLServerDriver";
    Class driverClass = Class.forName(driver, true, jdbcLoader);
    Driver currDriver = (Driver)driverClass.newInstance();
    Properties prop = new Properties();
    prop.setProperty("sa", (String)paras.get("sa");
    prop.setProperty("password", (String)paras.get(" ");
    String url= "jdbc:microsoft:sqlserver://217.52.98.102:1433";
    conn = currDriver.connect((String)paras.get(url, prop);
    pls tell if you know the correct way to access a remote sql server and
    access it befor tell me its step to ensure it's connect

    String driver = "com.microsoft.jdbc.sqlserver.SQLServerDriver";
    String url= "jdbc:microsoft:sqlserver://your servername:1433";
    Class.forName(driver);
    Connection conn = DriverManager.getConnection(url,"username ","password " );
    this user name and password may be diff becoz if u have only sql authentication then u have to know that user name or it can have windows nt authentication so if it is so then no probs can use ur windows nt login..
    know the server name where ur sqlserver is connected to.
    set the classpath for the sqlserverdrivers jar files which u have downloaded where ur working on.
    then it works
    i did the same and worked for me.
    try it.

  • Using the DBMS_XDBRESOURCE PL/SQL package

    Does anyone know how to use the functions in the DBMS_XDBRESOURCE package? I've tried to use the GETCREATIONDATE function but no luck. I usually get a "PLS-00221: 'GETCREATIONDATE' is not a procedure or is undefined"
    The 11g PL/SQL packages and type reference describes it as such:
    Given an XDBResource, this function returns its creation date.
    Syntax:
    DBMS_XDBRESEROUCE.GETCREATIONDATE (
    res IN XDBResource)
    RETURN TIMESTAMP;
    Notice the misspelling, which is confusing enough. However, I have no idea how to make an XDBResource object. I've tried the path to the resource as well as the RAW resource ID.
    I'm doing this in SQL*Plus, and just want to see if I get the same timestamp that I would see when I browse the object in the XML Repository.
    Any help would be appreciated.

    Thank you, that works. I remember reading this in the developer's guide, but forgot about it when I did a describe on resource_view and I didn't see any date elements.
    Since you mentioned events, and since I will be using them to perform some action, what are the best events to use when a new file is added or an existing one is updated? I haven't digested all the information in the events chapter, but Post-Create and Post-Update are obvious, but I want to make sure it's a valid XML file before anything is triggered.

  • Is there a way to access my old Notes only? I still have my old back up but I cant sync to my phone or it will corrupt it.

    I am using an iphone 5. Recently it malfunctioned and I was told by apple that my old back up had a corruption with it an caused my phone to malfunction. Apple had to redownload the operating system. I was also told that I can not use my old back on my phone I need to delete it and manually download everything. I DID NOT USE ICLOUD. However I do have my old back up still on my mac in itunes. Question below....
    Is there a way to access my old Notes only so I can rewrite them in my phone? I still have my old back up but I cant sync to my phone or it will corrupt it. I just want to access my notes so I can type them back into my notes on my fixed phone.

    you can restore from your backup again just to get the notes. once you've restored from the backup, copy your notes into your icloud notes group or email them to yourself - basically, get them somewhere else so they're not just locally stored on the device. once you've moved your notes elsewhere, restore the device as new again like apple had you do. this will again put a fresh version of the operating system on your phone like it has right now
    there's no other way to access the notes that are in your backup

  • Access-SQL Server (Client Server Configuration) Best Way To Refresh SQL Server Records ?

    We are using Access 2013 as the front end and SQL Server 2014 as the back end to a client server configuration.
    Access controls are bound to the SQL fields with the same names. When using Access to create a new record in a Form, the data are not transferred to SQL if the form is exited to display a different Form or Access is closed. If the right or left arrow navigation
    buttons at the bottom of the form are first used to display either the previous or next record, then the data in the new record are correctly transferred to SQL.
    What is the best way to refresh the new SQL record prior to the closing of the new record in the bound Access form ? We have tried Requery of the entire form and with all of the individual controls without success. We are looking for a method of refreshing
    SQL that functions in a manner similar to that of what happens with the navigation buttons.
    Thank you very much for your assistance.
    Robert Robinson
    RERThird

    Hi Stefan,
    I had added the code to set me.dirty = False in response to the On Dirty event and didn't realize that it was working properly. I had tried other several approaches and must have become confused somewhere along the line.
    I retested the program. On Dirty is working and the problem is solved.
    Thank you very much for your assistance.
    Robert Robinson
    RERThird

  • What are the different ways in accessing the SQL server from NWDS ?

    Hi Experts,
    Can anyone suggest the different ways for accessing the SQL server from NWDS.I also want to know whether any tool is available for accessing SQL server from Webdynpro java application in Netweaver development studio.
    I am currently using JDBC driver for accessing the SQL server from Webdynpro java application in NWDS.
    Regards,
    Krishna Balaji T

    Note - that no internet backup service has been proven to be safe and effective for backing up the iPhoto library - unless you personally have backup uyp an iPhoto library and restored it sucussfuly form one it should not be recommended - a large number of people have lost their photos trying it
    LN

  • Is there a way to access object from other schema?

    1. Is there a way to access object from other schema
    Without using synonym/public synonym without prefixing schema owner?
    2. If you do not see any object in all_objects by same name owned by connected user or public, can there still be objects hidden from this view? for instance synonyms created by SYSTEM
    TIA for help

    Well, you missed something somewhere. If there is no
    ALTER SESSION SET CURRENT_SCHEMA=whoeverthen there must be either public synonym for the object as this shows:
    SQL> CREATE USER a identified by a;
    User created.
    SQL> GRANT CREATE SESSION to a;
    Grant succeeded.
    SQL> CREATE USER b identified by b;
    User created.
    SQL> GRANT CREATE SESSION, CREATE PROCEDURE, CREATE PUBLIC SYNONYM to b;
    Grant succeeded.
    SQL> connect b/b
    Connected.
    SQL> CREATE PACKAGE test AS
      2     PROCEDURE testit;
      3  END;
      4  /
    Package created.
    SQL> CREATE PACKAGE BODY test AS
      2  PROCEDURE testit IS
      3  BEGIN
      4     NULL;
      5  END;
      6  END;
      7  /
    Package body created.
    SQL> connect a/a
    Connected.
    SQL> desc b.test
    ERROR:
    ORA-04043: object b.test does not exist
    SQL> connect b/b
    Connected.
    SQL> GRANT EXECUTE ON test TO a;
    Grant succeeded.
    SQL> connect a/a
    Connected.
    SQL> desc b.test;
    PROCEDURE TESTIT
    SQL> desc test;
    ERROR:
    ORA-04043: object test does not exist
    SQL> connect b/b
    Connected.
    SQL> CREATE PUBLIC SYNONYM test FOR TEST;
    Synonym created.
    SQL> connect a/a
    Connected.
    SQL> desc test
    PROCEDURE TESTITAnother possibility without public synonyms is that crv had granted the other user privileges on some object, and the other user creates a private synonym for that. When crv granted privileges on a different object with the same name, the private synonym became valid again. Something like:
    SQL> connect /
    Connected.
    SQL> drop public synonym test;
    Synonym dropped.
    SQL> GRANT CREATE SYNONYM TO a;
    Grant succeeded.
    SQL> connect a/a
    Connected.
    SQL> desc test;
    ERROR:
    ORA-04043: object test does not exist
    SQL> desc b.test
    PROCEDURE TESTIT
    SQL> CREATE SYNONYM test FOR b.test;
    Synonym created.
    SQL> desc test;
    PROCEDURE TESTIT
    SQL> connect b/b
    Connected.
    SQL> REVOKE EXECUTE ON test FROM a;
    Revoke succeeded.
    SQL> connect a/a
    Connected.
    SQL> desc test;
    ERROR:
    ORA-04043: object "B"."TEST" does not exist
    SQL> desc b.test
    ERROR:
    ORA-04043: object b.test does not exist
    SQL> connect b/b
    Connected.
    SQL> DROP PACKAGE test;
    Package dropped.
    SQL> CREATE FUNCTION test (p_num IN NUMBER) RETURN NUMBER AS
      2  BEGIN
      3     RETURN p_num * 10;
      4  END;
      5  /
    Function created.
    SQL> GRANT EXECUTE ON test TO a;
    Grant succeeded.
    SQL> connect a/a
    Connected.
    SQL> desc test;
    FUNCTION test RETURNS NUMBER
    Argument Name                  Type                    In/Out Default?
    P_NUM                          NUMBER                  INSo, I would go looking for the synonyms.
    TTFN
    John

  • Is there a way to access more of my codecs to render with in AE 4.1 ?

    Hi all,
    I'm a new user using an old version of AE 4.1 on Windows 7.
    Is there a way to access more of my available codecs to render with in AE 4.1 ?
    When I go to export as an AVI file in AE 4.1 I only have the CINEPAK, DV-PAL, DV/DVCPRO-NTSC and DVCPRO-PAL codecs available as choices, and then NONE for uncompressed output.
    Yet when I render to AVI in Adobe Premiere I have the CAMSTUDIO LOSSLESS, CINEPAK, HUFFYUV, INTEL IYUV, LAGARITH LOSSLESS, MICROSOFT RLE, MICROSOFT VIDEO 1, MSU SCREEN CAPTURE LOSSLESS, x264VFW-H.264/MPEG-4 AVC and the XVID MPEG-4 codecs all available to render with.  I usually use the XVID MPEG-4 codec to render with for best quality for file size, or the LAGARITH LOSSLESS codec to render with if I need to plug a file back in to Premiere since Premiere has limited AVI file codec import capabilities.
    Why aren't the rest of my codecs available to render with in AE 4.1 ?
    The problems are (as seen in the screenshots below)...
    1) The CINEPAK codec renders the correct file format size and aspect-ratio that my project is (1280x720) but outputs an AVI file that can not be imported in to Premiere and can not be converted by two different converters.
    2) The NONE-UNCOMPRESSED option renders the correct size format file but outputs an AVI file so large (over 6 gigs) that it can not be use practically in Premiere and it will not even play in a video player.
    3) The DV-PAL, DV/DVCPRO-NTSC and DVCPRO-PAL codecs render in incorrect aspect ratio and format sizes (770x576) regardless of which aspect ratio is selected (as seen at the bottom of the screenshot below), resizing my project size and they will not import in to Premiere... these can be converted to an H.264 AVI file in one of my converters  that Premeire will then import, but they are still the wrong size and they loose sharpness if they are resized (stretched) during conversion.
    Please see the screenshots below for clarification.
    Thanks for any input,
    digi

    Wow, thanks again Andrew.  That works.
    All my codecs showing up via Composition/Make Movie.  Its weird, when I tried using the H.264 codec (Premiere likes H.264 and Lagarith Lossless), the H.264 rendered a strange 800 and something by 720 size instead of the selected and displayed 1280x720 format that the project is in and speced in the Render interface.
    But when I used the Lagarith Lossless codec, I get the right size and everything looks good at 1280x720.
    Before you wrote back, I was able to convert one of the 770x576 size DV-PAL files to H.264 via the Freemake converter, and then that imported in to my Premiere file... but that is a moot point now that I can get the correct size file with the Lagarith codec.
    I would have been able to use the converted 770x576 (properties says 720x576, but it measures out at 770x576) DV-PAL files for this project with the digital clock and get it to import in to Premiere correctly... since I could just place the clock face when blackscreened in my 1280x720 Premiere project, but now I can use the full size Lagarith rendered file for this and other projects from AE that require the full frame of composition.
    Thanks so much... your the most efficient forum guy I've ever had answer a question... no restating or misunderstanding... just pure useful answers.
    Thanks a trillion,
    digi

  • What is the quickest way to access the Settings on an iPad?

    What is the quickest way to access the Settings on an iPad? (I mean, the usual cogwheel "app" called Settings)
    In particular, I'm looking for a quicker way (or a more convenient one) to access it from an open application, than hitting the "home" button, possibly swiping the home pages, and tapping on it.
    (I know, I know, I already placed it in the bottom bar, so I have it available from all pages...)
    It would be great if I could cut another step or two. I mean, there are situations where I need to use the Settings app repeatedly. I wonder why it was not included in the iOS 7 swipe-from-bottom menu, while the "Camera" or "Countdown Timer / Clock" made the cut.
    I know everybody will have a different opinion on what should be included in that menu, and choices have to be made, but still...
    for example, on my Android smartphone the newer OS updates placed a shortcut to the settings app in the upper-right corner of the swipe-down menu, which is like the most prominent place you could place it in.
    Anyway, do you know of one or more alternative ways to access the Settings app?
    (Oh, and yeah, it just occurred to me that I can four-finger swipe it, if I have accessed it recently, but again if I access another app or two in between it will become at least as cumbersome as going through the home page).

    Anyway, do you know of one or more alternative ways to access the Settings app?
    Short answer, no. If you have a suggestion for future iOS functionality, use the feedback functionality found elsewhere on this site.
    Barry

  • Which way to go with PL/SQL and XML

    Hi fellows,
    I have a general question to XML on Oracle.
    I read already some parts of the three manuals coming with the online documentation of 9i
    - XML developer kit XDK
    - XML API - XDK and Oracle XML DB
    - XML database developer guide Oracle XML DB.
    Also I wrote already a PL/SQL package using DBMS_XMLGEN to generate XML data from relational Oracle tables.
    Actually I like the simplicity how I can create XML data with this DBMS package but I still missing the features like using a DTD/XML Schema to generate XML data.
    I still don't know what the best way would be to use these features of XML in Oracle.
    Hopefully someone can give me some advise and possibly can point to some code samples so that I can see the proper use of the package.
    How about DBMS_XMLQuery?
    To use this package, would that be the better solution for my problem?
    Any comment much appreciated.
    Thanks
    Fred

    Hi Fred,
    Having written a fair amount of PL/SQL code to generate and process XML in the past years, I can give you my opinion on the matter. If you look at the PL/SQL API's Oracle has been written to handle XML, you will find two types/categories of API's: PL/SQL code based on wrapping java (i.e. DBMS_XMLQUERY) and PL/SQL code based on C (i.e. DBMS_XMLGEN). The first category is usually slower, so I tend to use these only if there are no other options. You can measure execution times by executing the same query using both DBMS_XMLGEN. vs. DBMS_XMLQUERY.
    I usually tend to store xml into relational tables by extracting the xml document in PL/SQL using the functions XMLType data type offers (i.e. extract, existNode, getStringVal, etc) function rather than using DBMS_XMLSTORE for flexibility reason (more control over what's being stored).
    Besides the PL/SQL API's there are some rather neat SQL functions to handle XML (i.e. XMLElement, XMLForest, XMLAgg, XMLAttribute, etc) I like to use to build XML documents that are to complex for DBMS_XMLGEN. But, on the downside, I think these functions might cost considerable amounts of CPU, because behind the scene a DOM-tree is build in the SGA/UGA(?), especially on large XML structures or high concurrency systems. I have not measured this yet, so I say might.
    Further, what I think is lacking from the Oracle API's in general is handing of CDATA sections and the fact that some XML functions default generate "pretty-printing" XML, which can not be switched of as far as I know. In my opinion XML should never be "pretty printed", because XML basically is about data transportation, not about lay-out. CDATA sections are not handled, even worse "<![CDATA[ ]]>" is being escaped (to &lt and &gt) and not properly interpreted when processed back to text.

  • SQL Query works in MS Access but caused SQL exception

    Hi all,
    I've got this query that works if I run it in MS Access but caused an SQL Exception if I run in my Java programme.
    The query
    SELECT Count(*) AS countPlayerMax FROM (SELECT Count(*) AS countSent, sent.mobileno FROM sent WHERE (((sent.date_sent) Between #2002-3-1# And #2002-3-8#)) GROUP BY sent.mobileno HAVING (((Count(*))>100)))
    The exception is
    [Microsoft][ODBC Microsoft Access Driver] Syntax error in FROM clause.
    I've done nested queries before but this one doesn't work. Any ides why??
    thanks

    Thanks for your suggestion
    I tried it but it still gives the same error, now the SQL looks like this
    SELECT Count(*) AS countPlayerMax FROM (SELECT Count(*) AS countSent, sent.mobileno FROM sent WHERE sent.date_sent Between #2002-3-1# And #2002-3-8# GROUP BY sent.mobileno HAVING Count(*)>100)
    the exception is the same
    [Microsoft][ODBC Microsoft Access Driver] Syntax error in FROM clause.

Maybe you are looking for

  • Cryptsetup: Swap encryption with supend-to-disk doesn't work

    Hello Community, i'm trying to get swap encryption with suspend-to-disk support to a working state. On my system only the /home partition is encrypted with cryptsetup-LUKS. I'm using the howto on "Using a swap file" (with /home/swapfile as swap file)

  • Why can't I drag images from Finder to Design View Dreamweaver CC?

    Hey Guys, I'm using OS X Mavericks (10.9) and Adobe DW CC For some reason in both CC and CS6 I can no-longer drag files from Finder (Mac OS X's Explorer) into the design view ( for eg: adding images to a table cell ), the browse button doesn't work p

  • Library of subroutines, Modules

    I 'd like to use different similar modules including both: subroutines and functions to which I can switch with an if- or case statement. The problem is that the subroutines should have similar names. Is there a chance to avoid the conflict of double

  • WLS6.0 sp1 and MS Active Directory

    Hi, Is it possible to configure WLS' LDAP security realm to use MS' Active Directory to authenticate users? A quick yes or no would be appreciated - I'll worry about the finer details of how later!! Regards Laura Allen

  • Is it possible to substitute a .swf file for a .png in the pwdconfirm.css?

    Presently my code in the pwdconfirm.css looks like this: display: block; color: #000; background: #FFF url(../images/vfw_message_logo.png) no-repeat left bottom; padding: 20 20 20 40; width: 200px; height: 40px; border-bottom: 1px solid #000; border-