Fetching metadata via procedure.

Hi ,
I am trying to fetch resultset from an Oracle procedure, which in turn is selecting the data from meta tables (i.e select * from all_tables). I am getting blank data when i try to get this info. via procedure, but if i write simple select statement in my java code, then i get the values properly.
Is there any such restriction in JDBC API's that i can't fetch metadata table values via a database procedure call ??

The question is confusing.
JDBC allows for meta data, for example the names of fields, which one could get when a result set is returned. That isn't the data in the result set but rather the meta data about the result set.
On the other hand so far as I now the following phrase is meainingless both in JDBC and Oracle
"data from meta tables"
A driver is required to return meta data (JDBC) at all so it can certainly choose to return nothing for a stored proc.

Similar Messages

  • Failed to fetch metadata

    I have NW2004S trial version installed without any problems.
    But when dragging a webservice into an iView I have the message ´failed to fetch metadata´. and Portal request failed due to: ....
    I have created DynamicWSProxies in visual admin according to the how to consume enterprise services using VC guide.
    FU2_800 with url: http://erp.esworkplace.sap.com and FU2_800_METADATA with url http://erp.esworkplace.sap.com/sap/bc/srt/wsil

    Hi to all of you,
    I hope you didn't miss the configuration of the proxy settings for your WebServiceProxies:
    1. Go to Visual Admin.
    2. Go to Server->Services->Web Services Container->Settings (on the bottom tabs)
    3. Set the proxy settings (if you have such).
    Restart the WS connector by:
    1.Go to Connector Container->sap.com/com.sap.portal.connectors.ws
    2. Stop and start the connector (using the stop and start buttons on the top toolbar).
    If this still doesn't work, I'd set the WS connector's log level to "ALL" and recreate the problem. The traces are very good and can give you some idea why the connection is broken.
    Regards,
    Natty

  • Getting the metadata of procedures defined inside packages...

    Dear All,
    i want to extract the metadata for procedures and functions in my db.
    i am using the DBMS_METADATA.GET_DDL(ObjectType,ObjectName) to get the metadata of certain objects (PROCEDURES,FUNCTIONS and PACKAGE_BODY)
    however this method is not quiet usefull when my target is to get the metadata for a single procedure/function defined inside package's body', where i dont need
    the whole package body to be returned only the specific Procedure/ Function defined in it...
    it seems that the Package Body is defined as one object regardless of how many Procedures / Functions are defined in it...
    isnt there any place/repository that stores the procedures and functions defined inside a package body along with their metadata explicitly one bye one , so i can
    extract them and search them one bye one...
    Thank you
    Basem Sayej...

    The whole point about defining procedures inside package bodies is that they are private. They are only exposed to those who have the necessary privileges to view the body's source code.
    Cheers, APC
    blog: http://radiofreetooting.blogspot.com

  • Cannot access Diagram metadata via GTL or VB Script

    I'm using PD 16.5 SP03 PL03.
    I need to extract a CSV file that contains selected metadata from the entity attributes that are displayed in a LDM diagram. Nothing works.
    If I create a Generated File containing GTL, no preview tab appears in the diagram properties (this approach works for the model and entities, but not for the diagram).
    If I write a simple VB Script to extract metadata via the DisplayedObjects collection, I get an error message that says the Class doesn't support automation.
    Is there another way?

    Hi,
    You may use the EvaluateTextFor on Object, and use the .Q macro to quote the desired properties.
    Ex.
    <<
    Function %Get%(obj)
       dim sym, sobj, str
       for each sym in obj.Symbols
          if (sym.isKindOf(cls_ObjectSymbol)) then
             if(str <> "") then str = str & vbCrLf
             str = str & sym.Object.EvaluateTextFor("%.Q:ClassName%\t%.Q:Code%\t%.Q:Name%\t%.Q:Comment%", "%CurrentTargetCode%")
          end if
       next
       %Get% = str
    End Function
    >>
    Nice [productive] solution will be to add a template in "NamedObject" with a default description, ie <<%.Q:Code%\t%.Q:Name%\t%.Q:Comment%>>
    that you may override in specific object type. For instance, Entity would display specifc properties, and attributes others.
    You will have a template (say "xlsDump") under NamedObject with a default contents.
    But in Entity, the same template will have additional parent entity for instance, so the same template "xlsDump" will contain <<%.Q:Code%\t%.Q:Name%\t%.Q:Comment%\t[%ParentEntity%?%.Q:ParentEntity.Name%:"No parent"]>>
    Ex.
    NamedObject.xlsDump=
    %.Q:ClassName%\t%.Q:Code%\t%.Q:Name%\t%.Q:Comment%
    Entity.xlsDump=
    %.Q:ClassName%\t%.Q:Code%\t%.Q:Name%\t%.Q:Comment%\t[%ParentEntity%?%.Q:ParentEntity.Name%:"No parent"]\n
    .foreach_item("Attributes")
    %xlsDump%
    .next("\n")
    EntityAttribute.xlsDump=
    %.Q:ClassName%\t%.Q:Code%\t%.Q:Name%\t%.Q:Comment%\t%.Q:DataType%
    You LogicalDiagram.XPreview extended attribute Get Method Script =
    Function %Get%(obj)
       dim sym, sobj, str
       for each sym in obj.Symbols
          if (sym.isKindOf(cls_ObjectSymbol)) then
             if(str <> "") then str = str & vbCrLf
             str = str & sym.Object.EvaluateTextFor("%xlsDump%", "%CurrentTargetCode%")
          end if
       next
       %Get% = str
    End Function
    You will have a preview page as
    <<
    "Entity" "CAR" "Car" "Car vehicle" "Vehicle"
    "Entity Attribute" "NUMBEROFSEATS" "NumberOfSeats" "" "I"
    "Entity Attribute" "TYPE" "Type" "" "VA128"
    "Entity Attribute" "CONDUCTORSEATSLEFT" "ConductorSeatsLeft" "" "BL"
    "Entity" "VEHICLE" "Vehicle" "" "No parent"
    "Entity Attribute" "NUMBEROFSEATS" "NumberOfSeats" "" "I"
    "Entity Attribute" "TYPE" "Type" "" "VA128"
    "Inheritance" "INHERITANCE_1" "Inheritance_1" ""
    >>
    for a simple model Vehicule(NumberOfSeats,Type) <-[inhr]--Car(ConductorSeatsLeft)
    Marc

  • To fetch metadata of previous checked in document

    Hi All,
    Is there a way to fetch metadata value of immediate previously cheked in document of a particuler type.
    Is there a way to interact with database directly from ucm...something like querrinng the database directly thru idocscript or thru the script segments available in the ucm under the rule for profiles tab.
    Or any other suggestion to go abt it.
    Thanks in Advance.

    Hello,
    I think you should write a little bit more about how your scenario looks like in the real life.
    1. the first thing I think of is "Check in Similar" button which appears on the screen when you check in a new item
    2. however, what is "immediate previously checked in document of a type" for you? Do you want use the metadata field "Document Type"? Or, is the distinction based on anything else (e.g. profiles)? Do you want the document of this user, or of any user, who could check it in parallel?
    As for querying the database, do you want to use it to reach the scenario above? Or anything else?
    There are several ways how to reach database from UCM. If you want to use it for the scenario above I guess your first option will be a custom component, which will create a new service for you (unless you can use a standard one). Within this service you will create few queries - custom components provide a framework to do so quite easily.
    J.

  • Is it possible to fetch metadata property in .js file?

    hi,
         Is it possible to fetch metadata property field in .js file.
         if so, can help me with the code or example...
    Regards,
    Fazz

    Using server side java script (ecma) it is possible to fetch,  Not possible with client side javascript directly. Alternative for client side javascript making a ajax json request & then parse it.

  • Failed to fetch metadata from web service

    Hi,
    I am trying to use a webservice in a model. My web service system is defined as http://<server>:50013/?wsdl
    and i can find the web service in the find data tab.
    When I drag the webservice to my model story board I get the following error message:
    Failed to fetch metadata
    Portal request failed due to: Operation {0} not found
    Any help is highly appreciated.
    Best regards,
    Jan

    Solved it. I tried to drag the data service directly into a layer. That did not work. When I drag it on to the storyboard and move it to a layer afterwards it works correctly.

  • SL/Mail 4.1: Cannot Fetch Gmail via POP

    Since upgrading to SL/Mail 4.1, mail.app will no longer fetch gmail via POP access (this worked fine before the upgrade). However, sending mail from mail.app works fine. I get an error dialog, "Mail cannot verify the identity of pop.gmail.com." Clicking the Details button, reveals that the certificate is "imap.gmail.com," even though the account has been set-up as a POP account from within mail.app and in my Gmail account settings. Anyone else notice this? Ideas? Many thanks.

    Having the same problem on my wife's Macbook Pro. I set the account up as a POP account a few days ago and now when I looked at it today, it was both an IMAP AND a POP account. I deleted the account and tried adding it again, but was NOT given the option for custom account setup (that little check box at the first screen for new accounts). The server will not authenticate under POP because it is imap.gmail.com.

  • Fetching Images Via JAVA API

    Hi,
    I am trying to fetch images via Java Api.
    Please look at the code below:
    A2iValueArray imgs1 = null;
    for(int y=0; y<rs1.GetRecordCount(); y++){
         imgs1 = rs1.GetValueAt(y,"Product_Image").GetValueArray();
    It is throwing me a Class cast exception.
    I also tried
    imgs1 = (A2iValueArray) rs1.GetValueAt(y,"Product_Image").GetValueArray();
    but to no avail...
    I am using MDM Sp04..
    Please guide me...

    This Code Worked for me:
              try {     
              A2iResultSet rs1 = catalogData.GetResultSet(search, rsd, null, true, 0);
               A2iValueArray imgs1 = new A2iValueArray();
                   for(int y=0; y<rs1.GetRecordCount(); y++){
                        if(!rs1.GetValueAt(y, "Images").IsNull()){
                        imgs1 = rs1.GetValueAt(y,"Images").GetValueArray();
                        int id = imgs1.GetValueAt(0).GetIntValue();
                        //int id = rs1.GetValueAt(0, "Product_Color").GetIntValue();
                        String imagePath = catalogCache.GetImagePath("Products", id);//"Thumbnail" ,
                        //wdComponentAPI.getMessageManager().reportWarning("Your image is at: " + CACHE_DIRECTORY + "\" + imagePath);
                        System.out.println("imagePath="+imagePath);
                        break;
                   catalogData.Logout();
              } catch (StringException e) {
                   e.printStackTrace();
    Posting your program may help troubleshoot.
    Venkat

  • Performance issue while fetching metadata from Informatica Repository

    I'm working on Informatica 8.6(ETL tool) which contains its own repository to save metadata and using their Mapiing SDK API's I'm developing a java application which fetches the objects from the repository.
    For this purpose by using "mapfwk.jar", i'm first connecting to the repository using RepositoryConnectionManager class and then at the time of fetching the metadata i used getFolder, getSource & getTarget functions.
    Issue: Program is taking to much time for fetching the folders. The time taken by it depends on the number of metadata objects present in it,i.e. as object number increases, time increases.
    Please advise how to reduce time for fetching metadata from repository.
    Source Code:
    #1 - Code for connecting to repository
    protected static String PC_CLIENT_INSTALL_PATH = "E:\\Informatica\\PowerCenter8.6.0\\client\\bin";
         protected static String TARGET_REPO_NAME = "test_rep";
         protected static String REPO_SERVER_HOST = "blrdxp-nfadate";
         protected static String REPO_SERVER_PORT = "6001";
         protected static String ADMIN_USERNAME = "Administrator";
         protected static String ADMIN_PASSWORD = "Administrator";
         protected static String REPO_SERVER_DOMAIN_NAME = "Domain_blrdxp-nfadate";
    protected void initializeRepositoryProps(){
    CachedRepositoryConnectionManager rpMgr = new CachedRepositoryConnectionManager(new PmrepRepositoryConnectionManager());
                      RepoProperties repoProp = new RepoProperties();
                      repoProp.setProperty(RepoPropsConstant.PC_CLIENT_INSTALL_PATH, PC_CLIENT_INSTALL_PATH);
                      repoProp.setProperty(RepoPropsConstant.TARGET_REPO_NAME, TARGET_REPO_NAME);
                      repoProp.setProperty(RepoPropsConstant.REPO_SERVER_DOMAIN_NAME, REPO_SERVER_DOMAIN_NAME);
                      repoProp.setProperty(RepoPropsConstant.REPO_SERVER_HOST, REPO_SERVER_HOST);
                      repoProp.setProperty(RepoPropsConstant.REPO_SERVER_PORT, REPO_SERVER_PORT);
                      repoProp.setProperty(RepoPropsConstant.ADMIN_USERNAME, ADMIN_USERNAME);
                      repoProp.setProperty(RepoPropsConstant.ADMIN_PASSWORD, ADMIN_PASSWORD);
                      rep.setProperties(repoProp);
                      rep.setRepositoryConnectionManager(rpMgr);
    }#2 - Code for fetching metadata
    Vector<Folder> rep_FetchedFolders = new Vector<Folder>();
    public void fetchRepositoryFolders(){
              initializeRepositoryProps();
              System.out.println("Repository Properties set");
              //To fetch Folder
                    Vector<Folder> folders = new Vector<Folder>();
              folders = (Vector<Folder>)rep.getFolder();
                    for(int i=1 ; i < folders.size(); i++){
               Folder t_folder = new Folder(); 
               t_folder.setName(((Folder)folders.get(i)).getName());
               Vector listOfSources = ((Folder)folders.get((i))).getSource();
                            //To fetch Sources from folder
                   for(int b=0; b<listOfSources.size();b++){
                    Source src = ((Source)listOfSources.get(b));
                    t_folder.addSource(src);
              Vector listOfTargets = ((Folder)folders.get((i))).getTarget();
                            //To fetch Sources from folder
                   for(int b=0; b<listOfTargets.size();b++){
                     Target trg = ((Target)listOfTargets.get(b));
                     t_folder.addTarget(trg);
                   rep_FetchedFolders.addElement(t_folder);
              }

    Hi neel007,
    Just use a List instead of a Vector, it's more performant :
    List<Folder> rep_FetchedFolders = new ArrayList<Folder>();If you need to synchronize your list, then
    List<Folder> rep_FetchedFolders = Collections.synchronizedList(new ArrayList<Folder>());Also, if you're using Java 5 or higher and if you're sure listOfTargets contains only Target objects, instead of this
    for(int b=0; b<listOfTargets.size();b++){
       Target trg = ((Target)listOfTargets.get(b));
       t_folder.addTarget(trg);
    }you may do this :
    for (Target trg : listOfTargets) {
       t_folder.addTarget(trg);
    }Edited by: Chicon on May 18, 2009 7:29 AM
    Edited by: Chicon on May 18, 2009 7:35 AM

  • Help me to run pkg via procedure

    i have a package :  
    create or replace
    PACKAGE SUBS_INS_API_SS
    IS
    PROCEDURE SUBSCRIBER_INS_SS
        (SOURCE_SYS_ID IN VARCHAR2,
        TRACKING_ID   IN VARCHAR2,
        ACCOUNT_NO IN VARCHAR2,
        prepaidActDevDetails_tab IN prepaidActDeviceDetails_tabobj,
        ERROR_CODE OUT VARCHAR2);
    END SUBS_INS_API_SS;
    pprepaidActDevDetails_tab  is a plsql table and  prepaidActDeviceDetails_tabobj is an object it contains few variable's check below procedure.
    If i run the above package by giving input's via the below procedure. Then i got an error:
    Error(35,7): PLS-00306: wrong number or types of arguments in call to 'SUBSCRIBER_INS_SS'
    create or replace
    PROCEDURE SAMPLE_EXC
    IS
    ERRORCOD VARCHAR2 (30):= NULL ;
    SOURCE_SYS_ID1 VARCHAR2 (30):= '5698745';
    TRACKING_ID1   VARCHAR2 (30):= '5874125';
    ACCOUNT_NO1    VARCHAR2 (30):= NULL;
    prepaidAccountDetails1         prepaid_act_dvc_details_obj
                                           := prepaid_act_dvc_details_obj  ('CM00000006184',  '00:1C:15:15:15:42', NULL,  'HSD',  NULL, '1',  NULL,  '12',  NULL, NULL);
    BEGIN
          SUBS_INS_API_SS.SUBSCRIBER_INS_SS(SOURCE_SYS_ID1, TRACKING_ID1, ACCOUNT_NO1, prepaidAccountDetails1, ERRORCOD);
           DBMS_OUTPUT.PUT_LINE( ERRORCOD);                                 
    END;
    please help me to run this package via the procedure.

    Moderator Action:
    Stay with your original "how do I run a package" thread from the previous day:
    https://community.oracle.com/thread/2615939
    You already have responses there.
    Keep all information there instead of fragmenting it among separate posts.
    This new thread is locked.

  • Executing Reports via Procedure/Function

    Is it possible to execute a pre-define report created in report builder from a procedure or function outside of the report? I understand SRW.RUN_REPORT is used within a report, but I want to request a report to be executed and passed paramters via a batch proc or func?
    Thanks.

    I think you should be able to do it by executing 'RWCLI' command from the procedure. You can pass all the arguments for running a report with this command.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Brian White ([email protected]):
    Is it possible to execute a pre-define report created in report builder from a procedure or function outside of the report? I understand SRW.RUN_REPORT is used within a report, but I want to request a report to be executed and passed paramters via a batch proc or func?
    Thanks.<HR></BLOCKQUOTE>
    null

  • ITunes window closes when trying to paste metadata via mouse.

    For a while now, when I am editing the metadata in my iTunes window, whether it be music, movies etc, if I try to paste information into the appropriate space using the mouse, the window automatically closes without me being able to enter the data. I can paste info via the paste command in the menu just fine. I'm using iTunes 10.6.1. on an iMac running Snow Leopard 10.6.8. Any idea as to what is going one here?

    There's a link in that article to another article about updating Windows drivers:
    http://support.apple.com/kb/HT1768?viewlocale=en_US
    wiki on ready boost

  • Seized Role but not able to Clear metadata via Command line

    Hi All,
    I have setup a lab in my home for practice and tried to demote a DC in my environment through command line , after transferring a Roles which was on the DC to other,
    i tried below mention command to clean up metadata and remove a Selected DC. 
    1 Ntdsutil ,2 ntdsutil:roles,3 Fsmo maintenance: Connection,4 server connection: connect to server dc3.,5: server connection: quit,6: fsmo maintenance: Seize RID Master(Clicked YES),7: fsmo maintenance: Quit, 8 Ntdsutil: Quit
    After seizing Roles i tried to clean up metadata, below are the step which i have taken to perform it
    1ntdsutil, 2ntdsutil:metadata cleanup,3 metadata cleanup : connection,4 server connections: connect to server dc3,5 server connection : quit, 6 metadata cleanup: select operation target. , 7 select operation target :select domain 0,8 select operation
    target: select sites 0, select operation target : select server 3 , 9 select operation target : Quit, 10 metadata cleanup: remove selected server
    After reaching to the last step no 10. i received a error stating that to clean up the data please put server online.
    Could anyone tell me what step did i missed as all the servers where online and roles was seize successfully, also would like to tell you all that once i go to Active directory sites and services and check the servers the default sites connection are lost
    on DC1,DC2,DC3.
    Please let me know the correct method to perform metadata cleanup.
    Also let me know what other prerequisite should i take to perform apart from transferring roles and Global Catalog should be there on other DC
    Thanks
    Atul Srivastava

    Hi Atul,
    Metadata cleanup is a required procedure after a forced removal of Active Directory Domain Services (AD DS).  Metadata cleanup removes data from AD DS that identifies a domain controller to the replication system.
    We can clean up metadata by using GUI tools, command line, or a script.
    Regarding how to clean up server metadata, the following article can be referred to as reference.
    Clean Up Server Metadata
    http://technet.microsoft.com/en-us/library/cc816907(v=ws.10).aspx
    Best regards,
    Frank Shen

  • Sharepoint 2013 Reporting services not fetching data via linked server

    We have a functional SharePoint 2013 farm in production with WFE (Server 1 , windows server 2012) and WFE ( Server 2 , windows server 2012) and SharePoint databases including report server databases on  (Server 3, which SQL Server 2012 on windows
    server 2012)
    Kerberos Authentication is enabled and Windows Authentication happens. Claims to Windows Service seems to work correctly too. No double hop issue. The SharePoint Reporting Services seem to be configured correctly and Reports get generated as expected
    in the following cases.
     1. If data is being pulled from Server A (SQL Server 2008 R2 Server on Windows Server 2008), Report gets generated no issues.
     2. If data is being pulled from Server B (SQL Server 2008 R2 Server on Windows Server 2008), Report gets generated no issues.
    The problem:-
    We have a view on Server A, which is fetching data from Server B. This report does not get generated. Gives an NT/Authority logon failure. Server B is created as a linked Server on Server A. The setting to run under users security context is checked.
    If I execute Query Builder from Report Builder 3.0, the query on the view gets the data and data is displayed in the report for next 10-15 min but after that the connections gets lost or if the user logs out and logs back in, the connection is lost
    again.
    Has some one experienced a issue like this? Can a report not work on a view getting data from linked server? Or I have missed  some thing really important.
    Any help is highly appreciated?
    cheers!
    Rachna
    Rachna

    Hi,
    From your description, my understanding is that you got an error when you clicked System settings after configuring Reporting Services service application.
    What size did you use for the memory? Please make sure the server has enough memory to run SharePoint and all services.
    In addition, please open
    http://localhost:xxxxx/SecurityTokenServiceApplication/securitytoken.svc to check if there is something about this issue.
    Here is a similar post about this issue, please take a look at:
    http://whitepages.unlimitedviz.com/2012/07/setting-up-reporting-services-2012-with-sharepoint-2013/
    As this issue is about Reporting Services, I suggest you create a new thread on SSRS forum, more experts will assist you with SSRS.
    SSRS forum:
    https://social.technet.microsoft.com/Forums/office/en-US/home?forum=sqlreportingservices
    Best Regards,
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for

  • Bookmarks bar and home page problem in Safari 8.02

    Safari 8.0.2 is driving me mad with it's apparent differences from previous versions. Principally, I no longer have a bookmarks bar and cannot set a home page. So, off I went to the Apple support site at http://www.apple.com/support/mac-apps/safari/

  • How to Import/Export Manage Privileges Setting

    Hi Everyone, I had implemented Security for Analytic object using "Administration>Manage Privileges", Now i want to move the settings to production environment , Is there any way through which i can do tht ?

  • WD My Cloud Mirror 8TB compatibility

    Hi Can anyone tell me if this storage is compatible with AWS from AMAZON?These are the requirements: http://aws.amazon.com/importexport/details/Or is it any WD system compatible? They tell that it's not supported and I want to know why, thing that th

  • ObjectID in CDHDR for Change batch characteristics

    Hi All, I have changed bach characteristic values using MSC2N Transaction. Please let me know the how the object id is composed in CDHDR table for 'CLASSIFY' obectclass. Is there any table that maps material batch plant combination to a object id in

  • After resetting my master password and setting up a new one, Firefox no longer accepts any sort of password...help?

    in a little more depth: at first the master password popup would ask me for my password, and then it would get stuck in a loop of continually asking me to enter the pw (it would apparently accept it, I never got a wrong pw error or anything like that