Grants given to a dbuser located in another database....

Hi,
There are two Oracle instances(10g v.2) running... , let's name them source_instance and destination_instance. User A is located in one database and user B in the other.
I want to grant select on tables on user B , which are owned by user A...
Is it possible to grant such a grant and how...(using dblink...)???
NOTE: I use Oracle 10g v.2 on Xp platform...
Many thanks ,
Simon

In the voinovpa's case;
You just need create dblink in schema A as folows:
create database link B_LINK
connect to B identified by <B_password>
using <tns for B database>;
so any queries like
select * from any_b_table@b_link select from table of schema B using its username and password
This is only possible if the user B exists in the database where user A have their objetcs, and the user A grant the privileges to user B.
So, the user B is created in the another database, that use dblink, and.. ok.

Similar Messages

  • Grants given to a user give to another as well...

    How is it possible the grants given to a user , given also to another....
    For example :
    connect scott/tiger;
    grant select on dept to x;
    grant insert on dept to x;
    Many thanks,
    Simon

    As yingkuan points out, the table you're looking for is, presumably DBA_TAB_PRIVS.
    I would point out, though, that 9 times out of 10, writing a script to duplicate the grants for a user from DBA_TAB_PRIVS is a bad idea. The proper approach is almost always to create a role, have the table owner (SCOTT in your last post, USER_A in the original post) grant privileges on the tables to the role, and grant the role to the end users. That is far, far easier than trying to keep grants in sync among multiple users.
    Also, be aware that DBA_TAB_PRIVS only accounts for object-level privileges, not system-level privileges and that it only accounts for privileges granted directly to a user, not those granted to a role (DBA_SYS_PRIVS, ROLE_SYS_PRIVS, ROLE_TAB_PRIVS, ROLE_ROLE_PRIVS, and DBA_ROLE_PRIVS would all come into play for those).
    Justin
    Justin

  • Error in switching from one database location  to another database location in Crystal Reports using JSP

    Hi,
    Please help me in resolving the issue while changing the database dynamically in crystal reports using JSP. I followed the below link to change DB connection dynamically.
    CRJava Modify DB Location
    Please help me on this.
    While switching from one database to another i found the issue.
    dbController.replaceConnection(oldConnectionInfo, newConnectionInfo,pFields,replaceParams);
    The Error is:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Subreport does not exist.---- Error code:-2147467259 Error code name:failed
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:2284)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:732)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:166)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:528)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:526)
        at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:524)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:423)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:480)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:421)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:351)
        at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54)
        at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67)
        at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716)
        at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125)
        at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537)
        at com.crystaldecisions.proxy.remoteagent.RemoteAgent.char(SourceFile:220)
        at com.crystaldecisions.proxy.remoteagent.RemoteAgent.new(SourceFile:240)
        at com.crystaldecisions.proxy.remoteagent.RemoteAgent.do(SourceFile:452)
        at com.crystaldecisions.proxy.remoteagent.RemoteAgent.if(SourceFile:429)
        at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.performDo(SourceFile:156)
        at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.a(SourceFile:106)
        at com.crystaldecisions.sdk.occa.report.application.an.a(SourceFile:65)
        at com.crystaldecisions.sdk.occa.report.application.ParameterFieldController.a(SourceFile:1921)
        at com.crystaldecisions.sdk.occa.report.application.ParameterFieldController.setCurrentValues(SourceFile:2237)
        at com.crystaldecisions.sdk.occa.report.application.ParameterFieldController.setCurrentValue(SourceFile:2328)
        at org.apache.jsp.DynamicDB_jsp._jspService(DynamicDB_jsp.java:255)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
    Caused by: com.crystaldecisions.reports.reportdefinition.ReportModificationException: Subreport does not exist.
        at com.businessobjects.reports.sdk.requesthandler.ParameterRequestHandler.a(SourceFile:229)
        at com.businessobjects.reports.sdk.requesthandler.ParameterRequestHandler.for(SourceFile:214)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1492)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:660)
        ... 47 more
    Any help Appreciated.
    Thanks
    Penchal

    Do you have subreports in your reports?
    If yes, set the connection info for the subreports as well.
    Additionaly refer to the below discussion
    http://scn.sap.com/thread/3153289
    As you are using Crystal reports for ecllipse runtime libraries to build your jsp, you would need to post your dicussions in the below forum to get better response.
    http://scn.sap.com/community/crystal-reports-for-eclipse
    The above space is dedicated for the issues with crystal reports for ecllipse.
    Thanks,
    Prithvi

  • How to copy file from  one location to another

    Hi,
    I am new to java, I tried the following code to move the file from one location to another
    public class CopyFiles {
    public String copy ( File source, File target)
    throws IOException {   
    FileChannel sourceChannel = null;
    FileChannel targetChannel =null;
    try {   
    sourceChannel =new FileInputStream(source).getChannel();
    targetChannel= new FileOutputStream(target).getChannel();
    targetChannel.transferFrom(sourceChannel, 0,
    sourceChannel.size());
    finally {   
    targetChannel.close();
    sourceChannel.close();
    return "Success";
    public static void main(String [] args) throws Exception{   
    File source = new File("C:\\users\\download.pdf");
    File destinationFile = new File("C:\\apple\\download.pdf");
    copy(source, destinationFile);
    The above code is working perfectly, but I Don't want to include the file name in destination file. i.e. File destinationFile=new File("C:\\apple"), and at the same time the pdf with same name has to get stored in the destination location, how can I achieve this.

    kameshb wrote:
    I Don't want to include the file name in destination file. i.e. File destinationFile=new File("C:\\apple"), and at the same time the pdf with same name has to get stored in the destination location, how can I achieve this.It's not totally clear what you're saying here, but what I think you mean is that you don't want to explicitly set the destination file name--you want to just give the copy the same name as the original. Yes?
    If that's the case, then break the original up into separate directory and file name portions, and then construct the destination path from the destination directory plus original file name. You can do that by manipulating the full path string, or by using the methods in java.io.File.

  • Copy file from a location to another

    I work on a Java process that must be optimized and I have some questions.
    This process includes a part of copying a file from a location from another (to be more specific, all files that exist in a directory, to copy in another directory), wich technique is more efficient and quickly? To copy using FileInputStream/FileOutputStream in Java or using a java Runtime process that calls a copy command of the Operating System?

    I work on a Java process that must be optimized and I
    have some questions.
    This process includes a part of copying a file from a
    location from another (to be more specific, all files
    that exist in a directory, to copy in another
    directory), wich technique is more efficient and
    quickly? To copy using
    FileInputStream/FileOutputStream in Java or using a
    java Runtime process that calls a copy command of the
    Operating System?Neither. Use the FileChannels in the nio package if you can:
    /* Note:  Proper resource closing and exception handling is not done here */
    try {
            // Create channel on the source
            FileChannel srcChannel = new
            FileInputStream("srcFilename").getChannel();
            // Create channel on the destination
            FileChannel dstChannel = new
            FileOutputStream("dstFilename").getChannel();
            // Copy file contents from source to destination
            dstChannel.transferFrom(srcChannel, 0, srcChannel.size());
            // Close the channels
            srcChannel.close();
            dstChannel.close();
        } catch (IOException e) {
        }Spawning a Runtime process is probably the least efficient way to do it.
    - N

  • Copy File from One Location to Another Location through xcopy or any

    Hi,
    I Need to copy one file from one location to another location. That file need to save in C:\Windows\System32 folder
    I need to create one .bat file and i want apply that bat as a startup script through GPO.
    I tried through XCopy if i test in machine that is working. If i tried in other machine that is not working. becoz of some Credential issue
    I tried in the script by netuse command after that my script itself not working.
    SET username=XYZ\Administrator
    SET password=abcd
    @ECHO OFF
    cmd "cd C:\"
    net use "\\10.50.5.68\c$\Windows\System32" %password% /user:domain\%username%
    :copy
    Xcopy /S /I /E D:\DLL \\10.50.5.68\c$\Windows\System32 
    Regards, Hari Prasad.D

    You cannot do that in a startup script.  You do not need to do that in a startup script.
    To add files to the system use GP Preferences.
    On Window 7 and later only the Trussted Installer is allowed to add files. (That means only Microsoft.)
    No programs or users should ever alter files in the system area.
    ¯\_(ツ)_/¯

  • Can I move the Lightroom Catalog from one location to another?

    Lightroom by default, places the Lightroom Catalog in the Pictures folder on my PC. My image library though, is located on an external hard drive. I've read that it is better to have the Catalog at the same location to avoid disconnected images, which sounds reasonable. Is it feasable to move the Catalog over to the same drive as my image library, or will that cause a problem? In other words would I need to start over again and create a new Catalog on the external drive? I know this sounds like a dumb question, but I've learnt to my cost that the obvious solution isn't necessary the correct one. 

    For better performance it is preferable to have the catalog located on an internal hard drive. By default the catalog and the preview files have to be located in the same folder since there is continual read/write taking place while working in Lightroom. Lightroom does not make any changes to the original files so its fine for them to be located on another hard drive internal or external. Lightroom loves lots of hard disk space to operate so if your catalog is on an internal drive make sure it not starved for disk space.
    However its ok for your catalog/previews files to reside on an external HDD with your original photo files.
    Your photo files can reside on a HDD conected to a network but your catalog and preview files cannot be located on a network.
    e.g I have my catalog / previews on the main HDD with my operating system with over 50% free disk space. My Photo files are on a secondary internal HDD with over 75% free disk space. I back up to external HDD.

  • Transfer material from one storage location to another storage location

    Is there any bapi  to transfer material from one storage location to another storage location

    Hi,
    You need to use the below BAPI
    BAPI_GOODSMVT_CREATE
    Regards
    Sudheer

  • From Forms 5.0 I want to copy a file/folder from one location to another.

    Hi,
    I have a question and I really appreciate your help.
    My Question is
    I would like to copy a file/folder from one location to another.
    (For ex: From my Hard disk to a Network folder).
    I want to do this from Oracle Forms 5.0 and my operating system is Windows 2000/NT Workstation.
    At present my users are doing this by using drag and drop windows functionality,
    But now they want to do this by using a GUI screen.
    I would greatly appreciate if somebody can answer my question.
    Thank you very much and have a nice day.
    Thanks & Regards
    Sanjeev.

    Hi Shay,
    Am able to copy the files/folders by doing the follwing.
    Declare
    My_Command Varchar2(1000);
    Begin
    MY_COMMAND := 'XCOPY /E ' ||:FROM_LOC ||' '|| :TO_LOC ;
    HOST(MY_COMMAND);
    End;
    But my problem is am not able to trap the errors.
    Do you have any idea?
    Thanks

  • How to move SQL database from one location to another location i.e. from C' drive to D' drive

    Hi, How to move SQL database from one location to another location i.e. from C' drive to D' drive ? please share some link.
    Thanks and Regards, Rangnath Mali

    Hi Rangnath,
    According to your description, my understanding is that you want to move databased from C drive to D drive.
    You can detach Database so that the files become independent, cut and paste the files from source to destination and attach again.
    There are two similar posts for your reference:
    http://mssqltalks.wordpress.com/2013/02/28/how-to-move-database-files-from-one-drive-to-another-or-from-one-location-to-another-in-sql-server/
    http://stackoverflow.com/questions/6584938/move-sql-server-2008-database-files-to-a-new-folder-location
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • How do you link to a specific location in another page?

    I'm working in Dreamweaver CS4.  I'm trying to create a link to go to a specific location on another page in my website.  Any advice?

    All the information I have seen about Named Anchors deals with information that is contained on the same page.  I am looking to go to a specific location on a different page.  Is this possible using Named Anchors?  If so, how?
    Sure it is.
    Place a named anchor on your destination page near the bottom of your page for this test.  And name your anchor  1.
    On the parent page, your link will look like this:
    <a href="some_page.html#1">this is a link to named  anchor 1</a>
    Save both pages and test in browser.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Moving fields from one location to another location?

    Hello
    I hv developed my_form, having couple of subforms, fields.
    They decided to change the layout drastically, pls. let me know How I can MOVE fields as a BUNCH from one location to another location on a DIFFERENT page?
    Say, earlier i hv 5 fields together, side by side on a same line/row wrapped in my_sub_form on 2nd page. Now, after they revising they want to see these 5 fields of the my_sub_form on 3rd page, pls. let me,
    1) How can i move these 5 fields ALL TOGETHER as a bunch to another location, so that it meakes my life easy? instaed of moving a single single field.
    2) or i should move my_sub_form AS A WHOLE? i tried it not giving me a chance of moving as a my_sub_form?
    3) Pls. let me know what is Object Tool? where can i see on the form, i did RIGHT CLICK, but, did not see any such Object Tool on the displayed sontext menu?

    Hi,
    Best option would be to select the objects in the hierarchy and then drag them in the hierarchy to the new location. For example if you drag them over a page and release, Designer will place the objects at the end of that page's content.
    Hope that helps,
    Niall

  • How to revoke all grants given to a role

    Hi,
    I need a single sql query to revoke all grants given to a role. Dropping a role is not a option before me .
    Can someone help me with the query:
    Regds,
    Kunwar

    Hi Pawan,
    I used this query to find out the grants given to a role.
    But i dont know PL/SQL. Can you help me with the pl/sql code ? :)
    ++++++++++++++++++++
    select 'ROLE' typ,
    grantee grantee,
    granted_role priv,
    admin_option ad,
    '--' tabnm,
    '--' colnm,
    '--' owner
    from dba_role_privs
    where grantee='KUNDBO91_ALL'
    union
    select 'SYSTEM' typ,
    grantee grantee,
    privilege priv,
    admin_option ad,
    '--' tabnm,
    '--' colnm,
    '--' owner
    from dba_sys_privs
    where grantee='KUNDBO91_ALL'
    union
    select 'TABLE' typ,
    grantee grantee,
    privilege priv,
    grantable ad,
    table_name tabnm,
    '--' colnm,
    owner owner
    from dba_tab_privs
    where grantee='KUNDBO91_ALL'
    union
    select 'COLUMN' typ,
    grantee grantee,
    privilege priv,
    grantable ad,
    table_name tabnm,
    column_name colnm,
    owner owner
    from dba_col_privs
    where grantee='KUNDBO91_ALL'
    order by 1;
    ++++++++++++++++++++

  • I need to get the value of a text field that is located in another page JSP

    I need to get the value of a text field that is located in another page JSP. How do I do that?

    Well you see, I have a page at angelfire.com, which
    does not support JSP. I want to call a script located
    at mycgisever and then, when pressing a link on the
    former page, the JSP page is loaded, and the script
    get the value from the text field on the OTHER page.
    Is this possible?I know nothing about cgi. But that should not prevent me from understanding what can and cannot be done, assuming cgi is sort of comparable with jsps.
    I'm unable to understand your description clearly. Try to explain it better. Give precise steps that you intend to follow and I should be able to help you further.
    So you have a page1.
    You hit submit from page1.
    That goes to the cgiserver.
    From the cgiserver, programmatically load up the jsp.
    search this for the text field.
    Display it on your page2.
    Is that what you are trying to do?
    BTW, won't be able to help you with cgi scripting at all. Can help with Java and Jsp.

  • How to Call an ADF Bounded Task Flow Located in Another Web Application

    Hi.
    I'm working in JDev 11G TP3.
    I've read the section from the 11G documentation on Working with Task Flow Activities,
    specifically the section 15.5.3 on How to Call an ADF Bounded Task Flow Located in Another Web Application.
    I've followed the instructions but still can not seem to call another task flow in another application correctly.
    Can someone send a small example specifying how the (TaskFlow Reference) section
    should be filled in, and just a general simple outline of process to set the whole process up.
    Thanks

    Your EL for the remote-app-url needs to return something like this
    "http://www.acme.com:80/myapp/faces/adf.task-flow"
    where "http://www.acme.com:80/myapp/faces" is the root of the url you'd normally use to access the remote application.
    I filed two bugs:
    bug 6944247 to improve the documentation
    bug 6944246 to fix the fact that you currently have to specify the 'adf.task-flow' part. You shouldn't need to do that. But doing so for now will get it to work.

Maybe you are looking for