How to declare synonym for a package function with a DBLink

Hi,
I have a PL/SQL package 'pkg'
and a function in the package 'func'
at another db using a dblink.
How to I create the correct syntax to create the synonym for this package and function.
create synonym --- for ---@dblink
Thanks.

CREATE SYNONYM <name> FOR <OWNER>.<OBJECT>@<DB_LINK>
{code}
the object in this case would be pkg.func
Edited by: Tyson Jouglet on Sep 25, 2008 5:12 PM                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • How to declare class for library like function

    Hey guys I want to declare class Math and define method subtrction so that i can use it in other class like
    package p1
    public class Math
    Math( ){}
    int Subtration ( int a, int b)
    return (a-b)
    package p2
    import p1.*;
    Public Class Test
    Test()
    int somenumber=Math.Subtration(3,4);
    For some reason I cannot see any methods inside Math class. when i type
    somenumber = Math. it show me only one option and that is 'class' instead of mathods inside Math. any thoughts?
    thx

    Yes I am aware of Math class in java. The question is
    how do i declare a class and call it's method in some
    other class with out declaring an object of that
    class.
    Like I can just call Math.sqrt(4) with out
    specifically declaring Math as an object. I want to
    declare my own class which has some methods I wish to
    call in some other class.MyClass.someMethod(). Just make sure that the methos is actually declared static. I suggest looking up the static keyword to find out what it means.

  • HT204053 How Do I Pay For More ICloud Storage with my Itunes Account.

    How Do I Pay For More ICloud Storage with my ITunes Account Balance?

    You can refer to this article for help.
    iCloud: Purchasing iCloud Storage and Billing

  • How do you copy, for example I work with blue prints and I want to copy a section and copy into another new page?

    How do you copy, for example I work with blue prints and I want to copy a section and copy into another new page?

    Forgot to add that it would be an adjustment layer with some kind of mask on it already. The mask is uncentered when copy and pasted which throws it off.
    I guess the same question would go towards doing the same for an object. How to copy and paste it over to a new doc, keeping its position within the document? is this possible?

  • How to Generate 997 for different trading partner with different Interchang

    How to Generate 997 for different trading partner with different InterchangIDS
    We are planning to use same working “ABC -> XYZ (Host)” 850 “ecs” file even for “EFG -> XYZ (Host)” 850 Transaction. And we have successfully implemented without any issues.
    We wanted to send 997 Acknowledgement in case of “EFG -> XYZ (Host)” 850 transaction.
    In this case also we would like to use same “ecs” file which has been used for “XYZ (Host) -> ABC”.
    After adding the 997 capabilities to Stanley I don’t see any extra capability added to “XYZ (Host)” trading partner.
    The generated 997 for Stanely EDI file doesn’t reflect the “XYZ (Host)” trading partner Interchange ID. It is getting reflected the previous 997 Transaction “XYZ (Host)” Intercahnge ID.
    We use following Interchange ID’s
    ABC = 005381447
    XYZ (Host) = 049894764
    EFZ = SWEOT30013
    XYZ (Host) = 5273851T
    The 997 which is generated has the InterchangeID as this “049894764” instead of “5273851T”
    Regards
    Ravi

    Hi Ravi,
    You have to have the two Delivery Channels under Host TP's communication capability. One host delivery channel should be used with one TP only and will have specific values to that TP.
    Go to the Exchange Protocol Parameters of Host TP (XYZ) delivery channel (which you are using in the agreement with EFZ) and provide the required values here. Revalidate and redeploy the agreements and run a test. Let us know if you still face issue.
    Regards,
    Anuj

  • How to See Hierarchy for a Package

    I am new to Jdeveloper and am used to certain features in Eclipse which I can't seem to replicate in Jdev.
    One nice feature of the Hierarchy View in Eclipse is I can drag and drop ("show view hierarchy") a package into the hierarchy window and see the entire class /interface hierarchy in the view.
    I cannot seem to make this happen in JDev.

    Thank you, yes, I am using the hierarchy window. Forgive me for not being more precise.
    In using the Jdev Hierarchy window I notice it does not work like eclipse:
    1. I cannot show an entire hierarchy for a package (all the class files show in a hierarchy)
    2. It shows the hierarchy upside down! Why is this? Why show a classe's supertype below it? this is very visually counterintuitive

  • How to use a mysql built-in function with dataprovider

    hi.
    I want to use a mysql built-in function, for example, MD5() on a column when updating a table with dataprovider.
    Something like this doesn't work:
    MyDataProviderOne.setValue("tablename.field_name", "MD5('some text')");
    How should it be done?
    thanks.
    Mike.

    hi.
    thanks. this helped, but I'd like to use also different functions, that's why, I'd rather do it by MySQL built-in functions with dataprovider... Is there any way to do that?
    best regards.
    Mike.

  • Pass more parameter to the packaged function with REMAP_DATA in EXPDP

    1) can we pass more than one parameter to the packaged function specified in REMAP_DATA during DATA pump export?
    2) if yes to point#1 then, how can we pass rownum & some other columns value in the same record passed into the function?

    when all else fails, Read The Fine Manual
    http://download.oracle.com/docs/cd/E11882_01/server.112/e16536/dp_export.htm#sthref115

  • How to create schema for Header and Footer with pipe delimiter file BPEL11g

    Hi all,
    I have issule creating Schema for Header and Footer with body file .The file format is Pipe delimiter.The following format below like is...
    Softeware Components:File Adapter(Read) 11g,
    1|1211|000|577|5444
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|4544|000|yted
    I hope get the sollution for this from this Forum..Please help me out..Thankyou.

    You mean how many rows or columns..?
    If coloumns means 5 and rows only one(1).

  • Technology P2P with JAVA (How can i do for implement this tech with JAVA B)

    Thanks for read this message,,, I will glad with you if you can help me...
    I would like desing, make, build, a point to point aplication with JAVA Builder, I have been reading about sockets but its not enought,,,,,,
    can you help me????
    Thanks

    Well , thanxs for take attention,,,
    I need some information about Point to Point tech because I would like to make an aplication with JAVA Builder...
    First step is to know how works the point to point...could you give me some links?
    Second step is to know how can I do for implement this tech?
    Third step is to know Is Java Builder the most indicate languaje for this aplication?
    Fourth step is - if Java Buider is the indicate tool, What have to know for make the aplication?
    Well,,I dont speak english very well but is the best that i can do?
    BYE

  • How can i do for force disk encryption with time Machine by MCX

    Hi Hello
    I have a Lion server and my clients Mac Os X, and when the users use time machine for backup data, i want force encrypt disk
    How i can do for force that by mcx ?
    thanks for your help

    No. A Time Machine backup drive should have at least twice the capacity of the drive it backs up. You would need at least a 4 TB backup drive for Time Machine.
    Might I suggest as an alternative that you not use Time Machine but a third-party backup utility that simply overwrites older files with new ones such that the backup drive can be the same capacity as the drive backed up.
    Suggested Backup Software
      1. Carbon Copy Cloner
      2. Get Backup
      3. Deja Vu
      4. SuperDuper!
      5. Synk Pro
      6. Tri-Backup
    Others may be found at MacUpdate.
    Visit The XLab FAQs and read the FAQ on backup and restore.  Also read How to Back Up and Restore Your Files.

  • How do I search for just a folder with Spotlight

    How do I search for a folder with Spotlight, not a file?  Spotlight is a great tool for finding a file, but often I just want to locat a folder.
    When I find a file, how to I see the path to this file?
    These are probably obvious question for longtime Mac users, but I come from the Windows world.

    Activate the Finder's window. Put the folder name in the search field in the Finder's toolbar. Enter COMMAND-F which should change the Finder's window and give a toolbar above the column headers:
    If you click on the dropdown menu with "Any" you will see this:
    Select the "Folder" entry.

  • How do I pay for ipad app purchase with iTunes card

    I Am using an ipad.  I went to the App Store and downloaded a free game.  However it has other features you can pay for. I want those.  How do I pay for it with an iTunes card? Only option it gives me is credit card

    You need to add your iTunes gift card as your method of payment for your Apple ID. Once you do that the amount for things you purchase will be deducted from the gift card.

  • How to change date for Compensation Package Offer (IT0706)

    I try to change date for an existing record in IT0706 to a later date, however system prompted "The compensation package was already activated. It can not be changed" As I checked, the record status is "Activated". Can anybody help to advice on how to change the date ?
    Thanks~

    Hi Kishor...Thanks for reply...
    But i need to change my precentation variable date formt...
    i need to write one text like: 'Year to dd/month/yy' in one column formula..
    So how can i achieve it..

  • How to declare variable in table valued function

    hello.
    i have the following code to define a inline table valued function
    but the use of cmn.ReshteId('Lf_WL') as a function in where clause is not good performance.
    Alter function lf.fn_WholeLifeBn_GetForm(@ViewKind tinyint, @CurrentLocation int) returns table
    as
    return
    select B.*
    from lf.fn_LifeBN_GetForm(@ViewKind, @CurrentLocation) B
    where Reshte = cmn.ReshteId('Lf_WL')
    for better performance following code is good:
    declare @Reshte smallint
    set @Reshte = cmn.ReshteId('Lf_TS')
    select B.*
    from lf.fn_LifeBN_GetForm(@ViewKind, @CurrentLocation) B
    where Reshte = @Reshte
    but can not use it as the first code block in inline function.
    please help for define a good function.

    What do you think about Multi-Statement Table-Valued UDFs?
    create function Func(@Var int)
    returns @T table(ColName int)
    as
    begin
      insert into @T(ColName) values (@Var)
      return
    end
    select * from Func(10)
    select * from Func(20)
    ---or
    alter function Func()
    returns @T table(ColName int)
    as
    begin
      declare @Var int
      set @Var = 10
      insert into @T(ColName) values (@Var)
      return
    end
    select * from Func()
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

Maybe you are looking for

  • Disable Save to Desktop / Documents Folder

    Hello, we are building some restricted Clients for a special room and we need to disable the save as dialoge When open a PDF-Document in InternetExplorer and then want to save it, the default path is set to My Documents (Instead of the default "Downl

  • Purchase Order text adoption

    Hi, we have an ongoing problem that I'm hoping someone else has come across.  Through our material masters our engineers are maintaining some specific item text that is configured as "User can adopt text" into the purchase order.  However if a change

  • New user creation in AE- user group not getting assigned

    Hi All, Here is a typical case, wherein when we create a new user with AE for the production system, the user gets created and the roles are also assigned but the user group is not getting assigned. The user group is being fetched from a table from t

  • Customize infopath error message for sharepoint list

    Hi Everyone, Is there anyway of replacing the written content in the generic "InfoPath Error Message Dialog"? I would like to replace the written content with something that is more specific and relevant to my form

  • Deserialization order problem

    Hi, For a game i am making i am storing the map as a Serialized Object. The problem is when i try to paint an image (which should be loaded in the constructor) it is null and thus causing a nullpointer. This only happens after serializing and deseria