Access function without schema defination

Hi,
i wrote a function like emofn in schema and give grant to all schemas like this
  grant execute on empfn to public;
but when i log-in to schema2 or schema3 i tried to execute that function like
select empfn() function from dual; it's wont work and if try like this
select schem1.empfun() from dual it's working. but i want without schema defination any help.....

Permissions and name resolution are two different things. To call a function in another schema without specifying the schema you'll need to do one of the following
1. Create a private synonym in the calling schema
2. Create a public synonym (this is how things like DBMS_OUTPUT can work without being prefixed by 'SYS')
3. Have the caller alter session set current schema to the function owning schema.
None of these have any effect on your permission to actually use the function.

Similar Messages

  • How am I to be able a user to grant access only to see a procedure / function without execute,compile,edit and drop?

    how am I to be able a user to grant access only to see a procedure / function without execute,compile,edit and drop?

    Sorry GregV but thank you, are you sure you can only be done by setting a PC? Can not by giving them certain privileges of a PC?
    PL \ SQL that we use a portable version.
    So actually like this, user A is only used by the X, user A wants to provide read-only access to user B is only used by Y (another PC) to the procedures / functions held user A. How do you?

  • Accessing a different schema in Oracle

    Hi,
    I currently have a great deal of code that assumed it would have access to the same database schema as the logged on user e.g.
    "Select * from TABLE_NAME" (no need to specify schema name).
    I have found out that we will now be using a system where the user that logs on, will be granted select, update and delete priviledges on another schema. So now after setting up the connection, my code would have to read: "Select * from ANOTHER_SCHEMA.TABLE_NAME" where ANOTHER_SCHEMA is the schema that contains the tables.
    My question is, since I would have to modify a great deal of code at this point, is there any way to change the user on an existing connection so that I would not have to manually affix the new schema name to all table references? I would have to be able to do this without logging on as this alternate user since we will not have the password for that user (for security reasons).
    I have considered creating views in the initial schema that access the alternate schema (e.g CREATE VIEW TABLE_NAME AS SELECT * FROM ANOTHER_SCHEMA.TABLE_NAME), however I was wondering if there might be a better way to do this?

    Yes he would have to change his code. I am just used to using "S_" and it is the standard Oracle naming convention for synonyms. (Also it makes it clear that you are referencing the table via a synonym rather than hitting the table directly.
    Why not encode all table names in an abstract class.
    Eg
    package utils;
    public class TableNames
    public static final String TABLE_NAME1 = "S_TABLE_NAME1";
    public static final String TABLE_NAME2 = "S_TABLE_NAME2";
    //etc etc
    This class can then be used in the building of sql statements. If the table name happens to change at any time then a change is only required in TableNames class.

  • The storage location/batch function * is not defined here - Message no. M7116

    Hi Experts,
    we have a scenario - Project Subcontracting Purchase Order, Item Category - L and Account Assignment - Q.
    Delivery created, one of the component is Batch managed and  with Batch Spli Exists.
    When performing Good Receipt in MB01 t-code for movement type 543 R (Special Stock), batch determination fails for batch split scenarios; we get the following error message:
    The storage location/batch function * is not defined here:
    Message no. M7116
    The batch determination works fine, if the PO is with Item Category - L and Account assignment - Blank, then the movement type will be 543 O
    Steps for Reconstruction
    MB01, Mvt 101, enter SUBCON PO (Item Cat L and Account assignment
    Q), SL
    Delivery should have batch split
    for 101 Mvt, system determine the batch
    543 R Mvt should allow for wildcard search in batch field, the
    wildcard search works for other Mvt like 543 O.
    Note:
    we foresee we have to maintain an entry in OMCG for Movement type 543 and Special Stock R.
    543 o already exists there. But we are unable to Add/Delete any entry there.
    Please advise.
    Thanks and Regards,
    Nagaraja Achar.

    Hello Dennis,
    try the new transaction (MIGO): Use the 'Distribute qty' pushbutton. For all goods receipts (with or without special stock) it is possible to create several batches.
    Regards
    Michael

  • How do I access classes and methods defined in a wsdl file

    I have been provided a wsdl file I need to find out how do I access classes and methods defined in a wsdl file directly instead of doing a wsdl2java...

    Several comments :
    1- is there any reason to have blank chars inserted after the path ? Seems that you already have a problem there. If possible, try to solve the problem at the source
    2- the end of line char is usually CR (Carriage Return, aka ASCII char 13 = $0D = Control-D). But LF (Line Feed = 10 = $0A = control-A) is also used (platform dependent). In LV, you can use the "Concatenate strings" function to add/insert control chars (found in the String Control Palette). However, this will not solve your problem of unwanted added blank chars at the end of your string.
    3- you can use the Trim white space.vi (in the "Additionnal string functions" sub-palette) to remove ALL the spaces in your string
    4- you can build your own "end space remover" function. :
    reverse the string, wire to a "Match pattern" function, use " +" (space + "+") to search for any number of spaces, reverse again the "after substring".
    5- there is no point 5 :-)
    You may find interesting description of ASCII chars here
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • Physical Memory Access Functions with installed Security Update 5Q5FJ4QW

    In my Labwindows-CVI (8.1.0) applications I use the Port-IO and Physical Memory Access Functions provided with the Utility Library to communicate directly to PCI devices. Up to now this works fine on about 50 different PCs using either only the CVI-Runtime or having different Labview or Labwindows versions installed.
    Now I tried to install my software on a system with Labview 2011 installed. When starting my CVI-Program, it runs in a runtime-error and crashs. By searching in the Internet I found advices from NI about the Security Update 5Q5FJ4QW. In this paper NI wrote, that the functionallity of Physical Memory Access was eleminated with this update. The "UpdateValidator"-Software included in the NI paper showed me, that the appearence of this update is the reason for my software crash.
    Here my questions:
     Is it possible to do Physical Memory Accesses in another way, even on systems with the actual Labview or Labwindows runtime installed?
     Is it possible to deactivate or deinstall the function of this update or the update (for example by replacing some files)?
     How can I communicate directly from my CVI program to my PCI-hardware?
    Thanks in advance for any hints to get my application running again
    Willi

    Hello Willi,
    According to this Knowledgebase:
    Inwieweit betrifft mich das Sicherheits-Update 5Q5FJ4QW von National Instruments (NI)? (German)
    http://digital.ni.com/public.nsf/allkb/3D3631A092D3033C8625793600572C90?OpenDocument
    The only way of running your Applications without Runtime Errors (With the Patch installed) is to run with Administrator Privileges.
    So i guess it would be best to try this Solution and run your Application with Administrator Privileges and not to try to Workaround the Patch.
    You should be able to eather uninstall the Patch by replacing cvintdrv.sys with the unpatched Version.
    Normal Windows Patches can also be deinstalled by using System Control.
    Best Regards!
    Moritz M.

  • Hi sunil i used this code but showing error called (startingrow)compile time sub or function are not defined please

    i wanted to update data of excelsheet to mysql database  but displaying an compile time error as sub or functions are not defined           -------------->(startingrow)     please help me out 
    Dim cn As New ADODB.Connection
    Dim number, nRows, wds_id, production_data
      cn.ConnectionString = "Provider = MSDASQL.1; Persist Security Info = False;Data Source = mysql32; User ID = root;Password = bmx1; Initial Catalog = wds"
      cn.CursorLocation = adUseClient
      cn.Open
     Dim i As Integer, QryTxt As String
     i = StartingRow(wds_id) ---------->In this line
     Do Until i = Sheet1.Rows.count
      If Sheet1.Cells(i, 1) = "" Then
       nRows = i - 1
       Exit Do
      End If
      i = i + 1
     Loop
     For i = StartingRow(wds_id) To nRows
            QryTxt = QryTxt & "update tblprod_agr_006 set wds_id1 = '" & Replace(Sheet1.Cells(i, 1), "'", "''") & "'," & vbCrLf
                               QryTxt = QryTxt & "    column2 =  '" & Replace(Sheet1.Cells(i, 3), "'", "''") & "'," & vbCrLf
                               QryTxt = QryTxt & "    column3 =  '" & Sheet1.Cells(i, 4) & "'," & vbCrLf
            QryTxt = QryTxt & "where conditioncolumn =" & "'" & Sheet1.Cells(i, 2) & "'" & "" & vbCrLf
     Next
     cn.Execute (QryTxt)

    First off, is this relating to a Microsoft SQL Server database, or a MySQL database?  I see several references to MySQL in your example.
    Your code uses a function StartingRow() which isn't a built-in T-SQL function.  So, if it is a function you've defined, you need to make sure it's properly referenced in order to use it.  (may need a 2 or 3 part name if it isn't in the default
    schema or the same database.)
    Microsoft SQL Server Storage Engine PM

  • AddNew function without utilizing button

    I have a database created in Microsoft Access. I want the pdf to be opened and automatically execute the addNew function without having the user click on the addNew button. Everytime it is opened I want the form to understand that the users only intention is to add data to the database. My knowledge of javascript is minimal and this form is simple data entry that will be trended. Please help.

    My movie has 1 frame. I deleted the layer that had the button, so I have an AS layer with the following code in it.
    txt_ani.startTypeEffect();
    And a layer below it with my movie clip with the Function code on one layer and the text in another layer below it.
    When I do play it, nothing happens. But when I add some frames to the movie, it starts after a delay, but I keep seeing "START" in my output tab due to the Trace I have, which makes the text appear very quickly. I think I may need some code to stop it from restarting.
    Where should this code you provided be put? And do I need additional code to have the text not speed up?

  • Is it possible to validate a schema defined date

    Hi,
    Is it possible to validate a schema defined date in xsd as of a null type.
         <xs:element name="ContractDt">
    <xs:restriction base="xs:date"/>
    </xs:element>
    In xml file if i want to keep date null and still should be valid......how do i do it
    For eg: <ContractDt></ContractDt>
    <ContractDt>1990-12-12</ContractDt>
    Both the above should be valid.............and any other thing should be invalid. I know we can use patterns and ennumeration to achive this but...............all the other validations that come along schema defined datatype date are required........
    Any help.
    Regards,
    Aru

    Hi,
    I meant this...........
    <xs:element name="ContractDt" nillable="true">
              <xs:simpleType>
                   <xs:union>
                        <xs:simpleType>
                             <xs:restriction base="xs:date"/>
                        </xs:simpleType>
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:enumeration value=""/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:union>
              </xs:simpleType>
         </xs:element>
    Hope my requirement is clear...
    Aru

  • I have all my movies on an external hard drive.  I want to be able to access them without copying everything to my iTunes.  How can I do this?

    I have all my movies on an external hard drive.  I want to be able to access them without copying everything to my iTunes.  How can I do this?

    I think DebinSC might mean using the movies without copying to the iTunes library?
    Maybe the solution is to uncheck this box?
    Or am I barking up the wrong tree?

  • Can I install Adobe Photoshop in my laptop and access it without any Internet connection?

    Can I install Adobe Photoshop in my laptop and access it without any Internet connection?

    Perpetual versions you can and it possible to to activate them offline.  Offline Activation
    The Creative Cloud versions can be installed offline but you need an Internet connection to activate the installed applications,  I also believe Adobe has recently made the Creative cloud desktop application an mandatory install.  It need not be running at all times however it will be installed.

  • JNI - how to use java access function in TypeLibrary( .tlb file) HELP ME PL

    Hey All
    I got one project which can be done by calling up functions in xxxx.tlb
    (window type library) file, that is no problem.
    How to use java to access those functions???
    I know there are some classes which can be used to access function in
    DLL file e.g. JAWIN.
    Is the .tlb file related to one DLL file??? if so, how to locate the
    DLL file through .tlb file???
    Thanks a lot.
    Steve

    Use JNI to create a link between Java class and a DLL, then you can load that DLL (or TLB) from that class.
    Read the JNI Tutorials.

  • Deny Access function with invalid file refnum causes LabVIEW to crash

    Hi folks,
    I have LabVIEW 8.5, and today encountered something interesting that consistently causes LabVIEW to crash.  Essentially, if you find the "Deny Access" function under the advanced file IO palette and wire up an invalid refnum, Windows (XP in my case) reports that LabVIEW has to close.  I checked in task manager, and the LabVIEW process is still active and using a disproportionate amount of the CPU.
    To reproduce the issue, simply drop the function on your block diagram, create a constant from the refnum input terminal, and run the VI.  Has anyone else seen this behavior?
    Thanks,
    Jim

    Hi Carla,
    I'm glad to help, and thanks for looking into it.  The way I ran into the bug was while I was working on an action engine VI to log certain text values (see attached picture).  While logging, I didn't want other programs to access the file.  When a new file had to be generated, I wanted to stop denying access and close the reference.  However, if the value on the shift register was invalid, LabVIEW crashed instead of throwing an error (I guess a crash qualifies as an error).
    If you look at the attached picture, my workaround was to use the "Not A Number/Path/Refnum?" function.  If the reference is bad, I don't try to use the "Deny Access" funtion or close the file.  That worked just fine and seems like a good solution for now.
    Jim
    Attachments:
    Logger.png ‏6 KB

  • Some apps do not function without WiFi

    Hello.....I ordered roaming for 30 days outside US for 2 mobile phones. But my whataspp in one of my phones do not function without WiFi. It's that ok. I would like to know if I can use it as we are in US, (Puerto Rico). Please contact me. Thanks....Franklin Avilés-Santa.

    Puerto Rico is considered local. You can use your phone there just like at home.

  • Can i access MSN without wi-fi network?

    Can i access MSN without Wi-Fi network? I mean, this might sound incredibly stupid but can I run apps such as MSN, Skype, FaceTime, through the 3G network? Without connecting to a wireless network? For example, if you're somewhere else other than home, at the mall, on a trip, will those apps still work?
    Thank you.

    Face Time is WiFi only. The others should work just fine over 3G.

Maybe you are looking for

  • Passing HTML column as filter

    Hi All, I have a requirement where i wrote go url syntax on the column formula if they click on that value it will navigate them to a real time environment page there in the data format of that column i made it as a HTML content i need to use this sa

  • Issue with executing Business Rules from Planning web

    Hi, We are using Hyperion Planning 9.3.0.1 and we keep getting an issue with the Business Rules. We get an error if we try to run the rules from Planning web. The same rules validates and executes fine if we run it from AAS. This issue gets resolved

  • Bevel effect with artifact

    I have created a nice typographic logo encapsulated in two underlaying outline shapes, one of them has a bevel effect applied to it. It looks terribly nice, except for one spot on the entire length of the path. The path has no compound in it, and the

  • Cannot be read,probably need older version?

    Hello can you help,as I dont know computer speak & dont want to affend,could you point me in the right direction please. I upgaded iTunes (the last upgrade) but now my laptop says itunes cannot be read beacause it was created by a newer version of it

  • Cannot update iPhoto...

    I have iPhoto 8.1.2, and I cannot update it because on apple's website, the next update is 9.1, but in order to install that update I have to have iPhoto 9.0 and above. Does anyone know how I can bypass iPhoto 9.0 or how I can download an update for