How Can I get all the values of a DBMS package?

Hi all
I'm using this "dbms_output.put_line(DBMS_DB_VERSION.VERSION || '.' ||DBMS_DB_VERSION.RELEASE);" to show the version. But how Can I get the all the values from DBMS_DB_VERSION ? Is there a common way ?
Thanks .
Best
Laurence

Hi,
Don't think that's possible. Even if it were, you wouldn't be able to use/display BOOLEAN type in SQL.
If you just aim to see what they are, you could do something like this
select text
  from all_source
where owner = 'SYS'
   and name = 'DBMS_DB_VERSION'
   and type = 'PACKAGE';Or even
select dbms_metadata.get_ddl('PACKAGE', 'DBMS_DB_VERSION', 'SYS') from dual;My version is:
SQL> select * from v$version where rownum = 1;
BANNER                                                         
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
1 row selectedIn 11g you also have [PL/SCOPE|http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10471/adfns_plscope.htm#ADFNS02203] which might help you even more.
Regards
Peter

Similar Messages

  • How can I get all the values of a String array profile property using javascript?

    I am trying to build functionality into our site that records all products added to the basket against a user's profile.
    I have so far been able to store the product codes against the profile as a property using Ajax:
           var dataString = ":formid=addProduct&:formstart=/apps/thread/templates/page_product/jcr:content/par/produc t/formstart&:redirect=/content/thread/en/user/cart.html&productId=151515:profile="+profile ;
                         $.ajax({ 
                type: "POST", 
                url: "/content/women/evening/dresses/l-k-bennett-davinadress.html", 
                data: dataString, 
                success: function(data) { 
    In this example I have hardcoded a product ID of 151515.
    In order to save the property as a multi string field you simply replace &productId=151515 with &productId=151515&productId=131313&productId=141414 or as many extra values as you want to build into that string. This stores a productId property against a user profile.
    The issue comes from calling that data back. Using var value = CQ_Analytics.ProfileDataMgr.getProperty("productId") I can get the first value of this array (or the single value if only one is stored).
    However there does not seem to be a way to get any of the other stored values in the array using getProperty. Does anyone know how I can achieve this?

    Hi,
    Don't think that's possible. Even if it were, you wouldn't be able to use/display BOOLEAN type in SQL.
    If you just aim to see what they are, you could do something like this
    select text
      from all_source
    where owner = 'SYS'
       and name = 'DBMS_DB_VERSION'
       and type = 'PACKAGE';Or even
    select dbms_metadata.get_ddl('PACKAGE', 'DBMS_DB_VERSION', 'SYS') from dual;My version is:
    SQL> select * from v$version where rownum = 1;
    BANNER                                                         
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    1 row selectedIn 11g you also have [PL/SCOPE|http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10471/adfns_plscope.htm#ADFNS02203] which might help you even more.
    Regards
    Peter

  • How can i get all these values in single row with comma separated?

    I have a table "abxx" with column "absg" Number(3)
    which is having following rows
    absg
    1
    3
    56
    232
    43
    436
    23
    677
    545
    367
    xxxxxx No of rows
    How can i get all these values in single row with comma separated?
    Like
    output_absg
    1,3,56,232,43,436,23,677,545,367,..,..,...............
    Can you send the query Plz!

    These all will do the same
    create or replace type string_agg_type as object
    2 (
    3 total varchar2(4000),
    4
    5 static function
    6 ODCIAggregateInitialize(sctx IN OUT string_agg_type )
    7 return number,
    8
    9 member function
    10 ODCIAggregateIterate(self IN OUT string_agg_type ,
    11 value IN varchar2 )
    12 return number,
    13
    14 member function
    15 ODCIAggregateTerminate(self IN string_agg_type,
    16 returnValue OUT varchar2,
    17 flags IN number)
    18 return number,
    19
    20 member function
    21 ODCIAggregateMerge(self IN OUT string_agg_type,
    22 ctx2 IN string_agg_type)
    23 return number
    24 );
    25 /
    create or replace type body string_agg_type
    2 is
    3
    4 static function ODCIAggregateInitialize(sctx IN OUT string_agg_type)
    5 return number
    6 is
    7 begin
    8 sctx := string_agg_type( null );
    9 return ODCIConst.Success;
    10 end;
    11
    12 member function ODCIAggregateIterate(self IN OUT string_agg_type,
    13 value IN varchar2 )
    14 return number
    15 is
    16 begin
    17 self.total := self.total || ',' || value;
    18 return ODCIConst.Success;
    19 end;
    20
    21 member function ODCIAggregateTerminate(self IN string_agg_type,
    22 returnValue OUT varchar2,
    23 flags IN number)
    24 return number
    25 is
    26 begin
    27 returnValue := ltrim(self.total,',');
    28 return ODCIConst.Success;
    29 end;
    30
    31 member function ODCIAggregateMerge(self IN OUT string_agg_type,
    32 ctx2 IN string_agg_type)
    33 return number
    34 is
    35 begin
    36 self.total := self.total || ctx2.total;
    37 return ODCIConst.Success;
    38 end;
    39
    40
    41 end;
    42 /
    Type body created.
    [email protected]>
    [email protected]> CREATE or replace
    2 FUNCTION stragg(input varchar2 )
    3 RETURN varchar2
    4 PARALLEL_ENABLE AGGREGATE USING string_agg_type;
    5 /
    CREATE OR REPLACE FUNCTION get_employees (p_deptno in emp.deptno%TYPE)
    RETURN VARCHAR2
    IS
    l_text VARCHAR2(32767) := NULL;
    BEGIN
    FOR cur_rec IN (SELECT ename FROM emp WHERE deptno = p_deptno) LOOP
    l_text := l_text || ',' || cur_rec.ename;
    END LOOP;
    RETURN LTRIM(l_text, ',');
    END;
    SHOW ERRORS
    The function can then be incorporated into a query as follows.
    COLUMN employees FORMAT A50
    SELECT deptno,
    get_employees(deptno) AS employees
    FROM emp
    GROUP by deptno;
    ###########################################3
    SELECT SUBSTR(STR,2) FROM
    (SELECT SYS_CONNECT_BY_PATH(n,',')
    STR ,LENGTH(SYS_CONNECT_BY_PATH(n,',')) LN
    FROM
    SELECT N,rownum rn from t )
    CONNECT BY rn = PRIOR RN+1
    ORDER BY LN desc )
    WHERE ROWNUM=1
    declare
    str varchar2(32767);
    begin
    for i in (select sal from emp) loop
    str:= str || i.sal ||',' ;
    end loop;
    dbms_output.put_line(str);
    end;
    COLUMN employees FORMAT A50
    SELECT e.deptno,
    get_employees(e.deptno) AS employees
    FROM (SELECT DISTINCT deptno
    FROM emp) e;
    DEPTNO EMPLOYEES
    10 CLARK,KING,MILLER
    20 SMITH,JONES,SCOTT,ADAMS,FORD
    30 ALLEN,WARD,MARTIN,BLAKE,TURNER,JAMES
    CREATE OR REPLACE FUNCTION concatenate_list (p_cursor IN SYS_REFCURSOR)
    RETURN VARCHAR2
    IS
    l_return VARCHAR2(32767);
    l_temp VARCHAR2(32767);
    BEGIN
    LOOP
    FETCH p_cursor
    INTO l_temp;
    EXIT WHEN p_cursor%NOTFOUND;
    l_return := l_return || ',' || l_temp;
    END LOOP;
    RETURN LTRIM(l_return, ',');
    END;
    COLUMN employees FORMAT A50
    SELECT e1.deptno,
    concatenate_list(CURSOR(SELECT e2.ename FROM emp e2 WHERE e2.deptno = e1.deptno)) employees
    FROM emp e1
    GROUP BY e1.deptno;
    DEPTNO EMPLOYEES
    10 CLARK,KING,MILLER
    20 SMITH,JONES,SCOTT,ADAMS,FORD
    30 ALLEN,WARD,MARTIN,BLAKE,TURNER,JAMES
    CREATE OR REPLACE TYPE t_string_agg AS OBJECT
    g_string VARCHAR2(32767),
    STATIC FUNCTION ODCIAggregateInitialize(sctx IN OUT t_string_agg)
    RETURN NUMBER,
    MEMBER FUNCTION ODCIAggregateIterate(self IN OUT t_string_agg,
    value IN VARCHAR2 )
    RETURN NUMBER,
    MEMBER FUNCTION ODCIAggregateTerminate(self IN t_string_agg,
    returnValue OUT VARCHAR2,
    flags IN NUMBER)
    RETURN NUMBER,
    MEMBER FUNCTION ODCIAggregateMerge(self IN OUT t_string_agg,
    ctx2 IN t_string_agg)
    RETURN NUMBER
    SHOW ERRORS
    CREATE OR REPLACE TYPE BODY t_string_agg IS
    STATIC FUNCTION ODCIAggregateInitialize(sctx IN OUT t_string_agg)
    RETURN NUMBER IS
    BEGIN
    sctx := t_string_agg(NULL);
    RETURN ODCIConst.Success;
    END;
    MEMBER FUNCTION ODCIAggregateIterate(self IN OUT t_string_agg,
    value IN VARCHAR2 )
    RETURN NUMBER IS
    BEGIN
    SELF.g_string := self.g_string || ',' || value;
    RETURN ODCIConst.Success;
    END;
    MEMBER FUNCTION ODCIAggregateTerminate(self IN t_string_agg,
    returnValue OUT VARCHAR2,
    flags IN NUMBER)
    RETURN NUMBER IS
    BEGIN
    returnValue := RTRIM(LTRIM(SELF.g_string, ','), ',');
    RETURN ODCIConst.Success;
    END;
    MEMBER FUNCTION ODCIAggregateMerge(self IN OUT t_string_agg,
    ctx2 IN t_string_agg)
    RETURN NUMBER IS
    BEGIN
    SELF.g_string := SELF.g_string || ',' || ctx2.g_string;
    RETURN ODCIConst.Success;
    END;
    END;
    SHOW ERRORS
    CREATE OR REPLACE FUNCTION string_agg (p_input VARCHAR2)
    RETURN VARCHAR2
    PARALLEL_ENABLE AGGREGATE USING t_string_agg;
    /

  • When creating a book how can I get all the photos from an album to show up in the order they were in the album?

    When creating a book in iphoto, how can I get all the photos from the album I want to use to show up in the order that they are in the album?  When I tried to use the option to add my own photos instead of having the program "flow" them, they showed up all mixed up.

    iPhoto puts them in the book in chronological order.  So to get your photos from an album into an iPhoto book in the same order you will need to use the Photos ➙ Batch Change ➙ Date menu option and set them all to the same date with a 1 minute time difference between each. 
    OT

  • How can i get all the users from weblogic server?

    how can i get all the users from weblogic server?
    i have configurated a LDAP server using iPlanet and
    in weblogic server console i see those users from LDAP
    server. but how can i get all the users in my program
    from weblogic server instead of LDAP server?
    BTW,how to configure a RDBMSAuthenticator and what should i do
    in Oracle? which tables should i create? and how are their architectures?
    Thanks
    Daniel

    BTW, i use weblogic platform 8.1
    "Daniel" <[email protected]> дÈëÓʼþ
    news:[email protected]..
    how can i get all the users from weblogic server?
    i have configurated a LDAP server using iPlanet and
    in weblogic server console i see those users from LDAP
    server. but how can i get all the users in my program
    from weblogic server instead of LDAP server?
    BTW,how to configure a RDBMSAuthenticator and what should i do
    in Oracle? which tables should i create? and how are their architectures?
    Thanks
    Daniel

  • How can I get all the stuff from my old iPad 2 to my new iPad 2? I have an apple id and have synced and backed up my old iPad 2 regularly.

    How can I get all the stuff from my old iPad 2 to my new iPad 2? I have an apple id and have synced and backed up my old iPad 2 regularly.

    Sky is right you can restore the old backup and it will not affect the old iPad
    To make sure do this:
    1. If you have the old one then just turn off wi-fi and the iPad (that's just for your peace of mind)
    2. Put new iPad on airplane mode (just for no interruptions )
    3. Connect it (while it's on, don't shut it down)
    4. Follow prompts and when it asks if you want to setup as new or restore CHOOSE: RESTORE
    5. It will make its magic (just wait for it to sync, restarts, and finishes) it might ask you to update software if it does just accept
    6. You can rename your new iPad like that you can have a fresh back up
    7. ENJOY your new iPad
    ----------OR-----------
    1. Do the above steps 1, 2, 3.
    2. On step 4 you can choose to set up as new
    3. Then you can choose what to sync on it (click on iPad on the left panel then the tabs on top you choose what you want on it (you can also do that if you restore)
    4. Follow steps 5, 6, 7.
    ****If you don't have your old iPad you can remove it from your account ****
    ****Also when they sync it to a new computer it will setup as new unless they had an old one then they will restore it their old one****
    ****if you have it connected with your MobileMe or iCloud and you have the find my _____ you can also wipe it as soon as it comes online****
    LET ME KNOW IF YOU HAVE ANY QUESTIONS OR CONCERNS
    AGAIN ENJOY YOUR NEW IPAD!!!

  • How can I get all the print on my screen to be larger?

    How can I get all of the print on my screen to be larger?

    Thank you for helping me with the size of the print on my screen. The suggestion you made works well with the email font. I really wanted all the print on my computer to be larger. (Some of the print seems to be way too small.) Someone suggested I change the resolution settings. I did this, and changed it to 1024 X 640. That changed the size of the font on the toolbar at the top of the page, and that is what I really wanted, as well as all the other print on my screen. Nonetheless, I would like to thank you for your very helpful and prompt reply to my question.
    Sincerely,
    Wayne10

  • How can i get all the records from three tables(not common records)

    Hi
    I have four base tables at R/3-Side. And i need to extract them from R/3-Side.
    And i dont have any standard extractor for these tables .
    If i create a 'View' on top of these tables. Then it will give only commom records among the three tables.
    But i want all the records from three base tables (not only common).
    So how can i get the all records from three tables. please let me know
    kumar

    You can create separate 3 datasources for three tables and extract data to BW. There you can implement business login to build relation between this data.

  • How can i get all java class names from a package using reflection?

    hi,
    can i get all classes name from a package using reflection or any other way?
    If possible plz give the code with example.

    You can't, because the package doesn't have to be on the local machine. It could be ANYWHERE.
    For example, via a URLClassLoader (ie from the internet) I could load a class called:
    com.paperstack.NobodyExpectsTheSpanishInquisitionI haven't written it yet. But I might tomorrow. How are you going to determine if that class is in the package?
    This subject comes up a lot. If you want to do something a bit like what you're asking for (but not quite) there are plenty of threads on the subject. Use google and/or the forum search facility to find them.
    But the answer to your question, as you asked it, is "you can't do that".

  • I lost my laptop I didn't back up and I just bought a new one .How can I get all the songs I bought in itunes store back to my new laptop??

    can someone help me please?
    I lost my laptop on Monday and I didn't back up. I just bought a new macbook air so I know I have to install all my applications and softwares again but I was told I could get my old itunes library I mean all the music I bought back in my new laptop. can someone tell me how to do it or if I can?

    Sorry, but officially Apple does not allow redownloads of purchased items other than iPhone/iPod touch applications and iBooks. It's your responsibility to make backup copies (as iTunes itself advises) in case something goes wrong with your system, as unfortunately it apparently did in your case, and you lose all the information on your hard drive. The official statement of their policy can be found here, among other places.
    For apps, look here for instructions on redownloading.  For songs, movies, and videos, if you don't have a backup of your purchased items, either on external media or another computer and don't have them on an iOS device (iPhone, iPod touch, iPad), you're probably out of luck and will need to repurchase your content.
    If you have your content on an iOS device, post back and someone here can help you get them restored. Otherwise you can try contacting iTunes Store Customer Service (select the "Music Purchases" or "Video Purchases" category, as appropriate, then "Lost or Missing Items". You'll find either an "Express Lane" button - just follow the instructions to get to the contact form - or an "Email Us" button) ") and explaining what happened. Reportedly in some cases Apple has allowed redownloading on a one-time basis. But don't count on it. 
    Regards.

  • How can I get all the Listeners of an ObservableMap?

    This is my use case:
    A MapListener can be added/removed to an ObservableMap in any node. To remove a listener I need a reference to the listener object to use the removeMapListener(MapListener listener) method. But if the listener was registered in the node A, and it will be removed by the node B how do I get this reference in this node?
    This can be easily solve if there is a way to get a Set of all the active MapListerner that an ObservableMap have.
    Thanks in advance,

    ggarciao.com wrote:
    OK ... this is very interesting. So, what happen if the node that registered the event goes down?
    What I actually need is a way to register clustered-aware events that can be created/removed from any node, and the cluster should guarantee its execution. The use case? a workflow implementation.
    I have several entities with an state field. every time that the state field change, I need to capture that event and do something (like update another system).
    There is a way to do this using listeners in coherence?
    Thanks in advance, and sorry for the delay (vacation) :-)Yes, there are several kind of events and event listeners.
    For your purpose you can take two approaches.
    You can either have a cache listener which listens for all changes in a cache and submits events to some other place.
    Alternatively, you can have a backing map listener which would put events into another cache on the same service and you would syphon the content of this cache to your external system. In the Coherence Incubator there is the Event Distribution pattern and Push Replication pattern projects which provide functionality to achieve this. It has been indicated at on several Coherence SIG meetings that a later Coherence release is going to contain the functionality of these projects out-of-the-box but I believe specific release version and timeline for that release is not confirmed yet, so your safe bet at the moment is the Coherence Incubator (Release 10, I believe is the latest, which you can find at http://coherence.oracle.com/display/INC10/Home ).
    Best regards,
    Robert

  • How can I get all the options of Field Point Explorer 3.0.2 in Measuremen​t and Automation Explorer 3.1?

    I am a student using LabVIEW and Compact Field Point to implement a
    senior design project in Electrical and Computer Engineering.  We
    have LabVIEW 7.1 and a cFP-2020 and additional modules.  We are
    trying to use the CTR-500 module to output a pulse train to drive a
    stepper motor.  We have found instructions online of how to do
    this, but they all use Field Point Explorer.  The instructions
    make use of options in Field Point Explorer that are not included in
    Measurement and Automation Explorer (the software included with the
    cFP).
    I have downloaded Field Point Explorer 3.0.2 and followed the
    directions.  Now, in LabVIEW, when I using the newly created .iak
    file, I get a dialogue asking to find the SubVI: 'FP Read (Float Array
    -IO).vi'.  Included with LabVIEW are subvis for FP Read, but not
    with the float array part.  So I figure I cannot use Field Point
    Explorer created .iaks with LabVIEW 7.1.  So how cannot I access
    the same options in Measurement and Automation that I was able to find
    in Field Point Explorer?
    Thanks

    Hi,
    FieldPoint Explorer is no longer used to configure FieldPoint systems. However, I do not think that the configuring your system in FieldPoint Explorer is causing the error.
    FieldPoint systems are now setup in Measurement and Automation Explorer (MAX).  Information on setting up FieldPoint systems in MAX can be found in the MAX help under: Installed Products>> FieldPoint. Also, I recommend upgrading to the latest FieldPoint driver and version of MAX.  The FieldPoint VI's will be slightly different when you upgrade, so there is a good chance that this will eliminate the error.
    Regards,
    Hal L.

  • How can I get ALL the user info from WWW_FLOW_FND_USER -table?

    Hi.
    I use HTML DB authentication and therefore all my user information is stored in HTML DB tables. I can use :APP_USER to get USER_NAME, but in my application I need to have also USER_ID, FIRST_NAME, LAST_NAME and EMAIL_ADDRESS fields from database. I don't want to change any database/schema security level so I cannot read directly from WWW_FLOW_FND_USER -table when I am inside in SCOTT -schema/sec.level.
    How to read all the information?

    Thank you for your help, but I cannot find any information about backage wwv_flow_user_api on OTN or in HTML DB documentation.
    Where to start?

  • If I change a file name, how can I get all the links to update?

    I've recently finished my webpage
    (kensingtonconcertseries.com),.....then my client wanted to change
    the name of one of his pages from 'Marold Duo' to
    'Rodewald-Morebello Duo.' All of my links to that page are to the
    original page(MaroldDuo.html). Arrrhhhhh!!! Is there anyway I can
    change the name of the page and have all the links within the
    website update automatically?
    I figured out my problem...make a copy and rename it and put
    it on the server. Simple....eventually, I'll have to get rid of the
    original file, but for now works well.

    On Sun, 3 Feb 2008 22:55:19 +0000 (UTC), "kai1111"
    <[email protected]> wrote:
    >I've recently finished my webpage
    (kensingtonconcertseries.com),.....then my
    >client wanted to change the name of one of his pages from
    'Marold Duo' to
    >'Rodewald-Morebello Duo.' All of my links to that page
    are to the original
    >page(MaroldDuo.html). Arrrhhhhh!!! Is there anyway I can
    change the name of
    >the page and have all the links within the website update
    automatically?
    If you change a file name within Dw's File manager - it will
    offer to
    update all pages linked to it, accept that invitation
    ~Malcolm N....
    ~

  • How can I get all the lessons on the disc (CIB)?

    I bought Adobe Photoshop Elements and Premiere Elements bundled together and I like the look of both. I also got Adobe Premiere Elements 11 Classroom in a Book. (The print in this book, by the way, is almost too small to read.) My question is this: After following all the instructions about "Copying the Classroom in a Book files" only five of the lessons went into the folder on my hard drive. Here's the message I got, "Can't read from the source file or disk." Could the disc be messed up?
    At least I got five lessons to work with but there are supposed to be twelve. Can anyone give me the magic button to click so that I can access all twelve lessons? It's kind of depressing to start my quest to learn Premiere Elements like this. 

    And, some other information links
    Online User Guide http://help.adobe.com/en_US/premiereelements/using/index.html
    -Page to download current PDF http://helpx.adobe.com/premiere-elements.html
    Importing Video http://forums.adobe.com/thread/1065281
    -and project settings http://forums.adobe.com/thread/1112086
    Saving & Sharing http://forums.adobe.com/thread/1137128
    -Sharing to DVD or BluRay http://forums.adobe.com/thread/1137645
    -Sharing for Movies http://forums.adobe.com/thread/1051093
    -Sharing for Computer http://forums.adobe.com/thread/1058237
    Steve's Basic Training Tutorials... steps are the same for several versions
    -http://forums.adobe.com/thread/537685
    -v11 http://www.amazon.com/Muvipix-Guide-Premiere-Elements-version/dp/1479311200/
    FAQ http://forums.adobe.com/community/premiere_elements/premiere_elements_faq
    TIPS http://forums.adobe.com/community/premiere_elements/premiere_elements_tips
    Another help site http://muvipix.com/ or http://muvipix.com/phpBB3/

Maybe you are looking for