create the service councils

Hello
I'm trying to write the function that will be me back of metadata information about an object, but I can't get this to work.
Can you please tell me what I need to change or correct here and why I need to change that?
I understand how can I use if I have some number or varchar to return, but im lost now, somehow I can not understand how to return this dbms_metadata thus output.

create or replace function getem( a in varchar2, b in varchar2, c in varchar2 ) return varchar2 is  
str varchar2(500);
begin
SELECT DBMS_METADATA.get_ddl (object_type, object_name, owner) 
        into str from dba_objects 
        WHERE object_type = (UPPER ('a') 
        AND owner = UPPER ('b') 
        AND object_name = UPPER ('c');
return str;
end;
Published by: Vili Dialis may 25, 2009 05:03

Hello

Vili Dialis wrote:
Hello
I'm trying to write the function that will be me back of metadata information about an object, but I can't get this to work.
Can you please tell me what I need to change or correct here and why I need to change that?
I understand how can I use if I have some number or varchar to return, but im lost now, somehow I can not understand how to return this dbms_metadata thus output.

create or replace function getem( a in varchar2, b in varchar2, c in varchar2 ) return varchar2 is
str varchar2(500);
begin
SELECT DBMS_METADATA.get_ddl (object_type, object_name, owner)
into str from dba_objects
WHERE object_type = (UPPER ('a')
AND owner = UPPER ('b')
AND object_name = UPPER ('c');
return str;
end;

You don't want quotes around 'a', 'b' and 'c '.

In other words, if you call getem ('TABLE', 'SCOTT', 'EMP'), then within the function, a 'TABLE', but 'a' is 'a '.

Why do you need to SELECT from dba_objects? You can not just say

RETURN DBMS_METADATA.get_ddl (a, b, c);

?
If this is the funtion is, why not directly call dbms_metadata.get_ddl?

Published by: Frank Kulash, may 25, 2009 08:08

Tags: Database

Similar Questions

  • Failed to create the Service Console

    Hello

    Anyone could answer this, why I can't create service console? For some reason, the service console did not appear as an option in the Network Setup Wizard dialog box. Any clue?

    http://communities.vmware.com/servlet/JiveServlet/downloadImage/6160/ServiceConsoleMissing.jpg

    Thank you

    You use ESXi.

    It is not a service console, and it is not a service console port.

    You manage ESXi using a vmkernel interface.

    André

  • Error in creating the Service for the Service of Bussiness name

    Hi friends
    I create a custom for Service of Bussiness Service program that is used to download data from spotbilling to the BCC. The CM_Sbm_Upload service program consists of ID programs CIPBSEGP, CIPMMRDP, CIPTSATP com. When I give it to the bussiness service I get the error message

    Service missing metainfo for "CM_SBM_UPLOAD."


    pls help me solve this problem.

    Thanks and greetings
    Jean Jacques

    Hello

    I have the same error during my development of a maintenance of page service.
    Please check if the cm.jar is correctly deployed in your splservice.ear and also all other deployment directories.
    You can find them in the window out of eclipse after executing the script "Deploy CM".

    When the cm.jar is deployed, check if the annotations are correct.

    My annotations are which looks like this:

    /**
     * Perform Batch Add.
     *
     * @PageMaintenance (secured = false, service = CMIMDIMP,
     *      body = @DataElement (contents = { @DataField (name = CM_SIMULATION)
     *                  , @DataField (name = XML_REQUEST)}),
     *      actions = { "change"
     *            , "read"},
     *      modules = { "foundation"})
     */
    

    To connect to a Service on Page, you must first create a service program and the name of 'service' of the service program must be
    the name of the annotation of service you specified in your Page Maintenance Service, in my case "CMIMDIMP".

    There are no validation when registering the issuance of service, validation occurs when you save the business.

    BTW. JD - gui.exe allows you to decompile the file cm.jar, but you will not see the annotations!
    I use 7 - zip to view the ear file.

  • PPG_SERVER_ERROR when creating the Service Push channel

    Hello again!

    Once I finally managed to complete the registration process for the Service Push, when I try to register the user, the application throws this result since the createChannel function: 10110. The strange thing is that the user is saved in my page of push service, but cannot receive any push message, so it is basically useless.

    I researched and found that the code means PPG_SERVER_ERROR, which means that something is wrong with the server BlackBerry PPG.

    My question is: what are the causes of this error? Are one of the causes of the responsibility of the developer? How to avoid this error?

    BTW, my onPushTransportReady is not called after this error, so I have no idea what to do about it. Is it because I have use an alert to inform the user of the error? Who would have something to do with it?

    I use 3.2 Cordova and WebWorks 2.0.0.54 SDK, with the Service Push recently updated plugin.

    Thanks in advance!

    It turned out that I needed to put a label to the PPG_URL access in the config.xml file. After that it worked perfectly.

  • Create the service provider ADF

    Hello

    Is there such a service?  I don't see one on ADR, and that surprised me.

    I am aware that if the base charger file, but there are a few problems with it.

    Thank you

    In OER if you search with type "ADF Service" and search for the string "SupplierService" you should see the service named 'Provider' that has a 'createSupplierVO' operation, is this incorrect? Or is the point that the service is not tagged external, assuming that there is a note of support for that. Service Provider WSDL Service is not outsourced (2000254.1).

    --

    Jani Rautiainen

    Relationship with the developers of Applications in fusion

    https://blogs.Oracle.com/fadevrel/

  • PRKO-3115 by creating the service of database management policies

    Hello together,

    I have a mind to Oracle RAC Cluster 12.1.0.2 two node oracle Linux 7 installed and I tried to set up a service for a shared base managed policy, also 12.1.0.2 in this style:

    [ora121@Q4DEUMSY154 ~]$ srvctl add service -db cogn12Tc -pdb cogn12T -service svc_cogn12T -serverpool spRacNodes -cardinality UNIFORM -role primary -policy AUTOMATIC -failovertype SELECT -failovermethod BASIC -failoverretry 180 -failoverdelay 5 -clbgoal SHORT -rlbgoal SERVICE_TIME -dtp FALSE -tafpolicy BASIC
    

    The CDB is cogn12Tc, the cogn12T of the PDB.

    But I get a

    PRKO-3115 : -tafpolicy option cannot be used with policy-managed service svc_cogn12T
    

    I have not found the info (DOC), where Oracle describe, TAF is not able to use by policy successful DB? Is also funny, when I create service without the option - tafpolicy can I activate the TAf by editing:

    [ora121@Q4DEUMSY154 ~]$ srvctl add service -db cogn12Tc -pdb cogn12T -service svc_cogn12T -serverpool spRacNodes -cardinality UNIFORM -role primary -policy AUTOMATIC -failovertype SELECT -failovermethod BASIC -failoverretry 180 -failoverdelay 5 -clbgoal SHORT -rlbgoal SERVICE_TIME -dtp FALSE
    
    [ora121@Q4DEUMSY154 ~]$ srvctl modify service -db cogn12Tc -pdb cogn12T -service svc_cogn12T -tafpolicy BASIC
    
    [ora121@Q4DEUMSY154 ~]$ srvctl config service -service svc_cogn12T -db cogn12Tc
    Service name: svc_cogn12T
    Server pool: spRacNodes
    Cardinality: UNIFORM
    Disconnect: false
    Service role: PRIMARY
    Management policy: AUTOMATIC
    DTP transaction: false
    AQ HA notifications: false
    Global: false
    Commit Outcome: false
    Failover type: SELECT
    Failover method: BASIC
    TAF failover retries: 180
    TAF failover delay: 5
    Connection Load Balancing Goal: SHORT
    Runtime Load Balancing Goal: SERVICE_TIME
    TAF policy specification: BASIC
    Edition:
    Pluggable database name: cogn12T
    Maximum lag time: ANY
    SQL Translation Profile:
    Retention: 86400 seconds
    Replay Initiation Time: 300 seconds
    Session State Consistency:
    GSM Flags: 0
    Service is enabled
    Service is individually enabled on nodes:
    Service is individually disabled on nodes:
    

    As you can see, TAF is at the BASIC level. What's not here?

    A big thank you and best regards,

    David

    Documentation:

    -tafpolicy {BASIC | NONE | PRECONNECT}
    

    Governed by a policy TAF (for managed by administrator databases only).

    Note: You can use PRECONNECT When you specify the -preferred and -available parameters.

  • Unable to create the service in ALBPM Studio 6.0

    Hello

    I'm writing a method that returns a string.
    But now I get an error that says that the return statement cannot be present in the functions.

    Now, I tried all possible ways, but I was not able to create a function.

    Could someone please help me with creating a function in ALBPM. otherwise tell me how should I do to return a string to a method.

    Hello

    I suspect you wrote a method with the return type string, but the method has no return statement.

    Go to the component catalog-> BPM object-> right click on the object BPM and select new method-> give the name of the method. Now opens the window of the method. Go to the propertied tab of the right most Panel. Define the return type as string. In the IME window write your business logic. The mentioned below, the code is for example one.

    String msg = "Hello World";
    return msg;

    Sidonie

  • Cannot create integration service

    Hi friends,

    Try installing informatica 9.1 with the 7.9.6.4 BIAPPS.

    As part of it while trying to create the service integration once after that the repository service has been created, im getting the error while allowing it as below
    Could not execute action....
    
    The service Is could not be enabled due to the following error:
    
    SF_34004 - Service initialization failed.
    I'm not sure why I get the above error.

    I already have configured informatica 9.1 with BIAPPS 7.9.6.3, but @ that point I have strength find the error in the creation of the service of integration.

    Kindly help me with the issue of the above integration service.

    Thanks in advance.

    Kind regards
    Saro

    Hi Benoit,.

    Thanks for the reply. We changed the mode also exclusive to normal, but so too the strength of the error resolved unless and until what I recorded my repository security services user and he gave the privilege of domain service and repository.

    And now all of a sudden the IS created and activated. I'm not sure the reason behind this Setup with BIAPPS 7.9.6.4

    But while I have configured with BIAPPS 7.9.6.3 I force create any user in the repository under the inorder of security to the favor of integration for Up...

    Still not sure why we need to create the user rep in the security for the EAST to work inorder.

    Now my RS and the IS is in place.

    Kind regards
    Saro

  • How to create the database of integrated security

    Hello
    I should create a database and in the next step, install oraclefailsafe to use another server to pass if the first crash. Then I created the SERVER1 database (with all the files on a shared file system).

    Now how can we establish the 'same' database on SERVER2?

    Thank you.

    I'm reading: Oracle® Fail Safe
    Concepts and Administration Guide
    Version 3.3.3 for Windows
    Reference No.. B12070-01
    December

    But do not see the answer to my question.
    Thank you.

    Please tell me if my question is clear?

    http://download.Oracle.com/docs/CD/E10736_01/doc/install.341/e10720/ofsman.htm

    Hope that you will help, as far as failsafe is concerned, you must install the oracle software on the servers participating in the cluster and the database created in the common storage space. That the file password and init copied to servers. You must also create the service in the second server. Then, as mentioned above link to the needs of service created to monitor and start kick on the other node in the cluster.

  • If I delete the backup of the Service Pack files to create more disk space, I have created a potential problem?

    Periodically, I use Disk Cleanup to create more space and speed up the startup time. Today when my computer is on, it took an extra long time but when I ran disk cleanup, the amount of space to win does not jive with the time it took to load. Then I pulled the top "Clean up System Files" and cleaning the my backup files of the Service Pack, I have everything to gain from 920 MB of space.

    Question: If I delete those, am I causing potential damage to my system?
    Thank you.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135
    (The steps # 1 a, 1 b, 1 c, 1 d and 1e)

    Perform a clean boot to determine if background programs slow down your boot time.

    This can help you understand what needs to be done: http://support.microsoft.com/kb/331796

    One by one add back an application at a time to find the software application incriminated.

    J W Stuart: http://www.pagestart.com

  • I created a new Admin account and when I went to her, I got the message: "The service user profile Service has no logon. The user profile Service failed to load.

    I created a new Admin account and when I went to her, I got the message:

    "The service user profile Service has no logon.  The user profile Service failed to load.

    What's up with that?

    Hello

    References to Vista also apply to Windows 7.

    You can try to fix it with Safe Mode - repeatedly press F8 as you bootup. The ADMIN account in trunk
    Mode has no default password (unless someone has changed the password so it should be available).

    Some programs such as the updated Google (if you added the toolbar Google, Chrome or Google Earth)
    has been known to cause this problem.

    Error message when you log on a Windows Vista-based or Windows 7 using computer a
    Temporary profile: "the user profile Service has no logon. Unable to load the user profile.
    http://support.Microsoft.com/kb/947215

    Difficulty "the user profile Service has no logon. User profile cannot be loaded. "Error in Windows 7
    http://www.SevenForums.com/tutorials/186131-user-profile-service-failed-logon-user-profile-cannot-loaded.html

    How to fix error "your user profile was not loaded correctly! You have been connected with a
    temporary profile. "in Vista & Windows 7.
    http://www.Vistax64.com/tutorials/135858-user-profile-error-logged-temporary-profile.html

    BE VERY CAREFUL IF YOU USE THIS ONE:

    DO NOT USE THE ACCOUNT HIDDEN ON A DAILY BASIS! If it corrupts you are TOAST.

    How to enable or disable the built-in Windows 7 Administrator account
    http://www.SevenForums.com/tutorials/507-built-administrator-account-enable-disable.html

    Use the hidden administrator account to lower your user account APPLY / OK and then lift it to ADMIN.
    This allows clear of corruption. Do the same for other accounts if necessary after following the above message.

    You can use the hidden - administrator account to make another account as ADMINISTRATOR with password even
    (or two with the same password) use a test or fix the other.

    You can run the Admin account hidden from the prompt by if necessary.

    How Boot for Windows 7 System Recovery Options or use a Windows 7 boot disk.
    http://www.SevenForums.com/tutorials/668-system-recovery-options.html

    What are the system recovery options in Windows 7?
    http://Windows.Microsoft.com/en-us/Windows7/what-are-the-system-recovery-options-in-Windows-7

    How to create a Windows 7 system repair disc
    http://www.SevenForums.com/tutorials/2083-system-repair-disc-create.html

    If you cannot access your old account, you can still use an Admin to migrate to another (don't forget
    always leave to an Admin who is not used except for testing and difficulty account).

    Difficulty of a corrupted user profile
    http://windowshelp.Microsoft.com/Windows/en-AU/help/769495bf-035C-4764-A538-c9b05c22001e1033.mspx

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • "The service user profile Service has no logon. User profile cannot be loaded. "and new users are not created in the registry, that is it please help

    I am trying to create new users on my computer windows 8 but it dosent open, I get a message "the service user profile service has no logon. User profile cannot be loaded. "and new users are not created in the registry, that is it please help

    I had the same problem.  Get the «user profile service has no user of logan...» "I tried everything I found online and nothing has worked.  Then I reinforced to the back and looked at the whole picture.  It turns out that it wasn't a computer after all problem but a question of the user.  Under folder C:/users/default in the end I managed to delete all subfolders except appdata.  So when you went to create a new user he could not find the correct files to copy to the new profile to store information in.  To ensure that I had a correct records back into the C:/users/default folder, I went on another computer and just copy paste the new default folder from another computer in the folder users on my computer and erased mine.  Of course I could create my comments and new users account once again.  Finally.
  • How to create the EM Database Control in Windows, if the Service has not been created initially

    Hi all.

    The procedure to re-create EM 11 g Database Control is described in note Doc-ID 278100.1 .

    I have to administer a new database that is located on a Windows machine and I find the Service control database EM missing, so I assume that the database has been created without EM.

    My question is this:

    Can I use the procedure described on Doc-ID 278100.1 ?, I mean it is to recreate but I guess it still applies for a new installation.

    Thanks in advance!.

    Hello

    You can continue with the steps in the doc - id 278100.1

    Concerning

    Rami

  • vCenter Service was able to start with the error failed to create the front of SINGLE sign-on: vmodl.fault.SystemError

    Hello

    Can someone guide me how to solve this error? vCenter service is not getting started, I looked in the newspapers vpxd and found the following error.

    vCenter Service was able to start with the error failed to create the front of SINGLE sign-on: vmodl.fault.SystemError

    Thank you

    John

    Hi John,.

    This is due to host on the vCenter server entries. Please try the procedure below

    Connect to the vCenter server, edit the/drivers/etc/hosts file in Notepad

    C:\Windows\System32\drivers\etc\hosts

    # 127.0.0.1 localhost

    Note: If a line does not exist in the hosts file, add it at the end of the text.

    #) to remove the comment from the line of IPv4.

    1. 127.0.0.1 localhost
      ·  Save and close the file.
    • localhost127.0.0.1.

      • GoTo services.msc and start VMware Virtual Center Services.

    Thank you

    Venance

  • Creating the proxy service

    When I create the proxy service and choose to be created from the WSDL, I have two options for selection of the port and binding, could explain the difference in choosing between the port or binding?

    Thank you!

    This might help... Configuration of the Proxy Services and Business Services

Maybe you are looking for